diff --git a/mapping.json b/mapping.json new file mode 100644 index 0000000..a1f6487 --- /dev/null +++ b/mapping.json @@ -0,0 +1,7424 @@ +{ + "_-Z2": { + "_-oE": { + "_-Z2:_-oE": null, + "_-Z2:_-oE/instance/init": "alternativa.engine3d.shadows:StaticShadowRenderer/StaticShadowRenderer", + "_-Z2:_-oE/instance/_-Rf": "alternativa.engine3d.shadows:StaticShadowRenderer/addReciever", + "_-Z2:_-oE/instance/_-nq": "alternativa.engine3d.shadows:StaticShadowRenderer/removeReciever", + "_-Z2:_-oE/instance/dispose": "alternativa.engine3d.shadows:StaticShadowRenderer/dispose", + "_-Z2:_-oE/instance/http://alternativaplatform.com/en/alternativa3d:cullReciever": "alternativa.engine3d.shadows:StaticShadowRenderer/alternativa3d:cullReciever", + "_-Z2:_-oE/instance/case": "alternativa.engine3d.shadows:StaticShadowRenderer/calculateShadows", + "_-Z2:_-oE/instance/_-Z2:_-oE/_-SY": "alternativa.engine3d.shadows:StaticShadowRenderer/private:calculateShadowMapProjection", + "_-Z2:_-oE/instance/debug/getter": "alternativa.engine3d.shadows:StaticShadowRenderer/debug/get", + "_-Z2:_-oE/instance/debug/setter": "alternativa.engine3d.shadows:StaticShadowRenderer/debug/set", + "_-Z2:_-oE/instance/getVShader": "alternativa.engine3d.shadows:StaticShadowRenderer/getVShader", + "_-Z2:_-oE/instance/getFShader": "alternativa.engine3d.shadows:StaticShadowRenderer/getFShader", + "_-Z2:_-oE/instance/getFIntensityShader": "alternativa.engine3d.shadows:StaticShadowRenderer/getFIntensityShader", + "_-Z2:_-oE/instance/applyShader": "alternativa.engine3d.shadows:StaticShadowRenderer/applyShader", + "_-Z2:_-oE/class/init": "alternativa.engine3d.shadows:StaticShadowRenderer/applyShader", + "_-Z2:_-oE/class/http://alternativaplatform.com/en/alternativa3d:calculateBoundBox": "alternativa.engine3d.shadows:StaticShadowRenderer/alternativa3d:calculateBoundBox", + "_-Z2:_-oE/class/_-Z2:_-oE/_-8U": "alternativa.engine3d.shadows:StaticShadowRenderer/private:initVShader", + "_-Z2:_-oE/class/_-Z2:_-oE/_-hX": "alternativa.engine3d.shadows:StaticShadowRenderer/private:initFShader" + }, + "_-Nj": { + "_-Z2:_-Nj": null, + "_-Z2:_-Nj/instance/init": "alternativa.engine3d.shadows:ShadowsSystem/ShadowsSystem", + "_-Z2:_-Nj/instance/update": "alternativa.engine3d.shadows:ShadowsSystem/update", + "_-Z2:_-Nj/instance/_-Z2:_-Nj/_-DK": "alternativa.engine3d.shadows:ShadowsSystem/private:recursive", + "_-Z2:_-Nj/instance/_-Z2:_-Nj/_-hZ": "alternativa.engine3d.shadows:ShadowsSystem/private:setRenderers", + "_-Z2:_-Nj/class/init": "alternativa.engine3d.shadows:ShadowsSystem/private:setRenderers" + }, + "_-cD": { + "_-Z2:_-cD": null, + "_-Z2:_-cD/instance/init": "alternativa.engine3d.shadows:DirectionalShadowRenderer/DirectionalShadowRenderer", + "_-Z2:_-cD/instance/worldSize/getter": "alternativa.engine3d.shadows:DirectionalShadowRenderer/worldSize/get", + "_-Z2:_-cD/instance/worldSize/setter": "alternativa.engine3d.shadows:DirectionalShadowRenderer/worldSize/set", + "_-Z2:_-cD/instance/_-pp": "alternativa.engine3d.shadows:DirectionalShadowRenderer/setLight", + "_-Z2:_-cD/instance/debug/getter": "alternativa.engine3d.shadows:DirectionalShadowRenderer/debug/get", + "_-Z2:_-cD/instance/debug/setter": "alternativa.engine3d.shadows:DirectionalShadowRenderer/debug/set", + "_-Z2:_-cD/instance/http://alternativaplatform.com/en/alternativa3d:cullReciever": "alternativa.engine3d.shadows:DirectionalShadowRenderer/alternativa3d:cullReciever", + "_-Z2:_-cD/instance/update": "alternativa.engine3d.shadows:DirectionalShadowRenderer/update", + "_-Z2:_-cD/instance/_-Z2:_-cD/_-SY": "alternativa.engine3d.shadows:DirectionalShadowRenderer/private:calculateShadowMapProjection", + "_-Z2:_-cD/instance/getVShader": "alternativa.engine3d.shadows:DirectionalShadowRenderer/getVShader", + "_-Z2:_-cD/instance/getFShader": "alternativa.engine3d.shadows:DirectionalShadowRenderer/getFShader", + "_-Z2:_-cD/instance/getFIntensityShader": "alternativa.engine3d.shadows:DirectionalShadowRenderer/getFIntensityShader", + "_-Z2:_-cD/instance/applyShader": "alternativa.engine3d.shadows:DirectionalShadowRenderer/applyShader", + "_-Z2:_-cD/class/init": "alternativa.engine3d.shadows:DirectionalShadowRenderer/applyShader", + "_-Z2:_-cD/class/http://alternativaplatform.com/en/alternativa3d:_-fH": "alternativa.engine3d.shadows:DirectionalShadowRenderer/alternativa3d:copyMatrixFromTransform", + "_-Z2:_-cD/class/http://alternativaplatform.com/en/alternativa3d:_-F9": "alternativa.engine3d.shadows:DirectionalShadowRenderer/alternativa3d:drawObjectToShadowMap", + "_-Z2:_-cD/class/_-Z2:_-cD/_-jF": "alternativa.engine3d.shadows:DirectionalShadowRenderer/private:drawMeshToShadowMap", + "_-Z2:_-cD/class/_-Z2:_-cD/_-Xo": "alternativa.engine3d.shadows:DirectionalShadowRenderer/private:initMeshToShadowMapProgram", + "_-Z2:_-cD/class/_-Z2:_-cD/_-8U": "alternativa.engine3d.shadows:DirectionalShadowRenderer/private:initVShader", + "_-Z2:_-cD/class/_-Z2:_-cD/_-hX": "alternativa.engine3d.shadows:DirectionalShadowRenderer/private:initFShader" + }, + "_-ZC": { + "_-Z2:_-ZC": null, + "_-Z2:_-ZC/instance/init": "alternativa.engine3d.shadows:ShadowRenderer/ShadowRenderer", + "_-Z2:_-ZC/instance/http://alternativaplatform.com/en/alternativa3d:_-cu/getter": "alternativa.engine3d.shadows:ShadowRenderer/alternativa3d:needMultiplyBlend/get", + "_-Z2:_-ZC/instance/update": "alternativa.engine3d.shadows:ShadowRenderer/update", + "_-Z2:_-ZC/instance/getVShader": "alternativa.engine3d.shadows:ShadowRenderer/getVShader", + "_-Z2:_-ZC/instance/getFShader": "alternativa.engine3d.shadows:ShadowRenderer/getFShader", + "_-Z2:_-ZC/instance/getFIntensityShader": "alternativa.engine3d.shadows:ShadowRenderer/getFIntensityShader", + "_-Z2:_-ZC/instance/applyShader": "alternativa.engine3d.shadows:ShadowRenderer/applyShader", + "_-Z2:_-ZC/instance/debug/getter": "alternativa.engine3d.shadows:ShadowRenderer/debug/get", + "_-Z2:_-ZC/instance/debug/setter": "alternativa.engine3d.shadows:ShadowRenderer/debug/set", + "_-Z2:_-ZC/instance/http://alternativaplatform.com/en/alternativa3d:cullReciever": "alternativa.engine3d.shadows:ShadowRenderer/alternativa3d:cullReciever", + "_-Z2:_-ZC/instance/_-bT:_-RF": "alternativa.engine3d.shadows:ShadowRenderer/protected:cleanContext", + "_-Z2:_-ZC/instance/http://alternativaplatform.com/en/alternativa3d:_-Js": "alternativa.engine3d.shadows:ShadowRenderer/alternativa3d:cullObjectImplementation", + "_-Z2:_-ZC/class/init": "alternativa.engine3d.shadows:ShadowRenderer/alternativa3d:cullObjectImplementation" + } + }, + "_-eb": { + "_-Mr": { + "_-eb:_-Mr": null, + "_-eb:_-Mr/instance/init#0": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/EnergyRoundComponent", + "_-eb:_-Mr/instance/init#1": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/init", + "_-eb:_-Mr/instance/initComponent": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/initComponent", + "_-eb:_-Mr/instance/addToGame": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/addToGame", + "_-eb:_-Mr/instance/removeFromGame": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/removeFromGame", + "_-eb:_-Mr/instance/_-0w": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/acceptRayHit", + "_-eb:_-Mr/instance/updateBeforeSimulation": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/updateBeforeSimulation", + "_-eb:_-Mr/instance/updateAfterSimulation": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/updateAfterSimulation", + "_-eb:_-Mr/instance/interpolate": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/interpolate", + "_-eb:_-Mr/instance/_-qN": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/shoot", + "_-eb:_-Mr/instance/_-eb:_-Mr/_-HS": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/private:initRadialPoints", + "_-eb:_-Mr/class/init": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent/private:initRadialPoints" + }, + "_-9U": { + "_-eb:_-9U": null, + "_-eb:_-9U/instance/init": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundData/EnergyRoundData", + "_-eb:_-9U/class/init": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundData/EnergyRoundData" + }, + "_-7a": { + "_-eb:_-7a": null, + "_-eb:_-7a/instance/init": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory/IEnergyRoundEffectsFactory", + "_-eb:_-7a/instance/_-CP:_-17": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory:createEnergyRoundEffect", + "_-eb:_-7a/instance/_-CP:_-jY": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory:createExplosionEffects", + "_-eb:_-7a/instance/_-CP:_-lu": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory:createRicochetEffects", + "_-eb:_-7a/class/init": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory:createRicochetEffects" + }, + "_-Yp": { + "_-eb:_-Yp": null, + "_-eb:_-Yp/instance/init": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect/IEnergyRoundEffect", + "_-eb:_-Yp/instance/_-9E:_-Bz": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect:kill", + "_-eb:_-Yp/instance/_-9E:_-Vi": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect:setPosition", + "_-eb:_-Yp/class/init": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect:setPosition" + }, + "_-ka": { + "_-eb:_-ka": null, + "_-eb:_-ka/instance/init": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent/EnergyAmmunitionComponent", + "_-eb:_-ka/instance/getRound": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent/getRound", + "_-eb:_-ka/instance/_-eb:_-ka/_-R9": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent/private:createRound", + "_-eb:_-ka/instance/_-NO": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent/setCallback", + "_-eb:_-ka/class/init": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent/setCallback", + "_-eb:_-ka/class/_-jV": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent/destroyRound" + }, + "_-Cm": { + "_-eb:_-Cm": null, + "_-eb:_-Cm/instance/init": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundCallback/IEnergyRoundCallback", + "_-eb:_-Cm/instance/_-Fu:if ": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundCallback/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundCallback:onEnergyRoundHit", + "_-eb:_-Cm/class/init": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundCallback/alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundCallback:onEnergyRoundHit" + } + }, + "while": { + "_-hu": {}, + "_-O8": { + "while:_-O8": null, + "while:_-O8/instance/init": "alternativa.physics.collision.colliders:BoxSphereCollider/BoxSphereCollider", + "while:_-O8/instance/getContact": "alternativa.physics.collision.colliders:BoxSphereCollider/getContact", + "while:_-O8/instance/haveCollision": "alternativa.physics.collision.colliders:BoxSphereCollider/haveCollision", + "while:_-O8/class/init": "alternativa.physics.collision.colliders:BoxSphereCollider/haveCollision" + }, + "_-dj": { + "while:_-dj": null, + "while:_-dj/instance/init": "alternativa.physics.collision.colliders:BoxCollider/BoxCollider", + "while:_-dj/instance/getContact": "alternativa.physics.collision.colliders:BoxCollider/getContact", + "while:_-dj/instance/haveCollision": "alternativa.physics.collision.colliders:BoxCollider/haveCollision", + "while:_-dj/instance/_-0f:_-ho": "alternativa.physics.collision.colliders:BoxCollider/protected:getFaceVertsByAxis", + "while:_-dj/instance/_-0f:_-ii": "alternativa.physics.collision.colliders:BoxCollider/protected:clipLowX", + "while:_-dj/instance/_-0f:_-KZ": "alternativa.physics.collision.colliders:BoxCollider/protected:clipHighX", + "while:_-dj/instance/_-0f:_-BG": "alternativa.physics.collision.colliders:BoxCollider/protected:clipLowY", + "while:_-dj/instance/_-0f:_-Ro": "alternativa.physics.collision.colliders:BoxCollider/protected:clipHighY", + "while:_-dj/instance/_-0f:_-Yb": "alternativa.physics.collision.colliders:BoxCollider/protected:clipLowZ", + "while:_-dj/instance/_-0f:_-Cg": "alternativa.physics.collision.colliders:BoxCollider/protected:clipHighZ", + "while:_-dj/class/init": "alternativa.physics.collision.colliders:BoxCollider/protected:clipHighZ" + }, + "_-GQ": { + "while:_-GQ": null, + "while:_-GQ/instance/init": "alternativa.physics.collision.colliders:BoxRectCollider/BoxRectCollider", + "while:_-GQ/instance/getContact": "alternativa.physics.collision.colliders:BoxRectCollider/getContact", + "while:_-GQ/instance/haveCollision": "alternativa.physics.collision.colliders:BoxRectCollider/haveCollision", + "while:_-GQ/instance/while:_-GQ/instance/_-NV": "alternativa.physics.collision.colliders:BoxRectCollider/private:findFaceContactPoints", + "while:_-GQ/instance/while:_-GQ/instance/_-iN": "alternativa.physics.collision.colliders:BoxRectCollider/private:getPointBoxPenetration", + "while:_-GQ/instance/while:_-GQ/instance/_-kk": "alternativa.physics.collision.colliders:BoxRectCollider/private:clipByBox", + "while:_-GQ/instance/while:_-GQ/instance/_-pV": "alternativa.physics.collision.colliders:BoxRectCollider/private:clipByRect", + "while:_-GQ/instance/while:_-GQ/instance/_-og": "alternativa.physics.collision.colliders:BoxRectCollider/private:findEdgesIntersection", + "while:_-GQ/instance/while:_-GQ/instance/_-mG": "alternativa.physics.collision.colliders:BoxRectCollider/private:testMainAxis", + "while:_-GQ/instance/while:_-GQ/instance/_-kt": "alternativa.physics.collision.colliders:BoxRectCollider/private:testDerivedAxis", + "while:_-GQ/instance/true": "alternativa.physics.collision.colliders:BoxRectCollider/overlapOnAxis", + "while:_-GQ/class/init": "alternativa.physics.collision.colliders:BoxRectCollider/overlapOnAxis" + }, + "_-6O": { + "while:_-6O": null, + "while:_-6O/instance/init": "alternativa.physics.collision.colliders:SphereSphereCollider/SphereSphereCollider", + "while:_-6O/instance/getContact": "alternativa.physics.collision.colliders:SphereSphereCollider/getContact", + "while:_-6O/instance/haveCollision": "alternativa.physics.collision.colliders:SphereSphereCollider/haveCollision", + "while:_-6O/class/init": "alternativa.physics.collision.colliders:SphereSphereCollider/haveCollision" + }, + "_-Ph": { + "while:_-Ph": null, + "while:_-Ph/instance/init": "alternativa.physics.collision.colliders:BoxBoxCollider/BoxBoxCollider", + "while:_-Ph/instance/getContact": "alternativa.physics.collision.colliders:BoxBoxCollider/getContact", + "while:_-Ph/instance/haveCollision": "alternativa.physics.collision.colliders:BoxBoxCollider/haveCollision", + "while:_-Ph/instance/while:_-Ph/instance/_-NV": "alternativa.physics.collision.colliders:BoxBoxCollider/private:findFaceContactPoints", + "while:_-Ph/instance/while:_-Ph/instance/_-PC": "alternativa.physics.collision.colliders:BoxBoxCollider/private:reducePoints", + "while:_-Ph/instance/while:_-Ph/instance/_-iN": "alternativa.physics.collision.colliders:BoxBoxCollider/private:getPointBoxPenetration", + "while:_-Ph/instance/while:_-Ph/instance/clip": "alternativa.physics.collision.colliders:BoxBoxCollider/private:clip", + "while:_-Ph/instance/while:_-Ph/instance/_-og": "alternativa.physics.collision.colliders:BoxBoxCollider/private:findEdgesIntersection", + "while:_-Ph/instance/while:_-Ph/instance/_-mG": "alternativa.physics.collision.colliders:BoxBoxCollider/private:testMainAxis", + "while:_-Ph/instance/while:_-Ph/instance/_-kt": "alternativa.physics.collision.colliders:BoxBoxCollider/private:testDerivedAxis", + "while:_-Ph/instance/true": "alternativa.physics.collision.colliders:BoxBoxCollider/overlapOnAxis", + "while:_-Ph/class/init": "alternativa.physics.collision.colliders:BoxBoxCollider/overlapOnAxis" + } + }, + "_-VM": { + "VectorCodecA3D2SkinLevel1": { + "_-VM:VectorCodecA3D2SkinLevel1": null, + "_-VM:VectorCodecA3D2SkinLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel1/VectorCodecA3D2SkinLevel1", + "_-VM:VectorCodecA3D2SkinLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel1/init", + "_-VM:VectorCodecA3D2SkinLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel1/decode", + "_-VM:VectorCodecA3D2SkinLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel1/encode", + "_-VM:VectorCodecA3D2SkinLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel1/encode" + }, + "VectorCodecA3D2DirectionalLightLevel3": { + "_-VM:VectorCodecA3D2DirectionalLightLevel3": null, + "_-VM:VectorCodecA3D2DirectionalLightLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel3/VectorCodecA3D2DirectionalLightLevel3", + "_-VM:VectorCodecA3D2DirectionalLightLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel3/init", + "_-VM:VectorCodecA3D2DirectionalLightLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel3/decode", + "_-VM:VectorCodecA3D2DirectionalLightLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel3/encode", + "_-VM:VectorCodecA3D2DirectionalLightLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel3/encode" + }, + "VectorCodecA3D2MeshLevel1": { + "_-VM:VectorCodecA3D2MeshLevel1": null, + "_-VM:VectorCodecA3D2MeshLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel1/VectorCodecA3D2MeshLevel1", + "_-VM:VectorCodecA3D2MeshLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel1/init", + "_-VM:VectorCodecA3D2MeshLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel1/decode", + "_-VM:VectorCodecA3D2MeshLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel1/encode", + "_-VM:VectorCodecA3D2MeshLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel1/encode" + }, + "VectorCodecA3D2DecalLevel3": { + "_-VM:VectorCodecA3D2DecalLevel3": null, + "_-VM:VectorCodecA3D2DecalLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel3/VectorCodecA3D2DecalLevel3", + "_-VM:VectorCodecA3D2DecalLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel3/init", + "_-VM:VectorCodecA3D2DecalLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel3/decode", + "_-VM:VectorCodecA3D2DecalLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel3/encode", + "_-VM:VectorCodecA3D2DecalLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel3/encode" + }, + "VectorCodecA3D2SkinLevel2": { + "_-VM:VectorCodecA3D2SkinLevel2": null, + "_-VM:VectorCodecA3D2SkinLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel2/VectorCodecA3D2SkinLevel2", + "_-VM:VectorCodecA3D2SkinLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel2/init", + "_-VM:VectorCodecA3D2SkinLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel2/decode", + "_-VM:VectorCodecA3D2SkinLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel2/encode", + "_-VM:VectorCodecA3D2SkinLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel2/encode" + }, + "CodecA3D2Joint": { + "_-VM:CodecA3D2Joint": null, + "_-VM:CodecA3D2Joint/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Joint/CodecA3D2Joint", + "_-VM:CodecA3D2Joint/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Joint/init", + "_-VM:CodecA3D2Joint/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Joint/decode", + "_-VM:CodecA3D2Joint/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Joint/encode", + "_-VM:CodecA3D2Joint/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Joint/encode" + }, + "VectorCodecA3D2OmniLightLevel3": { + "_-VM:VectorCodecA3D2OmniLightLevel3": null, + "_-VM:VectorCodecA3D2OmniLightLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel3/VectorCodecA3D2OmniLightLevel3", + "_-VM:VectorCodecA3D2OmniLightLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel3/init", + "_-VM:VectorCodecA3D2OmniLightLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel3/decode", + "_-VM:VectorCodecA3D2OmniLightLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel3/encode", + "_-VM:VectorCodecA3D2OmniLightLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel3/encode" + }, + "VectorCodecA3D2DecalLevel2": { + "_-VM:VectorCodecA3D2DecalLevel2": null, + "_-VM:VectorCodecA3D2DecalLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel2/VectorCodecA3D2DecalLevel2", + "_-VM:VectorCodecA3D2DecalLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel2/init", + "_-VM:VectorCodecA3D2DecalLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel2/decode", + "_-VM:VectorCodecA3D2DecalLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel2/encode", + "_-VM:VectorCodecA3D2DecalLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel2/encode" + }, + "VectorCodecA3D2AmbientLightLevel1": { + "_-VM:VectorCodecA3D2AmbientLightLevel1": null, + "_-VM:VectorCodecA3D2AmbientLightLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel1/VectorCodecA3D2AmbientLightLevel1", + "_-VM:VectorCodecA3D2AmbientLightLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel1/init", + "_-VM:VectorCodecA3D2AmbientLightLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel1/decode", + "_-VM:VectorCodecA3D2AmbientLightLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel1/encode", + "_-VM:VectorCodecA3D2AmbientLightLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel1/encode" + }, + "VectorCodecA3D2JointLevel3": { + "_-VM:VectorCodecA3D2JointLevel3": null, + "_-VM:VectorCodecA3D2JointLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel3/VectorCodecA3D2JointLevel3", + "_-VM:VectorCodecA3D2JointLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel3/init", + "_-VM:VectorCodecA3D2JointLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel3/decode", + "_-VM:VectorCodecA3D2JointLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel3/encode", + "_-VM:VectorCodecA3D2JointLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel3/encode" + }, + "VectorCodecA3D2SpotLightLevel2": { + "_-VM:VectorCodecA3D2SpotLightLevel2": null, + "_-VM:VectorCodecA3D2SpotLightLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel2/VectorCodecA3D2SpotLightLevel2", + "_-VM:VectorCodecA3D2SpotLightLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel2/init", + "_-VM:VectorCodecA3D2SpotLightLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel2/decode", + "_-VM:VectorCodecA3D2SpotLightLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel2/encode", + "_-VM:VectorCodecA3D2SpotLightLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel2/encode" + }, + "VectorCodecA3D2BoxLevel3": { + "_-VM:VectorCodecA3D2BoxLevel3": null, + "_-VM:VectorCodecA3D2BoxLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel3/VectorCodecA3D2BoxLevel3", + "_-VM:VectorCodecA3D2BoxLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel3/init", + "_-VM:VectorCodecA3D2BoxLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel3/decode", + "_-VM:VectorCodecA3D2BoxLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel3/encode", + "_-VM:VectorCodecA3D2BoxLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel3/encode" + }, + "VectorCodecA3D2JointBindTransformLevel1": { + "_-VM:VectorCodecA3D2JointBindTransformLevel1": null, + "_-VM:VectorCodecA3D2JointBindTransformLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel1/VectorCodecA3D2JointBindTransformLevel1", + "_-VM:VectorCodecA3D2JointBindTransformLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel1/init", + "_-VM:VectorCodecA3D2JointBindTransformLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel1/decode", + "_-VM:VectorCodecA3D2JointBindTransformLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel1/encode", + "_-VM:VectorCodecA3D2JointBindTransformLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel1/encode" + }, + "CodecA3D2Surface": { + "_-VM:CodecA3D2Surface": null, + "_-VM:CodecA3D2Surface/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Surface/CodecA3D2Surface", + "_-VM:CodecA3D2Surface/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Surface/init", + "_-VM:CodecA3D2Surface/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Surface/decode", + "_-VM:CodecA3D2Surface/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Surface/encode", + "_-VM:CodecA3D2Surface/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Surface/encode" + }, + "CodecA3D2DirectionalLight": { + "_-VM:CodecA3D2DirectionalLight": null, + "_-VM:CodecA3D2DirectionalLight/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2DirectionalLight/CodecA3D2DirectionalLight", + "_-VM:CodecA3D2DirectionalLight/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2DirectionalLight/init", + "_-VM:CodecA3D2DirectionalLight/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2DirectionalLight/decode", + "_-VM:CodecA3D2DirectionalLight/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2DirectionalLight/encode", + "_-VM:CodecA3D2DirectionalLight/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2DirectionalLight/encode" + }, + "VectorCodecA3D2ObjectLevel3": { + "_-VM:VectorCodecA3D2ObjectLevel3": null, + "_-VM:VectorCodecA3D2ObjectLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel3/VectorCodecA3D2ObjectLevel3", + "_-VM:VectorCodecA3D2ObjectLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel3/init", + "_-VM:VectorCodecA3D2ObjectLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel3/decode", + "_-VM:VectorCodecA3D2ObjectLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel3/encode", + "_-VM:VectorCodecA3D2ObjectLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel3/encode" + }, + "VectorCodecA3D2ObjectLevel1": { + "_-VM:VectorCodecA3D2ObjectLevel1": null, + "_-VM:VectorCodecA3D2ObjectLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel1/VectorCodecA3D2ObjectLevel1", + "_-VM:VectorCodecA3D2ObjectLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel1/init", + "_-VM:VectorCodecA3D2ObjectLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel1/decode", + "_-VM:VectorCodecA3D2ObjectLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel1/encode", + "_-VM:VectorCodecA3D2ObjectLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel1/encode" + }, + "CodecA3D2Mesh": { + "_-VM:CodecA3D2Mesh": null, + "_-VM:CodecA3D2Mesh/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Mesh/CodecA3D2Mesh", + "_-VM:CodecA3D2Mesh/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Mesh/init", + "_-VM:CodecA3D2Mesh/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Mesh/decode", + "_-VM:CodecA3D2Mesh/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Mesh/encode", + "_-VM:CodecA3D2Mesh/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Mesh/encode" + }, + "VectorCodecA3D2OmniLightLevel1": { + "_-VM:VectorCodecA3D2OmniLightLevel1": null, + "_-VM:VectorCodecA3D2OmniLightLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel1/VectorCodecA3D2OmniLightLevel1", + "_-VM:VectorCodecA3D2OmniLightLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel1/init", + "_-VM:VectorCodecA3D2OmniLightLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel1/decode", + "_-VM:VectorCodecA3D2OmniLightLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel1/encode", + "_-VM:VectorCodecA3D2OmniLightLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel1/encode" + }, + "VectorCodecA3D2SkinLevel3": { + "_-VM:VectorCodecA3D2SkinLevel3": null, + "_-VM:VectorCodecA3D2SkinLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel3/VectorCodecA3D2SkinLevel3", + "_-VM:VectorCodecA3D2SkinLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel3/init", + "_-VM:VectorCodecA3D2SkinLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel3/decode", + "_-VM:VectorCodecA3D2SkinLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel3/encode", + "_-VM:VectorCodecA3D2SkinLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel3/encode" + }, + "CodecA3D2Transform": { + "_-VM:CodecA3D2Transform": null, + "_-VM:CodecA3D2Transform/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Transform/CodecA3D2Transform", + "_-VM:CodecA3D2Transform/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Transform/init", + "_-VM:CodecA3D2Transform/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Transform/decode", + "_-VM:CodecA3D2Transform/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Transform/encode", + "_-VM:CodecA3D2Transform/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Transform/encode" + }, + "CodecA3D2Sprite": { + "_-VM:CodecA3D2Sprite": null, + "_-VM:CodecA3D2Sprite/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Sprite/CodecA3D2Sprite", + "_-VM:CodecA3D2Sprite/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Sprite/init", + "_-VM:CodecA3D2Sprite/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Sprite/decode", + "_-VM:CodecA3D2Sprite/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Sprite/encode", + "_-VM:CodecA3D2Sprite/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Sprite/encode" + }, + "VectorCodecA3D2MeshLevel2": { + "_-VM:VectorCodecA3D2MeshLevel2": null, + "_-VM:VectorCodecA3D2MeshLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel2/VectorCodecA3D2MeshLevel2", + "_-VM:VectorCodecA3D2MeshLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel2/init", + "_-VM:VectorCodecA3D2MeshLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel2/decode", + "_-VM:VectorCodecA3D2MeshLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel2/encode", + "_-VM:VectorCodecA3D2MeshLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel2/encode" + }, + "VectorCodecA3D2JointBindTransformLevel2": { + "_-VM:VectorCodecA3D2JointBindTransformLevel2": null, + "_-VM:VectorCodecA3D2JointBindTransformLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel2/VectorCodecA3D2JointBindTransformLevel2", + "_-VM:VectorCodecA3D2JointBindTransformLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel2/init", + "_-VM:VectorCodecA3D2JointBindTransformLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel2/decode", + "_-VM:VectorCodecA3D2JointBindTransformLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel2/encode", + "_-VM:VectorCodecA3D2JointBindTransformLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel2/encode" + }, + "VectorCodecA3D2AmbientLightLevel3": { + "_-VM:VectorCodecA3D2AmbientLightLevel3": null, + "_-VM:VectorCodecA3D2AmbientLightLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel3/VectorCodecA3D2AmbientLightLevel3", + "_-VM:VectorCodecA3D2AmbientLightLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel3/init", + "_-VM:VectorCodecA3D2AmbientLightLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel3/decode", + "_-VM:VectorCodecA3D2AmbientLightLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel3/encode", + "_-VM:VectorCodecA3D2AmbientLightLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel3/encode" + }, + "CodecA3D2Object": { + "_-VM:CodecA3D2Object": null, + "_-VM:CodecA3D2Object/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Object/CodecA3D2Object", + "_-VM:CodecA3D2Object/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Object/init", + "_-VM:CodecA3D2Object/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Object/decode", + "_-VM:CodecA3D2Object/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Object/encode", + "_-VM:CodecA3D2Object/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Object/encode" + }, + "VectorCodecA3D2SpriteLevel3": { + "_-VM:VectorCodecA3D2SpriteLevel3": null, + "_-VM:VectorCodecA3D2SpriteLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel3/VectorCodecA3D2SpriteLevel3", + "_-VM:VectorCodecA3D2SpriteLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel3/init", + "_-VM:VectorCodecA3D2SpriteLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel3/decode", + "_-VM:VectorCodecA3D2SpriteLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel3/encode", + "_-VM:VectorCodecA3D2SpriteLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel3/encode" + }, + "VectorCodecA3D2SpriteLevel2": { + "_-VM:VectorCodecA3D2SpriteLevel2": null, + "_-VM:VectorCodecA3D2SpriteLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel2/VectorCodecA3D2SpriteLevel2", + "_-VM:VectorCodecA3D2SpriteLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel2/init", + "_-VM:VectorCodecA3D2SpriteLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel2/decode", + "_-VM:VectorCodecA3D2SpriteLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel2/encode", + "_-VM:VectorCodecA3D2SpriteLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel2/encode" + }, + "VectorCodecA3D2TransformLevel3": { + "_-VM:VectorCodecA3D2TransformLevel3": null, + "_-VM:VectorCodecA3D2TransformLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel3/VectorCodecA3D2TransformLevel3", + "_-VM:VectorCodecA3D2TransformLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel3/init", + "_-VM:VectorCodecA3D2TransformLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel3/decode", + "_-VM:VectorCodecA3D2TransformLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel3/encode", + "_-VM:VectorCodecA3D2TransformLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel3/encode" + }, + "CodecA3D2AmbientLight": { + "_-VM:CodecA3D2AmbientLight": null, + "_-VM:CodecA3D2AmbientLight/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2AmbientLight/CodecA3D2AmbientLight", + "_-VM:CodecA3D2AmbientLight/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2AmbientLight/init", + "_-VM:CodecA3D2AmbientLight/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2AmbientLight/decode", + "_-VM:CodecA3D2AmbientLight/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2AmbientLight/encode", + "_-VM:CodecA3D2AmbientLight/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2AmbientLight/encode" + }, + "VectorCodecA3D2DirectionalLightLevel2": { + "_-VM:VectorCodecA3D2DirectionalLightLevel2": null, + "_-VM:VectorCodecA3D2DirectionalLightLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel2/VectorCodecA3D2DirectionalLightLevel2", + "_-VM:VectorCodecA3D2DirectionalLightLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel2/init", + "_-VM:VectorCodecA3D2DirectionalLightLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel2/decode", + "_-VM:VectorCodecA3D2DirectionalLightLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel2/encode", + "_-VM:VectorCodecA3D2DirectionalLightLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel2/encode" + }, + "CodecA3D2JointBindTransform": { + "_-VM:CodecA3D2JointBindTransform": null, + "_-VM:CodecA3D2JointBindTransform/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2JointBindTransform/CodecA3D2JointBindTransform", + "_-VM:CodecA3D2JointBindTransform/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2JointBindTransform/init", + "_-VM:CodecA3D2JointBindTransform/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2JointBindTransform/decode", + "_-VM:CodecA3D2JointBindTransform/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2JointBindTransform/encode", + "_-VM:CodecA3D2JointBindTransform/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2JointBindTransform/encode" + }, + "VectorCodecA3D2SpriteLevel1": { + "_-VM:VectorCodecA3D2SpriteLevel1": null, + "_-VM:VectorCodecA3D2SpriteLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel1/VectorCodecA3D2SpriteLevel1", + "_-VM:VectorCodecA3D2SpriteLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel1/init", + "_-VM:VectorCodecA3D2SpriteLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel1/decode", + "_-VM:VectorCodecA3D2SpriteLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel1/encode", + "_-VM:VectorCodecA3D2SpriteLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel1/encode" + }, + "VectorCodecA3D2AmbientLightLevel2": { + "_-VM:VectorCodecA3D2AmbientLightLevel2": null, + "_-VM:VectorCodecA3D2AmbientLightLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel2/VectorCodecA3D2AmbientLightLevel2", + "_-VM:VectorCodecA3D2AmbientLightLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel2/init", + "_-VM:VectorCodecA3D2AmbientLightLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel2/decode", + "_-VM:VectorCodecA3D2AmbientLightLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel2/encode", + "_-VM:VectorCodecA3D2AmbientLightLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel2/encode" + }, + "VectorCodecA3D2JointBindTransformLevel3": { + "_-VM:VectorCodecA3D2JointBindTransformLevel3": null, + "_-VM:VectorCodecA3D2JointBindTransformLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel3/VectorCodecA3D2JointBindTransformLevel3", + "_-VM:VectorCodecA3D2JointBindTransformLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel3/init", + "_-VM:VectorCodecA3D2JointBindTransformLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel3/decode", + "_-VM:VectorCodecA3D2JointBindTransformLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel3/encode", + "_-VM:VectorCodecA3D2JointBindTransformLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel3/encode" + }, + "VectorCodecA3D2BoxLevel2": { + "_-VM:VectorCodecA3D2BoxLevel2": null, + "_-VM:VectorCodecA3D2BoxLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel2/VectorCodecA3D2BoxLevel2", + "_-VM:VectorCodecA3D2BoxLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel2/init", + "_-VM:VectorCodecA3D2BoxLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel2/decode", + "_-VM:VectorCodecA3D2BoxLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel2/encode", + "_-VM:VectorCodecA3D2BoxLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel2/encode" + }, + "VectorCodecA3D2DecalLevel1": { + "_-VM:VectorCodecA3D2DecalLevel1": null, + "_-VM:VectorCodecA3D2DecalLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel1/VectorCodecA3D2DecalLevel1", + "_-VM:VectorCodecA3D2DecalLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel1/init", + "_-VM:VectorCodecA3D2DecalLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel1/decode", + "_-VM:VectorCodecA3D2DecalLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel1/encode", + "_-VM:VectorCodecA3D2DecalLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel1/encode" + }, + "VectorCodecA3D2TransformLevel2": { + "_-VM:VectorCodecA3D2TransformLevel2": null, + "_-VM:VectorCodecA3D2TransformLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel2/VectorCodecA3D2TransformLevel2", + "_-VM:VectorCodecA3D2TransformLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel2/init", + "_-VM:VectorCodecA3D2TransformLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel2/decode", + "_-VM:VectorCodecA3D2TransformLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel2/encode", + "_-VM:VectorCodecA3D2TransformLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel2/encode" + }, + "VectorCodecA3D2JointLevel1": { + "_-VM:VectorCodecA3D2JointLevel1": null, + "_-VM:VectorCodecA3D2JointLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel1/VectorCodecA3D2JointLevel1", + "_-VM:VectorCodecA3D2JointLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel1/init", + "_-VM:VectorCodecA3D2JointLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel1/decode", + "_-VM:VectorCodecA3D2JointLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel1/encode", + "_-VM:VectorCodecA3D2JointLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel1/encode" + }, + "CodecA3D2OmniLight": { + "_-VM:CodecA3D2OmniLight": null, + "_-VM:CodecA3D2OmniLight/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2OmniLight/CodecA3D2OmniLight", + "_-VM:CodecA3D2OmniLight/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2OmniLight/init", + "_-VM:CodecA3D2OmniLight/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2OmniLight/decode", + "_-VM:CodecA3D2OmniLight/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2OmniLight/encode", + "_-VM:CodecA3D2OmniLight/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2OmniLight/encode" + }, + "VectorCodecA3D2SpotLightLevel3": { + "_-VM:VectorCodecA3D2SpotLightLevel3": null, + "_-VM:VectorCodecA3D2SpotLightLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel3/VectorCodecA3D2SpotLightLevel3", + "_-VM:VectorCodecA3D2SpotLightLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel3/init", + "_-VM:VectorCodecA3D2SpotLightLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel3/decode", + "_-VM:VectorCodecA3D2SpotLightLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel3/encode", + "_-VM:VectorCodecA3D2SpotLightLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel3/encode" + }, + "VectorCodecA3D2DirectionalLightLevel1": { + "_-VM:VectorCodecA3D2DirectionalLightLevel1": null, + "_-VM:VectorCodecA3D2DirectionalLightLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel1/VectorCodecA3D2DirectionalLightLevel1", + "_-VM:VectorCodecA3D2DirectionalLightLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel1/init", + "_-VM:VectorCodecA3D2DirectionalLightLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel1/decode", + "_-VM:VectorCodecA3D2DirectionalLightLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel1/encode", + "_-VM:VectorCodecA3D2DirectionalLightLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel1/encode" + }, + "VectorCodecA3D2BoxLevel1": { + "_-VM:VectorCodecA3D2BoxLevel1": null, + "_-VM:VectorCodecA3D2BoxLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel1/VectorCodecA3D2BoxLevel1", + "_-VM:VectorCodecA3D2BoxLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel1/init", + "_-VM:VectorCodecA3D2BoxLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel1/decode", + "_-VM:VectorCodecA3D2BoxLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel1/encode", + "_-VM:VectorCodecA3D2BoxLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel1/encode" + }, + "VectorCodecA3D2ObjectLevel2": { + "_-VM:VectorCodecA3D2ObjectLevel2": null, + "_-VM:VectorCodecA3D2ObjectLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel2/VectorCodecA3D2ObjectLevel2", + "_-VM:VectorCodecA3D2ObjectLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel2/init", + "_-VM:VectorCodecA3D2ObjectLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel2/decode", + "_-VM:VectorCodecA3D2ObjectLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel2/encode", + "_-VM:VectorCodecA3D2ObjectLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel2/encode" + }, + "CodecA3D2Box": { + "_-VM:CodecA3D2Box": null, + "_-VM:CodecA3D2Box/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Box/CodecA3D2Box", + "_-VM:CodecA3D2Box/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Box/init", + "_-VM:CodecA3D2Box/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Box/decode", + "_-VM:CodecA3D2Box/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Box/encode", + "_-VM:CodecA3D2Box/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Box/encode" + }, + "CodecA3D2Decal": { + "_-VM:CodecA3D2Decal": null, + "_-VM:CodecA3D2Decal/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Decal/CodecA3D2Decal", + "_-VM:CodecA3D2Decal/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Decal/init", + "_-VM:CodecA3D2Decal/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Decal/decode", + "_-VM:CodecA3D2Decal/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Decal/encode", + "_-VM:CodecA3D2Decal/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Decal/encode" + }, + "VectorCodecA3D2SpotLightLevel1": { + "_-VM:VectorCodecA3D2SpotLightLevel1": null, + "_-VM:VectorCodecA3D2SpotLightLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel1/VectorCodecA3D2SpotLightLevel1", + "_-VM:VectorCodecA3D2SpotLightLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel1/init", + "_-VM:VectorCodecA3D2SpotLightLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel1/decode", + "_-VM:VectorCodecA3D2SpotLightLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel1/encode", + "_-VM:VectorCodecA3D2SpotLightLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel1/encode" + }, + "CodecA3D2SpotLight": { + "_-VM:CodecA3D2SpotLight": null, + "_-VM:CodecA3D2SpotLight/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2SpotLight/CodecA3D2SpotLight", + "_-VM:CodecA3D2SpotLight/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2SpotLight/init", + "_-VM:CodecA3D2SpotLight/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2SpotLight/decode", + "_-VM:CodecA3D2SpotLight/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2SpotLight/encode", + "_-VM:CodecA3D2SpotLight/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2SpotLight/encode" + }, + "VectorCodecA3D2SurfaceLevel3": { + "_-VM:VectorCodecA3D2SurfaceLevel3": null, + "_-VM:VectorCodecA3D2SurfaceLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel3/VectorCodecA3D2SurfaceLevel3", + "_-VM:VectorCodecA3D2SurfaceLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel3/init", + "_-VM:VectorCodecA3D2SurfaceLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel3/decode", + "_-VM:VectorCodecA3D2SurfaceLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel3/encode", + "_-VM:VectorCodecA3D2SurfaceLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel3/encode" + }, + "CodecA3D2Skin": { + "_-VM:CodecA3D2Skin": null, + "_-VM:CodecA3D2Skin/instance/init#1": "_codec.versions.version2.a3d.objects:CodecA3D2Skin/CodecA3D2Skin", + "_-VM:CodecA3D2Skin/instance/init#0": "_codec.versions.version2.a3d.objects:CodecA3D2Skin/init", + "_-VM:CodecA3D2Skin/instance/_-2Q": "_codec.versions.version2.a3d.objects:CodecA3D2Skin/decode", + "_-VM:CodecA3D2Skin/instance/_-QN": "_codec.versions.version2.a3d.objects:CodecA3D2Skin/encode", + "_-VM:CodecA3D2Skin/class/init": "_codec.versions.version2.a3d.objects:CodecA3D2Skin/encode" + }, + "VectorCodecA3D2MeshLevel3": { + "_-VM:VectorCodecA3D2MeshLevel3": null, + "_-VM:VectorCodecA3D2MeshLevel3/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel3/VectorCodecA3D2MeshLevel3", + "_-VM:VectorCodecA3D2MeshLevel3/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel3/init", + "_-VM:VectorCodecA3D2MeshLevel3/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel3/decode", + "_-VM:VectorCodecA3D2MeshLevel3/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel3/encode", + "_-VM:VectorCodecA3D2MeshLevel3/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel3/encode" + }, + "VectorCodecA3D2SurfaceLevel1": { + "_-VM:VectorCodecA3D2SurfaceLevel1": null, + "_-VM:VectorCodecA3D2SurfaceLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel1/VectorCodecA3D2SurfaceLevel1", + "_-VM:VectorCodecA3D2SurfaceLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel1/init", + "_-VM:VectorCodecA3D2SurfaceLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel1/decode", + "_-VM:VectorCodecA3D2SurfaceLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel1/encode", + "_-VM:VectorCodecA3D2SurfaceLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel1/encode" + }, + "VectorCodecA3D2SurfaceLevel2": { + "_-VM:VectorCodecA3D2SurfaceLevel2": null, + "_-VM:VectorCodecA3D2SurfaceLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel2/VectorCodecA3D2SurfaceLevel2", + "_-VM:VectorCodecA3D2SurfaceLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel2/init", + "_-VM:VectorCodecA3D2SurfaceLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel2/decode", + "_-VM:VectorCodecA3D2SurfaceLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel2/encode", + "_-VM:VectorCodecA3D2SurfaceLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel2/encode" + }, + "VectorCodecA3D2JointLevel2": { + "_-VM:VectorCodecA3D2JointLevel2": null, + "_-VM:VectorCodecA3D2JointLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel2/VectorCodecA3D2JointLevel2", + "_-VM:VectorCodecA3D2JointLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel2/init", + "_-VM:VectorCodecA3D2JointLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel2/decode", + "_-VM:VectorCodecA3D2JointLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel2/encode", + "_-VM:VectorCodecA3D2JointLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel2/encode" + }, + "VectorCodecA3D2TransformLevel1": { + "_-VM:VectorCodecA3D2TransformLevel1": null, + "_-VM:VectorCodecA3D2TransformLevel1/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel1/VectorCodecA3D2TransformLevel1", + "_-VM:VectorCodecA3D2TransformLevel1/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel1/init", + "_-VM:VectorCodecA3D2TransformLevel1/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel1/decode", + "_-VM:VectorCodecA3D2TransformLevel1/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel1/encode", + "_-VM:VectorCodecA3D2TransformLevel1/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel1/encode" + }, + "VectorCodecA3D2OmniLightLevel2": { + "_-VM:VectorCodecA3D2OmniLightLevel2": null, + "_-VM:VectorCodecA3D2OmniLightLevel2/instance/init#0": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel2/VectorCodecA3D2OmniLightLevel2", + "_-VM:VectorCodecA3D2OmniLightLevel2/instance/init#1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel2/init", + "_-VM:VectorCodecA3D2OmniLightLevel2/instance/_-2Q": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel2/decode", + "_-VM:VectorCodecA3D2OmniLightLevel2/instance/_-QN": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel2/encode", + "_-VM:VectorCodecA3D2OmniLightLevel2/class/init": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel2/encode" + } + }, + "_-8T": { + "_-p4": { + "_-8T:_-p4": null, + "_-8T:_-p4/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamage/DebugSplashDamage", + "_-8T:_-p4/instance/radius/getter": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamage/radius/get", + "_-8T:_-p4/instance/_-Hf": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamage/getPower", + "_-8T:_-p4/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamage/getPower" + }, + "_-j8": { + "_-8T:_-j8": null, + "_-8T:_-j8/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageEffects/DebugSplashDamageEffects", + "_-8T:_-j8/instance/createEffects": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageEffects/createEffects", + "_-8T:_-j8/class/init#0": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageEffects/createEffects", + "_-8T:_-j8/class/init#1": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageEffects/init" + }, + "_-mW": { + "_-8T:_-mW": null, + "_-8T:_-mW/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageAmmo/DebugSplashDamageAmmo", + "_-8T:_-mW/instance/getRound": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageAmmo/getRound", + "_-8T:_-mW/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageAmmo/getRound" + }, + "_-Qg": { + "_-8T:_-Qg": null, + "_-8T:_-Qg/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/SmokyExplosion", + "_-8T:_-Qg/instance/_-8T:_-Qg/keyFrame1": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:keyFrame1", + "_-8T:_-Qg/instance/_-8T:_-Qg/keyFrame2": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:keyFrame2", + "_-8T:_-Qg/instance/_-8T:_-Qg/keyFrame3": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:keyFrame3", + "_-8T:_-Qg/instance/_-8T:_-Qg/keyFrame4": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:keyFrame4", + "_-8T:_-Qg/instance/_-8T:_-Qg/keyFrame5": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:keyFrame5", + "_-8T:_-Qg/instance/_-8T:_-Qg/keyFrame6": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:keyFrame6", + "_-8T:_-Qg/instance/_-8T:_-Qg/_-ky": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:randomDirection", + "_-8T:_-Qg/instance/_-8T:_-Qg/_-mO": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:calculatePosition", + "_-8T:_-Qg/instance/_-8T:_-Qg/_-C8": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:displacePosition", + "_-8T:_-Qg/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion/private:displacePosition" + }, + "_-Pc": { + "_-8T:_-Pc": null, + "_-8T:_-Pc/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashTargetFilter/DebugSplashTargetFilter", + "_-8T:_-Pc/instance/_-a4": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashTargetFilter/setPrimaryTarget", + "_-8T:_-Pc/instance/_-cb": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashTargetFilter/acceptBody", + "_-8T:_-Pc/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashTargetFilter/acceptBody" + }, + "_-I-": { + "_-8T:_-I-": null, + "_-8T:_-I-/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyShot/SmokyShot", + "_-8T:_-I-/instance/_-8T:_-I-/keyFrame1": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyShot/private:keyFrame1", + "_-8T:_-I-/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyShot/private:keyFrame1" + } + }, + "_-e6": { + "_-Z0": { + "_-e6:_-Z0": null, + "_-e6:_-Z0/instance/init": "alternativa.tanks.game.subsystems.rendersystem:IDeferredAction/IDeferredAction", + "_-e6:_-Z0/instance/_-gl:execute": "alternativa.tanks.game.subsystems.rendersystem:IDeferredAction/alternativa.tanks.game.subsystems.rendersystem:IDeferredAction:execute", + "_-e6:_-Z0/class/init": "alternativa.tanks.game.subsystems.rendersystem:IDeferredAction/alternativa.tanks.game.subsystems.rendersystem:IDeferredAction:execute" + }, + "_-TR": { + "_-e6:_-TR": null, + "_-e6:_-TR/instance/init": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial/SkyMaterial", + "_-e6:_-TR/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial/alternativa3d:fillResources", + "_-e6:_-TR/instance/_-e6:_-TR/final": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial/private:setupProgram", + "_-e6:_-TR/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial/alternativa3d:collectDraws", + "_-e6:_-TR/class/init": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial/alternativa3d:collectDraws", + "_-e6:_-TR/class/_-RX": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial/setFogTexture" + }, + "_-RE": { + "_-e6:_-RE": null, + "_-e6:_-RE/instance/init": "alternativa.tanks.game.subsystems.rendersystem:GameCamera/GameCamera", + "_-e6:_-RE/instance/_-UY": "alternativa.tanks.game.subsystems.rendersystem:GameCamera/calculateAxis", + "_-e6:_-RE/class/init": "alternativa.tanks.game.subsystems.rendersystem:GameCamera/calculateAxis" + }, + "_-1I": { + "_-e6:_-1I": null, + "_-e6:_-1I/instance/init": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/RenderSystem", + "_-e6:_-1I/instance/_-e6:_-1I/onClick": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:onClick", + "_-e6:_-1I/instance/lights/getter": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/lights/get", + "_-e6:_-1I/instance/_-ev": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogMode", + "_-e6:_-1I/instance/_-9g": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogNear", + "_-e6:_-1I/instance/_-H9": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogFar", + "_-e6:_-1I/instance/_-J0": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setMaxFogDensity", + "_-e6:_-1I/instance/_-5d": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogColor", + "_-e6:_-1I/instance/_-Jk": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogHorizonSize", + "_-e6:_-1I/instance/_-Dd": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogHorizonOffset", + "_-e6:_-1I/instance/_-FZ": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogTextureParams", + "_-e6:_-1I/instance/_-RX": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setFogTexture", + "_-e6:_-1I/instance/_-pt": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/isShadowSystemReady", + "_-e6:_-1I/instance/_-Un": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setShadowSystemReady", + "_-e6:_-1I/instance/_-8E": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addShadowRendererConstructor", + "_-e6:_-1I/instance/_-6a": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/removeShadowRendererConstructor", + "_-e6:_-1I/instance/_-4r": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getShadowSystem", + "_-e6:_-1I/instance/_-dO": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setAntialiasing", + "_-e6:_-1I/instance/_-m9": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getAnitaliasing", + "_-e6:_-1I/instance/_-by": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addShadowRenderer", + "_-e6:_-1I/instance/_-lX": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/removeShadowRenderer", + "_-e6:_-1I/instance/_-X4": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setStage3D", + "_-e6:_-1I/instance/requestContext3D": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/requestContext3D", + "_-e6:_-1I/instance/_-09": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/useResource", + "_-e6:_-1I/instance/_-IL": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/useResources", + "_-e6:_-1I/instance/_-fu": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/releaseResource", + "_-e6:_-1I/instance/_-Jb": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/releaseResources", + "_-e6:_-1I/instance/clear": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/clear", + "_-e6:_-1I/instance/_-Hn": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getRootContainer", + "_-e6:_-1I/instance/_-3a": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getMapGeometryContainer", + "_-e6:_-1I/instance/_-Bj": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getDynamicObjectsContainer", + "_-e6:_-1I/instance/_-p1": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getEffectsContainer", + "_-e6:_-1I/instance/_-A7": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getContainer", + "_-e6:_-1I/instance/_-bL": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/uploadResource", + "_-e6:_-1I/instance/_-lf": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addContainer", + "_-e6:_-1I/instance/_-MG": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getAxisIndicator", + "_-e6:_-1I/instance/_-S4": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getOverlay", + "_-e6:_-1I/instance/_-dm": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/removeOverlay", + "_-e6:_-1I/instance/addObject": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addObject", + "_-e6:_-1I/instance/_-0D": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getView", + "_-e6:_-1I/instance/_-G": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getCameraDiagram", + "_-e6:_-1I/instance/_-Mp": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setPhysicsVisualObjects", + "_-e6:_-1I/instance/_-mA": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addRenderer", + "_-e6:_-1I/instance/_-EI": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/removeRenderer", + "_-e6:_-1I/instance/_-5T": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addPostRenderer", + "_-e6:_-1I/instance/_-Ia": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/removePostRenderer", + "_-e6:_-1I/instance/each": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addEffect", + "_-e6:_-1I/instance/_-9p": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/addA3DEffect", + "_-e6:_-1I/instance/_-N8": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setCameraController", + "_-e6:_-1I/instance/_-GW": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getCamera", + "_-e6:_-1I/instance/_-fg": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/disableCameraController", + "_-e6:_-1I/instance/_-Vq": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/enableCameraController", + "_-e6:_-1I/instance/_-3N": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/setViewRect", + "_-e6:_-1I/instance/_-aH": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/getContext3D", + "_-e6:_-1I/instance/start": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/start", + "_-e6:_-1I/instance/stop": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/stop", + "_-e6:_-1I/instance/run": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/run", + "_-e6:_-1I/instance/_-Zn": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/initStaticShadow", + "_-e6:_-1I/instance/_-e6:_-1I/_-cV": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:isContext3DAvailable", + "_-e6:_-1I/instance/_-e6:_-1I/_-I6": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:createContainer", + "_-e6:_-1I/instance/_-e6:_-1I/_-q3": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:onContext3DCreate", + "_-e6:_-1I/instance/_-e6:_-1I/_-k1": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:initContext", + "_-e6:_-1I/instance/_-e6:_-1I/_-fN": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:onToggleDebugKey", + "_-e6:_-1I/instance/_-e6:_-1I/addObject3DMarkers": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:addObject3DMarkers", + "_-e6:_-1I/instance/_-e6:_-1I/_-1Y": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:switchMapView", + "_-e6:_-1I/instance/_-e6:_-1I/_-0g": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:updateDebugMode", + "_-e6:_-1I/instance/_-e6:_-1I/_-RI": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:toggleLightDebug", + "_-e6:_-1I/instance/_-e6:_-1I/_-66": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/private:toggleGraphicsDebug", + "_-e6:_-1I/instance/_-Nt": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/hideView", + "_-e6:_-1I/instance/_-j4": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/showView", + "_-e6:_-1I/class/init": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem/showView" + }, + "_-PW": { + "_-e6:_-PW": null, + "_-e6:_-PW/instance/init": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/ResourceManager", + "_-e6:_-PW/instance/_-09": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/useResource", + "_-e6:_-PW/instance/_-IL": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/useResources", + "_-e6:_-PW/instance/_-fu": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/releaseResource", + "_-e6:_-PW/instance/_-Jb": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/releaseResources", + "_-e6:_-PW/instance/_-bL": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/uploadResource", + "_-e6:_-PW/instance/_-Fb": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/setContext", + "_-e6:_-PW/instance/clear": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/clear", + "_-e6:_-PW/instance/_-e6:_-PW/instance/_-ht": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/private:doRelease", + "_-e6:_-PW/instance/_-e6:_-PW/instance/_-nE": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/private:getQueuedIndex", + "_-e6:_-PW/instance/_-e6:_-PW/instance/_-eH": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/private:queue", + "_-e6:_-PW/class/init": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager/private:queue" + }, + "_-X2": { + "_-e6:_-X2": null, + "_-e6:_-X2/instance/init": "alternativa.tanks.game.subsystems.rendersystem:Lights/Lights", + "_-e6:_-X2/instance/ambientLight/setter": "alternativa.tanks.game.subsystems.rendersystem:Lights/ambientLight/set", + "_-e6:_-X2/instance/ambientLight/getter": "alternativa.tanks.game.subsystems.rendersystem:Lights/ambientLight/get", + "_-e6:_-X2/instance/directionalLigths/getter": "alternativa.tanks.game.subsystems.rendersystem:Lights/directionalLigths/get", + "_-e6:_-X2/instance/omniLigths/getter": "alternativa.tanks.game.subsystems.rendersystem:Lights/omniLigths/get", + "_-e6:_-X2/instance/spotLights/getter": "alternativa.tanks.game.subsystems.rendersystem:Lights/spotLights/get", + "_-e6:_-X2/class/init": "alternativa.tanks.game.subsystems.rendersystem:Lights/spotLights/get" + }, + "_-B-": { + "_-e6:_-B-": null, + "_-e6:_-B-/instance/init": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/IResourceManager", + "_-e6:_-B-/instance/_-1i:_-09": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/alternativa.tanks.game.subsystems.rendersystem:IResourceManager:useResource", + "_-e6:_-B-/instance/_-1i:_-IL": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/alternativa.tanks.game.subsystems.rendersystem:IResourceManager:useResources", + "_-e6:_-B-/instance/_-1i:_-fu": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/alternativa.tanks.game.subsystems.rendersystem:IResourceManager:releaseResource", + "_-e6:_-B-/instance/_-1i:_-Jb": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/alternativa.tanks.game.subsystems.rendersystem:IResourceManager:releaseResources", + "_-e6:_-B-/instance/_-1i:_-bL": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/alternativa.tanks.game.subsystems.rendersystem:IResourceManager:uploadResource", + "_-e6:_-B-/class/init": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager/alternativa.tanks.game.subsystems.rendersystem:IResourceManager:uploadResource" + }, + "_-Kn": { + "_-e6:_-Kn": null, + "_-e6:_-Kn/instance/init": "alternativa.tanks.game.subsystems.rendersystem:IRenderer/IRenderer", + "_-e6:_-Kn/instance/_-80:render": "alternativa.tanks.game.subsystems.rendersystem:IRenderer/alternativa.tanks.game.subsystems.rendersystem:IRenderer:render", + "_-e6:_-Kn/class/init": "alternativa.tanks.game.subsystems.rendersystem:IRenderer/alternativa.tanks.game.subsystems.rendersystem:IRenderer:render" + }, + "_-fX": { + "_-e6:_-fX": null, + "_-e6:_-fX/instance/init": "alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect/IGraphicEffect", + "_-e6:_-fX/instance/_-Ed:addedToRenderSystem": "alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect/alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect:addedToRenderSystem", + "_-e6:_-fX/instance/_-Ed:play": "alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect/alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect:play", + "_-e6:_-fX/instance/_-Ed:destroy": "alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect/alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect:destroy", + "_-e6:_-fX/class/init": "alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect/alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect:destroy" + }, + "_-T7": { + "_-e6:_-T7": null, + "_-e6:_-T7/instance/init": "alternativa.tanks.game.subsystems.rendersystem:RenderUtils/RenderUtils", + "_-e6:_-T7/class/init": "alternativa.tanks.game.subsystems.rendersystem:RenderUtils/RenderUtils", + "_-e6:_-T7/class/_-Zz": "alternativa.tanks.game.subsystems.rendersystem:RenderUtils/getFogBitmap", + "_-e6:_-T7/class/_-e6:_-T7/class/_-H8": "alternativa.tanks.game.subsystems.rendersystem:RenderUtils/private:compareByAngle", + "_-e6:_-T7/class/_-e6:_-T7/class/_-N5": "alternativa.tanks.game.subsystems.rendersystem:RenderUtils/private:getColor" + }, + "_-9l": { + "_-e6:_-9l": null, + "_-e6:_-9l/instance/init": "alternativa.tanks.game.subsystems.rendersystem:BlendedMaterial/BlendedMaterial", + "_-e6:_-9l/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.subsystems.rendersystem:BlendedMaterial/alternativa3d:collectDraws", + "_-e6:_-9l/class/init": "alternativa.tanks.game.subsystems.rendersystem:BlendedMaterial/alternativa3d:collectDraws" + }, + "_-UR": { + "_-e6:_-UR": null, + "_-e6:_-UR/instance/init#0": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/TextMarker", + "_-e6:_-UR/instance/init#1": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/init", + "_-e6:_-UR/instance/_-Bz": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/kill", + "_-e6:_-UR/instance/play": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/play", + "_-e6:_-UR/instance/addedToRenderSystem": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/addedToRenderSystem", + "_-e6:_-UR/instance/destroy": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/destroy", + "_-e6:_-UR/class/init": "alternativa.tanks.game.subsystems.rendersystem:TextMarker/destroy" + }, + "_-jg": { + "_-e6:_-jg": null, + "_-e6:_-jg/instance/init": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/OmniLightList", + "_-e6:_-jg/instance/add": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/add", + "_-e6:_-jg/instance/remove": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/remove", + "_-e6:_-jg/instance/size/getter": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/size/get", + "_-e6:_-jg/instance/lights/getter": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/lights/get", + "_-e6:_-jg/instance/_-XO": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/getLightAt", + "_-e6:_-jg/class/init": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList/getLightAt" + }, + "_-fQ": { + "_-e6:_-fQ": null, + "_-e6:_-fQ/instance/init": "alternativa.tanks.game.subsystems.rendersystem:RendererList/RendererList", + "_-e6:_-fQ/instance/add": "alternativa.tanks.game.subsystems.rendersystem:RendererList/add", + "_-e6:_-fQ/instance/remove": "alternativa.tanks.game.subsystems.rendersystem:RendererList/remove", + "_-e6:_-fQ/class/init": "alternativa.tanks.game.subsystems.rendersystem:RendererList/remove" + }, + "_-i8": { + "_-e6:_-i8": null, + "_-e6:_-i8/instance/init": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/DirectionalLightList", + "_-e6:_-i8/instance/add": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/add", + "_-e6:_-i8/instance/remove": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/remove", + "_-e6:_-i8/instance/size/getter": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/size/get", + "_-e6:_-i8/instance/lights/getter": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/lights/get", + "_-e6:_-i8/instance/_-XO": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/getLightAt", + "_-e6:_-i8/class/init": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList/getLightAt" + }, + "_-pk": { + "_-e6:_-pk": null, + "_-e6:_-pk/instance/init": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/SpotLightList", + "_-e6:_-pk/instance/add": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/add", + "_-e6:_-pk/instance/remove": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/remove", + "_-e6:_-pk/instance/size/getter": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/size/get", + "_-e6:_-pk/instance/lights/getter": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/lights/get", + "_-e6:_-pk/instance/_-XO": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/getLightAt", + "_-e6:_-pk/class/init": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList/getLightAt" + }, + "_-h-": { + "_-e6:_-h-": null, + "_-e6:_-h-/instance/init": "alternativa.tanks.game.subsystems.rendersystem:FogInitializator/FogInitializator", + "_-e6:_-h-/instance/execute": "alternativa.tanks.game.subsystems.rendersystem:FogInitializator/execute", + "_-e6:_-h-/class/init": "alternativa.tanks.game.subsystems.rendersystem:FogInitializator/execute" + }, + "_-gb": { + "_-e6:_-gb": null, + "_-e6:_-gb/instance/init": "alternativa.tanks.game.subsystems.rendersystem:ICameraController/ICameraController", + "_-e6:_-gb/instance/_-ZQ:update": "alternativa.tanks.game.subsystems.rendersystem:ICameraController/alternativa.tanks.game.subsystems.rendersystem:ICameraController:update", + "_-e6:_-gb/instance/_-ZQ:_-eA": "alternativa.tanks.game.subsystems.rendersystem:ICameraController/alternativa.tanks.game.subsystems.rendersystem:ICameraController:enable", + "_-e6:_-gb/class/init": "alternativa.tanks.game.subsystems.rendersystem:ICameraController/alternativa.tanks.game.subsystems.rendersystem:ICameraController:enable" + }, + "_-jA": { + "_-e6:_-jA": null, + "_-e6:_-jA/instance/init": "alternativa.tanks.game.subsystems.rendersystem:IShadowRendererConstructor/IShadowRendererConstructor", + "_-e6:_-jA/instance/set:_-UG": "alternativa.tanks.game.subsystems.rendersystem:IShadowRendererConstructor/alternativa.tanks.game.subsystems.rendersystem:IShadowRendererConstructor:createShadowRenderer", + "_-e6:_-jA/class/init": "alternativa.tanks.game.subsystems.rendersystem:IShadowRendererConstructor/alternativa.tanks.game.subsystems.rendersystem:IShadowRendererConstructor:createShadowRenderer" + }, + "_-gK": { + "_-e6:_-gK": null, + "_-e6:_-gK/instance/init": "alternativa.tanks.game.subsystems.rendersystem:StaticShadowInitializer/StaticShadowInitializer", + "_-e6:_-gK/instance/execute": "alternativa.tanks.game.subsystems.rendersystem:StaticShadowInitializer/execute", + "_-e6:_-gK/class/init": "alternativa.tanks.game.subsystems.rendersystem:StaticShadowInitializer/execute" + } + }, + "_-O5": { + "_-2n": { + "_-O5:_-2n": null, + "_-O5:_-2n/instance/init": "alternativa.utils:CircularStringBuffer/CircularStringBuffer", + "_-O5:_-2n/instance/add": "alternativa.utils:CircularStringBuffer/add", + "_-O5:_-2n/instance/clear": "alternativa.utils:CircularStringBuffer/clear", + "_-O5:_-2n/instance/size/getter": "alternativa.utils:CircularStringBuffer/size/get", + "_-O5:_-2n/instance/capacity/getter": "alternativa.utils:CircularStringBuffer/capacity/get", + "_-O5:_-2n/instance/_-BS": "alternativa.utils:CircularStringBuffer/getStrings", + "_-O5:_-2n/instance/capacity/setter": "alternativa.utils:CircularStringBuffer/capacity/set", + "_-O5:_-2n/instance/_-Pj": "alternativa.utils:CircularStringBuffer/getIterator", + "_-O5:_-2n/instance/_-O5:_-2n/instance/incIndex": "alternativa.utils:CircularStringBuffer/private:incIndex", + "_-O5:_-2n/class/init": "alternativa.utils:CircularStringBuffer/private:incIndex" + }, + "_-hM": { + "_-O5:_-hM": null, + "_-O5:_-hM/instance/init": "alternativa.utils:ColorUtils/ColorUtils", + "_-O5:_-hM/class/init": "alternativa.utils:ColorUtils/ColorUtils", + "_-O5:_-hM/class/sum": "alternativa.utils:ColorUtils/sum", + "_-O5:_-hM/class/difference": "alternativa.utils:ColorUtils/difference", + "_-O5:_-hM/class/_-9D": "alternativa.utils:ColorUtils/multiply", + "_-O5:_-hM/class/interpolate": "alternativa.utils:ColorUtils/interpolate", + "_-O5:_-hM/class/throw": "alternativa.utils:ColorUtils/interpolateTransform", + "_-O5:_-hM/class/random": "alternativa.utils:ColorUtils/random", + "_-O5:_-hM/class/_-TU": "alternativa.utils:ColorUtils/rgb", + "_-O5:_-hM/class/red": "alternativa.utils:ColorUtils/red", + "_-O5:_-hM/class/green": "alternativa.utils:ColorUtils/green", + "_-O5:_-hM/class/blue": "alternativa.utils:ColorUtils/blue" + }, + "_-Hk": { + "_-O5:_-Hk": null, + "_-O5:_-Hk/instance/init": "alternativa.utils:ByteArrayMap/ByteArrayMap", + "_-O5:_-Hk/instance/data/getter": "alternativa.utils:ByteArrayMap/data/get", + "_-O5:_-Hk/instance/_-HG": "alternativa.utils:ByteArrayMap/getValue", + "_-O5:_-Hk/instance/_-9v": "alternativa.utils:ByteArrayMap/putValue", + "_-O5:_-Hk/class/init": "alternativa.utils:ByteArrayMap/putValue" + }, + "_-JW": { + "_-O5:_-JW": null, + "_-O5:_-JW/instance/init": "alternativa.utils:KeyboardUtils/KeyboardUtils", + "_-O5:_-JW/class/init": "alternativa.utils:KeyboardUtils/KeyboardUtils" + }, + "_-3E": { + "_-O5:_-3E": null, + "_-O5:_-3E/instance/init": "alternativa.utils:TextUtils/TextUtils", + "_-O5:_-3E/class/init": "alternativa.utils:TextUtils/TextUtils", + "_-O5:_-3E/class/_-dx": "alternativa.utils:TextUtils/replaceVars" + }, + "_-c4": { + "_-O5:_-c4": null, + "_-O5:_-c4/instance/init": "alternativa.utils:ICircularStringBuffer/ICircularStringBuffer", + "_-O5:_-c4/instance/_-Em:add": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:add", + "_-O5:_-c4/instance/_-Em:clear": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:clear", + "_-O5:_-c4/instance/_-Em:size/getter": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:size/get", + "_-O5:_-c4/instance/_-Em:capacity/getter": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:capacity/get", + "_-O5:_-c4/instance/_-Em:capacity/setter": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:capacity/set", + "_-O5:_-c4/instance/_-Em:_-Pj": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:getIterator", + "_-O5:_-c4/class/init": "alternativa.utils:ICircularStringBuffer/alternativa.utils:ICircularStringBuffer:getIterator" + }, + "_-0O": { + "_-O5:_-0O": null, + "_-O5:_-0O/instance/init": "alternativa.utils:MathUtils/MathUtils", + "_-O5:_-0O/class/init": "alternativa.utils:MathUtils/MathUtils", + "_-O5:_-0O/class/_-2q": "alternativa.utils:MathUtils/toRadian", + "_-O5:_-0O/class/_-Kb": "alternativa.utils:MathUtils/toDegree", + "_-O5:_-0O/class/_-a9": "alternativa.utils:MathUtils/limitAngle", + "_-O5:_-0O/class/_-DL": "alternativa.utils:MathUtils/deltaAngle", + "_-O5:_-0O/class/random": "alternativa.utils:MathUtils/random", + "_-O5:_-0O/class/_-Se": "alternativa.utils:MathUtils/randomAngle", + "_-O5:_-0O/class/_-7t": "alternativa.utils:MathUtils/equals", + "_-O5:_-0O/class/_-OJ": "alternativa.utils:MathUtils/segmentDistance", + "_-O5:_-0O/class/_-Bq": "alternativa.utils:MathUtils/triangleHasPoint", + "_-O5:_-0O/class/_-6W": "alternativa.utils:MathUtils/vectorCross", + "_-O5:_-0O/class/_-Zg": "alternativa.utils:MathUtils/vectorDot", + "_-O5:_-0O/class/_-6P": "alternativa.utils:MathUtils/vectorAngle", + "_-O5:_-0O/class/true ": "alternativa.utils:MathUtils/vectorAngleFast" + }, + "_-fU": { + "_-O5:_-fU": null, + "_-O5:_-fU/instance/init": "alternativa.utils:IStringBufferIterator/IStringBufferIterator", + "_-O5:_-fU/instance/_-8Y:hasNext": "alternativa.utils:IStringBufferIterator/alternativa.utils:IStringBufferIterator:hasNext", + "_-O5:_-fU/instance/_-8Y:getNext": "alternativa.utils:IStringBufferIterator/alternativa.utils:IStringBufferIterator:getNext", + "_-O5:_-fU/class/init": "alternativa.utils:IStringBufferIterator/alternativa.utils:IStringBufferIterator:getNext" + }, + "_-c-": { + "_-O5:_-c-": null, + "_-O5:_-c-/instance/init": "alternativa.utils:Properties/Properties", + "_-O5:_-c-/instance/_-PU": "alternativa.utils:Properties/getProperty", + "_-O5:_-c-/instance/_-aR": "alternativa.utils:Properties/getPropertyDef", + "_-O5:_-c-/instance/_-e4": "alternativa.utils:Properties/setProperty", + "_-O5:_-c-/instance/_-7g/getter": "alternativa.utils:Properties/propertyNames/get", + "_-O5:_-c-/instance/toString": "alternativa.utils:Properties/toString", + "_-O5:_-c-/class/init": "alternativa.utils:Properties/toString" + } + }, + "_-XN": { + "_-cO": { + "_-XN:_-cO": null, + "_-XN:_-cO/instance/init": "alternativa.tanks.game.weapons.targeting:IEnergyTargetingSystem/IEnergyTargetingSystem", + "_-XN:_-cO/instance/_-Yw:_-9c": "alternativa.tanks.game.weapons.targeting:IEnergyTargetingSystem/alternativa.tanks.game.weapons.targeting:IEnergyTargetingSystem:getShotDirection", + "_-XN:_-cO/class/init": "alternativa.tanks.game.weapons.targeting:IEnergyTargetingSystem/alternativa.tanks.game.weapons.targeting:IEnergyTargetingSystem:getShotDirection" + }, + "_-Rp": { + "_-XN:_-Rp": null, + "_-XN:_-Rp/instance/init": "alternativa.tanks.game.weapons.targeting:IGenericTargetEvaluator/IGenericTargetEvaluator", + "_-XN:_-Rp/instance/ each:_-EJ": "alternativa.tanks.game.weapons.targeting:IGenericTargetEvaluator/alternativa.tanks.game.weapons.targeting:IGenericTargetEvaluator:getTargetPriority", + "_-XN:_-Rp/class/init": "alternativa.tanks.game.weapons.targeting:IGenericTargetEvaluator/alternativa.tanks.game.weapons.targeting:IGenericTargetEvaluator:getTargetPriority" + }, + "_-O2": { + "_-XN:_-O2": null, + "_-XN:_-O2/instance/init": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem/GenericTargetingSystem", + "_-XN:_-O2/instance/_-XH": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem/setTargetValidator", + "_-XN:_-O2/instance/_-JD": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem/setCollisionDetector", + "_-XN:_-O2/instance/_-5a": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem/calculateShotDirection", + "_-XN:_-O2/instance/_-XN:_-O2/_-ck": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem/private:checkSector", + "_-XN:_-O2/class/init": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem/private:checkSector" + }, + "_-e3": { + "_-XN:_-e3": null, + "_-XN:_-e3/instance/init": "alternativa.tanks.game.weapons.targeting:RailgunTargetingSystem/RailgunTargetingSystem", + "_-XN:_-e3/instance/_-5a": "alternativa.tanks.game.weapons.targeting:RailgunTargetingSystem/calculateShotDirection", + "_-XN:_-e3/instance/_-XN:_-e3/instance/_-dd": "alternativa.tanks.game.weapons.targeting:RailgunTargetingSystem/private:evaluateSector", + "_-XN:_-e3/instance/_-XN:_-e3/instance/_-R7": "alternativa.tanks.game.weapons.targeting:RailgunTargetingSystem/private:evaluateDirection", + "_-XN:_-e3/class/init": "alternativa.tanks.game.weapons.targeting:RailgunTargetingSystem/private:evaluateDirection" + }, + "_-kW": { + "_-XN:_-kW": null, + "_-XN:_-kW/instance/init": "alternativa.tanks.game.weapons.targeting:ConicAreaTargetingSystem/ConicAreaTargetingSystem", + "_-XN:_-kW/instance/_-Ir": "alternativa.tanks.game.weapons.targeting:ConicAreaTargetingSystem/getTargets", + "_-XN:_-kW/instance/_-XN:_-kW/_-Lr": "alternativa.tanks.game.weapons.targeting:ConicAreaTargetingSystem/private:processSector", + "_-XN:_-kW/instance/_-XN:_-kW/_-Vv": "alternativa.tanks.game.weapons.targeting:ConicAreaTargetingSystem/private:checkDirection", + "_-XN:_-kW/class/init": "alternativa.tanks.game.weapons.targeting:ConicAreaTargetingSystem/private:checkDirection" + }, + "_-YE": { + "_-XN:_-YE": null, + "_-XN:_-YE/instance/init": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/EnergyTargetingSystem", + "_-XN:_-YE/instance/_-JD": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/setCollisionDetector", + "_-XN:_-YE/instance/_-XH": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/setTargetValidator", + "_-XN:_-YE/instance/_-9c": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/getShotDirection", + "_-XN:_-YE/instance/_-XN:_-YE/_-Vv": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/private:checkDirection", + "_-XN:_-YE/instance/_-XN:_-YE/_-ck": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/private:checkSector", + "_-XN:_-YE/class/init": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem/private:checkSector" + } + }, + "_-8D": { + "_-Jo": { + "_-8D:_-Jo": null, + "_-8D:_-Jo/instance/init": "alternativa.engine3d.core:Light3D/Light3D", + "_-8D:_-Jo/instance/http://alternativaplatform.com/en/alternativa3d:calculateVisibility": "alternativa.engine3d.core:Light3D/alternativa3d:calculateVisibility", + "_-8D:_-Jo/instance/http://alternativaplatform.com/en/alternativa3d:checkBound": "alternativa.engine3d.core:Light3D/alternativa3d:checkBound", + "_-8D:_-Jo/instance/clone": "alternativa.engine3d.core:Light3D/clone", + "_-8D:_-Jo/instance/_-Eu:clonePropertiesFrom": "alternativa.engine3d.core:Light3D/protected:clonePropertiesFrom", + "_-8D:_-Jo/class/init": "alternativa.engine3d.core:Light3D/protected:clonePropertiesFrom" + }, + "_-HO": { + "_-8D:_-HO": null, + "_-8D:_-HO/instance/init": "alternativa.engine3d.core:Resource/Resource", + "_-8D:_-HO/instance/isUploaded/getter": "alternativa.engine3d.core:Resource/isUploaded/get", + "_-8D:_-HO/instance/upload": "alternativa.engine3d.core:Resource/upload", + "_-8D:_-HO/instance/dispose": "alternativa.engine3d.core:Resource/dispose", + "_-8D:_-HO/class/init": "alternativa.engine3d.core:Resource/dispose" + }, + "_-7v": { + "_-8D:_-7v": null, + "_-8D:_-7v/instance/init": "alternativa.engine3d.core:Debug/Debug", + "_-8D:_-7v/class/init": "alternativa.engine3d.core:Debug/Debug", + "_-8D:_-7v/class/_-8D:_-7v/class/_-ZZ": "alternativa.engine3d.core:Debug/private:createBoundWire", + "_-8D:_-7v/class/http://alternativaplatform.com/en/alternativa3d:_-HK": "alternativa.engine3d.core:Debug/alternativa3d:drawBoundBox" + }, + "_-FW": { + "_-8D:_-FW": null, + "_-8D:_-FW/instance/init": "alternativa.engine3d.core:BoundBox/BoundBox", + "_-8D:_-FW/instance/reset": "alternativa.engine3d.core:BoundBox/reset", + "_-8D:_-FW/instance/http://alternativaplatform.com/en/alternativa3d:_-JT": "alternativa.engine3d.core:BoundBox/alternativa3d:checkFrustumCulling", + "_-8D:_-FW/instance/http://alternativaplatform.com/en/alternativa3d:_-RA": "alternativa.engine3d.core:BoundBox/alternativa3d:checkOcclusionCulling", + "_-8D:_-FW/instance/http://alternativaplatform.com/en/alternativa3d:_-Xu": "alternativa.engine3d.core:BoundBox/alternativa3d:checkRays", + "_-8D:_-FW/instance/http://alternativaplatform.com/en/alternativa3d:_-4Z": "alternativa.engine3d.core:BoundBox/alternativa3d:checkSphere", + "_-8D:_-FW/instance/intersectRay": "alternativa.engine3d.core:BoundBox/intersectRay", + "_-8D:_-FW/instance/clone": "alternativa.engine3d.core:BoundBox/clone", + "_-8D:_-FW/instance/toString": "alternativa.engine3d.core:BoundBox/toString", + "_-8D:_-FW/class/init": "alternativa.engine3d.core:BoundBox/toString" + }, + "_-PS": { + "_-8D:_-PS": null, + "_-8D:_-PS/instance/init": "alternativa.engine3d.core:Occluder/Occluder", + "_-8D:_-PS/instance/http://alternativaplatform.com/en/alternativa3d:calculateVisibility": "alternativa.engine3d.core:Occluder/alternativa3d:calculateVisibility", + "_-8D:_-PS/class/init": "alternativa.engine3d.core:Occluder/alternativa3d:calculateVisibility" + }, + "_-OX": { + "_-8D:_-OX": null, + "_-8D:_-OX/instance/init": "alternativa.engine3d.core:Object3D/Object3D", + "_-8D:_-OX/instance/x/getter": "alternativa.engine3d.core:Object3D/x/get", + "_-8D:_-OX/instance/x/setter": "alternativa.engine3d.core:Object3D/x/set", + "_-8D:_-OX/instance/y/getter": "alternativa.engine3d.core:Object3D/y/get", + "_-8D:_-OX/instance/y/setter": "alternativa.engine3d.core:Object3D/y/set", + "_-8D:_-OX/instance/z/getter": "alternativa.engine3d.core:Object3D/z/get", + "_-8D:_-OX/instance/z/setter": "alternativa.engine3d.core:Object3D/z/set", + "_-8D:_-OX/instance/rotationX/getter": "alternativa.engine3d.core:Object3D/rotationX/get", + "_-8D:_-OX/instance/rotationX/setter": "alternativa.engine3d.core:Object3D/rotationX/set", + "_-8D:_-OX/instance/rotationY/getter": "alternativa.engine3d.core:Object3D/rotationY/get", + "_-8D:_-OX/instance/rotationY/setter": "alternativa.engine3d.core:Object3D/rotationY/set", + "_-8D:_-OX/instance/rotationZ/getter": "alternativa.engine3d.core:Object3D/rotationZ/get", + "_-8D:_-OX/instance/rotationZ/setter": "alternativa.engine3d.core:Object3D/rotationZ/set", + "_-8D:_-OX/instance/scaleX/getter": "alternativa.engine3d.core:Object3D/scaleX/get", + "_-8D:_-OX/instance/scaleX/setter": "alternativa.engine3d.core:Object3D/scaleX/set", + "_-8D:_-OX/instance/scaleY/getter": "alternativa.engine3d.core:Object3D/scaleY/get", + "_-8D:_-OX/instance/scaleY/setter": "alternativa.engine3d.core:Object3D/scaleY/set", + "_-8D:_-OX/instance/scaleZ/getter": "alternativa.engine3d.core:Object3D/scaleZ/get", + "_-8D:_-OX/instance/scaleZ/setter": "alternativa.engine3d.core:Object3D/scaleZ/set", + "_-8D:_-OX/instance/matrix/getter": "alternativa.engine3d.core:Object3D/matrix/get", + "_-8D:_-OX/instance/matrix/setter": "alternativa.engine3d.core:Object3D/matrix/set", + "_-8D:_-OX/instance/intersectRay": "alternativa.engine3d.core:Object3D/intersectRay", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:intersectRayChildren": "alternativa.engine3d.core:Object3D/alternativa3d:intersectRayChildren", + "_-8D:_-OX/instance/concatenatedMatrix/getter": "alternativa.engine3d.core:Object3D/concatenatedMatrix/get", + "_-8D:_-OX/instance/localToGlobal": "alternativa.engine3d.core:Object3D/localToGlobal", + "_-8D:_-OX/instance/globalToLocal": "alternativa.engine3d.core:Object3D/globalToLocal", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:useLights/getter": "alternativa.engine3d.core:Object3D/alternativa3d:useLights/get", + "_-8D:_-OX/instance/calculateBoundBox": "alternativa.engine3d.core:Object3D/calculateBoundBox", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.core:Object3D/alternativa3d:updateBoundBox", + "_-8D:_-OX/instance/addEventListener": "alternativa.engine3d.core:Object3D/addEventListener", + "_-8D:_-OX/instance/removeEventListener": "alternativa.engine3d.core:Object3D/removeEventListener", + "_-8D:_-OX/instance/hasEventListener": "alternativa.engine3d.core:Object3D/hasEventListener", + "_-8D:_-OX/instance/willTrigger": "alternativa.engine3d.core:Object3D/willTrigger", + "_-8D:_-OX/instance/dispatchEvent": "alternativa.engine3d.core:Object3D/dispatchEvent", + "_-8D:_-OX/instance/parent/getter": "alternativa.engine3d.core:Object3D/parent/get", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:removeFromParent": "alternativa.engine3d.core:Object3D/alternativa3d:removeFromParent", + "_-8D:_-OX/instance/addChild": "alternativa.engine3d.core:Object3D/addChild", + "_-8D:_-OX/instance/removeChild": "alternativa.engine3d.core:Object3D/removeChild", + "_-8D:_-OX/instance/_-8D:_-OX/instance/removeFromList": "alternativa.engine3d.core:Object3D/private:removeFromList", + "_-8D:_-OX/instance/addChildAt": "alternativa.engine3d.core:Object3D/addChildAt", + "_-8D:_-OX/instance/removeChildAt": "alternativa.engine3d.core:Object3D/removeChildAt", + "_-8D:_-OX/instance/getChildAt": "alternativa.engine3d.core:Object3D/getChildAt", + "_-8D:_-OX/instance/getChildIndex": "alternativa.engine3d.core:Object3D/getChildIndex", + "_-8D:_-OX/instance/setChildIndex": "alternativa.engine3d.core:Object3D/setChildIndex", + "_-8D:_-OX/instance/swapChildren": "alternativa.engine3d.core:Object3D/swapChildren", + "_-8D:_-OX/instance/swapChildrenAt": "alternativa.engine3d.core:Object3D/swapChildrenAt", + "_-8D:_-OX/instance/getChildByName": "alternativa.engine3d.core:Object3D/getChildByName", + "_-8D:_-OX/instance/contains": "alternativa.engine3d.core:Object3D/contains", + "_-8D:_-OX/instance/numChildren/getter": "alternativa.engine3d.core:Object3D/numChildren/get", + "_-8D:_-OX/instance/_-8D:_-OX/instance/addToList": "alternativa.engine3d.core:Object3D/private:addToList", + "_-8D:_-OX/instance/getResources": "alternativa.engine3d.core:Object3D/getResources", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.core:Object3D/alternativa3d:fillResources", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:composeTransforms": "alternativa.engine3d.core:Object3D/alternativa3d:composeTransforms", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:calculateVisibility": "alternativa.engine3d.core:Object3D/alternativa3d:calculateVisibility", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:calculateChildrenVisibility": "alternativa.engine3d.core:Object3D/alternativa3d:calculateChildrenVisibility", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.core:Object3D/alternativa3d:collectDraws", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:collectChildrenDraws": "alternativa.engine3d.core:Object3D/alternativa3d:collectChildrenDraws", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:collectGeometry": "alternativa.engine3d.core:Object3D/alternativa3d:collectGeometry", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:collectChildrenGeometry": "alternativa.engine3d.core:Object3D/alternativa3d:collectChildrenGeometry", + "_-8D:_-OX/instance/http://alternativaplatform.com/en/alternativa3d:setTransformConstants": "alternativa.engine3d.core:Object3D/alternativa3d:setTransformConstants", + "_-8D:_-OX/instance/clone": "alternativa.engine3d.core:Object3D/clone", + "_-8D:_-OX/instance/_-6H:clonePropertiesFrom": "alternativa.engine3d.core:Object3D/protected:clonePropertiesFrom", + "_-8D:_-OX/instance/toString": "alternativa.engine3d.core:Object3D/toString", + "_-8D:_-OX/class/init": "alternativa.engine3d.core:Object3D/toString" + }, + "_-mb": { + "_-8D:_-mb": null, + "_-8D:_-mb/instance/init": "alternativa.engine3d.core:VertexStream/VertexStream", + "_-8D:_-mb/class/init": "alternativa.engine3d.core:VertexStream/VertexStream" + }, + "_-JI": { + "_-8D:_-JI": null, + "_-8D:_-JI/instance/init": "alternativa.engine3d.core:View/View", + "_-8D:_-JI/instance/_-8D:_-JI/_-2B": "alternativa.engine3d.core:View/private:onMouse", + "_-8D:_-JI/instance/_-8D:_-JI/_-CS": "alternativa.engine3d.core:View/private:onLeave", + "_-8D:_-JI/instance/_-8D:_-JI/_-Eg": "alternativa.engine3d.core:View/private:createRenderBitmap", + "_-8D:_-JI/instance/_-8D:_-JI/_-Id": "alternativa.engine3d.core:View/private:onAddToStage", + "_-8D:_-JI/instance/_-8D:_-JI/_-99": "alternativa.engine3d.core:View/private:onRemoveFromStage", + "_-8D:_-JI/instance/_-8D:_-JI/_-Ze": "alternativa.engine3d.core:View/private:onKeyDown", + "_-8D:_-JI/instance/_-8D:_-JI/_-Uf": "alternativa.engine3d.core:View/private:onKeyUp", + "_-8D:_-JI/instance/_-8D:_-JI/_-4j": "alternativa.engine3d.core:View/private:removeBitmap", + "_-8D:_-JI/instance/http://alternativaplatform.com/en/alternativa3d:calculateRays": "alternativa.engine3d.core:View/alternativa3d:calculateRays", + "_-8D:_-JI/instance/http://alternativaplatform.com/en/alternativa3d:_-bA": "alternativa.engine3d.core:View/alternativa3d:addSurfaceToMouseEvents", + "_-8D:_-JI/instance/http://alternativaplatform.com/en/alternativa3d:_-jR": "alternativa.engine3d.core:View/alternativa3d:prepareToRender", + "_-8D:_-JI/instance/http://alternativaplatform.com/en/alternativa3d:_-7K": "alternativa.engine3d.core:View/alternativa3d:processMouseEvents", + "_-8D:_-JI/instance/_-8D:_-JI/_-oI": "alternativa.engine3d.core:View/private:calculateSurfacesDepths", + "_-8D:_-JI/instance/_-8D:_-JI/_-6R": "alternativa.engine3d.core:View/private:drawSurface", + "_-8D:_-JI/instance/_-8D:_-JI/sort": "alternativa.engine3d.core:View/private:sort", + "_-8D:_-JI/instance/_-8D:_-JI/_-px": "alternativa.engine3d.core:View/private:processOverOut", + "_-8D:_-JI/instance/_-8D:_-JI/_-lx": "alternativa.engine3d.core:View/private:branchToVector", + "_-8D:_-JI/instance/_-8D:_-JI/_-AJ": "alternativa.engine3d.core:View/private:propagateEvent", + "_-8D:_-JI/instance/_-8D:_-JI/_-K3": "alternativa.engine3d.core:View/private:calculateLocalCoords", + "_-8D:_-JI/instance/_-8D:_-JI/_-7f": "alternativa.engine3d.core:View/private:defineTarget", + "_-8D:_-JI/instance/renderToBitmap/getter": "alternativa.engine3d.core:View/renderToBitmap/get", + "_-8D:_-JI/instance/renderToBitmap/setter": "alternativa.engine3d.core:View/renderToBitmap/set", + "_-8D:_-JI/instance/canvas/getter": "alternativa.engine3d.core:View/canvas/get", + "_-8D:_-JI/instance/_-GU": "alternativa.engine3d.core:View/showLogo", + "_-8D:_-JI/instance/_-qT": "alternativa.engine3d.core:View/hideLogo", + "_-8D:_-JI/instance/_-oJ/getter": "alternativa.engine3d.core:View/logoAlign/get", + "_-8D:_-JI/instance/_-oJ/setter": "alternativa.engine3d.core:View/logoAlign/set", + "_-8D:_-JI/instance/_-dV/getter": "alternativa.engine3d.core:View/logoHorizontalMargin/get", + "_-8D:_-JI/instance/_-dV/setter": "alternativa.engine3d.core:View/logoHorizontalMargin/set", + "_-8D:_-JI/instance/_-C2/getter": "alternativa.engine3d.core:View/logoVerticalMargin/get", + "_-8D:_-JI/instance/_-C2/setter": "alternativa.engine3d.core:View/logoVerticalMargin/set", + "_-8D:_-JI/instance/_-8D:_-JI/package": "alternativa.engine3d.core:View/private:resizeLogo", + "_-8D:_-JI/instance/width/getter": "alternativa.engine3d.core:View/width/get", + "_-8D:_-JI/instance/width/setter": "alternativa.engine3d.core:View/width/set", + "_-8D:_-JI/instance/height/getter": "alternativa.engine3d.core:View/height/get", + "_-8D:_-JI/instance/height/setter": "alternativa.engine3d.core:View/height/set", + "_-8D:_-JI/instance/addChild": "alternativa.engine3d.core:View/addChild", + "_-8D:_-JI/instance/removeChild": "alternativa.engine3d.core:View/removeChild", + "_-8D:_-JI/instance/addChildAt": "alternativa.engine3d.core:View/addChildAt", + "_-8D:_-JI/instance/removeChildAt": "alternativa.engine3d.core:View/removeChildAt", + "_-8D:_-JI/instance/getChildAt": "alternativa.engine3d.core:View/getChildAt", + "_-8D:_-JI/instance/getChildIndex": "alternativa.engine3d.core:View/getChildIndex", + "_-8D:_-JI/instance/setChildIndex": "alternativa.engine3d.core:View/setChildIndex", + "_-8D:_-JI/instance/swapChildren": "alternativa.engine3d.core:View/swapChildren", + "_-8D:_-JI/instance/swapChildrenAt": "alternativa.engine3d.core:View/swapChildrenAt", + "_-8D:_-JI/instance/getChildByName": "alternativa.engine3d.core:View/getChildByName", + "_-8D:_-JI/instance/contains": "alternativa.engine3d.core:View/contains", + "_-8D:_-JI/class/init": "alternativa.engine3d.core:View/contains" + }, + "_-d6": { + "_-8D:_-d6": null, + "_-8D:_-d6/instance/init": "alternativa.engine3d.core:VertexAttributes/VertexAttributes", + "_-8D:_-d6/class/init": "alternativa.engine3d.core:VertexAttributes/VertexAttributes", + "_-8D:_-d6/class/_-Dk": "alternativa.engine3d.core:VertexAttributes/getAttributeStride" + }, + "_-jw": { + "_-8D:_-jw": null, + "_-8D:_-jw/instance/init": "alternativa.engine3d.core:Transform3D/Transform3D", + "_-8D:_-jw/instance/_-h6": "alternativa.engine3d.core:Transform3D/identity", + "_-8D:_-jw/instance/compose": "alternativa.engine3d.core:Transform3D/compose", + "_-8D:_-jw/instance/_-eY": "alternativa.engine3d.core:Transform3D/composeInverse", + "_-8D:_-jw/instance/invert": "alternativa.engine3d.core:Transform3D/invert", + "_-8D:_-jw/instance/_-PQ": "alternativa.engine3d.core:Transform3D/initFromVector", + "_-8D:_-jw/instance/append": "alternativa.engine3d.core:Transform3D/append", + "_-8D:_-jw/instance/prepend": "alternativa.engine3d.core:Transform3D/prepend", + "_-8D:_-jw/instance/combine": "alternativa.engine3d.core:Transform3D/combine", + "_-8D:_-jw/instance/calculateInversion": "alternativa.engine3d.core:Transform3D/calculateInversion", + "_-8D:_-jw/instance/copy": "alternativa.engine3d.core:Transform3D/copy", + "_-8D:_-jw/instance/toString": "alternativa.engine3d.core:Transform3D/toString", + "_-8D:_-jw/class/init": "alternativa.engine3d.core:Transform3D/toString" + }, + "_-QF": { + "_-8D:_-QF": null, + "_-8D:_-QF/instance/init": "alternativa.engine3d.core:DrawUnit/DrawUnit", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:clear": "alternativa.engine3d.core:DrawUnit/alternativa3d:clear", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:setTextureAt": "alternativa.engine3d.core:DrawUnit/alternativa3d:setTextureAt", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:setVertexBufferAt": "alternativa.engine3d.core:DrawUnit/alternativa3d:setVertexBufferAt", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:_-SD": "alternativa.engine3d.core:DrawUnit/alternativa3d:setVertexConstantsFromVector", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d: if": "alternativa.engine3d.core:DrawUnit/alternativa3d:setVertexConstantsFromNumbers", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:_-Xd": "alternativa.engine3d.core:DrawUnit/alternativa3d:setVertexConstantsFromTransform", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:_-mQ": "alternativa.engine3d.core:DrawUnit/alternativa3d:setProjectionConstants", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:_-Yg": "alternativa.engine3d.core:DrawUnit/alternativa3d:setFragmentConstantsFromVector", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:_-Ry": "alternativa.engine3d.core:DrawUnit/alternativa3d:setFragmentConstantsFromNumbers", + "_-8D:_-QF/instance/http://alternativaplatform.com/en/alternativa3d:_-mZ": "alternativa.engine3d.core:DrawUnit/alternativa3d:setFragmentConstantsFromTransform", + "_-8D:_-QF/class/init": "alternativa.engine3d.core:DrawUnit/alternativa3d:setFragmentConstantsFromTransform" + }, + "_-7p": { + "_-8D:_-7p": null, + "_-8D:_-7p/instance/init": "alternativa.engine3d.core:Renderer/Renderer", + "_-8D:_-7p/instance/http://alternativaplatform.com/en/alternativa3d:render": "alternativa.engine3d.core:Renderer/alternativa3d:render", + "_-8D:_-7p/instance/http://alternativaplatform.com/en/alternativa3d:_-2s": "alternativa.engine3d.core:Renderer/alternativa3d:createDrawUnit", + "_-8D:_-7p/instance/http://alternativaplatform.com/en/alternativa3d:_-SH": "alternativa.engine3d.core:Renderer/alternativa3d:addDrawUnit", + "_-8D:_-7p/instance/_-eR:_-8r": "alternativa.engine3d.core:Renderer/protected:renderDrawUnit", + "_-8D:_-7p/instance/http://alternativaplatform.com/en/alternativa3d:_-4E": "alternativa.engine3d.core:Renderer/alternativa3d:sortByAverageZ", + "_-8D:_-7p/class/init": "alternativa.engine3d.core:Renderer/alternativa3d:sortByAverageZ" + }, + "_-be": { + "_-8D:_-be": null, + "_-8D:_-be/instance/init": "alternativa.engine3d.core:Camera3D/Camera3D", + "_-8D:_-be/instance/render": "alternativa.engine3d.core:Camera3D/render", + "_-8D:_-be/instance/projectGlobal": "alternativa.engine3d.core:Camera3D/projectGlobal", + "_-8D:_-be/instance/calculateRay": "alternativa.engine3d.core:Camera3D/calculateRay", + "_-8D:_-be/instance/clone": "alternativa.engine3d.core:Camera3D/clone", + "_-8D:_-be/instance/_-l4:clonePropertiesFrom": "alternativa.engine3d.core:Camera3D/protected:clonePropertiesFrom", + "_-8D:_-be/instance/http://alternativaplatform.com/en/alternativa3d:calculateProjection": "alternativa.engine3d.core:Camera3D/alternativa3d:calculateProjection", + "_-8D:_-be/instance/http://alternativaplatform.com/en/alternativa3d:calculateFrustum": "alternativa.engine3d.core:Camera3D/alternativa3d:calculateFrustum", + "_-8D:_-be/instance/http://alternativaplatform.com/en/alternativa3d:calculateRays": "alternativa.engine3d.core:Camera3D/alternativa3d:calculateRays", + "_-8D:_-be/instance/addToDebug": "alternativa.engine3d.core:Camera3D/addToDebug", + "_-8D:_-be/instance/removeFromDebug": "alternativa.engine3d.core:Camera3D/removeFromDebug", + "_-8D:_-be/instance/http://alternativaplatform.com/en/alternativa3d:checkInDebug": "alternativa.engine3d.core:Camera3D/alternativa3d:checkInDebug", + "_-8D:_-be/instance/startTimer": "alternativa.engine3d.core:Camera3D/startTimer", + "_-8D:_-be/instance/stopTimer": "alternativa.engine3d.core:Camera3D/stopTimer", + "_-8D:_-be/instance/diagram/getter": "alternativa.engine3d.core:Camera3D/diagram/get", + "_-8D:_-be/instance/diagramAlign/getter": "alternativa.engine3d.core:Camera3D/diagramAlign/get", + "_-8D:_-be/instance/diagramAlign/setter": "alternativa.engine3d.core:Camera3D/diagramAlign/set", + "_-8D:_-be/instance/diagramHorizontalMargin/getter": "alternativa.engine3d.core:Camera3D/diagramHorizontalMargin/get", + "_-8D:_-be/instance/diagramHorizontalMargin/setter": "alternativa.engine3d.core:Camera3D/diagramHorizontalMargin/set", + "_-8D:_-be/instance/diagramVerticalMargin/getter": "alternativa.engine3d.core:Camera3D/diagramVerticalMargin/get", + "_-8D:_-be/instance/diagramVerticalMargin/setter": "alternativa.engine3d.core:Camera3D/diagramVerticalMargin/set", + "_-8D:_-be/instance/_-8D:_-be/instance/createDiagram": "alternativa.engine3d.core:Camera3D/private:createDiagram", + "_-8D:_-be/instance/_-8D:_-be/instance/resizeDiagram": "alternativa.engine3d.core:Camera3D/private:resizeDiagram", + "_-8D:_-be/instance/_-8D:_-be/instance/updateDiagram": "alternativa.engine3d.core:Camera3D/private:updateDiagram", + "_-8D:_-be/instance/_-8D:_-be/instance/formatInt": "alternativa.engine3d.core:Camera3D/private:formatInt", + "_-8D:_-be/instance/_-8D:_-be/instance/bytesToString": "alternativa.engine3d.core:Camera3D/private:bytesToString", + "_-8D:_-be/class/init": "alternativa.engine3d.core:Camera3D/private:bytesToString" + }, + "_-CB": { + "_-8D:_-CB": null, + "_-8D:_-CB/instance/init": "alternativa.engine3d.core:RayIntersectionData/RayIntersectionData", + "_-8D:_-CB/instance/toString": "alternativa.engine3d.core:RayIntersectionData/toString", + "_-8D:_-CB/class/init": "alternativa.engine3d.core:RayIntersectionData/toString" + }, + "_-WR": { + "_-8D:_-WR": null, + "_-8D:_-WR/instance/init": "alternativa.engine3d.core:RenderPriority/RenderPriority", + "_-8D:_-WR/class/init": "alternativa.engine3d.core:RenderPriority/RenderPriority" + }, + "_-Lg": { + "_-8D:_-Lg": null, + "_-8D:_-Lg/instance/init": "alternativa.engine3d.core:CullingPlane/CullingPlane", + "_-8D:_-Lg/instance/create": "alternativa.engine3d.core:CullingPlane/create", + "_-8D:_-Lg/class/init": "alternativa.engine3d.core:CullingPlane/create", + "_-8D:_-Lg/class/create": "alternativa.engine3d.core:CullingPlane/create" + } + }, + "_-8w": { + "_-HR": { + "_-8w:_-HR": null, + "_-8w:_-HR/instance/init": "alternativa.tanks.sounds:TurretSoundCallback/TurretSoundCallback", + "_-8w:_-HR/instance/onTurretControlChanged": "alternativa.tanks.sounds:TurretSoundCallback/onTurretControlChanged", + "_-8w:_-HR/instance/_-8w:_-HR/instance/_-nG": "alternativa.tanks.sounds:TurretSoundCallback/private:playMusic", + "_-8w:_-HR/instance/_-8w:_-HR/instance/_-G5": "alternativa.tanks.sounds:TurretSoundCallback/private:loopMusic", + "_-8w:_-HR/class/init": "alternativa.tanks.sounds:TurretSoundCallback/private:loopMusic" + }, + "_-bh": { + "_-8w:_-bh": null, + "_-8w:_-bh/instance/init": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/FlamethrowerSoundWeaponCallback", + "_-8w:_-bh/instance/_-RC": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/onConicAreaWeaponStart", + "_-8w:_-bh/instance/_-8w:_-bh/instance/loop": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/private:loop", + "_-8w:_-bh/instance/_-8w:_-bh/instance/_-Bg": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/private:onLoop", + "_-8w:_-bh/instance/_-pY": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/onConicAreaWeaponStop", + "_-8w:_-bh/instance/_-H": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/onConicAreaWeaponTargetSetChange", + "_-8w:_-bh/class/init": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback/onConicAreaWeaponTargetSetChange" + }, + "_-87": { + "_-8w:_-87": null, + "_-8w:_-87/instance/init": "alternativa.tanks.sounds:SoundInstantShotWeaponCallback/SoundInstantShotWeaponCallback", + "_-8w:_-87/instance/override": "alternativa.tanks.sounds:SoundInstantShotWeaponCallback/onInstantShot", + "_-8w:_-87/class/init": "alternativa.tanks.sounds:SoundInstantShotWeaponCallback/onInstantShot" + }, + "_-BD": { + "_-8w:_-BD": null, + "_-8w:_-BD/instance/init": "alternativa.tanks.sounds:ChassisSoundCallback/ChassisSoundCallback", + "_-8w:_-BD/instance/_-Hg": "alternativa.tanks.sounds:ChassisSoundCallback/onControlChanged", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-Or": "alternativa.tanks.sounds:ChassisSoundCallback/private:stopMoving", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-3q": "alternativa.tanks.sounds:ChassisSoundCallback/private:onStopMoveComplete", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-3U": "alternativa.tanks.sounds:ChassisSoundCallback/private:startMoving", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-WL": "alternativa.tanks.sounds:ChassisSoundCallback/private:onStartMoveComplete", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-nP": "alternativa.tanks.sounds:ChassisSoundCallback/private:moveLoop", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-6B": "alternativa.tanks.sounds:ChassisSoundCallback/private:onMoveLoop", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-64": "alternativa.tanks.sounds:ChassisSoundCallback/private:idleLoop", + "_-8w:_-BD/instance/_-8w:_-BD/instance/_-X-": "alternativa.tanks.sounds:ChassisSoundCallback/private:onIdleLoop", + "_-8w:_-BD/instance/ else": "alternativa.tanks.sounds:ChassisSoundCallback/onSync", + "_-8w:_-BD/class/init": "alternativa.tanks.sounds:ChassisSoundCallback/onSync" + } + }, + "_-aG": { + "_-7-": { + "_-aG:_-7-": null, + "_-aG:_-7-/instance/init": "alternativa.engine3d.primitives:Box/Box", + "_-aG:_-7-/instance/_-aG:_-7-/instance/init/_-6x": "alternativa.engine3d.primitives:Box/private:createFace", + "_-aG:_-7-/instance/clone": "alternativa.engine3d.primitives:Box/clone", + "_-aG:_-7-/class/init": "alternativa.engine3d.primitives:Box/clone" + } + }, + "_-US": { + "_-h8": { + "_-US:_-h8": null, + "_-US:_-h8/instance/init": "alternativa.physics:BodyMaterial/BodyMaterial", + "_-US:_-h8/class/init": "alternativa.physics:BodyMaterial/BodyMaterial" + }, + "_-BV": { + "_-US:_-BV": null, + "_-US:_-BV/instance/init": "alternativa.physics:Body/Body", + "_-US:_-BV/instance/_-jH": "alternativa.physics:Body/addCollisionPrimitive", + "_-US:_-BV/instance/_-0h": "alternativa.physics:Body/removeCollisionPrimitive", + "_-US:_-BV/instance/interpolate": "alternativa.physics:Body/interpolate", + "_-US:_-BV/instance/_-YT": "alternativa.physics:Body/interpolateSLERP", + "_-US:_-BV/instance/_-MB": "alternativa.physics:Body/interpolateToMatrix", + "_-US:_-BV/instance/_-Dc": "alternativa.physics:Body/interpolateToMatrixSLERP", + "_-US:_-BV/instance/_-Vi": "alternativa.physics:Body/setPosition", + "_-US:_-BV/instance/_-oa": "alternativa.physics:Body/setPositionXYZ", + "_-US:_-BV/instance/_-8g": "alternativa.physics:Body/setVelocity", + "_-US:_-BV/instance/_-7q": "alternativa.physics:Body/setVelocityXYZ", + "_-US:_-BV/instance/_-6F": "alternativa.physics:Body/setRotation", + "_-US:_-BV/instance/_-U4": "alternativa.physics:Body/setRotationXYZ", + "_-US:_-BV/instance/_-LV": "alternativa.physics:Body/setOrientation", + "_-US:_-BV/instance/_-83": "alternativa.physics:Body/setOrientationWXYZ", + "_-US:_-BV/instance/_-Xs": "alternativa.physics:Body/applyRelPosWorldImpulse", + "_-US:_-BV/instance/_-Qy": "alternativa.physics:Body/addForce", + "_-US:_-BV/instance/_-YL": "alternativa.physics:Body/addForceXYZ", + "_-US:_-BV/instance/_-JQ": "alternativa.physics:Body/addWorldForceXYZ", + "_-US:_-BV/instance/_-IO": "alternativa.physics:Body/addWorldForce", + "_-US:_-BV/instance/_-c9": "alternativa.physics:Body/addWorldForceScaled", + "_-US:_-BV/instance/_-p0": "alternativa.physics:Body/addLocalForce", + "_-US:_-BV/instance/_-o-": "alternativa.physics:Body/addWorldForceAtLocalPoint", + "_-US:_-BV/instance/_-cZ": "alternativa.physics:Body/addTorque", + "_-US:_-BV/instance/_-US:_-fI": "alternativa.physics:Body/alternativa.physics:clearAccumulators", + "_-US:_-BV/instance/_-US:_-iY": "alternativa.physics:Body/alternativa.physics:calcAccelerations", + "_-US:_-BV/instance/_-4V": "alternativa.physics:Body/calcDerivedData", + "_-US:_-BV/instance/use": "alternativa.physics:Body/saveState", + "_-US:_-BV/instance/_-US:_-l8": "alternativa.physics:Body/alternativa.physics:restoreState", + "_-US:_-BV/instance/_-US:_-6G": "alternativa.physics:Body/alternativa.physics:integrateVelocity", + "_-US:_-BV/instance/_-US:_-Y7": "alternativa.physics:Body/alternativa.physics:integratePosition", + "_-US:_-BV/class/init": "alternativa.physics:Body/alternativa.physics:integratePosition" + }, + "_-kG": { + "_-US:_-kG": null, + "_-US:_-kG/instance/init": "alternativa.physics:PhysicsUtils/PhysicsUtils", + "_-US:_-kG/class/init": "alternativa.physics:PhysicsUtils/PhysicsUtils", + "_-US:_-kG/class/_-Il": "alternativa.physics:PhysicsUtils/getBoxInvInertia", + "_-US:_-kG/class/_-mL": "alternativa.physics:PhysicsUtils/getCylinderInvInertia" + }, + "_-J8": { + "_-US:_-J8": null, + "_-US:_-J8/instance/init": "alternativa.physics:BodyState/BodyState", + "_-US:_-J8/instance/copy": "alternativa.physics:BodyState/copy", + "_-US:_-J8/class/init": "alternativa.physics:BodyState/copy" + }, + "_-6h": { + "_-US:_-6h": null, + "_-US:_-6h/instance/init": "alternativa.physics:Contact/Contact", + "_-US:_-6h/class/init": "alternativa.physics:Contact/Contact" + }, + "_-cR": { + "_-US:_-cR": null, + "_-US:_-cR/instance/init": "alternativa.physics:ContactPoint/ContactPoint", + "_-US:_-cR/instance/copyFrom": "alternativa.physics:ContactPoint/copyFrom", + "_-US:_-cR/class/init": "alternativa.physics:ContactPoint/copyFrom" + }, + "_-CA": { + "_-US:_-CA": null, + "_-US:_-CA/instance/init": "alternativa.physics:BodyListItem/BodyListItem", + "_-US:_-CA/instance/dispose": "alternativa.physics:BodyListItem/dispose", + "_-US:_-CA/class/init": "alternativa.physics:BodyListItem/dispose", + "_-US:_-CA/class/create": "alternativa.physics:BodyListItem/create", + "_-US:_-CA/class/_-gH": "alternativa.physics:BodyListItem/clearPool" + }, + "_-4q": { + "_-US:_-4q": null, + "_-US:_-4q/instance/init": "alternativa.physics:CollisionPrimitiveListItem/CollisionPrimitiveListItem", + "_-US:_-4q/instance/dispose": "alternativa.physics:CollisionPrimitiveListItem/dispose", + "_-US:_-4q/class/init": "alternativa.physics:CollisionPrimitiveListItem/dispose", + "_-US:_-4q/class/create": "alternativa.physics:CollisionPrimitiveListItem/create", + "_-US:_-4q/class/_-gH": "alternativa.physics:CollisionPrimitiveListItem/clearPool" + }, + "_-G2": { + "_-US:_-G2": null, + "_-US:_-G2/instance/init": "alternativa.physics:CollisionPrimitiveList/CollisionPrimitiveList", + "_-US:_-G2/instance/append": "alternativa.physics:CollisionPrimitiveList/append", + "_-US:_-G2/instance/remove": "alternativa.physics:CollisionPrimitiveList/remove", + "_-US:_-G2/instance/_-Di": "alternativa.physics:CollisionPrimitiveList/findItem", + "_-US:_-G2/instance/clear": "alternativa.physics:CollisionPrimitiveList/clear", + "_-US:_-G2/class/init": "alternativa.physics:CollisionPrimitiveList/clear" + }, + "_-DB": { + "_-US:_-DB": null, + "_-US:_-DB/instance/init": "alternativa.physics:PhysicsScene/PhysicsScene", + "_-US:_-DB/instance/gravity/getter": "alternativa.physics:PhysicsScene/gravity/get", + "_-US:_-DB/instance/gravity/setter": "alternativa.physics:PhysicsScene/gravity/set", + "_-US:_-DB/instance/_-D8": "alternativa.physics:PhysicsScene/addBody", + "_-US:_-DB/instance/_-2x": "alternativa.physics:PhysicsScene/removeBody", + "_-US:_-DB/instance/_-mI": "alternativa.physics:PhysicsScene/addConstraint", + "_-US:_-DB/instance/_-b2": "alternativa.physics:PhysicsScene/removeConstraint", + "_-US:_-DB/instance/_-US:_-DB/instance/_-o": "alternativa.physics:PhysicsScene/private:applyForces", + "_-US:_-DB/instance/_-US:_-DB/instance/_-Be": "alternativa.physics:PhysicsScene/private:detectCollisions", + "_-US:_-DB/instance/_-US:_-DB/instance/_-QP": "alternativa.physics:PhysicsScene/private:preProcessContacts", + "_-US:_-DB/instance/_-US:_-DB/instance/_-Ff": "alternativa.physics:PhysicsScene/private:processContacts", + "_-US:_-DB/instance/_-US:_-DB/instance/_-kT": "alternativa.physics:PhysicsScene/private:resolveContact", + "_-US:_-DB/instance/_-US:_-DB/instance/_-BC": "alternativa.physics:PhysicsScene/private:resolveContactPoint", + "_-US:_-DB/instance/_-US:_-DB/instance/_-Az": "alternativa.physics:PhysicsScene/private:calcSepVelocity", + "_-US:_-DB/instance/_-US:_-DB/instance/_-ns": "alternativa.physics:PhysicsScene/private:intergateVelocities", + "_-US:_-DB/instance/_-US:_-DB/instance/_-6I": "alternativa.physics:PhysicsScene/private:integratePositions", + "_-US:_-DB/instance/_-US:_-DB/instance/_-CZ": "alternativa.physics:PhysicsScene/private:postPhysics", + "_-US:_-DB/instance/update": "alternativa.physics:PhysicsScene/update", + "_-US:_-DB/class/init": "alternativa.physics:PhysicsScene/update" + }, + "_-Xi": { + "_-US:_-Xi": null, + "_-US:_-Xi/instance/init": "alternativa.physics:BodyList/BodyList", + "_-US:_-Xi/instance/append": "alternativa.physics:BodyList/append", + "_-US:_-Xi/instance/remove": "alternativa.physics:BodyList/remove", + "_-US:_-Xi/instance/_-Di": "alternativa.physics:BodyList/findItem", + "_-US:_-Xi/class/init": "alternativa.physics:BodyList/findItem" + } + }, + "_-KT": { + "_-mN": { + "_-KT:_-mN": null, + "_-KT:_-mN/instance/init": "alternativa.osgi.service.console.variables:ConsoleVarString/ConsoleVarString", + "_-KT:_-mN/instance/_-ao:acceptInput": "alternativa.osgi.service.console.variables:ConsoleVarString/protected:acceptInput", + "_-KT:_-mN/instance/toString": "alternativa.osgi.service.console.variables:ConsoleVarString/toString", + "_-KT:_-mN/class/init": "alternativa.osgi.service.console.variables:ConsoleVarString/toString" + }, + "_-UT": { + "_-KT:_-UT": null, + "_-KT:_-UT/instance/init": "alternativa.osgi.service.console.variables:ConsoleVarInt/ConsoleVarInt", + "_-KT:_-UT/instance/_-4P:acceptInput": "alternativa.osgi.service.console.variables:ConsoleVarInt/protected:acceptInput", + "_-KT:_-UT/instance/toString": "alternativa.osgi.service.console.variables:ConsoleVarInt/toString", + "_-KT:_-UT/class/init": "alternativa.osgi.service.console.variables:ConsoleVarInt/toString" + }, + "_-6L": { + "_-KT:_-6L": null, + "_-KT:_-6L/instance/init": "alternativa.osgi.service.console.variables:ConsoleVar/ConsoleVar", + "_-KT:_-6L/instance/_-cC": "alternativa.osgi.service.console.variables:ConsoleVar/getName", + "_-KT:_-6L/instance/destroy": "alternativa.osgi.service.console.variables:ConsoleVar/destroy", + "_-KT:_-6L/instance/_-AO": "alternativa.osgi.service.console.variables:ConsoleVar/processConsoleInput", + "_-KT:_-6L/instance/_-6Q:acceptInput": "alternativa.osgi.service.console.variables:ConsoleVar/protected:acceptInput", + "_-KT:_-6L/instance/toString": "alternativa.osgi.service.console.variables:ConsoleVar/toString", + "_-KT:_-6L/class/init": "alternativa.osgi.service.console.variables:ConsoleVar/toString" + }, + "_-Ju": { + "_-KT:_-Ju": null, + "_-KT:_-Ju/instance/init": "alternativa.osgi.service.console.variables:ConsoleVarFloat/ConsoleVarFloat", + "_-KT:_-Ju/instance/_-Ij:acceptInput": "alternativa.osgi.service.console.variables:ConsoleVarFloat/protected:acceptInput", + "_-KT:_-Ju/instance/toString": "alternativa.osgi.service.console.variables:ConsoleVarFloat/toString", + "_-KT:_-Ju/class/init": "alternativa.osgi.service.console.variables:ConsoleVarFloat/toString" + } + }, + "_-9Z": { + "_-47": { + "_-9Z:_-47": null, + "_-9Z:_-47/instance/init": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/FlamethrowerSFXComponent", + "_-9Z:_-47/instance/initComponent": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/initComponent", + "_-9Z:_-47/instance/addToGame": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/addToGame", + "_-9Z:_-47/instance/removeFromGame": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/removeFromGame", + "_-9Z:_-47/instance/start": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/start", + "_-9Z:_-47/instance/stop": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/stop", + "_-9Z:_-47/class/init#0": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/stop", + "_-9Z:_-47/class/init#1": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent/init" + }, + "_-Fj": { + "_-9Z:_-Fj": null, + "_-9Z:_-Fj/instance/init": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXData/FlamethrowerSFXData", + "_-9Z:_-Fj/class/init": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXData/FlamethrowerSFXData" + }, + "_-7Z": { + "_-9Z:_-7Z": null, + "_-9Z:_-7Z/instance/init": "alternativa.tanks.game.weapons.flamethrower:FlameThrower/FlameThrower", + "_-9Z:_-7Z/instance/_-9Z:_-7Z/keyFrame1": "alternativa.tanks.game.weapons.flamethrower:FlameThrower/private:keyFrame1", + "_-9Z:_-7Z/instance/_-9Z:_-7Z/_-ky": "alternativa.tanks.game.weapons.flamethrower:FlameThrower/private:randomDirection", + "_-9Z:_-7Z/instance/_-9Z:_-7Z/_-C8": "alternativa.tanks.game.weapons.flamethrower:FlameThrower/private:displacePosition", + "_-9Z:_-7Z/class/init": "alternativa.tanks.game.weapons.flamethrower:FlameThrower/private:displacePosition" + }, + "_-q4": { + "_-9Z:_-q4": null, + "_-9Z:_-q4/instance/init#0": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/FlamethrowerGraphicEffect", + "_-9Z:_-q4/instance/addedToRenderSystem": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/addedToRenderSystem", + "_-9Z:_-q4/instance/init#1": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/init", + "_-9Z:_-q4/instance/play": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/play", + "_-9Z:_-q4/instance/destroy": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/destroy", + "_-9Z:_-q4/instance/_-Bz": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/kill", + "_-9Z:_-q4/instance/_-9Z:_-q4/_-XT": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/private:tryToAddParticle", + "_-9Z:_-q4/instance/_-9Z:_-q4/_-0X": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/private:addParticle", + "_-9Z:_-q4/instance/_-9Z:_-q4/_-90": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/private:removeParticle", + "_-9Z:_-q4/class/init": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect/private:removeParticle" + } + }, + "_-V-": { + "_-aY": { + "_-V-:_-aY": null, + "_-V-:_-aY/instance/init": "alternativa.tanks.game.utils:GameMathUtils/GameMathUtils", + "_-V-:_-aY/class/init": "alternativa.tanks.game.utils:GameMathUtils/GameMathUtils", + "_-V-:_-aY/class/clamp": "alternativa.tanks.game.utils:GameMathUtils/clamp", + "_-V-:_-aY/class/_-d": "alternativa.tanks.game.utils:GameMathUtils/clampAngle", + "_-V-:_-aY/class/_-Bu": "alternativa.tanks.game.utils:GameMathUtils/clampAngleFast", + "_-V-:_-aY/class/_-Fi": "alternativa.tanks.game.utils:GameMathUtils/advanceValueTowards" + }, + "_-mw": { + "_-V-:_-mw": null, + "_-V-:_-mw/instance/init": "alternativa.tanks.game.utils:TimeStat/TimeStat", + "_-V-:_-mw/instance/_-Ay": "alternativa.tanks.game.utils:TimeStat/startTick", + "_-V-:_-mw/instance/_-BM": "alternativa.tanks.game.utils:TimeStat/stopTick", + "_-V-:_-mw/class/init": "alternativa.tanks.game.utils:TimeStat/stopTick" + }, + "_-h5": { + "_-V-:_-h5": null, + "_-V-:_-h5/instance/init": "alternativa.tanks.game.utils:Task/Task", + "_-V-:_-h5/instance/run": "alternativa.tanks.game.utils:Task/run", + "_-V-:_-h5/instance/_-V-:_-jq/setter": "alternativa.tanks.game.utils:Task/alternativa.tanks.game.utils:taskSequence/set", + "_-V-:_-h5/instance/_-o7:_-3Z": "alternativa.tanks.game.utils:Task/protected:completeTask", + "_-V-:_-h5/class/init": "alternativa.tanks.game.utils:Task/protected:completeTask" + }, + "_-Ui": { + "_-V-:_-Ui": null, + "_-V-:_-Ui/instance/init": "alternativa.tanks.game.utils:TaskSequence/TaskSequence", + "_-V-:_-Ui/instance/addTask": "alternativa.tanks.game.utils:TaskSequence/addTask", + "_-V-:_-Ui/instance/run": "alternativa.tanks.game.utils:TaskSequence/run", + "_-V-:_-Ui/instance/_-V-:_-Ui/instance/_-JM": "alternativa.tanks.game.utils:TaskSequence/private:runCurrentTask", + "_-V-:_-Ui/instance/_-V-:taskComplete": "alternativa.tanks.game.utils:TaskSequence/alternativa.tanks.game.utils:taskComplete", + "_-V-:_-Ui/class/init": "alternativa.tanks.game.utils:TaskSequence/alternativa.tanks.game.utils:taskComplete" + }, + "_-HJ": { + "_-V-:_-HJ": null, + "_-V-:_-HJ/instance/init": "alternativa.tanks.game.utils:BitFlags/BitFlags", + "_-V-:_-HJ/instance/_-UO": "alternativa.tanks.game.utils:BitFlags/setMask", + "_-V-:_-HJ/instance/_-Lp": "alternativa.tanks.game.utils:BitFlags/clearMask", + "_-V-:_-HJ/instance/_-K0": "alternativa.tanks.game.utils:BitFlags/hasAny", + "_-V-:_-HJ/instance/_-f4": "alternativa.tanks.game.utils:BitFlags/hasAll", + "_-V-:_-HJ/class/init": "alternativa.tanks.game.utils:BitFlags/hasAll" + }, + "_-Q4": { + "_-V-:_-Q4": null, + "_-V-:_-Q4/instance/init": "alternativa.tanks.game.utils:PhysicsParsingUtils/PhysicsParsingUtils", + "_-V-:_-Q4/class/init": "alternativa.tanks.game.utils:PhysicsParsingUtils/PhysicsParsingUtils", + "_-V-:_-Q4/class/_-MS": "alternativa.tanks.game.utils:PhysicsParsingUtils/parseBox", + "_-V-:_-Q4/class/_-4D": "alternativa.tanks.game.utils:PhysicsParsingUtils/parsePlane", + "_-V-:_-Q4/class/_-eU": "alternativa.tanks.game.utils:PhysicsParsingUtils/parseCollisionTriangles", + "_-V-:_-Q4/class/_-V-:_-Q4/class/_-jh": "alternativa.tanks.game.utils:PhysicsParsingUtils/private:createTriangle" + }, + "_-C1": { + "_-V-:_-C1": null, + "_-V-:_-C1/instance/init": "alternativa.tanks.game.utils:BitVector/BitVector", + "_-V-:_-C1/instance/_-Kg": "alternativa.tanks.game.utils:BitVector/setBit", + "_-V-:_-C1/instance/_-2C": "alternativa.tanks.game.utils:BitVector/getBit", + "_-V-:_-C1/instance/clear": "alternativa.tanks.game.utils:BitVector/clear", + "_-V-:_-C1/instance/copyFrom": "alternativa.tanks.game.utils:BitVector/copyFrom", + "_-V-:_-C1/class/init": "alternativa.tanks.game.utils:BitVector/copyFrom" + }, + "_-Eh": { + "_-V-:_-Eh": null, + "_-V-:_-Eh/instance/init": "alternativa.tanks.game.utils:SFXUtils/SFXUtils", + "_-V-:_-Eh/class/init": "alternativa.tanks.game.utils:SFXUtils/SFXUtils", + "_-V-:_-Eh/class/_-Wr": "alternativa.tanks.game.utils:SFXUtils/alignObjectPlaneToView" + } + }, + "_-Yn": { + "_-L8": { + "_-Yn:_-L8": null, + "_-Yn:_-L8/instance/init": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound/PointHitRound", + "_-Yn:_-L8/instance/_-NO": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound/setCallback", + "_-Yn:_-L8/instance/_-qN": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound/shoot", + "_-Yn:_-L8/instance/_-DF": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound/showHitEffects", + "_-Yn:_-L8/instance/_-Yn:_-L8/_-UL": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound/private:doShowHitEffects", + "_-Yn:_-L8/class/init": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound/private:doShowHitEffects" + } + }, + "_-MU": { + "_-du": { + "_-MU:_-du": null, + "_-MU:_-du/instance/init": "alternativa.osgi.service.clientlog:ClientLog/ClientLog", + "_-MU:_-du/instance/log": "alternativa.osgi.service.clientlog:ClientLog/log", + "_-MU:_-du/instance/logError": "alternativa.osgi.service.clientlog:ClientLog/logError", + "_-MU:_-du/instance/getChannelStrings": "alternativa.osgi.service.clientlog:ClientLog/getChannelStrings", + "_-MU:_-du/instance/addLogListener": "alternativa.osgi.service.clientlog:ClientLog/addLogListener", + "_-MU:_-du/instance/removeLogListener": "alternativa.osgi.service.clientlog:ClientLog/removeLogListener", + "_-MU:_-du/instance/addLogChannelListener": "alternativa.osgi.service.clientlog:ClientLog/addLogChannelListener", + "_-MU:_-du/instance/removeLogChannelListener": "alternativa.osgi.service.clientlog:ClientLog/removeLogChannelListener", + "_-MU:_-du/instance/getChannelNames": "alternativa.osgi.service.clientlog:ClientLog/getChannelNames", + "_-MU:_-du/instance/_-MU:_-du/instance/_-V": "alternativa.osgi.service.clientlog:ClientLog/private:getChannel", + "_-MU:_-du/instance/_-MU:_-du/instance/_-UW": "alternativa.osgi.service.clientlog:ClientLog/private:insertVars", + "_-MU:_-du/class/init": "alternativa.osgi.service.clientlog:ClientLog/private:insertVars" + }, + "_-XQ": { + "_-MU:_-XQ": null, + "_-MU:_-XQ/instance/init": "alternativa.osgi.service.clientlog:IClientLogChannelListener/IClientLogChannelListener", + "_-MU:_-XQ/instance/_-3z:_-qU": "alternativa.osgi.service.clientlog:IClientLogChannelListener/alternativa.osgi.service.clientlog:IClientLogChannelListener:onLogEntryAdded", + "_-MU:_-XQ/class/init": "alternativa.osgi.service.clientlog:IClientLogChannelListener/alternativa.osgi.service.clientlog:IClientLogChannelListener:onLogEntryAdded" + }, + "_-5-": { + "_-MU:_-5-": null, + "_-MU:_-5-/instance/init": "alternativa.osgi.service.clientlog:IClientLog/IClientLog", + "_-MU:_-5-/instance/_-YP:logError": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:logError", + "_-MU:_-5-/instance/_-YP:getChannelStrings": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:getChannelStrings", + "_-MU:_-5-/instance/_-YP:addLogListener": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:addLogListener", + "_-MU:_-5-/instance/_-YP:removeLogListener": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:removeLogListener", + "_-MU:_-5-/instance/_-YP:addLogChannelListener": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:addLogChannelListener", + "_-MU:_-5-/instance/_-YP:removeLogChannelListener": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:removeLogChannelListener", + "_-MU:_-5-/instance/_-YP:getChannelNames": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:getChannelNames", + "_-MU:_-5-/class/init": "alternativa.osgi.service.clientlog:IClientLog/alternativa.osgi.service.clientlog:IClientLog:getChannelNames" + }, + "_-bV": { + "_-MU:_-bV": null, + "_-MU:_-bV/instance/init": "alternativa.osgi.service.clientlog:IClientLogBase/IClientLogBase", + "_-MU:_-bV/instance/_-KO:log": "alternativa.osgi.service.clientlog:IClientLogBase/alternativa.osgi.service.clientlog:IClientLogBase:log", + "_-MU:_-bV/class/init": "alternativa.osgi.service.clientlog:IClientLogBase/alternativa.osgi.service.clientlog:IClientLogBase:log" + }, + "_-Z6": { + "_-MU:_-Z6": null, + "_-MU:_-Z6/instance/init": "alternativa.osgi.service.clientlog:ClientLogChannel/ClientLogChannel", + "_-MU:_-Z6/instance/name/getter": "alternativa.osgi.service.clientlog:ClientLogChannel/name/get", + "_-MU:_-Z6/instance/log": "alternativa.osgi.service.clientlog:ClientLogChannel/log", + "_-MU:_-Z6/instance/_-BS": "alternativa.osgi.service.clientlog:ClientLogChannel/getStrings", + "_-MU:_-Z6/instance/addLogListener": "alternativa.osgi.service.clientlog:ClientLogChannel/addLogListener", + "_-MU:_-Z6/instance/removeLogListener": "alternativa.osgi.service.clientlog:ClientLogChannel/removeLogListener", + "_-MU:_-Z6/class/init": "alternativa.osgi.service.clientlog:ClientLogChannel/removeLogListener" + } + }, + "default": { + "_-dq": { + "default:_-dq": null, + "default:_-dq/instance/init": "alternativa.tanks.game.entities.tank:IChassisManualControlCallback/IChassisManualControlCallback", + "default:_-dq/instance/_-ZH:_-Hg": "alternativa.tanks.game.entities.tank:IChassisManualControlCallback/alternativa.tanks.game.entities.tank:IChassisManualControlCallback:onControlChanged", + "default:_-dq/instance/_-ZH: else": "alternativa.tanks.game.entities.tank:IChassisManualControlCallback/alternativa.tanks.game.entities.tank:IChassisManualControlCallback:onSync", + "default:_-dq/class/init": "alternativa.tanks.game.entities.tank:IChassisManualControlCallback/alternativa.tanks.game.entities.tank:IChassisManualControlCallback:onSync" + }, + "_-7d": { + "default:_-7d": null, + "default:_-7d/instance/init": "alternativa.tanks.game.entities.tank:TankPart/TankPart", + "default:_-7d/class/init": "alternativa.tanks.game.entities.tank:TankPart/TankPart" + }, + "_-BH": { + "default:_-BH": null, + "default:_-BH/instance/init": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/IControllableTrackedChassisComponent", + "default:_-BH/instance/_-LR:setChassisControls": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setChassisControls", + "default:_-BH/instance/_-LR:_-Vi": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setPosition", + "default:_-BH/instance/_-LR:_-oa": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setPositionXYZ", + "default:_-BH/instance/_-LR:_-JK": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setLinearVelocity", + "default:_-BH/instance/_-LR:setLinearVelocityXYZ": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setLinearVelocityXYZ", + "default:_-BH/instance/_-LR:_-VU": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setAngularVelocity", + "default:_-BH/instance/_-LR:setAngularVelocityXYZ": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setAngularVelocityXYZ", + "default:_-BH/instance/_-LR:_-LV": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setOrientation", + "default:_-BH/instance/_-LR:_-C3": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setOrientationXYZ", + "default:_-BH/class/init": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent/alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent:setOrientationXYZ" + }, + "native": { + "default:native": null, + "default:native/instance/init": "alternativa.tanks.game.entities.tank:IActivatingStateCallback/IActivatingStateCallback", + "default:native/instance/_-9e:_-PH": "alternativa.tanks.game.entities.tank:IActivatingStateCallback/alternativa.tanks.game.entities.tank:IActivatingStateCallback:onCanActivate", + "default:native/class/init": "alternativa.tanks.game.entities.tank:IActivatingStateCallback/alternativa.tanks.game.entities.tank:IActivatingStateCallback:onCanActivate" + }, + "_-b7": { + "default:_-b7": null, + "default:_-b7/instance/init": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/BasicWeaponManualControlComponent", + "default:_-b7/instance/initComponent": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/initComponent", + "default:_-b7/instance/addToGame": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/addToGame", + "default:_-b7/instance/removeFromGame": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/removeFromGame", + "default:_-b7/instance/runLogic": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/runLogic", + "default:_-b7/instance/default:_-b7/_-bM": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:onKey", + "default:_-b7/instance/default:_-b7/_-eA": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:enable", + "default:_-b7/instance/default:_-b7/_-eI": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:disable", + "default:_-b7/instance/default:_-b7/_-Dt": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:onSetInactiveState", + "default:_-b7/instance/default:_-b7/_-Tj": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:onSetActiveState", + "default:_-b7/instance/default:_-b7/_-7L": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:onBattleFinished", + "default:_-b7/class/init": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent/private:onBattleFinished" + }, + "_-2W": { + "default:_-2W": null, + "default:_-2W/instance/init": "alternativa.tanks.game.entities.tank:TankPartMaterials/TankPartMaterials", + "default:_-2W/class/init": "alternativa.tanks.game.entities.tank:TankPartMaterials/TankPartMaterials" + }, + "_-Vp": { + "default:_-Vp": null, + "default:_-Vp/instance/init": "alternativa.tanks.game.entities.tank:TankTurret/TankTurret", + "default:_-Vp/class/init": "alternativa.tanks.game.entities.tank:TankTurret/TankTurret" + }, + "_-gX": { + "default:_-gX": null, + "default:_-gX/instance/init": "alternativa.tanks.game.entities.tank:TankControlComponent/TankControlComponent", + "default:_-gX/instance/addToGame": "alternativa.tanks.game.entities.tank:TankControlComponent/addToGame", + "default:_-gX/instance/removeFromGame": "alternativa.tanks.game.entities.tank:TankControlComponent/removeFromGame", + "default:_-gX/instance/_-it": "alternativa.tanks.game.entities.tank:TankControlComponent/setState", + "default:_-gX/instance/_-86": "alternativa.tanks.game.entities.tank:TankControlComponent/onGameEvent", + "default:_-gX/class/init": "alternativa.tanks.game.entities.tank:TankControlComponent/onGameEvent" + }, + "_-4a": { + "default:_-4a": null, + "default:_-4a/instance/init": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/TurretManualControlComponent", + "default:_-4a/instance/initComponent": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/initComponent", + "default:_-4a/instance/addToGame": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/addToGame", + "default:_-4a/instance/removeFromGame": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/removeFromGame", + "default:_-4a/instance/runLogic": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/runLogic", + "default:_-4a/instance/default:_-4a/_-Tj": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:onSetActiveState", + "default:_-4a/instance/default:_-4a/_-Dt": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:onSetInactiveState", + "default:_-4a/instance/default:_-4a/_-eA": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:enable", + "default:_-4a/instance/default:_-4a/_-eI": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:disable", + "default:_-4a/instance/default:_-4a/_-7L": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:onBattleFinished", + "default:_-4a/instance/default:_-4a/_-Ze": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:onKeyDown", + "default:_-4a/class/init": "alternativa.tanks.game.entities.tank:TurretManualControlComponent/private:onKeyDown" + }, + "_-dT": { + "default:_-dT": null, + "default:_-dT/instance/init": "alternativa.tanks.game.entities.tank:TankHull/TankHull", + "default:_-dT/class/init": "alternativa.tanks.game.entities.tank:TankHull/TankHull" + }, + "_-9I": { + "default:_-9I": null, + "default:_-9I/instance/init": "alternativa.tanks.game.entities.tank:TankGameState/TankGameState", + "default:_-9I/instance/toString": "alternativa.tanks.game.entities.tank:TankGameState/toString", + "default:_-9I/class/init": "alternativa.tanks.game.entities.tank:TankGameState/toString" + }, + "_-MC": { + "default:_-MC": null, + "default:_-MC/instance/init": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/TrackedChassisManualControlComponent", + "default:_-MC/instance/initComponent": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/initComponent", + "default:_-MC/instance/addToGame": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/addToGame", + "default:_-MC/instance/removeFromGame": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/removeFromGame", + "default:_-MC/instance/runLogic": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/runLogic", + "default:_-MC/instance/default:_-MC/_-Tj": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/private:onSetActiveState", + "default:_-MC/instance/default:_-MC/_-Dt": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/private:onSetInactiveState", + "default:_-MC/instance/default:_-MC/_-eA": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/private:enable", + "default:_-MC/instance/default:_-MC/_-eI": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/private:disable", + "default:_-MC/instance/default:_-MC/_-7L": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/private:onBattleFinished", + "default:_-MC/class/init": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent/private:onBattleFinished" + }, + "_-af": { + "default:_-af": null, + "default:_-af/instance/init": "alternativa.tanks.game.entities.tank:ITurretManualControlCallback/ITurretManualControlCallback", + "default:_-af/instance/false:onTurretControlChanged": "alternativa.tanks.game.entities.tank:ITurretManualControlCallback/alternativa.tanks.game.entities.tank:ITurretManualControlCallback:onTurretControlChanged", + "default:_-af/class/init": "alternativa.tanks.game.entities.tank:ITurretManualControlCallback/alternativa.tanks.game.entities.tank:ITurretManualControlCallback:onTurretControlChanged" + }, + "_-49": { + "default:_-49": null, + "default:_-49/instance/init": "alternativa.tanks.game.entities.tank:TankWheel/TankWheel", + "default:_-49/class/init": "alternativa.tanks.game.entities.tank:TankWheel/TankWheel" + }, + "_-kU": { + "default:_-kU": null, + "default:_-kU/instance/init": "alternativa.tanks.game.entities.tank:TankEvents/TankEvents", + "default:_-kU/class/init": "alternativa.tanks.game.entities.tank:TankEvents/TankEvents" + } + }, + "_-oA": { + "A3D2OmniLight": { + "_-oA:A3D2OmniLight": null, + "_-oA:A3D2OmniLight/instance/init": "versions.version2.a3d.objects:A3D2OmniLight/A3D2OmniLight", + "_-oA:A3D2OmniLight/instance/attenuationBegin/getter": "versions.version2.a3d.objects:A3D2OmniLight/attenuationBegin/get", + "_-oA:A3D2OmniLight/instance/attenuationBegin/setter": "versions.version2.a3d.objects:A3D2OmniLight/attenuationBegin/set", + "_-oA:A3D2OmniLight/instance/attenuationEnd/getter": "versions.version2.a3d.objects:A3D2OmniLight/attenuationEnd/get", + "_-oA:A3D2OmniLight/instance/attenuationEnd/setter": "versions.version2.a3d.objects:A3D2OmniLight/attenuationEnd/set", + "_-oA:A3D2OmniLight/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2OmniLight/boundBoxId/get", + "_-oA:A3D2OmniLight/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2OmniLight/boundBoxId/set", + "_-oA:A3D2OmniLight/instance/color/getter": "versions.version2.a3d.objects:A3D2OmniLight/color/get", + "_-oA:A3D2OmniLight/instance/color/setter": "versions.version2.a3d.objects:A3D2OmniLight/color/set", + "_-oA:A3D2OmniLight/instance/id/getter": "versions.version2.a3d.objects:A3D2OmniLight/id/get", + "_-oA:A3D2OmniLight/instance/id/setter": "versions.version2.a3d.objects:A3D2OmniLight/id/set", + "_-oA:A3D2OmniLight/instance/intensity/getter": "versions.version2.a3d.objects:A3D2OmniLight/intensity/get", + "_-oA:A3D2OmniLight/instance/intensity/setter": "versions.version2.a3d.objects:A3D2OmniLight/intensity/set", + "_-oA:A3D2OmniLight/instance/name/getter": "versions.version2.a3d.objects:A3D2OmniLight/name/get", + "_-oA:A3D2OmniLight/instance/name/setter": "versions.version2.a3d.objects:A3D2OmniLight/name/set", + "_-oA:A3D2OmniLight/instance/parentId/getter": "versions.version2.a3d.objects:A3D2OmniLight/parentId/get", + "_-oA:A3D2OmniLight/instance/parentId/setter": "versions.version2.a3d.objects:A3D2OmniLight/parentId/set", + "_-oA:A3D2OmniLight/instance/transform/getter": "versions.version2.a3d.objects:A3D2OmniLight/transform/get", + "_-oA:A3D2OmniLight/instance/transform/setter": "versions.version2.a3d.objects:A3D2OmniLight/transform/set", + "_-oA:A3D2OmniLight/instance/visible/getter": "versions.version2.a3d.objects:A3D2OmniLight/visible/get", + "_-oA:A3D2OmniLight/instance/visible/setter": "versions.version2.a3d.objects:A3D2OmniLight/visible/set", + "_-oA:A3D2OmniLight/instance/toString": "versions.version2.a3d.objects:A3D2OmniLight/toString", + "_-oA:A3D2OmniLight/class/init": "versions.version2.a3d.objects:A3D2OmniLight/toString" + }, + "A3D2Box": { + "_-oA:A3D2Box": null, + "_-oA:A3D2Box/instance/init": "versions.version2.a3d.objects:A3D2Box/A3D2Box", + "_-oA:A3D2Box/instance/box/getter": "versions.version2.a3d.objects:A3D2Box/box/get", + "_-oA:A3D2Box/instance/box/setter": "versions.version2.a3d.objects:A3D2Box/box/set", + "_-oA:A3D2Box/instance/id/getter": "versions.version2.a3d.objects:A3D2Box/id/get", + "_-oA:A3D2Box/instance/id/setter": "versions.version2.a3d.objects:A3D2Box/id/set", + "_-oA:A3D2Box/instance/toString": "versions.version2.a3d.objects:A3D2Box/toString", + "_-oA:A3D2Box/class/init": "versions.version2.a3d.objects:A3D2Box/toString" + }, + "A3D2JointBindTransform": { + "_-oA:A3D2JointBindTransform": null, + "_-oA:A3D2JointBindTransform/instance/init": "versions.version2.a3d.objects:A3D2JointBindTransform/A3D2JointBindTransform", + "_-oA:A3D2JointBindTransform/instance/bindPoseTransform/getter": "versions.version2.a3d.objects:A3D2JointBindTransform/bindPoseTransform/get", + "_-oA:A3D2JointBindTransform/instance/bindPoseTransform/setter": "versions.version2.a3d.objects:A3D2JointBindTransform/bindPoseTransform/set", + "_-oA:A3D2JointBindTransform/instance/id/getter": "versions.version2.a3d.objects:A3D2JointBindTransform/id/get", + "_-oA:A3D2JointBindTransform/instance/id/setter": "versions.version2.a3d.objects:A3D2JointBindTransform/id/set", + "_-oA:A3D2JointBindTransform/instance/toString": "versions.version2.a3d.objects:A3D2JointBindTransform/toString", + "_-oA:A3D2JointBindTransform/class/init": "versions.version2.a3d.objects:A3D2JointBindTransform/toString" + }, + "A3D2Sprite": { + "_-oA:A3D2Sprite": null, + "_-oA:A3D2Sprite/instance/init": "versions.version2.a3d.objects:A3D2Sprite/A3D2Sprite", + "_-oA:A3D2Sprite/instance/alwaysOnTop/getter": "versions.version2.a3d.objects:A3D2Sprite/alwaysOnTop/get", + "_-oA:A3D2Sprite/instance/alwaysOnTop/setter": "versions.version2.a3d.objects:A3D2Sprite/alwaysOnTop/set", + "_-oA:A3D2Sprite/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2Sprite/boundBoxId/get", + "_-oA:A3D2Sprite/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2Sprite/boundBoxId/set", + "_-oA:A3D2Sprite/instance/height/getter": "versions.version2.a3d.objects:A3D2Sprite/height/get", + "_-oA:A3D2Sprite/instance/height/setter": "versions.version2.a3d.objects:A3D2Sprite/height/set", + "_-oA:A3D2Sprite/instance/id/getter": "versions.version2.a3d.objects:A3D2Sprite/id/get", + "_-oA:A3D2Sprite/instance/id/setter": "versions.version2.a3d.objects:A3D2Sprite/id/set", + "_-oA:A3D2Sprite/instance/materialId/getter": "versions.version2.a3d.objects:A3D2Sprite/materialId/get", + "_-oA:A3D2Sprite/instance/materialId/setter": "versions.version2.a3d.objects:A3D2Sprite/materialId/set", + "_-oA:A3D2Sprite/instance/name/getter": "versions.version2.a3d.objects:A3D2Sprite/name/get", + "_-oA:A3D2Sprite/instance/name/setter": "versions.version2.a3d.objects:A3D2Sprite/name/set", + "_-oA:A3D2Sprite/instance/originX/getter": "versions.version2.a3d.objects:A3D2Sprite/originX/get", + "_-oA:A3D2Sprite/instance/originX/setter": "versions.version2.a3d.objects:A3D2Sprite/originX/set", + "_-oA:A3D2Sprite/instance/originY/getter": "versions.version2.a3d.objects:A3D2Sprite/originY/get", + "_-oA:A3D2Sprite/instance/originY/setter": "versions.version2.a3d.objects:A3D2Sprite/originY/set", + "_-oA:A3D2Sprite/instance/parentId/getter": "versions.version2.a3d.objects:A3D2Sprite/parentId/get", + "_-oA:A3D2Sprite/instance/parentId/setter": "versions.version2.a3d.objects:A3D2Sprite/parentId/set", + "_-oA:A3D2Sprite/instance/perspectiveScale/getter": "versions.version2.a3d.objects:A3D2Sprite/perspectiveScale/get", + "_-oA:A3D2Sprite/instance/perspectiveScale/setter": "versions.version2.a3d.objects:A3D2Sprite/perspectiveScale/set", + "_-oA:A3D2Sprite/instance/rotation/getter": "versions.version2.a3d.objects:A3D2Sprite/rotation/get", + "_-oA:A3D2Sprite/instance/rotation/setter": "versions.version2.a3d.objects:A3D2Sprite/rotation/set", + "_-oA:A3D2Sprite/instance/transform/getter": "versions.version2.a3d.objects:A3D2Sprite/transform/get", + "_-oA:A3D2Sprite/instance/transform/setter": "versions.version2.a3d.objects:A3D2Sprite/transform/set", + "_-oA:A3D2Sprite/instance/visible/getter": "versions.version2.a3d.objects:A3D2Sprite/visible/get", + "_-oA:A3D2Sprite/instance/visible/setter": "versions.version2.a3d.objects:A3D2Sprite/visible/set", + "_-oA:A3D2Sprite/instance/width/getter": "versions.version2.a3d.objects:A3D2Sprite/width/get", + "_-oA:A3D2Sprite/instance/width/setter": "versions.version2.a3d.objects:A3D2Sprite/width/set", + "_-oA:A3D2Sprite/instance/toString": "versions.version2.a3d.objects:A3D2Sprite/toString", + "_-oA:A3D2Sprite/class/init": "versions.version2.a3d.objects:A3D2Sprite/toString" + }, + "A3D2SpotLight": { + "_-oA:A3D2SpotLight": null, + "_-oA:A3D2SpotLight/instance/init": "versions.version2.a3d.objects:A3D2SpotLight/A3D2SpotLight", + "_-oA:A3D2SpotLight/instance/attenuationBegin/getter": "versions.version2.a3d.objects:A3D2SpotLight/attenuationBegin/get", + "_-oA:A3D2SpotLight/instance/attenuationBegin/setter": "versions.version2.a3d.objects:A3D2SpotLight/attenuationBegin/set", + "_-oA:A3D2SpotLight/instance/attenuationEnd/getter": "versions.version2.a3d.objects:A3D2SpotLight/attenuationEnd/get", + "_-oA:A3D2SpotLight/instance/attenuationEnd/setter": "versions.version2.a3d.objects:A3D2SpotLight/attenuationEnd/set", + "_-oA:A3D2SpotLight/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2SpotLight/boundBoxId/get", + "_-oA:A3D2SpotLight/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2SpotLight/boundBoxId/set", + "_-oA:A3D2SpotLight/instance/color/getter": "versions.version2.a3d.objects:A3D2SpotLight/color/get", + "_-oA:A3D2SpotLight/instance/color/setter": "versions.version2.a3d.objects:A3D2SpotLight/color/set", + "_-oA:A3D2SpotLight/instance/falloff/getter": "versions.version2.a3d.objects:A3D2SpotLight/falloff/get", + "_-oA:A3D2SpotLight/instance/falloff/setter": "versions.version2.a3d.objects:A3D2SpotLight/falloff/set", + "_-oA:A3D2SpotLight/instance/hotspot/getter": "versions.version2.a3d.objects:A3D2SpotLight/hotspot/get", + "_-oA:A3D2SpotLight/instance/hotspot/setter": "versions.version2.a3d.objects:A3D2SpotLight/hotspot/set", + "_-oA:A3D2SpotLight/instance/id/getter": "versions.version2.a3d.objects:A3D2SpotLight/id/get", + "_-oA:A3D2SpotLight/instance/id/setter": "versions.version2.a3d.objects:A3D2SpotLight/id/set", + "_-oA:A3D2SpotLight/instance/intensity/getter": "versions.version2.a3d.objects:A3D2SpotLight/intensity/get", + "_-oA:A3D2SpotLight/instance/intensity/setter": "versions.version2.a3d.objects:A3D2SpotLight/intensity/set", + "_-oA:A3D2SpotLight/instance/name/getter": "versions.version2.a3d.objects:A3D2SpotLight/name/get", + "_-oA:A3D2SpotLight/instance/name/setter": "versions.version2.a3d.objects:A3D2SpotLight/name/set", + "_-oA:A3D2SpotLight/instance/parentId/getter": "versions.version2.a3d.objects:A3D2SpotLight/parentId/get", + "_-oA:A3D2SpotLight/instance/parentId/setter": "versions.version2.a3d.objects:A3D2SpotLight/parentId/set", + "_-oA:A3D2SpotLight/instance/transform/getter": "versions.version2.a3d.objects:A3D2SpotLight/transform/get", + "_-oA:A3D2SpotLight/instance/transform/setter": "versions.version2.a3d.objects:A3D2SpotLight/transform/set", + "_-oA:A3D2SpotLight/instance/visible/getter": "versions.version2.a3d.objects:A3D2SpotLight/visible/get", + "_-oA:A3D2SpotLight/instance/visible/setter": "versions.version2.a3d.objects:A3D2SpotLight/visible/set", + "_-oA:A3D2SpotLight/instance/toString": "versions.version2.a3d.objects:A3D2SpotLight/toString", + "_-oA:A3D2SpotLight/class/init": "versions.version2.a3d.objects:A3D2SpotLight/toString" + }, + "A3D2Object": { + "_-oA:A3D2Object": null, + "_-oA:A3D2Object/instance/init": "versions.version2.a3d.objects:A3D2Object/A3D2Object", + "_-oA:A3D2Object/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2Object/boundBoxId/get", + "_-oA:A3D2Object/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2Object/boundBoxId/set", + "_-oA:A3D2Object/instance/id/getter": "versions.version2.a3d.objects:A3D2Object/id/get", + "_-oA:A3D2Object/instance/id/setter": "versions.version2.a3d.objects:A3D2Object/id/set", + "_-oA:A3D2Object/instance/name/getter": "versions.version2.a3d.objects:A3D2Object/name/get", + "_-oA:A3D2Object/instance/name/setter": "versions.version2.a3d.objects:A3D2Object/name/set", + "_-oA:A3D2Object/instance/parentId/getter": "versions.version2.a3d.objects:A3D2Object/parentId/get", + "_-oA:A3D2Object/instance/parentId/setter": "versions.version2.a3d.objects:A3D2Object/parentId/set", + "_-oA:A3D2Object/instance/transform/getter": "versions.version2.a3d.objects:A3D2Object/transform/get", + "_-oA:A3D2Object/instance/transform/setter": "versions.version2.a3d.objects:A3D2Object/transform/set", + "_-oA:A3D2Object/instance/visible/getter": "versions.version2.a3d.objects:A3D2Object/visible/get", + "_-oA:A3D2Object/instance/visible/setter": "versions.version2.a3d.objects:A3D2Object/visible/set", + "_-oA:A3D2Object/instance/toString": "versions.version2.a3d.objects:A3D2Object/toString", + "_-oA:A3D2Object/class/init": "versions.version2.a3d.objects:A3D2Object/toString" + }, + "A3D2Decal": { + "_-oA:A3D2Decal": null, + "_-oA:A3D2Decal/instance/init": "versions.version2.a3d.objects:A3D2Decal/A3D2Decal", + "_-oA:A3D2Decal/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2Decal/boundBoxId/get", + "_-oA:A3D2Decal/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2Decal/boundBoxId/set", + "_-oA:A3D2Decal/instance/id/getter": "versions.version2.a3d.objects:A3D2Decal/id/get", + "_-oA:A3D2Decal/instance/id/setter": "versions.version2.a3d.objects:A3D2Decal/id/set", + "_-oA:A3D2Decal/instance/indexBufferId/getter": "versions.version2.a3d.objects:A3D2Decal/indexBufferId/get", + "_-oA:A3D2Decal/instance/indexBufferId/setter": "versions.version2.a3d.objects:A3D2Decal/indexBufferId/set", + "_-oA:A3D2Decal/instance/name/getter": "versions.version2.a3d.objects:A3D2Decal/name/get", + "_-oA:A3D2Decal/instance/name/setter": "versions.version2.a3d.objects:A3D2Decal/name/set", + "_-oA:A3D2Decal/instance/offset/getter": "versions.version2.a3d.objects:A3D2Decal/offset/get", + "_-oA:A3D2Decal/instance/offset/setter": "versions.version2.a3d.objects:A3D2Decal/offset/set", + "_-oA:A3D2Decal/instance/parentId/getter": "versions.version2.a3d.objects:A3D2Decal/parentId/get", + "_-oA:A3D2Decal/instance/parentId/setter": "versions.version2.a3d.objects:A3D2Decal/parentId/set", + "_-oA:A3D2Decal/instance/surfaces/getter": "versions.version2.a3d.objects:A3D2Decal/surfaces/get", + "_-oA:A3D2Decal/instance/surfaces/setter": "versions.version2.a3d.objects:A3D2Decal/surfaces/set", + "_-oA:A3D2Decal/instance/transform/getter": "versions.version2.a3d.objects:A3D2Decal/transform/get", + "_-oA:A3D2Decal/instance/transform/setter": "versions.version2.a3d.objects:A3D2Decal/transform/set", + "_-oA:A3D2Decal/instance/vertexBuffers/getter": "versions.version2.a3d.objects:A3D2Decal/vertexBuffers/get", + "_-oA:A3D2Decal/instance/vertexBuffers/setter": "versions.version2.a3d.objects:A3D2Decal/vertexBuffers/set", + "_-oA:A3D2Decal/instance/visible/getter": "versions.version2.a3d.objects:A3D2Decal/visible/get", + "_-oA:A3D2Decal/instance/visible/setter": "versions.version2.a3d.objects:A3D2Decal/visible/set", + "_-oA:A3D2Decal/instance/toString": "versions.version2.a3d.objects:A3D2Decal/toString", + "_-oA:A3D2Decal/class/init": "versions.version2.a3d.objects:A3D2Decal/toString" + }, + "A3D2Surface": { + "_-oA:A3D2Surface": null, + "_-oA:A3D2Surface/instance/init": "versions.version2.a3d.objects:A3D2Surface/A3D2Surface", + "_-oA:A3D2Surface/instance/indexBegin/getter": "versions.version2.a3d.objects:A3D2Surface/indexBegin/get", + "_-oA:A3D2Surface/instance/indexBegin/setter": "versions.version2.a3d.objects:A3D2Surface/indexBegin/set", + "_-oA:A3D2Surface/instance/materialId/getter": "versions.version2.a3d.objects:A3D2Surface/materialId/get", + "_-oA:A3D2Surface/instance/materialId/setter": "versions.version2.a3d.objects:A3D2Surface/materialId/set", + "_-oA:A3D2Surface/instance/numTriangles/getter": "versions.version2.a3d.objects:A3D2Surface/numTriangles/get", + "_-oA:A3D2Surface/instance/numTriangles/setter": "versions.version2.a3d.objects:A3D2Surface/numTriangles/set", + "_-oA:A3D2Surface/instance/toString": "versions.version2.a3d.objects:A3D2Surface/toString", + "_-oA:A3D2Surface/class/init": "versions.version2.a3d.objects:A3D2Surface/toString" + }, + "A3D2Transform": { + "_-oA:A3D2Transform": null, + "_-oA:A3D2Transform/instance/init": "versions.version2.a3d.objects:A3D2Transform/A3D2Transform", + "_-oA:A3D2Transform/instance/matrix/getter": "versions.version2.a3d.objects:A3D2Transform/matrix/get", + "_-oA:A3D2Transform/instance/matrix/setter": "versions.version2.a3d.objects:A3D2Transform/matrix/set", + "_-oA:A3D2Transform/instance/toString": "versions.version2.a3d.objects:A3D2Transform/toString", + "_-oA:A3D2Transform/class/init": "versions.version2.a3d.objects:A3D2Transform/toString" + }, + "A3D2Skin": { + "_-oA:A3D2Skin": null, + "_-oA:A3D2Skin/instance/init": "versions.version2.a3d.objects:A3D2Skin/A3D2Skin", + "_-oA:A3D2Skin/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2Skin/boundBoxId/get", + "_-oA:A3D2Skin/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2Skin/boundBoxId/set", + "_-oA:A3D2Skin/instance/id/getter": "versions.version2.a3d.objects:A3D2Skin/id/get", + "_-oA:A3D2Skin/instance/id/setter": "versions.version2.a3d.objects:A3D2Skin/id/set", + "_-oA:A3D2Skin/instance/indexBufferId/getter": "versions.version2.a3d.objects:A3D2Skin/indexBufferId/get", + "_-oA:A3D2Skin/instance/indexBufferId/setter": "versions.version2.a3d.objects:A3D2Skin/indexBufferId/set", + "_-oA:A3D2Skin/instance/jointBindTransforms/getter": "versions.version2.a3d.objects:A3D2Skin/jointBindTransforms/get", + "_-oA:A3D2Skin/instance/jointBindTransforms/setter": "versions.version2.a3d.objects:A3D2Skin/jointBindTransforms/set", + "_-oA:A3D2Skin/instance/joints/getter": "versions.version2.a3d.objects:A3D2Skin/joints/get", + "_-oA:A3D2Skin/instance/joints/setter": "versions.version2.a3d.objects:A3D2Skin/joints/set", + "_-oA:A3D2Skin/instance/name/getter": "versions.version2.a3d.objects:A3D2Skin/name/get", + "_-oA:A3D2Skin/instance/name/setter": "versions.version2.a3d.objects:A3D2Skin/name/set", + "_-oA:A3D2Skin/instance/numJoints/getter": "versions.version2.a3d.objects:A3D2Skin/numJoints/get", + "_-oA:A3D2Skin/instance/numJoints/setter": "versions.version2.a3d.objects:A3D2Skin/numJoints/set", + "_-oA:A3D2Skin/instance/parentId/getter": "versions.version2.a3d.objects:A3D2Skin/parentId/get", + "_-oA:A3D2Skin/instance/parentId/setter": "versions.version2.a3d.objects:A3D2Skin/parentId/set", + "_-oA:A3D2Skin/instance/surfaces/getter": "versions.version2.a3d.objects:A3D2Skin/surfaces/get", + "_-oA:A3D2Skin/instance/surfaces/setter": "versions.version2.a3d.objects:A3D2Skin/surfaces/set", + "_-oA:A3D2Skin/instance/transform/getter": "versions.version2.a3d.objects:A3D2Skin/transform/get", + "_-oA:A3D2Skin/instance/transform/setter": "versions.version2.a3d.objects:A3D2Skin/transform/set", + "_-oA:A3D2Skin/instance/vertexBuffers/getter": "versions.version2.a3d.objects:A3D2Skin/vertexBuffers/get", + "_-oA:A3D2Skin/instance/vertexBuffers/setter": "versions.version2.a3d.objects:A3D2Skin/vertexBuffers/set", + "_-oA:A3D2Skin/instance/visible/getter": "versions.version2.a3d.objects:A3D2Skin/visible/get", + "_-oA:A3D2Skin/instance/visible/setter": "versions.version2.a3d.objects:A3D2Skin/visible/set", + "_-oA:A3D2Skin/instance/toString": "versions.version2.a3d.objects:A3D2Skin/toString", + "_-oA:A3D2Skin/class/init": "versions.version2.a3d.objects:A3D2Skin/toString" + }, + "A3D2AmbientLight": { + "_-oA:A3D2AmbientLight": null, + "_-oA:A3D2AmbientLight/instance/init": "versions.version2.a3d.objects:A3D2AmbientLight/A3D2AmbientLight", + "_-oA:A3D2AmbientLight/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2AmbientLight/boundBoxId/get", + "_-oA:A3D2AmbientLight/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2AmbientLight/boundBoxId/set", + "_-oA:A3D2AmbientLight/instance/color/getter": "versions.version2.a3d.objects:A3D2AmbientLight/color/get", + "_-oA:A3D2AmbientLight/instance/color/setter": "versions.version2.a3d.objects:A3D2AmbientLight/color/set", + "_-oA:A3D2AmbientLight/instance/id/getter": "versions.version2.a3d.objects:A3D2AmbientLight/id/get", + "_-oA:A3D2AmbientLight/instance/id/setter": "versions.version2.a3d.objects:A3D2AmbientLight/id/set", + "_-oA:A3D2AmbientLight/instance/intensity/getter": "versions.version2.a3d.objects:A3D2AmbientLight/intensity/get", + "_-oA:A3D2AmbientLight/instance/intensity/setter": "versions.version2.a3d.objects:A3D2AmbientLight/intensity/set", + "_-oA:A3D2AmbientLight/instance/name/getter": "versions.version2.a3d.objects:A3D2AmbientLight/name/get", + "_-oA:A3D2AmbientLight/instance/name/setter": "versions.version2.a3d.objects:A3D2AmbientLight/name/set", + "_-oA:A3D2AmbientLight/instance/parentId/getter": "versions.version2.a3d.objects:A3D2AmbientLight/parentId/get", + "_-oA:A3D2AmbientLight/instance/parentId/setter": "versions.version2.a3d.objects:A3D2AmbientLight/parentId/set", + "_-oA:A3D2AmbientLight/instance/transform/getter": "versions.version2.a3d.objects:A3D2AmbientLight/transform/get", + "_-oA:A3D2AmbientLight/instance/transform/setter": "versions.version2.a3d.objects:A3D2AmbientLight/transform/set", + "_-oA:A3D2AmbientLight/instance/visible/getter": "versions.version2.a3d.objects:A3D2AmbientLight/visible/get", + "_-oA:A3D2AmbientLight/instance/visible/setter": "versions.version2.a3d.objects:A3D2AmbientLight/visible/set", + "_-oA:A3D2AmbientLight/instance/toString": "versions.version2.a3d.objects:A3D2AmbientLight/toString", + "_-oA:A3D2AmbientLight/class/init": "versions.version2.a3d.objects:A3D2AmbientLight/toString" + }, + "A3D2Mesh": { + "_-oA:A3D2Mesh": null, + "_-oA:A3D2Mesh/instance/init": "versions.version2.a3d.objects:A3D2Mesh/A3D2Mesh", + "_-oA:A3D2Mesh/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2Mesh/boundBoxId/get", + "_-oA:A3D2Mesh/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2Mesh/boundBoxId/set", + "_-oA:A3D2Mesh/instance/id/getter": "versions.version2.a3d.objects:A3D2Mesh/id/get", + "_-oA:A3D2Mesh/instance/id/setter": "versions.version2.a3d.objects:A3D2Mesh/id/set", + "_-oA:A3D2Mesh/instance/indexBufferId/getter": "versions.version2.a3d.objects:A3D2Mesh/indexBufferId/get", + "_-oA:A3D2Mesh/instance/indexBufferId/setter": "versions.version2.a3d.objects:A3D2Mesh/indexBufferId/set", + "_-oA:A3D2Mesh/instance/name/getter": "versions.version2.a3d.objects:A3D2Mesh/name/get", + "_-oA:A3D2Mesh/instance/name/setter": "versions.version2.a3d.objects:A3D2Mesh/name/set", + "_-oA:A3D2Mesh/instance/parentId/getter": "versions.version2.a3d.objects:A3D2Mesh/parentId/get", + "_-oA:A3D2Mesh/instance/parentId/setter": "versions.version2.a3d.objects:A3D2Mesh/parentId/set", + "_-oA:A3D2Mesh/instance/surfaces/getter": "versions.version2.a3d.objects:A3D2Mesh/surfaces/get", + "_-oA:A3D2Mesh/instance/surfaces/setter": "versions.version2.a3d.objects:A3D2Mesh/surfaces/set", + "_-oA:A3D2Mesh/instance/transform/getter": "versions.version2.a3d.objects:A3D2Mesh/transform/get", + "_-oA:A3D2Mesh/instance/transform/setter": "versions.version2.a3d.objects:A3D2Mesh/transform/set", + "_-oA:A3D2Mesh/instance/vertexBuffers/getter": "versions.version2.a3d.objects:A3D2Mesh/vertexBuffers/get", + "_-oA:A3D2Mesh/instance/vertexBuffers/setter": "versions.version2.a3d.objects:A3D2Mesh/vertexBuffers/set", + "_-oA:A3D2Mesh/instance/visible/getter": "versions.version2.a3d.objects:A3D2Mesh/visible/get", + "_-oA:A3D2Mesh/instance/visible/setter": "versions.version2.a3d.objects:A3D2Mesh/visible/set", + "_-oA:A3D2Mesh/instance/toString": "versions.version2.a3d.objects:A3D2Mesh/toString", + "_-oA:A3D2Mesh/class/init": "versions.version2.a3d.objects:A3D2Mesh/toString" + }, + "A3D2Joint": { + "_-oA:A3D2Joint": null, + "_-oA:A3D2Joint/instance/init": "versions.version2.a3d.objects:A3D2Joint/A3D2Joint", + "_-oA:A3D2Joint/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2Joint/boundBoxId/get", + "_-oA:A3D2Joint/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2Joint/boundBoxId/set", + "_-oA:A3D2Joint/instance/id/getter": "versions.version2.a3d.objects:A3D2Joint/id/get", + "_-oA:A3D2Joint/instance/id/setter": "versions.version2.a3d.objects:A3D2Joint/id/set", + "_-oA:A3D2Joint/instance/name/getter": "versions.version2.a3d.objects:A3D2Joint/name/get", + "_-oA:A3D2Joint/instance/name/setter": "versions.version2.a3d.objects:A3D2Joint/name/set", + "_-oA:A3D2Joint/instance/parentId/getter": "versions.version2.a3d.objects:A3D2Joint/parentId/get", + "_-oA:A3D2Joint/instance/parentId/setter": "versions.version2.a3d.objects:A3D2Joint/parentId/set", + "_-oA:A3D2Joint/instance/transform/getter": "versions.version2.a3d.objects:A3D2Joint/transform/get", + "_-oA:A3D2Joint/instance/transform/setter": "versions.version2.a3d.objects:A3D2Joint/transform/set", + "_-oA:A3D2Joint/instance/visible/getter": "versions.version2.a3d.objects:A3D2Joint/visible/get", + "_-oA:A3D2Joint/instance/visible/setter": "versions.version2.a3d.objects:A3D2Joint/visible/set", + "_-oA:A3D2Joint/instance/toString": "versions.version2.a3d.objects:A3D2Joint/toString", + "_-oA:A3D2Joint/class/init": "versions.version2.a3d.objects:A3D2Joint/toString" + }, + "A3D2DirectionalLight": { + "_-oA:A3D2DirectionalLight": null, + "_-oA:A3D2DirectionalLight/instance/init": "versions.version2.a3d.objects:A3D2DirectionalLight/A3D2DirectionalLight", + "_-oA:A3D2DirectionalLight/instance/boundBoxId/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/boundBoxId/get", + "_-oA:A3D2DirectionalLight/instance/boundBoxId/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/boundBoxId/set", + "_-oA:A3D2DirectionalLight/instance/color/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/color/get", + "_-oA:A3D2DirectionalLight/instance/color/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/color/set", + "_-oA:A3D2DirectionalLight/instance/id/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/id/get", + "_-oA:A3D2DirectionalLight/instance/id/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/id/set", + "_-oA:A3D2DirectionalLight/instance/intensity/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/intensity/get", + "_-oA:A3D2DirectionalLight/instance/intensity/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/intensity/set", + "_-oA:A3D2DirectionalLight/instance/name/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/name/get", + "_-oA:A3D2DirectionalLight/instance/name/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/name/set", + "_-oA:A3D2DirectionalLight/instance/parentId/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/parentId/get", + "_-oA:A3D2DirectionalLight/instance/parentId/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/parentId/set", + "_-oA:A3D2DirectionalLight/instance/transform/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/transform/get", + "_-oA:A3D2DirectionalLight/instance/transform/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/transform/set", + "_-oA:A3D2DirectionalLight/instance/visible/getter": "versions.version2.a3d.objects:A3D2DirectionalLight/visible/get", + "_-oA:A3D2DirectionalLight/instance/visible/setter": "versions.version2.a3d.objects:A3D2DirectionalLight/visible/set", + "_-oA:A3D2DirectionalLight/instance/toString": "versions.version2.a3d.objects:A3D2DirectionalLight/toString", + "_-oA:A3D2DirectionalLight/class/init": "versions.version2.a3d.objects:A3D2DirectionalLight/toString" + } + }, + "_-az": { + "_-ps": { + "_-az:_-ps": null, + "_-az:_-ps/instance/init": "alternativa.tanks.game:GameTask/GameTask", + "_-az:_-ps/instance/start": "alternativa.tanks.game:GameTask/start", + "_-az:_-ps/instance/stop": "alternativa.tanks.game:GameTask/stop", + "_-az:_-ps/instance/run": "alternativa.tanks.game:GameTask/run", + "_-az:_-ps/instance/_-DX/getter": "alternativa.tanks.game:GameTask/paused/get", + "_-az:_-ps/instance/_-DX/setter": "alternativa.tanks.game:GameTask/paused/set", + "_-az:_-ps/instance/_-c6": "alternativa.tanks.game:GameTask/pause", + "_-az:_-ps/instance/_-n1": "alternativa.tanks.game:GameTask/resume", + "_-az:_-ps/instance/_-1C:onPause": "alternativa.tanks.game:GameTask/protected:onPause", + "_-az:_-ps/instance/_-1C:onResume": "alternativa.tanks.game:GameTask/protected:onResume", + "_-az:_-ps/class/init": "alternativa.tanks.game:GameTask/protected:onResume" + }, + "_-1H": { + "_-az:_-1H": null, + "_-az:_-1H/instance/init": "alternativa.tanks.game:TaskManager/TaskManager", + "_-az:_-1H/instance/addTask": "alternativa.tanks.game:TaskManager/addTask", + "_-az:_-1H/instance/killTask": "alternativa.tanks.game:TaskManager/killTask", + "_-az:_-1H/instance/_-h3": "alternativa.tanks.game:TaskManager/runTasks", + "_-az:_-1H/instance/getTaskInterface": "alternativa.tanks.game:TaskManager/getTaskInterface", + "_-az:_-1H/instance/_-Ap": "alternativa.tanks.game:TaskManager/killAll", + "_-az:_-1H/instance/_-az:_-1H/instance/_-db": "alternativa.tanks.game:TaskManager/private:startAddedTasks", + "_-az:_-1H/instance/_-az:_-1H/instance/_-4g": "alternativa.tanks.game:TaskManager/private:removeKilledTasks", + "_-az:_-1H/instance/_-az:_-1H/instance/_-8q": "alternativa.tanks.game:TaskManager/private:getObjectInterfaces", + "_-az:_-1H/class/init": "alternativa.tanks.game:TaskManager/private:getObjectInterfaces" + }, + "_-2J": { + "_-az:_-2J": null, + "_-az:_-2J/instance/init": "alternativa.tanks.game:EntityComponent/EntityComponent", + "_-az:_-2J/instance/_-Wo": "alternativa.tanks.game:EntityComponent/setEntity", + "_-az:_-2J/instance/initComponent": "alternativa.tanks.game:EntityComponent/initComponent", + "_-az:_-2J/instance/addToGame": "alternativa.tanks.game:EntityComponent/addToGame", + "_-az:_-2J/instance/removeFromGame": "alternativa.tanks.game:EntityComponent/removeFromGame", + "_-az:_-2J/class/init": "alternativa.tanks.game:EntityComponent/removeFromGame" + }, + "_-kM": { + "_-az:_-kM": null, + "_-az:_-kM/instance/init": "alternativa.tanks.game:IGameLogger/IGameLogger", + "_-az:_-kM/instance/_-6r:log": "alternativa.tanks.game:IGameLogger/alternativa.tanks.game:IGameLogger:log", + "_-az:_-kM/class/init": "alternativa.tanks.game:IGameLogger/alternativa.tanks.game:IGameLogger:log" + }, + "_-gw": { + "_-az:_-gw": null, + "_-az:_-gw/instance/init": "alternativa.tanks.game:Entity/Entity", + "_-az:_-gw/instance/id/getter": "alternativa.tanks.game:Entity/id/get", + "_-az:_-gw/instance/_-2d": "alternativa.tanks.game:Entity/addComponent", + "_-az:_-gw/instance/_-m7": "alternativa.tanks.game:Entity/initComponents", + "_-az:_-gw/instance/getComponent": "alternativa.tanks.game:Entity/getComponent", + "_-az:_-gw/instance/getComponentStrict": "alternativa.tanks.game:Entity/getComponentStrict", + "_-az:_-gw/instance/addToGame": "alternativa.tanks.game:Entity/addToGame", + "_-az:_-gw/instance/removeFromGame": "alternativa.tanks.game:Entity/removeFromGame", + "_-az:_-gw/instance/dispatchEvent": "alternativa.tanks.game:Entity/dispatchEvent", + "_-az:_-gw/instance/addEventHandler": "alternativa.tanks.game:Entity/addEventHandler", + "_-az:_-gw/class/init": "alternativa.tanks.game:Entity/addEventHandler", + "_-az:_-gw/class/_-9o": "alternativa.tanks.game:Entity/generateId" + }, + "_-Ss": { + "_-az:_-Ss": null, + "_-az:_-Ss/instance/init": "alternativa.tanks.game:GameEvents/GameEvents", + "_-az:_-Ss/class/init": "alternativa.tanks.game:GameEvents/GameEvents" + }, + "_-aI": { + "_-az:_-aI": null, + "_-az:_-aI/instance/init": "alternativa.tanks.game:ObjectController/ObjectController", + "_-az:_-aI/instance/object/getter": "alternativa.tanks.game:ObjectController/object/get", + "_-az:_-aI/instance/object/setter": "alternativa.tanks.game:ObjectController/object/set", + "_-az:_-aI/instance/_-Vi": "alternativa.tanks.game:ObjectController/setPosition", + "_-az:_-aI/instance/_-6F": "alternativa.tanks.game:ObjectController/setRotation", + "_-az:_-aI/instance/_-l9": "alternativa.tanks.game:ObjectController/moveRelative", + "_-az:_-aI/instance/move": "alternativa.tanks.game:ObjectController/move", + "_-az:_-aI/instance/rotate": "alternativa.tanks.game:ObjectController/rotate", + "_-az:_-aI/instance/_-38": "alternativa.tanks.game:ObjectController/lookAtXYZ", + "_-az:_-aI/class/init": "alternativa.tanks.game:ObjectController/lookAtXYZ" + }, + "_-AG": { + "_-az:_-AG": null, + "_-az:_-AG/instance/init": "alternativa.tanks.game:GameKernel/GameKernel", + "_-az:_-AG/instance/logger/getter": "alternativa.tanks.game:GameKernel/logger/get", + "_-az:_-AG/instance/logger/setter": "alternativa.tanks.game:GameKernel/logger/set", + "_-az:_-AG/instance/stage/getter": "alternativa.tanks.game:GameKernel/stage/get", + "_-az:_-AG/instance/options/getter": "alternativa.tanks.game:GameKernel/options/get", + "_-az:_-AG/instance/_-L": "alternativa.tanks.game:GameKernel/addDeferredCommand", + "_-az:_-AG/instance/_-11": "alternativa.tanks.game:GameKernel/getObjectPoolManager", + "_-az:_-AG/instance/addTask": "alternativa.tanks.game:GameKernel/addTask", + "_-az:_-AG/instance/_-oR": "alternativa.tanks.game:GameKernel/addEntity", + "_-az:_-AG/instance/_-13": "alternativa.tanks.game:GameKernel/removeEntity", + "_-az:_-AG/instance/_-Ku": "alternativa.tanks.game:GameKernel/getInputSystem", + "_-az:_-AG/instance/_-Ev": "alternativa.tanks.game:GameKernel/getEventSystem", + "_-az:_-AG/instance/getLogicSystem1": "alternativa.tanks.game:GameKernel/getLogicSystem1", + "_-az:_-AG/instance/getLogicSystem2": "alternativa.tanks.game:GameKernel/getLogicSystem2", + "_-az:_-AG/instance/_-m8": "alternativa.tanks.game:GameKernel/getPhysicsSystem", + "_-az:_-AG/instance/_-DZ": "alternativa.tanks.game:GameKernel/getRenderSystem", + "_-az:_-AG/instance/_-Kf": "alternativa.tanks.game:GameKernel/tick", + "_-az:_-AG/instance/_-EC": "alternativa.tanks.game:GameKernel/shutdown", + "_-az:_-AG/class/init": "alternativa.tanks.game:GameKernel/shutdown" + } + }, + "_-LL": { + "_-nR": { + "_-LL:_-nR": null, + "_-LL:_-nR/instance/init#0": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/ThunderShotEffect", + "_-LL:_-nR/instance/init#1": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/init", + "_-LL:_-nR/instance/addedToRenderSystem": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/addedToRenderSystem", + "_-LL:_-nR/instance/play": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/play", + "_-LL:_-nR/instance/destroy": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/destroy", + "_-LL:_-nR/instance/_-LL:_-nR/_-5M": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/private:createParticles", + "_-LL:_-nR/instance/_-LL:_-nR/_-eJ": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/private:createSprite", + "_-LL:_-nR/instance/_-LL:_-nR/_-ME": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/private:setSpritePosition", + "_-LL:_-nR/instance/_-LL:_-nR/_-Qt": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/private:setTrailMatrix", + "_-LL:_-nR/class/init": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect/private:setTrailMatrix" + } + }, + "_-kK": { + "VectorCodecA3D2CubeMapLevel3": { + "_-kK:VectorCodecA3D2CubeMapLevel3": null, + "_-kK:VectorCodecA3D2CubeMapLevel3/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel3/VectorCodecA3D2CubeMapLevel3", + "_-kK:VectorCodecA3D2CubeMapLevel3/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel3/init", + "_-kK:VectorCodecA3D2CubeMapLevel3/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel3/decode", + "_-kK:VectorCodecA3D2CubeMapLevel3/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel3/encode", + "_-kK:VectorCodecA3D2CubeMapLevel3/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel3/encode" + }, + "VectorCodecA3D2MaterialLevel3": { + "_-kK:VectorCodecA3D2MaterialLevel3": null, + "_-kK:VectorCodecA3D2MaterialLevel3/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel3/VectorCodecA3D2MaterialLevel3", + "_-kK:VectorCodecA3D2MaterialLevel3/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel3/init", + "_-kK:VectorCodecA3D2MaterialLevel3/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel3/decode", + "_-kK:VectorCodecA3D2MaterialLevel3/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel3/encode", + "_-kK:VectorCodecA3D2MaterialLevel3/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel3/encode" + }, + "VectorCodecA3D2ImageLevel1": { + "_-kK:VectorCodecA3D2ImageLevel1": null, + "_-kK:VectorCodecA3D2ImageLevel1/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel1/VectorCodecA3D2ImageLevel1", + "_-kK:VectorCodecA3D2ImageLevel1/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel1/init", + "_-kK:VectorCodecA3D2ImageLevel1/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel1/decode", + "_-kK:VectorCodecA3D2ImageLevel1/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel1/encode", + "_-kK:VectorCodecA3D2ImageLevel1/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel1/encode" + }, + "VectorCodecA3D2CubeMapLevel1": { + "_-kK:VectorCodecA3D2CubeMapLevel1": null, + "_-kK:VectorCodecA3D2CubeMapLevel1/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel1/VectorCodecA3D2CubeMapLevel1", + "_-kK:VectorCodecA3D2CubeMapLevel1/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel1/init", + "_-kK:VectorCodecA3D2CubeMapLevel1/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel1/decode", + "_-kK:VectorCodecA3D2CubeMapLevel1/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel1/encode", + "_-kK:VectorCodecA3D2CubeMapLevel1/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel1/encode" + }, + "VectorCodecA3D2MapLevel3": { + "_-kK:VectorCodecA3D2MapLevel3": null, + "_-kK:VectorCodecA3D2MapLevel3/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel3/VectorCodecA3D2MapLevel3", + "_-kK:VectorCodecA3D2MapLevel3/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel3/init", + "_-kK:VectorCodecA3D2MapLevel3/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel3/decode", + "_-kK:VectorCodecA3D2MapLevel3/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel3/encode", + "_-kK:VectorCodecA3D2MapLevel3/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel3/encode" + }, + "CodecA3D2CubeMap": { + "_-kK:CodecA3D2CubeMap": null, + "_-kK:CodecA3D2CubeMap/instance/init#1": "_codec.versions.version2.a3d.materials:CodecA3D2CubeMap/CodecA3D2CubeMap", + "_-kK:CodecA3D2CubeMap/instance/init#0": "_codec.versions.version2.a3d.materials:CodecA3D2CubeMap/init", + "_-kK:CodecA3D2CubeMap/instance/_-2Q": "_codec.versions.version2.a3d.materials:CodecA3D2CubeMap/decode", + "_-kK:CodecA3D2CubeMap/instance/_-QN": "_codec.versions.version2.a3d.materials:CodecA3D2CubeMap/encode", + "_-kK:CodecA3D2CubeMap/class/init": "_codec.versions.version2.a3d.materials:CodecA3D2CubeMap/encode" + }, + "VectorCodecA3D2ImageLevel3": { + "_-kK:VectorCodecA3D2ImageLevel3": null, + "_-kK:VectorCodecA3D2ImageLevel3/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel3/VectorCodecA3D2ImageLevel3", + "_-kK:VectorCodecA3D2ImageLevel3/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel3/init", + "_-kK:VectorCodecA3D2ImageLevel3/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel3/decode", + "_-kK:VectorCodecA3D2ImageLevel3/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel3/encode", + "_-kK:VectorCodecA3D2ImageLevel3/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel3/encode" + }, + "VectorCodecA3D2MaterialLevel1": { + "_-kK:VectorCodecA3D2MaterialLevel1": null, + "_-kK:VectorCodecA3D2MaterialLevel1/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel1/VectorCodecA3D2MaterialLevel1", + "_-kK:VectorCodecA3D2MaterialLevel1/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel1/init", + "_-kK:VectorCodecA3D2MaterialLevel1/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel1/decode", + "_-kK:VectorCodecA3D2MaterialLevel1/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel1/encode", + "_-kK:VectorCodecA3D2MaterialLevel1/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel1/encode" + }, + "CodecA3D2Material": { + "_-kK:CodecA3D2Material": null, + "_-kK:CodecA3D2Material/instance/init#1": "_codec.versions.version2.a3d.materials:CodecA3D2Material/CodecA3D2Material", + "_-kK:CodecA3D2Material/instance/init#0": "_codec.versions.version2.a3d.materials:CodecA3D2Material/init", + "_-kK:CodecA3D2Material/instance/_-2Q": "_codec.versions.version2.a3d.materials:CodecA3D2Material/decode", + "_-kK:CodecA3D2Material/instance/_-QN": "_codec.versions.version2.a3d.materials:CodecA3D2Material/encode", + "_-kK:CodecA3D2Material/class/init": "_codec.versions.version2.a3d.materials:CodecA3D2Material/encode" + }, + "VectorCodecA3D2ImageLevel2": { + "_-kK:VectorCodecA3D2ImageLevel2": null, + "_-kK:VectorCodecA3D2ImageLevel2/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel2/VectorCodecA3D2ImageLevel2", + "_-kK:VectorCodecA3D2ImageLevel2/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel2/init", + "_-kK:VectorCodecA3D2ImageLevel2/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel2/decode", + "_-kK:VectorCodecA3D2ImageLevel2/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel2/encode", + "_-kK:VectorCodecA3D2ImageLevel2/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel2/encode" + }, + "VectorCodecA3D2MapLevel1": { + "_-kK:VectorCodecA3D2MapLevel1": null, + "_-kK:VectorCodecA3D2MapLevel1/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel1/VectorCodecA3D2MapLevel1", + "_-kK:VectorCodecA3D2MapLevel1/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel1/init", + "_-kK:VectorCodecA3D2MapLevel1/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel1/decode", + "_-kK:VectorCodecA3D2MapLevel1/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel1/encode", + "_-kK:VectorCodecA3D2MapLevel1/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel1/encode" + }, + "VectorCodecA3D2MapLevel2": { + "_-kK:VectorCodecA3D2MapLevel2": null, + "_-kK:VectorCodecA3D2MapLevel2/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel2/VectorCodecA3D2MapLevel2", + "_-kK:VectorCodecA3D2MapLevel2/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel2/init", + "_-kK:VectorCodecA3D2MapLevel2/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel2/decode", + "_-kK:VectorCodecA3D2MapLevel2/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel2/encode", + "_-kK:VectorCodecA3D2MapLevel2/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel2/encode" + }, + "CodecA3D2Image": { + "_-kK:CodecA3D2Image": null, + "_-kK:CodecA3D2Image/instance/init#1": "_codec.versions.version2.a3d.materials:CodecA3D2Image/CodecA3D2Image", + "_-kK:CodecA3D2Image/instance/init#0": "_codec.versions.version2.a3d.materials:CodecA3D2Image/init", + "_-kK:CodecA3D2Image/instance/_-2Q": "_codec.versions.version2.a3d.materials:CodecA3D2Image/decode", + "_-kK:CodecA3D2Image/instance/_-QN": "_codec.versions.version2.a3d.materials:CodecA3D2Image/encode", + "_-kK:CodecA3D2Image/class/init": "_codec.versions.version2.a3d.materials:CodecA3D2Image/encode" + }, + "VectorCodecA3D2MaterialLevel2": { + "_-kK:VectorCodecA3D2MaterialLevel2": null, + "_-kK:VectorCodecA3D2MaterialLevel2/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel2/VectorCodecA3D2MaterialLevel2", + "_-kK:VectorCodecA3D2MaterialLevel2/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel2/init", + "_-kK:VectorCodecA3D2MaterialLevel2/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel2/decode", + "_-kK:VectorCodecA3D2MaterialLevel2/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel2/encode", + "_-kK:VectorCodecA3D2MaterialLevel2/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel2/encode" + }, + "CodecA3D2Map": { + "_-kK:CodecA3D2Map": null, + "_-kK:CodecA3D2Map/instance/init#1": "_codec.versions.version2.a3d.materials:CodecA3D2Map/CodecA3D2Map", + "_-kK:CodecA3D2Map/instance/init#0": "_codec.versions.version2.a3d.materials:CodecA3D2Map/init", + "_-kK:CodecA3D2Map/instance/_-2Q": "_codec.versions.version2.a3d.materials:CodecA3D2Map/decode", + "_-kK:CodecA3D2Map/instance/_-QN": "_codec.versions.version2.a3d.materials:CodecA3D2Map/encode", + "_-kK:CodecA3D2Map/class/init": "_codec.versions.version2.a3d.materials:CodecA3D2Map/encode" + }, + "VectorCodecA3D2CubeMapLevel2": { + "_-kK:VectorCodecA3D2CubeMapLevel2": null, + "_-kK:VectorCodecA3D2CubeMapLevel2/instance/init#0": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel2/VectorCodecA3D2CubeMapLevel2", + "_-kK:VectorCodecA3D2CubeMapLevel2/instance/init#1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel2/init", + "_-kK:VectorCodecA3D2CubeMapLevel2/instance/_-2Q": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel2/decode", + "_-kK:VectorCodecA3D2CubeMapLevel2/instance/_-QN": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel2/encode", + "_-kK:VectorCodecA3D2CubeMapLevel2/class/init": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel2/encode" + } + }, + "_-KL": { + "_-Gc": { + "_-KL:_-Gc": null, + "_-KL:_-Gc/instance/init": "alternativa.types:Short/Short", + "_-KL:_-Gc/class/init": "alternativa.types:Short/Short" + }, + "_-Mu": { + "_-KL:_-Mu": null, + "_-KL:_-Mu/instance/init": "alternativa.types:Long/Long", + "_-KL:_-Mu/instance/low/getter": "alternativa.types:Long/low/get", + "_-KL:_-Mu/instance/high/getter": "alternativa.types:Long/high/get", + "_-KL:_-Mu/instance/toString": "alternativa.types:Long/toString", + "_-KL:_-Mu/instance/_-dN": "alternativa.types:Long/toByteArray", + "_-KL:_-Mu/instance/_-KL:_-Mu/_-5C": "alternativa.types:Long/private:intToUhex", + "_-KL:_-Mu/class/init": "alternativa.types:Long/private:intToUhex", + "_-KL:_-Mu/class/_-FG": "alternativa.types:Long/getLong", + "_-KL:_-Mu/class/_-Dg": "alternativa.types:Long/fromHexString", + "_-KL:_-Mu/class/_-mU": "alternativa.types:Long/fromInt" + }, + "_-kI": { + "_-KL:_-kI": null, + "_-KL:_-kI/instance/init": "alternativa.types:Byte/Byte", + "_-KL:_-kI/class/init": "alternativa.types:Byte/Byte" + }, + "_-6f": { + "_-KL:_-6f": null, + "_-KL:_-6f/instance/init": "alternativa.types:UByte/UByte", + "_-KL:_-6f/class/init": "alternativa.types:UByte/UByte" + }, + "_-ob": { + "_-KL:_-ob": null, + "_-KL:_-ob/instance/init": "alternativa.types:Float/Float", + "_-KL:_-ob/class/init": "alternativa.types:Float/Float" + }, + "_-ge": { + "_-KL:_-ge": null, + "_-KL:_-ge/instance/init": "alternativa.types:UShort/UShort", + "_-KL:_-ge/class/init": "alternativa.types:UShort/UShort" + } + }, + "_-QH": { + "_-fw": { + "_-QH:_-fw": null, + "_-QH:_-fw/instance/init": "alternativa.protocol.info:CollectionCodecInfo/CollectionCodecInfo", + "_-QH:_-fw/instance/level/getter": "alternativa.protocol.info:CollectionCodecInfo/level/get", + "_-QH:_-fw/instance/elementCodec/getter": "alternativa.protocol.info:CollectionCodecInfo/elementCodec/get", + "_-QH:_-fw/instance/toString": "alternativa.protocol.info:CollectionCodecInfo/toString", + "_-QH:_-fw/class/init": "alternativa.protocol.info:CollectionCodecInfo/toString" + }, + "_-7x": { + "_-QH:_-7x": null, + "_-QH:_-7x/instance/init": "alternativa.protocol.info:TypeCodecInfo/TypeCodecInfo", + "_-QH:_-7x/instance/type/getter": "alternativa.protocol.info:TypeCodecInfo/type/get", + "_-QH:_-7x/instance/toString": "alternativa.protocol.info:TypeCodecInfo/toString", + "_-QH:_-7x/class/init": "alternativa.protocol.info:TypeCodecInfo/toString" + }, + "_-8Q": { + "_-QH:_-8Q": null, + "_-QH:_-8Q/instance/init": "alternativa.protocol.info:EnumCodecInfo/EnumCodecInfo", + "_-QH:_-8Q/instance/toString": "alternativa.protocol.info:EnumCodecInfo/toString", + "_-QH:_-8Q/class/init": "alternativa.protocol.info:EnumCodecInfo/toString" + }, + "_-Qw": { + "_-QH:_-Qw": null, + "_-QH:_-Qw/instance/init": "alternativa.protocol.info:CodecInfo/CodecInfo", + "_-QH:_-Qw/instance/_-3C": "alternativa.protocol.info:CodecInfo/isOptional", + "_-QH:_-Qw/instance/toString": "alternativa.protocol.info:CodecInfo/toString", + "_-QH:_-Qw/class/init": "alternativa.protocol.info:CodecInfo/toString" + } + }, + "_-Wh": { + "_-OG": { + "_-Wh:_-OG": null, + "_-Wh:_-OG/instance/init": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/TankExplosionComponent", + "_-Wh:_-OG/instance/initComponent": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/initComponent", + "_-Wh:_-OG/instance/addToGame": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/addToGame", + "_-Wh:_-OG/instance/removeFromGame": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/removeFromGame", + "_-Wh:_-OG/instance/_-Wh:_-OG/_-JU": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/private:onSetDeadState", + "_-Wh:_-OG/instance/_-Wh:_-OG/_-X7": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/private:createShockWave", + "_-Wh:_-OG/instance/_-Wh:_-OG/_-N3": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/private:createExplosion", + "_-Wh:_-OG/instance/_-Wh:_-OG/_-qG": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/private:createSmoke", + "_-Wh:_-OG/class/init": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent/private:createSmoke" + }, + "_-4Q": { + "_-Wh:_-4Q": null, + "_-Wh:_-4Q/instance/init": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/PhysicsRendererComponent", + "_-Wh:_-4Q/instance/initComponent": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/initComponent", + "_-Wh:_-4Q/instance/_-Wh:_-4Q/_-CT": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/private:initRays", + "_-Wh:_-4Q/instance/_-Wh:_-4Q/_-6S": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/private:addRays", + "_-Wh:_-4Q/instance/addToGame": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/addToGame", + "_-Wh:_-4Q/instance/removeFromGame": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/removeFromGame", + "_-Wh:_-4Q/instance/_-Wh:_-4Q/_-Ab": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/private:addObject3D", + "_-Wh:_-4Q/instance/_-Wh:_-4Q/_-Je": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/private:removeObject3D", + "_-Wh:_-4Q/instance/render": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/render", + "_-Wh:_-4Q/class/init": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent/render" + }, + "_-iU": { + "_-Wh:_-iU": null, + "_-Wh:_-iU/instance/init": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/GraphicsControlComponent", + "_-Wh:_-iU/instance/initComponent": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/initComponent", + "_-Wh:_-iU/instance/addToGame": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/addToGame", + "_-Wh:_-iU/instance/addToScene": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/addToScene", + "_-Wh:_-iU/instance/removeFromScene": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/removeFromScene", + "_-Wh:_-iU/instance/_-5w": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/doRemoveFromScene", + "_-Wh:_-iU/instance/setMaterial": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/setMaterial", + "_-Wh:_-iU/instance/_-2d": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/addComponent", + "_-Wh:_-iU/instance/render": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/render", + "_-Wh:_-iU/class/init": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent/render" + }, + "_-nk": { + "_-Wh:_-nk": null, + "_-Wh:_-nk/instance/init": "alternativa.tanks.game.entities.tank.graphics:ActiveState/ActiveState", + "_-Wh:_-nk/instance/start": "alternativa.tanks.game.entities.tank.graphics:ActiveState/start", + "_-Wh:_-nk/class/init": "alternativa.tanks.game.entities.tank.graphics:ActiveState/start" + }, + "_-pI": { + "_-Wh:_-pI": null, + "_-Wh:_-pI/instance/init": "alternativa.tanks.game.entities.tank.graphics:IDirectionalShadowRendererConsumer/IDirectionalShadowRendererConsumer", + "_-Wh:_-pI/instance/ try:_-W7": "alternativa.tanks.game.entities.tank.graphics:IDirectionalShadowRendererConsumer/alternativa.tanks.game.entities.tank.graphics:IDirectionalShadowRendererConsumer:setShadowRenderer", + "_-Wh:_-pI/class/init": "alternativa.tanks.game.entities.tank.graphics:IDirectionalShadowRendererConsumer/alternativa.tanks.game.entities.tank.graphics:IDirectionalShadowRendererConsumer:setShadowRenderer" + }, + "_-HP": { + "_-Wh:_-HP": null, + "_-Wh:_-HP/instance/init": "alternativa.tanks.game.entities.tank.graphics:DirectionalShadowRendererConstructor/DirectionalShadowRendererConstructor", + "_-Wh:_-HP/instance/_-UG": "alternativa.tanks.game.entities.tank.graphics:DirectionalShadowRendererConstructor/createShadowRenderer", + "_-Wh:_-HP/class/init": "alternativa.tanks.game.entities.tank.graphics:DirectionalShadowRendererConstructor/createShadowRenderer" + }, + "_-dM": { + "_-Wh:_-dM": null, + "_-Wh:_-dM/instance/init": "alternativa.tanks.game.entities.tank.graphics:ComponentState/ComponentState", + "_-Wh:_-dM/instance/start": "alternativa.tanks.game.entities.tank.graphics:ComponentState/start", + "_-Wh:_-dM/instance/stop": "alternativa.tanks.game.entities.tank.graphics:ComponentState/stop", + "_-Wh:_-dM/class/init": "alternativa.tanks.game.entities.tank.graphics:ComponentState/stop" + }, + "_-Rd": { + "_-Wh:_-Rd": null, + "_-Wh:_-Rd/instance/init": "alternativa.tanks.game.entities.tank.graphics:DeadState/DeadState", + "_-Wh:_-Rd/instance/start": "alternativa.tanks.game.entities.tank.graphics:DeadState/start", + "_-Wh:_-Rd/class/init": "alternativa.tanks.game.entities.tank.graphics:DeadState/start" + }, + "_-Fk": { + "_-Wh:_-Fk": null, + "_-Wh:_-Fk/instance/init": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/ITankGraphicsComponent", + "_-Wh:_-Fk/instance/_-s:addToScene": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent:addToScene", + "_-Wh:_-Fk/instance/_-s:removeFromScene": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent:removeFromScene", + "_-Wh:_-Fk/instance/_-s:setMaterial": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent:setMaterial", + "_-Wh:_-Fk/instance/_-s:_-91": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent:setAlpha", + "_-Wh:_-Fk/instance/_-s:_-5x": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent:getObject3D", + "_-Wh:_-Fk/class/init": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent/alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent:getObject3D" + }, + "_-2u": { + "_-Wh:_-2u": null, + "_-Wh:_-2u/instance/init": "alternativa.tanks.game.entities.tank.graphics:ActivatingState/ActivatingState", + "_-Wh:_-2u/instance/start": "alternativa.tanks.game.entities.tank.graphics:ActivatingState/start", + "_-Wh:_-2u/class/init": "alternativa.tanks.game.entities.tank.graphics:ActivatingState/start" + }, + "_-hy": { + "_-Wh:_-hy": null, + "_-Wh:_-hy/instance/init": "alternativa.tanks.game.entities.tank.graphics:MaterialType/MaterialType", + "_-Wh:_-hy/instance/toString": "alternativa.tanks.game.entities.tank.graphics:MaterialType/toString", + "_-Wh:_-hy/class/init": "alternativa.tanks.game.entities.tank.graphics:MaterialType/toString" + }, + "_-LO": { + "_-Wh:_-LO": null, + "_-Wh:_-LO/instance/init": "alternativa.tanks.game.entities.tank.graphics:RespawnState/RespawnState", + "_-Wh:_-LO/instance/start": "alternativa.tanks.game.entities.tank.graphics:RespawnState/start", + "_-Wh:_-LO/class/init": "alternativa.tanks.game.entities.tank.graphics:RespawnState/start" + } + }, + "_-E4": { + "CodecA3D2Track": { + "_-E4:CodecA3D2Track": null, + "_-E4:CodecA3D2Track/instance/init#1": "_codec.versions.version2.a3d.animation:CodecA3D2Track/CodecA3D2Track", + "_-E4:CodecA3D2Track/instance/init#0": "_codec.versions.version2.a3d.animation:CodecA3D2Track/init", + "_-E4:CodecA3D2Track/instance/_-2Q": "_codec.versions.version2.a3d.animation:CodecA3D2Track/decode", + "_-E4:CodecA3D2Track/instance/_-QN": "_codec.versions.version2.a3d.animation:CodecA3D2Track/encode", + "_-E4:CodecA3D2Track/class/init": "_codec.versions.version2.a3d.animation:CodecA3D2Track/encode" + }, + "VectorCodecA3D2TrackLevel3": { + "_-E4:VectorCodecA3D2TrackLevel3": null, + "_-E4:VectorCodecA3D2TrackLevel3/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel3/VectorCodecA3D2TrackLevel3", + "_-E4:VectorCodecA3D2TrackLevel3/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel3/init", + "_-E4:VectorCodecA3D2TrackLevel3/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel3/decode", + "_-E4:VectorCodecA3D2TrackLevel3/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel3/encode", + "_-E4:VectorCodecA3D2TrackLevel3/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel3/encode" + }, + "VectorCodecA3D2KeyframeLevel2": { + "_-E4:VectorCodecA3D2KeyframeLevel2": null, + "_-E4:VectorCodecA3D2KeyframeLevel2/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel2/VectorCodecA3D2KeyframeLevel2", + "_-E4:VectorCodecA3D2KeyframeLevel2/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel2/init", + "_-E4:VectorCodecA3D2KeyframeLevel2/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel2/decode", + "_-E4:VectorCodecA3D2KeyframeLevel2/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel2/encode", + "_-E4:VectorCodecA3D2KeyframeLevel2/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel2/encode" + }, + "VectorCodecA3D2KeyframeLevel1": { + "_-E4:VectorCodecA3D2KeyframeLevel1": null, + "_-E4:VectorCodecA3D2KeyframeLevel1/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel1/VectorCodecA3D2KeyframeLevel1", + "_-E4:VectorCodecA3D2KeyframeLevel1/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel1/init", + "_-E4:VectorCodecA3D2KeyframeLevel1/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel1/decode", + "_-E4:VectorCodecA3D2KeyframeLevel1/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel1/encode", + "_-E4:VectorCodecA3D2KeyframeLevel1/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel1/encode" + }, + "VectorCodecA3D2TrackLevel2": { + "_-E4:VectorCodecA3D2TrackLevel2": null, + "_-E4:VectorCodecA3D2TrackLevel2/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel2/VectorCodecA3D2TrackLevel2", + "_-E4:VectorCodecA3D2TrackLevel2/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel2/init", + "_-E4:VectorCodecA3D2TrackLevel2/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel2/decode", + "_-E4:VectorCodecA3D2TrackLevel2/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel2/encode", + "_-E4:VectorCodecA3D2TrackLevel2/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel2/encode" + }, + "VectorCodecA3D2AnimationClipLevel1": { + "_-E4:VectorCodecA3D2AnimationClipLevel1": null, + "_-E4:VectorCodecA3D2AnimationClipLevel1/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel1/VectorCodecA3D2AnimationClipLevel1", + "_-E4:VectorCodecA3D2AnimationClipLevel1/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel1/init", + "_-E4:VectorCodecA3D2AnimationClipLevel1/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel1/decode", + "_-E4:VectorCodecA3D2AnimationClipLevel1/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel1/encode", + "_-E4:VectorCodecA3D2AnimationClipLevel1/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel1/encode" + }, + "VectorCodecA3D2AnimationClipLevel3": { + "_-E4:VectorCodecA3D2AnimationClipLevel3": null, + "_-E4:VectorCodecA3D2AnimationClipLevel3/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel3/VectorCodecA3D2AnimationClipLevel3", + "_-E4:VectorCodecA3D2AnimationClipLevel3/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel3/init", + "_-E4:VectorCodecA3D2AnimationClipLevel3/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel3/decode", + "_-E4:VectorCodecA3D2AnimationClipLevel3/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel3/encode", + "_-E4:VectorCodecA3D2AnimationClipLevel3/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel3/encode" + }, + "VectorCodecA3D2KeyframeLevel3": { + "_-E4:VectorCodecA3D2KeyframeLevel3": null, + "_-E4:VectorCodecA3D2KeyframeLevel3/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel3/VectorCodecA3D2KeyframeLevel3", + "_-E4:VectorCodecA3D2KeyframeLevel3/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel3/init", + "_-E4:VectorCodecA3D2KeyframeLevel3/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel3/decode", + "_-E4:VectorCodecA3D2KeyframeLevel3/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel3/encode", + "_-E4:VectorCodecA3D2KeyframeLevel3/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel3/encode" + }, + "VectorCodecA3D2TrackLevel1": { + "_-E4:VectorCodecA3D2TrackLevel1": null, + "_-E4:VectorCodecA3D2TrackLevel1/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel1/VectorCodecA3D2TrackLevel1", + "_-E4:VectorCodecA3D2TrackLevel1/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel1/init", + "_-E4:VectorCodecA3D2TrackLevel1/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel1/decode", + "_-E4:VectorCodecA3D2TrackLevel1/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel1/encode", + "_-E4:VectorCodecA3D2TrackLevel1/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel1/encode" + }, + "CodecA3D2AnimationClip": { + "_-E4:CodecA3D2AnimationClip": null, + "_-E4:CodecA3D2AnimationClip/instance/init#1": "_codec.versions.version2.a3d.animation:CodecA3D2AnimationClip/CodecA3D2AnimationClip", + "_-E4:CodecA3D2AnimationClip/instance/init#0": "_codec.versions.version2.a3d.animation:CodecA3D2AnimationClip/init", + "_-E4:CodecA3D2AnimationClip/instance/_-2Q": "_codec.versions.version2.a3d.animation:CodecA3D2AnimationClip/decode", + "_-E4:CodecA3D2AnimationClip/instance/_-QN": "_codec.versions.version2.a3d.animation:CodecA3D2AnimationClip/encode", + "_-E4:CodecA3D2AnimationClip/class/init": "_codec.versions.version2.a3d.animation:CodecA3D2AnimationClip/encode" + }, + "VectorCodecA3D2AnimationClipLevel2": { + "_-E4:VectorCodecA3D2AnimationClipLevel2": null, + "_-E4:VectorCodecA3D2AnimationClipLevel2/instance/init#0": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel2/VectorCodecA3D2AnimationClipLevel2", + "_-E4:VectorCodecA3D2AnimationClipLevel2/instance/init#1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel2/init", + "_-E4:VectorCodecA3D2AnimationClipLevel2/instance/_-2Q": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel2/decode", + "_-E4:VectorCodecA3D2AnimationClipLevel2/instance/_-QN": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel2/encode", + "_-E4:VectorCodecA3D2AnimationClipLevel2/class/init": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel2/encode" + }, + "CodecA3D2Keyframe": { + "_-E4:CodecA3D2Keyframe": null, + "_-E4:CodecA3D2Keyframe/instance/init#1": "_codec.versions.version2.a3d.animation:CodecA3D2Keyframe/CodecA3D2Keyframe", + "_-E4:CodecA3D2Keyframe/instance/init#0": "_codec.versions.version2.a3d.animation:CodecA3D2Keyframe/init", + "_-E4:CodecA3D2Keyframe/instance/_-2Q": "_codec.versions.version2.a3d.animation:CodecA3D2Keyframe/decode", + "_-E4:CodecA3D2Keyframe/instance/_-QN": "_codec.versions.version2.a3d.animation:CodecA3D2Keyframe/encode", + "_-E4:CodecA3D2Keyframe/class/init": "_codec.versions.version2.a3d.animation:CodecA3D2Keyframe/encode" + } + }, + "_-hQ": { + "_-W-": { + "_-hQ:_-W-": null, + "_-hQ:_-W-/instance/init": "commons:Id/Id", + "_-hQ:_-W-/instance/id/getter": "commons:Id/id/get", + "_-hQ:_-W-/instance/id/setter": "commons:Id/id/set", + "_-hQ:_-W-/instance/toString": "commons:Id/toString", + "_-hQ:_-W-/class/init": "commons:Id/toString" + }, + "_-Fx": { + "_-hQ:_-Fx": null, + "_-hQ:_-Fx/instance/init": "commons:A3DMatrix/A3DMatrix", + "_-hQ:_-Fx/instance/a/getter": "commons:A3DMatrix/a/get", + "_-hQ:_-Fx/instance/a/setter": "commons:A3DMatrix/a/set", + "_-hQ:_-Fx/instance/b/getter": "commons:A3DMatrix/b/get", + "_-hQ:_-Fx/instance/b/setter": "commons:A3DMatrix/b/set", + "_-hQ:_-Fx/instance/c/getter": "commons:A3DMatrix/c/get", + "_-hQ:_-Fx/instance/c/setter": "commons:A3DMatrix/c/set", + "_-hQ:_-Fx/instance/d/getter": "commons:A3DMatrix/d/get", + "_-hQ:_-Fx/instance/d/setter": "commons:A3DMatrix/d/set", + "_-hQ:_-Fx/instance/e/getter": "commons:A3DMatrix/e/get", + "_-hQ:_-Fx/instance/e/setter": "commons:A3DMatrix/e/set", + "_-hQ:_-Fx/instance/f/getter": "commons:A3DMatrix/f/get", + "_-hQ:_-Fx/instance/f/setter": "commons:A3DMatrix/f/set", + "_-hQ:_-Fx/instance/g/getter": "commons:A3DMatrix/g/get", + "_-hQ:_-Fx/instance/g/setter": "commons:A3DMatrix/g/set", + "_-hQ:_-Fx/instance/h/getter": "commons:A3DMatrix/h/get", + "_-hQ:_-Fx/instance/h/setter": "commons:A3DMatrix/h/set", + "_-hQ:_-Fx/instance/i/getter": "commons:A3DMatrix/i/get", + "_-hQ:_-Fx/instance/i/setter": "commons:A3DMatrix/i/set", + "_-hQ:_-Fx/instance/j/getter": "commons:A3DMatrix/j/get", + "_-hQ:_-Fx/instance/j/setter": "commons:A3DMatrix/j/set", + "_-hQ:_-Fx/instance/k/getter": "commons:A3DMatrix/k/get", + "_-hQ:_-Fx/instance/k/setter": "commons:A3DMatrix/k/set", + "_-hQ:_-Fx/instance/l/getter": "commons:A3DMatrix/l/get", + "_-hQ:_-Fx/instance/l/setter": "commons:A3DMatrix/l/set", + "_-hQ:_-Fx/instance/toString": "commons:A3DMatrix/toString", + "_-hQ:_-Fx/class/init": "commons:A3DMatrix/toString" + } + }, + "_-Sk": { + "_-jL": { + "_-Sk:_-jL": null, + "_-Sk:_-jL/instance/init#1": "alternativa.protocol.codec.primitive:FloatCodec/FloatCodec", + "_-Sk:_-jL/instance/_-9a": "alternativa.protocol.codec.primitive:FloatCodec/nullValue", + "_-Sk:_-jL/instance/_-QN": "alternativa.protocol.codec.primitive:FloatCodec/encode", + "_-Sk:_-jL/instance/_-2Q": "alternativa.protocol.codec.primitive:FloatCodec/decode", + "_-Sk:_-jL/instance/init#0": "alternativa.protocol.codec.primitive:FloatCodec/init", + "_-Sk:_-jL/class/init": "alternativa.protocol.codec.primitive:FloatCodec/init" + }, + "_-U": { + "_-Sk:_-U": null, + "_-Sk:_-U/instance/init#1": "alternativa.protocol.codec.primitive:UShortCodec/UShortCodec", + "_-Sk:_-U/instance/_-QN": "alternativa.protocol.codec.primitive:UShortCodec/encode", + "_-Sk:_-U/instance/_-2Q": "alternativa.protocol.codec.primitive:UShortCodec/decode", + "_-Sk:_-U/instance/init#0": "alternativa.protocol.codec.primitive:UShortCodec/init", + "_-Sk:_-U/class/init": "alternativa.protocol.codec.primitive:UShortCodec/init" + }, + "_-1j": { + "_-Sk:_-1j": null, + "_-Sk:_-1j/instance/init#1": "alternativa.protocol.codec.primitive:BooleanCodec/BooleanCodec", + "_-Sk:_-1j/instance/_-QN": "alternativa.protocol.codec.primitive:BooleanCodec/encode", + "_-Sk:_-1j/instance/_-2Q": "alternativa.protocol.codec.primitive:BooleanCodec/decode", + "_-Sk:_-1j/instance/init#0": "alternativa.protocol.codec.primitive:BooleanCodec/init", + "_-Sk:_-1j/class/init": "alternativa.protocol.codec.primitive:BooleanCodec/init" + }, + "_-8d": { + "_-Sk:_-8d": null, + "_-Sk:_-8d/instance/init#1": "alternativa.protocol.codec.primitive:ShortCodec/ShortCodec", + "_-Sk:_-8d/instance/_-9a": "alternativa.protocol.codec.primitive:ShortCodec/nullValue", + "_-Sk:_-8d/instance/_-QN": "alternativa.protocol.codec.primitive:ShortCodec/encode", + "_-Sk:_-8d/instance/_-2Q": "alternativa.protocol.codec.primitive:ShortCodec/decode", + "_-Sk:_-8d/instance/init#0": "alternativa.protocol.codec.primitive:ShortCodec/init", + "_-Sk:_-8d/class/init": "alternativa.protocol.codec.primitive:ShortCodec/init" + }, + "_-BK": { + "_-Sk:_-BK": null, + "_-Sk:_-BK/instance/init#1": "alternativa.protocol.codec.primitive:ByteCodec/ByteCodec", + "_-Sk:_-BK/instance/_-9a": "alternativa.protocol.codec.primitive:ByteCodec/nullValue", + "_-Sk:_-BK/instance/_-QN": "alternativa.protocol.codec.primitive:ByteCodec/encode", + "_-Sk:_-BK/instance/_-2Q": "alternativa.protocol.codec.primitive:ByteCodec/decode", + "_-Sk:_-BK/instance/init#0": "alternativa.protocol.codec.primitive:ByteCodec/init", + "_-Sk:_-BK/class/init": "alternativa.protocol.codec.primitive:ByteCodec/init" + }, + "_-w": { + "_-Sk:_-w": null, + "_-Sk:_-w/instance/init#1": "alternativa.protocol.codec.primitive:IntCodec/IntCodec", + "_-Sk:_-w/instance/_-9a": "alternativa.protocol.codec.primitive:IntCodec/nullValue", + "_-Sk:_-w/instance/_-QN": "alternativa.protocol.codec.primitive:IntCodec/encode", + "_-Sk:_-w/instance/_-2Q": "alternativa.protocol.codec.primitive:IntCodec/decode", + "_-Sk:_-w/instance/init#0": "alternativa.protocol.codec.primitive:IntCodec/init", + "_-Sk:_-w/class/init": "alternativa.protocol.codec.primitive:IntCodec/init" + }, + "_-36": { + "_-Sk:_-36": null, + "_-Sk:_-36/instance/init#1": "alternativa.protocol.codec.primitive:LongCodec/LongCodec", + "_-Sk:_-36/instance/_-QN": "alternativa.protocol.codec.primitive:LongCodec/encode", + "_-Sk:_-36/instance/_-2Q": "alternativa.protocol.codec.primitive:LongCodec/decode", + "_-Sk:_-36/instance/init#0": "alternativa.protocol.codec.primitive:LongCodec/init", + "_-Sk:_-36/class/init": "alternativa.protocol.codec.primitive:LongCodec/init" + }, + "_-q-": { + "_-Sk:_-q-": null, + "_-Sk:_-q-/instance/init#1": "alternativa.protocol.codec.primitive:DoubleCodec/DoubleCodec", + "_-Sk:_-q-/instance/_-9a": "alternativa.protocol.codec.primitive:DoubleCodec/nullValue", + "_-Sk:_-q-/instance/_-QN": "alternativa.protocol.codec.primitive:DoubleCodec/encode", + "_-Sk:_-q-/instance/_-2Q": "alternativa.protocol.codec.primitive:DoubleCodec/decode", + "_-Sk:_-q-/instance/init#0": "alternativa.protocol.codec.primitive:DoubleCodec/init", + "_-Sk:_-q-/class/init": "alternativa.protocol.codec.primitive:DoubleCodec/init" + }, + "_-Vs": { + "_-Sk:_-Vs": null, + "_-Sk:_-Vs/instance/init": "alternativa.protocol.codec.primitive:IPrimitiveCodec/IPrimitiveCodec", + "_-Sk:_-Vs/instance/_-GJ:_-9a": "alternativa.protocol.codec.primitive:IPrimitiveCodec/alternativa.protocol.codec.primitive:IPrimitiveCodec:nullValue", + "_-Sk:_-Vs/class/init": "alternativa.protocol.codec.primitive:IPrimitiveCodec/alternativa.protocol.codec.primitive:IPrimitiveCodec:nullValue" + }, + "_-Mc": { + "_-Sk:_-Mc": null, + "_-Sk:_-Mc/instance/init#1": "alternativa.protocol.codec.primitive:UByteCodec/UByteCodec", + "_-Sk:_-Mc/instance/_-QN": "alternativa.protocol.codec.primitive:UByteCodec/encode", + "_-Sk:_-Mc/instance/_-2Q": "alternativa.protocol.codec.primitive:UByteCodec/decode", + "_-Sk:_-Mc/instance/init#0": "alternativa.protocol.codec.primitive:UByteCodec/init", + "_-Sk:_-Mc/class/init": "alternativa.protocol.codec.primitive:UByteCodec/init" + }, + "_-YK": { + "_-Sk:_-YK": null, + "_-Sk:_-YK/instance/init#1": "alternativa.protocol.codec.primitive:UIntCodec/UIntCodec", + "_-Sk:_-YK/instance/_-QN": "alternativa.protocol.codec.primitive:UIntCodec/encode", + "_-Sk:_-YK/instance/_-2Q": "alternativa.protocol.codec.primitive:UIntCodec/decode", + "_-Sk:_-YK/instance/init#0": "alternativa.protocol.codec.primitive:UIntCodec/init", + "_-Sk:_-YK/class/init": "alternativa.protocol.codec.primitive:UIntCodec/init" + } + }, + "_-Lt": { + "_-gW": { + "_-Lt:_-gW": null, + "_-Lt:_-gW/instance/init": "alternativa.tanks.game.utils.list:ListIteratorImpl/ListIteratorImpl", + "_-Lt:_-gW/instance/add": "alternativa.tanks.game.utils.list:ListIteratorImpl/add", + "_-Lt:_-gW/instance/hasNext": "alternativa.tanks.game.utils.list:ListIteratorImpl/hasNext", + "_-Lt:_-gW/instance/_-KU": "alternativa.tanks.game.utils.list:ListIteratorImpl/hasPrevious", + "_-Lt:_-gW/instance/next": "alternativa.tanks.game.utils.list:ListIteratorImpl/next", + "_-Lt:_-gW/instance/_-q9": "alternativa.tanks.game.utils.list:ListIteratorImpl/previous", + "_-Lt:_-gW/instance/_-Lt:_-gW/instance/_-6c": "alternativa.tanks.game.utils.list:ListIteratorImpl/private:validateList", + "_-Lt:_-gW/instance/_-Lt:_-gW/instance/_-Dw": "alternativa.tanks.game.utils.list:ListIteratorImpl/private:incChangeCounter", + "_-Lt:_-gW/class/init": "alternativa.tanks.game.utils.list:ListIteratorImpl/private:incChangeCounter" + }, + "_-x": { + "_-Lt:_-x": null, + "_-Lt:_-x/instance/init": "alternativa.tanks.game.utils.list:ListIterator/ListIterator", + "_-Lt:_-x/instance/_-iV:add": "alternativa.tanks.game.utils.list:ListIterator/alternativa.tanks.game.utils.list:ListIterator:add", + "_-Lt:_-x/instance/_-iV:hasNext": "alternativa.tanks.game.utils.list:ListIterator/alternativa.tanks.game.utils.list:ListIterator:hasNext", + "_-Lt:_-x/instance/_-iV:_-KU": "alternativa.tanks.game.utils.list:ListIterator/alternativa.tanks.game.utils.list:ListIterator:hasPrevious", + "_-Lt:_-x/instance/_-iV:next": "alternativa.tanks.game.utils.list:ListIterator/alternativa.tanks.game.utils.list:ListIterator:next", + "_-Lt:_-x/instance/_-iV:_-q9": "alternativa.tanks.game.utils.list:ListIterator/alternativa.tanks.game.utils.list:ListIterator:previous", + "_-Lt:_-x/class/init": "alternativa.tanks.game.utils.list:ListIterator/alternativa.tanks.game.utils.list:ListIterator:previous" + }, + "_-X9": { + "_-Lt:_-X9": null, + "_-Lt:_-X9/instance/init": "alternativa.tanks.game.utils.list:ListItem/ListItem", + "_-Lt:_-X9/class/init": "alternativa.tanks.game.utils.list:ListItem/ListItem" + }, + "_-Fv": { + "_-Lt:_-Fv": null, + "_-Lt:_-Fv/instance/init": "alternativa.tanks.game.utils.list:List/List", + "_-Lt:_-Fv/instance/listIterator": "alternativa.tanks.game.utils.list:List/listIterator", + "_-Lt:_-Fv/instance/add": "alternativa.tanks.game.utils.list:List/add", + "_-Lt:_-Fv/instance/remove": "alternativa.tanks.game.utils.list:List/remove", + "_-Lt:_-Fv/instance/contains": "alternativa.tanks.game.utils.list:List/contains", + "_-Lt:_-Fv/instance/clear": "alternativa.tanks.game.utils.list:List/clear", + "_-Lt:_-Fv/instance/_-7k": "alternativa.tanks.game.utils.list:List/peek", + "_-Lt:_-Fv/instance/poll": "alternativa.tanks.game.utils.list:List/poll", + "_-Lt:_-Fv/instance/_-Lt:_-Fv/instance/_-Di": "alternativa.tanks.game.utils.list:List/private:findItem", + "_-Lt:_-Fv/instance/_-Lt:_-Fv/instance/_-1f": "alternativa.tanks.game.utils.list:List/private:removeItem", + "_-Lt:_-Fv/class/init": "alternativa.tanks.game.utils.list:List/private:removeItem" + } + }, + "_-jN": { + "A3DImage": { + "_-jN:A3DImage": null, + "_-jN:A3DImage/instance/init": "versions.version1.a3d.materials:A3DImage/A3DImage", + "_-jN:A3DImage/instance/id/getter": "versions.version1.a3d.materials:A3DImage/id/get", + "_-jN:A3DImage/instance/id/setter": "versions.version1.a3d.materials:A3DImage/id/set", + "_-jN:A3DImage/instance/url/getter": "versions.version1.a3d.materials:A3DImage/url/get", + "_-jN:A3DImage/instance/url/setter": "versions.version1.a3d.materials:A3DImage/url/set", + "_-jN:A3DImage/instance/toString": "versions.version1.a3d.materials:A3DImage/toString", + "_-jN:A3DImage/class/init": "versions.version1.a3d.materials:A3DImage/toString" + }, + "A3DMaterial": { + "_-jN:A3DMaterial": null, + "_-jN:A3DMaterial/instance/init": "versions.version1.a3d.materials:A3DMaterial/A3DMaterial", + "_-jN:A3DMaterial/instance/diffuseMapId/getter": "versions.version1.a3d.materials:A3DMaterial/diffuseMapId/get", + "_-jN:A3DMaterial/instance/diffuseMapId/setter": "versions.version1.a3d.materials:A3DMaterial/diffuseMapId/set", + "_-jN:A3DMaterial/instance/glossinessMapId/getter": "versions.version1.a3d.materials:A3DMaterial/glossinessMapId/get", + "_-jN:A3DMaterial/instance/glossinessMapId/setter": "versions.version1.a3d.materials:A3DMaterial/glossinessMapId/set", + "_-jN:A3DMaterial/instance/id/getter": "versions.version1.a3d.materials:A3DMaterial/id/get", + "_-jN:A3DMaterial/instance/id/setter": "versions.version1.a3d.materials:A3DMaterial/id/set", + "_-jN:A3DMaterial/instance/lightMapId/getter": "versions.version1.a3d.materials:A3DMaterial/lightMapId/get", + "_-jN:A3DMaterial/instance/lightMapId/setter": "versions.version1.a3d.materials:A3DMaterial/lightMapId/set", + "_-jN:A3DMaterial/instance/normalMapId/getter": "versions.version1.a3d.materials:A3DMaterial/normalMapId/get", + "_-jN:A3DMaterial/instance/normalMapId/setter": "versions.version1.a3d.materials:A3DMaterial/normalMapId/set", + "_-jN:A3DMaterial/instance/opacityMapId/getter": "versions.version1.a3d.materials:A3DMaterial/opacityMapId/get", + "_-jN:A3DMaterial/instance/opacityMapId/setter": "versions.version1.a3d.materials:A3DMaterial/opacityMapId/set", + "_-jN:A3DMaterial/instance/specularMapId/getter": "versions.version1.a3d.materials:A3DMaterial/specularMapId/get", + "_-jN:A3DMaterial/instance/specularMapId/setter": "versions.version1.a3d.materials:A3DMaterial/specularMapId/set", + "_-jN:A3DMaterial/instance/toString": "versions.version1.a3d.materials:A3DMaterial/toString", + "_-jN:A3DMaterial/class/init": "versions.version1.a3d.materials:A3DMaterial/toString" + }, + "A3DMap": { + "_-jN:A3DMap": null, + "_-jN:A3DMap/instance/init": "versions.version1.a3d.materials:A3DMap/A3DMap", + "_-jN:A3DMap/instance/channel/getter": "versions.version1.a3d.materials:A3DMap/channel/get", + "_-jN:A3DMap/instance/channel/setter": "versions.version1.a3d.materials:A3DMap/channel/set", + "_-jN:A3DMap/instance/id/getter": "versions.version1.a3d.materials:A3DMap/id/get", + "_-jN:A3DMap/instance/id/setter": "versions.version1.a3d.materials:A3DMap/id/set", + "_-jN:A3DMap/instance/imageId/getter": "versions.version1.a3d.materials:A3DMap/imageId/get", + "_-jN:A3DMap/instance/imageId/setter": "versions.version1.a3d.materials:A3DMap/imageId/set", + "_-jN:A3DMap/instance/uOffset/getter": "versions.version1.a3d.materials:A3DMap/uOffset/get", + "_-jN:A3DMap/instance/uOffset/setter": "versions.version1.a3d.materials:A3DMap/uOffset/set", + "_-jN:A3DMap/instance/uScale/getter": "versions.version1.a3d.materials:A3DMap/uScale/get", + "_-jN:A3DMap/instance/uScale/setter": "versions.version1.a3d.materials:A3DMap/uScale/set", + "_-jN:A3DMap/instance/vOffset/getter": "versions.version1.a3d.materials:A3DMap/vOffset/get", + "_-jN:A3DMap/instance/vOffset/setter": "versions.version1.a3d.materials:A3DMap/vOffset/set", + "_-jN:A3DMap/instance/vScale/getter": "versions.version1.a3d.materials:A3DMap/vScale/get", + "_-jN:A3DMap/instance/vScale/setter": "versions.version1.a3d.materials:A3DMap/vScale/set", + "_-jN:A3DMap/instance/toString": "versions.version1.a3d.materials:A3DMap/toString", + "_-jN:A3DMap/class/init": "versions.version1.a3d.materials:A3DMap/toString" + } + }, + "_-cv": { + "_-o6": { + "_-cv:_-o6": null, + "_-cv:_-o6/instance/init": "alternativa.tanks.config:BlobLibrary/BlobLibrary", + "_-cv:_-o6/instance/_-aO/getter": "alternativa.tanks.config:BlobLibrary/categoryIds/get", + "_-cv:_-o6/instance/_-hJ": "alternativa.tanks.config:BlobLibrary/getCategory", + "_-cv:_-o6/instance/_-hv": "alternativa.tanks.config:BlobLibrary/setCategory", + "_-cv:_-o6/class/init": "alternativa.tanks.config:BlobLibrary/setCategory" + }, + "_-dD": { + "_-cv:_-dD": null, + "_-cv:_-dD/instance/init": "alternativa.tanks.config:BlobGroup/BlobGroup", + "_-cv:_-dD/instance/_-Qo/getter": "alternativa.tanks.config:BlobGroup/blobIds/get", + "_-cv:_-dD/instance/_-Vf": "alternativa.tanks.config:BlobGroup/getBlob", + "_-cv:_-dD/instance/_-CC": "alternativa.tanks.config:BlobGroup/setBlob", + "_-cv:_-dD/class/init": "alternativa.tanks.config:BlobGroup/setBlob" + }, + "_-FR": { + "_-cv:_-FR": null, + "_-cv:_-FR/instance/init": "alternativa.tanks.config:ResourceLoader/ResourceLoader", + "_-cv:_-FR/class/init": "alternativa.tanks.config:ResourceLoader/ResourceLoader" + }, + "_-Tv": { + "_-cv:_-Tv": null, + "_-cv:_-Tv/instance/init": "alternativa.tanks.config:TextureLibrary/TextureLibrary", + "_-cv:_-Tv/instance/_-o0": "alternativa.tanks.config:TextureLibrary/getTexture", + "_-cv:_-Tv/instance/_-Co": "alternativa.tanks.config:TextureLibrary/addTexture", + "_-cv:_-Tv/instance/run": "alternativa.tanks.config:TextureLibrary/run", + "_-cv:_-Tv/instance/_-cv:_-Tv/instance/_-fm": "alternativa.tanks.config:TextureLibrary/private:onTaskComplete", + "_-cv:_-Tv/instance/_-cv:_-Tv/instance/_-Pw": "alternativa.tanks.config:TextureLibrary/private:onSequenceComplete", + "_-cv:_-Tv/instance/_-cv:_-Tv/instance/_-8P": "alternativa.tanks.config:TextureLibrary/private:getDummyTexture", + "_-cv:_-Tv/class/init": "alternativa.tanks.config:TextureLibrary/private:getDummyTexture" + }, + "_-Kz": { + "_-cv:_-Kz": null, + "_-cv:_-Kz/instance/init": "alternativa.tanks.config:TankPartsLibrary/TankPartsLibrary", + "_-cv:_-Kz/instance/_-pg/getter": "alternativa.tanks.config:TankPartsLibrary/numHulls/get", + "_-cv:_-Kz/instance/_-lD": "alternativa.tanks.config:TankPartsLibrary/getHull", + "_-cv:_-Kz/instance/_-N1": "alternativa.tanks.config:TankPartsLibrary/getHullByID", + "_-cv:_-Kz/instance/_-mh": "alternativa.tanks.config:TankPartsLibrary/getHullIndex", + "_-cv:_-Kz/instance/_-OC/getter": "alternativa.tanks.config:TankPartsLibrary/numTurrets/get", + "_-cv:_-Kz/instance/_-eq": "alternativa.tanks.config:TankPartsLibrary/getTurret", + "_-cv:_-Kz/instance/_-Sw": "alternativa.tanks.config:TankPartsLibrary/getTurretByID", + "_-cv:_-Kz/instance/_-mR": "alternativa.tanks.config:TankPartsLibrary/getTurretIndex", + "_-cv:_-Kz/instance/_-O/getter": "alternativa.tanks.config:TankPartsLibrary/numColormaps/get", + "_-cv:_-Kz/instance/_-bR": "alternativa.tanks.config:TankPartsLibrary/getColormap", + "_-cv:_-Kz/instance/run": "alternativa.tanks.config:TankPartsLibrary/run", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-Ms": "alternativa.tanks.config:TankPartsLibrary/private:findPartByID", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-OS": "alternativa.tanks.config:TankPartsLibrary/private:getPartIndex", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-4d": "alternativa.tanks.config:TankPartsLibrary/private:loadHulls", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-PN": "alternativa.tanks.config:TankPartsLibrary/private:onHullsLoadingComplete", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-25": "alternativa.tanks.config:TankPartsLibrary/private:loadTurrets", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-B1": "alternativa.tanks.config:TankPartsLibrary/private:onTurretsLoadingComplete", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-Z5": "alternativa.tanks.config:TankPartsLibrary/private:loadColormaps", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-nu": "alternativa.tanks.config:TankPartsLibrary/private:onColormapsLoadingComplete", + "_-cv:_-Kz/instance/_-cv:_-Kz/instance/_-lP": "alternativa.tanks.config:TankPartsLibrary/private:getBaseUrl", + "_-cv:_-Kz/class/init": "alternativa.tanks.config:TankPartsLibrary/private:getBaseUrl" + }, + "_-cP": { + "_-cv:_-cP": null, + "_-cv:_-cP/instance/init": "alternativa.tanks.config:BlobCategory/BlobCategory", + "_-cv:_-cP/instance/_-6g/getter": "alternativa.tanks.config:BlobCategory/groupIds/get", + "_-cv:_-cP/instance/_-EZ": "alternativa.tanks.config:BlobCategory/getGroup", + "_-cv:_-cP/instance/_-b6": "alternativa.tanks.config:BlobCategory/setGroup", + "_-cv:_-cP/class/init": "alternativa.tanks.config:BlobCategory/setGroup" + }, + "_-YU": { + "_-cv:_-YU": null, + "_-cv:_-YU/instance/init": "alternativa.tanks.config:Config/Config", + "_-cv:_-YU/instance/load": "alternativa.tanks.config:Config/load", + "_-cv:_-YU/instance/_-cv:_-YU/instance/_-Ax": "alternativa.tanks.config:Config/private:onTaskProgress", + "_-cv:_-YU/instance/_-f": "alternativa.tanks.config:Config/getSkyboxId", + "_-cv:_-YU/instance/xml/getter": "alternativa.tanks.config:Config/xml/get", + "_-cv:_-YU/instance/xml/setter": "alternativa.tanks.config:Config/xml/set", + "_-cv:_-YU/instance/options/getter": "alternativa.tanks.config:Config/options/get", + "_-cv:_-YU/instance/clear": "alternativa.tanks.config:Config/clear", + "_-cv:_-YU/instance/_-cv:_-YU/instance/_-kp": "alternativa.tanks.config:Config/private:createMapLoadTask", + "_-cv:_-YU/instance/_-cv:_-YU/instance/_-Pw": "alternativa.tanks.config:Config/private:onSequenceComplete", + "_-cv:_-YU/instance/_-cv:_-YU/instance/_-SN": "alternativa.tanks.config:Config/private:setMapData", + "_-cv:_-YU/instance/_-cv:_-YU/instance/static": "alternativa.tanks.config:Config/private:parseOptions", + "_-cv:_-YU/class/init": "alternativa.tanks.config:Config/private:parseOptions" + }, + "_-NN": { + "_-cv:_-NN": null, + "_-cv:_-NN/instance/init": "alternativa.tanks.config:StringUtils/StringUtils", + "_-cv:_-NN/class/init": "alternativa.tanks.config:StringUtils/StringUtils", + "_-cv:_-NN/class/_-KN": "alternativa.tanks.config:StringUtils/makeCorrectBaseUrl" + } + }, + "_-jG": { + "_-gg": { + "_-jG:_-gg": null, + "_-jG:_-gg/instance/init": "alternativa.tanks.game.weapons.effects:IWeaponShotEffects/IWeaponShotEffects", + "_-jG:_-gg/instance/_-ef:_-km": "alternativa.tanks.game.weapons.effects:IWeaponShotEffects/alternativa.tanks.game.weapons.effects:IWeaponShotEffects:createShotEffects", + "_-jG:_-gg/class/init": "alternativa.tanks.game.weapons.effects:IWeaponShotEffects/alternativa.tanks.game.weapons.effects:IWeaponShotEffects:createShotEffects" + } + }, + "in%20": { + "_-eF": { + "in :_-eF": null, + "in :_-eF/instance/init": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommand/DeferredCommand", + "in :_-eF/instance/execute": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommand/execute", + "in :_-eF/class/init": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommand/execute" + }, + "_-N9": { + "in :_-N9": null, + "in :_-N9/instance/init": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommandsSystem/DeferredCommandsSystem", + "in :_-N9/instance/_-Si": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommandsSystem/addCommand", + "in :_-N9/instance/run": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommandsSystem/run", + "in :_-N9/class/init": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommandsSystem/run" + } + }, + "_-1z": { + "_-KJ": { + "_-1z:_-KJ": null, + "_-1z:_-KJ/instance/init": "alternativa.engine3d.resources:ATFTextureResource/ATFTextureResource", + "_-1z:_-KJ/instance/upload": "alternativa.engine3d.resources:ATFTextureResource/upload", + "_-1z:_-KJ/class/init": "alternativa.engine3d.resources:ATFTextureResource/upload" + }, + "_-n4": { + "_-1z:_-n4": null, + "_-1z:_-n4/instance/init": "alternativa.engine3d.resources:ExternalTextureResource/ExternalTextureResource", + "_-1z:_-n4/instance/upload": "alternativa.engine3d.resources:ExternalTextureResource/upload", + "_-1z:_-n4/instance/data/getter": "alternativa.engine3d.resources:ExternalTextureResource/data/get", + "_-1z:_-n4/instance/data/setter": "alternativa.engine3d.resources:ExternalTextureResource/data/set", + "_-1z:_-n4/class/init": "alternativa.engine3d.resources:ExternalTextureResource/data/set" + }, + "_-pi": { + "_-1z:_-pi": null, + "_-1z:_-pi/instance/init": "alternativa.engine3d.resources:TextureResource/TextureResource", + "_-1z:_-pi/instance/isUploaded/getter": "alternativa.engine3d.resources:TextureResource/isUploaded/get", + "_-1z:_-pi/instance/dispose": "alternativa.engine3d.resources:TextureResource/dispose", + "_-1z:_-pi/class/init": "alternativa.engine3d.resources:TextureResource/dispose" + }, + "_-9": { + "_-1z:_-9": null, + "_-1z:_-9/instance/init": "alternativa.engine3d.resources:WireGeometry/WireGeometry", + "_-1z:_-9/instance/upload": "alternativa.engine3d.resources:WireGeometry/upload", + "_-1z:_-9/instance/dispose": "alternativa.engine3d.resources:WireGeometry/dispose", + "_-1z:_-9/instance/isUploaded/getter": "alternativa.engine3d.resources:WireGeometry/isUploaded/get", + "_-1z:_-9/instance/clear": "alternativa.engine3d.resources:WireGeometry/clear", + "_-1z:_-9/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.resources:WireGeometry/alternativa3d:updateBoundBox", + "_-1z:_-9/instance/http://alternativaplatform.com/en/alternativa3d:_-VJ": "alternativa.engine3d.resources:WireGeometry/alternativa3d:getDrawUnits", + "_-1z:_-9/instance/http://alternativaplatform.com/en/alternativa3d:_-4J": "alternativa.engine3d.resources:WireGeometry/alternativa3d:addLine", + "_-1z:_-9/class/init": "alternativa.engine3d.resources:WireGeometry/alternativa3d:addLine" + }, + "_-b1": { + "_-1z:_-b1": null, + "_-1z:_-b1/instance/init": "alternativa.engine3d.resources:BitmapTextureResource/BitmapTextureResource", + "_-1z:_-b1/instance/upload": "alternativa.engine3d.resources:BitmapTextureResource/upload", + "_-1z:_-b1/instance/http://alternativaplatform.com/en/alternativa3d:_-ZG": "alternativa.engine3d.resources:BitmapTextureResource/alternativa3d:createMips", + "_-1z:_-b1/class/init": "alternativa.engine3d.resources:BitmapTextureResource/alternativa3d:createMips", + "_-1z:_-b1/class/http://alternativaplatform.com/en/alternativa3d:_-ZG": "alternativa.engine3d.resources:BitmapTextureResource/alternativa3d:createMips" + }, + "_-VF": { + "_-1z:_-VF": null, + "_-1z:_-VF/instance/init": "alternativa.engine3d.resources:BitmapCubeTextureResource/BitmapCubeTextureResource", + "_-1z:_-VF/instance/upload": "alternativa.engine3d.resources:BitmapCubeTextureResource/upload", + "_-1z:_-VF/class/init": "alternativa.engine3d.resources:BitmapCubeTextureResource/upload" + }, + "_-gA": { + "_-1z:_-gA": null, + "_-1z:_-gA/instance/init": "alternativa.engine3d.resources:Geometry/Geometry", + "_-1z:_-gA/instance/numTriangles/getter": "alternativa.engine3d.resources:Geometry/numTriangles/get", + "_-1z:_-gA/instance/indices/getter": "alternativa.engine3d.resources:Geometry/indices/get", + "_-1z:_-gA/instance/indices/setter": "alternativa.engine3d.resources:Geometry/indices/set", + "_-1z:_-gA/instance/numVertices/getter": "alternativa.engine3d.resources:Geometry/numVertices/get", + "_-1z:_-gA/instance/numVertices/setter": "alternativa.engine3d.resources:Geometry/numVertices/set", + "_-1z:_-gA/instance/addVertexStream": "alternativa.engine3d.resources:Geometry/addVertexStream", + "_-1z:_-gA/instance/_-Rm/getter": "alternativa.engine3d.resources:Geometry/numVertexStreams/get", + "_-1z:_-gA/instance/_-l0": "alternativa.engine3d.resources:Geometry/getVertexStreamAttributes", + "_-1z:_-gA/instance/_-Ll": "alternativa.engine3d.resources:Geometry/hasAttribute", + "_-1z:_-gA/instance/findVertexStreamByAttribute": "alternativa.engine3d.resources:Geometry/findVertexStreamByAttribute", + "_-1z:_-gA/instance/getAttributeOffset": "alternativa.engine3d.resources:Geometry/getAttributeOffset", + "_-1z:_-gA/instance/setAttributeValues": "alternativa.engine3d.resources:Geometry/setAttributeValues", + "_-1z:_-gA/instance/_-Sl": "alternativa.engine3d.resources:Geometry/getAttributeValues", + "_-1z:_-gA/instance/isUploaded/getter": "alternativa.engine3d.resources:Geometry/isUploaded/get", + "_-1z:_-gA/instance/upload": "alternativa.engine3d.resources:Geometry/upload", + "_-1z:_-gA/instance/dispose": "alternativa.engine3d.resources:Geometry/dispose", + "_-1z:_-gA/instance/_-Xm": "alternativa.engine3d.resources:Geometry/updateIndexBufferInContextFromVector", + "_-1z:_-gA/instance/_-3h": "alternativa.engine3d.resources:Geometry/updateIndexBufferInContextFromByteArray", + "_-1z:_-gA/instance/_-lT": "alternativa.engine3d.resources:Geometry/updateVertexBufferInContextFromVector", + "_-1z:_-gA/instance/_-mT": "alternativa.engine3d.resources:Geometry/updateVertexBufferInContextFromByteArray", + "_-1z:_-gA/instance/http://alternativaplatform.com/en/alternativa3d:intersectRay": "alternativa.engine3d.resources:Geometry/alternativa3d:intersectRay", + "_-1z:_-gA/instance/http://alternativaplatform.com/en/alternativa3d:getVertexBuffer": "alternativa.engine3d.resources:Geometry/alternativa3d:getVertexBuffer", + "_-1z:_-gA/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.resources:Geometry/alternativa3d:updateBoundBox", + "_-1z:_-gA/class/init": "alternativa.engine3d.resources:Geometry/alternativa3d:updateBoundBox" + } + }, + "_-9j": { + "_-V0": { + "_-9j:_-V0": null, + "_-9j:_-V0/instance/init": "alternativa.engine3d.loaders.collada:DaeVertex/DaeVertex", + "_-9j:_-V0/instance/_-0l": "alternativa.engine3d.loaders.collada:DaeVertex/addPosition", + "_-9j:_-V0/instance/_-1L": "alternativa.engine3d.loaders.collada:DaeVertex/addNormal", + "_-9j:_-V0/instance/_-eQ": "alternativa.engine3d.loaders.collada:DaeVertex/addTangentBiDirection", + "_-9j:_-V0/instance/_-SX": "alternativa.engine3d.loaders.collada:DaeVertex/appendUV", + "_-9j:_-V0/class/init": "alternativa.engine3d.loaders.collada:DaeVertex/appendUV" + }, + "_-lH": { + "_-9j:_-lH": null, + "_-9j:_-lH/instance/init": "alternativa.engine3d.loaders.collada:DaeInstanceController/DaeInstanceController", + "_-9j:_-lH/instance/_-46:parseImplementation": "alternativa.engine3d.loaders.collada:DaeInstanceController/protected:parseImplementation", + "_-9j:_-lH/instance/_-9j:_-lH/instance/_-Ej": "alternativa.engine3d.loaders.collada:DaeInstanceController/private:replaceNodesByTopmost", + "_-9j:_-lH/instance/_-9j:_-lH/instance/controller/getter": "alternativa.engine3d.loaders.collada:DaeInstanceController/private:controller/get", + "_-9j:_-lH/instance/_-9j:_-lH/instance/skeletons/getter": "alternativa.engine3d.loaders.collada:DaeInstanceController/private:skeletons/get", + "_-9j:_-lH/instance/_-hi": "alternativa.engine3d.loaders.collada:DaeInstanceController/parseSkin", + "_-9j:_-lH/class/init": "alternativa.engine3d.loaders.collada:DaeInstanceController/parseSkin" + }, + "_-KP": { + "_-9j:_-KP": null, + "_-9j:_-KP/instance/init": "alternativa.engine3d.loaders.collada:DaeSource/DaeSource", + "_-9j:_-KP/instance/_-9j:_-KP/instance/_-1Q": "alternativa.engine3d.loaders.collada:DaeSource/private:constructArrays", + "_-9j:_-KP/instance/_-9j:_-KP/instance/accessor/getter": "alternativa.engine3d.loaders.collada:DaeSource/private:accessor/get", + "_-9j:_-KP/instance/_-UH:parseImplementation": "alternativa.engine3d.loaders.collada:DaeSource/protected:parseImplementation", + "_-9j:_-KP/instance/_-9j:_-KP/instance/_-E7": "alternativa.engine3d.loaders.collada:DaeSource/private:numValidParams", + "_-9j:_-KP/instance/_-9j:_-KP/instance/_-It": "alternativa.engine3d.loaders.collada:DaeSource/private:parseArray", + "_-9j:_-KP/class/init": "alternativa.engine3d.loaders.collada:DaeSource/private:parseArray" + }, + "_-f9": { + "_-9j:_-f9": null, + "_-9j:_-f9/instance/init": "alternativa.engine3d.loaders.collada:DaeObject/DaeObject", + "_-9j:_-f9/class/init": "alternativa.engine3d.loaders.collada:DaeObject/DaeObject" + }, + "_-0M": { + "_-9j:_-0M": null, + "_-9j:_-0M/instance/init": "alternativa.engine3d.loaders.collada:DaeInput/DaeInput", + "_-9j:_-0M/instance/semantic/getter": "alternativa.engine3d.loaders.collada:DaeInput/semantic/get", + "_-9j:_-0M/instance/source/getter": "alternativa.engine3d.loaders.collada:DaeInput/source/get", + "_-9j:_-0M/instance/offset/getter": "alternativa.engine3d.loaders.collada:DaeInput/offset/get", + "_-9j:_-0M/instance/setNum/getter": "alternativa.engine3d.loaders.collada:DaeInput/setNum/get", + "_-9j:_-0M/instance/prepareSource": "alternativa.engine3d.loaders.collada:DaeInput/prepareSource", + "_-9j:_-0M/class/init": "alternativa.engine3d.loaders.collada:DaeInput/prepareSource" + }, + "_-g3": { + "_-9j:_-g3": null, + "_-9j:_-g3/instance/init": "alternativa.engine3d.loaders.collada:DaeImage/DaeImage", + "_-9j:_-g3/instance/init_from/getter": "alternativa.engine3d.loaders.collada:DaeImage/init_from/get", + "_-9j:_-g3/class/init": "alternativa.engine3d.loaders.collada:DaeImage/init_from/get" + }, + "_-Kl": { + "_-9j:_-Kl": null, + "_-9j:_-Kl/instance/init": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial/DaeInstanceMaterial", + "_-9j:_-Kl/instance/symbol/getter": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial/symbol/get", + "_-9j:_-Kl/instance/_-9j:_-Kl/instance/target/getter": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial/private:target/get", + "_-9j:_-Kl/instance/material/getter": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial/material/get", + "_-9j:_-Kl/instance/_-Iz": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial/getBindVertexInputSetNum", + "_-9j:_-Kl/class/init": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial/getBindVertexInputSetNum" + }, + "_-S6": { + "_-9j:_-S6": null, + "_-9j:_-S6/instance/init": "alternativa.engine3d.loaders.collada:DaePrimitive/DaePrimitive", + "_-9j:_-S6/instance/_-0y:parseImplementation": "alternativa.engine3d.loaders.collada:DaePrimitive/protected:parseImplementation", + "_-9j:_-S6/instance/_-9j:_-S6/type/getter": "alternativa.engine3d.loaders.collada:DaePrimitive/private:type/get", + "_-9j:_-S6/instance/_-9j:_-S6/_-7Q": "alternativa.engine3d.loaders.collada:DaePrimitive/private:parseInputs", + "_-9j:_-S6/instance/_-9j:_-S6/_-WT": "alternativa.engine3d.loaders.collada:DaePrimitive/private:parseIndices", + "_-9j:_-S6/instance/_-9j:_-S6/_-aZ": "alternativa.engine3d.loaders.collada:DaePrimitive/private:triangulate", + "_-9j:_-S6/instance/_-eT": "alternativa.engine3d.loaders.collada:DaePrimitive/fillGeometry", + "_-9j:_-S6/instance/_-9j:_-S6/_-le": "alternativa.engine3d.loaders.collada:DaePrimitive/private:isEqual", + "_-9j:_-S6/instance/_-9j:_-S6/_-0z": "alternativa.engine3d.loaders.collada:DaePrimitive/private:findInputBySet", + "_-9j:_-S6/instance/_-9j:_-S6/_-Rs": "alternativa.engine3d.loaders.collada:DaePrimitive/private:getTexCoordsDatas", + "_-9j:_-S6/instance/_-nY": "alternativa.engine3d.loaders.collada:DaePrimitive/verticesEquals", + "_-9j:_-S6/instance/_-Ig/getter": "alternativa.engine3d.loaders.collada:DaePrimitive/materialSymbol/get", + "_-9j:_-S6/class/init": "alternativa.engine3d.loaders.collada:DaePrimitive/materialSymbol/get" + }, + "_-hp": { + "_-9j:_-hp": null, + "_-9j:_-hp/instance/init": "alternativa.engine3d.loaders.collada:DaeEffectParam/DaeEffectParam", + "_-9j:_-hp/instance/_-SW": "alternativa.engine3d.loaders.collada:DaeEffectParam/getFloat", + "_-9j:_-hp/instance/_-N5": "alternativa.engine3d.loaders.collada:DaeEffectParam/getColor", + "_-9j:_-hp/instance/_-9j:_-hp/instance/texture/getter": "alternativa.engine3d.loaders.collada:DaeEffectParam/private:texture/get", + "_-9j:_-hp/instance/_-J2": "alternativa.engine3d.loaders.collada:DaeEffectParam/getSampler", + "_-9j:_-hp/instance/_-M1": "alternativa.engine3d.loaders.collada:DaeEffectParam/getImage", + "_-9j:_-hp/instance/_-QW/getter": "alternativa.engine3d.loaders.collada:DaeEffectParam/texCoord/get", + "_-9j:_-hp/class/init": "alternativa.engine3d.loaders.collada:DaeEffectParam/texCoord/get" + }, + "_-LF": { + "_-9j:_-LF": null, + "_-9j:_-LF/instance/init": "alternativa.engine3d.loaders.collada:DaeLogger/DaeLogger", + "_-9j:_-LF/instance/_-9j:_-LF/instance/_-mP": "alternativa.engine3d.loaders.collada:DaeLogger/private:logMessage", + "_-9j:_-LF/instance/_-9j:_-LF/instance/logError": "alternativa.engine3d.loaders.collada:DaeLogger/private:logError", + "_-9j:_-LF/instance/_-DG": "alternativa.engine3d.loaders.collada:DaeLogger/logExternalError", + "_-9j:_-LF/instance/logSkewError": "alternativa.engine3d.loaders.collada:DaeLogger/logSkewError", + "_-9j:_-LF/instance/_-E0": "alternativa.engine3d.loaders.collada:DaeLogger/logJointInAnotherSceneError", + "_-9j:_-LF/instance/logInstanceNodeError": "alternativa.engine3d.loaders.collada:DaeLogger/logInstanceNodeError", + "_-9j:_-LF/instance/logNotFoundError": "alternativa.engine3d.loaders.collada:DaeLogger/logNotFoundError", + "_-9j:_-LF/instance/logNotEnoughDataError": "alternativa.engine3d.loaders.collada:DaeLogger/logNotEnoughDataError", + "_-9j:_-LF/class/init": "alternativa.engine3d.loaders.collada:DaeLogger/logNotEnoughDataError" + }, + "_-Dz": { + "_-9j:_-Dz": null, + "_-9j:_-Dz/instance/init": "alternativa.engine3d.loaders.collada:DaeLight/DaeLight", + "_-9j:_-Dz/instance/_-9j:_-Dz/instance/_-7N": "alternativa.engine3d.loaders.collada:DaeLight/private:float4ToUint", + "_-9j:_-Dz/instance/_-Fq/getter": "alternativa.engine3d.loaders.collada:DaeLight/revertDirection/get", + "_-9j:_-Dz/instance/_-bX": "alternativa.engine3d.loaders.collada:DaeLight/parseLight", + "_-9j:_-Dz/class/init": "alternativa.engine3d.loaders.collada:DaeLight/parseLight" + }, + "_-MJ": { + "_-9j:_-MJ": null, + "_-9j:_-MJ/instance/init": "alternativa.engine3d.loaders.collada:DaeGeometry/DaeGeometry", + "_-9j:_-MJ/instance/_-9j:_-MJ/instance/_-ca": "alternativa.engine3d.loaders.collada:DaeGeometry/private:constructVertices", + "_-9j:_-MJ/instance/_-lY:parseImplementation": "alternativa.engine3d.loaders.collada:DaeGeometry/protected:parseImplementation", + "_-9j:_-MJ/instance/_-9j:_-MJ/instance/_-6-": "alternativa.engine3d.loaders.collada:DaeGeometry/private:parsePrimitives", + "_-9j:_-MJ/instance/_-cN": "alternativa.engine3d.loaders.collada:DaeGeometry/parseMesh", + "_-9j:_-MJ/class/init": "alternativa.engine3d.loaders.collada:DaeGeometry/parseMesh" + }, + "_-mj": { + "_-9j:_-mj": null, + "_-9j:_-mj/instance/init": "alternativa.engine3d.loaders.collada:DaeSampler/DaeSampler", + "_-9j:_-mj/instance/_-cw:parseImplementation": "alternativa.engine3d.loaders.collada:DaeSampler/protected:parseImplementation", + "_-9j:_-mj/instance/_-mJ": "alternativa.engine3d.loaders.collada:DaeSampler/parseNumbersTrack", + "_-9j:_-mj/instance/_-5q": "alternativa.engine3d.loaders.collada:DaeSampler/parseTransformationTrack", + "_-9j:_-mj/instance/_-KC": "alternativa.engine3d.loaders.collada:DaeSampler/parsePointsTracks", + "_-9j:_-mj/class/init": "alternativa.engine3d.loaders.collada:DaeSampler/parsePointsTracks" + }, + "_-0H": { + "_-9j:_-0H": null, + "_-9j:_-0H/instance/init": "alternativa.engine3d.loaders.collada:DaeMaterial/DaeMaterial", + "_-9j:_-0H/instance/_-9j:_-0H/instance/_-FI": "alternativa.engine3d.loaders.collada:DaeMaterial/private:parseSetParams", + "_-9j:_-0H/instance/_-9j:_-0H/instance/_-bq/getter": "alternativa.engine3d.loaders.collada:DaeMaterial/private:effectURL/get", + "_-9j:_-0H/instance/_-3s:parseImplementation": "alternativa.engine3d.loaders.collada:DaeMaterial/protected:parseImplementation", + "_-9j:_-0H/class/init": "alternativa.engine3d.loaders.collada:DaeMaterial/protected:parseImplementation" + }, + "_-ad": { + "_-9j:_-ad": null, + "_-9j:_-ad/instance/init": "alternativa.engine3d.loaders.collada:DaeEffect/DaeEffect", + "_-9j:_-ad/instance/_-9j:_-ad/instance/_-lr": "alternativa.engine3d.loaders.collada:DaeEffect/private:constructImages", + "_-9j:_-ad/instance/_-4w:parseImplementation": "alternativa.engine3d.loaders.collada:DaeEffect/protected:parseImplementation", + "_-9j:_-ad/instance/_-9j:_-Vx": "alternativa.engine3d.loaders.collada:DaeEffect/alternativa.engine3d.loaders.collada:getParam", + "_-9j:_-ad/instance/_-9j:_-ad/instance/_-7N": "alternativa.engine3d.loaders.collada:DaeEffect/private:float4ToUint", + "_-9j:_-ad/instance/_-lG": "alternativa.engine3d.loaders.collada:DaeEffect/getMaterial", + "_-9j:_-ad/instance/_-9j:_-ad/instance/_-Ya": "alternativa.engine3d.loaders.collada:DaeEffect/private:pushMap", + "_-9j:_-ad/instance/_-GL/getter": "alternativa.engine3d.loaders.collada:DaeEffect/mainTexCoords/get", + "_-9j:_-ad/class/init": "alternativa.engine3d.loaders.collada:DaeEffect/mainTexCoords/get" + }, + "_-1m": { + "_-9j:_-1m": null, + "_-9j:_-1m/instance/init": "alternativa.engine3d.loaders.collada:DaeController/DaeController", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-24/getter": "alternativa.engine3d.loaders.collada:DaeController/private:daeGeometry/get", + "_-9j:_-1m/instance/_-Sy:parseImplementation": "alternativa.engine3d.loaders.collada:DaeController/protected:parseImplementation", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-CM": "alternativa.engine3d.loaders.collada:DaeController/private:transformVertices", + "_-9j:_-1m/instance/_-9j:_-1m/instance/createVertexBuffer": "alternativa.engine3d.loaders.collada:DaeController/private:createVertexBuffer", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-7Q": "alternativa.engine3d.loaders.collada:DaeController/private:parseInputs", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-qR": "alternativa.engine3d.loaders.collada:DaeController/private:parseJointsBindMatrices", + "_-9j:_-1m/instance/_-hi": "alternativa.engine3d.loaders.collada:DaeController/parseSkin", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-i5": "alternativa.engine3d.loaders.collada:DaeController/private:collectRenderedJoints", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-RH": "alternativa.engine3d.loaders.collada:DaeController/private:mergeJointsClips", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-7O": "alternativa.engine3d.loaders.collada:DaeController/private:hasJointsAnimation", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-E3": "alternativa.engine3d.loaders.collada:DaeController/private:setJointsBindMatrices", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-9b": "alternativa.engine3d.loaders.collada:DaeController/private:addJointsToSkin", + "_-9j:_-1m/instance/_-9j:_-1m/instance/else": "alternativa.engine3d.loaders.collada:DaeController/private:addRootJointToSkin", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-6Y": "alternativa.engine3d.loaders.collada:DaeController/private:addJointChildren", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-A8": "alternativa.engine3d.loaders.collada:DaeController/private:hasJointInDescendants", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-BY": "alternativa.engine3d.loaders.collada:DaeController/private:getBindShapeMatrix", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-h": "alternativa.engine3d.loaders.collada:DaeController/private:isRootJointNode", + "_-9j:_-1m/instance/_-G4": "alternativa.engine3d.loaders.collada:DaeController/findRootJointNodes", + "_-9j:_-1m/instance/_-9j:_-1m/instance/findNode": "alternativa.engine3d.loaders.collada:DaeController/private:findNode", + "_-9j:_-1m/instance/_-9j:_-1m/instance/_-TG": "alternativa.engine3d.loaders.collada:DaeController/private:findNodes", + "_-9j:_-1m/class/init": "alternativa.engine3d.loaders.collada:DaeController/private:findNodes" + }, + "_-6e": { + "_-9j:_-6e": null, + "_-9j:_-6e/instance/init": "alternativa.engine3d.loaders.collada:DaeElement/DaeElement", + "_-9j:_-6e/instance/_-5Q": "alternativa.engine3d.loaders.collada:DaeElement/cloneString", + "_-9j:_-6e/instance/_-Om": "alternativa.engine3d.loaders.collada:DaeElement/parse", + "_-9j:_-6e/instance/_-dy:parseImplementation": "alternativa.engine3d.loaders.collada:DaeElement/protected:parseImplementation", + "_-9j:_-6e/instance/_-dy:_-TM": "alternativa.engine3d.loaders.collada:DaeElement/protected:parseStringArray", + "_-9j:_-6e/instance/_-dy:_-Df": "alternativa.engine3d.loaders.collada:DaeElement/protected:parseNumbersArray", + "_-9j:_-6e/instance/_-dy:_-Y0": "alternativa.engine3d.loaders.collada:DaeElement/protected:parseIntsArray", + "_-9j:_-6e/instance/_-dy:_-AB": "alternativa.engine3d.loaders.collada:DaeElement/protected:parseNumber", + "_-9j:_-6e/instance/id/getter": "alternativa.engine3d.loaders.collada:DaeElement/id/get", + "_-9j:_-6e/instance/sid/getter": "alternativa.engine3d.loaders.collada:DaeElement/sid/get", + "_-9j:_-6e/instance/name/getter": "alternativa.engine3d.loaders.collada:DaeElement/name/get", + "_-9j:_-6e/class/init": "alternativa.engine3d.loaders.collada:DaeElement/name/get" + }, + "_-Vz": { + "_-9j:_-Vz": null, + "_-9j:_-Vz/instance/init": "alternativa.engine3d.loaders.collada:DaeParam/DaeParam", + "_-9j:_-Vz/instance/ref/getter": "alternativa.engine3d.loaders.collada:DaeParam/ref/get", + "_-9j:_-Vz/instance/_-SW": "alternativa.engine3d.loaders.collada:DaeParam/getFloat", + "_-9j:_-Vz/instance/getFloat4": "alternativa.engine3d.loaders.collada:DaeParam/getFloat4", + "_-9j:_-Vz/instance/surfaceSID/getter": "alternativa.engine3d.loaders.collada:DaeParam/surfaceSID/get", + "_-9j:_-Vz/instance/wrap_s/getter": "alternativa.engine3d.loaders.collada:DaeParam/wrap_s/get", + "_-9j:_-Vz/instance/image/getter": "alternativa.engine3d.loaders.collada:DaeParam/image/get", + "_-9j:_-Vz/class/init": "alternativa.engine3d.loaders.collada:DaeParam/image/get" + }, + "_-98": { + "_-9j:_-98": null, + "_-9j:_-98/instance/init": "alternativa.engine3d.loaders.collada:DaeNode/DaeNode", + "_-9j:_-98/instance/_-AH/getter": "alternativa.engine3d.loaders.collada:DaeNode/animName/get", + "_-9j:_-98/instance/_-9j:_-98/instance/_-cG": "alternativa.engine3d.loaders.collada:DaeNode/private:constructNodes", + "_-9j:_-98/instance/_-9j:registerInstanceControllers": "alternativa.engine3d.loaders.collada:DaeNode/alternativa.engine3d.loaders.collada:registerInstanceControllers", + "_-9j:_-98/instance/_-DA": "alternativa.engine3d.loaders.collada:DaeNode/addChannel", + "_-9j:_-98/instance/_-lj": "alternativa.engine3d.loaders.collada:DaeNode/addInstanceController", + "_-9j:_-98/instance/_-Rv:parseImplementation": "alternativa.engine3d.loaders.collada:DaeNode/protected:parseImplementation", + "_-9j:_-98/instance/_-9j:_-98/instance/_-Kd": "alternativa.engine3d.loaders.collada:DaeNode/private:parseInstanceMaterials", + "_-9j:_-98/instance/getNodeBySid": "alternativa.engine3d.loaders.collada:DaeNode/getNodeBySid", + "_-9j:_-98/instance/_-gu": "alternativa.engine3d.loaders.collada:DaeNode/parseSkins", + "_-9j:_-98/instance/_-2R": "alternativa.engine3d.loaders.collada:DaeNode/parseObjects", + "_-9j:_-98/instance/_-9j:_-98/instance/_-9R": "alternativa.engine3d.loaders.collada:DaeNode/private:getMatrix", + "_-9j:_-98/instance/_-Ji": "alternativa.engine3d.loaders.collada:DaeNode/applyTransformations", + "_-9j:_-98/instance/_-2U": "alternativa.engine3d.loaders.collada:DaeNode/applyAnimation", + "_-9j:_-98/instance/_-FF": "alternativa.engine3d.loaders.collada:DaeNode/parseAnimation", + "_-9j:_-98/instance/_-9j:_-98/instance/_-iW": "alternativa.engine3d.loaders.collada:DaeNode/private:createClip", + "_-9j:_-98/instance/_-9j:_-98/instance/_-JV": "alternativa.engine3d.loaders.collada:DaeNode/private:addTracksToClip", + "_-9j:_-98/instance/_-9j:_-98/instance/_-ED": "alternativa.engine3d.loaders.collada:DaeNode/private:hasTransformationAnimation", + "_-9j:_-98/instance/_-9j:_-98/instance/_-V": "alternativa.engine3d.loaders.collada:DaeNode/private:getChannel", + "_-9j:_-98/instance/_-9j:_-98/instance/_-dw": "alternativa.engine3d.loaders.collada:DaeNode/private:concatTracks", + "_-9j:_-98/instance/_-9j:_-98/instance/_-MA": "alternativa.engine3d.loaders.collada:DaeNode/private:createValueStaticTrack", + "_-9j:_-98/instance/_-Br": "alternativa.engine3d.loaders.collada:DaeNode/createStaticTransformTrack", + "_-9j:_-98/instance/layer/getter": "alternativa.engine3d.loaders.collada:DaeNode/layer/get", + "_-9j:_-98/class/init": "alternativa.engine3d.loaders.collada:DaeNode/layer/get" + }, + "_-IW": { + "_-9j:_-IW": null, + "_-9j:_-IW/instance/init": "alternativa.engine3d.loaders.collada:DaeVisualScene/DaeVisualScene", + "_-9j:_-IW/instance/_-cG": "alternativa.engine3d.loaders.collada:DaeVisualScene/constructNodes", + "_-9j:_-IW/class/init": "alternativa.engine3d.loaders.collada:DaeVisualScene/constructNodes" + }, + "_-l": { + "_-9j:_-l": null, + "_-9j:_-l/instance/init": "alternativa.engine3d.loaders.collada:DaeVertices/DaeVertices", + "_-9j:_-l/instance/_-aj:parseImplementation": "alternativa.engine3d.loaders.collada:DaeVertices/protected:parseImplementation", + "_-9j:_-l/class/init": "alternativa.engine3d.loaders.collada:DaeVertices/protected:parseImplementation" + }, + "_-kl": { + "_-9j:_-kl": null, + "_-9j:_-kl/instance/init": "alternativa.engine3d.loaders.collada:DaeArray/DaeArray", + "_-9j:_-kl/instance/type/getter": "alternativa.engine3d.loaders.collada:DaeArray/type/get", + "_-9j:_-kl/instance/_-FY:parseImplementation": "alternativa.engine3d.loaders.collada:DaeArray/protected:parseImplementation", + "_-9j:_-kl/class/init": "alternativa.engine3d.loaders.collada:DaeArray/protected:parseImplementation" + }, + "_-fr": { + "_-9j:_-fr": null, + "_-9j:_-fr/instance/init": "alternativa.engine3d.loaders.collada:DaeDocument/DaeDocument", + "_-9j:_-fr/instance/_-9j:_-fr/instance/_-Rc": "alternativa.engine3d.loaders.collada:DaeDocument/private:getLocalID", + "_-9j:_-fr/instance/_-9j:_-fr/instance/_-gN": "alternativa.engine3d.loaders.collada:DaeDocument/private:constructStructures", + "_-9j:_-fr/instance/_-9j:_-fr/instance/_-hU": "alternativa.engine3d.loaders.collada:DaeDocument/private:constructScenes", + "_-9j:_-fr/instance/_-9j:_-fr/instance/registerInstanceControllers": "alternativa.engine3d.loaders.collada:DaeDocument/private:registerInstanceControllers", + "_-9j:_-fr/instance/_-9j:_-fr/instance/_-6M": "alternativa.engine3d.loaders.collada:DaeDocument/private:constructAnimations", + "_-9j:_-fr/instance/findArray": "alternativa.engine3d.loaders.collada:DaeDocument/findArray", + "_-9j:_-fr/instance/findSource": "alternativa.engine3d.loaders.collada:DaeDocument/findSource", + "_-9j:_-fr/instance/findLight": "alternativa.engine3d.loaders.collada:DaeDocument/findLight", + "_-9j:_-fr/instance/findImage": "alternativa.engine3d.loaders.collada:DaeDocument/findImage", + "_-9j:_-fr/instance/findImageByID": "alternativa.engine3d.loaders.collada:DaeDocument/findImageByID", + "_-9j:_-fr/instance/findEffect": "alternativa.engine3d.loaders.collada:DaeDocument/findEffect", + "_-9j:_-fr/instance/findMaterial": "alternativa.engine3d.loaders.collada:DaeDocument/findMaterial", + "_-9j:_-fr/instance/findVertices": "alternativa.engine3d.loaders.collada:DaeDocument/findVertices", + "_-9j:_-fr/instance/findGeometry": "alternativa.engine3d.loaders.collada:DaeDocument/findGeometry", + "_-9j:_-fr/instance/findNode": "alternativa.engine3d.loaders.collada:DaeDocument/findNode", + "_-9j:_-fr/instance/findNodeByID": "alternativa.engine3d.loaders.collada:DaeDocument/findNodeByID", + "_-9j:_-fr/instance/findController": "alternativa.engine3d.loaders.collada:DaeDocument/findController", + "_-9j:_-fr/instance/findSampler": "alternativa.engine3d.loaders.collada:DaeDocument/findSampler", + "_-9j:_-fr/class/init": "alternativa.engine3d.loaders.collada:DaeDocument/findSampler" + }, + "_-nf": { + "_-9j:_-nf": null, + "_-9j:_-nf/instance/init": "alternativa.engine3d.loaders.collada:DaeChannel/DaeChannel", + "_-9j:_-nf/instance/node/getter": "alternativa.engine3d.loaders.collada:DaeChannel/node/get", + "_-9j:_-nf/instance/_-2-:parseImplementation": "alternativa.engine3d.loaders.collada:DaeChannel/protected:parseImplementation", + "_-9j:_-nf/instance/_-9j:_-nf/instance/_-Gb": "alternativa.engine3d.loaders.collada:DaeChannel/private:parseTransformationType", + "_-9j:_-nf/instance/_-9j:_-nf/instance/_-bu": "alternativa.engine3d.loaders.collada:DaeChannel/private:parseSampler", + "_-9j:_-nf/class/init": "alternativa.engine3d.loaders.collada:DaeChannel/private:parseSampler" + } + }, + "_-gP": { + "_-ke": { + "_-gP:_-ke": null, + "_-gP:_-ke/instance/init": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/ConicAreaWeaponComponent", + "_-gP:_-ke/instance/_-NO": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/setCallback", + "_-gP:_-ke/instance/initComponent": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/initComponent", + "_-gP:_-ke/instance/addToGame": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/addToGame", + "_-gP:_-ke/instance/removeFromGame": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/removeFromGame", + "_-gP:_-ke/instance/start": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/start", + "_-gP:_-ke/instance/stop": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/stop", + "_-gP:_-ke/instance/update": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/update", + "_-gP:_-ke/class/init": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent/update" + }, + "_-H4": { + "_-gP:_-H4": null, + "_-gP:_-H4/instance/init": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback/IConicAreaWeaponCallback", + "_-gP:_-H4/instance/_-L3:_-RC": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback:onConicAreaWeaponStart", + "_-gP:_-H4/instance/_-L3:_-pY": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback:onConicAreaWeaponStop", + "_-gP:_-H4/instance/_-L3:_-H": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback:onConicAreaWeaponTargetSetChange", + "_-gP:_-H4/class/init": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback:onConicAreaWeaponTargetSetChange" + }, + "_-T8": { + "_-gP:_-T8": null, + "_-gP:_-T8/instance/init": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX/IConicAreaWeaponSFX", + "_-gP:_-T8/instance/_-qO:start": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX:start", + "_-gP:_-T8/instance/_-qO:stop": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX:stop", + "_-gP:_-T8/class/init": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX/alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX:stop" + } + }, + "_-Ex": { + "_-8f": { + "_-Ex:_-8f": null, + "_-Ex:_-8f/instance/init": "alternativa.engine3d.objects:Decal/Decal", + "_-Ex:_-8f/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.objects:Decal/alternativa3d:collectDraws", + "_-Ex:_-8f/instance/http://alternativaplatform.com/en/alternativa3d:setTransformConstants": "alternativa.engine3d.objects:Decal/alternativa3d:setTransformConstants", + "_-Ex:_-8f/instance/clone": "alternativa.engine3d.objects:Decal/clone", + "_-Ex:_-8f/instance/_-OH:clonePropertiesFrom": "alternativa.engine3d.objects:Decal/protected:clonePropertiesFrom", + "_-Ex:_-8f/class/init": "alternativa.engine3d.objects:Decal/protected:clonePropertiesFrom" + }, + "_-2S": { + "_-Ex:_-2S": null, + "_-Ex:_-2S/instance/init": "alternativa.engine3d.objects:WireFrame/WireFrame", + "_-Ex:_-2S/instance/alpha/getter": "alternativa.engine3d.objects:WireFrame/alpha/get", + "_-Ex:_-2S/instance/alpha/setter": "alternativa.engine3d.objects:WireFrame/alpha/set", + "_-Ex:_-2S/instance/color/getter": "alternativa.engine3d.objects:WireFrame/color/get", + "_-Ex:_-2S/instance/color/setter": "alternativa.engine3d.objects:WireFrame/color/set", + "_-Ex:_-2S/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.objects:WireFrame/alternativa3d:updateBoundBox", + "_-Ex:_-2S/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.objects:WireFrame/alternativa3d:collectDraws", + "_-Ex:_-2S/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.objects:WireFrame/alternativa3d:fillResources", + "_-Ex:_-2S/class/init": "alternativa.engine3d.objects:WireFrame/alternativa3d:fillResources", + "_-Ex:_-2S/class/_-Ex:_-2S/_-SP": "alternativa.engine3d.objects:WireFrame/private:initProgram", + "_-Ex:_-2S/class/_-nU": "alternativa.engine3d.objects:WireFrame/createLinesList", + "_-Ex:_-2S/class/_-WC": "alternativa.engine3d.objects:WireFrame/createLineStrip", + "_-Ex:_-2S/class/_-LJ": "alternativa.engine3d.objects:WireFrame/createEdges", + "_-Ex:_-2S/class/_-Ex:_-2S/_-kN": "alternativa.engine3d.objects:WireFrame/private:checkEdge" + }, + "_-54": { + "_-Ex:_-54": null, + "_-Ex:_-54/instance/init": "alternativa.engine3d.objects:Skin/Skin", + "_-Ex:_-54/instance/addSurface": "alternativa.engine3d.objects:Skin/addSurface", + "_-Ex:_-54/instance/_-Ex:_-54/_-XG": "alternativa.engine3d.objects:Skin/private:divideSurface", + "_-Ex:_-54/instance/_-Ex:_-54/_-N7": "alternativa.engine3d.objects:Skin/private:optimizeGroups", + "_-Ex:_-54/instance/_-Ex:_-54/_-3F": "alternativa.engine3d.objects:Skin/private:calculateLikeFactor", + "_-Ex:_-54/instance/_-7c": "alternativa.engine3d.objects:Skin/divide", + "_-Ex:_-54/instance/_-Ex:_-54/_-nB": "alternativa.engine3d.objects:Skin/private:calculateJointsTransforms", + "_-Ex:_-54/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.objects:Skin/alternativa3d:collectDraws", + "_-Ex:_-54/instance/http://alternativaplatform.com/en/alternativa3d:setTransformConstants": "alternativa.engine3d.objects:Skin/alternativa3d:setTransformConstants", + "_-Ex:_-54/instance/_-Ex:_-54/_-jI": "alternativa.engine3d.objects:Skin/private:calculateTransformProcedure", + "_-Ex:_-54/instance/_-Ex:_-54/_-5h": "alternativa.engine3d.objects:Skin/private:calculateDeltaTransformProcedure", + "_-Ex:_-54/instance/clone": "alternativa.engine3d.objects:Skin/clone", + "_-Ex:_-54/instance/_-Ym:clonePropertiesFrom": "alternativa.engine3d.objects:Skin/protected:clonePropertiesFrom", + "_-Ex:_-54/instance/_-Ex:_-54/_-3g": "alternativa.engine3d.objects:Skin/private:cloneJointsVector", + "_-Ex:_-54/instance/_-Ex:_-54/_-na": "alternativa.engine3d.objects:Skin/private:findClonedJoint", + "_-Ex:_-54/class/init": "alternativa.engine3d.objects:Skin/private:findClonedJoint" + }, + "_-hW": { + "_-Ex:_-hW": null, + "_-Ex:_-hW/instance/init": "alternativa.engine3d.objects:Sprite3D/Sprite3D", + "_-Ex:_-hW/instance/material/getter": "alternativa.engine3d.objects:Sprite3D/material/get", + "_-Ex:_-hW/instance/material/setter": "alternativa.engine3d.objects:Sprite3D/material/set", + "_-Ex:_-hW/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.objects:Sprite3D/alternativa3d:fillResources", + "_-Ex:_-hW/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.objects:Sprite3D/alternativa3d:collectDraws", + "_-Ex:_-hW/instance/http://alternativaplatform.com/en/alternativa3d:setTransformConstants": "alternativa.engine3d.objects:Sprite3D/alternativa3d:setTransformConstants", + "_-Ex:_-hW/instance/http://alternativaplatform.com/en/alternativa3d:_-8x": "alternativa.engine3d.objects:Sprite3D/alternativa3d:getGeometry", + "_-Ex:_-hW/instance/clone": "alternativa.engine3d.objects:Sprite3D/clone", + "_-Ex:_-hW/instance/_-VS:clonePropertiesFrom": "alternativa.engine3d.objects:Sprite3D/protected:clonePropertiesFrom", + "_-Ex:_-hW/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.objects:Sprite3D/alternativa3d:updateBoundBox", + "_-Ex:_-hW/class/init": "alternativa.engine3d.objects:Sprite3D/alternativa3d:updateBoundBox" + }, + "_-U2": { + "_-Ex:_-U2": null, + "_-Ex:_-U2/instance/init": "alternativa.engine3d.objects:Mesh/Mesh", + "_-Ex:_-U2/instance/intersectRay": "alternativa.engine3d.objects:Mesh/intersectRay", + "_-Ex:_-U2/instance/addSurface": "alternativa.engine3d.objects:Mesh/addSurface", + "_-Ex:_-U2/instance/_-Hq": "alternativa.engine3d.objects:Mesh/getSurface", + "_-Ex:_-U2/instance/_-hT/getter": "alternativa.engine3d.objects:Mesh/numSurfaces/get", + "_-Ex:_-U2/instance/setMaterialToAllSurfaces": "alternativa.engine3d.objects:Mesh/setMaterialToAllSurfaces", + "_-Ex:_-U2/instance/http://alternativaplatform.com/en/alternativa3d:useLights/getter": "alternativa.engine3d.objects:Mesh/alternativa3d:useLights/get", + "_-Ex:_-U2/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.objects:Mesh/alternativa3d:updateBoundBox", + "_-Ex:_-U2/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.objects:Mesh/alternativa3d:fillResources", + "_-Ex:_-U2/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.objects:Mesh/alternativa3d:collectDraws", + "_-Ex:_-U2/instance/http://alternativaplatform.com/en/alternativa3d:collectGeometry": "alternativa.engine3d.objects:Mesh/alternativa3d:collectGeometry", + "_-Ex:_-U2/instance/clone": "alternativa.engine3d.objects:Mesh/clone", + "_-Ex:_-U2/instance/_-IM:clonePropertiesFrom": "alternativa.engine3d.objects:Mesh/protected:clonePropertiesFrom", + "_-Ex:_-U2/class/init": "alternativa.engine3d.objects:Mesh/protected:clonePropertiesFrom" + }, + "_-7D": { + "_-Ex:_-7D": null, + "_-Ex:_-7D/instance/init": "alternativa.engine3d.objects:Joint/Joint", + "_-Ex:_-7D/instance/http://alternativaplatform.com/en/alternativa3d:_-k9": "alternativa.engine3d.objects:Joint/alternativa3d:setBindPoseMatrix", + "_-Ex:_-7D/instance/http://alternativaplatform.com/en/alternativa3d:_-TF": "alternativa.engine3d.objects:Joint/alternativa3d:calculateTransform", + "_-Ex:_-7D/instance/clone": "alternativa.engine3d.objects:Joint/clone", + "_-Ex:_-7D/instance/_-H0:clonePropertiesFrom": "alternativa.engine3d.objects:Joint/protected:clonePropertiesFrom", + "_-Ex:_-7D/class/init": "alternativa.engine3d.objects:Joint/protected:clonePropertiesFrom" + }, + "_-a2": { + "_-Ex:_-a2": null, + "_-Ex:_-a2/instance/init": "alternativa.engine3d.objects:Surface/Surface", + "_-Ex:_-a2/instance/clone": "alternativa.engine3d.objects:Surface/clone", + "_-Ex:_-a2/class/init": "alternativa.engine3d.objects:Surface/clone" + }, + "_-5P": { + "_-Ex:_-5P": null, + "_-Ex:_-5P/instance/init": "alternativa.engine3d.objects:SkyBox/SkyBox", + "_-Ex:_-5P/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.objects:SkyBox/alternativa3d:collectDraws", + "_-Ex:_-5P/instance/http://alternativaplatform.com/en/alternativa3d:setTransformConstants": "alternativa.engine3d.objects:SkyBox/alternativa3d:setTransformConstants", + "_-Ex:_-5P/instance/_-2l": "alternativa.engine3d.objects:SkyBox/getSide", + "_-Ex:_-5P/instance/clone": "alternativa.engine3d.objects:SkyBox/clone", + "_-Ex:_-5P/instance/_-JL:clonePropertiesFrom": "alternativa.engine3d.objects:SkyBox/protected:clonePropertiesFrom", + "_-Ex:_-5P/class/init": "alternativa.engine3d.objects:SkyBox/protected:clonePropertiesFrom" + } + }, + "_-gp": { + "VectorCodecA3DTransformationLevel1": { + "_-gp:VectorCodecA3DTransformationLevel1": null, + "_-gp:VectorCodecA3DTransformationLevel1/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel1/VectorCodecA3DTransformationLevel1", + "_-gp:VectorCodecA3DTransformationLevel1/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel1/init", + "_-gp:VectorCodecA3DTransformationLevel1/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel1/decode", + "_-gp:VectorCodecA3DTransformationLevel1/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel1/encode", + "_-gp:VectorCodecA3DTransformationLevel1/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel1/encode" + }, + "VectorCodecA3DObjectLevel3": { + "_-gp:VectorCodecA3DObjectLevel3": null, + "_-gp:VectorCodecA3DObjectLevel3/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel3/VectorCodecA3DObjectLevel3", + "_-gp:VectorCodecA3DObjectLevel3/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel3/init", + "_-gp:VectorCodecA3DObjectLevel3/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel3/decode", + "_-gp:VectorCodecA3DObjectLevel3/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel3/encode", + "_-gp:VectorCodecA3DObjectLevel3/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel3/encode" + }, + "VectorCodecA3DSurfaceLevel3": { + "_-gp:VectorCodecA3DSurfaceLevel3": null, + "_-gp:VectorCodecA3DSurfaceLevel3/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel3/VectorCodecA3DSurfaceLevel3", + "_-gp:VectorCodecA3DSurfaceLevel3/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel3/init", + "_-gp:VectorCodecA3DSurfaceLevel3/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel3/decode", + "_-gp:VectorCodecA3DSurfaceLevel3/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel3/encode", + "_-gp:VectorCodecA3DSurfaceLevel3/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel3/encode" + }, + "VectorCodecA3DTransformationLevel2": { + "_-gp:VectorCodecA3DTransformationLevel2": null, + "_-gp:VectorCodecA3DTransformationLevel2/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel2/VectorCodecA3DTransformationLevel2", + "_-gp:VectorCodecA3DTransformationLevel2/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel2/init", + "_-gp:VectorCodecA3DTransformationLevel2/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel2/decode", + "_-gp:VectorCodecA3DTransformationLevel2/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel2/encode", + "_-gp:VectorCodecA3DTransformationLevel2/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel2/encode" + }, + "CodecA3DObject": { + "_-gp:CodecA3DObject": null, + "_-gp:CodecA3DObject/instance/init#1": "_codec.versions.version1.a3d.objects:CodecA3DObject/CodecA3DObject", + "_-gp:CodecA3DObject/instance/init#0": "_codec.versions.version1.a3d.objects:CodecA3DObject/init", + "_-gp:CodecA3DObject/instance/_-2Q": "_codec.versions.version1.a3d.objects:CodecA3DObject/decode", + "_-gp:CodecA3DObject/instance/_-QN": "_codec.versions.version1.a3d.objects:CodecA3DObject/encode", + "_-gp:CodecA3DObject/class/init": "_codec.versions.version1.a3d.objects:CodecA3DObject/encode" + }, + "VectorCodecA3DBoxLevel2": { + "_-gp:VectorCodecA3DBoxLevel2": null, + "_-gp:VectorCodecA3DBoxLevel2/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel2/VectorCodecA3DBoxLevel2", + "_-gp:VectorCodecA3DBoxLevel2/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel2/init", + "_-gp:VectorCodecA3DBoxLevel2/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel2/decode", + "_-gp:VectorCodecA3DBoxLevel2/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel2/encode", + "_-gp:VectorCodecA3DBoxLevel2/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel2/encode" + }, + "CodecA3DSurface": { + "_-gp:CodecA3DSurface": null, + "_-gp:CodecA3DSurface/instance/init#1": "_codec.versions.version1.a3d.objects:CodecA3DSurface/CodecA3DSurface", + "_-gp:CodecA3DSurface/instance/init#0": "_codec.versions.version1.a3d.objects:CodecA3DSurface/init", + "_-gp:CodecA3DSurface/instance/_-2Q": "_codec.versions.version1.a3d.objects:CodecA3DSurface/decode", + "_-gp:CodecA3DSurface/instance/_-QN": "_codec.versions.version1.a3d.objects:CodecA3DSurface/encode", + "_-gp:CodecA3DSurface/class/init": "_codec.versions.version1.a3d.objects:CodecA3DSurface/encode" + }, + "CodecA3DTransformation": { + "_-gp:CodecA3DTransformation": null, + "_-gp:CodecA3DTransformation/instance/init#1": "_codec.versions.version1.a3d.objects:CodecA3DTransformation/CodecA3DTransformation", + "_-gp:CodecA3DTransformation/instance/init#0": "_codec.versions.version1.a3d.objects:CodecA3DTransformation/init", + "_-gp:CodecA3DTransformation/instance/_-2Q": "_codec.versions.version1.a3d.objects:CodecA3DTransformation/decode", + "_-gp:CodecA3DTransformation/instance/_-QN": "_codec.versions.version1.a3d.objects:CodecA3DTransformation/encode", + "_-gp:CodecA3DTransformation/class/init": "_codec.versions.version1.a3d.objects:CodecA3DTransformation/encode" + }, + "VectorCodecA3DTransformationLevel3": { + "_-gp:VectorCodecA3DTransformationLevel3": null, + "_-gp:VectorCodecA3DTransformationLevel3/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel3/VectorCodecA3DTransformationLevel3", + "_-gp:VectorCodecA3DTransformationLevel3/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel3/init", + "_-gp:VectorCodecA3DTransformationLevel3/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel3/decode", + "_-gp:VectorCodecA3DTransformationLevel3/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel3/encode", + "_-gp:VectorCodecA3DTransformationLevel3/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel3/encode" + }, + "VectorCodecA3DBoxLevel3": { + "_-gp:VectorCodecA3DBoxLevel3": null, + "_-gp:VectorCodecA3DBoxLevel3/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel3/VectorCodecA3DBoxLevel3", + "_-gp:VectorCodecA3DBoxLevel3/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel3/init", + "_-gp:VectorCodecA3DBoxLevel3/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel3/decode", + "_-gp:VectorCodecA3DBoxLevel3/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel3/encode", + "_-gp:VectorCodecA3DBoxLevel3/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel3/encode" + }, + "CodecA3DBox": { + "_-gp:CodecA3DBox": null, + "_-gp:CodecA3DBox/instance/init#1": "_codec.versions.version1.a3d.objects:CodecA3DBox/CodecA3DBox", + "_-gp:CodecA3DBox/instance/init#0": "_codec.versions.version1.a3d.objects:CodecA3DBox/init", + "_-gp:CodecA3DBox/instance/_-2Q": "_codec.versions.version1.a3d.objects:CodecA3DBox/decode", + "_-gp:CodecA3DBox/instance/_-QN": "_codec.versions.version1.a3d.objects:CodecA3DBox/encode", + "_-gp:CodecA3DBox/class/init": "_codec.versions.version1.a3d.objects:CodecA3DBox/encode" + }, + "VectorCodecA3DObjectLevel2": { + "_-gp:VectorCodecA3DObjectLevel2": null, + "_-gp:VectorCodecA3DObjectLevel2/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel2/VectorCodecA3DObjectLevel2", + "_-gp:VectorCodecA3DObjectLevel2/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel2/init", + "_-gp:VectorCodecA3DObjectLevel2/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel2/decode", + "_-gp:VectorCodecA3DObjectLevel2/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel2/encode", + "_-gp:VectorCodecA3DObjectLevel2/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel2/encode" + }, + "VectorCodecA3DSurfaceLevel1": { + "_-gp:VectorCodecA3DSurfaceLevel1": null, + "_-gp:VectorCodecA3DSurfaceLevel1/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel1/VectorCodecA3DSurfaceLevel1", + "_-gp:VectorCodecA3DSurfaceLevel1/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel1/init", + "_-gp:VectorCodecA3DSurfaceLevel1/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel1/decode", + "_-gp:VectorCodecA3DSurfaceLevel1/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel1/encode", + "_-gp:VectorCodecA3DSurfaceLevel1/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel1/encode" + }, + "VectorCodecA3DObjectLevel1": { + "_-gp:VectorCodecA3DObjectLevel1": null, + "_-gp:VectorCodecA3DObjectLevel1/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel1/VectorCodecA3DObjectLevel1", + "_-gp:VectorCodecA3DObjectLevel1/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel1/init", + "_-gp:VectorCodecA3DObjectLevel1/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel1/decode", + "_-gp:VectorCodecA3DObjectLevel1/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel1/encode", + "_-gp:VectorCodecA3DObjectLevel1/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel1/encode" + }, + "VectorCodecA3DSurfaceLevel2": { + "_-gp:VectorCodecA3DSurfaceLevel2": null, + "_-gp:VectorCodecA3DSurfaceLevel2/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel2/VectorCodecA3DSurfaceLevel2", + "_-gp:VectorCodecA3DSurfaceLevel2/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel2/init", + "_-gp:VectorCodecA3DSurfaceLevel2/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel2/decode", + "_-gp:VectorCodecA3DSurfaceLevel2/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel2/encode", + "_-gp:VectorCodecA3DSurfaceLevel2/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel2/encode" + }, + "VectorCodecA3DBoxLevel1": { + "_-gp:VectorCodecA3DBoxLevel1": null, + "_-gp:VectorCodecA3DBoxLevel1/instance/init#0": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel1/VectorCodecA3DBoxLevel1", + "_-gp:VectorCodecA3DBoxLevel1/instance/init#1": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel1/init", + "_-gp:VectorCodecA3DBoxLevel1/instance/_-2Q": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel1/decode", + "_-gp:VectorCodecA3DBoxLevel1/instance/_-QN": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel1/encode", + "_-gp:VectorCodecA3DBoxLevel1/class/init": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel1/encode" + } + }, + "_-aF": { + "_-S8": { + "_-aF:_-S8": null, + "_-aF:_-S8/instance/init": "alternativa.engine3d.effects:TextureAtlas/TextureAtlas", + "_-aF:_-S8/class/init": "alternativa.engine3d.effects:TextureAtlas/TextureAtlas" + }, + "_-SG": {}, + "_-B0": { + "_-aF:_-B0": null, + "_-aF:_-B0/instance/init": "alternativa.engine3d.effects:AGALMiniAssembler/AGALMiniAssembler", + "_-aF:_-B0/instance/error/getter": "alternativa.engine3d.effects:AGALMiniAssembler/error/get", + "_-aF:_-B0/instance/_-Ky/getter": "alternativa.engine3d.effects:AGALMiniAssembler/agalcode/get", + "_-aF:_-B0/instance/assemble": "alternativa.engine3d.effects:AGALMiniAssembler/assemble", + "_-aF:_-B0/class/init": "alternativa.engine3d.effects:AGALMiniAssembler/assemble", + "_-aF:_-B0/class/_-aF:_-B0/init": "alternativa.engine3d.effects:AGALMiniAssembler/private:init" + }, + "_-nN": { + "_-aF:_-nN": null, + "_-aF:_-nN/instance/init": "alternativa.engine3d.effects:ParticlePrototype/ParticlePrototype", + "_-aF:_-nN/instance/_-Le": "alternativa.engine3d.effects:ParticlePrototype/addKey", + "_-aF:_-nN/instance/_-fs": "alternativa.engine3d.effects:ParticlePrototype/createParticle", + "_-aF:_-nN/instance/lifeTime/getter": "alternativa.engine3d.effects:ParticlePrototype/lifeTime/get", + "_-aF:_-nN/class/init": "alternativa.engine3d.effects:ParticlePrototype/lifeTime/get" + }, + "Particle": { + "_-aF:Particle": null, + "_-aF:Particle/instance/init": "alternativa.engine3d.effects:Particle/Particle", + "_-aF:Particle/class/init": "alternativa.engine3d.effects:Particle/Particle", + "_-aF:Particle/class/create": "alternativa.engine3d.effects:Particle/create" + }, + "_-ja": { + "_-aF:_-ja": null, + "_-aF:_-ja/instance/init": "alternativa.engine3d.effects:ParticleSystem/ParticleSystem", + "_-aF:_-ja/instance/stop": "alternativa.engine3d.effects:ParticleSystem/stop", + "_-aF:_-ja/instance/play": "alternativa.engine3d.effects:ParticleSystem/play", + "_-aF:_-ja/instance/_-I4": "alternativa.engine3d.effects:ParticleSystem/prevFrame", + "_-aF:_-ja/instance/_-3L": "alternativa.engine3d.effects:ParticleSystem/nextFrame", + "_-aF:_-ja/instance/each": "alternativa.engine3d.effects:ParticleSystem/addEffect", + "_-aF:_-ja/instance/_-dE": "alternativa.engine3d.effects:ParticleSystem/getEffectByName", + "_-aF:_-ja/instance/http://alternativaplatform.com/en/alternativa3d:_-EV": "alternativa.engine3d.effects:ParticleSystem/alternativa3d:getTime", + "_-aF:_-ja/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.effects:ParticleSystem/alternativa3d:collectDraws", + "_-aF:_-ja/instance/_-aF:_-ja/_-Mj": "alternativa.engine3d.effects:ParticleSystem/private:createAndUpload", + "_-aF:_-ja/instance/_-aF:_-ja/_-Sa": "alternativa.engine3d.effects:ParticleSystem/private:compileProgram", + "_-aF:_-ja/instance/_-aF:_-ja/flush": "alternativa.engine3d.effects:ParticleSystem/private:flush", + "_-aF:_-ja/instance/_-aF:_-ja/_-GZ": "alternativa.engine3d.effects:ParticleSystem/private:drawParticleList", + "_-aF:_-ja/instance/_-aF:_-ja/_-OM": "alternativa.engine3d.effects:ParticleSystem/private:sortParticleList", + "_-aF:_-ja/instance/_-aF:_-ja/_-fd": "alternativa.engine3d.effects:ParticleSystem/private:drawConflictEffects", + "_-aF:_-ja/class/init": "alternativa.engine3d.effects:ParticleSystem/private:drawConflictEffects" + } + }, + "_-dz": { + "_-lm": { + "_-dz:_-lm": null, + "_-dz:_-lm/instance/init": "alternativa.tanks.game.weapons:IWeapon/IWeapon", + "_-dz:_-lm/instance/_-Sq:_-j0": "alternativa.tanks.game.weapons:IWeapon/alternativa.tanks.game.weapons:IWeapon:getStatus", + "_-dz:_-lm/class/init": "alternativa.tanks.game.weapons:IWeapon/alternativa.tanks.game.weapons:IWeapon:getStatus" + }, + "_-2G": { + "_-dz:_-2G": null, + "_-dz:_-2G/instance/init": "alternativa.tanks.game.weapons:IWeaponDistanceWeakening/IWeaponDistanceWeakening", + "_-dz:_-2G/instance/_-c0:_-Wg": "alternativa.tanks.game.weapons:IWeaponDistanceWeakening/alternativa.tanks.game.weapons:IWeaponDistanceWeakening:getWeakeningCoefficient", + "_-dz:_-2G/instance/_-c0:_-4v": "alternativa.tanks.game.weapons:IWeaponDistanceWeakening/alternativa.tanks.game.weapons:IWeaponDistanceWeakening:getMaximumDamageRadius", + "_-dz:_-2G/instance/_-c0:_-n0": "alternativa.tanks.game.weapons:IWeaponDistanceWeakening/alternativa.tanks.game.weapons:IWeaponDistanceWeakening:getMinimumDamageRadius", + "_-dz:_-2G/class/init": "alternativa.tanks.game.weapons:IWeaponDistanceWeakening/alternativa.tanks.game.weapons:IWeaponDistanceWeakening:getMinimumDamageRadius" + }, + "_-2p": { + "_-dz:_-2p": null, + "_-dz:_-2p/instance/init": "alternativa.tanks.game.weapons:IGenericRound/IGenericRound", + "_-dz:_-2p/instance/_-Vw:_-qN": "alternativa.tanks.game.weapons:IGenericRound/alternativa.tanks.game.weapons:IGenericRound:shoot", + "_-dz:_-2p/class/init": "alternativa.tanks.game.weapons:IGenericRound/alternativa.tanks.game.weapons:IGenericRound:shoot" + }, + "_-8": { + "_-dz:_-8": null, + "_-dz:_-8/instance/init": "alternativa.tanks.game.weapons:IGenericTargetingSystem/IGenericTargetingSystem", + "_-dz:_-8/instance/_-dJ:_-5a": "alternativa.tanks.game.weapons:IGenericTargetingSystem/alternativa.tanks.game.weapons:IGenericTargetingSystem:calculateShotDirection", + "_-dz:_-8/class/init": "alternativa.tanks.game.weapons:IGenericTargetingSystem/alternativa.tanks.game.weapons:IGenericTargetingSystem:calculateShotDirection" + }, + "_-aS": { + "_-dz:_-aS": null, + "_-dz:_-aS/instance/init": "alternativa.tanks.game.weapons:IEnergyShotWeaponCallback/IEnergyShotWeaponCallback", + "_-dz:_-aS/instance/_-gI:_-IF": "alternativa.tanks.game.weapons:IEnergyShotWeaponCallback/alternativa.tanks.game.weapons:IEnergyShotWeaponCallback:onEnergyShotWeaponFire", + "_-dz:_-aS/class/init": "alternativa.tanks.game.weapons:IEnergyShotWeaponCallback/alternativa.tanks.game.weapons:IEnergyShotWeaponCallback:onEnergyShotWeaponFire" + }, + "_-ZU": { + "_-dz:_-ZU": null, + "_-dz:_-ZU/instance/init": "alternativa.tanks.game.weapons:EnergyShotType/EnergyShotType", + "_-dz:_-ZU/class/init": "alternativa.tanks.game.weapons:EnergyShotType/EnergyShotType" + }, + "_-8v": { + "_-dz:_-8v": null, + "_-dz:_-8v/instance/init": "alternativa.tanks.game.weapons:IBasicWeapon/IBasicWeapon", + "_-dz:_-8v/instance/_-jb:_-Cz": "alternativa.tanks.game.weapons:IBasicWeapon/alternativa.tanks.game.weapons:IBasicWeapon:pullTrigger", + "_-dz:_-8v/instance/_-jb:_-Do": "alternativa.tanks.game.weapons:IBasicWeapon/alternativa.tanks.game.weapons:IBasicWeapon:releaseTrigger", + "_-dz:_-8v/instance/_-jb:null": "alternativa.tanks.game.weapons:IBasicWeapon/alternativa.tanks.game.weapons:IBasicWeapon:forceUpdate", + "_-dz:_-8v/class/init": "alternativa.tanks.game.weapons:IBasicWeapon/alternativa.tanks.game.weapons:IBasicWeapon:forceUpdate" + }, + "_-NB": { + "_-dz:_-NB": null, + "_-dz:_-NB/instance/init": "alternativa.tanks.game.weapons:SimpleTargetEvaluator/SimpleTargetEvaluator", + "_-dz:_-NB/instance/_-EJ": "alternativa.tanks.game.weapons:SimpleTargetEvaluator/getTargetPriority", + "_-dz:_-NB/class/init": "alternativa.tanks.game.weapons:SimpleTargetEvaluator/getTargetPriority" + }, + "_-Dm": { + "_-dz:_-Dm": null, + "_-dz:_-Dm/instance/init": "alternativa.tanks.game.weapons:WeaponConst/WeaponConst", + "_-dz:_-Dm/class/init": "alternativa.tanks.game.weapons:WeaponConst/WeaponConst" + }, + "_-S1": { + "_-dz:_-S1": null, + "_-dz:_-S1/instance/init": "alternativa.tanks.game.weapons:WeaponHit/WeaponHit", + "_-dz:_-S1/instance/toString": "alternativa.tanks.game.weapons:WeaponHit/toString", + "_-dz:_-S1/class/init": "alternativa.tanks.game.weapons:WeaponHit/toString" + }, + "_-VX": { + "_-dz:_-VX": null, + "_-dz:_-VX/instance/init": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/EnergyShotWeaponComponent", + "_-dz:_-VX/instance/_-NO": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/setCallback", + "_-dz:_-VX/instance/_-DY": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/setTargetingSystem", + "_-dz:_-VX/instance/initComponent": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/initComponent", + "_-dz:_-VX/instance/addToGame": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/addToGame", + "_-dz:_-VX/instance/removeFromGame": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/removeFromGame", + "_-dz:_-VX/instance/_-Cz": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/pullTrigger", + "_-dz:_-VX/instance/_-Do": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/releaseTrigger", + "_-dz:_-VX/instance/null": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/forceUpdate", + "_-dz:_-VX/instance/_-j0": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/getStatus", + "_-dz:_-VX/instance/runLogic": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/runLogic", + "_-dz:_-VX/instance/_-qN": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/shoot", + "_-dz:_-VX/instance/_-BE/getter": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/enabled/get", + "_-dz:_-VX/instance/_-BE/setter": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/enabled/set", + "_-dz:_-VX/instance/_-dz:_-VX/_-V4": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:doShowShotEffects", + "_-dz:_-VX/instance/_-dz:_-VX/setActiveState": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:setActiveState", + "_-dz:_-VX/instance/_-dz:_-VX/_-Tl": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:setInactiveState", + "_-dz:_-VX/instance/_-dz:_-VX/_-Q3": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:enableLogic", + "_-dz:_-VX/instance/_-dz:_-VX/_-ip": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:disableLogic", + "_-dz:_-VX/instance/_-dz:_-VX/_-Yd": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:getCurrentEnergy", + "_-dz:_-VX/class/init": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent/private:getCurrentEnergy" + }, + "_-l3": { + "_-dz:_-l3": null, + "_-dz:_-l3/instance/init": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/ContinuousActionGunPlatformComponent", + "_-dz:_-l3/instance/_-BE/getter": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/enabled/get", + "_-dz:_-l3/instance/_-BE/setter": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/enabled/set", + "_-dz:_-l3/instance/initComponent": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/initComponent", + "_-dz:_-l3/instance/addToGame": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/addToGame", + "_-dz:_-l3/instance/removeFromGame": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/removeFromGame", + "_-dz:_-l3/instance/_-j0": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/getStatus", + "_-dz:_-l3/instance/_-Cz": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/pullTrigger", + "_-dz:_-l3/instance/_-Do": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/releaseTrigger", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-AI": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:getLogger", + "_-dz:_-l3/instance/null": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/forceUpdate", + "_-dz:_-l3/instance/runLogic": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/runLogic", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-Yd": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:getCurrentEnergy", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-Q3": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:enableLogic", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-ip": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:disableLogic", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-3b": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:activate", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-71": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:deactivate", + "_-dz:_-l3/instance/_-dz:_-l3/instance/setActiveState": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:setActiveState", + "_-dz:_-l3/instance/_-dz:_-l3/instance/_-Tl": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:setInactiveState", + "_-dz:_-l3/instance/_-dz:_-l3/instance/setActivatingState": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:setActivatingState", + "_-dz:_-l3/class/init": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent/private:setActivatingState" + }, + "_-nJ": { + "_-dz:_-nJ": null, + "_-dz:_-nJ/instance/init": "alternativa.tanks.game.weapons:IInstantShotWeaponCallback/IInstantShotWeaponCallback", + "_-dz:_-nJ/instance/_-BZ:override": "alternativa.tanks.game.weapons:IInstantShotWeaponCallback/alternativa.tanks.game.weapons:IInstantShotWeaponCallback:onInstantShot", + "_-dz:_-nJ/class/init": "alternativa.tanks.game.weapons:IInstantShotWeaponCallback/alternativa.tanks.game.weapons:IInstantShotWeaponCallback:onInstantShot" + }, + "_-Mq": { + "_-dz:_-Mq": null, + "_-dz:_-Mq/instance/init": "alternativa.tanks.game.weapons:IContinuousActionWeapon/IContinuousActionWeapon", + "_-dz:_-Mq/instance/_-Pd:start": "alternativa.tanks.game.weapons:IContinuousActionWeapon/alternativa.tanks.game.weapons:IContinuousActionWeapon:start", + "_-dz:_-Mq/instance/_-Pd:stop": "alternativa.tanks.game.weapons:IContinuousActionWeapon/alternativa.tanks.game.weapons:IContinuousActionWeapon:stop", + "_-dz:_-Mq/instance/_-Pd:update": "alternativa.tanks.game.weapons:IContinuousActionWeapon/alternativa.tanks.game.weapons:IContinuousActionWeapon:update", + "_-dz:_-Mq/class/init": "alternativa.tanks.game.weapons:IContinuousActionWeapon/alternativa.tanks.game.weapons:IContinuousActionWeapon:update" + }, + "_-Zh": { + "_-dz:_-Zh": null, + "_-dz:_-Zh/instance/init": "alternativa.tanks.game.weapons:IGenericAmmunition/IGenericAmmunition", + "_-dz:_-Zh/instance/_-0t:getRound": "alternativa.tanks.game.weapons:IGenericAmmunition/alternativa.tanks.game.weapons:IGenericAmmunition:getRound", + "_-dz:_-Zh/class/init": "alternativa.tanks.game.weapons:IGenericAmmunition/alternativa.tanks.game.weapons:IGenericAmmunition:getRound" + }, + "_-ZW": { + "_-dz:_-ZW": null, + "_-dz:_-ZW/instance/init": "alternativa.tanks.game.weapons:IEnergyAmmunition/IEnergyAmmunition", + "_-dz:_-ZW/instance/_-Mh:getRound": "alternativa.tanks.game.weapons:IEnergyAmmunition/alternativa.tanks.game.weapons:IEnergyAmmunition:getRound", + "_-dz:_-ZW/class/init": "alternativa.tanks.game.weapons:IEnergyAmmunition/alternativa.tanks.game.weapons:IEnergyAmmunition:getRound" + }, + "_-od": { + "_-dz:_-od": null, + "_-dz:_-od/instance/init": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/InstantShotWeaponComponent", + "_-dz:_-od/instance/initComponent": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/initComponent", + "_-dz:_-od/instance/_-dz:_-od/setActiveState": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/private:setActiveState", + "_-dz:_-od/instance/_-dz:_-od/_-Tl": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/private:setInactiveState", + "_-dz:_-od/instance/addToGame": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/addToGame", + "_-dz:_-od/instance/removeFromGame": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/removeFromGame", + "_-dz:_-od/instance/_-j0": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/getStatus", + "_-dz:_-od/instance/_-Cz": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/pullTrigger", + "_-dz:_-od/instance/_-Do": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/releaseTrigger", + "_-dz:_-od/instance/null": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/forceUpdate", + "_-dz:_-od/instance/runLogic": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/runLogic", + "_-dz:_-od/instance/_-BE/getter": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/enabled/get", + "_-dz:_-od/instance/_-BE/setter": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/enabled/set", + "_-dz:_-od/instance/_-Qz": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/showShotEffects", + "_-dz:_-od/instance/_-dz:_-od/_-V4": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/private:doShowShotEffects", + "_-dz:_-od/instance/_-dz:_-od/_-Q3": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/private:enableLogic", + "_-dz:_-od/instance/_-dz:_-od/_-ip": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/private:disableLogic", + "_-dz:_-od/class/init": "alternativa.tanks.game.weapons:InstantShotWeaponComponent/private:disableLogic" + } + }, + "_-n8": { + "VectorCodecshortLevel1": { + "_-n8:VectorCodecshortLevel1": null, + "_-n8:VectorCodecshortLevel1/instance/init#0": "_codec.unsigned:VectorCodecshortLevel1/VectorCodecshortLevel1", + "_-n8:VectorCodecshortLevel1/instance/init#1": "_codec.unsigned:VectorCodecshortLevel1/init", + "_-n8:VectorCodecshortLevel1/instance/_-2Q": "_codec.unsigned:VectorCodecshortLevel1/decode", + "_-n8:VectorCodecshortLevel1/instance/_-QN": "_codec.unsigned:VectorCodecshortLevel1/encode", + "_-n8:VectorCodecshortLevel1/class/init": "_codec.unsigned:VectorCodecshortLevel1/encode" + }, + "VectorCodecshortLevel3": { + "_-n8:VectorCodecshortLevel3": null, + "_-n8:VectorCodecshortLevel3/instance/init#0": "_codec.unsigned:VectorCodecshortLevel3/VectorCodecshortLevel3", + "_-n8:VectorCodecshortLevel3/instance/init#1": "_codec.unsigned:VectorCodecshortLevel3/init", + "_-n8:VectorCodecshortLevel3/instance/_-2Q": "_codec.unsigned:VectorCodecshortLevel3/decode", + "_-n8:VectorCodecshortLevel3/instance/_-QN": "_codec.unsigned:VectorCodecshortLevel3/encode", + "_-n8:VectorCodecshortLevel3/class/init": "_codec.unsigned:VectorCodecshortLevel3/encode" + }, + "VectorCodecintLevel1": { + "_-n8:VectorCodecintLevel1": null, + "_-n8:VectorCodecintLevel1/instance/init#0": "_codec.unsigned:VectorCodecintLevel1/VectorCodecintLevel1", + "_-n8:VectorCodecintLevel1/instance/init#1": "_codec.unsigned:VectorCodecintLevel1/init", + "_-n8:VectorCodecintLevel1/instance/_-2Q": "_codec.unsigned:VectorCodecintLevel1/decode", + "_-n8:VectorCodecintLevel1/instance/_-QN": "_codec.unsigned:VectorCodecintLevel1/encode", + "_-n8:VectorCodecintLevel1/class/init": "_codec.unsigned:VectorCodecintLevel1/encode" + }, + "VectorCodeclongLevel2": { + "_-n8:VectorCodeclongLevel2": null, + "_-n8:VectorCodeclongLevel2/instance/init#0": "_codec.unsigned:VectorCodeclongLevel2/VectorCodeclongLevel2", + "_-n8:VectorCodeclongLevel2/instance/init#1": "_codec.unsigned:VectorCodeclongLevel2/init", + "_-n8:VectorCodeclongLevel2/instance/_-2Q": "_codec.unsigned:VectorCodeclongLevel2/decode", + "_-n8:VectorCodeclongLevel2/instance/_-QN": "_codec.unsigned:VectorCodeclongLevel2/encode", + "_-n8:VectorCodeclongLevel2/class/init": "_codec.unsigned:VectorCodeclongLevel2/encode" + }, + "VectorCodeclongLevel3": { + "_-n8:VectorCodeclongLevel3": null, + "_-n8:VectorCodeclongLevel3/instance/init#0": "_codec.unsigned:VectorCodeclongLevel3/VectorCodeclongLevel3", + "_-n8:VectorCodeclongLevel3/instance/init#1": "_codec.unsigned:VectorCodeclongLevel3/init", + "_-n8:VectorCodeclongLevel3/instance/_-2Q": "_codec.unsigned:VectorCodeclongLevel3/decode", + "_-n8:VectorCodeclongLevel3/instance/_-QN": "_codec.unsigned:VectorCodeclongLevel3/encode", + "_-n8:VectorCodeclongLevel3/class/init": "_codec.unsigned:VectorCodeclongLevel3/encode" + }, + "VectorCodeclongLevel1": { + "_-n8:VectorCodeclongLevel1": null, + "_-n8:VectorCodeclongLevel1/instance/init#0": "_codec.unsigned:VectorCodeclongLevel1/VectorCodeclongLevel1", + "_-n8:VectorCodeclongLevel1/instance/init#1": "_codec.unsigned:VectorCodeclongLevel1/init", + "_-n8:VectorCodeclongLevel1/instance/_-2Q": "_codec.unsigned:VectorCodeclongLevel1/decode", + "_-n8:VectorCodeclongLevel1/instance/_-QN": "_codec.unsigned:VectorCodeclongLevel1/encode", + "_-n8:VectorCodeclongLevel1/class/init": "_codec.unsigned:VectorCodeclongLevel1/encode" + }, + "VectorCodecshortLevel2": { + "_-n8:VectorCodecshortLevel2": null, + "_-n8:VectorCodecshortLevel2/instance/init#0": "_codec.unsigned:VectorCodecshortLevel2/VectorCodecshortLevel2", + "_-n8:VectorCodecshortLevel2/instance/init#1": "_codec.unsigned:VectorCodecshortLevel2/init", + "_-n8:VectorCodecshortLevel2/instance/_-2Q": "_codec.unsigned:VectorCodecshortLevel2/decode", + "_-n8:VectorCodecshortLevel2/instance/_-QN": "_codec.unsigned:VectorCodecshortLevel2/encode", + "_-n8:VectorCodecshortLevel2/class/init": "_codec.unsigned:VectorCodecshortLevel2/encode" + }, + "VectorCodecintLevel3": { + "_-n8:VectorCodecintLevel3": null, + "_-n8:VectorCodecintLevel3/instance/init#0": "_codec.unsigned:VectorCodecintLevel3/VectorCodecintLevel3", + "_-n8:VectorCodecintLevel3/instance/init#1": "_codec.unsigned:VectorCodecintLevel3/init", + "_-n8:VectorCodecintLevel3/instance/_-2Q": "_codec.unsigned:VectorCodecintLevel3/decode", + "_-n8:VectorCodecintLevel3/instance/_-QN": "_codec.unsigned:VectorCodecintLevel3/encode", + "_-n8:VectorCodecintLevel3/class/init": "_codec.unsigned:VectorCodecintLevel3/encode" + }, + "VectorCodecintLevel2": { + "_-n8:VectorCodecintLevel2": null, + "_-n8:VectorCodecintLevel2/instance/init#0": "_codec.unsigned:VectorCodecintLevel2/VectorCodecintLevel2", + "_-n8:VectorCodecintLevel2/instance/init#1": "_codec.unsigned:VectorCodecintLevel2/init", + "_-n8:VectorCodecintLevel2/instance/_-2Q": "_codec.unsigned:VectorCodecintLevel2/decode", + "_-n8:VectorCodecintLevel2/instance/_-QN": "_codec.unsigned:VectorCodecintLevel2/encode", + "_-n8:VectorCodecintLevel2/class/init": "_codec.unsigned:VectorCodecintLevel2/encode" + } + }, + "_-1e": { + "_-hG": { + "_-1e:_-hG": null, + "_-1e:_-hG/instance/init": "alternativa.physics.collision:ICollider/ICollider", + "_-1e:_-hG/instance/_-Ug:getContact": "alternativa.physics.collision:ICollider/alternativa.physics.collision:ICollider:getContact", + "_-1e:_-hG/instance/_-Ug:haveCollision": "alternativa.physics.collision:ICollider/alternativa.physics.collision:ICollider:haveCollision", + "_-1e:_-hG/class/init": "alternativa.physics.collision:ICollider/alternativa.physics.collision:ICollider:haveCollision" + }, + "CollisionKdTree2D": {}, + "_-oZ": { + "_-1e:_-oZ": null, + "_-1e:_-oZ/instance/init": "alternativa.physics.collision:CollisionKdNode/CollisionKdNode", + "_-1e:_-oZ/class/init": "alternativa.physics.collision:CollisionKdNode/CollisionKdNode" + }, + "_-jn": { + "_-1e:_-jn": null, + "_-1e:_-jn/instance/init": "alternativa.physics.collision:IRaycastFilter/IRaycastFilter", + "_-1e:_-jn/instance/_-pv:_-0w": "alternativa.physics.collision:IRaycastFilter/alternativa.physics.collision:IRaycastFilter:acceptRayHit", + "_-1e:_-jn/class/init": "alternativa.physics.collision:IRaycastFilter/alternativa.physics.collision:IRaycastFilter:acceptRayHit" + }, + "_-fx": { + "_-1e:_-fx": null, + "_-1e:_-fx/instance/init": "alternativa.physics.collision:ICollisionDetector/ICollisionDetector", + "_-1e:_-fx/instance/_-Jz:_-63": "alternativa.physics.collision:ICollisionDetector/alternativa.physics.collision:ICollisionDetector:getAllContacts", + "_-1e:_-fx/instance/_-Jz:raycast": "alternativa.physics.collision:ICollisionDetector/alternativa.physics.collision:ICollisionDetector:raycast", + "_-1e:_-fx/instance/_-Jz:_-cX": "alternativa.physics.collision:ICollisionDetector/alternativa.physics.collision:ICollisionDetector:raycastStatic", + "_-1e:_-fx/instance/_-Jz:getContact": "alternativa.physics.collision:ICollisionDetector/alternativa.physics.collision:ICollisionDetector:getContact", + "_-1e:_-fx/instance/_-Jz:_-A5": "alternativa.physics.collision:ICollisionDetector/alternativa.physics.collision:ICollisionDetector:testCollision", + "_-1e:_-fx/class/init": "alternativa.physics.collision:ICollisionDetector/alternativa.physics.collision:ICollisionDetector:testCollision" + }, + "_-Nh": { + "_-1e:_-Nh": null, + "_-1e:_-Nh/instance/init": "alternativa.physics.collision:CollisionPrimitive/CollisionPrimitive", + "_-1e:_-Nh/instance/_-C9": "alternativa.physics.collision:CollisionPrimitive/setBody", + "_-1e:_-Nh/instance/calculateAABB": "alternativa.physics.collision:CollisionPrimitive/calculateAABB", + "_-1e:_-Nh/instance/raycast": "alternativa.physics.collision:CollisionPrimitive/raycast", + "_-1e:_-Nh/instance/clone": "alternativa.physics.collision:CollisionPrimitive/clone", + "_-1e:_-Nh/instance/copyFrom": "alternativa.physics.collision:CollisionPrimitive/copyFrom", + "_-1e:_-Nh/instance/toString": "alternativa.physics.collision:CollisionPrimitive/toString", + "_-1e:_-Nh/instance/_-aX:createPrimitive": "alternativa.physics.collision:CollisionPrimitive/protected:createPrimitive", + "_-1e:_-Nh/class/init": "alternativa.physics.collision:CollisionPrimitive/protected:createPrimitive" + }, + "_-D-": {}, + "_-p9": { + "_-1e:_-p9": null, + "_-1e:_-p9/instance/init": "alternativa.physics.collision:IBodyCollisionFilter/IBodyCollisionFilter", + "_-1e:_-p9/instance/_-AV:acceptBodiesCollision": "alternativa.physics.collision:IBodyCollisionFilter/alternativa.physics.collision:IBodyCollisionFilter:acceptBodiesCollision", + "_-1e:_-p9/class/init": "alternativa.physics.collision:IBodyCollisionFilter/alternativa.physics.collision:IBodyCollisionFilter:acceptBodiesCollision" + }, + "_-aU": { + "_-1e:_-aU": null, + "_-1e:_-aU/instance/init": "alternativa.physics.collision:IPrimitiveCollisionFilter/IPrimitiveCollisionFilter", + "_-1e:_-aU/instance/_-Xy:_-eZ": "alternativa.physics.collision:IPrimitiveCollisionFilter/alternativa.physics.collision:IPrimitiveCollisionFilter:acceptPrimitivesCollision", + "_-1e:_-aU/class/init": "alternativa.physics.collision:IPrimitiveCollisionFilter/alternativa.physics.collision:IPrimitiveCollisionFilter:acceptPrimitivesCollision" + }, + "_-LG": {} + }, + "_-mX": { + "_-l7": { + "_-mX:_-l7": null, + "_-mX:_-l7/instance/init": "alternativa.tanks.config.loaders.tankparts:ITankPartLoaderFactory/ITankPartLoaderFactory", + "_-mX:_-l7/instance/ in:_-43": "alternativa.tanks.config.loaders.tankparts:ITankPartLoaderFactory/alternativa.tanks.config.loaders.tankparts:ITankPartLoaderFactory:createLoader", + "_-mX:_-l7/class/init": "alternativa.tanks.config.loaders.tankparts:ITankPartLoaderFactory/alternativa.tanks.config.loaders.tankparts:ITankPartLoaderFactory:createLoader" + }, + "_-Fd": { + "_-mX:_-Fd": null, + "_-mX:_-Fd/instance/init": "alternativa.tanks.config.loaders.tankparts:TankTurretLoaderFactory/TankTurretLoaderFactory", + "_-mX:_-Fd/instance/_-43": "alternativa.tanks.config.loaders.tankparts:TankTurretLoaderFactory/createLoader", + "_-mX:_-Fd/class/init": "alternativa.tanks.config.loaders.tankparts:TankTurretLoaderFactory/createLoader" + }, + "_-Wb": { + "_-mX:_-Wb": null, + "_-mX:_-Wb/instance/init": "alternativa.tanks.config.loaders.tankparts:TankPartLoader/TankPartLoader", + "_-mX:_-Wb/instance/run": "alternativa.tanks.config.loaders.tankparts:TankPartLoader/run", + "_-mX:_-Wb/instance/parseModelData": "alternativa.tanks.config.loaders.tankparts:TankPartLoader/parseModelData", + "_-mX:_-Wb/instance/_-mX:_-Wb/instance/_-Mk": "alternativa.tanks.config.loaders.tankparts:TankPartLoader/private:onTexturesLoadingComplete", + "_-mX:_-Wb/class/init": "alternativa.tanks.config.loaders.tankparts:TankPartLoader/private:onTexturesLoadingComplete" + }, + "_-Fm": { + "_-mX:_-Fm": null, + "_-mX:_-Fm/instance/init": "alternativa.tanks.config.loaders.tankparts:TankTurretLoader/TankTurretLoader", + "_-mX:_-Fm/instance/parseModelData": "alternativa.tanks.config.loaders.tankparts:TankTurretLoader/parseModelData", + "_-mX:_-Fm/class/init": "alternativa.tanks.config.loaders.tankparts:TankTurretLoader/parseModelData" + }, + "_-iv": { + "_-mX:_-iv": null, + "_-mX:_-iv/instance/init": "alternativa.tanks.config.loaders.tankparts:TankHullLoaderFactory/TankHullLoaderFactory", + "_-mX:_-iv/instance/_-43": "alternativa.tanks.config.loaders.tankparts:TankHullLoaderFactory/createLoader", + "_-mX:_-iv/class/init": "alternativa.tanks.config.loaders.tankparts:TankHullLoaderFactory/createLoader" + }, + "_-qE": { + "_-mX:_-qE": null, + "_-mX:_-qE/instance/init": "alternativa.tanks.config.loaders.tankparts:TankHullLoader/TankHullLoader", + "_-mX:_-qE/instance/parseModelData": "alternativa.tanks.config.loaders.tankparts:TankHullLoader/parseModelData", + "_-mX:_-qE/class/init": "alternativa.tanks.config.loaders.tankparts:TankHullLoader/parseModelData" + } + }, + "_-lg": { + "VectorCodecA3DMapLevel2": { + "_-lg:VectorCodecA3DMapLevel2": null, + "_-lg:VectorCodecA3DMapLevel2/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel2/VectorCodecA3DMapLevel2", + "_-lg:VectorCodecA3DMapLevel2/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel2/init", + "_-lg:VectorCodecA3DMapLevel2/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel2/decode", + "_-lg:VectorCodecA3DMapLevel2/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel2/encode", + "_-lg:VectorCodecA3DMapLevel2/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel2/encode" + }, + "VectorCodecA3DImageLevel3": { + "_-lg:VectorCodecA3DImageLevel3": null, + "_-lg:VectorCodecA3DImageLevel3/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel3/VectorCodecA3DImageLevel3", + "_-lg:VectorCodecA3DImageLevel3/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel3/init", + "_-lg:VectorCodecA3DImageLevel3/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel3/decode", + "_-lg:VectorCodecA3DImageLevel3/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel3/encode", + "_-lg:VectorCodecA3DImageLevel3/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel3/encode" + }, + "VectorCodecA3DMaterialLevel1": { + "_-lg:VectorCodecA3DMaterialLevel1": null, + "_-lg:VectorCodecA3DMaterialLevel1/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel1/VectorCodecA3DMaterialLevel1", + "_-lg:VectorCodecA3DMaterialLevel1/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel1/init", + "_-lg:VectorCodecA3DMaterialLevel1/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel1/decode", + "_-lg:VectorCodecA3DMaterialLevel1/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel1/encode", + "_-lg:VectorCodecA3DMaterialLevel1/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel1/encode" + }, + "VectorCodecA3DMapLevel1": { + "_-lg:VectorCodecA3DMapLevel1": null, + "_-lg:VectorCodecA3DMapLevel1/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel1/VectorCodecA3DMapLevel1", + "_-lg:VectorCodecA3DMapLevel1/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel1/init", + "_-lg:VectorCodecA3DMapLevel1/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel1/decode", + "_-lg:VectorCodecA3DMapLevel1/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel1/encode", + "_-lg:VectorCodecA3DMapLevel1/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel1/encode" + }, + "VectorCodecA3DMaterialLevel2": { + "_-lg:VectorCodecA3DMaterialLevel2": null, + "_-lg:VectorCodecA3DMaterialLevel2/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel2/VectorCodecA3DMaterialLevel2", + "_-lg:VectorCodecA3DMaterialLevel2/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel2/init", + "_-lg:VectorCodecA3DMaterialLevel2/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel2/decode", + "_-lg:VectorCodecA3DMaterialLevel2/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel2/encode", + "_-lg:VectorCodecA3DMaterialLevel2/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel2/encode" + }, + "CodecA3DImage": { + "_-lg:CodecA3DImage": null, + "_-lg:CodecA3DImage/instance/init#1": "_codec.versions.version1.a3d.materials:CodecA3DImage/CodecA3DImage", + "_-lg:CodecA3DImage/instance/init#0": "_codec.versions.version1.a3d.materials:CodecA3DImage/init", + "_-lg:CodecA3DImage/instance/_-2Q": "_codec.versions.version1.a3d.materials:CodecA3DImage/decode", + "_-lg:CodecA3DImage/instance/_-QN": "_codec.versions.version1.a3d.materials:CodecA3DImage/encode", + "_-lg:CodecA3DImage/class/init": "_codec.versions.version1.a3d.materials:CodecA3DImage/encode" + }, + "VectorCodecA3DImageLevel1": { + "_-lg:VectorCodecA3DImageLevel1": null, + "_-lg:VectorCodecA3DImageLevel1/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel1/VectorCodecA3DImageLevel1", + "_-lg:VectorCodecA3DImageLevel1/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel1/init", + "_-lg:VectorCodecA3DImageLevel1/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel1/decode", + "_-lg:VectorCodecA3DImageLevel1/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel1/encode", + "_-lg:VectorCodecA3DImageLevel1/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel1/encode" + }, + "VectorCodecA3DImageLevel2": { + "_-lg:VectorCodecA3DImageLevel2": null, + "_-lg:VectorCodecA3DImageLevel2/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel2/VectorCodecA3DImageLevel2", + "_-lg:VectorCodecA3DImageLevel2/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel2/init", + "_-lg:VectorCodecA3DImageLevel2/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel2/decode", + "_-lg:VectorCodecA3DImageLevel2/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel2/encode", + "_-lg:VectorCodecA3DImageLevel2/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel2/encode" + }, + "VectorCodecA3DMapLevel3": { + "_-lg:VectorCodecA3DMapLevel3": null, + "_-lg:VectorCodecA3DMapLevel3/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel3/VectorCodecA3DMapLevel3", + "_-lg:VectorCodecA3DMapLevel3/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel3/init", + "_-lg:VectorCodecA3DMapLevel3/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel3/decode", + "_-lg:VectorCodecA3DMapLevel3/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel3/encode", + "_-lg:VectorCodecA3DMapLevel3/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel3/encode" + }, + "VectorCodecA3DMaterialLevel3": { + "_-lg:VectorCodecA3DMaterialLevel3": null, + "_-lg:VectorCodecA3DMaterialLevel3/instance/init#0": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel3/VectorCodecA3DMaterialLevel3", + "_-lg:VectorCodecA3DMaterialLevel3/instance/init#1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel3/init", + "_-lg:VectorCodecA3DMaterialLevel3/instance/_-2Q": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel3/decode", + "_-lg:VectorCodecA3DMaterialLevel3/instance/_-QN": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel3/encode", + "_-lg:VectorCodecA3DMaterialLevel3/class/init": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel3/encode" + }, + "CodecA3DMaterial": { + "_-lg:CodecA3DMaterial": null, + "_-lg:CodecA3DMaterial/instance/init#1": "_codec.versions.version1.a3d.materials:CodecA3DMaterial/CodecA3DMaterial", + "_-lg:CodecA3DMaterial/instance/init#0": "_codec.versions.version1.a3d.materials:CodecA3DMaterial/init", + "_-lg:CodecA3DMaterial/instance/_-2Q": "_codec.versions.version1.a3d.materials:CodecA3DMaterial/decode", + "_-lg:CodecA3DMaterial/instance/_-QN": "_codec.versions.version1.a3d.materials:CodecA3DMaterial/encode", + "_-lg:CodecA3DMaterial/class/init": "_codec.versions.version1.a3d.materials:CodecA3DMaterial/encode" + }, + "CodecA3DMap": { + "_-lg:CodecA3DMap": null, + "_-lg:CodecA3DMap/instance/init#1": "_codec.versions.version1.a3d.materials:CodecA3DMap/CodecA3DMap", + "_-lg:CodecA3DMap/instance/init#0": "_codec.versions.version1.a3d.materials:CodecA3DMap/init", + "_-lg:CodecA3DMap/instance/_-2Q": "_codec.versions.version1.a3d.materials:CodecA3DMap/decode", + "_-lg:CodecA3DMap/instance/_-QN": "_codec.versions.version1.a3d.materials:CodecA3DMap/encode", + "_-lg:CodecA3DMap/class/init": "_codec.versions.version1.a3d.materials:CodecA3DMap/encode" + } + }, + "_-kr": { + "_-60": { + "_-kr:_-60": null, + "_-kr:_-60/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashTargetFilter/ISplashTargetFilter", + "_-kr:_-60/instance/_-JP:_-a4": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashTargetFilter/alternativa.tanks.game.weapons.ammunition.splashhit:ISplashTargetFilter:setPrimaryTarget", + "_-kr:_-60/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashTargetFilter/alternativa.tanks.game.weapons.ammunition.splashhit:ISplashTargetFilter:setPrimaryTarget" + }, + "_-Na": { + "_-kr:_-Na": null, + "_-kr:_-Na/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage/ISplashDamage", + "_-kr:_-Na/instance/_-Qi:radius/getter": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage/alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage:radius/get", + "_-kr:_-Na/instance/_-Qi:_-Hf": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage/alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage:getPower", + "_-kr:_-Na/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage/alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage:getPower" + }, + "_-mu": { + "_-kr:_-mu": null, + "_-kr:_-mu/instance/init": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound/SplashDamageRound", + "_-kr:_-mu/instance/_-NO": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound/setCallback", + "_-kr:_-mu/instance/_-qN": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound/shoot", + "_-kr:_-mu/instance/_-DF": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound/showHitEffects", + "_-kr:_-mu/instance/_-kr:_-mu/_-bf": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound/private:processSplashTargets", + "_-kr:_-mu/class/init": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound/private:processSplashTargets" + } + }, + "_-Zp": { + "A3DObject": { + "_-Zp:A3DObject": null, + "_-Zp:A3DObject/instance/init": "versions.version1.a3d.objects:A3DObject/A3DObject", + "_-Zp:A3DObject/instance/boundBoxId/getter": "versions.version1.a3d.objects:A3DObject/boundBoxId/get", + "_-Zp:A3DObject/instance/boundBoxId/setter": "versions.version1.a3d.objects:A3DObject/boundBoxId/set", + "_-Zp:A3DObject/instance/geometryId/getter": "versions.version1.a3d.objects:A3DObject/geometryId/get", + "_-Zp:A3DObject/instance/geometryId/setter": "versions.version1.a3d.objects:A3DObject/geometryId/set", + "_-Zp:A3DObject/instance/id/getter": "versions.version1.a3d.objects:A3DObject/id/get", + "_-Zp:A3DObject/instance/id/setter": "versions.version1.a3d.objects:A3DObject/id/set", + "_-Zp:A3DObject/instance/name/getter": "versions.version1.a3d.objects:A3DObject/name/get", + "_-Zp:A3DObject/instance/name/setter": "versions.version1.a3d.objects:A3DObject/name/set", + "_-Zp:A3DObject/instance/parentId/getter": "versions.version1.a3d.objects:A3DObject/parentId/get", + "_-Zp:A3DObject/instance/parentId/setter": "versions.version1.a3d.objects:A3DObject/parentId/set", + "_-Zp:A3DObject/instance/surfaces/getter": "versions.version1.a3d.objects:A3DObject/surfaces/get", + "_-Zp:A3DObject/instance/surfaces/setter": "versions.version1.a3d.objects:A3DObject/surfaces/set", + "_-Zp:A3DObject/instance/transformation/getter": "versions.version1.a3d.objects:A3DObject/transformation/get", + "_-Zp:A3DObject/instance/transformation/setter": "versions.version1.a3d.objects:A3DObject/transformation/set", + "_-Zp:A3DObject/instance/visible/getter": "versions.version1.a3d.objects:A3DObject/visible/get", + "_-Zp:A3DObject/instance/visible/setter": "versions.version1.a3d.objects:A3DObject/visible/set", + "_-Zp:A3DObject/instance/toString": "versions.version1.a3d.objects:A3DObject/toString", + "_-Zp:A3DObject/class/init": "versions.version1.a3d.objects:A3DObject/toString" + }, + "A3DSurface": { + "_-Zp:A3DSurface": null, + "_-Zp:A3DSurface/instance/init": "versions.version1.a3d.objects:A3DSurface/A3DSurface", + "_-Zp:A3DSurface/instance/indexBegin/getter": "versions.version1.a3d.objects:A3DSurface/indexBegin/get", + "_-Zp:A3DSurface/instance/indexBegin/setter": "versions.version1.a3d.objects:A3DSurface/indexBegin/set", + "_-Zp:A3DSurface/instance/materialId/getter": "versions.version1.a3d.objects:A3DSurface/materialId/get", + "_-Zp:A3DSurface/instance/materialId/setter": "versions.version1.a3d.objects:A3DSurface/materialId/set", + "_-Zp:A3DSurface/instance/numTriangles/getter": "versions.version1.a3d.objects:A3DSurface/numTriangles/get", + "_-Zp:A3DSurface/instance/numTriangles/setter": "versions.version1.a3d.objects:A3DSurface/numTriangles/set", + "_-Zp:A3DSurface/instance/toString": "versions.version1.a3d.objects:A3DSurface/toString", + "_-Zp:A3DSurface/class/init": "versions.version1.a3d.objects:A3DSurface/toString" + }, + "A3DBox": { + "_-Zp:A3DBox": null, + "_-Zp:A3DBox/instance/init": "versions.version1.a3d.objects:A3DBox/A3DBox", + "_-Zp:A3DBox/instance/box/getter": "versions.version1.a3d.objects:A3DBox/box/get", + "_-Zp:A3DBox/instance/box/setter": "versions.version1.a3d.objects:A3DBox/box/set", + "_-Zp:A3DBox/instance/id/getter": "versions.version1.a3d.objects:A3DBox/id/get", + "_-Zp:A3DBox/instance/id/setter": "versions.version1.a3d.objects:A3DBox/id/set", + "_-Zp:A3DBox/instance/toString": "versions.version1.a3d.objects:A3DBox/toString", + "_-Zp:A3DBox/class/init": "versions.version1.a3d.objects:A3DBox/toString" + }, + "A3DTransformation": { + "_-Zp:A3DTransformation": null, + "_-Zp:A3DTransformation/instance/init": "versions.version1.a3d.objects:A3DTransformation/A3DTransformation", + "_-Zp:A3DTransformation/instance/matrix/getter": "versions.version1.a3d.objects:A3DTransformation/matrix/get", + "_-Zp:A3DTransformation/instance/matrix/setter": "versions.version1.a3d.objects:A3DTransformation/matrix/set", + "_-Zp:A3DTransformation/instance/toString": "versions.version1.a3d.objects:A3DTransformation/toString", + "_-Zp:A3DTransformation/class/init": "versions.version1.a3d.objects:A3DTransformation/toString" + } + }, + "_-YQ": { + "_-iQ": { + "_-YQ:_-iQ": null, + "_-YQ:_-iQ/instance/init": "alternativa.tanks:TextureResourceService/TextureResourceService", + "_-YQ:_-iQ/instance/_-kb": "alternativa.tanks:TextureResourceService/getCompressedTextureResource", + "_-YQ:_-iQ/instance/_-bY": "alternativa.tanks:TextureResourceService/releaseCompressedTextureResource", + "_-YQ:_-iQ/instance/_-F6": "alternativa.tanks:TextureResourceService/getBitmapTextureResource", + "_-YQ:_-iQ/instance/_-Cc": "alternativa.tanks:TextureResourceService/releaseBitmapTextureResource", + "_-YQ:_-iQ/instance/_-YQ:_-iQ/instance/_-Mo": "alternativa.tanks:TextureResourceService/private:getCompressedResourceSafe", + "_-YQ:_-iQ/instance/_-YQ:_-iQ/instance/_-h1": "alternativa.tanks:TextureResourceService/private:getBitmapResourceSafe", + "_-YQ:_-iQ/instance/clear": "alternativa.tanks:TextureResourceService/clear", + "_-YQ:_-iQ/instance/_-pG": "alternativa.tanks:TextureResourceService/getGenericTargetEvaluator", + "_-YQ:_-iQ/instance/_-Bb": "alternativa.tanks:TextureResourceService/setGenericTargetEvaluator", + "_-YQ:_-iQ/instance/_-pw": "alternativa.tanks:TextureResourceService/getRailgunTargetEvaluator", + "_-YQ:_-iQ/instance/_-JS": "alternativa.tanks:TextureResourceService/setRailgunTargetEvaluator", + "_-YQ:_-iQ/instance/_-dc": "alternativa.tanks:TextureResourceService/getFlamethrowerTargetEvaluator", + "_-YQ:_-iQ/instance/_-Tz": "alternativa.tanks:TextureResourceService/setFlamethrowerTargetEvaluator", + "_-YQ:_-iQ/class/init": "alternativa.tanks:TextureResourceService/setFlamethrowerTargetEvaluator" + }, + "_-E8": { + "_-YQ:_-E8": null, + "_-YQ:_-E8/instance/init": "alternativa.tanks:TankParams/TankParams", + "_-YQ:_-E8/class/init": "alternativa.tanks:TankParams/TankParams", + "_-YQ:_-E8/class/_-YQ:_-E8/class/ null": "alternativa.tanks:TankParams/private:getDefaultTankParams", + "_-YQ:_-E8/class/_-CW": "alternativa.tanks:TankParams/fromXML", + "_-YQ:_-E8/class/_-mS": "alternativa.tanks:TankParams/fromArray" + }, + "_-A3": { + "_-YQ:_-A3": null, + "_-YQ:_-A3/instance/init": "alternativa.tanks:TankTestTask/TankTestTask", + "_-YQ:_-A3/instance/start": "alternativa.tanks:TankTestTask/start", + "_-YQ:_-A3/instance/_-YQ:_-A3/activeTank/getter": "alternativa.tanks:TankTestTask/private:activeTank/get", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-mn": "alternativa.tanks:TankTestTask/private:selectTank", + "_-YQ:_-A3/instance/include": "alternativa.tanks:TankTestTask/selectNextTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-C4": "alternativa.tanks:TankTestTask/private:selectPrevTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Bl": "alternativa.tanks:TankTestTask/private:executeConsoleCommands", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-gr": "alternativa.tanks:TankTestTask/private:consoleAddTankHandler", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Ze": "alternativa.tanks:TankTestTask/private:onKeyDown", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-3S": "alternativa.tanks:TankTestTask/private:jump", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-gE": "alternativa.tanks:TankTestTask/private:toggleTankTitle", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-fy": "alternativa.tanks:TankTestTask/private:createRandomBattleMessage", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-3Y": "alternativa.tanks:TankTestTask/private:controlKeyPressed", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-iR": "alternativa.tanks:TankTestTask/private:startIndicator", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Hj": "alternativa.tanks:TankTestTask/private:createRandomAnimatedSprite", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-dK": "alternativa.tanks:TankTestTask/private:createThunderShotEffect", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-fC": "alternativa.tanks:TankTestTask/private:selectPrevTurret", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-WI": "alternativa.tanks:TankTestTask/private:selectNextTurret", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-hd": "alternativa.tanks:TankTestTask/private:selectPrevHull", + "_-YQ:_-A3/instance/_-42": "alternativa.tanks:TankTestTask/selectNextHull", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-1y": "alternativa.tanks:TankTestTask/private:rebuildActiveTank", + "_-YQ:_-A3/instance/run": "alternativa.tanks:TankTestTask/run", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Qe": "alternativa.tanks:TankTestTask/private:addDebugMessage", + "_-YQ:_-A3/instance/_-86": "alternativa.tanks:TankTestTask/onGameEvent", + "_-YQ:_-A3/instance/_-YQ:_-A3/onMouseDown": "alternativa.tanks:TankTestTask/private:onMouseDown", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-kq": "alternativa.tanks:TankTestTask/private:precacheTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-14": "alternativa.tanks:TankTestTask/private:addCachedTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-kX": "alternativa.tanks:TankTestTask/private:addTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-As": "alternativa.tanks:TankTestTask/private:createTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-8j": "alternativa.tanks:TankTestTask/private:tracePos", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Q": "alternativa.tanks:TankTestTask/private:createFire", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Bi": "alternativa.tanks:TankTestTask/private:createTracksMaterial", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-TH": "alternativa.tanks:TankTestTask/private:createShadowMaterial", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-0A": "alternativa.tanks:TankTestTask/private:createSmoky", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-D5": "alternativa.tanks:TankTestTask/private:createThunder", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-2a": "alternativa.tanks:TankTestTask/private:createRailgun", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Ar": "alternativa.tanks:TankTestTask/private:createEnergyGun", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Gy": "alternativa.tanks:TankTestTask/private:createContinuousActionGun", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Gt": "alternativa.tanks:TankTestTask/private:getMaterialStrip", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-1w": "alternativa.tanks:TankTestTask/private:removeActiveTank", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-v": "alternativa.tanks:TankTestTask/private:switchCameraController", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-N8": "alternativa.tanks:TankTestTask/private:setCameraController", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-E-": "alternativa.tanks:TankTestTask/private:getPartMaterials", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-Ps": "alternativa.tanks:TankTestTask/private:showZeroMarker", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-ab": "alternativa.tanks:TankTestTask/private:onFloatingTextEffectDestroy", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-N": "alternativa.tanks:TankTestTask/private:getFlamethrowerSFXData", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-3i": "alternativa.tanks:TankTestTask/private:createTankExplostionEffects", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-X7": "alternativa.tanks:TankTestTask/private:createShockWave", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-N3": "alternativa.tanks:TankTestTask/private:createExplosion", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-5L": "alternativa.tanks:TankTestTask/private:createExplosionSmoke", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-0u": "alternativa.tanks:TankTestTask/private:getFrameMaterials", + "_-YQ:_-A3/instance/_-YQ:_-A3/_-3R": "alternativa.tanks:TankTestTask/private:listTanks", + "_-YQ:_-A3/class/init": "alternativa.tanks:TankTestTask/private:listTanks" + }, + "_-DN": { + "_-YQ:_-DN": null, + "_-YQ:_-DN/instance/init": "alternativa.tanks:InitBattleTask/InitBattleTask", + "_-YQ:_-DN/instance/run": "alternativa.tanks:InitBattleTask/run", + "_-YQ:_-DN/instance/_-YQ:_-DN/instance/_-pL": "alternativa.tanks:InitBattleTask/private:createMapEntity", + "_-YQ:_-DN/class/init": "alternativa.tanks:InitBattleTask/private:createMapEntity" + }, + "_-B5": { + "_-YQ:_-B5": null, + "_-YQ:_-B5/instance/init": "alternativa.tanks:ITextureResourceService/ITextureResourceService", + "_-YQ:_-B5/instance/_-hO:_-kb": "alternativa.tanks:ITextureResourceService/alternativa.tanks:ITextureResourceService:getCompressedTextureResource", + "_-YQ:_-B5/instance/_-hO:_-bY": "alternativa.tanks:ITextureResourceService/alternativa.tanks:ITextureResourceService:releaseCompressedTextureResource", + "_-YQ:_-B5/instance/_-hO:_-F6": "alternativa.tanks:ITextureResourceService/alternativa.tanks:ITextureResourceService:getBitmapTextureResource", + "_-YQ:_-B5/instance/_-hO:_-Cc": "alternativa.tanks:ITextureResourceService/alternativa.tanks:ITextureResourceService:releaseBitmapTextureResource", + "_-YQ:_-B5/class/init": "alternativa.tanks:ITextureResourceService/alternativa.tanks:ITextureResourceService:releaseBitmapTextureResource" + } + }, + "_-fT": { + "_-BR": { + "_-fT:_-BR": null, + "_-fT:_-BR/instance/init": "alternativa.tanks.game.physics:TurretCollisioinBox/TurretCollisioinBox", + "_-fT:_-BR/class/init": "alternativa.tanks.game.physics:TurretCollisioinBox/TurretCollisioinBox" + }, + "_-YY": { + "_-fT:_-YY": null, + "_-fT:_-YY/instance/init": "alternativa.tanks.game.physics:BodyCollisionData/BodyCollisionData", + "_-fT:_-YY/class/init": "alternativa.tanks.game.physics:BodyCollisionData/BodyCollisionData" + }, + "_-Zm": { + "_-fT:_-Zm": null, + "_-fT:_-Zm/instance/init": "alternativa.tanks.game.physics:ITanksCollisionDetector/ITanksCollisionDetector", + "_-fT:_-Zm/instance/_-Iq:_-7u": "alternativa.tanks.game.physics:ITanksCollisionDetector/alternativa.tanks.game.physics:ITanksCollisionDetector:getObjectsInRadius", + "_-fT:_-Zm/instance/_-Iq:_-pN": "alternativa.tanks.game.physics:ITanksCollisionDetector/alternativa.tanks.game.physics:ITanksCollisionDetector:addBodyCollisionData", + "_-fT:_-Zm/instance/_-Iq:_-qP": "alternativa.tanks.game.physics:ITanksCollisionDetector/alternativa.tanks.game.physics:ITanksCollisionDetector:removeBodyCollisionData", + "_-fT:_-Zm/instance/_-Iq:_-9F": "alternativa.tanks.game.physics:ITanksCollisionDetector/alternativa.tanks.game.physics:ITanksCollisionDetector:prepareForRaycasts", + "_-fT:_-Zm/class/init": "alternativa.tanks.game.physics:ITanksCollisionDetector/alternativa.tanks.game.physics:ITanksCollisionDetector:prepareForRaycasts" + }, + "_-Li": { + "_-fT:_-Li": null, + "_-fT:_-Li/instance/init": "alternativa.tanks.game.physics:SimpleRaycastFilter/SimpleRaycastFilter", + "_-fT:_-Li/instance/_-0w": "alternativa.tanks.game.physics:SimpleRaycastFilter/acceptRayHit", + "_-fT:_-Li/class/init": "alternativa.tanks.game.physics:SimpleRaycastFilter/acceptRayHit" + }, + "_-VN": { + "_-fT:_-VN": null, + "_-fT:_-VN/instance/init": "alternativa.tanks.game.physics:IRadiusQueryFilter/IRadiusQueryFilter", + "_-fT:_-VN/instance/_-nW:_-cb": "alternativa.tanks.game.physics:IRadiusQueryFilter/alternativa.tanks.game.physics:IRadiusQueryFilter:acceptBody", + "_-fT:_-VN/class/init": "alternativa.tanks.game.physics:IRadiusQueryFilter/alternativa.tanks.game.physics:IRadiusQueryFilter:acceptBody" + }, + "_-WY": { + "_-fT:_-WY": null, + "_-fT:_-WY/instance/init": "alternativa.tanks.game.physics:BoxData/BoxData", + "_-fT:_-WY/instance/toString": "alternativa.tanks.game.physics:BoxData/toString", + "_-fT:_-WY/class/init": "alternativa.tanks.game.physics:BoxData/toString" + }, + "_-ZI": {}, + "_-bB": { + "_-fT:_-bB": null, + "_-fT:_-bB/instance/init": "alternativa.tanks.game.physics:BodyDistance/BodyDistance", + "_-fT:_-bB/instance/toString": "alternativa.tanks.game.physics:BodyDistance/toString", + "_-fT:_-bB/class/init": "alternativa.tanks.game.physics:BodyDistance/toString" + }, + "_-HM": { + "_-fT:_-HM": null, + "_-fT:_-HM/instance/init": "alternativa.tanks.game.physics:CollisionGroup/CollisionGroup", + "_-fT:_-HM/class/init": "alternativa.tanks.game.physics:CollisionGroup/CollisionGroup" + } + }, + "_-9n": { + "_-NS": { + "_-9n:_-NS": null, + "_-9n:_-NS/instance/init": "alternativa.engine3d.animation.keys:Keyframe/Keyframe", + "_-9n:_-NS/instance/time/getter": "alternativa.engine3d.animation.keys:Keyframe/time/get", + "_-9n:_-NS/instance/value/getter": "alternativa.engine3d.animation.keys:Keyframe/value/get", + "_-9n:_-NS/instance/value/setter": "alternativa.engine3d.animation.keys:Keyframe/value/set", + "_-9n:_-NS/instance/http://alternativaplatform.com/en/alternativa3d:nextKeyFrame/getter": "alternativa.engine3d.animation.keys:Keyframe/alternativa3d:nextKeyFrame/get", + "_-9n:_-NS/instance/http://alternativaplatform.com/en/alternativa3d:nextKeyFrame/setter": "alternativa.engine3d.animation.keys:Keyframe/alternativa3d:nextKeyFrame/set", + "_-9n:_-NS/instance/toString": "alternativa.engine3d.animation.keys:Keyframe/toString", + "_-9n:_-NS/class/init": "alternativa.engine3d.animation.keys:Keyframe/toString" + }, + "_-ew": {}, + "_-j3": { + "_-9n:_-j3": null, + "_-9n:_-j3/instance/init": "alternativa.engine3d.animation.keys:NumberKey/NumberKey", + "_-9n:_-j3/instance/interpolate": "alternativa.engine3d.animation.keys:NumberKey/interpolate", + "_-9n:_-j3/instance/value/getter": "alternativa.engine3d.animation.keys:NumberKey/value/get", + "_-9n:_-j3/instance/value/setter": "alternativa.engine3d.animation.keys:NumberKey/value/set", + "_-9n:_-j3/instance/http://alternativaplatform.com/en/alternativa3d:nextKeyFrame/getter": "alternativa.engine3d.animation.keys:NumberKey/alternativa3d:nextKeyFrame/get", + "_-9n:_-j3/instance/http://alternativaplatform.com/en/alternativa3d:nextKeyFrame/setter": "alternativa.engine3d.animation.keys:NumberKey/alternativa3d:nextKeyFrame/set", + "_-9n:_-j3/class/init": "alternativa.engine3d.animation.keys:NumberKey/alternativa3d:nextKeyFrame/set" + }, + "_-44": { + "_-9n:_-44": null, + "_-9n:_-44/instance/init": "alternativa.engine3d.animation.keys:TransformKey/TransformKey", + "_-9n:_-44/instance/value/getter": "alternativa.engine3d.animation.keys:TransformKey/value/get", + "_-9n:_-44/instance/value/setter": "alternativa.engine3d.animation.keys:TransformKey/value/set", + "_-9n:_-44/instance/interpolate": "alternativa.engine3d.animation.keys:TransformKey/interpolate", + "_-9n:_-44/instance/_-9n:_-44/instance/_-Q6": "alternativa.engine3d.animation.keys:TransformKey/private:slerp", + "_-9n:_-44/instance/http://alternativaplatform.com/en/alternativa3d:nextKeyFrame/getter": "alternativa.engine3d.animation.keys:TransformKey/alternativa3d:nextKeyFrame/get", + "_-9n:_-44/instance/http://alternativaplatform.com/en/alternativa3d:nextKeyFrame/setter": "alternativa.engine3d.animation.keys:TransformKey/alternativa3d:nextKeyFrame/set", + "_-9n:_-44/class/init": "alternativa.engine3d.animation.keys:TransformKey/alternativa3d:nextKeyFrame/set" + }, + "_-Np": {}, + "_-kB": {} + }, + "_-GD": { + "_-6A": { + "_-GD:_-6A": null, + "_-GD:_-6A/instance/init": "alternativa.osgi.service.console:IConsole/IConsole", + "_-GD:_-6A/instance/_-qK:show": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:show", + "_-GD:_-6A/instance/_-qK:hide": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:hide", + "_-GD:_-6A/instance/_-qK:_-bG": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:isVisible", + "_-GD:_-6A/instance/_-qK:_-MR": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:addText", + "_-GD:_-6A/instance/_-qK:_-H-": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:addPrefixedText", + "_-GD:_-6A/instance/_-qK:_-3c": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:addLines", + "_-GD:_-6A/instance/_-qK:_-dU": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:addPrefixedLines", + "_-GD:_-6A/instance/_-qK:_-k2": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:setSize", + "_-GD:_-6A/instance/_-qK:width/setter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:width/set", + "_-GD:_-6A/instance/_-qK:width/getter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:width/get", + "_-GD:_-6A/instance/_-qK:height/setter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:height/set", + "_-GD:_-6A/instance/_-qK:height/getter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:height/get", + "_-GD:_-6A/instance/_-qK:_-TC/setter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:horizontalAlignment/set", + "_-GD:_-6A/instance/_-qK:_-TC/getter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:horizontalAlignment/get", + "_-GD:_-6A/instance/_-qK:_-p2/setter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:vericalAlignment/set", + "_-GD:_-6A/instance/_-qK:_-p2/getter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:vericalAlignment/get", + "_-GD:_-6A/instance/_-qK:alpha/setter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:alpha/set", + "_-GD:_-6A/instance/_-qK:alpha/getter": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:alpha/get", + "_-GD:_-6A/instance/_-qK:_-0j": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:setCommandHandler", + "_-GD:_-6A/instance/_-qK:_-PY": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:removeCommandHandler", + "_-GD:_-6A/instance/_-qK:_-I1": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:executeCommand", + "_-GD:_-6A/instance/_-qK:_-6T": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:addVariable", + "_-GD:_-6A/instance/_-qK:_-kE": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:removeVariable", + "_-GD:_-6A/class/init": "alternativa.osgi.service.console:IConsole/alternativa.osgi.service.console:IConsole:removeVariable" + }, + "_-X8": { + "_-GD:_-X8": null, + "_-GD:_-X8/instance/init": "alternativa.osgi.service.console:ClientLogConnector/ClientLogConnector", + "_-GD:_-X8/instance/_-qU": "alternativa.osgi.service.console:ClientLogConnector/onLogEntryAdded", + "_-GD:_-X8/instance/_-9Q": "alternativa.osgi.service.console:ClientLogConnector/onConsoleCommand", + "_-GD:_-X8/instance/_-GD:_-X8/_-95": "alternativa.osgi.service.console:ClientLogConnector/private:printFilteredLines", + "_-GD:_-X8/instance/_-GD:_-X8/_-1g": "alternativa.osgi.service.console:ClientLogConnector/private:connectChannels", + "_-GD:_-X8/instance/_-GD:_-X8/_-W4": "alternativa.osgi.service.console:ClientLogConnector/private:disconnectChannels", + "_-GD:_-X8/class/init": "alternativa.osgi.service.console:ClientLogConnector/private:disconnectChannels" + }, + "_-dX": { + "_-GD:_-dX": null, + "_-GD:_-dX/instance/init": "alternativa.osgi.service.console:Console/Console", + "_-GD:_-dX/instance/_-6T": "alternativa.osgi.service.console:Console/addVariable", + "_-GD:_-dX/instance/_-kE": "alternativa.osgi.service.console:Console/removeVariable", + "_-GD:_-dX/instance/_-TC/setter": "alternativa.osgi.service.console:Console/horizontalAlignment/set", + "_-GD:_-dX/instance/_-TC/getter": "alternativa.osgi.service.console:Console/horizontalAlignment/get", + "_-GD:_-dX/instance/_-p2/setter": "alternativa.osgi.service.console:Console/vericalAlignment/set", + "_-GD:_-dX/instance/_-p2/getter": "alternativa.osgi.service.console:Console/vericalAlignment/get", + "_-GD:_-dX/instance/_-MR": "alternativa.osgi.service.console:Console/addText", + "_-GD:_-dX/instance/_-H-": "alternativa.osgi.service.console:Console/addPrefixedText", + "_-GD:_-dX/instance/_-3c": "alternativa.osgi.service.console:Console/addLines", + "_-GD:_-dX/instance/_-dU": "alternativa.osgi.service.console:Console/addPrefixedLines", + "_-GD:_-dX/instance/show": "alternativa.osgi.service.console:Console/show", + "_-GD:_-dX/instance/hide": "alternativa.osgi.service.console:Console/hide", + "_-GD:_-dX/instance/_-bG": "alternativa.osgi.service.console:Console/isVisible", + "_-GD:_-dX/instance/_-k2": "alternativa.osgi.service.console:Console/setSize", + "_-GD:_-dX/instance/width/setter": "alternativa.osgi.service.console:Console/width/set", + "_-GD:_-dX/instance/width/getter": "alternativa.osgi.service.console:Console/width/get", + "_-GD:_-dX/instance/height/setter": "alternativa.osgi.service.console:Console/height/set", + "_-GD:_-dX/instance/height/getter": "alternativa.osgi.service.console:Console/height/get", + "_-GD:_-dX/instance/_-0j": "alternativa.osgi.service.console:Console/setCommandHandler", + "_-GD:_-dX/instance/_-PY": "alternativa.osgi.service.console:Console/removeCommandHandler", + "_-GD:_-dX/instance/_-do": "alternativa.osgi.service.console:Console/hideDelayed", + "_-GD:_-dX/instance/_-I1": "alternativa.osgi.service.console:Console/executeCommand", + "_-GD:_-dX/instance/alpha/setter": "alternativa.osgi.service.console:Console/alpha/set", + "_-GD:_-dX/instance/alpha/getter": "alternativa.osgi.service.console:Console/alpha/get", + "_-GD:_-dX/instance/_-GD:_-dX/_-kC": "alternativa.osgi.service.console:Console/private:calcTextMetrics", + "_-GD:_-dX/instance/_-GD:_-dX/_-E9": "alternativa.osgi.service.console:Console/private:initInput", + "_-GD:_-dX/instance/_-GD:_-dX/_-pr": "alternativa.osgi.service.console:Console/private:initOutput", + "_-GD:_-dX/instance/_-GD:_-dX/_-eo": "alternativa.osgi.service.console:Console/private:resizeOutput", + "_-GD:_-dX/instance/_-GD:_-dX/_-W2": "alternativa.osgi.service.console:Console/private:updateTextFields", + "_-GD:_-dX/instance/_-GD:_-dX/_-NJ": "alternativa.osgi.service.console:Console/private:createTextField", + "_-GD:_-dX/instance/_-GD:_-dX/_-UD": "alternativa.osgi.service.console:Console/private:scrollOutput", + "_-GD:_-dX/instance/_-GD:_-dX/_-Mg": "alternativa.osgi.service.console:Console/private:updateOutput", + "_-GD:_-dX/instance/_-GD:_-dX/_-jO": "alternativa.osgi.service.console:Console/private:printPage", + "_-GD:_-dX/instance/_-GD:_-dX/_-oC": "alternativa.osgi.service.console:Console/private:onInputKeyDown", + "_-GD:_-dX/instance/_-GD:_-dX/_-qV": "alternativa.osgi.service.console:Console/private:onInputKeyUp", + "_-GD:_-dX/instance/_-GD:_-dX/_-Ft": "alternativa.osgi.service.console:Console/private:onTextInput", + "_-GD:_-dX/instance/_-GD:_-dX/_-KG": "alternativa.osgi.service.console:Console/private:isToggleKey", + "_-GD:_-dX/instance/_-GD:_-dX/_-fv": "alternativa.osgi.service.console:Console/private:processInput", + "_-GD:_-dX/instance/_-GD:_-dX/_-Io": "alternativa.osgi.service.console:Console/private:historyUp", + "_-GD:_-dX/instance/_-GD:_-dX/_-oY": "alternativa.osgi.service.console:Console/private:historyDown", + "_-GD:_-dX/instance/_-GD:_-dX/_-Uf": "alternativa.osgi.service.console:Console/private:onKeyUp", + "_-GD:_-dX/instance/_-GD:_-dX/_-7B": "alternativa.osgi.service.console:Console/private:onResize", + "_-GD:_-dX/instance/_-GD:_-dX/_-4J": "alternativa.osgi.service.console:Console/private:addLine", + "_-GD:_-dX/instance/_-GD:_-dX/_-Tk": "alternativa.osgi.service.console:Console/private:addPrefixedLine", + "_-GD:_-dX/instance/_-GD:_-dX/onMouseWheel": "alternativa.osgi.service.console:Console/private:onMouseWheel", + "_-GD:_-dX/instance/_-GD:_-dX/clamp": "alternativa.osgi.service.console:Console/private:clamp", + "_-GD:_-dX/instance/_-GD:_-dX/_-FB": "alternativa.osgi.service.console:Console/private:updateSize", + "_-GD:_-dX/instance/_-GD:_-dX/_-Rn": "alternativa.osgi.service.console:Console/private:updateAlignment", + "_-GD:_-dX/instance/_-GD:_-dX/_-M3": "alternativa.osgi.service.console:Console/private:onHide", + "_-GD:_-dX/instance/_-GD:_-dX/_-i7": "alternativa.osgi.service.console:Console/private:copyConsoleContent", + "_-GD:_-dX/instance/_-GD:_-dX/_-he": "alternativa.osgi.service.console:Console/private:clearConsole", + "_-GD:_-dX/instance/_-GD:_-dX/_-3p": "alternativa.osgi.service.console:Console/private:listCommands", + "_-GD:_-dX/instance/_-GD:_-dX/_-kc": "alternativa.osgi.service.console:Console/private:onHorizontalAlign", + "_-GD:_-dX/instance/_-GD:_-dX/_-7H": "alternativa.osgi.service.console:Console/private:onVerticalAlign", + "_-GD:_-dX/instance/_-GD:_-dX/_-q1": "alternativa.osgi.service.console:Console/private:onConsoleWidth", + "_-GD:_-dX/instance/_-GD:_-dX/_-gf": "alternativa.osgi.service.console:Console/private:onConsoleHeight", + "_-GD:_-dX/instance/_-GD:_-dX/_-QV": "alternativa.osgi.service.console:Console/private:onAlpha", + "_-GD:_-dX/instance/_-GD:_-dX/_-": "alternativa.osgi.service.console:Console/private:onBackgroundColor", + "_-GD:_-dX/instance/_-GD:_-dX/_-68": "alternativa.osgi.service.console:Console/private:onForegroundColor", + "_-GD:_-dX/instance/_-GD:_-dX/_-LB": "alternativa.osgi.service.console:Console/private:onFilterCommand", + "_-GD:_-dX/instance/_-GD:_-dX/_-qL": "alternativa.osgi.service.console:Console/private:printVars", + "_-GD:_-dX/instance/_-GD:_-dX/_-Rq": "alternativa.osgi.service.console:Console/private:printVarsValues", + "_-GD:_-dX/instance/_-GD:_-dX/_-ln": "alternativa.osgi.service.console:Console/private:printVariables", + "_-GD:_-dX/class/init": "alternativa.osgi.service.console:Console/private:printVariables" + } + }, + "_-DJ": { + "_-2i": { + "_-DJ:_-2i": null, + "_-DJ:_-2i/instance/init": "alternativa.protocol:IProtocol/IProtocol", + "_-DJ:_-2i/instance/_-a6:_-Iw": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:registerCodec", + "_-DJ:_-2i/instance/_-a6:_-BJ": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:registerCodecForType", + "_-DJ:_-2i/instance/_-a6:_-8G": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:getCodec", + "_-DJ:_-2i/instance/_-a6:_-Og": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:makeCodecInfo", + "_-DJ:_-2i/instance/_-a6:_-EP": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:wrapPacket", + "_-DJ:_-2i/instance/_-a6:_-Nd": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:unwrapPacket", + "_-DJ:_-2i/class/init": "alternativa.protocol:IProtocol/alternativa.protocol:IProtocol:unwrapPacket" + }, + "_-J5": { + "_-DJ:_-J5": null, + "_-DJ:_-J5/instance/init": "alternativa.protocol:OptionalMap/OptionalMap", + "_-DJ:_-J5/instance/_-MW": "alternativa.protocol:OptionalMap/getReadPosition", + "_-DJ:_-J5/instance/_-iM": "alternativa.protocol:OptionalMap/setReadPosition", + "_-DJ:_-J5/instance/reset": "alternativa.protocol:OptionalMap/reset", + "_-DJ:_-J5/instance/clear": "alternativa.protocol:OptionalMap/clear", + "_-DJ:_-J5/instance/_-AQ": "alternativa.protocol:OptionalMap/addBit", + "_-DJ:_-J5/instance/_-7M": "alternativa.protocol:OptionalMap/hasNextBit", + "_-DJ:_-J5/instance/get": "alternativa.protocol:OptionalMap/get", + "_-DJ:_-J5/instance/_-8V": "alternativa.protocol:OptionalMap/getMap", + "_-DJ:_-J5/instance/_-1-": "alternativa.protocol:OptionalMap/getSize", + "_-DJ:_-J5/instance/_-DJ:_-J5/instance/_-2C": "alternativa.protocol:OptionalMap/private:getBit", + "_-DJ:_-J5/instance/_-DJ:_-J5/instance/_-Kg": "alternativa.protocol:OptionalMap/private:setBit", + "_-DJ:_-J5/instance/_-DJ:_-J5/instance/_-B9": "alternativa.protocol:OptionalMap/private:convertSize", + "_-DJ:_-J5/instance/toString": "alternativa.protocol:OptionalMap/toString", + "_-DJ:_-J5/instance/clone": "alternativa.protocol:OptionalMap/clone", + "_-DJ:_-J5/class/init": "alternativa.protocol:OptionalMap/clone" + }, + "_-Sv": { + "_-DJ:_-Sv": null, + "_-DJ:_-Sv/instance/init": "alternativa.protocol:ICodec/ICodec", + "_-DJ:_-Sv/instance/set :init": "alternativa.protocol:ICodec/alternativa.protocol:ICodec:init", + "_-DJ:_-Sv/instance/set :_-QN": "alternativa.protocol:ICodec/alternativa.protocol:ICodec:encode", + "_-DJ:_-Sv/instance/set :_-2Q": "alternativa.protocol:ICodec/alternativa.protocol:ICodec:decode", + "_-DJ:_-Sv/class/init": "alternativa.protocol:ICodec/alternativa.protocol:ICodec:decode" + }, + "_-1F": { + "_-DJ:_-1F": null, + "_-DJ:_-1F/instance/init": "alternativa.protocol:ProtocolBuffer/ProtocolBuffer", + "_-DJ:_-1F/instance/_-YG/getter": "alternativa.protocol:ProtocolBuffer/writer/get", + "_-DJ:_-1F/instance/_-YG/setter": "alternativa.protocol:ProtocolBuffer/writer/set", + "_-DJ:_-1F/instance/reader/getter": "alternativa.protocol:ProtocolBuffer/reader/get", + "_-DJ:_-1F/instance/reader/setter": "alternativa.protocol:ProtocolBuffer/reader/set", + "_-DJ:_-1F/instance/optionalMap/getter": "alternativa.protocol:ProtocolBuffer/optionalMap/get", + "_-DJ:_-1F/instance/optionalMap/setter": "alternativa.protocol:ProtocolBuffer/optionalMap/set", + "_-DJ:_-1F/instance/toString": "alternativa.protocol:ProtocolBuffer/toString", + "_-DJ:_-1F/class/init": "alternativa.protocol:ProtocolBuffer/toString" + }, + "_-MY": { + "_-DJ:_-MY": null, + "_-DJ:_-MY/instance/init": "alternativa.protocol:ICodecInfo/ICodecInfo", + "_-DJ:_-MY/instance/_-br:_-3C": "alternativa.protocol:ICodecInfo/alternativa.protocol:ICodecInfo:isOptional", + "_-DJ:_-MY/instance/_-br:toString": "alternativa.protocol:ICodecInfo/alternativa.protocol:ICodecInfo:toString", + "_-DJ:_-MY/class/init": "alternativa.protocol:ICodecInfo/alternativa.protocol:ICodecInfo:toString" + }, + "_-5S": { + "_-DJ:_-5S": null, + "_-DJ:_-5S/instance/init": "alternativa.protocol:CompressionType/CompressionType", + "_-DJ:_-5S/class/init": "alternativa.protocol:CompressionType/CompressionType" + } + }, + "_-fj": { + "_-1t": { + "_-fj:_-1t": null, + "_-fj:_-1t/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActivatingState/LegacyActivatingState", + "_-fj:_-1t/instance/start": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActivatingState/start", + "_-fj:_-1t/instance/stop": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActivatingState/stop", + "_-fj:_-1t/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActivatingState/stop" + }, + "_-Wz": { + "_-fj:_-Wz": null, + "_-fj:_-Wz/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActiveState/LegacyActiveState", + "_-fj:_-Wz/instance/start": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActiveState/start", + "_-fj:_-Wz/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActiveState/start" + }, + "_-8C": { + "_-fj:_-8C": null, + "_-fj:_-8C/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:SuspensionData/SuspensionData", + "_-fj:_-8C/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:SuspensionData/SuspensionData" + }, + "_-nL": { + "_-fj:_-nL": null, + "_-fj:_-nL/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/LegacyTrack", + "_-fj:_-nL/instance/collisionMask/setter": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/collisionMask/set", + "_-fj:_-nL/instance/_-fj:_-nL/_-eO": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/private:isMainWheel", + "_-fj:_-nL/instance/_-TD": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/setTrackParams", + "_-fj:_-nL/instance/_-fG": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/getRayLastHitLength", + "_-fj:_-nL/instance/_-HQ": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/addForces", + "_-fj:_-nL/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack/addForces" + }, + "_-gd": { + "_-fj:_-gd": null, + "_-fj:_-gd/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/LegacySuspensionRay", + "_-fj:_-gd/instance/getRelativeZ": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/getRelativeZ", + "_-fj:_-gd/instance/_-Mm": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/setRelPos", + "_-fj:_-gd/instance/_-m4": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/setRelPosXYZ", + "_-fj:_-gd/instance/_-1l": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/calculateIntersection", + "_-fj:_-gd/instance/_-Qy": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/addForce", + "_-fj:_-gd/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay/addForce" + }, + "_-cx": { + "_-fj:_-cx": null, + "_-fj:_-cx/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/LegacyTrackedChassisComponent", + "_-fj:_-cx/instance/_-P0": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getBoundPoints", + "_-fj:_-cx/instance/getBody": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getBody", + "_-fj:_-cx/instance/_-Ln": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getWheelDeltaZ", + "_-fj:_-cx/instance/_-Ra": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getLeftTrackSpeed", + "_-fj:_-cx/instance/_-8p": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getRightTrackSpeed", + "_-fj:_-cx/instance/_-Uj": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setHull", + "_-fj:_-cx/instance/_-Gu": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setMaxTurnSpeed", + "_-fj:_-cx/instance/_-la": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setMaxSpeed", + "_-fj:_-cx/instance/_-fj:_-cx/_-EQ": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:createTracks", + "_-fj:_-cx/instance/_-fj:_-cx/_-Y2": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:setBodyInertia", + "_-fj:_-cx/instance/_-fj:_-cx/calculateBoundBox": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:calculateBoundBox", + "_-fj:_-cx/instance/_-fj:_-cx/_-JA": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:calculateBoundPoints", + "_-fj:_-cx/instance/_-fj:_-cx/_-Ud": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:setBoundPoint", + "_-fj:_-cx/instance/_-I3": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/resetCollisionPrimitives", + "_-fj:_-cx/instance/_-JK": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setLinearVelocity", + "_-fj:_-cx/instance/_-VU": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setAngularVelocity", + "_-fj:_-cx/instance/_-LV": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setOrientation", + "_-fj:_-cx/instance/_-oa": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setPositionXYZ", + "_-fj:_-cx/instance/_-83": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setOrientationWXYZ", + "_-fj:_-cx/instance/_-C3": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setOrientationXYZ", + "_-fj:_-cx/instance/setLinearVelocityXYZ": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setLinearVelocityXYZ", + "_-fj:_-cx/instance/setAngularVelocityXYZ": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setAngularVelocityXYZ", + "_-fj:_-cx/instance/_-Vi": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setPosition", + "_-fj:_-cx/instance/_-eS": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/resetPhysicsState", + "_-fj:_-cx/instance/_-fj:_-cx/_-Er": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:setThrottle", + "_-fj:_-cx/instance/_-fj:_-cx/ get": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:setBrakes", + "_-fj:_-cx/instance/setChassisControls": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setChassisControls", + "_-fj:_-cx/instance/addToGame": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/addToGame", + "_-fj:_-cx/instance/removeFromGame": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/removeFromGame", + "_-fj:_-cx/instance/initComponent": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/initComponent", + "_-fj:_-cx/instance/_-pB": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getTurretSkinMountPoint", + "_-fj:_-cx/instance/_-Cd": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getInterpolatedMatrix", + "_-fj:_-cx/instance/setTurret": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setTurret", + "_-fj:_-cx/instance/_-Cj": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/getTurretMountPoint", + "_-fj:_-cx/instance/updateBeforeSimulation": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/updateBeforeSimulation", + "_-fj:_-cx/instance/updateAfterSimulation": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/updateAfterSimulation", + "_-fj:_-cx/instance/interpolate": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/interpolate", + "_-fj:_-cx/instance/_-5l": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setSimpleCollisionMask", + "_-fj:_-cx/instance/setDetailedCollisionGroup": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setDetailedCollisionGroup", + "_-fj:_-cx/instance/setSuspensionCollisionMask": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/setSuspensionCollisionMask", + "_-fj:_-cx/instance/addToScene": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/addToScene", + "_-fj:_-cx/instance/removeFromScene": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/removeFromScene", + "_-fj:_-cx/instance/_-fj:_-cx/_-Nr": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:setMass", + "_-fj:_-cx/instance/_-fj:_-cx/_-21": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:createPrimitives", + "_-fj:_-cx/instance/_-fj:_-cx/_-y": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:addPrimitivesToBody", + "_-fj:_-cx/instance/_-fj:_-cx/_-7L": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:onBattleFinished", + "_-fj:_-cx/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent/private:onBattleFinished" + }, + "_-Gg": { + "_-fj:_-Gg": null, + "_-fj:_-Gg/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyRespawnState/LegacyRespawnState", + "_-fj:_-Gg/instance/start": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyRespawnState/start", + "_-fj:_-Gg/instance/stop": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyRespawnState/stop", + "_-fj:_-Gg/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyRespawnState/stop" + }, + "_-Cv": { + "_-fj:_-Cv": null, + "_-fj:_-Cv/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyComponentState/LegacyComponentState", + "_-fj:_-Cv/instance/start": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyComponentState/start", + "_-fj:_-Cv/instance/stop": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyComponentState/stop", + "_-fj:_-Cv/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyComponentState/stop" + }, + "_-0N": { + "_-fj:_-0N": null, + "_-fj:_-0N/instance/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyDeadState/LegacyDeadState", + "_-fj:_-0N/instance/start": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyDeadState/start", + "_-fj:_-0N/class/init": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyDeadState/start" + } + }, + "_-1c": { + "_-NM": { + "_-1c:_-NM": null, + "_-1c:_-NM/instance/init": "tankshudDemo:TanksHudDemo_bottomLeftIconClass/TanksHudDemo_bottomLeftIconClass", + "_-1c:_-NM/class/init": "tankshudDemo:TanksHudDemo_bottomLeftIconClass/TanksHudDemo_bottomLeftIconClass" + }, + "TanksHudDemo_fullScreenState1Class": { + "_-1c:TanksHudDemo_fullScreenState1Class": null, + "_-1c:TanksHudDemo_fullScreenState1Class/instance/init": "tankshudDemo:TanksHudDemo_fullScreenState1Class/TanksHudDemo_fullScreenState1Class", + "_-1c:TanksHudDemo_fullScreenState1Class/class/init": "tankshudDemo:TanksHudDemo_fullScreenState1Class/TanksHudDemo_fullScreenState1Class" + }, + "TanksHudDemo_nextTankState2Class": { + "_-1c:TanksHudDemo_nextTankState2Class": null, + "_-1c:TanksHudDemo_nextTankState2Class/instance/init": "tankshudDemo:TanksHudDemo_nextTankState2Class/TanksHudDemo_nextTankState2Class", + "_-1c:TanksHudDemo_nextTankState2Class/class/init": "tankshudDemo:TanksHudDemo_nextTankState2Class/TanksHudDemo_nextTankState2Class" + }, + "_-0F": { + "_-1c:_-0F": null, + "_-1c:_-0F/instance/init": "tankshudDemo:TanksHudDemo/TanksHudDemo", + "_-1c:_-0F/instance/_-1c:_-0F/init": "tankshudDemo:TanksHudDemo/private:init", + "_-1c:_-0F/instance/destroy": "tankshudDemo:TanksHudDemo/destroy", + "_-1c:_-0F/instance/_-K6": "tankshudDemo:TanksHudDemo/resize", + "_-1c:_-0F/instance/_-8F/getter": "tankshudDemo:TanksHudDemo/isFullScreen/get", + "_-1c:_-0F/instance/_-8F/setter": "tankshudDemo:TanksHudDemo/isFullScreen/set", + "_-1c:_-0F/instance/_-1c:_-0F/_-mm": "tankshudDemo:TanksHudDemo/private:onOverFullScreenBtn", + "_-1c:_-0F/instance/_-1c:_-0F/_-f0": "tankshudDemo:TanksHudDemo/private:onOutFullScreenBtn", + "_-1c:_-0F/instance/_-1c:_-0F/_-0d": "tankshudDemo:TanksHudDemo/private:onClickFullScreenBtn", + "_-1c:_-0F/instance/_-1c:_-0F/_-Es": "tankshudDemo:TanksHudDemo/private:onOverNextTankBtn", + "_-1c:_-0F/instance/_-1c:_-0F/_-p7": "tankshudDemo:TanksHudDemo/private:onOutNextTankBtn", + "_-1c:_-0F/instance/_-1c:_-0F/_-n-": "tankshudDemo:TanksHudDemo/private:onClickNextTankBtn", + "_-1c:_-0F/class/init": "tankshudDemo:TanksHudDemo/private:onClickNextTankBtn" + }, + "_-Xf": { + "_-1c:_-Xf": null, + "_-1c:_-Xf/instance/init": "tankshudDemo:TanksHudDemo_topRightIconClass/TanksHudDemo_topRightIconClass", + "_-1c:_-Xf/class/init": "tankshudDemo:TanksHudDemo_topRightIconClass/TanksHudDemo_topRightIconClass" + }, + "TanksHudDemo_nextTankState1Class": { + "_-1c:TanksHudDemo_nextTankState1Class": null, + "_-1c:TanksHudDemo_nextTankState1Class/instance/init": "tankshudDemo:TanksHudDemo_nextTankState1Class/TanksHudDemo_nextTankState1Class", + "_-1c:TanksHudDemo_nextTankState1Class/class/init": "tankshudDemo:TanksHudDemo_nextTankState1Class/TanksHudDemo_nextTankState1Class" + }, + "_-Qa": { + "_-1c:_-Qa": null, + "_-1c:_-Qa/instance/init": "tankshudDemo:TanksHudDemo_topLeftIconClass/TanksHudDemo_topLeftIconClass", + "_-1c:_-Qa/class/init": "tankshudDemo:TanksHudDemo_topLeftIconClass/TanksHudDemo_topLeftIconClass" + }, + "TanksHudDemo_fullScreenState2Class": { + "_-1c:TanksHudDemo_fullScreenState2Class": null, + "_-1c:TanksHudDemo_fullScreenState2Class/instance/init": "tankshudDemo:TanksHudDemo_fullScreenState2Class/TanksHudDemo_fullScreenState2Class", + "_-1c:TanksHudDemo_fullScreenState2Class/class/init": "tankshudDemo:TanksHudDemo_fullScreenState2Class/TanksHudDemo_fullScreenState2Class" + } + }, + "_-M8": { + "_-Yh": { + "_-M8:_-Yh": null, + "_-M8:_-Yh/instance/init": "alternativa.engine3d.materials.compiler:CommandType/CommandType", + "_-M8:_-Yh/class/init": "alternativa.engine3d.materials.compiler:CommandType/CommandType" + }, + "_-5": { + "_-M8:_-5": null, + "_-M8:_-5/instance/init": "alternativa.engine3d.materials.compiler:VariableType/VariableType", + "_-M8:_-5/class/init": "alternativa.engine3d.materials.compiler:VariableType/VariableType" + }, + "_-L7": { + "_-M8:_-L7": null, + "_-M8:_-L7/instance/init": "alternativa.engine3d.materials.compiler:RelativeVariable/RelativeVariable", + "_-M8:_-L7/instance/writeToByteArray": "alternativa.engine3d.materials.compiler:RelativeVariable/writeToByteArray", + "_-M8:_-L7/class/init": "alternativa.engine3d.materials.compiler:RelativeVariable/writeToByteArray" + }, + "_-Xk": { + "_-M8:_-Xk": null, + "_-M8:_-Xk/instance/init": "alternativa.engine3d.materials.compiler:Procedure/Procedure", + "_-M8:_-Xk/instance/_-M8:_-Xk/instance/_-7T": "alternativa.engine3d.materials.compiler:Procedure/private:addVariableUsage", + "_-M8:_-Xk/instance/_-Ob": "alternativa.engine3d.materials.compiler:Procedure/assignVariableName", + "_-M8:_-Xk/instance/_-dY": "alternativa.engine3d.materials.compiler:Procedure/compileFromString", + "_-M8:_-Xk/instance/_-En": "alternativa.engine3d.materials.compiler:Procedure/compileFromArray", + "_-M8:_-Xk/instance/_-8y": "alternativa.engine3d.materials.compiler:Procedure/assignConstantsArray", + "_-M8:_-Xk/instance/_-M8:_-Xk/instance/_-QQ": "alternativa.engine3d.materials.compiler:Procedure/private:writeCommand", + "_-M8:_-Xk/instance/_-mY": "alternativa.engine3d.materials.compiler:Procedure/newInstance", + "_-M8:_-Xk/class/init": "alternativa.engine3d.materials.compiler:Procedure/newInstance", + "_-M8:_-Xk/class/_-En": "alternativa.engine3d.materials.compiler:Procedure/compileFromArray", + "_-M8:_-Xk/class/_-dY": "alternativa.engine3d.materials.compiler:Procedure/compileFromString" + }, + "_-Um": { + "_-M8:_-Um": null, + "_-M8:_-Um/instance/init": "alternativa.engine3d.materials.compiler:Variable/Variable", + "_-M8:_-Um/instance/dispose": "alternativa.engine3d.materials.compiler:Variable/dispose", + "_-M8:_-Um/instance/size/getter": "alternativa.engine3d.materials.compiler:Variable/size/get", + "_-M8:_-Um/instance/size/setter": "alternativa.engine3d.materials.compiler:Variable/size/set", + "_-M8:_-Um/instance/writeToByteArray": "alternativa.engine3d.materials.compiler:Variable/writeToByteArray", + "_-M8:_-Um/class/init": "alternativa.engine3d.materials.compiler:Variable/writeToByteArray", + "_-M8:_-Um/class/create": "alternativa.engine3d.materials.compiler:Variable/create" + }, + "_-EK": { + "_-M8:_-EK": null, + "_-M8:_-EK/instance/init": "alternativa.engine3d.materials.compiler:DestinationVariable/DestinationVariable", + "_-M8:_-EK/instance/writeToByteArray": "alternativa.engine3d.materials.compiler:DestinationVariable/writeToByteArray", + "_-M8:_-EK/class/init": "alternativa.engine3d.materials.compiler:DestinationVariable/writeToByteArray" + }, + "_-ER": { + "_-M8:_-ER": null, + "_-M8:_-ER/instance/init": "alternativa.engine3d.materials.compiler:SamplerVariable/SamplerVariable", + "_-M8:_-ER/instance/writeToByteArray": "alternativa.engine3d.materials.compiler:SamplerVariable/writeToByteArray", + "_-M8:_-ER/class/init": "alternativa.engine3d.materials.compiler:SamplerVariable/writeToByteArray" + }, + "_-UF": { + "_-M8:_-UF": null, + "_-M8:_-UF/instance/init": "alternativa.engine3d.materials.compiler:SourceVariable/SourceVariable", + "_-M8:_-UF/instance/size/getter": "alternativa.engine3d.materials.compiler:SourceVariable/size/get", + "_-M8:_-UF/instance/writeToByteArray": "alternativa.engine3d.materials.compiler:SourceVariable/writeToByteArray", + "_-M8:_-UF/class/init": "alternativa.engine3d.materials.compiler:SourceVariable/writeToByteArray" + }, + "_-hR": { + "_-M8:_-hR": null, + "_-M8:_-hR/instance/init": "alternativa.engine3d.materials.compiler:Linker/Linker", + "_-M8:_-hR/instance/clear": "alternativa.engine3d.materials.compiler:Linker/clear", + "_-M8:_-hR/instance/_-on": "alternativa.engine3d.materials.compiler:Linker/addProcedure", + "_-M8:_-hR/instance/_-LU": "alternativa.engine3d.materials.compiler:Linker/declareVariable", + "_-M8:_-hR/instance/_-FS": "alternativa.engine3d.materials.compiler:Linker/setInputParams", + "_-M8:_-hR/instance/_-qd": "alternativa.engine3d.materials.compiler:Linker/setOutputParams", + "_-M8:_-hR/instance/getVariableIndex": "alternativa.engine3d.materials.compiler:Linker/getVariableIndex", + "_-M8:_-hR/instance/_-Dj": "alternativa.engine3d.materials.compiler:Linker/findVariable", + "_-M8:_-hR/instance/_-oj": "alternativa.engine3d.materials.compiler:Linker/containsVariable", + "_-M8:_-hR/instance/_-Ua": "alternativa.engine3d.materials.compiler:Linker/getByteCode", + "_-M8:_-hR/instance/_-NA": "alternativa.engine3d.materials.compiler:Linker/setOppositeLinker", + "_-M8:_-hR/instance/_-XI": "alternativa.engine3d.materials.compiler:Linker/link", + "_-M8:_-hR/instance/_-M8:_-hR/instance/_-4K": "alternativa.engine3d.materials.compiler:Linker/private:resolveVaryings", + "_-M8:_-hR/instance/_-M8:_-hR/instance/_-P1": "alternativa.engine3d.materials.compiler:Linker/private:resolveVariablesUsages", + "_-M8:_-hR/instance/_-bm": "alternativa.engine3d.materials.compiler:Linker/describeLinkageInfo", + "_-M8:_-hR/class/init": "alternativa.engine3d.materials.compiler:Linker/describeLinkageInfo" + } + }, + "_-IS": { + "_-mk": { + "_-IS:_-mk": null, + "_-IS:_-mk/instance/init#1": "_codec.commons:CodecA3DMatrix/CodecA3DMatrix", + "_-IS:_-mk/instance/init#0": "_codec.commons:CodecA3DMatrix/init", + "_-IS:_-mk/instance/_-2Q": "_codec.commons:CodecA3DMatrix/decode", + "_-IS:_-mk/instance/_-QN": "_codec.commons:CodecA3DMatrix/encode", + "_-IS:_-mk/class/init": "_codec.commons:CodecA3DMatrix/encode" + }, + "VectorCodecA3DMatrixLevel1": { + "_-IS:VectorCodecA3DMatrixLevel1": null, + "_-IS:VectorCodecA3DMatrixLevel1/instance/init#0": "_codec.commons:VectorCodecA3DMatrixLevel1/VectorCodecA3DMatrixLevel1", + "_-IS:VectorCodecA3DMatrixLevel1/instance/init#1": "_codec.commons:VectorCodecA3DMatrixLevel1/init", + "_-IS:VectorCodecA3DMatrixLevel1/instance/_-2Q": "_codec.commons:VectorCodecA3DMatrixLevel1/decode", + "_-IS:VectorCodecA3DMatrixLevel1/instance/_-QN": "_codec.commons:VectorCodecA3DMatrixLevel1/encode", + "_-IS:VectorCodecA3DMatrixLevel1/class/init": "_codec.commons:VectorCodecA3DMatrixLevel1/encode" + }, + "VectorCodecA3DMatrixLevel3": { + "_-IS:VectorCodecA3DMatrixLevel3": null, + "_-IS:VectorCodecA3DMatrixLevel3/instance/init#0": "_codec.commons:VectorCodecA3DMatrixLevel3/VectorCodecA3DMatrixLevel3", + "_-IS:VectorCodecA3DMatrixLevel3/instance/init#1": "_codec.commons:VectorCodecA3DMatrixLevel3/init", + "_-IS:VectorCodecA3DMatrixLevel3/instance/_-2Q": "_codec.commons:VectorCodecA3DMatrixLevel3/decode", + "_-IS:VectorCodecA3DMatrixLevel3/instance/_-QN": "_codec.commons:VectorCodecA3DMatrixLevel3/encode", + "_-IS:VectorCodecA3DMatrixLevel3/class/init": "_codec.commons:VectorCodecA3DMatrixLevel3/encode" + }, + "VectorCodecIdLevel2": { + "_-IS:VectorCodecIdLevel2": null, + "_-IS:VectorCodecIdLevel2/instance/init#0": "_codec.commons:VectorCodecIdLevel2/VectorCodecIdLevel2", + "_-IS:VectorCodecIdLevel2/instance/init#1": "_codec.commons:VectorCodecIdLevel2/init", + "_-IS:VectorCodecIdLevel2/instance/_-2Q": "_codec.commons:VectorCodecIdLevel2/decode", + "_-IS:VectorCodecIdLevel2/instance/_-QN": "_codec.commons:VectorCodecIdLevel2/encode", + "_-IS:VectorCodecIdLevel2/class/init": "_codec.commons:VectorCodecIdLevel2/encode" + }, + "VectorCodecIdLevel1": { + "_-IS:VectorCodecIdLevel1": null, + "_-IS:VectorCodecIdLevel1/instance/init#0": "_codec.commons:VectorCodecIdLevel1/VectorCodecIdLevel1", + "_-IS:VectorCodecIdLevel1/instance/init#1": "_codec.commons:VectorCodecIdLevel1/init", + "_-IS:VectorCodecIdLevel1/instance/_-2Q": "_codec.commons:VectorCodecIdLevel1/decode", + "_-IS:VectorCodecIdLevel1/instance/_-QN": "_codec.commons:VectorCodecIdLevel1/encode", + "_-IS:VectorCodecIdLevel1/class/init": "_codec.commons:VectorCodecIdLevel1/encode" + }, + "VectorCodecA3DMatrixLevel2": { + "_-IS:VectorCodecA3DMatrixLevel2": null, + "_-IS:VectorCodecA3DMatrixLevel2/instance/init#0": "_codec.commons:VectorCodecA3DMatrixLevel2/VectorCodecA3DMatrixLevel2", + "_-IS:VectorCodecA3DMatrixLevel2/instance/init#1": "_codec.commons:VectorCodecA3DMatrixLevel2/init", + "_-IS:VectorCodecA3DMatrixLevel2/instance/_-2Q": "_codec.commons:VectorCodecA3DMatrixLevel2/decode", + "_-IS:VectorCodecA3DMatrixLevel2/instance/_-QN": "_codec.commons:VectorCodecA3DMatrixLevel2/encode", + "_-IS:VectorCodecA3DMatrixLevel2/class/init": "_codec.commons:VectorCodecA3DMatrixLevel2/encode" + }, + "_-QI": { + "_-IS:_-QI": null, + "_-IS:_-QI/instance/init#1": "_codec.commons:CodecId/CodecId", + "_-IS:_-QI/instance/init#0": "_codec.commons:CodecId/init", + "_-IS:_-QI/instance/_-2Q": "_codec.commons:CodecId/decode", + "_-IS:_-QI/instance/_-QN": "_codec.commons:CodecId/encode", + "_-IS:_-QI/class/init": "_codec.commons:CodecId/encode" + }, + "VectorCodecIdLevel3": { + "_-IS:VectorCodecIdLevel3": null, + "_-IS:VectorCodecIdLevel3/instance/init#0": "_codec.commons:VectorCodecIdLevel3/VectorCodecIdLevel3", + "_-IS:VectorCodecIdLevel3/instance/init#1": "_codec.commons:VectorCodecIdLevel3/init", + "_-IS:VectorCodecIdLevel3/instance/_-2Q": "_codec.commons:VectorCodecIdLevel3/decode", + "_-IS:VectorCodecIdLevel3/instance/_-QN": "_codec.commons:VectorCodecIdLevel3/encode", + "_-IS:VectorCodecIdLevel3/class/init": "_codec.commons:VectorCodecIdLevel3/encode" + } + }, + "_-RG": { + "A3DMapBuilder": { + "_-RG:A3DMapBuilder": null, + "_-RG:A3DMapBuilder/instance/init": "alternativa.tanks.game.entities.map:A3DMapBuilder/A3DMapBuilder", + "_-RG:A3DMapBuilder/instance/objects/getter": "alternativa.tanks.game.entities.map:A3DMapBuilder/objects/get", + "_-RG:A3DMapBuilder/instance/collisionPrimitives/getter": "alternativa.tanks.game.entities.map:A3DMapBuilder/collisionPrimitives/get", + "_-RG:A3DMapBuilder/instance/lights/getter": "alternativa.tanks.game.entities.map:A3DMapBuilder/lights/get", + "_-RG:A3DMapBuilder/instance/decals/getter": "alternativa.tanks.game.entities.map:A3DMapBuilder/decals/get", + "_-RG:A3DMapBuilder/instance/_-Q7": "alternativa.tanks.game.entities.map:A3DMapBuilder/buildMap", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-OY": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:onGeometryComplete", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-hj": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:parseReflections", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-Gj": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:setupMaterials", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-VG": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:getMapGeometryFiles", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-gU": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:parseTrees", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-1o": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:parseBeams", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-F0": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:parseLights", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-kb": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:getCompressedTextureResource", + "_-RG:A3DMapBuilder/instance/_-RG:A3DMapBuilder/_-et": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:parseCollisionGeometry", + "_-RG:A3DMapBuilder/class/init": "alternativa.tanks.game.entities.map:A3DMapBuilder/private:parseCollisionGeometry" + }, + "_-pE": { + "_-RG:_-pE": null, + "_-RG:_-pE/instance/init": "alternativa.tanks.game.entities.map:MapMaterial/MapMaterial", + "_-RG:_-pE/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.entities.map:MapMaterial/alternativa3d:fillResources", + "_-RG:_-pE/instance/_-RG:_-pE/final": "alternativa.tanks.game.entities.map:MapMaterial/private:setupProgram", + "_-RG:_-pE/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.map:MapMaterial/alternativa3d:collectDraws", + "_-RG:_-pE/class/init": "alternativa.tanks.game.entities.map:MapMaterial/alternativa3d:collectDraws", + "_-RG:_-pE/class/_-RX": "alternativa.tanks.game.entities.map:MapMaterial/setFogTexture" + }, + "_-Oa": { + "_-RG:_-Oa": null, + "_-RG:_-Oa/instance/init": "alternativa.tanks.game.entities.map:MapOptions/MapOptions", + "_-RG:_-Oa/class/init": "alternativa.tanks.game.entities.map:MapOptions/MapOptions" + }, + "_-7J": { + "_-RG:_-7J": null, + "_-RG:_-7J/instance/init": "alternativa.tanks.game.entities.map:IA3DMapComponentListener/IA3DMapComponentListener", + "_-RG:_-7J/instance/_-A2:onA3DMapComplete": "alternativa.tanks.game.entities.map:IA3DMapComponentListener/alternativa.tanks.game.entities.map:IA3DMapComponentListener:onA3DMapComplete", + "_-RG:_-7J/class/init": "alternativa.tanks.game.entities.map:IA3DMapComponentListener/alternativa.tanks.game.entities.map:IA3DMapComponentListener:onA3DMapComplete" + }, + "_-Au": { + "_-RG:_-Au": null, + "_-RG:_-Au/instance/init": "alternativa.tanks.game.entities.map:VisibleLightMaterial/VisibleLightMaterial", + "_-RG:_-Au/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.entities.map:VisibleLightMaterial/alternativa3d:fillResources", + "_-RG:_-Au/instance/_-RG:_-Au/final": "alternativa.tanks.game.entities.map:VisibleLightMaterial/private:setupProgram", + "_-RG:_-Au/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.map:VisibleLightMaterial/alternativa3d:collectDraws", + "_-RG:_-Au/class/init": "alternativa.tanks.game.entities.map:VisibleLightMaterial/alternativa3d:collectDraws" + }, + "A3DMapComponent": { + "_-RG:A3DMapComponent": null, + "_-RG:A3DMapComponent/instance/init": "alternativa.tanks.game.entities.map:A3DMapComponent/A3DMapComponent", + "_-RG:A3DMapComponent/instance/initComponent": "alternativa.tanks.game.entities.map:A3DMapComponent/initComponent", + "_-RG:A3DMapComponent/instance/addToGame": "alternativa.tanks.game.entities.map:A3DMapComponent/addToGame", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-fb": "alternativa.tanks.game.entities.map:A3DMapComponent/private:createSkybox", + "_-RG:A3DMapComponent/instance/removeFromGame": "alternativa.tanks.game.entities.map:A3DMapComponent/removeFromGame", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-j7": "alternativa.tanks.game.entities.map:A3DMapComponent/private:buildRealMap", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-4U": "alternativa.tanks.game.entities.map:A3DMapComponent/private:onBuildingComplete", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/complete": "alternativa.tanks.game.entities.map:A3DMapComponent/private:complete", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-jE": "alternativa.tanks.game.entities.map:A3DMapComponent/private:initLights", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-8W": "alternativa.tanks.game.entities.map:A3DMapComponent/private:initFakeLight", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-Pq": "alternativa.tanks.game.entities.map:A3DMapComponent/private:initGraphics", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-nM": "alternativa.tanks.game.entities.map:A3DMapComponent/private:initPhysics", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-p-": "alternativa.tanks.game.entities.map:A3DMapComponent/private:createPhysicsVisualObjects", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-V7": "alternativa.tanks.game.entities.map:A3DMapComponent/private:createPhysicsVisualBox", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-F1": "alternativa.tanks.game.entities.map:A3DMapComponent/private:createPhysicsVisualTriangle", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-4H": "alternativa.tanks.game.entities.map:A3DMapComponent/private:setPhysicsTransform", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-RW": "alternativa.tanks.game.entities.map:A3DMapComponent/private:buildFakeMap", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-kD": "alternativa.tanks.game.entities.map:A3DMapComponent/private:addZeroMarker", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-Ze": "alternativa.tanks.game.entities.map:A3DMapComponent/private:onKeyDown", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-PR": "alternativa.tanks.game.entities.map:A3DMapComponent/private:toggleDecals", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-NQ/getter": "alternativa.tanks.game.entities.map:A3DMapComponent/private:decalsOffset/get", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-NQ/setter": "alternativa.tanks.game.entities.map:A3DMapComponent/private:decalsOffset/set", + "_-RG:A3DMapComponent/instance/_-RG:A3DMapComponent/instance/_-PF": "alternativa.tanks.game.entities.map:A3DMapComponent/private:toggleGeometry", + "_-RG:A3DMapComponent/class/init": "alternativa.tanks.game.entities.map:A3DMapComponent/private:toggleGeometry" + } + }, + "_-W9": { + "VectorCodeclongLevel3": { + "_-W9:VectorCodeclongLevel3": null, + "_-W9:VectorCodeclongLevel3/instance/init#0": "_codec:VectorCodeclongLevel3/VectorCodeclongLevel3", + "_-W9:VectorCodeclongLevel3/instance/init#1": "_codec:VectorCodeclongLevel3/init", + "_-W9:VectorCodeclongLevel3/instance/_-2Q": "_codec:VectorCodeclongLevel3/decode", + "_-W9:VectorCodeclongLevel3/instance/_-QN": "_codec:VectorCodeclongLevel3/encode", + "_-W9:VectorCodeclongLevel3/class/init": "_codec:VectorCodeclongLevel3/encode" + }, + "VectorCodecintLevel3": { + "_-W9:VectorCodecintLevel3": null, + "_-W9:VectorCodecintLevel3/instance/init#0": "_codec:VectorCodecintLevel3/VectorCodecintLevel3", + "_-W9:VectorCodecintLevel3/instance/init#1": "_codec:VectorCodecintLevel3/init", + "_-W9:VectorCodecintLevel3/instance/_-2Q": "_codec:VectorCodecintLevel3/decode", + "_-W9:VectorCodecintLevel3/instance/_-QN": "_codec:VectorCodecintLevel3/encode", + "_-W9:VectorCodecintLevel3/class/init": "_codec:VectorCodecintLevel3/encode" + }, + "VectorCodecStringLevel1": { + "_-W9:VectorCodecStringLevel1": null, + "_-W9:VectorCodecStringLevel1/instance/init#0": "_codec:VectorCodecStringLevel1/VectorCodecStringLevel1", + "_-W9:VectorCodecStringLevel1/instance/init#1": "_codec:VectorCodecStringLevel1/init", + "_-W9:VectorCodecStringLevel1/instance/_-2Q": "_codec:VectorCodecStringLevel1/decode", + "_-W9:VectorCodecStringLevel1/instance/_-QN": "_codec:VectorCodecStringLevel1/encode", + "_-W9:VectorCodecStringLevel1/class/init": "_codec:VectorCodecStringLevel1/encode" + }, + "VectorCodeclongLevel2": { + "_-W9:VectorCodeclongLevel2": null, + "_-W9:VectorCodeclongLevel2/instance/init#0": "_codec:VectorCodeclongLevel2/VectorCodeclongLevel2", + "_-W9:VectorCodeclongLevel2/instance/init#1": "_codec:VectorCodeclongLevel2/init", + "_-W9:VectorCodeclongLevel2/instance/_-2Q": "_codec:VectorCodeclongLevel2/decode", + "_-W9:VectorCodeclongLevel2/instance/_-QN": "_codec:VectorCodeclongLevel2/encode", + "_-W9:VectorCodeclongLevel2/class/init": "_codec:VectorCodeclongLevel2/encode" + }, + "VectorCodecintLevel1": { + "_-W9:VectorCodecintLevel1": null, + "_-W9:VectorCodecintLevel1/instance/init#0": "_codec:VectorCodecintLevel1/VectorCodecintLevel1", + "_-W9:VectorCodecintLevel1/instance/init#1": "_codec:VectorCodecintLevel1/init", + "_-W9:VectorCodecintLevel1/instance/_-2Q": "_codec:VectorCodecintLevel1/decode", + "_-W9:VectorCodecintLevel1/instance/_-QN": "_codec:VectorCodecintLevel1/encode", + "_-W9:VectorCodecintLevel1/class/init": "_codec:VectorCodecintLevel1/encode" + }, + "VectorCodecfloatLevel3": { + "_-W9:VectorCodecfloatLevel3": null, + "_-W9:VectorCodecfloatLevel3/instance/init#0": "_codec:VectorCodecfloatLevel3/VectorCodecfloatLevel3", + "_-W9:VectorCodecfloatLevel3/instance/init#1": "_codec:VectorCodecfloatLevel3/init", + "_-W9:VectorCodecfloatLevel3/instance/_-2Q": "_codec:VectorCodecfloatLevel3/decode", + "_-W9:VectorCodecfloatLevel3/instance/_-QN": "_codec:VectorCodecfloatLevel3/encode", + "_-W9:VectorCodecfloatLevel3/class/init": "_codec:VectorCodecfloatLevel3/encode" + }, + "VectorCodecshortLevel2": { + "_-W9:VectorCodecshortLevel2": null, + "_-W9:VectorCodecshortLevel2/instance/init#0": "_codec:VectorCodecshortLevel2/VectorCodecshortLevel2", + "_-W9:VectorCodecshortLevel2/instance/init#1": "_codec:VectorCodecshortLevel2/init", + "_-W9:VectorCodecshortLevel2/instance/_-2Q": "_codec:VectorCodecshortLevel2/decode", + "_-W9:VectorCodecshortLevel2/instance/_-QN": "_codec:VectorCodecshortLevel2/encode", + "_-W9:VectorCodecshortLevel2/class/init": "_codec:VectorCodecshortLevel2/encode" + }, + "VectorCodecfloatLevel2": { + "_-W9:VectorCodecfloatLevel2": null, + "_-W9:VectorCodecfloatLevel2/instance/init#0": "_codec:VectorCodecfloatLevel2/VectorCodecfloatLevel2", + "_-W9:VectorCodecfloatLevel2/instance/init#1": "_codec:VectorCodecfloatLevel2/init", + "_-W9:VectorCodecfloatLevel2/instance/_-2Q": "_codec:VectorCodecfloatLevel2/decode", + "_-W9:VectorCodecfloatLevel2/instance/_-QN": "_codec:VectorCodecfloatLevel2/encode", + "_-W9:VectorCodecfloatLevel2/class/init": "_codec:VectorCodecfloatLevel2/encode" + }, + "VectorCodecbyteLevel1": { + "_-W9:VectorCodecbyteLevel1": null, + "_-W9:VectorCodecbyteLevel1/instance/init#0": "_codec:VectorCodecbyteLevel1/VectorCodecbyteLevel1", + "_-W9:VectorCodecbyteLevel1/instance/init#1": "_codec:VectorCodecbyteLevel1/init", + "_-W9:VectorCodecbyteLevel1/instance/_-2Q": "_codec:VectorCodecbyteLevel1/decode", + "_-W9:VectorCodecbyteLevel1/instance/_-QN": "_codec:VectorCodecbyteLevel1/encode", + "_-W9:VectorCodecbyteLevel1/class/init": "_codec:VectorCodecbyteLevel1/encode" + }, + "VectorCodecStringLevel2": { + "_-W9:VectorCodecStringLevel2": null, + "_-W9:VectorCodecStringLevel2/instance/init#0": "_codec:VectorCodecStringLevel2/VectorCodecStringLevel2", + "_-W9:VectorCodecStringLevel2/instance/init#1": "_codec:VectorCodecStringLevel2/init", + "_-W9:VectorCodecStringLevel2/instance/_-2Q": "_codec:VectorCodecStringLevel2/decode", + "_-W9:VectorCodecStringLevel2/instance/_-QN": "_codec:VectorCodecStringLevel2/encode", + "_-W9:VectorCodecStringLevel2/class/init": "_codec:VectorCodecStringLevel2/encode" + }, + "VectorCodecshortLevel1": { + "_-W9:VectorCodecshortLevel1": null, + "_-W9:VectorCodecshortLevel1/instance/init#0": "_codec:VectorCodecshortLevel1/VectorCodecshortLevel1", + "_-W9:VectorCodecshortLevel1/instance/init#1": "_codec:VectorCodecshortLevel1/init", + "_-W9:VectorCodecshortLevel1/instance/_-2Q": "_codec:VectorCodecshortLevel1/decode", + "_-W9:VectorCodecshortLevel1/instance/_-QN": "_codec:VectorCodecshortLevel1/encode", + "_-W9:VectorCodecshortLevel1/class/init": "_codec:VectorCodecshortLevel1/encode" + }, + "VectorCodeclongLevel1": { + "_-W9:VectorCodeclongLevel1": null, + "_-W9:VectorCodeclongLevel1/instance/init#0": "_codec:VectorCodeclongLevel1/VectorCodeclongLevel1", + "_-W9:VectorCodeclongLevel1/instance/init#1": "_codec:VectorCodeclongLevel1/init", + "_-W9:VectorCodeclongLevel1/instance/_-2Q": "_codec:VectorCodeclongLevel1/decode", + "_-W9:VectorCodeclongLevel1/instance/_-QN": "_codec:VectorCodeclongLevel1/encode", + "_-W9:VectorCodeclongLevel1/class/init": "_codec:VectorCodeclongLevel1/encode" + }, + "VectorCodecbyteLevel3": { + "_-W9:VectorCodecbyteLevel3": null, + "_-W9:VectorCodecbyteLevel3/instance/init#0": "_codec:VectorCodecbyteLevel3/VectorCodecbyteLevel3", + "_-W9:VectorCodecbyteLevel3/instance/init#1": "_codec:VectorCodecbyteLevel3/init", + "_-W9:VectorCodecbyteLevel3/instance/_-2Q": "_codec:VectorCodecbyteLevel3/decode", + "_-W9:VectorCodecbyteLevel3/instance/_-QN": "_codec:VectorCodecbyteLevel3/encode", + "_-W9:VectorCodecbyteLevel3/class/init": "_codec:VectorCodecbyteLevel3/encode" + }, + "VectorCodecshortLevel3": { + "_-W9:VectorCodecshortLevel3": null, + "_-W9:VectorCodecshortLevel3/instance/init#0": "_codec:VectorCodecshortLevel3/VectorCodecshortLevel3", + "_-W9:VectorCodecshortLevel3/instance/init#1": "_codec:VectorCodecshortLevel3/init", + "_-W9:VectorCodecshortLevel3/instance/_-2Q": "_codec:VectorCodecshortLevel3/decode", + "_-W9:VectorCodecshortLevel3/instance/_-QN": "_codec:VectorCodecshortLevel3/encode", + "_-W9:VectorCodecshortLevel3/class/init": "_codec:VectorCodecshortLevel3/encode" + }, + "VectorCodecintLevel2": { + "_-W9:VectorCodecintLevel2": null, + "_-W9:VectorCodecintLevel2/instance/init#0": "_codec:VectorCodecintLevel2/VectorCodecintLevel2", + "_-W9:VectorCodecintLevel2/instance/init#1": "_codec:VectorCodecintLevel2/init", + "_-W9:VectorCodecintLevel2/instance/_-2Q": "_codec:VectorCodecintLevel2/decode", + "_-W9:VectorCodecintLevel2/instance/_-QN": "_codec:VectorCodecintLevel2/encode", + "_-W9:VectorCodecintLevel2/class/init": "_codec:VectorCodecintLevel2/encode" + }, + "VectorCodecfloatLevel1": { + "_-W9:VectorCodecfloatLevel1": null, + "_-W9:VectorCodecfloatLevel1/instance/init#0": "_codec:VectorCodecfloatLevel1/VectorCodecfloatLevel1", + "_-W9:VectorCodecfloatLevel1/instance/init#1": "_codec:VectorCodecfloatLevel1/init", + "_-W9:VectorCodecfloatLevel1/instance/_-2Q": "_codec:VectorCodecfloatLevel1/decode", + "_-W9:VectorCodecfloatLevel1/instance/_-QN": "_codec:VectorCodecfloatLevel1/encode", + "_-W9:VectorCodecfloatLevel1/class/init": "_codec:VectorCodecfloatLevel1/encode" + }, + "VectorCodecStringLevel3": { + "_-W9:VectorCodecStringLevel3": null, + "_-W9:VectorCodecStringLevel3/instance/init#0": "_codec:VectorCodecStringLevel3/VectorCodecStringLevel3", + "_-W9:VectorCodecStringLevel3/instance/init#1": "_codec:VectorCodecStringLevel3/init", + "_-W9:VectorCodecStringLevel3/instance/_-2Q": "_codec:VectorCodecStringLevel3/decode", + "_-W9:VectorCodecStringLevel3/instance/_-QN": "_codec:VectorCodecStringLevel3/encode", + "_-W9:VectorCodecStringLevel3/class/init": "_codec:VectorCodecStringLevel3/encode" + }, + "VectorCodecbyteLevel2": { + "_-W9:VectorCodecbyteLevel2": null, + "_-W9:VectorCodecbyteLevel2/instance/init#0": "_codec:VectorCodecbyteLevel2/VectorCodecbyteLevel2", + "_-W9:VectorCodecbyteLevel2/instance/init#1": "_codec:VectorCodecbyteLevel2/init", + "_-W9:VectorCodecbyteLevel2/instance/_-2Q": "_codec:VectorCodecbyteLevel2/decode", + "_-W9:VectorCodecbyteLevel2/instance/_-QN": "_codec:VectorCodecbyteLevel2/encode", + "_-W9:VectorCodecbyteLevel2/class/init": "_codec:VectorCodecbyteLevel2/encode" + } + }, + "_-I0": { + "_-bt": { + "_-I0:_-bt": null, + "_-I0:_-bt/instance/init": "alternativa.tanks.game.camera:OrbitCameraController/OrbitCameraController", + "_-I0:_-bt/instance/_-eA": "alternativa.tanks.game.camera:OrbitCameraController/enable", + "_-I0:_-bt/instance/_-O-": "alternativa.tanks.game.camera:OrbitCameraController/setTarget", + "_-I0:_-bt/instance/update": "alternativa.tanks.game.camera:OrbitCameraController/update", + "_-I0:_-bt/instance/_-I0:_-bt/_-Tq/setter": "alternativa.tanks.game.camera:OrbitCameraController/private:cameraHeight/set", + "_-I0:_-bt/instance/_-I0:_-bt/_-TS": "alternativa.tanks.game.camera:OrbitCameraController/private:getCameraPositionData", + "_-I0:_-bt/instance/_-I0:_-bt/_-LI": "alternativa.tanks.game.camera:OrbitCameraController/private:getMinCollisionDistance", + "_-I0:_-bt/instance/_-I0:_-bt/_-1E": "alternativa.tanks.game.camera:OrbitCameraController/private:updateTargetState", + "_-I0:_-bt/instance/_-I0:_-bt/_-U6": "alternativa.tanks.game.camera:OrbitCameraController/private:setMatrixFromObject", + "_-I0:_-bt/instance/_-I0:_-bt/_-K4": "alternativa.tanks.game.camera:OrbitCameraController/private:updateHeight", + "_-I0:_-bt/instance/_-I0:_-bt/_-pq": "alternativa.tanks.game.camera:OrbitCameraController/private:getCamDistance", + "_-I0:_-bt/instance/_-I0:_-bt/_-Tu": "alternativa.tanks.game.camera:OrbitCameraController/private:getLinearSpeed", + "_-I0:_-bt/instance/_-I0:_-bt/_-NP": "alternativa.tanks.game.camera:OrbitCameraController/private:getAngularSpeed", + "_-I0:_-bt/instance/_-I0:_-bt/each ": "alternativa.tanks.game.camera:OrbitCameraController/private:snap", + "_-I0:_-bt/instance/_-I0:_-bt/_-Xv": "alternativa.tanks.game.camera:OrbitCameraController/private:getPitchAngle", + "_-I0:_-bt/class/init": "alternativa.tanks.game.camera:OrbitCameraController/private:getPitchAngle" + }, + "_-Ww": { + "_-I0:_-Ww": null, + "_-I0:_-Ww/instance/init": "alternativa.tanks.game.camera:CameraControllerBase/CameraControllerBase", + "_-I0:_-Ww/instance/_-ZS:_-Vi": "alternativa.tanks.game.camera:CameraControllerBase/protected:setPosition", + "_-I0:_-Ww/instance/_-ZS:_-LV": "alternativa.tanks.game.camera:CameraControllerBase/protected:setOrientation", + "_-I0:_-Ww/instance/_-ZS:_-C3": "alternativa.tanks.game.camera:CameraControllerBase/protected:setOrientationXYZ", + "_-I0:_-Ww/instance/_-ZS:_-mp": "alternativa.tanks.game.camera:CameraControllerBase/protected:moveBy", + "_-I0:_-Ww/instance/_-ZS:_-WE": "alternativa.tanks.game.camera:CameraControllerBase/protected:rotateBy", + "_-I0:_-Ww/class/init": "alternativa.tanks.game.camera:CameraControllerBase/protected:rotateBy" + }, + "_-VT": { + "_-I0:_-VT": null, + "_-I0:_-VT/instance/init": "alternativa.tanks.game.camera:AxisIndicator/AxisIndicator", + "_-I0:_-VT/instance/update": "alternativa.tanks.game.camera:AxisIndicator/update", + "_-I0:_-VT/instance/size/getter": "alternativa.tanks.game.camera:AxisIndicator/size/get", + "_-I0:_-VT/class/init": "alternativa.tanks.game.camera:AxisIndicator/size/get" + }, + "_-hB": { + "_-I0:_-hB": null, + "_-I0:_-hB/instance/init": "alternativa.tanks.game.camera:FollowCameraController/FollowCameraController", + "_-I0:_-hB/instance/_-eA": "alternativa.tanks.game.camera:FollowCameraController/enable", + "_-I0:_-hB/instance/_-O-": "alternativa.tanks.game.camera:FollowCameraController/setTarget", + "_-I0:_-hB/instance/_-7o": "alternativa.tanks.game.camera:FollowCameraController/setDefaultSettings", + "_-I0:_-hB/instance/_-hI": "alternativa.tanks.game.camera:FollowCameraController/setAlternateSettings", + "_-I0:_-hB/instance/_-WF": "alternativa.tanks.game.camera:FollowCameraController/initByTarget", + "_-I0:_-hB/instance/_-5p": "alternativa.tanks.game.camera:FollowCameraController/initCameraComponents", + "_-I0:_-hB/instance/update": "alternativa.tanks.game.camera:FollowCameraController/update", + "_-I0:_-hB/instance/_-qb": "alternativa.tanks.game.camera:FollowCameraController/setLocked", + "_-I0:_-hB/instance/_-Tq/getter": "alternativa.tanks.game.camera:FollowCameraController/cameraHeight/get", + "_-I0:_-hB/instance/_-Tq/setter": "alternativa.tanks.game.camera:FollowCameraController/cameraHeight/set", + "_-I0:_-hB/instance/_-Ls": "alternativa.tanks.game.camera:FollowCameraController/getCameraState", + "_-I0:_-hB/instance/_-I0:_-hB/_-TS": "alternativa.tanks.game.camera:FollowCameraController/private:getCameraPositionData", + "_-I0:_-hB/instance/_-I0:_-hB/_-5y": "alternativa.tanks.game.camera:FollowCameraController/private:getCollisionDistance", + "_-I0:_-hB/instance/_-I0:_-hB/_-1E": "alternativa.tanks.game.camera:FollowCameraController/private:updateTargetState", + "_-I0:_-hB/instance/_-I0:_-hB/setMatrix": "alternativa.tanks.game.camera:FollowCameraController/private:setMatrix", + "_-I0:_-hB/instance/_-I0:_-hB/_-K4": "alternativa.tanks.game.camera:FollowCameraController/private:updateHeight", + "_-I0:_-hB/instance/_-I0:_-hB/_-pq": "alternativa.tanks.game.camera:FollowCameraController/private:getCamDistance", + "_-I0:_-hB/instance/_-I0:_-hB/_-Tu": "alternativa.tanks.game.camera:FollowCameraController/private:getLinearSpeed", + "_-I0:_-hB/instance/_-I0:_-hB/_-NP": "alternativa.tanks.game.camera:FollowCameraController/private:getAngularSpeed", + "_-I0:_-hB/instance/_-I0:_-hB/each ": "alternativa.tanks.game.camera:FollowCameraController/private:snap", + "_-I0:_-hB/instance/_-I0:_-hB/_-Xv": "alternativa.tanks.game.camera:FollowCameraController/private:getPitchAngle", + "_-I0:_-hB/instance/_-I0:_-hB/_-PD": "alternativa.tanks.game.camera:FollowCameraController/private:moveValueTowards", + "_-I0:_-hB/class/init": "alternativa.tanks.game.camera:FollowCameraController/private:moveValueTowards" + }, + "_-Jv": { + "_-I0:_-Jv": null, + "_-I0:_-Jv/instance/init": "alternativa.tanks.game.camera:FreeCameraController/FreeCameraController", + "_-I0:_-Jv/instance/_-eA": "alternativa.tanks.game.camera:FreeCameraController/enable", + "_-I0:_-Jv/instance/_-oa": "alternativa.tanks.game.camera:FreeCameraController/setPositionXYZ", + "_-I0:_-Jv/instance/_-38": "alternativa.tanks.game.camera:FreeCameraController/lookAtXYZ", + "_-I0:_-Jv/instance/_-O-": "alternativa.tanks.game.camera:FreeCameraController/setTarget", + "_-I0:_-Jv/instance/update": "alternativa.tanks.game.camera:FreeCameraController/update", + "_-I0:_-Jv/instance/_-I0:_-Jv/_-1E": "alternativa.tanks.game.camera:FreeCameraController/private:updateTargetState", + "_-I0:_-Jv/instance/_-I0:_-Jv/_-U6": "alternativa.tanks.game.camera:FreeCameraController/private:setMatrixFromObject", + "_-I0:_-Jv/class/init": "alternativa.tanks.game.camera:FreeCameraController/private:setMatrixFromObject" + } + }, + "_-Tr": { + "_-cL": { + "_-Tr:_-cL": null, + "_-Tr:_-cL/instance/init": "alternativa.tanks.game.weapons.railgun:IRailgunTargetEvaluator/IRailgunTargetEvaluator", + "_-Tr:_-cL/instance/_-3X:_-EJ": "alternativa.tanks.game.weapons.railgun:IRailgunTargetEvaluator/alternativa.tanks.game.weapons.railgun:IRailgunTargetEvaluator:getTargetPriority", + "_-Tr:_-cL/class/init": "alternativa.tanks.game.weapons.railgun:IRailgunTargetEvaluator/alternativa.tanks.game.weapons.railgun:IRailgunTargetEvaluator:getTargetPriority" + } + }, + "_-Uy": { + "_-oP": { + "_-Uy:_-oP": null, + "_-Uy:_-oP/instance/init": "alternativa.osgi:OSGi/OSGi", + "_-Uy:_-oP/instance/_-XK": "alternativa.osgi:OSGi/installBundle", + "_-Uy:_-oP/instance/_-PX": "alternativa.osgi:OSGi/uninstallBundle", + "_-Uy:_-oP/instance/_-g2": "alternativa.osgi:OSGi/registerService", + "_-Uy:_-oP/instance/_-pC": "alternativa.osgi:OSGi/registerServiceMulty", + "_-Uy:_-oP/instance/_-5n": "alternativa.osgi:OSGi/unregisterService", + "_-Uy:_-oP/instance/_-N6": "alternativa.osgi:OSGi/getService", + "_-Uy:_-oP/instance/_-oK": "alternativa.osgi:OSGi/injectService", + "_-Uy:_-oP/instance/_-01/getter": "alternativa.osgi:OSGi/bundleList/get", + "_-Uy:_-oP/instance/_-cA/getter": "alternativa.osgi:OSGi/serviceList/get", + "_-Uy:_-oP/class/init": "alternativa.osgi:OSGi/serviceList/get", + "_-Uy:_-oP/class/_-nQ": "alternativa.osgi:OSGi/getInstance" + } + }, + "_-aA": { + "_-6t": { + "_-aA:_-6t": null, + "_-aA:_-6t/instance/init": "alternativa.startup:IClientConfigurator/IClientConfigurator", + "_-aA:_-6t/instance/_-BI:start": "alternativa.startup:IClientConfigurator/alternativa.startup:IClientConfigurator:start", + "_-aA:_-6t/class/init": "alternativa.startup:IClientConfigurator/alternativa.startup:IClientConfigurator:start" + }, + "_-a-": { + "_-aA:_-a-": null, + "_-aA:_-a-/instance/init": "alternativa.startup:LibraryInfo/LibraryInfo", + "_-aA:_-a-/instance/toString": "alternativa.startup:LibraryInfo/toString", + "_-aA:_-a-/class/init": "alternativa.startup:LibraryInfo/toString" + }, + "_-1O": { + "_-aA:_-1O": null, + "_-aA:_-1O/instance/init": "alternativa.startup:ConnectionParameters/ConnectionParameters", + "_-aA:_-1O/class/init": "alternativa.startup:ConnectionParameters/ConnectionParameters" + } + }, + "_-iL": { + "_-Yr": { + "_-iL:_-Yr": null, + "_-iL:_-Yr/instance/init": "alternativa.protocol.impl:OptionalMapCodecHelper/OptionalMapCodecHelper", + "_-iL:_-Yr/class/init": "alternativa.protocol.impl:OptionalMapCodecHelper/OptionalMapCodecHelper", + "_-iL:_-Yr/class/_-PZ": "alternativa.protocol.impl:OptionalMapCodecHelper/encodeNullMap", + "_-iL:_-Yr/class/_-Nx": "alternativa.protocol.impl:OptionalMapCodecHelper/decodeNullMap" + }, + "_-Zs": { + "_-iL:_-Zs": null, + "_-iL:_-Zs/instance/init": "alternativa.protocol.impl:LengthCodecHelper/LengthCodecHelper", + "_-iL:_-Zs/class/init": "alternativa.protocol.impl:LengthCodecHelper/LengthCodecHelper", + "_-iL:_-Zs/class/_-I2": "alternativa.protocol.impl:LengthCodecHelper/encodeLength", + "_-iL:_-Zs/class/_-XS": "alternativa.protocol.impl:LengthCodecHelper/decodeLength" + }, + "_-ZD": { + "_-iL:_-ZD": null, + "_-iL:_-ZD/instance/init": "alternativa.protocol.impl:Protocol/Protocol", + "_-iL:_-ZD/instance/_-Iw": "alternativa.protocol.impl:Protocol/registerCodec", + "_-iL:_-ZD/instance/_-BJ": "alternativa.protocol.impl:Protocol/registerCodecForType", + "_-iL:_-ZD/instance/_-8G": "alternativa.protocol.impl:Protocol/getCodec", + "_-iL:_-ZD/instance/_-Og": "alternativa.protocol.impl:Protocol/makeCodecInfo", + "_-iL:_-ZD/instance/_-EP": "alternativa.protocol.impl:Protocol/wrapPacket", + "_-iL:_-ZD/instance/_-Nd": "alternativa.protocol.impl:Protocol/unwrapPacket", + "_-iL:_-ZD/class/init": "alternativa.protocol.impl:Protocol/unwrapPacket" + }, + "_-R6": { + "_-iL:_-R6": null, + "_-iL:_-R6/instance/init": "alternativa.protocol.impl:PacketHelper/PacketHelper", + "_-iL:_-R6/class/init": "alternativa.protocol.impl:PacketHelper/PacketHelper", + "_-iL:_-R6/class/_-Nd": "alternativa.protocol.impl:PacketHelper/unwrapPacket", + "_-iL:_-R6/class/_-EP": "alternativa.protocol.impl:PacketHelper/wrapPacket", + "_-iL:_-R6/class/_-iL:_-R6/class/_-O6": "alternativa.protocol.impl:PacketHelper/private:isLongSize", + "_-iL:_-R6/class/_-iL:_-R6/class/_-Zx": "alternativa.protocol.impl:PacketHelper/private:determineZipped", + "_-iL:_-R6/class/_-iL:_-R6/class/_-lO": "alternativa.protocol.impl:PacketHelper/private:getClientLog", + "_-iL:_-R6/class/_-iL:_-R6/class/bytesToString": "alternativa.protocol.impl:PacketHelper/private:bytesToString" + } + }, + "_-5U": { + "_-Kr": { + "_-5U:_-Kr": null, + "_-5U:_-Kr/instance/init": "alternativa:ClientConfigurator/ClientConfigurator", + "_-5U:_-Kr/instance/start": "alternativa:ClientConfigurator/start", + "_-5U:_-Kr/instance/_-5U:_-Kr/instance/_-SF": "alternativa:ClientConfigurator/private:initClientLog", + "_-5U:_-Kr/instance/_-5U:_-Kr/instance/_-33": "alternativa:ClientConfigurator/private:initConsole", + "_-5U:_-Kr/instance/_-5U:_-Kr/instance/_-bC": "alternativa:ClientConfigurator/private:configureConsole", + "_-5U:_-Kr/instance/_-5U:_-Kr/instance/ for": "alternativa:ClientConfigurator/private:parseShortcut", + "_-5U:_-Kr/instance/_-5U:_-Kr/instance/_-bM": "alternativa:ClientConfigurator/private:onKey", + "_-5U:_-Kr/class/init": "alternativa:ClientConfigurator/private:onKey" + }, + "_-fn": { + "_-5U:_-fn": null, + "_-5U:_-fn/instance/init": "alternativa:Alternativa3D/Alternativa3D", + "_-5U:_-fn/class/init": "alternativa:Alternativa3D/Alternativa3D" + } + }, + "_-R8": { + "_-QM": { + "_-R8:_-QM": null, + "_-R8:_-QM/instance/init": "alternativa.tanks.game.weapons.debug:DebugWeaponDistanceWeakening/DebugWeaponDistanceWeakening", + "_-R8:_-QM/instance/_-Wg": "alternativa.tanks.game.weapons.debug:DebugWeaponDistanceWeakening/getWeakeningCoefficient", + "_-R8:_-QM/instance/_-4v": "alternativa.tanks.game.weapons.debug:DebugWeaponDistanceWeakening/getMaximumDamageRadius", + "_-R8:_-QM/instance/_-n0": "alternativa.tanks.game.weapons.debug:DebugWeaponDistanceWeakening/getMinimumDamageRadius", + "_-R8:_-QM/class/init": "alternativa.tanks.game.weapons.debug:DebugWeaponDistanceWeakening/getMinimumDamageRadius" + } + }, + "_-cB": { + "VectorCodecA3D2VertexAttributesLevel2": { + "_-cB:VectorCodecA3D2VertexAttributesLevel2": null, + "_-cB:VectorCodecA3D2VertexAttributesLevel2/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel2/VectorCodecA3D2VertexAttributesLevel2", + "_-cB:VectorCodecA3D2VertexAttributesLevel2/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel2/init", + "_-cB:VectorCodecA3D2VertexAttributesLevel2/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel2/decode", + "_-cB:VectorCodecA3D2VertexAttributesLevel2/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel2/encode", + "_-cB:VectorCodecA3D2VertexAttributesLevel2/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel2/encode" + }, + "VectorCodecA3D2IndexBufferLevel1": { + "_-cB:VectorCodecA3D2IndexBufferLevel1": null, + "_-cB:VectorCodecA3D2IndexBufferLevel1/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel1/VectorCodecA3D2IndexBufferLevel1", + "_-cB:VectorCodecA3D2IndexBufferLevel1/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel1/init", + "_-cB:VectorCodecA3D2IndexBufferLevel1/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel1/decode", + "_-cB:VectorCodecA3D2IndexBufferLevel1/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel1/encode", + "_-cB:VectorCodecA3D2IndexBufferLevel1/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel1/encode" + }, + "CodecA3D2VertexAttributes": { + "_-cB:CodecA3D2VertexAttributes": null, + "_-cB:CodecA3D2VertexAttributes/instance/init#1": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexAttributes/CodecA3D2VertexAttributes", + "_-cB:CodecA3D2VertexAttributes/instance/init#0": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexAttributes/init", + "_-cB:CodecA3D2VertexAttributes/instance/_-2Q": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexAttributes/decode", + "_-cB:CodecA3D2VertexAttributes/instance/_-QN": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexAttributes/encode", + "_-cB:CodecA3D2VertexAttributes/class/init": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexAttributes/encode" + }, + "CodecA3D2VertexBuffer": { + "_-cB:CodecA3D2VertexBuffer": null, + "_-cB:CodecA3D2VertexBuffer/instance/init#1": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexBuffer/CodecA3D2VertexBuffer", + "_-cB:CodecA3D2VertexBuffer/instance/init#0": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexBuffer/init", + "_-cB:CodecA3D2VertexBuffer/instance/_-2Q": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexBuffer/decode", + "_-cB:CodecA3D2VertexBuffer/instance/_-QN": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexBuffer/encode", + "_-cB:CodecA3D2VertexBuffer/class/init": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexBuffer/encode" + }, + "VectorCodecA3D2VertexAttributesLevel3": { + "_-cB:VectorCodecA3D2VertexAttributesLevel3": null, + "_-cB:VectorCodecA3D2VertexAttributesLevel3/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel3/VectorCodecA3D2VertexAttributesLevel3", + "_-cB:VectorCodecA3D2VertexAttributesLevel3/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel3/init", + "_-cB:VectorCodecA3D2VertexAttributesLevel3/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel3/decode", + "_-cB:VectorCodecA3D2VertexAttributesLevel3/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel3/encode", + "_-cB:VectorCodecA3D2VertexAttributesLevel3/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel3/encode" + }, + "VectorCodecA3D2IndexBufferLevel2": { + "_-cB:VectorCodecA3D2IndexBufferLevel2": null, + "_-cB:VectorCodecA3D2IndexBufferLevel2/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel2/VectorCodecA3D2IndexBufferLevel2", + "_-cB:VectorCodecA3D2IndexBufferLevel2/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel2/init", + "_-cB:VectorCodecA3D2IndexBufferLevel2/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel2/decode", + "_-cB:VectorCodecA3D2IndexBufferLevel2/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel2/encode", + "_-cB:VectorCodecA3D2IndexBufferLevel2/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel2/encode" + }, + "VectorCodecA3D2VertexBufferLevel1": { + "_-cB:VectorCodecA3D2VertexBufferLevel1": null, + "_-cB:VectorCodecA3D2VertexBufferLevel1/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel1/VectorCodecA3D2VertexBufferLevel1", + "_-cB:VectorCodecA3D2VertexBufferLevel1/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel1/init", + "_-cB:VectorCodecA3D2VertexBufferLevel1/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel1/decode", + "_-cB:VectorCodecA3D2VertexBufferLevel1/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel1/encode", + "_-cB:VectorCodecA3D2VertexBufferLevel1/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel1/encode" + }, + "CodecA3D2IndexBuffer": { + "_-cB:CodecA3D2IndexBuffer": null, + "_-cB:CodecA3D2IndexBuffer/instance/init#1": "_codec.versions.version2.a3d.geometry:CodecA3D2IndexBuffer/CodecA3D2IndexBuffer", + "_-cB:CodecA3D2IndexBuffer/instance/init#0": "_codec.versions.version2.a3d.geometry:CodecA3D2IndexBuffer/init", + "_-cB:CodecA3D2IndexBuffer/instance/_-2Q": "_codec.versions.version2.a3d.geometry:CodecA3D2IndexBuffer/decode", + "_-cB:CodecA3D2IndexBuffer/instance/_-QN": "_codec.versions.version2.a3d.geometry:CodecA3D2IndexBuffer/encode", + "_-cB:CodecA3D2IndexBuffer/class/init": "_codec.versions.version2.a3d.geometry:CodecA3D2IndexBuffer/encode" + }, + "VectorCodecA3D2VertexBufferLevel3": { + "_-cB:VectorCodecA3D2VertexBufferLevel3": null, + "_-cB:VectorCodecA3D2VertexBufferLevel3/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel3/VectorCodecA3D2VertexBufferLevel3", + "_-cB:VectorCodecA3D2VertexBufferLevel3/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel3/init", + "_-cB:VectorCodecA3D2VertexBufferLevel3/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel3/decode", + "_-cB:VectorCodecA3D2VertexBufferLevel3/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel3/encode", + "_-cB:VectorCodecA3D2VertexBufferLevel3/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel3/encode" + }, + "VectorCodecA3D2VertexAttributesLevel1": { + "_-cB:VectorCodecA3D2VertexAttributesLevel1": null, + "_-cB:VectorCodecA3D2VertexAttributesLevel1/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel1/VectorCodecA3D2VertexAttributesLevel1", + "_-cB:VectorCodecA3D2VertexAttributesLevel1/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel1/init", + "_-cB:VectorCodecA3D2VertexAttributesLevel1/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel1/decode", + "_-cB:VectorCodecA3D2VertexAttributesLevel1/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel1/encode", + "_-cB:VectorCodecA3D2VertexAttributesLevel1/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel1/encode" + }, + "VectorCodecA3D2VertexBufferLevel2": { + "_-cB:VectorCodecA3D2VertexBufferLevel2": null, + "_-cB:VectorCodecA3D2VertexBufferLevel2/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel2/VectorCodecA3D2VertexBufferLevel2", + "_-cB:VectorCodecA3D2VertexBufferLevel2/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel2/init", + "_-cB:VectorCodecA3D2VertexBufferLevel2/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel2/decode", + "_-cB:VectorCodecA3D2VertexBufferLevel2/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel2/encode", + "_-cB:VectorCodecA3D2VertexBufferLevel2/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel2/encode" + }, + "VectorCodecA3D2IndexBufferLevel3": { + "_-cB:VectorCodecA3D2IndexBufferLevel3": null, + "_-cB:VectorCodecA3D2IndexBufferLevel3/instance/init#0": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel3/VectorCodecA3D2IndexBufferLevel3", + "_-cB:VectorCodecA3D2IndexBufferLevel3/instance/init#1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel3/init", + "_-cB:VectorCodecA3D2IndexBufferLevel3/instance/_-2Q": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel3/decode", + "_-cB:VectorCodecA3D2IndexBufferLevel3/instance/_-QN": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel3/encode", + "_-cB:VectorCodecA3D2IndexBufferLevel3/class/init": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel3/encode" + } + }, + "_-ph": { + "_-Z9": { + "_-ph:_-Z9": null, + "_-ph:_-Z9/instance/init": "alternativa.physics.constraints:Constraint/Constraint", + "_-ph:_-Z9/instance/_-CR": "alternativa.physics.constraints:Constraint/preProcess", + "_-ph:_-Z9/instance/_-Ub": "alternativa.physics.constraints:Constraint/apply", + "_-ph:_-Z9/class/init": "alternativa.physics.constraints:Constraint/apply" + } + }, + "function": { + "_-Xx": { + "function:_-Xx": null, + "function:_-Xx/instance/init#0": "alternativa.tanks.game.effects:AnimatedSpriteEffect/AnimatedSpriteEffect", + "function:_-Xx/instance/init#1": "alternativa.tanks.game.effects:AnimatedSpriteEffect/init", + "function:_-Xx/instance/_-Vi": "alternativa.tanks.game.effects:AnimatedSpriteEffect/setPosition", + "function:_-Xx/instance/addedToRenderSystem": "alternativa.tanks.game.effects:AnimatedSpriteEffect/addedToRenderSystem", + "function:_-Xx/instance/play": "alternativa.tanks.game.effects:AnimatedSpriteEffect/play", + "function:_-Xx/instance/destroy": "alternativa.tanks.game.effects:AnimatedSpriteEffect/destroy", + "function:_-Xx/instance/_-Bz": "alternativa.tanks.game.effects:AnimatedSpriteEffect/kill", + "function:_-Xx/instance/function:_-Xx/_-Ag": "alternativa.tanks.game.effects:AnimatedSpriteEffect/private:initSprite", + "function:_-Xx/class/init": "alternativa.tanks.game.effects:AnimatedSpriteEffect/private:initSprite" + }, + "_-Gi": { + "function:_-Gi": null, + "function:_-Gi/instance/init": "alternativa.tanks.game.effects:Plane/Plane", + "function:_-Gi/class/init": "alternativa.tanks.game.effects:Plane/Plane" + }, + "_-OF": { + "function:_-OF": null, + "function:_-OF/instance/init": "alternativa.tanks.game.effects:IAreaOfEffectSFX/IAreaOfEffectSFX", + "function:_-OF/instance/_-5v:createEffects": "alternativa.tanks.game.effects:IAreaOfEffectSFX/alternativa.tanks.game.effects:IAreaOfEffectSFX:createEffects", + "function:_-OF/class/init": "alternativa.tanks.game.effects:IAreaOfEffectSFX/alternativa.tanks.game.effects:IAreaOfEffectSFX:createEffects" + }, + "_-KQ": { + "function:_-KQ": null, + "function:_-KQ/instance/init": "alternativa.tanks.game.effects:Fire/Fire", + "function:_-KQ/instance/function:_-KQ/keyFrame1": "alternativa.tanks.game.effects:Fire/private:keyFrame1", + "function:_-KQ/instance/function:_-KQ/_-IJ": "alternativa.tanks.game.effects:Fire/private:keyFrame", + "function:_-KQ/instance/function:_-KQ/_-ky": "alternativa.tanks.game.effects:Fire/private:randomDirection", + "function:_-KQ/instance/function:_-KQ/_-C8": "alternativa.tanks.game.effects:Fire/private:displacePosition", + "function:_-KQ/class/init": "alternativa.tanks.game.effects:Fire/private:displacePosition" + }, + "_-Lf": { + "function:_-Lf": null, + "function:_-Lf/instance/init#0": "alternativa.tanks.game.effects:Blinker/Blinker", + "function:_-Lf/instance/init#1": "alternativa.tanks.game.effects:Blinker/init", + "function:_-Lf/instance/_-QY": "alternativa.tanks.game.effects:Blinker/setMaxValue", + "function:_-Lf/instance/_-iO": "alternativa.tanks.game.effects:Blinker/setMinValue", + "function:_-Lf/instance/_-5N": "alternativa.tanks.game.effects:Blinker/updateValue", + "function:_-Lf/instance/function:_-Lf/instance/_-HB": "alternativa.tanks.game.effects:Blinker/private:getSpeed", + "function:_-Lf/class/init": "alternativa.tanks.game.effects:Blinker/private:getSpeed" + }, + "_-7Y": { + "function:_-7Y": null, + "function:_-7Y/instance/init#0": "alternativa.tanks.game.effects:MovingAnimatedSprite/MovingAnimatedSprite", + "function:_-7Y/instance/init#1": "alternativa.tanks.game.effects:MovingAnimatedSprite/init", + "function:_-7Y/instance/_-Vi": "alternativa.tanks.game.effects:MovingAnimatedSprite/setPosition", + "function:_-7Y/instance/addedToRenderSystem": "alternativa.tanks.game.effects:MovingAnimatedSprite/addedToRenderSystem", + "function:_-7Y/instance/play": "alternativa.tanks.game.effects:MovingAnimatedSprite/play", + "function:_-7Y/instance/destroy": "alternativa.tanks.game.effects:MovingAnimatedSprite/destroy", + "function:_-7Y/instance/_-Bz": "alternativa.tanks.game.effects:MovingAnimatedSprite/kill", + "function:_-7Y/instance/function:_-7Y/instance/_-Ag": "alternativa.tanks.game.effects:MovingAnimatedSprite/private:initSprite", + "function:_-7Y/class/init": "alternativa.tanks.game.effects:MovingAnimatedSprite/private:initSprite" + }, + "_-ok": { + "function:_-ok": null, + "function:_-ok/instance/init": "alternativa.tanks.game.effects:ColorTransformEntry/ColorTransformEntry", + "function:_-ok/class/init": "alternativa.tanks.game.effects:ColorTransformEntry/ColorTransformEntry" + }, + "_-Y1": { + "function:_-Y1": null, + "function:_-Y1/instance/init#0": "alternativa.tanks.game.effects:AnimatedPlaneEffect/AnimatedPlaneEffect", + "function:_-Y1/instance/init#1": "alternativa.tanks.game.effects:AnimatedPlaneEffect/init", + "function:_-Y1/instance/addedToRenderSystem": "alternativa.tanks.game.effects:AnimatedPlaneEffect/addedToRenderSystem", + "function:_-Y1/instance/play": "alternativa.tanks.game.effects:AnimatedPlaneEffect/play", + "function:_-Y1/instance/destroy": "alternativa.tanks.game.effects:AnimatedPlaneEffect/destroy", + "function:_-Y1/instance/function:_-Y1/instance/_-cm": "alternativa.tanks.game.effects:AnimatedPlaneEffect/private:initGeometry", + "function:_-Y1/class/init": "alternativa.tanks.game.effects:AnimatedPlaneEffect/private:initGeometry" + }, + "_-T": { + "function:_-T": null, + "function:_-T/instance/init": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent/SimpleWeaponShotSFXComponent", + "function:_-T/instance/initComponent": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent/initComponent", + "function:_-T/instance/addToGame": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent/addToGame", + "function:_-T/instance/removeFromGame": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent/removeFromGame", + "function:_-T/instance/_-km": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent/createShotEffects", + "function:_-T/class/init": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent/createShotEffects" + } + }, + "_-5Y": { + "A3D2Map": { + "_-5Y:A3D2Map": null, + "_-5Y:A3D2Map/instance/init": "versions.version2.a3d.materials:A3D2Map/A3D2Map", + "_-5Y:A3D2Map/instance/channel/getter": "versions.version2.a3d.materials:A3D2Map/channel/get", + "_-5Y:A3D2Map/instance/channel/setter": "versions.version2.a3d.materials:A3D2Map/channel/set", + "_-5Y:A3D2Map/instance/id/getter": "versions.version2.a3d.materials:A3D2Map/id/get", + "_-5Y:A3D2Map/instance/id/setter": "versions.version2.a3d.materials:A3D2Map/id/set", + "_-5Y:A3D2Map/instance/imageId/getter": "versions.version2.a3d.materials:A3D2Map/imageId/get", + "_-5Y:A3D2Map/instance/imageId/setter": "versions.version2.a3d.materials:A3D2Map/imageId/set", + "_-5Y:A3D2Map/instance/toString": "versions.version2.a3d.materials:A3D2Map/toString", + "_-5Y:A3D2Map/class/init": "versions.version2.a3d.materials:A3D2Map/toString" + }, + "A3D2Image": { + "_-5Y:A3D2Image": null, + "_-5Y:A3D2Image/instance/init": "versions.version2.a3d.materials:A3D2Image/A3D2Image", + "_-5Y:A3D2Image/instance/id/getter": "versions.version2.a3d.materials:A3D2Image/id/get", + "_-5Y:A3D2Image/instance/id/setter": "versions.version2.a3d.materials:A3D2Image/id/set", + "_-5Y:A3D2Image/instance/url/getter": "versions.version2.a3d.materials:A3D2Image/url/get", + "_-5Y:A3D2Image/instance/url/setter": "versions.version2.a3d.materials:A3D2Image/url/set", + "_-5Y:A3D2Image/instance/toString": "versions.version2.a3d.materials:A3D2Image/toString", + "_-5Y:A3D2Image/class/init": "versions.version2.a3d.materials:A3D2Image/toString" + }, + "A3D2Material": { + "_-5Y:A3D2Material": null, + "_-5Y:A3D2Material/instance/init": "versions.version2.a3d.materials:A3D2Material/A3D2Material", + "_-5Y:A3D2Material/instance/diffuseMapId/getter": "versions.version2.a3d.materials:A3D2Material/diffuseMapId/get", + "_-5Y:A3D2Material/instance/diffuseMapId/setter": "versions.version2.a3d.materials:A3D2Material/diffuseMapId/set", + "_-5Y:A3D2Material/instance/glossinessMapId/getter": "versions.version2.a3d.materials:A3D2Material/glossinessMapId/get", + "_-5Y:A3D2Material/instance/glossinessMapId/setter": "versions.version2.a3d.materials:A3D2Material/glossinessMapId/set", + "_-5Y:A3D2Material/instance/id/getter": "versions.version2.a3d.materials:A3D2Material/id/get", + "_-5Y:A3D2Material/instance/id/setter": "versions.version2.a3d.materials:A3D2Material/id/set", + "_-5Y:A3D2Material/instance/lightMapId/getter": "versions.version2.a3d.materials:A3D2Material/lightMapId/get", + "_-5Y:A3D2Material/instance/lightMapId/setter": "versions.version2.a3d.materials:A3D2Material/lightMapId/set", + "_-5Y:A3D2Material/instance/normalMapId/getter": "versions.version2.a3d.materials:A3D2Material/normalMapId/get", + "_-5Y:A3D2Material/instance/normalMapId/setter": "versions.version2.a3d.materials:A3D2Material/normalMapId/set", + "_-5Y:A3D2Material/instance/opacityMapId/getter": "versions.version2.a3d.materials:A3D2Material/opacityMapId/get", + "_-5Y:A3D2Material/instance/opacityMapId/setter": "versions.version2.a3d.materials:A3D2Material/opacityMapId/set", + "_-5Y:A3D2Material/instance/reflectionCubeMapId/getter": "versions.version2.a3d.materials:A3D2Material/reflectionCubeMapId/get", + "_-5Y:A3D2Material/instance/reflectionCubeMapId/setter": "versions.version2.a3d.materials:A3D2Material/reflectionCubeMapId/set", + "_-5Y:A3D2Material/instance/specularMapId/getter": "versions.version2.a3d.materials:A3D2Material/specularMapId/get", + "_-5Y:A3D2Material/instance/specularMapId/setter": "versions.version2.a3d.materials:A3D2Material/specularMapId/set", + "_-5Y:A3D2Material/instance/toString": "versions.version2.a3d.materials:A3D2Material/toString", + "_-5Y:A3D2Material/class/init": "versions.version2.a3d.materials:A3D2Material/toString" + }, + "A3D2CubeMap": { + "_-5Y:A3D2CubeMap": null, + "_-5Y:A3D2CubeMap/instance/init": "versions.version2.a3d.materials:A3D2CubeMap/A3D2CubeMap", + "_-5Y:A3D2CubeMap/instance/backId/getter": "versions.version2.a3d.materials:A3D2CubeMap/backId/get", + "_-5Y:A3D2CubeMap/instance/backId/setter": "versions.version2.a3d.materials:A3D2CubeMap/backId/set", + "_-5Y:A3D2CubeMap/instance/bottomId/getter": "versions.version2.a3d.materials:A3D2CubeMap/bottomId/get", + "_-5Y:A3D2CubeMap/instance/bottomId/setter": "versions.version2.a3d.materials:A3D2CubeMap/bottomId/set", + "_-5Y:A3D2CubeMap/instance/frontId/getter": "versions.version2.a3d.materials:A3D2CubeMap/frontId/get", + "_-5Y:A3D2CubeMap/instance/frontId/setter": "versions.version2.a3d.materials:A3D2CubeMap/frontId/set", + "_-5Y:A3D2CubeMap/instance/id/getter": "versions.version2.a3d.materials:A3D2CubeMap/id/get", + "_-5Y:A3D2CubeMap/instance/id/setter": "versions.version2.a3d.materials:A3D2CubeMap/id/set", + "_-5Y:A3D2CubeMap/instance/leftId/getter": "versions.version2.a3d.materials:A3D2CubeMap/leftId/get", + "_-5Y:A3D2CubeMap/instance/leftId/setter": "versions.version2.a3d.materials:A3D2CubeMap/leftId/set", + "_-5Y:A3D2CubeMap/instance/rightId/getter": "versions.version2.a3d.materials:A3D2CubeMap/rightId/get", + "_-5Y:A3D2CubeMap/instance/rightId/setter": "versions.version2.a3d.materials:A3D2CubeMap/rightId/set", + "_-5Y:A3D2CubeMap/instance/topId/getter": "versions.version2.a3d.materials:A3D2CubeMap/topId/get", + "_-5Y:A3D2CubeMap/instance/topId/setter": "versions.version2.a3d.materials:A3D2CubeMap/topId/set", + "_-5Y:A3D2CubeMap/instance/toString": "versions.version2.a3d.materials:A3D2CubeMap/toString", + "_-5Y:A3D2CubeMap/class/init": "versions.version2.a3d.materials:A3D2CubeMap/toString" + } + }, + "_-bJ": { + "_-Pg": { + "_-bJ:_-Pg": null, + "_-bJ:_-Pg/instance/init": "alternativa.tanks.game.physics.collision.uniformgrid:BodyCollisionGridData/BodyCollisionGridData", + "_-bJ:_-Pg/instance/destroy": "alternativa.tanks.game.physics.collision.uniformgrid:BodyCollisionGridData/destroy", + "_-bJ:_-Pg/class/init": "alternativa.tanks.game.physics.collision.uniformgrid:BodyCollisionGridData/destroy", + "_-bJ:_-Pg/class/create": "alternativa.tanks.game.physics.collision.uniformgrid:BodyCollisionGridData/create" + }, + "_-eG": { + "_-bJ:_-eG": null, + "_-bJ:_-eG/instance/init": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/UniformGridCollisionDetector", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-c2": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:addCollider", + "_-bJ:_-eG/instance/_-pN": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/addBodyCollisionData", + "_-bJ:_-eG/instance/_-qP": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/removeBodyCollisionData", + "_-bJ:_-eG/instance/_-9F": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/prepareForRaycasts", + "_-bJ:_-eG/instance/_-OA": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getCellSize", + "_-bJ:_-eG/instance/_-8t": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getGridBoundBox", + "_-bJ:_-eG/instance/_-9i": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getNumCellsX", + "_-bJ:_-eG/instance/_-PM": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getNumCellsY", + "_-bJ:_-eG/instance/_-5F": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getNumCellsZ", + "_-bJ:_-eG/instance/_-Bo": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getMaxCellPrimitiveCount", + "_-bJ:_-eG/instance/_-D6": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getNumlPrimitivesInCell", + "_-bJ:_-eG/instance/_-hS": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/createGrid", + "_-bJ:_-eG/instance/_-7u": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getObjectsInRadius", + "_-bJ:_-eG/instance/_-63": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getAllContacts", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-EF": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:initRaycastCellVisitor", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-SQ": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:setupGridParameters", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-hH": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:prepareDenseArray", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-VK": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:calculateNumPrimitivesForEachCell", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-aE": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:getDynamicContacts", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-AZ": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:getDynamicBodyCellContacts", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-1p": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:getBodiesCollision", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-KE": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:clearPairBits", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-RK": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:getBodyStaticContacts", + "_-bJ:_-eG/instance/raycast": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/raycast", + "_-bJ:_-eG/instance/_-cX": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/raycastStatic", + "_-bJ:_-eG/instance/getContact": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/getContact", + "_-bJ:_-eG/instance/_-A5": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/testCollision", + "_-bJ:_-eG/instance/_-e0": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/doRaycast", + "_-bJ:_-eG/instance/_-bJ:_-eG/clamp": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:clamp", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-Oi": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:clearDynamicBodyCells", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-nT": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:fillDynamicBodyCells", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-OL": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:findBodyEntry", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-8J": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:initPairBitArray", + "_-bJ:_-eG/instance/_-bJ:_-eG/_-kL": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:initColliders", + "_-bJ:_-eG/class/init": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector/private:initColliders" + }, + "_-hm": { + "_-bJ:_-hm": null, + "_-bJ:_-hm/instance/init": "alternativa.tanks.game.physics.collision.uniformgrid:IRaycastCellVisitor/IRaycastCellVisitor", + "_-bJ:_-hm/instance/_-Te:visitCell": "alternativa.tanks.game.physics.collision.uniformgrid:IRaycastCellVisitor/alternativa.tanks.game.physics.collision.uniformgrid:IRaycastCellVisitor:visitCell", + "_-bJ:_-hm/class/init": "alternativa.tanks.game.physics.collision.uniformgrid:IRaycastCellVisitor/alternativa.tanks.game.physics.collision.uniformgrid:IRaycastCellVisitor:visitCell" + } + }, + "_-IG": { + "_-h4": { + "_-IG:_-h4": null, + "_-IG:_-h4/instance/init": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffectsFactory/PlasmaRoundEffectsFactory", + "_-IG:_-h4/instance/_-17": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffectsFactory/createEnergyRoundEffect", + "_-IG:_-h4/instance/_-jY": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffectsFactory/createExplosionEffects", + "_-IG:_-h4/instance/_-lu": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffectsFactory/createRicochetEffects", + "_-IG:_-h4/class/init": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffectsFactory/createRicochetEffects" + }, + "_-i": { + "_-IG:_-i": null, + "_-IG:_-i/instance/init": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffect/PlasmaRoundEffect", + "_-IG:_-i/class/init": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffect/PlasmaRoundEffect" + } + }, + "_-Vh": { + "_-YD": { + "_-Vh:_-YD": null, + "_-Vh:_-YD/instance/init": "alternativa.engine3d.materials:FillMaterial/FillMaterial", + "_-Vh:_-YD/instance/color/getter": "alternativa.engine3d.materials:FillMaterial/color/get", + "_-Vh:_-YD/instance/color/setter": "alternativa.engine3d.materials:FillMaterial/color/set", + "_-Vh:_-YD/instance/_-Vh:_-YD/final": "alternativa.engine3d.materials:FillMaterial/private:setupProgram", + "_-Vh:_-YD/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.materials:FillMaterial/alternativa3d:collectDraws", + "_-Vh:_-YD/instance/clone": "alternativa.engine3d.materials:FillMaterial/clone", + "_-Vh:_-YD/class/init": "alternativa.engine3d.materials:FillMaterial/clone" + }, + "_-RB": { + "_-Vh:_-RB": null, + "_-Vh:_-RB/instance/init": "alternativa.engine3d.materials:ShaderProgram/ShaderProgram", + "_-Vh:_-RB/instance/upload": "alternativa.engine3d.materials:ShaderProgram/upload", + "_-Vh:_-RB/instance/dispose": "alternativa.engine3d.materials:ShaderProgram/dispose", + "_-Vh:_-RB/class/init": "alternativa.engine3d.materials:ShaderProgram/dispose" + }, + "_-18": { + "_-Vh:_-18": null, + "_-Vh:_-18/instance/init": "alternativa.engine3d.materials:EnviromentMaterial/EnviromentMaterial", + "_-Vh:_-18/instance/_-Q8/getter": "alternativa.engine3d.materials:EnviromentMaterial/normalMapSpace/get", + "_-Vh:_-18/instance/_-Q8/setter": "alternativa.engine3d.materials:EnviromentMaterial/normalMapSpace/set", + "_-Vh:_-18/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.materials:EnviromentMaterial/alternativa3d:fillResources", + "_-Vh:_-18/instance/_-Vh:_-18/final": "alternativa.engine3d.materials:EnviromentMaterial/private:setupProgram", + "_-Vh:_-18/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.materials:EnviromentMaterial/alternativa3d:collectDraws", + "_-Vh:_-18/class/init": "alternativa.engine3d.materials:EnviromentMaterial/alternativa3d:collectDraws", + "_-Vh:_-18/class/_-Vh:_-18/_-eg": "alternativa.engine3d.materials:EnviromentMaterial/private:getPassTBNProcedure" + }, + "_-Pt": { + "_-Vh:_-Pt": null, + "_-Vh:_-Pt/instance/init": "alternativa.engine3d.materials:A3DUtils/A3DUtils", + "_-Vh:_-Pt/class/init": "alternativa.engine3d.materials:A3DUtils/A3DUtils", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-Ii": "alternativa.engine3d.materials:A3DUtils/private:getDXT1", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-7X": "alternativa.engine3d.materials:A3DUtils/private:getETC1", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-HY": "alternativa.engine3d.materials:A3DUtils/private:getPVRTC", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-6i": "alternativa.engine3d.materials:A3DUtils/private:getData", + "_-Vh:_-Pt/class/_-G9": "alternativa.engine3d.materials:A3DUtils/getSizeFromATF", + "_-Vh:_-Pt/class/_-OP": "alternativa.engine3d.materials:A3DUtils/getSupportedTextureFormat", + "_-Vh:_-Pt/class/_-LM": "alternativa.engine3d.materials:A3DUtils/vectorNumberToByteArray", + "_-Vh:_-Pt/class/_-a1": "alternativa.engine3d.materials:A3DUtils/byteArrayToVectorUint", + "_-Vh:_-Pt/class/_-OU": "alternativa.engine3d.materials:A3DUtils/createVertexBufferFromByteArray", + "_-Vh:_-Pt/class/_-g5": "alternativa.engine3d.materials:A3DUtils/createVertexBufferFromVector", + "_-Vh:_-Pt/class/_-Kx": "alternativa.engine3d.materials:A3DUtils/createTextureFromByteArray", + "_-Vh:_-Pt/class/_-CQ": "alternativa.engine3d.materials:A3DUtils/createIndexBufferFromByteArray", + "_-Vh:_-Pt/class/_-Sj": "alternativa.engine3d.materials:A3DUtils/createIndexBufferFromVector", + "_-Vh:_-Pt/class/_-jc": "alternativa.engine3d.materials:A3DUtils/disassemble", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-KV": "alternativa.engine3d.materials:A3DUtils/private:getCommand", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-Gx": "alternativa.engine3d.materials:A3DUtils/private:attachProgramPrefix", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-C5": "alternativa.engine3d.materials:A3DUtils/private:getSamplerVariable", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-Xz": "alternativa.engine3d.materials:A3DUtils/private:getSourceVariable", + "_-Vh:_-Pt/class/_-Vh:_-Pt/class/_-Fg": "alternativa.engine3d.materials:A3DUtils/private:getSourceSwizzle", + "_-Vh:_-Pt/class/http://alternativaplatform.com/en/alternativa3d:_-EU": "alternativa.engine3d.materials:A3DUtils/alternativa3d:checkParent" + }, + "_-pZ": { + "_-Vh:_-pZ": null, + "_-Vh:_-pZ/instance/init": "alternativa.engine3d.materials:TextureMaterial/TextureMaterial", + "_-Vh:_-pZ/instance/http://alternativaplatform.com/en/alternativa3d:canDrawInShadowMap/getter": "alternativa.engine3d.materials:TextureMaterial/alternativa3d:canDrawInShadowMap/get", + "_-Vh:_-pZ/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.materials:TextureMaterial/alternativa3d:fillResources", + "_-Vh:_-pZ/instance/_-Vh:_-pZ/final": "alternativa.engine3d.materials:TextureMaterial/private:setupProgram", + "_-Vh:_-pZ/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.materials:TextureMaterial/alternativa3d:collectDraws", + "_-Vh:_-pZ/instance/clone": "alternativa.engine3d.materials:TextureMaterial/clone", + "_-Vh:_-pZ/instance/_-3n:clonePropertiesFrom": "alternativa.engine3d.materials:TextureMaterial/protected:clonePropertiesFrom", + "_-Vh:_-pZ/class/init": "alternativa.engine3d.materials:TextureMaterial/protected:clonePropertiesFrom" + }, + "_-dn": { + "_-Vh:_-dn": null, + "_-Vh:_-dn/instance/init": "alternativa.engine3d.materials:FogMode/FogMode", + "_-Vh:_-dn/class/init": "alternativa.engine3d.materials:FogMode/FogMode" + }, + "_-LS": { + "_-Vh:_-LS": null, + "_-Vh:_-LS/instance/init": "alternativa.engine3d.materials:StandardMaterial/StandardMaterial", + "_-Vh:_-LS/instance/_-Q8/getter": "alternativa.engine3d.materials:StandardMaterial/normalMapSpace/get", + "_-Vh:_-LS/instance/_-Q8/setter": "alternativa.engine3d.materials:StandardMaterial/normalMapSpace/set", + "_-Vh:_-LS/instance/http://alternativaplatform.com/en/alternativa3d:getPassUVProcedure": "alternativa.engine3d.materials:StandardMaterial/alternativa3d:getPassUVProcedure", + "_-Vh:_-LS/instance/http://alternativaplatform.com/en/alternativa3d:setPassUVProcedureConstants": "alternativa.engine3d.materials:StandardMaterial/alternativa3d:setPassUVProcedureConstants", + "_-Vh:_-LS/instance/_-Vh:_-LS/final": "alternativa.engine3d.materials:StandardMaterial/private:setupProgram", + "_-Vh:_-LS/instance/_-Vh:_-LS/_-SC": "alternativa.engine3d.materials:StandardMaterial/private:formDirectionalProcedure", + "_-Vh:_-LS/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.materials:StandardMaterial/alternativa3d:fillResources", + "_-Vh:_-LS/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.materials:StandardMaterial/alternativa3d:collectDraws", + "_-Vh:_-LS/class/init": "alternativa.engine3d.materials:StandardMaterial/alternativa3d:collectDraws", + "_-Vh:_-LS/class/_-Vh:_-LS/_-eg": "alternativa.engine3d.materials:StandardMaterial/private:getPassTBNProcedure" + }, + "_-12": { + "_-Vh:_-12": null, + "_-Vh:_-12/instance/init": "alternativa.engine3d.materials:NormalMapSpace/NormalMapSpace", + "_-Vh:_-12/class/init": "alternativa.engine3d.materials:NormalMapSpace/NormalMapSpace" + }, + "_-b9": { + "_-Vh:_-b9": null, + "_-Vh:_-b9/instance/init": "alternativa.engine3d.materials:Material/Material", + "_-Vh:_-b9/instance/http://alternativaplatform.com/en/alternativa3d:canDrawInShadowMap/getter": "alternativa.engine3d.materials:Material/alternativa3d:canDrawInShadowMap/get", + "_-Vh:_-b9/instance/http://alternativaplatform.com/en/alternativa3d:_-di": "alternativa.engine3d.materials:Material/alternativa3d:appendPositionTransformProcedure", + "_-Vh:_-b9/instance/getResources": "alternativa.engine3d.materials:Material/getResources", + "_-Vh:_-b9/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.materials:Material/alternativa3d:fillResources", + "_-Vh:_-b9/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.materials:Material/alternativa3d:collectDraws", + "_-Vh:_-b9/instance/clone": "alternativa.engine3d.materials:Material/clone", + "_-Vh:_-b9/instance/_-2f:clonePropertiesFrom": "alternativa.engine3d.materials:Material/protected:clonePropertiesFrom", + "_-Vh:_-b9/class/init": "alternativa.engine3d.materials:Material/protected:clonePropertiesFrom", + "_-Vh:_-b9/class/_-Vh:_-b9/_-Ek": "alternativa.engine3d.materials:Material/private:getPojectProcedure" + }, + "_-Wn": { + "_-Vh:_-Wn": null, + "_-Vh:_-Wn/instance/init": "alternativa.engine3d.materials:TextureFormat/TextureFormat", + "_-Vh:_-Wn/class/init": "alternativa.engine3d.materials:TextureFormat/TextureFormat" + } + }, + "_-nO": { + "_-Yk": { + "_-nO:_-Yk": null, + "_-nO:_-Yk/instance/init": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem/LogicSystem", + "_-nO:_-Yk/instance/addLogicUnit": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem/addLogicUnit", + "_-nO:_-Yk/instance/removeLogicUnit": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem/removeLogicUnit", + "_-nO:_-Yk/instance/run": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem/run", + "_-nO:_-Yk/instance/_-nO:_-Yk/instance/_-5W": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem/private:addDeferredAction", + "_-nO:_-Yk/class/init": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem/private:addDeferredAction" + }, + "_-5B": { + "_-nO:_-5B": null, + "_-nO:_-5B/instance/init": "alternativa.tanks.game.subsystems.logicsystem:ILogic/ILogic", + "_-nO:_-5B/instance/_-lL:addLogicUnit": "alternativa.tanks.game.subsystems.logicsystem:ILogic/alternativa.tanks.game.subsystems.logicsystem:ILogic:addLogicUnit", + "_-nO:_-5B/instance/_-lL:removeLogicUnit": "alternativa.tanks.game.subsystems.logicsystem:ILogic/alternativa.tanks.game.subsystems.logicsystem:ILogic:removeLogicUnit", + "_-nO:_-5B/class/init": "alternativa.tanks.game.subsystems.logicsystem:ILogic/alternativa.tanks.game.subsystems.logicsystem:ILogic:removeLogicUnit" + }, + "_-KI": { + "_-nO:_-KI": null, + "_-nO:_-KI/instance/init": "alternativa.tanks.game.subsystems.logicsystem:ILogicUnit/ILogicUnit", + "_-nO:_-KI/instance/_-7b:runLogic": "alternativa.tanks.game.subsystems.logicsystem:ILogicUnit/alternativa.tanks.game.subsystems.logicsystem:ILogicUnit:runLogic", + "_-nO:_-KI/class/init": "alternativa.tanks.game.subsystems.logicsystem:ILogicUnit/alternativa.tanks.game.subsystems.logicsystem:ILogicUnit:runLogic" + } + }, + "_-j-": { + "_-B7": { + "_-j-:_-B7": null, + "_-j-:_-B7/instance/init": "alternativa.tanks.game.subsystems.eventsystem:IEventSystem/IEventSystem", + "_-j-:_-B7/instance/_-X6:addEventListener": "alternativa.tanks.game.subsystems.eventsystem:IEventSystem/alternativa.tanks.game.subsystems.eventsystem:IEventSystem:addEventListener", + "_-j-:_-B7/instance/_-X6:removeEventListener": "alternativa.tanks.game.subsystems.eventsystem:IEventSystem/alternativa.tanks.game.subsystems.eventsystem:IEventSystem:removeEventListener", + "_-j-:_-B7/instance/_-X6:dispatchEvent": "alternativa.tanks.game.subsystems.eventsystem:IEventSystem/alternativa.tanks.game.subsystems.eventsystem:IEventSystem:dispatchEvent", + "_-j-:_-B7/class/init": "alternativa.tanks.game.subsystems.eventsystem:IEventSystem/alternativa.tanks.game.subsystems.eventsystem:IEventSystem:dispatchEvent" + }, + "_-Wd": { + "_-j-:_-Wd": null, + "_-j-:_-Wd/instance/init": "alternativa.tanks.game.subsystems.eventsystem:EventSystem/EventSystem", + "_-j-:_-Wd/instance/addEventListener": "alternativa.tanks.game.subsystems.eventsystem:EventSystem/addEventListener", + "_-j-:_-Wd/instance/removeEventListener": "alternativa.tanks.game.subsystems.eventsystem:EventSystem/removeEventListener", + "_-j-:_-Wd/instance/dispatchEvent": "alternativa.tanks.game.subsystems.eventsystem:EventSystem/dispatchEvent", + "_-j-:_-Wd/instance/run": "alternativa.tanks.game.subsystems.eventsystem:EventSystem/run", + "_-j-:_-Wd/class/init": "alternativa.tanks.game.subsystems.eventsystem:EventSystem/run" + }, + "_-Fr": { + "_-j-:_-Fr": null, + "_-j-:_-Fr/instance/init": "alternativa.tanks.game.subsystems.eventsystem:IGameEventListener/IGameEventListener", + "_-j-:_-Fr/instance/_-Sn:_-86": "alternativa.tanks.game.subsystems.eventsystem:IGameEventListener/alternativa.tanks.game.subsystems.eventsystem:IGameEventListener:onGameEvent", + "_-j-:_-Fr/class/init": "alternativa.tanks.game.subsystems.eventsystem:IGameEventListener/alternativa.tanks.game.subsystems.eventsystem:IGameEventListener:onGameEvent" + }, + "_-BL": { + "_-j-:_-BL": null, + "_-j-:_-BL/instance/init": "alternativa.tanks.game.subsystems.eventsystem:GameEvent/GameEvent", + "_-j-:_-BL/instance/destroy": "alternativa.tanks.game.subsystems.eventsystem:GameEvent/destroy", + "_-j-:_-BL/class/init": "alternativa.tanks.game.subsystems.eventsystem:GameEvent/destroy", + "_-j-:_-BL/class/create": "alternativa.tanks.game.subsystems.eventsystem:GameEvent/create" + } + }, + "_-78": { + "_-M2": { + "_-78:_-M2": null, + "_-78:_-M2/instance/init": "alternativa.tanks.game.entities:EventStates/EventStates", + "_-78:_-M2/instance/_-W": "alternativa.tanks.game.entities:EventStates/setEventState", + "_-78:_-M2/instance/ set": "alternativa.tanks.game.entities:EventStates/onEvent", + "_-78:_-M2/class/init": "alternativa.tanks.game.entities:EventStates/onEvent" + }, + "_-YX": { + "_-78:_-YX": null, + "_-78:_-YX/instance/init": "alternativa.tanks.game.entities:IComponentState/IComponentState", + "_-78:_-YX/instance/_-57:start": "alternativa.tanks.game.entities:IComponentState/alternativa.tanks.game.entities:IComponentState:start", + "_-78:_-YX/instance/_-57:stop": "alternativa.tanks.game.entities:IComponentState/alternativa.tanks.game.entities:IComponentState:stop", + "_-78:_-YX/class/init": "alternativa.tanks.game.entities:IComponentState/alternativa.tanks.game.entities:IComponentState:stop" + }, + "_-GH": { + "_-78:_-GH": null, + "_-78:_-GH/instance/init": "alternativa.tanks.game.entities:EmptyState/EmptyState", + "_-78:_-GH/instance/start": "alternativa.tanks.game.entities:EmptyState/start", + "_-78:_-GH/instance/stop": "alternativa.tanks.game.entities:EmptyState/stop", + "_-78:_-GH/class/init": "alternativa.tanks.game.entities:EmptyState/stop" + } + }, + "_-9-": { + "_-Yo": { + "_-9-:_-Yo": null, + "_-9-:_-Yo/instance/init": "alternativa.tanks.display:DebugPanel/DebugPanel", + "_-9-:_-Yo/instance/_-Ye": "alternativa.tanks.display:DebugPanel/printValue", + "_-9-:_-Yo/instance/_-5A": "alternativa.tanks.display:DebugPanel/printText", + "_-9-:_-Yo/instance/_-9-:_-Yo/instance/_-NJ": "alternativa.tanks.display:DebugPanel/private:createTextField", + "_-9-:_-Yo/class/init": "alternativa.tanks.display:DebugPanel/private:createTextField" + } + }, + "_-L0": { + "_-WS": { + "_-L0:_-WS": null, + "_-L0:_-WS/instance/init": "alternativa.tanks.game.utils.list.errors:NoSuchElementError/NoSuchElementError", + "_-L0:_-WS/class/init": "alternativa.tanks.game.utils.list.errors:NoSuchElementError/NoSuchElementError" + }, + "import": { + "_-L0:import": null, + "_-L0:import/instance/init": "alternativa.tanks.game.utils.list.errors:ConcurrentModificationError/ConcurrentModificationError", + "_-L0:import/class/init": "alternativa.tanks.game.utils.list.errors:ConcurrentModificationError/ConcurrentModificationError" + } + }, + "%20var": { + "_-QZ": { + " var:_-QZ": null, + " var:_-QZ/instance/init": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/TankTurretParser", + " var:_-QZ/instance/_-f6:createTankPart": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/protected:createTankPart", + " var:_-QZ/instance/_-f6:getParsingFunctions": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/protected:getParsingFunctions", + " var:_-QZ/instance/ var:_-QZ/instance/_-f6:getParsingFunctions/_-hi": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/private:parseSkin", + " var:_-QZ/instance/ var:_-QZ/instance/_-f6:getParsingFunctions/_-Kt": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/private:parseFlagMountPoint", + " var:_-QZ/instance/ var:_-QZ/instance/_-f6:getParsingFunctions/_-qm": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/private:parseTurretBox", + " var:_-QZ/instance/ var:_-QZ/instance/_-f6:getParsingFunctions/_-ey": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/private:parseMuzzle", + " var:_-QZ/class/init": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser/private:parseMuzzle" + }, + "_-Uk": { + " var:_-Uk": null, + " var:_-Uk/instance/init": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/TankPartParser", + " var:_-Uk/instance/_-Om": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/parse", + " var:_-Uk/instance/ var:_-Uk/instance/_-F-": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/private:traceSkins", + " var:_-Uk/instance/ case:createTankPart": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/protected:createTankPart", + " var:_-Uk/instance/ case:beginParsing": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/protected:beginParsing", + " var:_-Uk/instance/ case:endParsing": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/protected:endParsing", + " var:_-Uk/instance/ case:getParsingFunctions": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/protected:getParsingFunctions", + " var:_-Uk/instance/ case:doParse": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/protected:doParse", + " var:_-Uk/class/init": "alternativa.tanks.game.entities.tank.parsers:TankPartParser/protected:doParse" + }, + "_-kH": { + " var:_-kH": null, + " var:_-kH/instance/init": "alternativa.tanks.game.entities.tank.parsers:TankPartParsingUtils/TankPartParsingUtils", + " var:_-kH/class/init": "alternativa.tanks.game.entities.tank.parsers:TankPartParsingUtils/TankPartParsingUtils", + " var:_-kH/class/_-fF": "alternativa.tanks.game.entities.tank.parsers:TankPartParsingUtils/parseCollisionBoxData" + }, + "_-gx": { + " var:_-gx": null, + " var:_-gx/instance/init": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/TankHullParser", + " var:_-gx/instance/_-Zj:doParse": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/protected:doParse", + " var:_-gx/instance/ var:_-gx/instance/_-TB": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseTextureData", + " var:_-gx/instance/_-Zj:createTankPart": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/protected:createTankPart", + " var:_-gx/instance/_-Zj:getParsingFunctions": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/protected:getParsingFunctions", + " var:_-gx/instance/_-Zj:beginParsing": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/protected:beginParsing", + " var:_-gx/instance/_-Zj:endParsing": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/protected:endParsing", + " var:_-gx/instance/ var:_-gx/instance/_-hi": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseSkin", + " var:_-gx/instance/ var:_-gx/instance/_-9T": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseMountPoint", + " var:_-gx/instance/ var:_-gx/instance/_-7W": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseBody", + " var:_-gx/instance/ var:_-gx/instance/_-0I": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseDetailedGeometry", + " var:_-gx/instance/ var:_-gx/instance/_-Mv": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseSimpleGeometry", + " var:_-gx/instance/ var:_-gx/instance/_-8h": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseSuspensionRay", + " var:_-gx/instance/ var:_-gx/instance/_-Ml": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseWheels", + " var:_-gx/instance/ var:_-gx/instance/_-d3": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseShadow", + " var:_-gx/instance/ var:_-gx/instance/_-qY": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:parseTrack", + " var:_-gx/instance/ var:_-gx/instance/_-X1": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:prepareAll", + " var:_-gx/instance/ var:_-gx/instance/_-Nf": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:prepareCollisionGeometry", + " var:_-gx/instance/ var:_-gx/instance/_-T9": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:prepareSuspensionPoints", + " var:_-gx/class/init": "alternativa.tanks.game.entities.tank.parsers:TankHullParser/private:prepareSuspensionPoints" + } + }, + "_-IQ": { + "_-0p": { + "_-IQ:_-0p": null, + "_-IQ:_-0p/instance/init": "alternativa.tanks.lightsmanager:LightsRegistry/LightsRegistry", + "_-IQ:_-0p/instance/_-lZ": "alternativa.tanks.lightsmanager:LightsRegistry/handleCommand", + "_-IQ:_-0p/instance/_-IQ:_-0p/instance/clear": "alternativa.tanks.lightsmanager:LightsRegistry/private:clear", + "_-IQ:_-0p/instance/_-IQ:_-0p/instance/list": "alternativa.tanks.lightsmanager:LightsRegistry/private:list", + "_-IQ:_-0p/instance/_-Eb:getLigts": "alternativa.tanks.lightsmanager:LightsRegistry/protected:getLigts", + "_-IQ:_-0p/instance/_-Eb:lightToString": "alternativa.tanks.lightsmanager:LightsRegistry/protected:lightToString", + "_-IQ:_-0p/instance/_-Eb:modify": "alternativa.tanks.lightsmanager:LightsRegistry/protected:modify", + "_-IQ:_-0p/instance/_-Eb:create": "alternativa.tanks.lightsmanager:LightsRegistry/protected:create", + "_-IQ:_-0p/instance/_-Eb:del": "alternativa.tanks.lightsmanager:LightsRegistry/protected:del", + "_-IQ:_-0p/instance/_-Eb:_-AB": "alternativa.tanks.lightsmanager:LightsRegistry/protected:parseNumber", + "_-IQ:_-0p/class/init": "alternativa.tanks.lightsmanager:LightsRegistry/protected:parseNumber" + }, + "_-0o": { + "_-IQ:_-0o": null, + "_-IQ:_-0o/instance/init": "alternativa.tanks.lightsmanager:AmbientLightRegistry/AmbientLightRegistry", + "_-IQ:_-0o/instance/_-QT:lightToString": "alternativa.tanks.lightsmanager:AmbientLightRegistry/protected:lightToString", + "_-IQ:_-0o/instance/_-QT:create": "alternativa.tanks.lightsmanager:AmbientLightRegistry/protected:create", + "_-IQ:_-0o/instance/_-QT:modify": "alternativa.tanks.lightsmanager:AmbientLightRegistry/protected:modify", + "_-IQ:_-0o/instance/_-QT:getLigts": "alternativa.tanks.lightsmanager:AmbientLightRegistry/protected:getLigts", + "_-IQ:_-0o/instance/_-QT:del": "alternativa.tanks.lightsmanager:AmbientLightRegistry/protected:del", + "_-IQ:_-0o/class/init": "alternativa.tanks.lightsmanager:AmbientLightRegistry/protected:del" + }, + "_-Pa": { + "_-IQ:_-Pa": null, + "_-IQ:_-Pa/instance/init": "alternativa.tanks.lightsmanager:LightsManager/LightsManager", + "_-IQ:_-Pa/instance/_-IQ:_-Pa/_-1T": "alternativa.tanks.lightsmanager:LightsManager/private:lightCommandHandler", + "_-IQ:_-Pa/class/init": "alternativa.tanks.lightsmanager:LightsManager/private:lightCommandHandler" + }, + "_-1b": { + "_-IQ:_-1b": null, + "_-IQ:_-1b/instance/init": "alternativa.tanks.lightsmanager:SpotLightRegistry/SpotLightRegistry", + "_-IQ:_-1b/instance/_-gm:lightToString": "alternativa.tanks.lightsmanager:SpotLightRegistry/protected:lightToString", + "_-IQ:_-1b/instance/_-gm:modify": "alternativa.tanks.lightsmanager:SpotLightRegistry/protected:modify", + "_-IQ:_-1b/instance/_-gm:create": "alternativa.tanks.lightsmanager:SpotLightRegistry/protected:create", + "_-IQ:_-1b/instance/_-gm:getLigts": "alternativa.tanks.lightsmanager:SpotLightRegistry/protected:getLigts", + "_-IQ:_-1b/instance/_-gm:del": "alternativa.tanks.lightsmanager:SpotLightRegistry/protected:del", + "_-IQ:_-1b/instance/_-IQ:_-1b/instance/_-gm/_-C0": "alternativa.tanks.lightsmanager:SpotLightRegistry/private:getLight", + "_-IQ:_-1b/class/init": "alternativa.tanks.lightsmanager:SpotLightRegistry/private:getLight" + }, + "_-8u": { + "_-IQ:_-8u": null, + "_-IQ:_-8u/instance/init": "alternativa.tanks.lightsmanager:DirectionalLightRegistry/DirectionalLightRegistry", + "_-IQ:_-8u/instance/_-jl:getLigts": "alternativa.tanks.lightsmanager:DirectionalLightRegistry/protected:getLigts", + "_-IQ:_-8u/instance/_-jl:del": "alternativa.tanks.lightsmanager:DirectionalLightRegistry/protected:del", + "_-IQ:_-8u/instance/_-IQ:_-8u/instance/_-jl/_-C0": "alternativa.tanks.lightsmanager:DirectionalLightRegistry/private:getLight", + "_-IQ:_-8u/class/init": "alternativa.tanks.lightsmanager:DirectionalLightRegistry/private:getLight" + }, + "_-QL": { + "_-IQ:_-QL": null, + "_-IQ:_-QL/instance/init": "alternativa.tanks.lightsmanager:OmniLightRegistry/OmniLightRegistry", + "_-IQ:_-QL/instance/_-Pm:lightToString": "alternativa.tanks.lightsmanager:OmniLightRegistry/protected:lightToString", + "_-IQ:_-QL/instance/_-Pm:modify": "alternativa.tanks.lightsmanager:OmniLightRegistry/protected:modify", + "_-IQ:_-QL/instance/_-Pm:create": "alternativa.tanks.lightsmanager:OmniLightRegistry/protected:create", + "_-IQ:_-QL/instance/_-Pm:getLigts": "alternativa.tanks.lightsmanager:OmniLightRegistry/protected:getLigts", + "_-IQ:_-QL/instance/_-Pm:del": "alternativa.tanks.lightsmanager:OmniLightRegistry/protected:del", + "_-IQ:_-QL/instance/_-IQ:_-QL/instance/_-Pm/_-C0": "alternativa.tanks.lightsmanager:OmniLightRegistry/private:getLight", + "_-IQ:_-QL/class/init": "alternativa.tanks.lightsmanager:OmniLightRegistry/private:getLight" + } + }, + "_-Ep": { + "_-pA": { + "_-Ep:_-pA": null, + "_-Ep:_-pA/instance/init": "alternativa.osgi.service.locale:LocaleService/LocaleService", + "_-Ep:_-pA/instance/_-D2": "alternativa.osgi.service.locale:LocaleService/setText", + "_-Ep:_-pA/instance/_-kV": "alternativa.osgi.service.locale:LocaleService/setImage", + "_-Ep:_-pA/instance/_-A1": "alternativa.osgi.service.locale:LocaleService/setBoolean", + "_-Ep:_-pA/instance/_-df": "alternativa.osgi.service.locale:LocaleService/setNumber", + "_-Ep:_-pA/instance/_-R0": "alternativa.osgi.service.locale:LocaleService/setInt", + "_-Ep:_-pA/instance/_-Bs": "alternativa.osgi.service.locale:LocaleService/getText", + "_-Ep:_-pA/instance/_-M1": "alternativa.osgi.service.locale:LocaleService/getImage", + "_-Ep:_-pA/instance/_-4n": "alternativa.osgi.service.locale:LocaleService/getBoolean", + "_-Ep:_-pA/instance/_-qA": "alternativa.osgi.service.locale:LocaleService/getNumber", + "_-Ep:_-pA/instance/_-UN": "alternativa.osgi.service.locale:LocaleService/getInt", + "_-Ep:_-pA/instance/language/getter": "alternativa.osgi.service.locale:LocaleService/language/get", + "_-Ep:_-pA/instance/defaultLanguage/getter": "alternativa.osgi.service.locale:LocaleService/defaultLanguage/get", + "_-Ep:_-pA/class/init": "alternativa.osgi.service.locale:LocaleService/defaultLanguage/get" + }, + "_-7": { + "_-Ep:_-7": null, + "_-Ep:_-7/instance/init": "alternativa.osgi.service.locale:ILocaleService/ILocaleService", + "_-Ep:_-7/instance/continue:_-D2": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:setText", + "_-Ep:_-7/instance/continue:_-kV": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:setImage", + "_-Ep:_-7/instance/continue:_-A1": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:setBoolean", + "_-Ep:_-7/instance/continue:_-df": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:setNumber", + "_-Ep:_-7/instance/continue:_-R0": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:setInt", + "_-Ep:_-7/instance/continue:_-Bs": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:getText", + "_-Ep:_-7/instance/continue:_-M1": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:getImage", + "_-Ep:_-7/instance/continue:_-4n": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:getBoolean", + "_-Ep:_-7/instance/continue:_-qA": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:getNumber", + "_-Ep:_-7/instance/continue:_-UN": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:getInt", + "_-Ep:_-7/instance/continue:language/getter": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:language/get", + "_-Ep:_-7/instance/continue:defaultLanguage/getter": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:defaultLanguage/get", + "_-Ep:_-7/class/init": "alternativa.osgi.service.locale:ILocaleService/alternativa.osgi.service.locale:ILocaleService:defaultLanguage/get" + } + }, + "_-ks": { + "_-ig": { + "_-ks:_-ig": null, + "_-ks:_-ig/instance/init": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/BattleMessagesSubsystem", + "_-ks:_-ig/instance/messagesX/setter": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/messagesX/set", + "_-ks:_-ig/instance/messagesY/setter": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/messagesY/set", + "_-ks:_-ig/instance/_-U8": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/addMessage", + "_-ks:_-ig/instance/stop": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/stop", + "_-ks:_-ig/instance/_-ks:_-ig/_-4t": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/private:updateTimerState", + "_-ks:_-ig/instance/_-ks:_-ig/_-cp": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/private:updateMessagesPositions", + "_-ks:_-ig/instance/_-ks:_-ig/_-Zt": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/private:onTimer", + "_-ks:_-ig/instance/_-ks:_-ig/_-ZP": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/private:removeExpiredMessages", + "_-ks:_-ig/instance/_-ks:_-ig/_-AW": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/private:removeMessage", + "_-ks:_-ig/class/init": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem/private:removeMessage" + } + }, + "_-XV": { + "_-Yx": { + "_-XV:_-Yx": null, + "_-XV:_-Yx/instance/init": "alternativa.osgi.service.display:Display/Display", + "_-XV:_-Yx/instance/_-XV:_-Yx/instance/_-Yv": "alternativa.osgi.service.display:Display/private:addLayerSprite", + "_-XV:_-Yx/instance/stage/getter": "alternativa.osgi.service.display:Display/stage/get", + "_-XV:_-Yx/instance/_-Gw/getter": "alternativa.osgi.service.display:Display/mainContainer/get", + "_-XV:_-Yx/instance/_-XR/getter": "alternativa.osgi.service.display:Display/backgroundLayer/get", + "_-XV:_-Yx/instance/_-4k/getter": "alternativa.osgi.service.display:Display/contentLayer/get", + "_-XV:_-Yx/instance/_-oB/getter": "alternativa.osgi.service.display:Display/contentUILayer/get", + "_-XV:_-Yx/instance/_-Dn/getter": "alternativa.osgi.service.display:Display/systemLayer/get", + "_-XV:_-Yx/instance/_-Ng/getter": "alternativa.osgi.service.display:Display/systemUILayer/get", + "_-XV:_-Yx/instance/_-Sc/getter": "alternativa.osgi.service.display:Display/dialogsLayer/get", + "_-XV:_-Yx/instance/var/getter": "alternativa.osgi.service.display:Display/noticesLayer/get", + "_-XV:_-Yx/instance/_-nH/getter": "alternativa.osgi.service.display:Display/cursorLayer/get", + "_-XV:_-Yx/class/init": "alternativa.osgi.service.display:Display/cursorLayer/get" + }, + "_-31": { + "_-XV:_-31": null, + "_-XV:_-31/instance/init": "alternativa.osgi.service.display:IDisplay/IDisplay", + "_-XV:_-31/instance/_-9z:stage/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:stage/get", + "_-XV:_-31/instance/_-9z:_-Gw/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:mainContainer/get", + "_-XV:_-31/instance/_-9z:_-XR/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:backgroundLayer/get", + "_-XV:_-31/instance/_-9z:_-4k/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:contentLayer/get", + "_-XV:_-31/instance/_-9z:_-oB/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:contentUILayer/get", + "_-XV:_-31/instance/_-9z:_-Dn/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:systemLayer/get", + "_-XV:_-31/instance/_-9z:_-Ng/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:systemUILayer/get", + "_-XV:_-31/instance/_-9z:_-Sc/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:dialogsLayer/get", + "_-XV:_-31/instance/_-9z:var/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:noticesLayer/get", + "_-XV:_-31/instance/_-9z:_-nH/getter": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:cursorLayer/get", + "_-XV:_-31/class/init": "alternativa.osgi.service.display:IDisplay/alternativa.osgi.service.display:IDisplay:cursorLayer/get" + } + }, + "_-nD": { + "_-aQ": { + "_-nD:_-aQ": null, + "_-nD:_-aQ/instance/init": "versions.version1.a3d.id:ParentId/ParentId", + "_-nD:_-aQ/instance/id/getter": "versions.version1.a3d.id:ParentId/id/get", + "_-nD:_-aQ/instance/id/setter": "versions.version1.a3d.id:ParentId/id/set", + "_-nD:_-aQ/instance/toString": "versions.version1.a3d.id:ParentId/toString", + "_-nD:_-aQ/class/init": "versions.version1.a3d.id:ParentId/toString" + } + }, + "_-aa": { + "_-cS": { + "_-aa:_-cS": null, + "_-aa:_-cS/instance/init": "alternativa.tanks.config.loaders:BlobsLoaderTask/BlobsLoaderTask", + "_-aa:_-cS/instance/run": "alternativa.tanks.config.loaders:BlobsLoaderTask/run", + "_-aa:_-cS/instance/_-aa:_-cS/instance/_-fm": "alternativa.tanks.config.loaders:BlobsLoaderTask/private:onTaskComplete", + "_-aa:_-cS/instance/_-To": "alternativa.tanks.config.loaders:BlobsLoaderTask/addBlob", + "_-aa:_-cS/instance/_-aa:_-cS/instance/onLoadingComplete": "alternativa.tanks.config.loaders:BlobsLoaderTask/private:onLoadingComplete", + "_-aa:_-cS/class/init": "alternativa.tanks.config.loaders:BlobsLoaderTask/private:onLoadingComplete" + }, + "_-g9": { + "_-aa:_-g9": null, + "_-aa:_-g9/instance/init": "alternativa.tanks.config.loaders:TankPartsBatchLoader/TankPartsBatchLoader", + "_-aa:_-g9/instance/load": "alternativa.tanks.config.loaders:TankPartsBatchLoader/load", + "_-aa:_-g9/instance/_-aa:_-g9/instance/_-Pw": "alternativa.tanks.config.loaders:TankPartsBatchLoader/private:onSequenceComplete", + "_-aa:_-g9/class/init": "alternativa.tanks.config.loaders:TankPartsBatchLoader/private:onSequenceComplete" + }, + "_-Ai": { + "_-aa:_-Ai": null, + "_-aa:_-Ai/instance/init": "alternativa.tanks.config.loaders:ImageSequenceLoader/ImageSequenceLoader", + "_-aa:_-Ai/instance/load": "alternativa.tanks.config.loaders:ImageSequenceLoader/load", + "_-aa:_-Ai/instance/_-aa:_-Ai/instance/_-Yt": "alternativa.tanks.config.loaders:ImageSequenceLoader/private:loadNextImage", + "_-aa:_-Ai/instance/_-aa:_-Ai/instance/_-6b": "alternativa.tanks.config.loaders:ImageSequenceLoader/private:onImageLoadingComplete", + "_-aa:_-Ai/class/init": "alternativa.tanks.config.loaders:ImageSequenceLoader/private:onImageLoadingComplete" + }, + "_-i0": { + "_-aa:_-i0": null, + "_-aa:_-i0/instance/init": "alternativa.tanks.config.loaders:SoundsLibrary/SoundsLibrary", + "_-aa:_-i0/instance/_-lM": "alternativa.tanks.config.loaders:SoundsLibrary/getSound", + "_-aa:_-i0/instance/_-Od": "alternativa.tanks.config.loaders:SoundsLibrary/addSound", + "_-aa:_-i0/instance/run": "alternativa.tanks.config.loaders:SoundsLibrary/run", + "_-aa:_-i0/instance/_-aa:_-i0/instance/_-fm": "alternativa.tanks.config.loaders:SoundsLibrary/private:onTaskComplete", + "_-aa:_-i0/instance/_-aa:_-i0/instance/_-Pw": "alternativa.tanks.config.loaders:SoundsLibrary/private:onSequenceComplete", + "_-aa:_-i0/class/init": "alternativa.tanks.config.loaders:SoundsLibrary/private:onSequenceComplete" + } + }, + "_-Oh": { + "A3D2Track": { + "_-Oh:A3D2Track": null, + "_-Oh:A3D2Track/instance/init": "versions.version2.a3d.animation:A3D2Track/A3D2Track", + "_-Oh:A3D2Track/instance/id/getter": "versions.version2.a3d.animation:A3D2Track/id/get", + "_-Oh:A3D2Track/instance/id/setter": "versions.version2.a3d.animation:A3D2Track/id/set", + "_-Oh:A3D2Track/instance/keyframes/getter": "versions.version2.a3d.animation:A3D2Track/keyframes/get", + "_-Oh:A3D2Track/instance/keyframes/setter": "versions.version2.a3d.animation:A3D2Track/keyframes/set", + "_-Oh:A3D2Track/instance/objectName/getter": "versions.version2.a3d.animation:A3D2Track/objectName/get", + "_-Oh:A3D2Track/instance/objectName/setter": "versions.version2.a3d.animation:A3D2Track/objectName/set", + "_-Oh:A3D2Track/instance/toString": "versions.version2.a3d.animation:A3D2Track/toString", + "_-Oh:A3D2Track/class/init": "versions.version2.a3d.animation:A3D2Track/toString" + }, + "A3D2Keyframe": { + "_-Oh:A3D2Keyframe": null, + "_-Oh:A3D2Keyframe/instance/init": "versions.version2.a3d.animation:A3D2Keyframe/A3D2Keyframe", + "_-Oh:A3D2Keyframe/instance/time/getter": "versions.version2.a3d.animation:A3D2Keyframe/time/get", + "_-Oh:A3D2Keyframe/instance/time/setter": "versions.version2.a3d.animation:A3D2Keyframe/time/set", + "_-Oh:A3D2Keyframe/instance/transform/getter": "versions.version2.a3d.animation:A3D2Keyframe/transform/get", + "_-Oh:A3D2Keyframe/instance/transform/setter": "versions.version2.a3d.animation:A3D2Keyframe/transform/set", + "_-Oh:A3D2Keyframe/instance/toString": "versions.version2.a3d.animation:A3D2Keyframe/toString", + "_-Oh:A3D2Keyframe/class/init": "versions.version2.a3d.animation:A3D2Keyframe/toString" + }, + "A3D2AnimationClip": { + "_-Oh:A3D2AnimationClip": null, + "_-Oh:A3D2AnimationClip/instance/init": "versions.version2.a3d.animation:A3D2AnimationClip/A3D2AnimationClip", + "_-Oh:A3D2AnimationClip/instance/id/getter": "versions.version2.a3d.animation:A3D2AnimationClip/id/get", + "_-Oh:A3D2AnimationClip/instance/id/setter": "versions.version2.a3d.animation:A3D2AnimationClip/id/set", + "_-Oh:A3D2AnimationClip/instance/loop/getter": "versions.version2.a3d.animation:A3D2AnimationClip/loop/get", + "_-Oh:A3D2AnimationClip/instance/loop/setter": "versions.version2.a3d.animation:A3D2AnimationClip/loop/set", + "_-Oh:A3D2AnimationClip/instance/name/getter": "versions.version2.a3d.animation:A3D2AnimationClip/name/get", + "_-Oh:A3D2AnimationClip/instance/name/setter": "versions.version2.a3d.animation:A3D2AnimationClip/name/set", + "_-Oh:A3D2AnimationClip/instance/objectIDs/getter": "versions.version2.a3d.animation:A3D2AnimationClip/objectIDs/get", + "_-Oh:A3D2AnimationClip/instance/objectIDs/setter": "versions.version2.a3d.animation:A3D2AnimationClip/objectIDs/set", + "_-Oh:A3D2AnimationClip/instance/tracks/getter": "versions.version2.a3d.animation:A3D2AnimationClip/tracks/get", + "_-Oh:A3D2AnimationClip/instance/tracks/setter": "versions.version2.a3d.animation:A3D2AnimationClip/tracks/set", + "_-Oh:A3D2AnimationClip/instance/toString": "versions.version2.a3d.animation:A3D2AnimationClip/toString", + "_-Oh:A3D2AnimationClip/class/init": "versions.version2.a3d.animation:A3D2AnimationClip/toString" + } + }, + "_-Fc": { + "_-8a": { + "_-Fc:_-8a": null, + "_-Fc:_-8a/instance/init": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/PhysicsSystem", + "_-Fc:_-8a/instance/_-TN:onPause": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/protected:onPause", + "_-Fc:_-8a/instance/_-TN:onResume": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/protected:onResume", + "_-Fc:_-8a/instance/_-Zo": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/getGridCollisionDetector", + "_-Fc:_-8a/instance/_-Xh": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/getPhysicsStep", + "_-Fc:_-8a/instance/_-d-": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/getPhysicsScene", + "_-Fc:_-8a/instance/_-kO": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/initCollisionGeometry", + "_-Fc:_-8a/instance/addControllerBefore": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/addControllerBefore", + "_-Fc:_-8a/instance/addControllerAfter": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/addControllerAfter", + "_-Fc:_-8a/instance/_-Ve": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/addInterpolationController", + "_-Fc:_-8a/instance/removeControllerBefore": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/removeControllerBefore", + "_-Fc:_-8a/instance/removeControllerAfter": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/removeControllerAfter", + "_-Fc:_-8a/instance/_-Fs": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/removeInterpolationController", + "_-Fc:_-8a/instance/start": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/start", + "_-Fc:_-8a/instance/run": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/run", + "_-Fc:_-8a/instance/_-Fc:_-8a/_-5W": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/private:addDeferredAction", + "_-Fc:_-8a/class/init": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem/private:addDeferredAction" + }, + "catch": { + "_-Fc:catch": null, + "_-Fc:catch/instance/init": "alternativa.tanks.game.subsystems.physicssystem:IPhysicsController/IPhysicsController", + "_-Fc:catch/instance/_-2X:updateBeforeSimulation": "alternativa.tanks.game.subsystems.physicssystem:IPhysicsController/alternativa.tanks.game.subsystems.physicssystem:IPhysicsController:updateBeforeSimulation", + "_-Fc:catch/instance/_-2X:updateAfterSimulation": "alternativa.tanks.game.subsystems.physicssystem:IPhysicsController/alternativa.tanks.game.subsystems.physicssystem:IPhysicsController:updateAfterSimulation", + "_-Fc:catch/instance/_-2X:interpolate": "alternativa.tanks.game.subsystems.physicssystem:IPhysicsController/alternativa.tanks.game.subsystems.physicssystem:IPhysicsController:interpolate", + "_-Fc:catch/class/init": "alternativa.tanks.game.subsystems.physicssystem:IPhysicsController/alternativa.tanks.game.subsystems.physicssystem:IPhysicsController:interpolate" + } + }, + "_-pe": { + "_-m3": {}, + "_-oV": { + "_-pe:_-oV": null, + "_-pe:_-oV/instance/init": "alternativa.physics.collision.primitives:CollisionRect/CollisionRect", + "_-pe:_-oV/instance/calculateAABB": "alternativa.physics.collision.primitives:CollisionRect/calculateAABB", + "_-pe:_-oV/instance/copyFrom": "alternativa.physics.collision.primitives:CollisionRect/copyFrom", + "_-pe:_-oV/instance/toString": "alternativa.physics.collision.primitives:CollisionRect/toString", + "_-pe:_-oV/instance/_-Nm:createPrimitive": "alternativa.physics.collision.primitives:CollisionRect/protected:createPrimitive", + "_-pe:_-oV/instance/raycast": "alternativa.physics.collision.primitives:CollisionRect/raycast", + "_-pe:_-oV/class/init": "alternativa.physics.collision.primitives:CollisionRect/raycast" + }, + "_-Pr": { + "_-pe:_-Pr": null, + "_-pe:_-Pr/instance/init": "alternativa.physics.collision.primitives:CollisionTriangle/CollisionTriangle", + "_-pe:_-Pr/instance/calculateAABB": "alternativa.physics.collision.primitives:CollisionTriangle/calculateAABB", + "_-pe:_-Pr/instance/raycast": "alternativa.physics.collision.primitives:CollisionTriangle/raycast", + "_-pe:_-Pr/instance/copyFrom": "alternativa.physics.collision.primitives:CollisionTriangle/copyFrom", + "_-pe:_-Pr/instance/toString": "alternativa.physics.collision.primitives:CollisionTriangle/toString", + "_-pe:_-Pr/instance/_-4l:createPrimitive": "alternativa.physics.collision.primitives:CollisionTriangle/protected:createPrimitive", + "_-pe:_-Pr/instance/_-pe:_-Pr/instance/init/_-nm": "alternativa.physics.collision.primitives:CollisionTriangle/private:initVertices", + "_-pe:_-Pr/class/init": "alternativa.physics.collision.primitives:CollisionTriangle/private:initVertices" + }, + "_-c5": { + "_-pe:_-c5": null, + "_-pe:_-c5/instance/init": "alternativa.physics.collision.primitives:CollisionSphere/CollisionSphere", + "_-pe:_-c5/instance/calculateAABB": "alternativa.physics.collision.primitives:CollisionSphere/calculateAABB", + "_-pe:_-c5/instance/raycast": "alternativa.physics.collision.primitives:CollisionSphere/raycast", + "_-pe:_-c5/instance/copyFrom": "alternativa.physics.collision.primitives:CollisionSphere/copyFrom", + "_-pe:_-c5/instance/_-IT:createPrimitive": "alternativa.physics.collision.primitives:CollisionSphere/protected:createPrimitive", + "_-pe:_-c5/class/init": "alternativa.physics.collision.primitives:CollisionSphere/protected:createPrimitive" + } + }, + "_-7j": { + "_-BN": { + "_-7j:_-BN": null, + "_-7j:_-BN/instance/init": "alternativa.tanks.game.types:TeamType/TeamType", + "_-7j:_-BN/instance/toString": "alternativa.tanks.game.types:TeamType/toString", + "_-7j:_-BN/class/init": "alternativa.tanks.game.types:TeamType/toString" + } + }, + "_-OZ": { + "_-CO": { + "_-OZ:_-CO": null, + "_-OZ:_-CO/instance/init": "alternativa.engine3d.animation:AnimationNode/AnimationNode", + "_-OZ:_-CO/instance/isActive/getter": "alternativa.engine3d.animation:AnimationNode/isActive/get", + "_-OZ:_-CO/instance/parent/getter": "alternativa.engine3d.animation:AnimationNode/parent/get", + "_-OZ:_-CO/instance/http://alternativaplatform.com/en/alternativa3d:update": "alternativa.engine3d.animation:AnimationNode/alternativa3d:update", + "_-OZ:_-CO/instance/http://alternativaplatform.com/en/alternativa3d:setController": "alternativa.engine3d.animation:AnimationNode/alternativa3d:setController", + "_-OZ:_-CO/instance/http://alternativaplatform.com/en/alternativa3d:_-Ih": "alternativa.engine3d.animation:AnimationNode/alternativa3d:addNode", + "_-OZ:_-CO/instance/http://alternativaplatform.com/en/alternativa3d:_-ZT": "alternativa.engine3d.animation:AnimationNode/alternativa3d:removeNode", + "_-OZ:_-CO/class/init": "alternativa.engine3d.animation:AnimationNode/alternativa3d:removeNode" + }, + "_-Re": { + "_-OZ:_-Re": null, + "_-OZ:_-Re/instance/init": "alternativa.engine3d.animation:AnimationNotify/AnimationNotify", + "_-OZ:_-Re/instance/time/getter": "alternativa.engine3d.animation:AnimationNotify/time/get", + "_-OZ:_-Re/class/init": "alternativa.engine3d.animation:AnimationNotify/time/get" + }, + "_-SK": { + "_-OZ:_-SK": null, + "_-OZ:_-SK/instance/init": "alternativa.engine3d.animation:AnimationState/AnimationState", + "_-OZ:_-SK/instance/reset": "alternativa.engine3d.animation:AnimationState/reset", + "_-OZ:_-SK/instance/_-nV": "alternativa.engine3d.animation:AnimationState/addWeightedTransform", + "_-OZ:_-SK/instance/_-B": "alternativa.engine3d.animation:AnimationState/addWeightedNumber", + "_-OZ:_-SK/instance/_-Ub": "alternativa.engine3d.animation:AnimationState/apply", + "_-OZ:_-SK/instance/_-YS": "alternativa.engine3d.animation:AnimationState/applyObject", + "_-OZ:_-SK/instance/_-OZ:_-SK/instance/_-ex": "alternativa.engine3d.animation:AnimationState/private:setEulerAngles", + "_-OZ:_-SK/instance/_-OZ:_-SK/instance/_-2F": "alternativa.engine3d.animation:AnimationState/private:setEulerAnglesObject", + "_-OZ:_-SK/class/init": "alternativa.engine3d.animation:AnimationState/private:setEulerAnglesObject" + }, + "_-cK": { + "_-OZ:_-cK": null, + "_-OZ:_-cK/instance/init": "alternativa.engine3d.animation:AnimationController/AnimationController", + "_-OZ:_-cK/instance/root/getter": "alternativa.engine3d.animation:AnimationController/root/get", + "_-OZ:_-cK/instance/root/setter": "alternativa.engine3d.animation:AnimationController/root/set", + "_-OZ:_-cK/instance/update": "alternativa.engine3d.animation:AnimationController/update", + "_-OZ:_-cK/instance/http://alternativaplatform.com/en/alternativa3d:addObject": "alternativa.engine3d.animation:AnimationController/alternativa3d:addObject", + "_-OZ:_-cK/instance/http://alternativaplatform.com/en/alternativa3d:_-il": "alternativa.engine3d.animation:AnimationController/alternativa3d:removeObject", + "_-OZ:_-cK/instance/http://alternativaplatform.com/en/alternativa3d:getState": "alternativa.engine3d.animation:AnimationController/alternativa3d:getState", + "_-OZ:_-cK/instance/_-ek": "alternativa.engine3d.animation:AnimationController/freeze", + "_-OZ:_-cK/class/init": "alternativa.engine3d.animation:AnimationController/freeze" + }, + "_-FA": {} + }, + "_-jd": { + "_-nk": { + "_-jd:_-nk": null, + "_-jd:_-nk/instance/init": "alternativa.tanks.game.entities.tank.physics.turret:ActiveState/ActiveState", + "_-jd:_-nk/instance/start": "alternativa.tanks.game.entities.tank.physics.turret:ActiveState/start", + "_-jd:_-nk/instance/stop": "alternativa.tanks.game.entities.tank.physics.turret:ActiveState/stop", + "_-jd:_-nk/class/init": "alternativa.tanks.game.entities.tank.physics.turret:ActiveState/stop" + }, + "_-82": { + "_-jd:_-82": null, + "_-jd:_-82/instance/init": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/TurretPhysicsComponent", + "_-jd:_-82/instance/addToGame": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/addToGame", + "_-jd:_-82/instance/initComponent": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/initComponent", + "_-jd:_-82/instance/getBarrelCount": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getBarrelCount", + "_-jd:_-82/instance/getGunData": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getGunData", + "_-jd:_-82/instance/getGunMuzzleData": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getGunMuzzleData", + "_-jd:_-82/instance/getGunMuzzleData2": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getGunMuzzleData2", + "_-jd:_-82/instance/getBarrelLength": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getBarrelLength", + "_-jd:_-82/instance/getInterpolatedTurretDirection": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getInterpolatedTurretDirection", + "_-jd:_-82/instance/getChassisMatrix": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getChassisMatrix", + "_-jd:_-82/instance/getSkinMountPoint": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getSkinMountPoint", + "_-jd:_-82/instance/setTurret": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/setTurret", + "_-jd:_-82/instance/setTurretMountPoint": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/setTurretMountPoint", + "_-jd:_-82/instance/getTurretDirection": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getTurretDirection", + "_-jd:_-82/instance/setTurretDirection": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/setTurretDirection", + "_-jd:_-82/instance/setTurretControls": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/setTurretControls", + "_-jd:_-82/instance/centerTurret": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/centerTurret", + "_-jd:_-82/instance/getTurretPrimitives": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/getTurretPrimitives", + "_-jd:_-82/instance/updateBeforeSimulation": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/updateBeforeSimulation", + "_-jd:_-82/instance/updateAfterSimulation": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/updateAfterSimulation", + "_-jd:_-82/instance/interpolate": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/interpolate", + "_-jd:_-82/instance/_-jd:addToScene": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics.turret:addToScene", + "_-jd:_-82/instance/_-jd:removeFromScene": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics.turret:removeFromScene", + "_-jd:_-82/instance/_-jd:_-82/instance/_-o4": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/private:getLocalMuzzlePoint", + "_-jd:_-82/instance/_-jd:_-82/instance/_-of": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/private:createTurretPrimitives", + "_-jd:_-82/instance/_-jd:_-82/instance/_-Bt": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/private:updatePrimitves", + "_-jd:_-82/instance/_-jd:_-82/instance/_-7L": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/private:onBattleFinished", + "_-jd:_-82/class/init": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent/private:onBattleFinished" + }, + "_-Rd": { + "_-jd:_-Rd": null, + "_-jd:_-Rd/instance/init": "alternativa.tanks.game.entities.tank.physics.turret:DeadState/DeadState", + "_-jd:_-Rd/instance/start": "alternativa.tanks.game.entities.tank.physics.turret:DeadState/start", + "_-jd:_-Rd/instance/stop": "alternativa.tanks.game.entities.tank.physics.turret:DeadState/stop", + "_-jd:_-Rd/class/init": "alternativa.tanks.game.entities.tank.physics.turret:DeadState/stop" + }, + "_-LO": { + "_-jd:_-LO": null, + "_-jd:_-LO/instance/init": "alternativa.tanks.game.entities.tank.physics.turret:RespawnState/RespawnState", + "_-jd:_-LO/instance/start": "alternativa.tanks.game.entities.tank.physics.turret:RespawnState/start", + "_-jd:_-LO/instance/stop": "alternativa.tanks.game.entities.tank.physics.turret:RespawnState/stop", + "_-jd:_-LO/class/init": "alternativa.tanks.game.entities.tank.physics.turret:RespawnState/stop" + } + }, + "_-nl": { + "_-Ok": { + "_-nl:_-Ok": null, + "_-nl:_-Ok/instance/init": "alternativa.math:Quaternion/Quaternion", + "_-nl:_-Ok/instance/reset": "alternativa.math:Quaternion/reset", + "_-nl:_-Ok/instance/normalize": "alternativa.math:Quaternion/normalize", + "_-nl:_-Ok/instance/prepend": "alternativa.math:Quaternion/prepend", + "_-nl:_-Ok/instance/append": "alternativa.math:Quaternion/append", + "_-nl:_-Ok/instance/_-Sr": "alternativa.math:Quaternion/rotateByVector", + "_-nl:_-Ok/instance/_-NZ": "alternativa.math:Quaternion/addScaledVector", + "_-nl:_-Ok/instance/toMatrix3": "alternativa.math:Quaternion/toMatrix3", + "_-nl:_-Ok/instance/toMatrix4": "alternativa.math:Quaternion/toMatrix4", + "_-nl:_-Ok/instance/length": "alternativa.math:Quaternion/length", + "_-nl:_-Ok/instance/_-PB": "alternativa.math:Quaternion/lengthSqr", + "_-nl:_-Ok/instance/_-6N": "alternativa.math:Quaternion/setFromAxisAngle", + "_-nl:_-Ok/instance/_-J3": "alternativa.math:Quaternion/setFromAxisAngleComponents", + "_-nl:_-Ok/instance/_-OQ": "alternativa.math:Quaternion/toAxisVector", + "_-nl:_-Ok/instance/_-fJ": "alternativa.math:Quaternion/getEulerAngles", + "_-nl:_-Ok/instance/_-2w": "alternativa.math:Quaternion/setFromEulerAnglesXYZ", + "_-nl:_-Ok/instance/_-qX": "alternativa.math:Quaternion/conjugate", + "_-nl:_-Ok/instance/_-0E": "alternativa.math:Quaternion/nlerp", + "_-nl:_-Ok/instance/subtract": "alternativa.math:Quaternion/subtract", + "_-nl:_-Ok/instance/_-hL": "alternativa.math:Quaternion/diff", + "_-nl:_-Ok/instance/copy": "alternativa.math:Quaternion/copy", + "_-nl:_-Ok/instance/_-nt": "alternativa.math:Quaternion/toVector3D", + "_-nl:_-Ok/instance/clone": "alternativa.math:Quaternion/clone", + "_-nl:_-Ok/instance/toString": "alternativa.math:Quaternion/toString", + "_-nl:_-Ok/instance/_-Q6": "alternativa.math:Quaternion/slerp", + "_-nl:_-Ok/class/init": "alternativa.math:Quaternion/slerp", + "_-nl:_-Ok/class/_-9D": "alternativa.math:Quaternion/multiply", + "_-nl:_-Ok/class/_-TY": "alternativa.math:Quaternion/createFromAxisAngle", + "_-nl:_-Ok/class/_-2D": "alternativa.math:Quaternion/createFromAxisAngleComponents", + "_-nl:_-Ok/class/_-pX": "alternativa.math:Quaternion/createFromEulerAnglesXYZ" + }, + "_-bj": { + "_-nl:_-bj": null, + "_-nl:_-bj/instance/init": "alternativa.math:Vector3/Vector3", + "_-nl:_-bj/instance/length": "alternativa.math:Vector3/length", + "_-nl:_-bj/instance/_-PB": "alternativa.math:Vector3/lengthSqr", + "_-nl:_-bj/instance/_-if": "alternativa.math:Vector3/setLength", + "_-nl:_-bj/instance/normalize": "alternativa.math:Vector3/normalize", + "_-nl:_-bj/instance/add": "alternativa.math:Vector3/add", + "_-nl:_-bj/instance/_-LQ": "alternativa.math:Vector3/addScaled", + "_-nl:_-bj/instance/subtract": "alternativa.math:Vector3/subtract", + "_-nl:_-bj/instance/sum": "alternativa.math:Vector3/sum", + "_-nl:_-bj/instance/_-hL": "alternativa.math:Vector3/diff", + "_-nl:_-bj/instance/scale": "alternativa.math:Vector3/scale", + "_-nl:_-bj/instance/reverse": "alternativa.math:Vector3/reverse", + "_-nl:_-bj/instance/dot": "alternativa.math:Vector3/dot", + "_-nl:_-bj/instance/_-1d": "alternativa.math:Vector3/cross", + "_-nl:_-bj/instance/cross2": "alternativa.math:Vector3/cross2", + "_-nl:_-bj/instance/transform3": "alternativa.math:Vector3/transform3", + "_-nl:_-bj/instance/transformTransposed3": "alternativa.math:Vector3/transformTransposed3", + "_-nl:_-bj/instance/transform4": "alternativa.math:Vector3/transform4", + "_-nl:_-bj/instance/transformTransposed4": "alternativa.math:Vector3/transformTransposed4", + "_-nl:_-bj/instance/_-eK": "alternativa.math:Vector3/transformVector4", + "_-nl:_-bj/instance/reset": "alternativa.math:Vector3/reset", + "_-nl:_-bj/instance/copy": "alternativa.math:Vector3/copy", + "_-nl:_-bj/instance/clone": "alternativa.math:Vector3/clone", + "_-nl:_-bj/instance/_-nt": "alternativa.math:Vector3/toVector3D", + "_-nl:_-bj/instance/_-ae": "alternativa.math:Vector3/copyFromVector3D", + "_-nl:_-bj/instance/_-6E": "alternativa.math:Vector3/distanceTo", + "_-nl:_-bj/instance/toString": "alternativa.math:Vector3/toString", + "_-nl:_-bj/class/init": "alternativa.math:Vector3/toString" + }, + "Matrix4": { + "_-nl:Matrix4": null, + "_-nl:Matrix4/instance/init": "alternativa.math:Matrix4/Matrix4", + "_-nl:Matrix4/instance/_-LP": "alternativa.math:Matrix4/toIdentity", + "_-nl:Matrix4/instance/invert": "alternativa.math:Matrix4/invert", + "_-nl:Matrix4/instance/append": "alternativa.math:Matrix4/append", + "_-nl:Matrix4/instance/prepend": "alternativa.math:Matrix4/prepend", + "_-nl:Matrix4/instance/add": "alternativa.math:Matrix4/add", + "_-nl:Matrix4/instance/subtract": "alternativa.math:Matrix4/subtract", + "_-nl:Matrix4/instance/_-eP": "alternativa.math:Matrix4/transformPoint", + "_-nl:Matrix4/instance/transformPointTransposed": "alternativa.math:Matrix4/transformPointTransposed", + "_-nl:Matrix4/instance/_-YJ": "alternativa.math:Matrix4/transformPoints", + "_-nl:Matrix4/instance/_-ZK": "alternativa.math:Matrix4/transformPointsN", + "_-nl:Matrix4/instance/_-bd": "alternativa.math:Matrix4/transformPointsTransposed", + "_-nl:Matrix4/instance/_-iX": "alternativa.math:Matrix4/transformPointsTransposedN", + "_-nl:Matrix4/instance/getAxis": "alternativa.math:Matrix4/getAxis", + "_-nl:Matrix4/instance/_-go": "alternativa.math:Matrix4/setAxes", + "_-nl:Matrix4/instance/_-Uz": "alternativa.math:Matrix4/transformVector", + "_-nl:Matrix4/instance/_-UV": "alternativa.math:Matrix4/transformVectorTransposed", + "_-nl:Matrix4/instance/copy": "alternativa.math:Matrix4/copy", + "_-nl:Matrix4/instance/_-Ue": "alternativa.math:Matrix4/setFromMatrix3", + "_-nl:Matrix4/instance/_-Bm": "alternativa.math:Matrix4/setOrientationFromMatrix3", + "_-nl:Matrix4/instance/_-fJ": "alternativa.math:Matrix4/getEulerAngles", + "_-nl:Matrix4/instance/_-Vi": "alternativa.math:Matrix4/setPosition", + "_-nl:Matrix4/instance/_-oa": "alternativa.math:Matrix4/setPositionXYZ", + "_-nl:Matrix4/instance/clone": "alternativa.math:Matrix4/clone", + "_-nl:Matrix4/instance/toString": "alternativa.math:Matrix4/toString", + "_-nl:Matrix4/instance/_-Wl": "alternativa.math:Matrix4/setRotationMatrix", + "_-nl:Matrix4/instance/setMatrix": "alternativa.math:Matrix4/setMatrix", + "_-nl:Matrix4/instance/_-OB": "alternativa.math:Matrix4/fromAxisAngle", + "_-nl:Matrix4/class/init": "alternativa.math:Matrix4/fromAxisAngle" + }, + "Matrix3": { + "_-nl:Matrix3": null, + "_-nl:Matrix3/instance/init": "alternativa.math:Matrix3/Matrix3", + "_-nl:Matrix3/instance/_-LP": "alternativa.math:Matrix3/toIdentity", + "_-nl:Matrix3/instance/invert": "alternativa.math:Matrix3/invert", + "_-nl:Matrix3/instance/append": "alternativa.math:Matrix3/append", + "_-nl:Matrix3/instance/prepend": "alternativa.math:Matrix3/prepend", + "_-nl:Matrix3/instance/_-37": "alternativa.math:Matrix3/prependTransposed", + "_-nl:Matrix3/instance/add": "alternativa.math:Matrix3/add", + "_-nl:Matrix3/instance/subtract": "alternativa.math:Matrix3/subtract", + "_-nl:Matrix3/instance/transpose": "alternativa.math:Matrix3/transpose", + "_-nl:Matrix3/instance/_-Uz": "alternativa.math:Matrix3/transformVector", + "_-nl:Matrix3/instance/_-UV": "alternativa.math:Matrix3/transformVectorTransposed", + "_-nl:Matrix3/instance/transformVector3To3D": "alternativa.math:Matrix3/transformVector3To3D", + "_-nl:Matrix3/instance/_-Bf": "alternativa.math:Matrix3/createSkewSymmetric", + "_-nl:Matrix3/instance/copy": "alternativa.math:Matrix3/copy", + "_-nl:Matrix3/instance/_-Wl": "alternativa.math:Matrix3/setRotationMatrix", + "_-nl:Matrix3/instance/_-OB": "alternativa.math:Matrix3/fromAxisAngle", + "_-nl:Matrix3/instance/clone": "alternativa.math:Matrix3/clone", + "_-nl:Matrix3/instance/toString": "alternativa.math:Matrix3/toString", + "_-nl:Matrix3/instance/_-fJ": "alternativa.math:Matrix3/getEulerAngles", + "_-nl:Matrix3/class/init": "alternativa.math:Matrix3/getEulerAngles" + } + }, + "_-aM": { + "_-Lm": { + "_-aM:_-Lm": null, + "_-aM:_-Lm/instance/init": "alternativa.tanks.game.subsystems.inputsystem:IInput/IInput", + "_-aM:_-Lm/instance/_-Nw:_-hn": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:addKeyboardListener", + "_-aM:_-Lm/instance/_-Nw:_-or": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:removeKeyboardListener", + "_-aM:_-Lm/instance/_-Nw:_-OO": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:getKeyState", + "_-aM:_-Lm/instance/_-Nw:_-IA": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:keyPressed", + "_-aM:_-Lm/instance/_-Nw:_-an": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:mouseButtonPressed", + "_-aM:_-Lm/instance/_-Nw:_-i9": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:getMouseWheelDelta", + "_-aM:_-Lm/instance/_-Nw:_-0T": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:wasMouseButtonPressed", + "_-aM:_-Lm/instance/_-Nw:_-ow": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:getMouseDeltaX", + "_-aM:_-Lm/instance/_-Nw:_-ac": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:getMouseDeltaY", + "_-aM:_-Lm/class/init": "alternativa.tanks.game.subsystems.inputsystem:IInput/alternativa.tanks.game.subsystems.inputsystem:IInput:getMouseDeltaY" + }, + "_-Yf": { + "_-aM:_-Yf": null, + "_-aM:_-Yf/instance/init": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/InputSystem", + "_-aM:_-Yf/instance/_-hn": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/addKeyboardListener", + "_-aM:_-Yf/instance/_-or": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/removeKeyboardListener", + "_-aM:_-Yf/instance/_-OO": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/getKeyState", + "_-aM:_-Yf/instance/_-IA": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/keyPressed", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-ft": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:addDistinctKeyListener", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-7G": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:removeDistinctKeyListener", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-3J": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:addKeyListener", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-JO": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:removeKeyListener", + "_-aM:_-Yf/instance/_-an": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/mouseButtonPressed", + "_-aM:_-Yf/instance/_-0T": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/wasMouseButtonPressed", + "_-aM:_-Yf/instance/_-ow": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/getMouseDeltaX", + "_-aM:_-Yf/instance/_-ac": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/getMouseDeltaY", + "_-aM:_-Yf/instance/_-i9": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/getMouseWheelDelta", + "_-aM:_-Yf/instance/start": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/start", + "_-aM:_-Yf/instance/stop": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/stop", + "_-aM:_-Yf/instance/run": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/run", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-Db": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:dispatchKeyboardEvents", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-np": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:dispatchKeyboardEvent", + "_-aM:_-Yf/instance/_-cM": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/cleanup", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-Ze": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onKeyDown", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-Uf": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onKeyUp", + "_-aM:_-Yf/instance/_-aM:_-Yf/onMouseMove": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onMouseMove", + "_-aM:_-Yf/instance/_-aM:_-Yf/onMouseWheel": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onMouseWheel", + "_-aM:_-Yf/instance/_-aM:_-Yf/onMouseDown": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onMouseDown", + "_-aM:_-Yf/instance/_-aM:_-Yf/_-4B": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onMouseUp", + "_-aM:_-Yf/class/init": "alternativa.tanks.game.subsystems.inputsystem:InputSystem/private:onMouseUp" + }, + "_-X0": { + "_-aM:_-X0": null, + "_-aM:_-X0/instance/init": "alternativa.tanks.game.subsystems.inputsystem:KeyboardEventType/KeyboardEventType", + "_-aM:_-X0/class/init": "alternativa.tanks.game.subsystems.inputsystem:KeyboardEventType/KeyboardEventType" + } + }, + "_-i2": { + "A3DGeometry": { + "_-i2:A3DGeometry": null, + "_-i2:A3DGeometry/instance/init": "versions.version1.a3d.geometry:A3DGeometry/A3DGeometry", + "_-i2:A3DGeometry/instance/id/getter": "versions.version1.a3d.geometry:A3DGeometry/id/get", + "_-i2:A3DGeometry/instance/id/setter": "versions.version1.a3d.geometry:A3DGeometry/id/set", + "_-i2:A3DGeometry/instance/indexBuffer/getter": "versions.version1.a3d.geometry:A3DGeometry/indexBuffer/get", + "_-i2:A3DGeometry/instance/indexBuffer/setter": "versions.version1.a3d.geometry:A3DGeometry/indexBuffer/set", + "_-i2:A3DGeometry/instance/vertexBuffers/getter": "versions.version1.a3d.geometry:A3DGeometry/vertexBuffers/get", + "_-i2:A3DGeometry/instance/vertexBuffers/setter": "versions.version1.a3d.geometry:A3DGeometry/vertexBuffers/set", + "_-i2:A3DGeometry/instance/toString": "versions.version1.a3d.geometry:A3DGeometry/toString", + "_-i2:A3DGeometry/class/init": "versions.version1.a3d.geometry:A3DGeometry/toString" + }, + "A3DVertexBuffer": { + "_-i2:A3DVertexBuffer": null, + "_-i2:A3DVertexBuffer/instance/init": "versions.version1.a3d.geometry:A3DVertexBuffer/A3DVertexBuffer", + "_-i2:A3DVertexBuffer/instance/attributes/getter": "versions.version1.a3d.geometry:A3DVertexBuffer/attributes/get", + "_-i2:A3DVertexBuffer/instance/attributes/setter": "versions.version1.a3d.geometry:A3DVertexBuffer/attributes/set", + "_-i2:A3DVertexBuffer/instance/byteBuffer/getter": "versions.version1.a3d.geometry:A3DVertexBuffer/byteBuffer/get", + "_-i2:A3DVertexBuffer/instance/byteBuffer/setter": "versions.version1.a3d.geometry:A3DVertexBuffer/byteBuffer/set", + "_-i2:A3DVertexBuffer/instance/vertexCount/getter": "versions.version1.a3d.geometry:A3DVertexBuffer/vertexCount/get", + "_-i2:A3DVertexBuffer/instance/vertexCount/setter": "versions.version1.a3d.geometry:A3DVertexBuffer/vertexCount/set", + "_-i2:A3DVertexBuffer/instance/toString": "versions.version1.a3d.geometry:A3DVertexBuffer/toString", + "_-i2:A3DVertexBuffer/class/init": "versions.version1.a3d.geometry:A3DVertexBuffer/toString" + }, + "A3DIndexBuffer": { + "_-i2:A3DIndexBuffer": null, + "_-i2:A3DIndexBuffer/instance/init": "versions.version1.a3d.geometry:A3DIndexBuffer/A3DIndexBuffer", + "_-i2:A3DIndexBuffer/instance/byteBuffer/getter": "versions.version1.a3d.geometry:A3DIndexBuffer/byteBuffer/get", + "_-i2:A3DIndexBuffer/instance/byteBuffer/setter": "versions.version1.a3d.geometry:A3DIndexBuffer/byteBuffer/set", + "_-i2:A3DIndexBuffer/instance/indexCount/getter": "versions.version1.a3d.geometry:A3DIndexBuffer/indexCount/get", + "_-i2:A3DIndexBuffer/instance/indexCount/setter": "versions.version1.a3d.geometry:A3DIndexBuffer/indexCount/set", + "_-i2:A3DIndexBuffer/instance/toString": "versions.version1.a3d.geometry:A3DIndexBuffer/toString", + "_-i2:A3DIndexBuffer/class/init": "versions.version1.a3d.geometry:A3DIndexBuffer/toString" + } + }, + "_-Y5": { + "_-XL": { + "_-Y5:_-XL": null, + "_-Y5:_-XL/instance/init#1": "_codec.versions.version1.a3d:CodecA3D/CodecA3D", + "_-Y5:_-XL/instance/init#0": "_codec.versions.version1.a3d:CodecA3D/init", + "_-Y5:_-XL/instance/_-2Q": "_codec.versions.version1.a3d:CodecA3D/decode", + "_-Y5:_-XL/instance/_-QN": "_codec.versions.version1.a3d:CodecA3D/encode", + "_-Y5:_-XL/class/init": "_codec.versions.version1.a3d:CodecA3D/encode" + }, + "VectorCodecA3DLevel2": { + "_-Y5:VectorCodecA3DLevel2": null, + "_-Y5:VectorCodecA3DLevel2/instance/init#0": "_codec.versions.version1.a3d:VectorCodecA3DLevel2/VectorCodecA3DLevel2", + "_-Y5:VectorCodecA3DLevel2/instance/init#1": "_codec.versions.version1.a3d:VectorCodecA3DLevel2/init", + "_-Y5:VectorCodecA3DLevel2/instance/_-2Q": "_codec.versions.version1.a3d:VectorCodecA3DLevel2/decode", + "_-Y5:VectorCodecA3DLevel2/instance/_-QN": "_codec.versions.version1.a3d:VectorCodecA3DLevel2/encode", + "_-Y5:VectorCodecA3DLevel2/class/init": "_codec.versions.version1.a3d:VectorCodecA3DLevel2/encode" + }, + "VectorCodecA3DLevel1": { + "_-Y5:VectorCodecA3DLevel1": null, + "_-Y5:VectorCodecA3DLevel1/instance/init#0": "_codec.versions.version1.a3d:VectorCodecA3DLevel1/VectorCodecA3DLevel1", + "_-Y5:VectorCodecA3DLevel1/instance/init#1": "_codec.versions.version1.a3d:VectorCodecA3DLevel1/init", + "_-Y5:VectorCodecA3DLevel1/instance/_-2Q": "_codec.versions.version1.a3d:VectorCodecA3DLevel1/decode", + "_-Y5:VectorCodecA3DLevel1/instance/_-QN": "_codec.versions.version1.a3d:VectorCodecA3DLevel1/encode", + "_-Y5:VectorCodecA3DLevel1/class/init": "_codec.versions.version1.a3d:VectorCodecA3DLevel1/encode" + }, + "VectorCodecA3DLevel3": { + "_-Y5:VectorCodecA3DLevel3": null, + "_-Y5:VectorCodecA3DLevel3/instance/init#0": "_codec.versions.version1.a3d:VectorCodecA3DLevel3/VectorCodecA3DLevel3", + "_-Y5:VectorCodecA3DLevel3/instance/init#1": "_codec.versions.version1.a3d:VectorCodecA3DLevel3/init", + "_-Y5:VectorCodecA3DLevel3/instance/_-2Q": "_codec.versions.version1.a3d:VectorCodecA3DLevel3/decode", + "_-Y5:VectorCodecA3DLevel3/instance/_-QN": "_codec.versions.version1.a3d:VectorCodecA3DLevel3/encode", + "_-Y5:VectorCodecA3DLevel3/class/init": "_codec.versions.version1.a3d:VectorCodecA3DLevel3/encode" + } + }, + "return": { + "_-h5": { + "return:_-h5": null, + "return:_-h5/instance/init": "alternativa.tanks.utils:Task/Task", + "return:_-h5/instance/run": "alternativa.tanks.utils:Task/run", + "return:_-h5/instance/return:_-jq/setter": "alternativa.tanks.utils:Task/alternativa.tanks.utils:taskSequence/set", + "return:_-h5/instance/_-Am:_-3Z": "alternativa.tanks.utils:Task/protected:completeTask", + "return:_-h5/class/init": "alternativa.tanks.utils:Task/protected:completeTask" + }, + "_-Hz": { + "return:_-Hz": null, + "return:_-Hz/instance/init": "alternativa.tanks.utils:XMLHelper/XMLHelper", + "return:_-Hz/class/init": "alternativa.tanks.utils:XMLHelper/XMLHelper", + "return:_-Hz/class/_-TM": "alternativa.tanks.utils:XMLHelper/parseStringArray" + }, + "_-pj": { + "return:_-pj": null, + "return:_-pj/instance/init": "alternativa.tanks.utils:TaskEvent/TaskEvent", + "return:_-pj/class/init": "alternativa.tanks.utils:TaskEvent/TaskEvent" + }, + "_-mc": { + "return:_-mc": null, + "return:_-mc/instance/init": "alternativa.tanks.utils:TextureUtils/TextureUtils", + "return:_-mc/class/init": "alternativa.tanks.utils:TextureUtils/TextureUtils", + "return:_-mc/class/_-YA": "alternativa.tanks.utils:TextureUtils/parseImageStrip" + }, + "_-Hr": { + "return:_-Hr": null, + "return:_-Hr/instance/init": "alternativa.tanks.utils:TARAParser/TARAParser", + "return:_-Hr/instance/_-Om": "alternativa.tanks.utils:TARAParser/parse", + "return:_-Hr/instance/data/getter": "alternativa.tanks.utils:TARAParser/data/get", + "return:_-Hr/instance/_-lv": "alternativa.tanks.utils:TARAParser/getFileData", + "return:_-Hr/class/init": "alternativa.tanks.utils:TARAParser/getFileData" + }, + "_-Ui": { + "return:_-Ui": null, + "return:_-Ui/instance/init": "alternativa.tanks.utils:TaskSequence/TaskSequence", + "return:_-Ui/instance/length/getter": "alternativa.tanks.utils:TaskSequence/length/get", + "return:_-Ui/instance/addTask": "alternativa.tanks.utils:TaskSequence/addTask", + "return:_-Ui/instance/run": "alternativa.tanks.utils:TaskSequence/run", + "return:_-Ui/instance/return:_-Ui/instance/_-JM": "alternativa.tanks.utils:TaskSequence/private:runCurrentTask", + "return:_-Ui/instance/return:taskComplete": "alternativa.tanks.utils:TaskSequence/alternativa.tanks.utils:taskComplete", + "return:_-Ui/class/init": "alternativa.tanks.utils:TaskSequence/alternativa.tanks.utils:taskComplete" + } + }, + "_-Tt": { + "_-Ho": { + "_-Tt:_-Ho": null, + "_-Tt:_-Ho/instance/init": "alternativa.osgi.service.network:INetworkService/INetworkService", + "_-Tt:_-Ho/instance/_-Lk:controlServerAddress/getter": "alternativa.osgi.service.network:INetworkService/alternativa.osgi.service.network:INetworkService:controlServerAddress/get", + "_-Tt:_-Ho/instance/_-Lk:controlServerPorts/getter": "alternativa.osgi.service.network:INetworkService/alternativa.osgi.service.network:INetworkService:controlServerPorts/get", + "_-Tt:_-Ho/instance/_-Lk:resourcesRootUrl/getter": "alternativa.osgi.service.network:INetworkService/alternativa.osgi.service.network:INetworkService:resourcesRootUrl/get", + "_-Tt:_-Ho/instance/_-Lk:_-qa": "alternativa.osgi.service.network:INetworkService/alternativa.osgi.service.network:INetworkService:getLastPort", + "_-Tt:_-Ho/instance/_-Lk:_-cQ": "alternativa.osgi.service.network:INetworkService/alternativa.osgi.service.network:INetworkService:saveLastPort", + "_-Tt:_-Ho/class/init": "alternativa.osgi.service.network:INetworkService/alternativa.osgi.service.network:INetworkService:saveLastPort" + }, + "_-Hi": { + "_-Tt:_-Hi": null, + "_-Tt:_-Hi/instance/init": "alternativa.osgi.service.network:NetworkService/NetworkService", + "_-Tt:_-Hi/instance/controlServerAddress/getter": "alternativa.osgi.service.network:NetworkService/controlServerAddress/get", + "_-Tt:_-Hi/instance/controlServerPorts/getter": "alternativa.osgi.service.network:NetworkService/controlServerPorts/get", + "_-Tt:_-Hi/instance/resourcesRootUrl/getter": "alternativa.osgi.service.network:NetworkService/resourcesRootUrl/get", + "_-Tt:_-Hi/instance/_-qa": "alternativa.osgi.service.network:NetworkService/getLastPort", + "_-Tt:_-Hi/instance/_-cQ": "alternativa.osgi.service.network:NetworkService/saveLastPort", + "_-Tt:_-Hi/class/init": "alternativa.osgi.service.network:NetworkService/saveLastPort" + } + }, + "_-AT": { + "VectorCodecA3DVertexBufferLevel1": { + "_-AT:VectorCodecA3DVertexBufferLevel1": null, + "_-AT:VectorCodecA3DVertexBufferLevel1/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel1/VectorCodecA3DVertexBufferLevel1", + "_-AT:VectorCodecA3DVertexBufferLevel1/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel1/init", + "_-AT:VectorCodecA3DVertexBufferLevel1/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel1/decode", + "_-AT:VectorCodecA3DVertexBufferLevel1/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel1/encode", + "_-AT:VectorCodecA3DVertexBufferLevel1/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel1/encode" + }, + "VectorCodecA3DIndexBufferLevel1": { + "_-AT:VectorCodecA3DIndexBufferLevel1": null, + "_-AT:VectorCodecA3DIndexBufferLevel1/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel1/VectorCodecA3DIndexBufferLevel1", + "_-AT:VectorCodecA3DIndexBufferLevel1/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel1/init", + "_-AT:VectorCodecA3DIndexBufferLevel1/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel1/decode", + "_-AT:VectorCodecA3DIndexBufferLevel1/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel1/encode", + "_-AT:VectorCodecA3DIndexBufferLevel1/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel1/encode" + }, + "VectorCodecA3DVertexBufferLevel2": { + "_-AT:VectorCodecA3DVertexBufferLevel2": null, + "_-AT:VectorCodecA3DVertexBufferLevel2/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel2/VectorCodecA3DVertexBufferLevel2", + "_-AT:VectorCodecA3DVertexBufferLevel2/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel2/init", + "_-AT:VectorCodecA3DVertexBufferLevel2/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel2/decode", + "_-AT:VectorCodecA3DVertexBufferLevel2/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel2/encode", + "_-AT:VectorCodecA3DVertexBufferLevel2/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel2/encode" + }, + "VectorCodecA3DVertexBufferLevel3": { + "_-AT:VectorCodecA3DVertexBufferLevel3": null, + "_-AT:VectorCodecA3DVertexBufferLevel3/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel3/VectorCodecA3DVertexBufferLevel3", + "_-AT:VectorCodecA3DVertexBufferLevel3/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel3/init", + "_-AT:VectorCodecA3DVertexBufferLevel3/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel3/decode", + "_-AT:VectorCodecA3DVertexBufferLevel3/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel3/encode", + "_-AT:VectorCodecA3DVertexBufferLevel3/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel3/encode" + }, + "VectorCodecA3DIndexBufferLevel3": { + "_-AT:VectorCodecA3DIndexBufferLevel3": null, + "_-AT:VectorCodecA3DIndexBufferLevel3/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel3/VectorCodecA3DIndexBufferLevel3", + "_-AT:VectorCodecA3DIndexBufferLevel3/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel3/init", + "_-AT:VectorCodecA3DIndexBufferLevel3/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel3/decode", + "_-AT:VectorCodecA3DIndexBufferLevel3/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel3/encode", + "_-AT:VectorCodecA3DIndexBufferLevel3/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel3/encode" + }, + "VectorCodecA3DGeometryLevel3": { + "_-AT:VectorCodecA3DGeometryLevel3": null, + "_-AT:VectorCodecA3DGeometryLevel3/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel3/VectorCodecA3DGeometryLevel3", + "_-AT:VectorCodecA3DGeometryLevel3/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel3/init", + "_-AT:VectorCodecA3DGeometryLevel3/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel3/decode", + "_-AT:VectorCodecA3DGeometryLevel3/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel3/encode", + "_-AT:VectorCodecA3DGeometryLevel3/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel3/encode" + }, + "VectorCodecA3DGeometryLevel2": { + "_-AT:VectorCodecA3DGeometryLevel2": null, + "_-AT:VectorCodecA3DGeometryLevel2/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel2/VectorCodecA3DGeometryLevel2", + "_-AT:VectorCodecA3DGeometryLevel2/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel2/init", + "_-AT:VectorCodecA3DGeometryLevel2/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel2/decode", + "_-AT:VectorCodecA3DGeometryLevel2/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel2/encode", + "_-AT:VectorCodecA3DGeometryLevel2/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel2/encode" + }, + "CodecA3DGeometry": { + "_-AT:CodecA3DGeometry": null, + "_-AT:CodecA3DGeometry/instance/init#1": "_codec.versions.version1.a3d.geometry:CodecA3DGeometry/CodecA3DGeometry", + "_-AT:CodecA3DGeometry/instance/init#0": "_codec.versions.version1.a3d.geometry:CodecA3DGeometry/init", + "_-AT:CodecA3DGeometry/instance/_-2Q": "_codec.versions.version1.a3d.geometry:CodecA3DGeometry/decode", + "_-AT:CodecA3DGeometry/instance/_-QN": "_codec.versions.version1.a3d.geometry:CodecA3DGeometry/encode", + "_-AT:CodecA3DGeometry/class/init": "_codec.versions.version1.a3d.geometry:CodecA3DGeometry/encode" + }, + "VectorCodecA3DIndexBufferLevel2": { + "_-AT:VectorCodecA3DIndexBufferLevel2": null, + "_-AT:VectorCodecA3DIndexBufferLevel2/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel2/VectorCodecA3DIndexBufferLevel2", + "_-AT:VectorCodecA3DIndexBufferLevel2/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel2/init", + "_-AT:VectorCodecA3DIndexBufferLevel2/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel2/decode", + "_-AT:VectorCodecA3DIndexBufferLevel2/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel2/encode", + "_-AT:VectorCodecA3DIndexBufferLevel2/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel2/encode" + }, + "CodecA3DVertexBuffer": { + "_-AT:CodecA3DVertexBuffer": null, + "_-AT:CodecA3DVertexBuffer/instance/init#1": "_codec.versions.version1.a3d.geometry:CodecA3DVertexBuffer/CodecA3DVertexBuffer", + "_-AT:CodecA3DVertexBuffer/instance/init#0": "_codec.versions.version1.a3d.geometry:CodecA3DVertexBuffer/init", + "_-AT:CodecA3DVertexBuffer/instance/_-2Q": "_codec.versions.version1.a3d.geometry:CodecA3DVertexBuffer/decode", + "_-AT:CodecA3DVertexBuffer/instance/_-QN": "_codec.versions.version1.a3d.geometry:CodecA3DVertexBuffer/encode", + "_-AT:CodecA3DVertexBuffer/class/init": "_codec.versions.version1.a3d.geometry:CodecA3DVertexBuffer/encode" + }, + "VectorCodecA3DGeometryLevel1": { + "_-AT:VectorCodecA3DGeometryLevel1": null, + "_-AT:VectorCodecA3DGeometryLevel1/instance/init#0": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel1/VectorCodecA3DGeometryLevel1", + "_-AT:VectorCodecA3DGeometryLevel1/instance/init#1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel1/init", + "_-AT:VectorCodecA3DGeometryLevel1/instance/_-2Q": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel1/decode", + "_-AT:VectorCodecA3DGeometryLevel1/instance/_-QN": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel1/encode", + "_-AT:VectorCodecA3DGeometryLevel1/class/init": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel1/encode" + }, + "CodecA3DIndexBuffer": { + "_-AT:CodecA3DIndexBuffer": null, + "_-AT:CodecA3DIndexBuffer/instance/init#1": "_codec.versions.version1.a3d.geometry:CodecA3DIndexBuffer/CodecA3DIndexBuffer", + "_-AT:CodecA3DIndexBuffer/instance/init#0": "_codec.versions.version1.a3d.geometry:CodecA3DIndexBuffer/init", + "_-AT:CodecA3DIndexBuffer/instance/_-2Q": "_codec.versions.version1.a3d.geometry:CodecA3DIndexBuffer/decode", + "_-AT:CodecA3DIndexBuffer/instance/_-QN": "_codec.versions.version1.a3d.geometry:CodecA3DIndexBuffer/encode", + "_-AT:CodecA3DIndexBuffer/class/init": "_codec.versions.version1.a3d.geometry:CodecA3DIndexBuffer/encode" + } + }, + "_-V5": { + "_-oN": { + "_-V5:_-oN": null, + "_-V5:_-oN/instance/init": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/ThunderShotEffectComponent", + "_-V5:_-oN/instance/initComponent": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/initComponent", + "_-V5:_-oN/instance/addToGame": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/addToGame", + "_-V5:_-oN/instance/removeFromGame": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/removeFromGame", + "_-V5:_-oN/instance/_-km": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/createShotEffects", + "_-V5:_-oN/class/init#0": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/createShotEffects", + "_-V5:_-oN/class/init#1": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent/init" + } + }, + "_-LX": { + "_-gY": { + "_-LX:_-gY": null, + "_-LX:_-gY/instance/init": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackAnimator/TrackAnimator", + "_-LX:_-gY/instance/_-BO": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackAnimator/animate", + "_-LX:_-gY/instance/_-LX:_-gY/instance/_-gD": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackAnimator/private:initZCoords", + "_-LX:_-gY/instance/_-LX:_-gY/instance/_-FT": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackAnimator/private:getBoneName", + "_-LX:_-gY/class/init": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackAnimator/private:getBoneName" + }, + "_-VO": { + "_-LX:_-VO": null, + "_-LX:_-VO/instance/init": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/TrackedChassisGraphicsComponent", + "_-LX:_-VO/instance/_-lD": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/getHull", + "_-LX:_-VO/instance/_-gq": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setTracksMaterial", + "_-LX:_-VO/instance/_-CE": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setShadowMaterial", + "_-LX:_-VO/instance/_-5x": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/getObject3D", + "_-LX:_-VO/instance/_-W7": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setShadowRenderer", + "_-LX:_-VO/instance/_-Uj": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setHull", + "_-LX:_-VO/instance/_-LX:_-VO/_-f8": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:getRatio", + "_-LX:_-VO/instance/_-LX:_-VO/_-0k": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:getMaxRatio", + "_-LX:_-VO/instance/_-LX:_-VO/_-nS": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:createTrackMesh", + "_-LX:_-VO/instance/_-LX:_-VO/_-lA": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:createWheels", + "_-LX:_-VO/instance/_-Ru": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setHullMaterials", + "_-LX:_-VO/instance/visible/getter": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/visible/get", + "_-LX:_-VO/instance/addToScene": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/addToScene", + "_-LX:_-VO/instance/removeFromScene": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/removeFromScene", + "_-LX:_-VO/instance/_-Lb/getter": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/hullMesh/get", + "_-LX:_-VO/instance/initComponent": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/initComponent", + "_-LX:_-VO/instance/addToGame": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/addToGame", + "_-LX:_-VO/instance/removeFromGame": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/removeFromGame", + "_-LX:_-VO/instance/render": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/render", + "_-LX:_-VO/instance/_-LX:_-VO/_-HV": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:animateTracks", + "_-LX:_-VO/instance/setMaterial": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setMaterial", + "_-LX:_-VO/instance/_-91": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/setAlpha", + "_-LX:_-VO/instance/_-LX:_-VO/_-lC": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:enableMouseListeners", + "_-LX:_-VO/instance/_-LX:_-VO/_-F7": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:disableMouseListeners", + "_-LX:_-VO/instance/_-LX:_-VO/try ": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:onMouseOver", + "_-LX:_-VO/instance/_-LX:_-VO/onMouseOut": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:onMouseOut", + "_-LX:_-VO/instance/_-LX:_-VO/_-Wk": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:onMouseClick", + "_-LX:_-VO/class/init": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent/private:onMouseClick" + } + }, + "_-Yj": { + "TankMaterial2": { + "_-Yj:TankMaterial2": null, + "_-Yj:TankMaterial2/instance/init": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/TankMaterial2", + "_-Yj:TankMaterial2/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/alternativa3d:fillResources", + "_-Yj:TankMaterial2/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/alternativa3d:collectDraws", + "_-Yj:TankMaterial2/instance/_-Yj:TankMaterial2/_-3O": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:setupShadowOrAmbient", + "_-Yj:TankMaterial2/instance/_-Yj:TankMaterial2/_-Mi": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:getShadowOrAmbientDrawUnit", + "_-Yj:TankMaterial2/instance/_-Yj:TankMaterial2/_-F": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:setupLighting", + "_-Yj:TankMaterial2/instance/_-Yj:TankMaterial2/_-MK": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:getLightingDrawUnit", + "_-Yj:TankMaterial2/instance/_-Yj:TankMaterial2/_-Ck": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:setupFog", + "_-Yj:TankMaterial2/instance/_-Yj:TankMaterial2/_-P8": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:getFogDrawUnit", + "_-Yj:TankMaterial2/instance/clone": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/clone", + "_-Yj:TankMaterial2/class/init": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/clone", + "_-Yj:TankMaterial2/class/_-RX": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/setFogTexture", + "_-Yj:TankMaterial2/class/_-Yj:TankMaterial2/directionalProcedure": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:directionalProcedure", + "_-Yj:TankMaterial2/class/_-Yj:TankMaterial2/omniProcedure": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2/private:omniProcedure" + }, + "_-bZ": { + "_-Yj:_-bZ": null, + "_-Yj:_-bZ/instance/init": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/TracksMaterial2", + "_-Yj:_-bZ/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/alternativa3d:fillResources", + "_-Yj:_-bZ/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/alternativa3d:collectDraws", + "_-Yj:_-bZ/instance/_-Yj:_-bZ/_-3O": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:setupShadowOrAmbient", + "_-Yj:_-bZ/instance/_-Yj:_-bZ/_-Mi": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:getShadowOrAmbientDrawUnit", + "_-Yj:_-bZ/instance/_-Yj:_-bZ/_-F": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:setupLighting", + "_-Yj:_-bZ/instance/_-Yj:_-bZ/_-MK": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:getLightingDrawUnit", + "_-Yj:_-bZ/instance/_-Yj:_-bZ/_-Ck": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:setupFog", + "_-Yj:_-bZ/instance/_-Yj:_-bZ/_-P8": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:getFogDrawUnit", + "_-Yj:_-bZ/instance/clone": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/clone", + "_-Yj:_-bZ/class/init": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/clone", + "_-Yj:_-bZ/class/_-RX": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/setFogTexture", + "_-Yj:_-bZ/class/_-Yj:_-bZ/_-eg": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:getPassTBNProcedure", + "_-Yj:_-bZ/class/_-Yj:_-bZ/directionalProcedure": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:directionalProcedure", + "_-Yj:_-bZ/class/_-Yj:_-bZ/omniProcedure": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2/private:omniProcedure" + }, + "_-as": { + "_-Yj:_-as": null, + "_-Yj:_-as/instance/init": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/TankMaterial", + "_-Yj:_-as/instance/http://alternativaplatform.com/en/alternativa3d:getPassUVProcedure": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/alternativa3d:getPassUVProcedure", + "_-Yj:_-as/instance/http://alternativaplatform.com/en/alternativa3d:setPassUVProcedureConstants": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/alternativa3d:setPassUVProcedureConstants", + "_-Yj:_-as/instance/_-Yj:_-as/final": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/private:setupProgram", + "_-Yj:_-as/instance/_-Yj:_-as/_-SC": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/private:formDirectionalProcedure", + "_-Yj:_-as/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/alternativa3d:fillResources", + "_-Yj:_-as/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/alternativa3d:collectDraws", + "_-Yj:_-as/class/init": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/alternativa3d:collectDraws", + "_-Yj:_-as/class/_-RX": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial/setFogTexture" + }, + "_-jj": { + "_-Yj:_-jj": null, + "_-Yj:_-jj/instance/init": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/GiShadowMaterial", + "_-Yj:_-jj/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/alternativa3d:fillResources", + "_-Yj:_-jj/instance/_-Yj:_-jj/final": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/private:setupProgram", + "_-Yj:_-jj/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/alternativa3d:collectDraws", + "_-Yj:_-jj/instance/clone": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/clone", + "_-Yj:_-jj/class/init": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/clone", + "_-Yj:_-jj/class/_-RX": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial/setFogTexture" + }, + "_-4X": { + "_-Yj:_-4X": null, + "_-Yj:_-4X/instance/init": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/TreesMaterial", + "_-Yj:_-4X/instance/http://alternativaplatform.com/en/alternativa3d:getPassUVProcedure": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/alternativa3d:getPassUVProcedure", + "_-Yj:_-4X/instance/http://alternativaplatform.com/en/alternativa3d:setPassUVProcedureConstants": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/alternativa3d:setPassUVProcedureConstants", + "_-Yj:_-4X/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/alternativa3d:collectDraws", + "_-Yj:_-4X/instance/clone": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/clone", + "_-Yj:_-4X/class/init": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/clone", + "_-Yj:_-4X/class/fogMode/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogMode/get", + "_-Yj:_-4X/class/fogMode/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogMode/set", + "_-Yj:_-4X/class/fogNear/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogNear/get", + "_-Yj:_-4X/class/fogNear/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogNear/set", + "_-Yj:_-4X/class/fogFar/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogFar/get", + "_-Yj:_-4X/class/fogFar/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogFar/set", + "_-Yj:_-4X/class/fogMaxDensity/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogMaxDensity/get", + "_-Yj:_-4X/class/fogMaxDensity/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogMaxDensity/set", + "_-Yj:_-4X/class/fogColorR/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogColorR/get", + "_-Yj:_-4X/class/fogColorR/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogColorR/set", + "_-Yj:_-4X/class/fogColorG/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogColorG/get", + "_-Yj:_-4X/class/fogColorG/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogColorG/set", + "_-Yj:_-4X/class/fogColorB/getter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogColorB/get", + "_-Yj:_-4X/class/fogColorB/setter": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/fogColorB/set", + "_-Yj:_-4X/class/_-RX": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial/setFogTexture" + } + }, + "_-R1": { + "OmniLight": { + "_-R1:OmniLight": null, + "_-R1:OmniLight/instance/init": "alternativa.engine3d.lights:OmniLight/OmniLight", + "_-R1:OmniLight/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.lights:OmniLight/alternativa3d:updateBoundBox", + "_-R1:OmniLight/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.lights:OmniLight/alternativa3d:collectDraws", + "_-R1:OmniLight/instance/http://alternativaplatform.com/en/alternativa3d:checkBound": "alternativa.engine3d.lights:OmniLight/alternativa3d:checkBound", + "_-R1:OmniLight/instance/clone": "alternativa.engine3d.lights:OmniLight/clone", + "_-R1:OmniLight/class/init": "alternativa.engine3d.lights:OmniLight/clone" + }, + "DirectionalLight": { + "_-R1:DirectionalLight": null, + "_-R1:DirectionalLight/instance/init": "alternativa.engine3d.lights:DirectionalLight/DirectionalLight", + "_-R1:DirectionalLight/instance/lookAt": "alternativa.engine3d.lights:DirectionalLight/lookAt", + "_-R1:DirectionalLight/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.lights:DirectionalLight/alternativa3d:collectDraws", + "_-R1:DirectionalLight/instance/clone": "alternativa.engine3d.lights:DirectionalLight/clone", + "_-R1:DirectionalLight/class/init": "alternativa.engine3d.lights:DirectionalLight/clone" + }, + "SpotLight": { + "_-R1:SpotLight": null, + "_-R1:SpotLight/instance/init": "alternativa.engine3d.lights:SpotLight/SpotLight", + "_-R1:SpotLight/instance/http://alternativaplatform.com/en/alternativa3d:updateBoundBox": "alternativa.engine3d.lights:SpotLight/alternativa3d:updateBoundBox", + "_-R1:SpotLight/instance/lookAt": "alternativa.engine3d.lights:SpotLight/lookAt", + "_-R1:SpotLight/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.lights:SpotLight/alternativa3d:collectDraws", + "_-R1:SpotLight/instance/http://alternativaplatform.com/en/alternativa3d:checkBound": "alternativa.engine3d.lights:SpotLight/alternativa3d:checkBound", + "_-R1:SpotLight/instance/clone": "alternativa.engine3d.lights:SpotLight/clone", + "_-R1:SpotLight/class/init": "alternativa.engine3d.lights:SpotLight/clone" + }, + "_-LD": { + "_-R1:_-LD": null, + "_-R1:_-LD/instance/init": "alternativa.engine3d.lights:AmbientLight/AmbientLight", + "_-R1:_-LD/instance/http://alternativaplatform.com/en/alternativa3d:calculateVisibility": "alternativa.engine3d.lights:AmbientLight/alternativa3d:calculateVisibility", + "_-R1:_-LD/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.lights:AmbientLight/alternativa3d:collectDraws", + "_-R1:_-LD/instance/clone": "alternativa.engine3d.lights:AmbientLight/clone", + "_-R1:_-LD/class/init": "alternativa.engine3d.lights:AmbientLight/clone" + } + }, + "_-5g": { + "_-OD": { + "_-5g:_-OD": null, + "_-5g:_-OD/instance/init": "alternativa.osgi.service.launcherparams:LauncherParams/LauncherParams", + "_-5g:_-OD/instance/_-Rl": "alternativa.osgi.service.launcherparams:LauncherParams/getParameter", + "_-5g:_-OD/instance/_-5J/getter": "alternativa.osgi.service.launcherparams:LauncherParams/parameterNames/get", + "_-5g:_-OD/instance/startupLibraryInfos/getter": "alternativa.osgi.service.launcherparams:LauncherParams/startupLibraryInfos/get", + "_-5g:_-OD/instance/_-Hl/getter": "alternativa.osgi.service.launcherparams:LauncherParams/isDebug/get", + "_-5g:_-OD/class/init": "alternativa.osgi.service.launcherparams:LauncherParams/isDebug/get" + }, + "_-iB": { + "_-5g:_-iB": null, + "_-5g:_-iB/instance/init": "alternativa.osgi.service.launcherparams:ILauncherParams/ILauncherParams", + "_-5g:_-iB/instance/_-ON:_-Rl": "alternativa.osgi.service.launcherparams:ILauncherParams/alternativa.osgi.service.launcherparams:ILauncherParams:getParameter", + "_-5g:_-iB/instance/_-ON:_-5J/getter": "alternativa.osgi.service.launcherparams:ILauncherParams/alternativa.osgi.service.launcherparams:ILauncherParams:parameterNames/get", + "_-5g:_-iB/instance/_-ON:startupLibraryInfos/getter": "alternativa.osgi.service.launcherparams:ILauncherParams/alternativa.osgi.service.launcherparams:ILauncherParams:startupLibraryInfos/get", + "_-5g:_-iB/instance/_-ON:_-Hl/getter": "alternativa.osgi.service.launcherparams:ILauncherParams/alternativa.osgi.service.launcherparams:ILauncherParams:isDebug/get", + "_-5g:_-iB/class/init": "alternativa.osgi.service.launcherparams:ILauncherParams/alternativa.osgi.service.launcherparams:ILauncherParams:isDebug/get" + } + }, + "_-1s": { + "Event3D": { + "_-1s:Event3D": null, + "_-1s:Event3D/instance/init": "alternativa.engine3d.core.events:Event3D/Event3D", + "_-1s:Event3D/instance/bubbles/getter": "alternativa.engine3d.core.events:Event3D/bubbles/get", + "_-1s:Event3D/instance/eventPhase/getter": "alternativa.engine3d.core.events:Event3D/eventPhase/get", + "_-1s:Event3D/instance/target/getter": "alternativa.engine3d.core.events:Event3D/target/get", + "_-1s:Event3D/instance/currentTarget/getter": "alternativa.engine3d.core.events:Event3D/currentTarget/get", + "_-1s:Event3D/instance/stopPropagation": "alternativa.engine3d.core.events:Event3D/stopPropagation", + "_-1s:Event3D/instance/stopImmediatePropagation": "alternativa.engine3d.core.events:Event3D/stopImmediatePropagation", + "_-1s:Event3D/instance/clone": "alternativa.engine3d.core.events:Event3D/clone", + "_-1s:Event3D/instance/toString": "alternativa.engine3d.core.events:Event3D/toString", + "_-1s:Event3D/class/init": "alternativa.engine3d.core.events:Event3D/toString" + }, + "MouseEvent3D": { + "_-1s:MouseEvent3D": null, + "_-1s:MouseEvent3D/instance/init": "alternativa.engine3d.core.events:MouseEvent3D/MouseEvent3D", + "_-1s:MouseEvent3D/instance/surface/getter": "alternativa.engine3d.core.events:MouseEvent3D/surface/get", + "_-1s:MouseEvent3D/instance/clone": "alternativa.engine3d.core.events:MouseEvent3D/clone", + "_-1s:MouseEvent3D/instance/toString": "alternativa.engine3d.core.events:MouseEvent3D/toString", + "_-1s:MouseEvent3D/class/init": "alternativa.engine3d.core.events:MouseEvent3D/toString" + } + }, + "_-RQ": { + "_-HE": { + "_-RQ:_-HE": null, + "_-RQ:_-HE/instance/init": "alternativa.tanks.game.utils.objectpool:PooledObject/PooledObject", + "_-RQ:_-HE/instance/_-DQ": "alternativa.tanks.game.utils.objectpool:PooledObject/storeInPool", + "_-RQ:_-HE/class/init": "alternativa.tanks.game.utils.objectpool:PooledObject/storeInPool" + }, + "_-Q9": { + "_-RQ:_-Q9": null, + "_-RQ:_-Q9/instance/init": "alternativa.tanks.game.utils.objectpool:ObjectPoolManager/ObjectPoolManager", + "_-RQ:_-Q9/instance/_-kP": "alternativa.tanks.game.utils.objectpool:ObjectPoolManager/getObject", + "_-RQ:_-Q9/instance/_-RQ:_-Q9/instance/_-Vn": "alternativa.tanks.game.utils.objectpool:ObjectPoolManager/private:getPool", + "_-RQ:_-Q9/class/init": "alternativa.tanks.game.utils.objectpool:ObjectPoolManager/private:getPool" + }, + "_-Va": { + "_-RQ:_-Va": null, + "_-RQ:_-Va/instance/init": "alternativa.tanks.game.utils.objectpool:ObjectPool/ObjectPool", + "_-RQ:_-Va/instance/_-kP": "alternativa.tanks.game.utils.objectpool:ObjectPool/getObject", + "_-RQ:_-Va/instance/clear": "alternativa.tanks.game.utils.objectpool:ObjectPool/clear", + "_-RQ:_-Va/instance/_-RQ:_-Us": "alternativa.tanks.game.utils.objectpool:ObjectPool/alternativa.tanks.game.utils.objectpool:putObject", + "_-RQ:_-Va/class/init": "alternativa.tanks.game.utils.objectpool:ObjectPool/alternativa.tanks.game.utils.objectpool:putObject" + } + }, + "_-92": { + "_-Gp": { + "_-92:_-Gp": null, + "_-92:_-Gp/instance/init": "alternativa.engine3d.animation.events:NotifyEvent/NotifyEvent", + "_-92:_-Gp/instance/notify/getter": "alternativa.engine3d.animation.events:NotifyEvent/notify/get", + "_-92:_-Gp/class/init": "alternativa.engine3d.animation.events:NotifyEvent/notify/get" + } + }, + "_-MF": { + "_-B3": { + "_-MF:_-B3": null, + "_-MF:_-B3/instance/init#1": "_codec.versions.version1.a3d.id:CodecParentId/CodecParentId", + "_-MF:_-B3/instance/init#0": "_codec.versions.version1.a3d.id:CodecParentId/init", + "_-MF:_-B3/instance/_-2Q": "_codec.versions.version1.a3d.id:CodecParentId/decode", + "_-MF:_-B3/instance/_-QN": "_codec.versions.version1.a3d.id:CodecParentId/encode", + "_-MF:_-B3/class/init": "_codec.versions.version1.a3d.id:CodecParentId/encode" + }, + "VectorCodecParentIdLevel2": { + "_-MF:VectorCodecParentIdLevel2": null, + "_-MF:VectorCodecParentIdLevel2/instance/init#0": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel2/VectorCodecParentIdLevel2", + "_-MF:VectorCodecParentIdLevel2/instance/init#1": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel2/init", + "_-MF:VectorCodecParentIdLevel2/instance/_-2Q": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel2/decode", + "_-MF:VectorCodecParentIdLevel2/instance/_-QN": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel2/encode", + "_-MF:VectorCodecParentIdLevel2/class/init": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel2/encode" + }, + "VectorCodecParentIdLevel3": { + "_-MF:VectorCodecParentIdLevel3": null, + "_-MF:VectorCodecParentIdLevel3/instance/init#0": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel3/VectorCodecParentIdLevel3", + "_-MF:VectorCodecParentIdLevel3/instance/init#1": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel3/init", + "_-MF:VectorCodecParentIdLevel3/instance/_-2Q": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel3/decode", + "_-MF:VectorCodecParentIdLevel3/instance/_-QN": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel3/encode", + "_-MF:VectorCodecParentIdLevel3/class/init": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel3/encode" + }, + "VectorCodecParentIdLevel1": { + "_-MF:VectorCodecParentIdLevel1": null, + "_-MF:VectorCodecParentIdLevel1/instance/init#0": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel1/VectorCodecParentIdLevel1", + "_-MF:VectorCodecParentIdLevel1/instance/init#1": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel1/init", + "_-MF:VectorCodecParentIdLevel1/instance/_-2Q": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel1/decode", + "_-MF:VectorCodecParentIdLevel1/instance/_-QN": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel1/encode", + "_-MF:VectorCodecParentIdLevel1/class/init": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel1/encode" + } + }, + "_-fk": { + "VectorCodecA3D2Level2": { + "_-fk:VectorCodecA3D2Level2": null, + "_-fk:VectorCodecA3D2Level2/instance/init#0": "_codec.versions.version2.a3d:VectorCodecA3D2Level2/VectorCodecA3D2Level2", + "_-fk:VectorCodecA3D2Level2/instance/init#1": "_codec.versions.version2.a3d:VectorCodecA3D2Level2/init", + "_-fk:VectorCodecA3D2Level2/instance/_-2Q": "_codec.versions.version2.a3d:VectorCodecA3D2Level2/decode", + "_-fk:VectorCodecA3D2Level2/instance/_-QN": "_codec.versions.version2.a3d:VectorCodecA3D2Level2/encode", + "_-fk:VectorCodecA3D2Level2/class/init": "_codec.versions.version2.a3d:VectorCodecA3D2Level2/encode" + }, + "VectorCodecA3D2Level3": { + "_-fk:VectorCodecA3D2Level3": null, + "_-fk:VectorCodecA3D2Level3/instance/init#0": "_codec.versions.version2.a3d:VectorCodecA3D2Level3/VectorCodecA3D2Level3", + "_-fk:VectorCodecA3D2Level3/instance/init#1": "_codec.versions.version2.a3d:VectorCodecA3D2Level3/init", + "_-fk:VectorCodecA3D2Level3/instance/_-2Q": "_codec.versions.version2.a3d:VectorCodecA3D2Level3/decode", + "_-fk:VectorCodecA3D2Level3/instance/_-QN": "_codec.versions.version2.a3d:VectorCodecA3D2Level3/encode", + "_-fk:VectorCodecA3D2Level3/class/init": "_codec.versions.version2.a3d:VectorCodecA3D2Level3/encode" + }, + "_-3w": { + "_-fk:_-3w": null, + "_-fk:_-3w/instance/init#1": "_codec.versions.version2.a3d:CodecA3D2/CodecA3D2", + "_-fk:_-3w/instance/init#0": "_codec.versions.version2.a3d:CodecA3D2/init", + "_-fk:_-3w/instance/_-2Q": "_codec.versions.version2.a3d:CodecA3D2/decode", + "_-fk:_-3w/instance/_-QN": "_codec.versions.version2.a3d:CodecA3D2/encode", + "_-fk:_-3w/class/init": "_codec.versions.version2.a3d:CodecA3D2/encode" + }, + "VectorCodecA3D2Level1": { + "_-fk:VectorCodecA3D2Level1": null, + "_-fk:VectorCodecA3D2Level1/instance/init#0": "_codec.versions.version2.a3d:VectorCodecA3D2Level1/VectorCodecA3D2Level1", + "_-fk:VectorCodecA3D2Level1/instance/init#1": "_codec.versions.version2.a3d:VectorCodecA3D2Level1/init", + "_-fk:VectorCodecA3D2Level1/instance/_-2Q": "_codec.versions.version2.a3d:VectorCodecA3D2Level1/decode", + "_-fk:VectorCodecA3D2Level1/instance/_-QN": "_codec.versions.version2.a3d:VectorCodecA3D2Level1/encode", + "_-fk:VectorCodecA3D2Level1/class/init": "_codec.versions.version2.a3d:VectorCodecA3D2Level1/encode" + } + }, + "_-AA": { + "_-10": { + "_-AA:_-10": null, + "_-AA:_-10/instance/init": "versions.version1.a3d:A3D/A3D", + "_-AA:_-10/instance/boxes/getter": "versions.version1.a3d:A3D/boxes/get", + "_-AA:_-10/instance/boxes/setter": "versions.version1.a3d:A3D/boxes/set", + "_-AA:_-10/instance/geometries/getter": "versions.version1.a3d:A3D/geometries/get", + "_-AA:_-10/instance/geometries/setter": "versions.version1.a3d:A3D/geometries/set", + "_-AA:_-10/instance/images/getter": "versions.version1.a3d:A3D/images/get", + "_-AA:_-10/instance/images/setter": "versions.version1.a3d:A3D/images/set", + "_-AA:_-10/instance/maps/getter": "versions.version1.a3d:A3D/maps/get", + "_-AA:_-10/instance/maps/setter": "versions.version1.a3d:A3D/maps/set", + "_-AA:_-10/instance/materials/getter": "versions.version1.a3d:A3D/materials/get", + "_-AA:_-10/instance/materials/setter": "versions.version1.a3d:A3D/materials/set", + "_-AA:_-10/instance/objects/getter": "versions.version1.a3d:A3D/objects/get", + "_-AA:_-10/instance/objects/setter": "versions.version1.a3d:A3D/objects/set", + "_-AA:_-10/instance/toString": "versions.version1.a3d:A3D/toString", + "_-AA:_-10/class/init": "versions.version1.a3d:A3D/toString" + } + }, + "_-My": { + "_-3-": { + "_-My:_-3-": null, + "_-My:_-3-/instance/init": "alternativa.tanks.game.utils.datacache:DataCache/DataCache", + "_-My:_-3-/instance/_-6i": "alternativa.tanks.game.utils.datacache:DataCache/getData", + "_-My:_-3-/instance/_-3P": "alternativa.tanks.game.utils.datacache:DataCache/getKeys", + "_-My:_-3-/instance/clear": "alternativa.tanks.game.utils.datacache:DataCache/clear", + "_-My:_-3-/class/init": "alternativa.tanks.game.utils.datacache:DataCache/clear" + }, + "_-8z": { + "_-My:_-8z": null, + "_-My:_-8z/instance/init": "alternativa.tanks.game.utils.datacache:IDataFactory/IDataFactory", + "_-My:_-8z/instance/_-Ef:createData": "alternativa.tanks.game.utils.datacache:IDataFactory/alternativa.tanks.game.utils.datacache:IDataFactory:createData", + "_-My:_-8z/class/init": "alternativa.tanks.game.utils.datacache:IDataFactory/alternativa.tanks.game.utils.datacache:IDataFactory:createData" + } + }, + "_-VD": { + "_-IX": { + "_-VD:_-IX": null, + "_-VD:_-IX/instance/init#0": "alternativa.protocol.codec:OptionalCodecDecorator/OptionalCodecDecorator", + "_-VD:_-IX/instance/_-QN": "alternativa.protocol.codec:OptionalCodecDecorator/encode", + "_-VD:_-IX/instance/_-2Q": "alternativa.protocol.codec:OptionalCodecDecorator/decode", + "_-VD:_-IX/instance/init#1": "alternativa.protocol.codec:OptionalCodecDecorator/init", + "_-VD:_-IX/class/init": "alternativa.protocol.codec:OptionalCodecDecorator/init" + } + }, + "_-OR": { + "_-om": { + "_-OR:_-om": null, + "_-OR:_-om/instance/init": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/TurretGraphicsComponent", + "_-OR:_-om/instance/_-5x": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/getObject3D", + "_-OR:_-om/instance/initComponent": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/initComponent", + "_-OR:_-om/instance/_-OR:_-om/_-KY": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/private:addToChassisSkin", + "_-OR:_-om/instance/addToGame": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/addToGame", + "_-OR:_-om/instance/removeFromGame": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/removeFromGame", + "_-OR:_-om/instance/render": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/render", + "_-OR:_-om/instance/setMaterial": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/setMaterial", + "_-OR:_-om/instance/addToScene": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/addToScene", + "_-OR:_-om/instance/removeFromScene": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/removeFromScene", + "_-OR:_-om/instance/_-91": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/setAlpha", + "_-OR:_-om/instance/setTurret": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/setTurret", + "_-OR:_-om/instance/_-CI": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/setTurretMaterials", + "_-OR:_-om/instance/_-dW/getter": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/turretMesh/get", + "_-OR:_-om/class/init": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent/turretMesh/get" + } + }, + "_-jT": { + "_-0K": { + "_-jT:_-0K": null, + "_-jT:_-0K/instance/init": "alternativa.tanks.game.weapons.ammunition.railgun.debug:DebugRailgunTargetEvaluator/DebugRailgunTargetEvaluator", + "_-jT:_-0K/instance/_-EJ": "alternativa.tanks.game.weapons.ammunition.railgun.debug:DebugRailgunTargetEvaluator/getTargetPriority", + "_-jT:_-0K/class/init": "alternativa.tanks.game.weapons.ammunition.railgun.debug:DebugRailgunTargetEvaluator/getTargetPriority" + } + }, + "_-MH": { + "A3D2IndexBuffer": { + "_-MH:A3D2IndexBuffer": null, + "_-MH:A3D2IndexBuffer/instance/init": "versions.version2.a3d.geometry:A3D2IndexBuffer/A3D2IndexBuffer", + "_-MH:A3D2IndexBuffer/instance/byteBuffer/getter": "versions.version2.a3d.geometry:A3D2IndexBuffer/byteBuffer/get", + "_-MH:A3D2IndexBuffer/instance/byteBuffer/setter": "versions.version2.a3d.geometry:A3D2IndexBuffer/byteBuffer/set", + "_-MH:A3D2IndexBuffer/instance/id/getter": "versions.version2.a3d.geometry:A3D2IndexBuffer/id/get", + "_-MH:A3D2IndexBuffer/instance/id/setter": "versions.version2.a3d.geometry:A3D2IndexBuffer/id/set", + "_-MH:A3D2IndexBuffer/instance/indexCount/getter": "versions.version2.a3d.geometry:A3D2IndexBuffer/indexCount/get", + "_-MH:A3D2IndexBuffer/instance/indexCount/setter": "versions.version2.a3d.geometry:A3D2IndexBuffer/indexCount/set", + "_-MH:A3D2IndexBuffer/instance/toString": "versions.version2.a3d.geometry:A3D2IndexBuffer/toString", + "_-MH:A3D2IndexBuffer/class/init": "versions.version2.a3d.geometry:A3D2IndexBuffer/toString" + }, + "A3D2VertexBuffer": { + "_-MH:A3D2VertexBuffer": null, + "_-MH:A3D2VertexBuffer/instance/init": "versions.version2.a3d.geometry:A3D2VertexBuffer/A3D2VertexBuffer", + "_-MH:A3D2VertexBuffer/instance/attributes/getter": "versions.version2.a3d.geometry:A3D2VertexBuffer/attributes/get", + "_-MH:A3D2VertexBuffer/instance/attributes/setter": "versions.version2.a3d.geometry:A3D2VertexBuffer/attributes/set", + "_-MH:A3D2VertexBuffer/instance/byteBuffer/getter": "versions.version2.a3d.geometry:A3D2VertexBuffer/byteBuffer/get", + "_-MH:A3D2VertexBuffer/instance/byteBuffer/setter": "versions.version2.a3d.geometry:A3D2VertexBuffer/byteBuffer/set", + "_-MH:A3D2VertexBuffer/instance/id/getter": "versions.version2.a3d.geometry:A3D2VertexBuffer/id/get", + "_-MH:A3D2VertexBuffer/instance/id/setter": "versions.version2.a3d.geometry:A3D2VertexBuffer/id/set", + "_-MH:A3D2VertexBuffer/instance/vertexCount/getter": "versions.version2.a3d.geometry:A3D2VertexBuffer/vertexCount/get", + "_-MH:A3D2VertexBuffer/instance/vertexCount/setter": "versions.version2.a3d.geometry:A3D2VertexBuffer/vertexCount/set", + "_-MH:A3D2VertexBuffer/instance/toString": "versions.version2.a3d.geometry:A3D2VertexBuffer/toString", + "_-MH:A3D2VertexBuffer/class/init": "versions.version2.a3d.geometry:A3D2VertexBuffer/toString" + }, + "A3D2VertexAttributes": { + "_-MH:A3D2VertexAttributes": null, + "_-MH:A3D2VertexAttributes/instance/init": "versions.version2.a3d.geometry:A3D2VertexAttributes/A3D2VertexAttributes", + "_-MH:A3D2VertexAttributes/instance/toString": "versions.version2.a3d.geometry:A3D2VertexAttributes/toString", + "_-MH:A3D2VertexAttributes/class/init": "versions.version2.a3d.geometry:A3D2VertexAttributes/toString" + } + }, + "_-Ie": { + "_-Nq": { + "_-Ie:_-Nq": null, + "_-Ie:_-Nq/instance/init": "versions.version2.a3d:A3D2/A3D2", + "_-Ie:_-Nq/instance/ambientLights/getter": "versions.version2.a3d:A3D2/ambientLights/get", + "_-Ie:_-Nq/instance/ambientLights/setter": "versions.version2.a3d:A3D2/ambientLights/set", + "_-Ie:_-Nq/instance/animationClips/getter": "versions.version2.a3d:A3D2/animationClips/get", + "_-Ie:_-Nq/instance/animationClips/setter": "versions.version2.a3d:A3D2/animationClips/set", + "_-Ie:_-Nq/instance/animationTracks/getter": "versions.version2.a3d:A3D2/animationTracks/get", + "_-Ie:_-Nq/instance/animationTracks/setter": "versions.version2.a3d:A3D2/animationTracks/set", + "_-Ie:_-Nq/instance/boxes/getter": "versions.version2.a3d:A3D2/boxes/get", + "_-Ie:_-Nq/instance/boxes/setter": "versions.version2.a3d:A3D2/boxes/set", + "_-Ie:_-Nq/instance/cubeMaps/getter": "versions.version2.a3d:A3D2/cubeMaps/get", + "_-Ie:_-Nq/instance/cubeMaps/setter": "versions.version2.a3d:A3D2/cubeMaps/set", + "_-Ie:_-Nq/instance/decals/getter": "versions.version2.a3d:A3D2/decals/get", + "_-Ie:_-Nq/instance/decals/setter": "versions.version2.a3d:A3D2/decals/set", + "_-Ie:_-Nq/instance/directionalLights/getter": "versions.version2.a3d:A3D2/directionalLights/get", + "_-Ie:_-Nq/instance/directionalLights/setter": "versions.version2.a3d:A3D2/directionalLights/set", + "_-Ie:_-Nq/instance/images/getter": "versions.version2.a3d:A3D2/images/get", + "_-Ie:_-Nq/instance/images/setter": "versions.version2.a3d:A3D2/images/set", + "_-Ie:_-Nq/instance/indexBuffers/getter": "versions.version2.a3d:A3D2/indexBuffers/get", + "_-Ie:_-Nq/instance/indexBuffers/setter": "versions.version2.a3d:A3D2/indexBuffers/set", + "_-Ie:_-Nq/instance/joints/getter": "versions.version2.a3d:A3D2/joints/get", + "_-Ie:_-Nq/instance/joints/setter": "versions.version2.a3d:A3D2/joints/set", + "_-Ie:_-Nq/instance/maps/getter": "versions.version2.a3d:A3D2/maps/get", + "_-Ie:_-Nq/instance/maps/setter": "versions.version2.a3d:A3D2/maps/set", + "_-Ie:_-Nq/instance/materials/getter": "versions.version2.a3d:A3D2/materials/get", + "_-Ie:_-Nq/instance/materials/setter": "versions.version2.a3d:A3D2/materials/set", + "_-Ie:_-Nq/instance/meshes/getter": "versions.version2.a3d:A3D2/meshes/get", + "_-Ie:_-Nq/instance/meshes/setter": "versions.version2.a3d:A3D2/meshes/set", + "_-Ie:_-Nq/instance/objects/getter": "versions.version2.a3d:A3D2/objects/get", + "_-Ie:_-Nq/instance/objects/setter": "versions.version2.a3d:A3D2/objects/set", + "_-Ie:_-Nq/instance/omniLights/getter": "versions.version2.a3d:A3D2/omniLights/get", + "_-Ie:_-Nq/instance/omniLights/setter": "versions.version2.a3d:A3D2/omniLights/set", + "_-Ie:_-Nq/instance/skins/getter": "versions.version2.a3d:A3D2/skins/get", + "_-Ie:_-Nq/instance/skins/setter": "versions.version2.a3d:A3D2/skins/set", + "_-Ie:_-Nq/instance/spotLights/getter": "versions.version2.a3d:A3D2/spotLights/get", + "_-Ie:_-Nq/instance/spotLights/setter": "versions.version2.a3d:A3D2/spotLights/set", + "_-Ie:_-Nq/instance/sprites/getter": "versions.version2.a3d:A3D2/sprites/get", + "_-Ie:_-Nq/instance/sprites/setter": "versions.version2.a3d:A3D2/sprites/set", + "_-Ie:_-Nq/instance/vertexBuffers/getter": "versions.version2.a3d:A3D2/vertexBuffers/get", + "_-Ie:_-Nq/instance/vertexBuffers/setter": "versions.version2.a3d:A3D2/vertexBuffers/set", + "_-Ie:_-Nq/instance/toString": "versions.version2.a3d:A3D2/toString", + "_-Ie:_-Nq/class/init": "versions.version2.a3d:A3D2/toString" + } + }, + "_-mH": { + "_-qi": { + "_-mH:_-qi": null, + "_-mH:_-qi/instance/init": "alternativa.tanks.game.weapons.ammunition:IAOEAmmunitionCallback/IAOEAmmunitionCallback", + "_-mH:_-qi/instance/_-Hp:_-IK": "alternativa.tanks.game.weapons.ammunition:IAOEAmmunitionCallback/alternativa.tanks.game.weapons.ammunition:IAOEAmmunitionCallback:onHit", + "_-mH:_-qi/class/init": "alternativa.tanks.game.weapons.ammunition:IAOEAmmunitionCallback/alternativa.tanks.game.weapons.ammunition:IAOEAmmunitionCallback:onHit" + } + }, + "_-o8": { + "_-Bh": { + "_-o8:_-Bh": null, + "_-o8:_-Bh/instance/init": "alternativa.osgi.service.dump.dumper:BundleDumper/BundleDumper", + "_-o8:_-Bh/instance/dump": "alternativa.osgi.service.dump.dumper:BundleDumper/dump", + "_-o8:_-Bh/instance/dumperName/getter": "alternativa.osgi.service.dump.dumper:BundleDumper/dumperName/get", + "_-o8:_-Bh/class/init": "alternativa.osgi.service.dump.dumper:BundleDumper/dumperName/get" + }, + "_-Ut": { + "_-o8:_-Ut": null, + "_-o8:_-Ut/instance/init": "alternativa.osgi.service.dump.dumper:ServiceDumper/ServiceDumper", + "_-o8:_-Ut/instance/dump": "alternativa.osgi.service.dump.dumper:ServiceDumper/dump", + "_-o8:_-Ut/instance/dumperName/getter": "alternativa.osgi.service.dump.dumper:ServiceDumper/dumperName/get", + "_-o8:_-Ut/class/init": "alternativa.osgi.service.dump.dumper:ServiceDumper/dumperName/get" + } + }, + "_-am": { + "_-Fh": { + "_-am:_-Fh": null, + "_-am:_-Fh/instance/init": "alternativa.engine3d.loaders:ParserA3D/ParserA3D", + "_-am:_-Fh/instance/_-Om": "alternativa.engine3d.loaders:ParserA3D/parse", + "_-am:_-Fh/instance/_-Yy": "alternativa.engine3d.loaders:ParserA3D/getObjectByName", + "_-am:_-Fh/instance/_-am:_-Fh/init": "alternativa.engine3d.loaders:ParserA3D/private:init", + "_-am:_-Fh/instance/_-am:_-Fh/parseVersion1": "alternativa.engine3d.loaders:ParserA3D/private:parseVersion1", + "_-am:_-Fh/instance/_-am:_-Fh/_-Ol": "alternativa.engine3d.loaders:ParserA3D/private:doParse2_0", + "_-am:_-Fh/instance/_-am:_-Fh/_-V6": "alternativa.engine3d.loaders:ParserA3D/private:parseSurfaceJoints", + "_-am:_-Fh/instance/_-am:_-Fh/_-5V": "alternativa.engine3d.loaders:ParserA3D/private:parseVersionOver1", + "_-am:_-Fh/instance/_-am:_-Fh/parseVersion2_0": "alternativa.engine3d.loaders:ParserA3D/private:parseVersion2_0", + "_-am:_-Fh/instance/_-am:_-Fh/_-Rh": "alternativa.engine3d.loaders:ParserA3D/private:parseBoundBox", + "_-am:_-Fh/instance/_-am:_-Fh/_-ET": "alternativa.engine3d.loaders:ParserA3D/private:decomposeTransformation", + "_-am:_-Fh/instance/_-am:_-Fh/_-Ma": "alternativa.engine3d.loaders:ParserA3D/private:decomposeBindTransformation", + "_-am:_-Fh/instance/_-am:_-Fh/_-cN": "alternativa.engine3d.loaders:ParserA3D/private:parseMesh", + "_-am:_-Fh/instance/_-am:_-Fh/_-hi": "alternativa.engine3d.loaders:ParserA3D/private:parseSkin", + "_-am:_-Fh/instance/_-am:_-Fh/_-Jp": "alternativa.engine3d.loaders:ParserA3D/private:traceGeometry", + "_-am:_-Fh/instance/_-am:_-Fh/_-DD": "alternativa.engine3d.loaders:ParserA3D/private:parseGeometry", + "_-am:_-Fh/instance/_-am:_-Fh/_-L2": "alternativa.engine3d.loaders:ParserA3D/private:parseMap", + "_-am:_-Fh/instance/_-am:_-Fh/_-dI": "alternativa.engine3d.loaders:ParserA3D/private:parseMaterial", + "_-am:_-Fh/class/init": "alternativa.engine3d.loaders:ParserA3D/private:parseMaterial", + "_-am:_-Fh/class/_-am:_-Fh/_-a5": "alternativa.engine3d.loaders:ParserA3D/private:convert1_2", + "_-am:_-Fh/class/_-am:_-Fh/_-pc": "alternativa.engine3d.loaders:ParserA3D/private:idToInt", + "_-am:_-Fh/class/_-am:_-Fh/_-PV": "alternativa.engine3d.loaders:ParserA3D/private:idToLong", + "_-am:_-Fh/class/_-am:_-Fh/_-0m": "alternativa.engine3d.loaders:ParserA3D/private:convertParent1_2", + "_-am:_-Fh/class/_-am:_-Fh/_-qD": "alternativa.engine3d.loaders:ParserA3D/private:convertSurfaces1_2" + }, + "_-Jd": { + "_-am:_-Jd": null, + "_-am:_-Jd/instance/init": "alternativa.engine3d.loaders:ParserCollada/ParserCollada", + "_-am:_-Jd/instance/in": "alternativa.engine3d.loaders:ParserCollada/clean", + "_-am:_-Jd/instance/_-gi": "alternativa.engine3d.loaders:ParserCollada/getObjectLayer", + "_-am:_-Jd/instance/_-am:_-Jd/init": "alternativa.engine3d.loaders:ParserCollada/private:init", + "_-am:_-Jd/instance/_-Om": "alternativa.engine3d.loaders:ParserCollada/parse", + "_-am:_-Jd/instance/_-am:_-Jd/addObject": "alternativa.engine3d.loaders:ParserCollada/private:addObject", + "_-am:_-Jd/instance/_-am:_-Jd/_-EG": "alternativa.engine3d.loaders:ParserCollada/private:addObjects", + "_-am:_-Jd/instance/_-am:_-Jd/_-Uc": "alternativa.engine3d.loaders:ParserCollada/private:hasSkinsInChildren", + "_-am:_-Jd/instance/_-am:_-Jd/_-5j": "alternativa.engine3d.loaders:ParserCollada/private:parseNodes", + "_-am:_-Jd/instance/_-am:_-Jd/_-He": "alternativa.engine3d.loaders:ParserCollada/private:trimPath", + "_-am:_-Jd/instance/_-am:_-Jd/_-7m": "alternativa.engine3d.loaders:ParserCollada/private:parseMaterials", + "_-am:_-Jd/instance/_-am:_-Jd/_-L-": "alternativa.engine3d.loaders:ParserCollada/private:fixURL", + "_-am:_-Jd/instance/_-am:_-Jd/_-HU": "alternativa.engine3d.loaders:ParserCollada/private:mergePath", + "_-am:_-Jd/instance/_-am:_-Jd/_-gn": "alternativa.engine3d.loaders:ParserCollada/private:resolveURL", + "_-am:_-Jd/instance/_-Yy": "alternativa.engine3d.loaders:ParserCollada/getObjectByName", + "_-am:_-Jd/instance/_-9q": "alternativa.engine3d.loaders:ParserCollada/getAnimationByObject", + "_-am:_-Jd/class/init": "alternativa.engine3d.loaders:ParserCollada/getAnimationByObject", + "_-am:_-Jd/class/_-FF": "alternativa.engine3d.loaders:ParserCollada/parseAnimation", + "_-am:_-Jd/class/_-am:_-Jd/_-Oo": "alternativa.engine3d.loaders:ParserCollada/private:collectAnimation" + }, + "_-qn": { + "_-am:_-qn": null, + "_-am:_-qn/instance/init": "alternativa.engine3d.loaders:ParserMaterial/ParserMaterial", + "_-am:_-qn/instance/http://alternativaplatform.com/en/alternativa3d:fillResources": "alternativa.engine3d.loaders:ParserMaterial/alternativa3d:fillResources", + "_-am:_-qn/instance/http://alternativaplatform.com/en/alternativa3d:collectDraws": "alternativa.engine3d.loaders:ParserMaterial/alternativa3d:collectDraws", + "_-am:_-qn/class/init": "alternativa.engine3d.loaders:ParserMaterial/alternativa3d:collectDraws" + } + }, + "_-GE": { + "_-RN": { + "_-GE:_-RN": null, + "_-GE:_-RN/instance/init#1": "alternativa.protocol.codec.complex:ByteArrayCodec/ByteArrayCodec", + "_-GE:_-RN/instance/_-QN": "alternativa.protocol.codec.complex:ByteArrayCodec/encode", + "_-GE:_-RN/instance/_-2Q": "alternativa.protocol.codec.complex:ByteArrayCodec/decode", + "_-GE:_-RN/instance/init#0": "alternativa.protocol.codec.complex:ByteArrayCodec/init", + "_-GE:_-RN/class/init": "alternativa.protocol.codec.complex:ByteArrayCodec/init" + }, + "_-Tf": { + "_-GE:_-Tf": null, + "_-GE:_-Tf/instance/init#1": "alternativa.protocol.codec.complex:StringCodec/StringCodec", + "_-GE:_-Tf/instance/_-QN": "alternativa.protocol.codec.complex:StringCodec/encode", + "_-GE:_-Tf/instance/_-2Q": "alternativa.protocol.codec.complex:StringCodec/decode", + "_-GE:_-Tf/instance/init#0": "alternativa.protocol.codec.complex:StringCodec/init", + "_-GE:_-Tf/class/init": "alternativa.protocol.codec.complex:StringCodec/init" + } + }, + "_-d8": { + "_-R3": { + "_-d8:_-R3": null, + "_-d8:_-R3/instance/init": "platform.client.a3d.osgi:Activator/Activator", + "_-d8:_-R3/instance/start": "platform.client.a3d.osgi:Activator/start", + "_-d8:_-R3/instance/stop": "platform.client.a3d.osgi:Activator/stop", + "_-d8:_-R3/class/init": "platform.client.a3d.osgi:Activator/stop" + } + }, + "_-FM": { + "_-fl": { + "_-FM:_-fl": null, + "_-FM:_-fl/instance/init": "alternativa.protocol.osgi:ProtocolActivator/ProtocolActivator", + "_-FM:_-fl/instance/start": "alternativa.protocol.osgi:ProtocolActivator/start", + "_-FM:_-fl/instance/stop": "alternativa.protocol.osgi:ProtocolActivator/stop", + "_-FM:_-fl/class/init": "alternativa.protocol.osgi:ProtocolActivator/stop" + } + }, + "_-HW": { + "_-pf": { + "_-HW:_-pf": null, + "_-HW:_-pf/instance/init": "alternativa.osgi.bundle:BundleDescriptor/BundleDescriptor", + "_-HW:_-pf/instance/name/getter": "alternativa.osgi.bundle:BundleDescriptor/name/get", + "_-HW:_-pf/instance/activators/getter": "alternativa.osgi.bundle:BundleDescriptor/activators/get", + "_-HW:_-pf/instance/properties/getter": "alternativa.osgi.bundle:BundleDescriptor/properties/get", + "_-HW:_-pf/class/init": "alternativa.osgi.bundle:BundleDescriptor/properties/get" + }, + "_-pF": { + "_-HW:_-pF": null, + "_-HW:_-pF/instance/init": "alternativa.osgi.bundle:IBundleActivator/IBundleActivator", + "_-HW:_-pF/instance/_-1W:start": "alternativa.osgi.bundle:IBundleActivator/alternativa.osgi.bundle:IBundleActivator:start", + "_-HW:_-pF/instance/_-1W:stop": "alternativa.osgi.bundle:IBundleActivator/alternativa.osgi.bundle:IBundleActivator:stop", + "_-HW:_-pF/class/init": "alternativa.osgi.bundle:IBundleActivator/alternativa.osgi.bundle:IBundleActivator:stop" + }, + "_-C": { + "_-HW:_-C": null, + "_-HW:_-C/instance/init": "alternativa.osgi.bundle:IBundleDescriptor/IBundleDescriptor", + "_-HW:_-C/instance/_-jS:name/getter": "alternativa.osgi.bundle:IBundleDescriptor/alternativa.osgi.bundle:IBundleDescriptor:name/get", + "_-HW:_-C/instance/_-jS:activators/getter": "alternativa.osgi.bundle:IBundleDescriptor/alternativa.osgi.bundle:IBundleDescriptor:activators/get", + "_-HW:_-C/instance/_-jS:properties/getter": "alternativa.osgi.bundle:IBundleDescriptor/alternativa.osgi.bundle:IBundleDescriptor:properties/get", + "_-HW:_-C/class/init": "alternativa.osgi.bundle:IBundleDescriptor/alternativa.osgi.bundle:IBundleDescriptor:properties/get" + } + }, + "_-Ks": { + "_-i3": { + "_-Ks:_-i3": null, + "_-Ks:_-i3/instance/init": "alternativa.engine3d.collisions:EllipsoidCollider/EllipsoidCollider", + "_-Ks:_-i3/instance/http://alternativaplatform.com/en/alternativa3d:_-fh": "alternativa.engine3d.collisions:EllipsoidCollider/alternativa3d:calculateSphere", + "_-Ks:_-i3/instance/_-Ks:_-i3/instance/_-nj": "alternativa.engine3d.collisions:EllipsoidCollider/private:prepare", + "_-Ks:_-i3/instance/_-J": "alternativa.engine3d.collisions:EllipsoidCollider/calculateDestination", + "_-Ks:_-i3/instance/_-NU": "alternativa.engine3d.collisions:EllipsoidCollider/getCollision", + "_-Ks:_-i3/instance/_-Ks:_-i3/instance/_-WK": "alternativa.engine3d.collisions:EllipsoidCollider/private:checkCollision", + "_-Ks:_-i3/class/init": "alternativa.engine3d.collisions:EllipsoidCollider/private:checkCollision" + } + }, + "_-KA": { + "_-FW": {}, + "_-jr": { + "_-KA:_-jr": null, + "_-KA:_-jr/instance/init": "alternativa.physics.collision.types:RayHit/RayHit", + "_-KA:_-jr/instance/copy": "alternativa.physics.collision.types:RayHit/copy", + "_-KA:_-jr/class/init": "alternativa.physics.collision.types:RayHit/copy" + } + }, + "_-K8": { + "_-e5": { + "_-K8:_-e5": null, + "_-K8:_-e5/instance/init#0": "alternativa.tanks.game.effects.debug:FloatingTextEffect/FloatingTextEffect", + "_-K8:_-e5/instance/init#1": "alternativa.tanks.game.effects.debug:FloatingTextEffect/init", + "_-K8:_-e5/instance/_-U8": "alternativa.tanks.game.effects.debug:FloatingTextEffect/addMessage", + "_-K8:_-e5/instance/addedToRenderSystem": "alternativa.tanks.game.effects.debug:FloatingTextEffect/addedToRenderSystem", + "_-K8:_-e5/instance/play": "alternativa.tanks.game.effects.debug:FloatingTextEffect/play", + "_-K8:_-e5/instance/destroy": "alternativa.tanks.game.effects.debug:FloatingTextEffect/destroy", + "_-K8:_-e5/class/init": "alternativa.tanks.game.effects.debug:FloatingTextEffect/destroy" + } + }, + "_-7A": { + "_-3e": { + "_-7A:_-3e": null, + "_-7A:_-3e/instance/init": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/ITurretPhysicsComponent", + "_-7A:_-3e/instance/_-7C:setTurret": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:setTurret", + "_-7A:_-3e/instance/_-7C:getTurretDirection": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getTurretDirection", + "_-7A:_-3e/instance/_-7C:setTurretDirection": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:setTurretDirection", + "_-7A:_-3e/instance/_-7C:setTurretControls": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:setTurretControls", + "_-7A:_-3e/instance/_-7C:centerTurret": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:centerTurret", + "_-7A:_-3e/instance/_-7C:setTurretMountPoint": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:setTurretMountPoint", + "_-7A:_-3e/instance/_-7C:getTurretPrimitives": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getTurretPrimitives", + "_-7A:_-3e/instance/_-7C:getChassisMatrix": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getChassisMatrix", + "_-7A:_-3e/instance/_-7C:getInterpolatedTurretDirection": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getInterpolatedTurretDirection", + "_-7A:_-3e/instance/_-7C:getSkinMountPoint": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getSkinMountPoint", + "_-7A:_-3e/instance/_-7C:getGunData": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getGunData", + "_-7A:_-3e/instance/_-7C:getGunMuzzleData": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getGunMuzzleData", + "_-7A:_-3e/instance/_-7C:getGunMuzzleData2": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getGunMuzzleData2", + "_-7A:_-3e/instance/_-7C:getBarrelLength": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getBarrelLength", + "_-7A:_-3e/instance/_-7C:getBarrelCount": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getBarrelCount", + "_-7A:_-3e/class/init": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent/alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent:getBarrelCount" + }, + "_-U-": { + "_-7A:_-U-": null, + "_-7A:_-U-/instance/init": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/InterpolationComponent", + "_-7A:_-U-/instance/_-Ea": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/setChassisController", + "_-7A:_-U-/instance/_-Nc": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/setTurretController", + "_-7A:_-U-/instance/updateBeforeSimulation": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/updateBeforeSimulation", + "_-7A:_-U-/instance/updateAfterSimulation": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/updateAfterSimulation", + "_-7A:_-U-/instance/interpolate": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/interpolate", + "_-7A:_-U-/instance/addToGame": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/addToGame", + "_-7A:_-U-/instance/removeFromGame": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/removeFromGame", + "_-7A:_-U-/instance/initComponent": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/initComponent", + "_-7A:_-U-/instance/_-7A:_-U-/instance/_-lq": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/private:onActivate", + "_-7A:_-U-/instance/_-7A:_-U-/instance/_-lI": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/private:onDeactivate", + "_-7A:_-U-/instance/_-7A:_-U-/instance/addToScene": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/private:addToScene", + "_-7A:_-U-/instance/_-7A:_-U-/instance/removeFromScene": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/private:removeFromScene", + "_-7A:_-U-/class/init": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent/private:removeFromScene" + }, + "_-Is": { + "_-7A:_-Is": null, + "_-7A:_-Is/instance/init": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/IChassisPhysicsComponent", + "_-7A:_-Is/instance/_-KS:setTurret": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:setTurret", + "_-7A:_-Is/instance/_-KS:_-Cj": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getTurretMountPoint", + "_-7A:_-Is/instance/_-KS:_-pB": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getTurretSkinMountPoint", + "_-7A:_-Is/instance/_-KS:_-Cd": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getInterpolatedMatrix", + "_-7A:_-Is/instance/_-KS:getBody": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getBody", + "_-7A:_-Is/instance/_-KS:_-P0": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getBoundPoints", + "_-7A:_-Is/instance/_-KS:setDetailedCollisionGroup": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:setDetailedCollisionGroup", + "_-7A:_-Is/instance/_-KS:_-Ln": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getWheelDeltaZ", + "_-7A:_-Is/class/init": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent/alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent:getWheelDeltaZ" + } + }, + "_-io": { + "_-Cs": { + "_-io:_-Cs": null, + "_-io:_-Cs/instance/init": "alternativa.osgi.service.dump:DumpService/DumpService", + "_-io:_-Cs/instance/_-Wc": "alternativa.osgi.service.dump:DumpService/registerDumper", + "_-io:_-Cs/instance/_-V3": "alternativa.osgi.service.dump:DumpService/unregisterDumper", + "_-io:_-Cs/instance/dump": "alternativa.osgi.service.dump:DumpService/dump", + "_-io:_-Cs/instance/_-Ny/getter": "alternativa.osgi.service.dump:DumpService/dumpersByName/get", + "_-io:_-Cs/instance/_-Zc/getter": "alternativa.osgi.service.dump:DumpService/dumpersList/get", + "_-io:_-Cs/instance/_-io:_-Cs/instance/_-7I": "alternativa.osgi.service.dump:DumpService/private:getDumperList", + "_-io:_-Cs/instance/_-io:_-Cs/instance/_-VC": "alternativa.osgi.service.dump:DumpService/private:hadleConsoleCommand", + "_-io:_-Cs/class/init": "alternativa.osgi.service.dump:DumpService/private:hadleConsoleCommand" + }, + "_-6y": { + "_-io:_-6y": null, + "_-io:_-6y/instance/init": "alternativa.osgi.service.dump:IDumper/IDumper", + "_-io:_-6y/instance/_-Ga:dump": "alternativa.osgi.service.dump:IDumper/alternativa.osgi.service.dump:IDumper:dump", + "_-io:_-6y/instance/_-Ga:dumperName/getter": "alternativa.osgi.service.dump:IDumper/alternativa.osgi.service.dump:IDumper:dumperName/get", + "_-io:_-6y/class/init": "alternativa.osgi.service.dump:IDumper/alternativa.osgi.service.dump:IDumper:dumperName/get" + }, + "_-39": { + "_-io:_-39": null, + "_-io:_-39/instance/init": "alternativa.osgi.service.dump:IDumpService/IDumpService", + "_-io:_-39/instance/_-OT:_-Wc": "alternativa.osgi.service.dump:IDumpService/alternativa.osgi.service.dump:IDumpService:registerDumper", + "_-io:_-39/instance/_-OT:_-V3": "alternativa.osgi.service.dump:IDumpService/alternativa.osgi.service.dump:IDumpService:unregisterDumper", + "_-io:_-39/instance/_-OT:dump": "alternativa.osgi.service.dump:IDumpService/alternativa.osgi.service.dump:IDumpService:dump", + "_-io:_-39/instance/_-OT:_-Ny/getter": "alternativa.osgi.service.dump:IDumpService/alternativa.osgi.service.dump:IDumpService:dumpersByName/get", + "_-io:_-39/instance/_-OT:_-Zc/getter": "alternativa.osgi.service.dump:IDumpService/alternativa.osgi.service.dump:IDumpService:dumpersList/get", + "_-io:_-39/class/init": "alternativa.osgi.service.dump:IDumpService/alternativa.osgi.service.dump:IDumpService:dumpersList/get" + } + }, + "_-85": { + "_-YM": { + "_-85:_-YM": null, + "_-85:_-YM/instance/init": "alternativa.tanks.game.weapons.ammunition.railgun:MultybodyRaycastFilter/MultybodyRaycastFilter", + "_-85:_-YM/instance/_-0w": "alternativa.tanks.game.weapons.ammunition.railgun:MultybodyRaycastFilter/acceptRayHit", + "_-85:_-YM/class/init": "alternativa.tanks.game.weapons.ammunition.railgun:MultybodyRaycastFilter/acceptRayHit" + } + }, + "_-lS": { + "_-h2": { + "_-lS:_-h2": null, + "_-lS:_-h2/instance/init": "alternativa.tanks.game.subsystems.timesystem:TimeSystem/TimeSystem", + "_-lS:_-h2/instance/start": "alternativa.tanks.game.subsystems.timesystem:TimeSystem/start", + "_-lS:_-h2/instance/run": "alternativa.tanks.game.subsystems.timesystem:TimeSystem/run", + "_-lS:_-h2/class/init": "alternativa.tanks.game.subsystems.timesystem:TimeSystem/run" + } + }, + "_-TX": { + "_-R3": { + "_-TX:_-R3": null, + "_-TX:_-R3/instance/init": "platform.clients.fp10.libraries.alternativaprotocol:Activator/Activator", + "_-TX:_-R3/instance/start": "platform.clients.fp10.libraries.alternativaprotocol:Activator/start", + "_-TX:_-R3/instance/stop": "platform.clients.fp10.libraries.alternativaprotocol:Activator/stop", + "_-TX:_-R3/class/init": "platform.clients.fp10.libraries.alternativaprotocol:Activator/stop" + } + }, + "tanki2-14": { + "Preloader": { + "Preloader": null, + "Preloader/instance/init": "Preloader/Preloader", + "Preloader/instance/_-QU": "Preloader/setProgress", + "Preloader/instance/Preloader/_-Dq": "Preloader/private:onComplete", + "Preloader/instance/_-fE": "Preloader/addProgress", + "Preloader/instance/Preloader/_-Id": "Preloader/private:onAddToStage", + "Preloader/instance/Preloader/_-99": "Preloader/private:onRemoveFromStage", + "Preloader/instance/Preloader/_-ba": "Preloader/private:onEnterFrame", + "Preloader/instance/Preloader/_-MO": "Preloader/private:onEnterFrameSwitch", + "Preloader/instance/Preloader/_-7B": "Preloader/private:onResize", + "Preloader/class/init": "Preloader/private:onResize" + } + }, + "tanki2-158": { + "_-M9": { + "_-M9": null, + "_-M9/instance/init": "Preloader_EmbedProgress/Preloader_EmbedProgress", + "_-M9/class/init": "Preloader_EmbedProgress/Preloader_EmbedProgress" + } + }, + "tanki2-157": { + "_-9C": { + "_-9C": null, + "_-9C/instance/init": "Preloader_EmbedPreloaderA/Preloader_EmbedPreloaderA", + "_-9C/class/init": "Preloader_EmbedPreloaderA/Preloader_EmbedPreloaderA" + } + }, + "tanki2-0": { + "TanksTestingTool": { + "TanksTestingTool": null, + "TanksTestingTool/instance/init": "TanksTestingTool/TanksTestingTool", + "TanksTestingTool/instance/TanksTestingTool/instance/_-9x": "TanksTestingTool/private:onContextCreate", + "TanksTestingTool/instance/TanksTestingTool/instance/_-5D": "TanksTestingTool/private:initOptionsSupport", + "TanksTestingTool/instance/TanksTestingTool/instance/_-27": "TanksTestingTool/private:onControllerSettingsChange", + "TanksTestingTool/instance/TanksTestingTool/instance/_-1B": "TanksTestingTool/private:onLightSettingsChange", + "TanksTestingTool/instance/TanksTestingTool/instance/_-JG": "TanksTestingTool/private:onFogSettingsChange", + "TanksTestingTool/instance/TanksTestingTool/instance/_-nx": "TanksTestingTool/private:onFogTextureChange", + "TanksTestingTool/instance/TanksTestingTool/instance/_-PK": "TanksTestingTool/private:initStage", + "TanksTestingTool/instance/TanksTestingTool/instance/_-l2": "TanksTestingTool/private:initClient", + "TanksTestingTool/instance/TanksTestingTool/instance/_-33": "TanksTestingTool/private:initConsole", + "TanksTestingTool/instance/TanksTestingTool/instance/_-Bw": "TanksTestingTool/private:loadConfig", + "TanksTestingTool/instance/TanksTestingTool/instance/_-JY": "TanksTestingTool/private:onConfigLoadingComplete", + "TanksTestingTool/instance/TanksTestingTool/instance/_-lN": "TanksTestingTool/private:initHUD", + "TanksTestingTool/instance/TanksTestingTool/instance/_-Ze": "TanksTestingTool/private:onKeyDown", + "TanksTestingTool/instance/TanksTestingTool/instance/_-GO": "TanksTestingTool/private:onClickFullScreenButton", + "TanksTestingTool/instance/TanksTestingTool/instance/_-Tp": "TanksTestingTool/private:onFullScreenChange", + "TanksTestingTool/instance/TanksTestingTool/instance/_-gC": "TanksTestingTool/private:onClickNextTankButton", + "TanksTestingTool/instance/TanksTestingTool/instance/_-G-": "TanksTestingTool/private:initGame", + "TanksTestingTool/instance/TanksTestingTool/instance/_-ba": "TanksTestingTool/private:onEnterFrame", + "TanksTestingTool/instance/TanksTestingTool/instance/_-7B": "TanksTestingTool/private:onResize", + "TanksTestingTool/class/init": "TanksTestingTool/private:onResize" + } + }, + "tanki2-159": { + "_-Lz": { + "_-Lz": null, + "_-Lz/instance/init": "Preloader_EmbedPreloader/Preloader_EmbedPreloader", + "_-Lz/class/init": "Preloader_EmbedPreloader/Preloader_EmbedPreloader" + } + } +} diff --git a/packagemap.json b/packagemap.json new file mode 100644 index 0000000..49a5c50 --- /dev/null +++ b/packagemap.json @@ -0,0 +1,696 @@ +{ + "_-Z2:_-oE": "alternativa.engine3d.shadows:StaticShadowRenderer", + "_-Z2:_-Nj": "alternativa.engine3d.shadows:ShadowsSystem", + "_-Z2:_-cD": "alternativa.engine3d.shadows:DirectionalShadowRenderer", + "_-Z2:_-ZC": "alternativa.engine3d.shadows:ShadowRenderer", + "_-eb:_-Mr": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundComponent", + "_-eb:_-9U": "alternativa.tanks.game.weapons.ammunition.energy:EnergyRoundData", + "_-eb:_-7a": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffectsFactory", + "_-eb:_-Yp": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundEffect", + "_-eb:_-ka": "alternativa.tanks.game.weapons.ammunition.energy:EnergyAmmunitionComponent", + "_-eb:_-Cm": "alternativa.tanks.game.weapons.ammunition.energy:IEnergyRoundCallback", + "while:_-O8": "alternativa.physics.collision.colliders:BoxSphereCollider", + "while:_-dj": "alternativa.physics.collision.colliders:BoxCollider", + "while:_-GQ": "alternativa.physics.collision.colliders:BoxRectCollider", + "while:_-6O": "alternativa.physics.collision.colliders:SphereSphereCollider", + "while:_-Ph": "alternativa.physics.collision.colliders:BoxBoxCollider", + "_-VM:VectorCodecA3D2SkinLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel1", + "_-VM:VectorCodecA3D2DirectionalLightLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel3", + "_-VM:VectorCodecA3D2MeshLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel1", + "_-VM:VectorCodecA3D2DecalLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel3", + "_-VM:VectorCodecA3D2SkinLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel2", + "_-VM:CodecA3D2Joint": "_codec.versions.version2.a3d.objects:CodecA3D2Joint", + "_-VM:VectorCodecA3D2OmniLightLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel3", + "_-VM:VectorCodecA3D2DecalLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel2", + "_-VM:VectorCodecA3D2AmbientLightLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel1", + "_-VM:VectorCodecA3D2JointLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel3", + "_-VM:VectorCodecA3D2SpotLightLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel2", + "_-VM:VectorCodecA3D2BoxLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel3", + "_-VM:VectorCodecA3D2JointBindTransformLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel1", + "_-VM:CodecA3D2Surface": "_codec.versions.version2.a3d.objects:CodecA3D2Surface", + "_-VM:CodecA3D2DirectionalLight": "_codec.versions.version2.a3d.objects:CodecA3D2DirectionalLight", + "_-VM:VectorCodecA3D2ObjectLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel3", + "_-VM:VectorCodecA3D2ObjectLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel1", + "_-VM:CodecA3D2Mesh": "_codec.versions.version2.a3d.objects:CodecA3D2Mesh", + "_-VM:VectorCodecA3D2OmniLightLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel1", + "_-VM:VectorCodecA3D2SkinLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SkinLevel3", + "_-VM:CodecA3D2Transform": "_codec.versions.version2.a3d.objects:CodecA3D2Transform", + "_-VM:CodecA3D2Sprite": "_codec.versions.version2.a3d.objects:CodecA3D2Sprite", + "_-VM:VectorCodecA3D2MeshLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel2", + "_-VM:VectorCodecA3D2JointBindTransformLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel2", + "_-VM:VectorCodecA3D2AmbientLightLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel3", + "_-VM:CodecA3D2Object": "_codec.versions.version2.a3d.objects:CodecA3D2Object", + "_-VM:VectorCodecA3D2SpriteLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel3", + "_-VM:VectorCodecA3D2SpriteLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel2", + "_-VM:VectorCodecA3D2TransformLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel3", + "_-VM:CodecA3D2AmbientLight": "_codec.versions.version2.a3d.objects:CodecA3D2AmbientLight", + "_-VM:VectorCodecA3D2DirectionalLightLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel2", + "_-VM:CodecA3D2JointBindTransform": "_codec.versions.version2.a3d.objects:CodecA3D2JointBindTransform", + "_-VM:VectorCodecA3D2SpriteLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpriteLevel1", + "_-VM:VectorCodecA3D2AmbientLightLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2AmbientLightLevel2", + "_-VM:VectorCodecA3D2JointBindTransformLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointBindTransformLevel3", + "_-VM:VectorCodecA3D2BoxLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel2", + "_-VM:VectorCodecA3D2DecalLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DecalLevel1", + "_-VM:VectorCodecA3D2TransformLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel2", + "_-VM:VectorCodecA3D2JointLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel1", + "_-VM:CodecA3D2OmniLight": "_codec.versions.version2.a3d.objects:CodecA3D2OmniLight", + "_-VM:VectorCodecA3D2SpotLightLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel3", + "_-VM:VectorCodecA3D2DirectionalLightLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2DirectionalLightLevel1", + "_-VM:VectorCodecA3D2BoxLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2BoxLevel1", + "_-VM:VectorCodecA3D2ObjectLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2ObjectLevel2", + "_-VM:CodecA3D2Box": "_codec.versions.version2.a3d.objects:CodecA3D2Box", + "_-VM:CodecA3D2Decal": "_codec.versions.version2.a3d.objects:CodecA3D2Decal", + "_-VM:VectorCodecA3D2SpotLightLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SpotLightLevel1", + "_-VM:CodecA3D2SpotLight": "_codec.versions.version2.a3d.objects:CodecA3D2SpotLight", + "_-VM:VectorCodecA3D2SurfaceLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel3", + "_-VM:CodecA3D2Skin": "_codec.versions.version2.a3d.objects:CodecA3D2Skin", + "_-VM:VectorCodecA3D2MeshLevel3": "_codec.versions.version2.a3d.objects:VectorCodecA3D2MeshLevel3", + "_-VM:VectorCodecA3D2SurfaceLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel1", + "_-VM:VectorCodecA3D2SurfaceLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2SurfaceLevel2", + "_-VM:VectorCodecA3D2JointLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2JointLevel2", + "_-VM:VectorCodecA3D2TransformLevel1": "_codec.versions.version2.a3d.objects:VectorCodecA3D2TransformLevel1", + "_-VM:VectorCodecA3D2OmniLightLevel2": "_codec.versions.version2.a3d.objects:VectorCodecA3D2OmniLightLevel2", + "_-8T:_-p4": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamage", + "_-8T:_-j8": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageEffects", + "_-8T:_-mW": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashDamageAmmo", + "_-8T:_-Qg": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyExplosion", + "_-8T:_-Pc": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:DebugSplashTargetFilter", + "_-8T:_-I-": "alternativa.tanks.game.weapons.ammunition.splashhit.debug:SmokyShot", + "_-e6:_-Z0": "alternativa.tanks.game.subsystems.rendersystem:IDeferredAction", + "_-e6:_-TR": "alternativa.tanks.game.subsystems.rendersystem:SkyMaterial", + "_-e6:_-RE": "alternativa.tanks.game.subsystems.rendersystem:GameCamera", + "_-e6:_-1I": "alternativa.tanks.game.subsystems.rendersystem:RenderSystem", + "_-e6:_-PW": "alternativa.tanks.game.subsystems.rendersystem:ResourceManager", + "_-e6:_-X2": "alternativa.tanks.game.subsystems.rendersystem:Lights", + "_-e6:_-B-": "alternativa.tanks.game.subsystems.rendersystem:IResourceManager", + "_-e6:_-Kn": "alternativa.tanks.game.subsystems.rendersystem:IRenderer", + "_-e6:_-fX": "alternativa.tanks.game.subsystems.rendersystem:IGraphicEffect", + "_-e6:_-T7": "alternativa.tanks.game.subsystems.rendersystem:RenderUtils", + "_-e6:_-9l": "alternativa.tanks.game.subsystems.rendersystem:BlendedMaterial", + "_-e6:_-UR": "alternativa.tanks.game.subsystems.rendersystem:TextMarker", + "_-e6:_-jg": "alternativa.tanks.game.subsystems.rendersystem:OmniLightList", + "_-e6:_-fQ": "alternativa.tanks.game.subsystems.rendersystem:RendererList", + "_-e6:_-i8": "alternativa.tanks.game.subsystems.rendersystem:DirectionalLightList", + "_-e6:_-pk": "alternativa.tanks.game.subsystems.rendersystem:SpotLightList", + "_-e6:_-h-": "alternativa.tanks.game.subsystems.rendersystem:FogInitializator", + "_-e6:_-gb": "alternativa.tanks.game.subsystems.rendersystem:ICameraController", + "_-e6:_-jA": "alternativa.tanks.game.subsystems.rendersystem:IShadowRendererConstructor", + "_-e6:_-gK": "alternativa.tanks.game.subsystems.rendersystem:StaticShadowInitializer", + "_-O5:_-2n": "alternativa.utils:CircularStringBuffer", + "_-O5:_-hM": "alternativa.utils:ColorUtils", + "_-O5:_-Hk": "alternativa.utils:ByteArrayMap", + "_-O5:_-JW": "alternativa.utils:KeyboardUtils", + "_-O5:_-3E": "alternativa.utils:TextUtils", + "_-O5:_-c4": "alternativa.utils:ICircularStringBuffer", + "_-O5:_-0O": "alternativa.utils:MathUtils", + "_-O5:_-fU": "alternativa.utils:IStringBufferIterator", + "_-O5:_-c-": "alternativa.utils:Properties", + "_-XN:_-cO": "alternativa.tanks.game.weapons.targeting:IEnergyTargetingSystem", + "_-XN:_-Rp": "alternativa.tanks.game.weapons.targeting:IGenericTargetEvaluator", + "_-XN:_-O2": "alternativa.tanks.game.weapons.targeting:GenericTargetingSystem", + "_-XN:_-e3": "alternativa.tanks.game.weapons.targeting:RailgunTargetingSystem", + "_-XN:_-kW": "alternativa.tanks.game.weapons.targeting:ConicAreaTargetingSystem", + "_-XN:_-YE": "alternativa.tanks.game.weapons.targeting:EnergyTargetingSystem", + "_-8D:_-Jo": "alternativa.engine3d.core:Light3D", + "_-8D:_-HO": "alternativa.engine3d.core:Resource", + "_-8D:_-7v": "alternativa.engine3d.core:Debug", + "_-8D:_-FW": "alternativa.engine3d.core:BoundBox", + "_-8D:_-PS": "alternativa.engine3d.core:Occluder", + "_-8D:_-OX": "alternativa.engine3d.core:Object3D", + "_-8D:_-mb": "alternativa.engine3d.core:VertexStream", + "_-8D:_-JI": "alternativa.engine3d.core:View", + "_-8D:_-d6": "alternativa.engine3d.core:VertexAttributes", + "_-8D:_-jw": "alternativa.engine3d.core:Transform3D", + "_-8D:_-QF": "alternativa.engine3d.core:DrawUnit", + "_-8D:_-7p": "alternativa.engine3d.core:Renderer", + "_-8D:_-be": "alternativa.engine3d.core:Camera3D", + "_-8D:_-CB": "alternativa.engine3d.core:RayIntersectionData", + "_-8D:_-WR": "alternativa.engine3d.core:RenderPriority", + "_-8D:_-Lg": "alternativa.engine3d.core:CullingPlane", + "_-8w:_-HR": "alternativa.tanks.sounds:TurretSoundCallback", + "_-8w:_-bh": "alternativa.tanks.sounds:FlamethrowerSoundWeaponCallback", + "_-8w:_-87": "alternativa.tanks.sounds:SoundInstantShotWeaponCallback", + "_-8w:_-BD": "alternativa.tanks.sounds:ChassisSoundCallback", + "_-aG:_-7-": "alternativa.engine3d.primitives:Box", + "_-US:_-h8": "alternativa.physics:BodyMaterial", + "_-US:_-BV": "alternativa.physics:Body", + "_-US:_-kG": "alternativa.physics:PhysicsUtils", + "_-US:_-J8": "alternativa.physics:BodyState", + "_-US:_-6h": "alternativa.physics:Contact", + "_-US:_-cR": "alternativa.physics:ContactPoint", + "_-US:_-CA": "alternativa.physics:BodyListItem", + "_-US:_-4q": "alternativa.physics:CollisionPrimitiveListItem", + "_-US:_-G2": "alternativa.physics:CollisionPrimitiveList", + "_-US:_-DB": "alternativa.physics:PhysicsScene", + "_-US:_-Xi": "alternativa.physics:BodyList", + "_-KT:_-mN": "alternativa.osgi.service.console.variables:ConsoleVarString", + "_-KT:_-UT": "alternativa.osgi.service.console.variables:ConsoleVarInt", + "_-KT:_-6L": "alternativa.osgi.service.console.variables:ConsoleVar", + "_-KT:_-Ju": "alternativa.osgi.service.console.variables:ConsoleVarFloat", + "_-9Z:_-47": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXComponent", + "_-9Z:_-Fj": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerSFXData", + "_-9Z:_-7Z": "alternativa.tanks.game.weapons.flamethrower:FlameThrower", + "_-9Z:_-q4": "alternativa.tanks.game.weapons.flamethrower:FlamethrowerGraphicEffect", + "_-V-:_-aY": "alternativa.tanks.game.utils:GameMathUtils", + "_-V-:_-mw": "alternativa.tanks.game.utils:TimeStat", + "_-V-:_-h5": "alternativa.tanks.game.utils:Task", + "_-V-:_-Ui": "alternativa.tanks.game.utils:TaskSequence", + "_-V-:_-HJ": "alternativa.tanks.game.utils:BitFlags", + "_-V-:_-Q4": "alternativa.tanks.game.utils:PhysicsParsingUtils", + "_-V-:_-C1": "alternativa.tanks.game.utils:BitVector", + "_-V-:_-Eh": "alternativa.tanks.game.utils:SFXUtils", + "_-Yn:_-L8": "alternativa.tanks.game.weapons.ammunition.pointhit:PointHitRound", + "_-MU:_-du": "alternativa.osgi.service.clientlog:ClientLog", + "_-MU:_-XQ": "alternativa.osgi.service.clientlog:IClientLogChannelListener", + "_-MU:_-5-": "alternativa.osgi.service.clientlog:IClientLog", + "_-MU:_-bV": "alternativa.osgi.service.clientlog:IClientLogBase", + "_-MU:_-Z6": "alternativa.osgi.service.clientlog:ClientLogChannel", + "default:_-dq": "alternativa.tanks.game.entities.tank:IChassisManualControlCallback", + "default:_-7d": "alternativa.tanks.game.entities.tank:TankPart", + "default:_-BH": "alternativa.tanks.game.entities.tank:IControllableTrackedChassisComponent", + "default:native": "alternativa.tanks.game.entities.tank:IActivatingStateCallback", + "default:_-b7": "alternativa.tanks.game.entities.tank:BasicWeaponManualControlComponent", + "default:_-2W": "alternativa.tanks.game.entities.tank:TankPartMaterials", + "default:_-Vp": "alternativa.tanks.game.entities.tank:TankTurret", + "default:_-gX": "alternativa.tanks.game.entities.tank:TankControlComponent", + "default:_-4a": "alternativa.tanks.game.entities.tank:TurretManualControlComponent", + "default:_-dT": "alternativa.tanks.game.entities.tank:TankHull", + "default:_-9I": "alternativa.tanks.game.entities.tank:TankGameState", + "default:_-MC": "alternativa.tanks.game.entities.tank:TrackedChassisManualControlComponent", + "default:_-af": "alternativa.tanks.game.entities.tank:ITurretManualControlCallback", + "default:_-49": "alternativa.tanks.game.entities.tank:TankWheel", + "default:_-kU": "alternativa.tanks.game.entities.tank:TankEvents", + "_-oA:A3D2OmniLight": "versions.version2.a3d.objects:A3D2OmniLight", + "_-oA:A3D2Box": "versions.version2.a3d.objects:A3D2Box", + "_-oA:A3D2JointBindTransform": "versions.version2.a3d.objects:A3D2JointBindTransform", + "_-oA:A3D2Sprite": "versions.version2.a3d.objects:A3D2Sprite", + "_-oA:A3D2SpotLight": "versions.version2.a3d.objects:A3D2SpotLight", + "_-oA:A3D2Object": "versions.version2.a3d.objects:A3D2Object", + "_-oA:A3D2Decal": "versions.version2.a3d.objects:A3D2Decal", + "_-oA:A3D2Surface": "versions.version2.a3d.objects:A3D2Surface", + "_-oA:A3D2Transform": "versions.version2.a3d.objects:A3D2Transform", + "_-oA:A3D2Skin": "versions.version2.a3d.objects:A3D2Skin", + "_-oA:A3D2AmbientLight": "versions.version2.a3d.objects:A3D2AmbientLight", + "_-oA:A3D2Mesh": "versions.version2.a3d.objects:A3D2Mesh", + "_-oA:A3D2Joint": "versions.version2.a3d.objects:A3D2Joint", + "_-oA:A3D2DirectionalLight": "versions.version2.a3d.objects:A3D2DirectionalLight", + "_-az:_-ps": "alternativa.tanks.game:GameTask", + "_-az:_-1H": "alternativa.tanks.game:TaskManager", + "_-az:_-2J": "alternativa.tanks.game:EntityComponent", + "_-az:_-kM": "alternativa.tanks.game:IGameLogger", + "_-az:_-gw": "alternativa.tanks.game:Entity", + "_-az:_-Ss": "alternativa.tanks.game:GameEvents", + "_-az:_-aI": "alternativa.tanks.game:ObjectController", + "_-az:_-AG": "alternativa.tanks.game:GameKernel", + "_-LL:_-nR": "alternativa.tanks.game.weapons.thunder.effects:ThunderShotEffect", + "_-kK:VectorCodecA3D2CubeMapLevel3": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel3", + "_-kK:VectorCodecA3D2MaterialLevel3": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel3", + "_-kK:VectorCodecA3D2ImageLevel1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel1", + "_-kK:VectorCodecA3D2CubeMapLevel1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel1", + "_-kK:VectorCodecA3D2MapLevel3": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel3", + "_-kK:CodecA3D2CubeMap": "_codec.versions.version2.a3d.materials:CodecA3D2CubeMap", + "_-kK:VectorCodecA3D2ImageLevel3": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel3", + "_-kK:VectorCodecA3D2MaterialLevel1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel1", + "_-kK:CodecA3D2Material": "_codec.versions.version2.a3d.materials:CodecA3D2Material", + "_-kK:VectorCodecA3D2ImageLevel2": "_codec.versions.version2.a3d.materials:VectorCodecA3D2ImageLevel2", + "_-kK:VectorCodecA3D2MapLevel1": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel1", + "_-kK:VectorCodecA3D2MapLevel2": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MapLevel2", + "_-kK:CodecA3D2Image": "_codec.versions.version2.a3d.materials:CodecA3D2Image", + "_-kK:VectorCodecA3D2MaterialLevel2": "_codec.versions.version2.a3d.materials:VectorCodecA3D2MaterialLevel2", + "_-kK:CodecA3D2Map": "_codec.versions.version2.a3d.materials:CodecA3D2Map", + "_-kK:VectorCodecA3D2CubeMapLevel2": "_codec.versions.version2.a3d.materials:VectorCodecA3D2CubeMapLevel2", + "_-KL:_-Gc": "alternativa.types:Short", + "_-KL:_-Mu": "alternativa.types:Long", + "_-KL:_-kI": "alternativa.types:Byte", + "_-KL:_-6f": "alternativa.types:UByte", + "_-KL:_-ob": "alternativa.types:Float", + "_-KL:_-ge": "alternativa.types:UShort", + "_-QH:_-fw": "alternativa.protocol.info:CollectionCodecInfo", + "_-QH:_-7x": "alternativa.protocol.info:TypeCodecInfo", + "_-QH:_-8Q": "alternativa.protocol.info:EnumCodecInfo", + "_-QH:_-Qw": "alternativa.protocol.info:CodecInfo", + "_-Wh:_-OG": "alternativa.tanks.game.entities.tank.graphics:TankExplosionComponent", + "_-Wh:_-4Q": "alternativa.tanks.game.entities.tank.graphics:PhysicsRendererComponent", + "_-Wh:_-iU": "alternativa.tanks.game.entities.tank.graphics:GraphicsControlComponent", + "_-Wh:_-nk": "alternativa.tanks.game.entities.tank.graphics:ActiveState", + "_-Wh:_-pI": "alternativa.tanks.game.entities.tank.graphics:IDirectionalShadowRendererConsumer", + "_-Wh:_-HP": "alternativa.tanks.game.entities.tank.graphics:DirectionalShadowRendererConstructor", + "_-Wh:_-dM": "alternativa.tanks.game.entities.tank.graphics:ComponentState", + "_-Wh:_-Rd": "alternativa.tanks.game.entities.tank.graphics:DeadState", + "_-Wh:_-Fk": "alternativa.tanks.game.entities.tank.graphics:ITankGraphicsComponent", + "_-Wh:_-2u": "alternativa.tanks.game.entities.tank.graphics:ActivatingState", + "_-Wh:_-hy": "alternativa.tanks.game.entities.tank.graphics:MaterialType", + "_-Wh:_-LO": "alternativa.tanks.game.entities.tank.graphics:RespawnState", + "_-E4:CodecA3D2Track": "_codec.versions.version2.a3d.animation:CodecA3D2Track", + "_-E4:VectorCodecA3D2TrackLevel3": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel3", + "_-E4:VectorCodecA3D2KeyframeLevel2": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel2", + "_-E4:VectorCodecA3D2KeyframeLevel1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel1", + "_-E4:VectorCodecA3D2TrackLevel2": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel2", + "_-E4:VectorCodecA3D2AnimationClipLevel1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel1", + "_-E4:VectorCodecA3D2AnimationClipLevel3": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel3", + "_-E4:VectorCodecA3D2KeyframeLevel3": "_codec.versions.version2.a3d.animation:VectorCodecA3D2KeyframeLevel3", + "_-E4:VectorCodecA3D2TrackLevel1": "_codec.versions.version2.a3d.animation:VectorCodecA3D2TrackLevel1", + "_-E4:CodecA3D2AnimationClip": "_codec.versions.version2.a3d.animation:CodecA3D2AnimationClip", + "_-E4:VectorCodecA3D2AnimationClipLevel2": "_codec.versions.version2.a3d.animation:VectorCodecA3D2AnimationClipLevel2", + "_-E4:CodecA3D2Keyframe": "_codec.versions.version2.a3d.animation:CodecA3D2Keyframe", + "_-hQ:_-W-": "commons:Id", + "_-hQ:_-Fx": "commons:A3DMatrix", + "_-Sk:_-jL": "alternativa.protocol.codec.primitive:FloatCodec", + "_-Sk:_-U": "alternativa.protocol.codec.primitive:UShortCodec", + "_-Sk:_-1j": "alternativa.protocol.codec.primitive:BooleanCodec", + "_-Sk:_-8d": "alternativa.protocol.codec.primitive:ShortCodec", + "_-Sk:_-BK": "alternativa.protocol.codec.primitive:ByteCodec", + "_-Sk:_-w": "alternativa.protocol.codec.primitive:IntCodec", + "_-Sk:_-36": "alternativa.protocol.codec.primitive:LongCodec", + "_-Sk:_-q-": "alternativa.protocol.codec.primitive:DoubleCodec", + "_-Sk:_-Vs": "alternativa.protocol.codec.primitive:IPrimitiveCodec", + "_-Sk:_-Mc": "alternativa.protocol.codec.primitive:UByteCodec", + "_-Sk:_-YK": "alternativa.protocol.codec.primitive:UIntCodec", + "_-Lt:_-gW": "alternativa.tanks.game.utils.list:ListIteratorImpl", + "_-Lt:_-x": "alternativa.tanks.game.utils.list:ListIterator", + "_-Lt:_-X9": "alternativa.tanks.game.utils.list:ListItem", + "_-Lt:_-Fv": "alternativa.tanks.game.utils.list:List", + "_-jN:A3DImage": "versions.version1.a3d.materials:A3DImage", + "_-jN:A3DMaterial": "versions.version1.a3d.materials:A3DMaterial", + "_-jN:A3DMap": "versions.version1.a3d.materials:A3DMap", + "_-cv:_-o6": "alternativa.tanks.config:BlobLibrary", + "_-cv:_-dD": "alternativa.tanks.config:BlobGroup", + "_-cv:_-FR": "alternativa.tanks.config:ResourceLoader", + "_-cv:_-Tv": "alternativa.tanks.config:TextureLibrary", + "_-cv:_-Kz": "alternativa.tanks.config:TankPartsLibrary", + "_-cv:_-cP": "alternativa.tanks.config:BlobCategory", + "_-cv:_-YU": "alternativa.tanks.config:Config", + "_-cv:_-NN": "alternativa.tanks.config:StringUtils", + "_-jG:_-gg": "alternativa.tanks.game.weapons.effects:IWeaponShotEffects", + "in%20:_-eF": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommand", + "in%20:_-N9": "alternativa.tanks.game.subsystems.deferredcommandssystem:DeferredCommandsSystem", + "_-1z:_-KJ": "alternativa.engine3d.resources:ATFTextureResource", + "_-1z:_-n4": "alternativa.engine3d.resources:ExternalTextureResource", + "_-1z:_-pi": "alternativa.engine3d.resources:TextureResource", + "_-1z:_-9": "alternativa.engine3d.resources:WireGeometry", + "_-1z:_-b1": "alternativa.engine3d.resources:BitmapTextureResource", + "_-1z:_-VF": "alternativa.engine3d.resources:BitmapCubeTextureResource", + "_-1z:_-gA": "alternativa.engine3d.resources:Geometry", + "_-9j:_-V0": "alternativa.engine3d.loaders.collada:DaeVertex", + "_-9j:_-lH": "alternativa.engine3d.loaders.collada:DaeInstanceController", + "_-9j:_-KP": "alternativa.engine3d.loaders.collada:DaeSource", + "_-9j:_-f9": "alternativa.engine3d.loaders.collada:DaeObject", + "_-9j:_-0M": "alternativa.engine3d.loaders.collada:DaeInput", + "_-9j:_-g3": "alternativa.engine3d.loaders.collada:DaeImage", + "_-9j:_-Kl": "alternativa.engine3d.loaders.collada:DaeInstanceMaterial", + "_-9j:_-S6": "alternativa.engine3d.loaders.collada:DaePrimitive", + "_-9j:_-hp": "alternativa.engine3d.loaders.collada:DaeEffectParam", + "_-9j:_-LF": "alternativa.engine3d.loaders.collada:DaeLogger", + "_-9j:_-Dz": "alternativa.engine3d.loaders.collada:DaeLight", + "_-9j:_-MJ": "alternativa.engine3d.loaders.collada:DaeGeometry", + "_-9j:_-mj": "alternativa.engine3d.loaders.collada:DaeSampler", + "_-9j:_-0H": "alternativa.engine3d.loaders.collada:DaeMaterial", + "_-9j:_-ad": "alternativa.engine3d.loaders.collada:DaeEffect", + "_-9j:_-1m": "alternativa.engine3d.loaders.collada:DaeController", + "_-9j:_-6e": "alternativa.engine3d.loaders.collada:DaeElement", + "_-9j:_-Vz": "alternativa.engine3d.loaders.collada:DaeParam", + "_-9j:_-98": "alternativa.engine3d.loaders.collada:DaeNode", + "_-9j:_-IW": "alternativa.engine3d.loaders.collada:DaeVisualScene", + "_-9j:_-l": "alternativa.engine3d.loaders.collada:DaeVertices", + "_-9j:_-kl": "alternativa.engine3d.loaders.collada:DaeArray", + "_-9j:_-fr": "alternativa.engine3d.loaders.collada:DaeDocument", + "_-9j:_-nf": "alternativa.engine3d.loaders.collada:DaeChannel", + "_-gP:_-ke": "alternativa.tanks.game.weapons.conicareadamage:ConicAreaWeaponComponent", + "_-gP:_-H4": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponCallback", + "_-gP:_-T8": "alternativa.tanks.game.weapons.conicareadamage:IConicAreaWeaponSFX", + "_-Ex:_-8f": "alternativa.engine3d.objects:Decal", + "_-Ex:_-2S": "alternativa.engine3d.objects:WireFrame", + "_-Ex:_-54": "alternativa.engine3d.objects:Skin", + "_-Ex:_-hW": "alternativa.engine3d.objects:Sprite3D", + "_-Ex:_-U2": "alternativa.engine3d.objects:Mesh", + "_-Ex:_-7D": "alternativa.engine3d.objects:Joint", + "_-Ex:_-a2": "alternativa.engine3d.objects:Surface", + "_-Ex:_-5P": "alternativa.engine3d.objects:SkyBox", + "_-gp:VectorCodecA3DTransformationLevel1": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel1", + "_-gp:VectorCodecA3DObjectLevel3": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel3", + "_-gp:VectorCodecA3DSurfaceLevel3": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel3", + "_-gp:VectorCodecA3DTransformationLevel2": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel2", + "_-gp:CodecA3DObject": "_codec.versions.version1.a3d.objects:CodecA3DObject", + "_-gp:VectorCodecA3DBoxLevel2": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel2", + "_-gp:CodecA3DSurface": "_codec.versions.version1.a3d.objects:CodecA3DSurface", + "_-gp:CodecA3DTransformation": "_codec.versions.version1.a3d.objects:CodecA3DTransformation", + "_-gp:VectorCodecA3DTransformationLevel3": "_codec.versions.version1.a3d.objects:VectorCodecA3DTransformationLevel3", + "_-gp:VectorCodecA3DBoxLevel3": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel3", + "_-gp:CodecA3DBox": "_codec.versions.version1.a3d.objects:CodecA3DBox", + "_-gp:VectorCodecA3DObjectLevel2": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel2", + "_-gp:VectorCodecA3DSurfaceLevel1": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel1", + "_-gp:VectorCodecA3DObjectLevel1": "_codec.versions.version1.a3d.objects:VectorCodecA3DObjectLevel1", + "_-gp:VectorCodecA3DSurfaceLevel2": "_codec.versions.version1.a3d.objects:VectorCodecA3DSurfaceLevel2", + "_-gp:VectorCodecA3DBoxLevel1": "_codec.versions.version1.a3d.objects:VectorCodecA3DBoxLevel1", + "_-aF:_-S8": "alternativa.engine3d.effects:TextureAtlas", + "_-aF:_-B0": "alternativa.engine3d.effects:AGALMiniAssembler", + "_-aF:_-nN": "alternativa.engine3d.effects:ParticlePrototype", + "_-aF:Particle": "alternativa.engine3d.effects:Particle", + "_-aF:_-ja": "alternativa.engine3d.effects:ParticleSystem", + "_-dz:_-lm": "alternativa.tanks.game.weapons:IWeapon", + "_-dz:_-2G": "alternativa.tanks.game.weapons:IWeaponDistanceWeakening", + "_-dz:_-2p": "alternativa.tanks.game.weapons:IGenericRound", + "_-dz:_-8": "alternativa.tanks.game.weapons:IGenericTargetingSystem", + "_-dz:_-aS": "alternativa.tanks.game.weapons:IEnergyShotWeaponCallback", + "_-dz:_-ZU": "alternativa.tanks.game.weapons:EnergyShotType", + "_-dz:_-8v": "alternativa.tanks.game.weapons:IBasicWeapon", + "_-dz:_-NB": "alternativa.tanks.game.weapons:SimpleTargetEvaluator", + "_-dz:_-Dm": "alternativa.tanks.game.weapons:WeaponConst", + "_-dz:_-S1": "alternativa.tanks.game.weapons:WeaponHit", + "_-dz:_-VX": "alternativa.tanks.game.weapons:EnergyShotWeaponComponent", + "_-dz:_-l3": "alternativa.tanks.game.weapons:ContinuousActionGunPlatformComponent", + "_-dz:_-nJ": "alternativa.tanks.game.weapons:IInstantShotWeaponCallback", + "_-dz:_-Mq": "alternativa.tanks.game.weapons:IContinuousActionWeapon", + "_-dz:_-Zh": "alternativa.tanks.game.weapons:IGenericAmmunition", + "_-dz:_-ZW": "alternativa.tanks.game.weapons:IEnergyAmmunition", + "_-dz:_-od": "alternativa.tanks.game.weapons:InstantShotWeaponComponent", + "_-n8:VectorCodecshortLevel1": "_codec.unsigned:VectorCodecshortLevel1", + "_-n8:VectorCodecshortLevel3": "_codec.unsigned:VectorCodecshortLevel3", + "_-n8:VectorCodecintLevel1": "_codec.unsigned:VectorCodecintLevel1", + "_-n8:VectorCodeclongLevel2": "_codec.unsigned:VectorCodeclongLevel2", + "_-n8:VectorCodeclongLevel3": "_codec.unsigned:VectorCodeclongLevel3", + "_-n8:VectorCodeclongLevel1": "_codec.unsigned:VectorCodeclongLevel1", + "_-n8:VectorCodecshortLevel2": "_codec.unsigned:VectorCodecshortLevel2", + "_-n8:VectorCodecintLevel3": "_codec.unsigned:VectorCodecintLevel3", + "_-n8:VectorCodecintLevel2": "_codec.unsigned:VectorCodecintLevel2", + "_-1e:_-hG": "alternativa.physics.collision:ICollider", + "_-1e:_-oZ": "alternativa.physics.collision:CollisionKdNode", + "_-1e:_-jn": "alternativa.physics.collision:IRaycastFilter", + "_-1e:_-fx": "alternativa.physics.collision:ICollisionDetector", + "_-1e:_-Nh": "alternativa.physics.collision:CollisionPrimitive", + "_-1e:_-p9": "alternativa.physics.collision:IBodyCollisionFilter", + "_-1e:_-aU": "alternativa.physics.collision:IPrimitiveCollisionFilter", + "_-mX:_-l7": "alternativa.tanks.config.loaders.tankparts:ITankPartLoaderFactory", + "_-mX:_-Fd": "alternativa.tanks.config.loaders.tankparts:TankTurretLoaderFactory", + "_-mX:_-Wb": "alternativa.tanks.config.loaders.tankparts:TankPartLoader", + "_-mX:_-Fm": "alternativa.tanks.config.loaders.tankparts:TankTurretLoader", + "_-mX:_-iv": "alternativa.tanks.config.loaders.tankparts:TankHullLoaderFactory", + "_-mX:_-qE": "alternativa.tanks.config.loaders.tankparts:TankHullLoader", + "_-lg:VectorCodecA3DMapLevel2": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel2", + "_-lg:VectorCodecA3DImageLevel3": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel3", + "_-lg:VectorCodecA3DMaterialLevel1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel1", + "_-lg:VectorCodecA3DMapLevel1": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel1", + "_-lg:VectorCodecA3DMaterialLevel2": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel2", + "_-lg:CodecA3DImage": "_codec.versions.version1.a3d.materials:CodecA3DImage", + "_-lg:VectorCodecA3DImageLevel1": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel1", + "_-lg:VectorCodecA3DImageLevel2": "_codec.versions.version1.a3d.materials:VectorCodecA3DImageLevel2", + "_-lg:VectorCodecA3DMapLevel3": "_codec.versions.version1.a3d.materials:VectorCodecA3DMapLevel3", + "_-lg:VectorCodecA3DMaterialLevel3": "_codec.versions.version1.a3d.materials:VectorCodecA3DMaterialLevel3", + "_-lg:CodecA3DMaterial": "_codec.versions.version1.a3d.materials:CodecA3DMaterial", + "_-lg:CodecA3DMap": "_codec.versions.version1.a3d.materials:CodecA3DMap", + "_-kr:_-60": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashTargetFilter", + "_-kr:_-Na": "alternativa.tanks.game.weapons.ammunition.splashhit:ISplashDamage", + "_-kr:_-mu": "alternativa.tanks.game.weapons.ammunition.splashhit:SplashDamageRound", + "_-Zp:A3DObject": "versions.version1.a3d.objects:A3DObject", + "_-Zp:A3DSurface": "versions.version1.a3d.objects:A3DSurface", + "_-Zp:A3DBox": "versions.version1.a3d.objects:A3DBox", + "_-Zp:A3DTransformation": "versions.version1.a3d.objects:A3DTransformation", + "_-YQ:_-iQ": "alternativa.tanks:TextureResourceService", + "_-YQ:_-E8": "alternativa.tanks:TankParams", + "_-YQ:_-A3": "alternativa.tanks:TankTestTask", + "_-YQ:_-DN": "alternativa.tanks:InitBattleTask", + "_-YQ:_-B5": "alternativa.tanks:ITextureResourceService", + "_-fT:_-BR": "alternativa.tanks.game.physics:TurretCollisioinBox", + "_-fT:_-YY": "alternativa.tanks.game.physics:BodyCollisionData", + "_-fT:_-Zm": "alternativa.tanks.game.physics:ITanksCollisionDetector", + "_-fT:_-Li": "alternativa.tanks.game.physics:SimpleRaycastFilter", + "_-fT:_-VN": "alternativa.tanks.game.physics:IRadiusQueryFilter", + "_-fT:_-WY": "alternativa.tanks.game.physics:BoxData", + "_-fT:_-bB": "alternativa.tanks.game.physics:BodyDistance", + "_-fT:_-HM": "alternativa.tanks.game.physics:CollisionGroup", + "_-9n:_-NS": "alternativa.engine3d.animation.keys:Keyframe", + "_-9n:_-j3": "alternativa.engine3d.animation.keys:NumberKey", + "_-9n:_-44": "alternativa.engine3d.animation.keys:TransformKey", + "_-GD:_-6A": "alternativa.osgi.service.console:IConsole", + "_-GD:_-X8": "alternativa.osgi.service.console:ClientLogConnector", + "_-GD:_-dX": "alternativa.osgi.service.console:Console", + "_-DJ:_-2i": "alternativa.protocol:IProtocol", + "_-DJ:_-J5": "alternativa.protocol:OptionalMap", + "_-DJ:_-Sv": "alternativa.protocol:ICodec", + "_-DJ:_-1F": "alternativa.protocol:ProtocolBuffer", + "_-DJ:_-MY": "alternativa.protocol:ICodecInfo", + "_-DJ:_-5S": "alternativa.protocol:CompressionType", + "_-fj:_-1t": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActivatingState", + "_-fj:_-Wz": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyActiveState", + "_-fj:_-8C": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:SuspensionData", + "_-fj:_-nL": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrack", + "_-fj:_-gd": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacySuspensionRay", + "_-fj:_-cx": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyTrackedChassisComponent", + "_-fj:_-Gg": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyRespawnState", + "_-fj:_-Cv": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyComponentState", + "_-fj:_-0N": "alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy:LegacyDeadState", + "_-1c:_-NM": "tankshudDemo:TanksHudDemo_bottomLeftIconClass", + "_-1c:TanksHudDemo_fullScreenState1Class": "tankshudDemo:TanksHudDemo_fullScreenState1Class", + "_-1c:TanksHudDemo_nextTankState2Class": "tankshudDemo:TanksHudDemo_nextTankState2Class", + "_-1c:_-0F": "tankshudDemo:TanksHudDemo", + "_-1c:_-Xf": "tankshudDemo:TanksHudDemo_topRightIconClass", + "_-1c:TanksHudDemo_nextTankState1Class": "tankshudDemo:TanksHudDemo_nextTankState1Class", + "_-1c:_-Qa": "tankshudDemo:TanksHudDemo_topLeftIconClass", + "_-1c:TanksHudDemo_fullScreenState2Class": "tankshudDemo:TanksHudDemo_fullScreenState2Class", + "_-M8:_-Yh": "alternativa.engine3d.materials.compiler:CommandType", + "_-M8:_-5": "alternativa.engine3d.materials.compiler:VariableType", + "_-M8:_-L7": "alternativa.engine3d.materials.compiler:RelativeVariable", + "_-M8:_-Xk": "alternativa.engine3d.materials.compiler:Procedure", + "_-M8:_-Um": "alternativa.engine3d.materials.compiler:Variable", + "_-M8:_-EK": "alternativa.engine3d.materials.compiler:DestinationVariable", + "_-M8:_-ER": "alternativa.engine3d.materials.compiler:SamplerVariable", + "_-M8:_-UF": "alternativa.engine3d.materials.compiler:SourceVariable", + "_-M8:_-hR": "alternativa.engine3d.materials.compiler:Linker", + "_-IS:_-mk": "_codec.commons:CodecA3DMatrix", + "_-IS:VectorCodecA3DMatrixLevel1": "_codec.commons:VectorCodecA3DMatrixLevel1", + "_-IS:VectorCodecA3DMatrixLevel3": "_codec.commons:VectorCodecA3DMatrixLevel3", + "_-IS:VectorCodecIdLevel2": "_codec.commons:VectorCodecIdLevel2", + "_-IS:VectorCodecIdLevel1": "_codec.commons:VectorCodecIdLevel1", + "_-IS:VectorCodecA3DMatrixLevel2": "_codec.commons:VectorCodecA3DMatrixLevel2", + "_-IS:_-QI": "_codec.commons:CodecId", + "_-IS:VectorCodecIdLevel3": "_codec.commons:VectorCodecIdLevel3", + "_-RG:A3DMapBuilder": "alternativa.tanks.game.entities.map:A3DMapBuilder", + "_-RG:_-pE": "alternativa.tanks.game.entities.map:MapMaterial", + "_-RG:_-Oa": "alternativa.tanks.game.entities.map:MapOptions", + "_-RG:_-7J": "alternativa.tanks.game.entities.map:IA3DMapComponentListener", + "_-RG:_-Au": "alternativa.tanks.game.entities.map:VisibleLightMaterial", + "_-RG:A3DMapComponent": "alternativa.tanks.game.entities.map:A3DMapComponent", + "_-W9:VectorCodeclongLevel3": "_codec:VectorCodeclongLevel3", + "_-W9:VectorCodecintLevel3": "_codec:VectorCodecintLevel3", + "_-W9:VectorCodecStringLevel1": "_codec:VectorCodecStringLevel1", + "_-W9:VectorCodeclongLevel2": "_codec:VectorCodeclongLevel2", + "_-W9:VectorCodecintLevel1": "_codec:VectorCodecintLevel1", + "_-W9:VectorCodecfloatLevel3": "_codec:VectorCodecfloatLevel3", + "_-W9:VectorCodecshortLevel2": "_codec:VectorCodecshortLevel2", + "_-W9:VectorCodecfloatLevel2": "_codec:VectorCodecfloatLevel2", + "_-W9:VectorCodecbyteLevel1": "_codec:VectorCodecbyteLevel1", + "_-W9:VectorCodecStringLevel2": "_codec:VectorCodecStringLevel2", + "_-W9:VectorCodecshortLevel1": "_codec:VectorCodecshortLevel1", + "_-W9:VectorCodeclongLevel1": "_codec:VectorCodeclongLevel1", + "_-W9:VectorCodecbyteLevel3": "_codec:VectorCodecbyteLevel3", + "_-W9:VectorCodecshortLevel3": "_codec:VectorCodecshortLevel3", + "_-W9:VectorCodecintLevel2": "_codec:VectorCodecintLevel2", + "_-W9:VectorCodecfloatLevel1": "_codec:VectorCodecfloatLevel1", + "_-W9:VectorCodecStringLevel3": "_codec:VectorCodecStringLevel3", + "_-W9:VectorCodecbyteLevel2": "_codec:VectorCodecbyteLevel2", + "_-I0:_-bt": "alternativa.tanks.game.camera:OrbitCameraController", + "_-I0:_-Ww": "alternativa.tanks.game.camera:CameraControllerBase", + "_-I0:_-VT": "alternativa.tanks.game.camera:AxisIndicator", + "_-I0:_-hB": "alternativa.tanks.game.camera:FollowCameraController", + "_-I0:_-Jv": "alternativa.tanks.game.camera:FreeCameraController", + "_-Tr:_-cL": "alternativa.tanks.game.weapons.railgun:IRailgunTargetEvaluator", + "_-Uy:_-oP": "alternativa.osgi:OSGi", + "_-aA:_-6t": "alternativa.startup:IClientConfigurator", + "_-aA:_-a-": "alternativa.startup:LibraryInfo", + "_-aA:_-1O": "alternativa.startup:ConnectionParameters", + "_-iL:_-Yr": "alternativa.protocol.impl:OptionalMapCodecHelper", + "_-iL:_-Zs": "alternativa.protocol.impl:LengthCodecHelper", + "_-iL:_-ZD": "alternativa.protocol.impl:Protocol", + "_-iL:_-R6": "alternativa.protocol.impl:PacketHelper", + "_-5U:_-Kr": "alternativa:ClientConfigurator", + "_-5U:_-fn": "alternativa:Alternativa3D", + "_-R8:_-QM": "alternativa.tanks.game.weapons.debug:DebugWeaponDistanceWeakening", + "_-cB:VectorCodecA3D2VertexAttributesLevel2": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel2", + "_-cB:VectorCodecA3D2IndexBufferLevel1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel1", + "_-cB:CodecA3D2VertexAttributes": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexAttributes", + "_-cB:CodecA3D2VertexBuffer": "_codec.versions.version2.a3d.geometry:CodecA3D2VertexBuffer", + "_-cB:VectorCodecA3D2VertexAttributesLevel3": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel3", + "_-cB:VectorCodecA3D2IndexBufferLevel2": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel2", + "_-cB:VectorCodecA3D2VertexBufferLevel1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel1", + "_-cB:CodecA3D2IndexBuffer": "_codec.versions.version2.a3d.geometry:CodecA3D2IndexBuffer", + "_-cB:VectorCodecA3D2VertexBufferLevel3": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel3", + "_-cB:VectorCodecA3D2VertexAttributesLevel1": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexAttributesLevel1", + "_-cB:VectorCodecA3D2VertexBufferLevel2": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2VertexBufferLevel2", + "_-cB:VectorCodecA3D2IndexBufferLevel3": "_codec.versions.version2.a3d.geometry:VectorCodecA3D2IndexBufferLevel3", + "_-ph:_-Z9": "alternativa.physics.constraints:Constraint", + "function:_-Xx": "alternativa.tanks.game.effects:AnimatedSpriteEffect", + "function:_-Gi": "alternativa.tanks.game.effects:Plane", + "function:_-OF": "alternativa.tanks.game.effects:IAreaOfEffectSFX", + "function:_-KQ": "alternativa.tanks.game.effects:Fire", + "function:_-Lf": "alternativa.tanks.game.effects:Blinker", + "function:_-7Y": "alternativa.tanks.game.effects:MovingAnimatedSprite", + "function:_-ok": "alternativa.tanks.game.effects:ColorTransformEntry", + "function:_-Y1": "alternativa.tanks.game.effects:AnimatedPlaneEffect", + "function:_-T": "alternativa.tanks.game.effects:SimpleWeaponShotSFXComponent", + "_-5Y:A3D2Map": "versions.version2.a3d.materials:A3D2Map", + "_-5Y:A3D2Image": "versions.version2.a3d.materials:A3D2Image", + "_-5Y:A3D2Material": "versions.version2.a3d.materials:A3D2Material", + "_-5Y:A3D2CubeMap": "versions.version2.a3d.materials:A3D2CubeMap", + "_-bJ:_-Pg": "alternativa.tanks.game.physics.collision.uniformgrid:BodyCollisionGridData", + "_-bJ:_-eG": "alternativa.tanks.game.physics.collision.uniformgrid:UniformGridCollisionDetector", + "_-bJ:_-hm": "alternativa.tanks.game.physics.collision.uniformgrid:IRaycastCellVisitor", + "_-IG:_-h4": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffectsFactory", + "_-IG:_-i": "alternativa.tanks.game.weapons.ammunition.plasma:PlasmaRoundEffect", + "_-Vh:_-YD": "alternativa.engine3d.materials:FillMaterial", + "_-Vh:_-RB": "alternativa.engine3d.materials:ShaderProgram", + "_-Vh:_-18": "alternativa.engine3d.materials:EnviromentMaterial", + "_-Vh:_-Pt": "alternativa.engine3d.materials:A3DUtils", + "_-Vh:_-pZ": "alternativa.engine3d.materials:TextureMaterial", + "_-Vh:_-dn": "alternativa.engine3d.materials:FogMode", + "_-Vh:_-LS": "alternativa.engine3d.materials:StandardMaterial", + "_-Vh:_-12": "alternativa.engine3d.materials:NormalMapSpace", + "_-Vh:_-b9": "alternativa.engine3d.materials:Material", + "_-Vh:_-Wn": "alternativa.engine3d.materials:TextureFormat", + "_-nO:_-Yk": "alternativa.tanks.game.subsystems.logicsystem:LogicSystem", + "_-nO:_-5B": "alternativa.tanks.game.subsystems.logicsystem:ILogic", + "_-nO:_-KI": "alternativa.tanks.game.subsystems.logicsystem:ILogicUnit", + "_-j-:_-B7": "alternativa.tanks.game.subsystems.eventsystem:IEventSystem", + "_-j-:_-Wd": "alternativa.tanks.game.subsystems.eventsystem:EventSystem", + "_-j-:_-Fr": "alternativa.tanks.game.subsystems.eventsystem:IGameEventListener", + "_-j-:_-BL": "alternativa.tanks.game.subsystems.eventsystem:GameEvent", + "_-78:_-M2": "alternativa.tanks.game.entities:EventStates", + "_-78:_-YX": "alternativa.tanks.game.entities:IComponentState", + "_-78:_-GH": "alternativa.tanks.game.entities:EmptyState", + "_-9-:_-Yo": "alternativa.tanks.display:DebugPanel", + "_-L0:_-WS": "alternativa.tanks.game.utils.list.errors:NoSuchElementError", + "_-L0:import": "alternativa.tanks.game.utils.list.errors:ConcurrentModificationError", + "%20var:_-QZ": "alternativa.tanks.game.entities.tank.parsers:TankTurretParser", + "%20var:_-Uk": "alternativa.tanks.game.entities.tank.parsers:TankPartParser", + "%20var:_-kH": "alternativa.tanks.game.entities.tank.parsers:TankPartParsingUtils", + "%20var:_-gx": "alternativa.tanks.game.entities.tank.parsers:TankHullParser", + "_-IQ:_-0p": "alternativa.tanks.lightsmanager:LightsRegistry", + "_-IQ:_-0o": "alternativa.tanks.lightsmanager:AmbientLightRegistry", + "_-IQ:_-Pa": "alternativa.tanks.lightsmanager:LightsManager", + "_-IQ:_-1b": "alternativa.tanks.lightsmanager:SpotLightRegistry", + "_-IQ:_-8u": "alternativa.tanks.lightsmanager:DirectionalLightRegistry", + "_-IQ:_-QL": "alternativa.tanks.lightsmanager:OmniLightRegistry", + "_-Ep:_-pA": "alternativa.osgi.service.locale:LocaleService", + "_-Ep:_-7": "alternativa.osgi.service.locale:ILocaleService", + "_-ks:_-ig": "alternativa.tanks.game.subsystems.battlemessages:BattleMessagesSubsystem", + "_-XV:_-Yx": "alternativa.osgi.service.display:Display", + "_-XV:_-31": "alternativa.osgi.service.display:IDisplay", + "_-nD:_-aQ": "versions.version1.a3d.id:ParentId", + "_-aa:_-cS": "alternativa.tanks.config.loaders:BlobsLoaderTask", + "_-aa:_-g9": "alternativa.tanks.config.loaders:TankPartsBatchLoader", + "_-aa:_-Ai": "alternativa.tanks.config.loaders:ImageSequenceLoader", + "_-aa:_-i0": "alternativa.tanks.config.loaders:SoundsLibrary", + "_-Oh:A3D2Track": "versions.version2.a3d.animation:A3D2Track", + "_-Oh:A3D2Keyframe": "versions.version2.a3d.animation:A3D2Keyframe", + "_-Oh:A3D2AnimationClip": "versions.version2.a3d.animation:A3D2AnimationClip", + "_-Fc:_-8a": "alternativa.tanks.game.subsystems.physicssystem:PhysicsSystem", + "_-Fc:catch": "alternativa.tanks.game.subsystems.physicssystem:IPhysicsController", + "_-pe:_-oV": "alternativa.physics.collision.primitives:CollisionRect", + "_-pe:_-Pr": "alternativa.physics.collision.primitives:CollisionTriangle", + "_-pe:_-c5": "alternativa.physics.collision.primitives:CollisionSphere", + "_-7j:_-BN": "alternativa.tanks.game.types:TeamType", + "_-OZ:_-CO": "alternativa.engine3d.animation:AnimationNode", + "_-OZ:_-Re": "alternativa.engine3d.animation:AnimationNotify", + "_-OZ:_-SK": "alternativa.engine3d.animation:AnimationState", + "_-OZ:_-cK": "alternativa.engine3d.animation:AnimationController", + "_-jd:_-nk": "alternativa.tanks.game.entities.tank.physics.turret:ActiveState", + "_-jd:_-82": "alternativa.tanks.game.entities.tank.physics.turret:TurretPhysicsComponent", + "_-jd:_-Rd": "alternativa.tanks.game.entities.tank.physics.turret:DeadState", + "_-jd:_-LO": "alternativa.tanks.game.entities.tank.physics.turret:RespawnState", + "_-nl:_-Ok": "alternativa.math:Quaternion", + "_-nl:_-bj": "alternativa.math:Vector3", + "_-nl:Matrix4": "alternativa.math:Matrix4", + "_-nl:Matrix3": "alternativa.math:Matrix3", + "_-aM:_-Lm": "alternativa.tanks.game.subsystems.inputsystem:IInput", + "_-aM:_-Yf": "alternativa.tanks.game.subsystems.inputsystem:InputSystem", + "_-aM:_-X0": "alternativa.tanks.game.subsystems.inputsystem:KeyboardEventType", + "_-i2:A3DGeometry": "versions.version1.a3d.geometry:A3DGeometry", + "_-i2:A3DVertexBuffer": "versions.version1.a3d.geometry:A3DVertexBuffer", + "_-i2:A3DIndexBuffer": "versions.version1.a3d.geometry:A3DIndexBuffer", + "_-Y5:_-XL": "_codec.versions.version1.a3d:CodecA3D", + "_-Y5:VectorCodecA3DLevel2": "_codec.versions.version1.a3d:VectorCodecA3DLevel2", + "_-Y5:VectorCodecA3DLevel1": "_codec.versions.version1.a3d:VectorCodecA3DLevel1", + "_-Y5:VectorCodecA3DLevel3": "_codec.versions.version1.a3d:VectorCodecA3DLevel3", + "return:_-h5": "alternativa.tanks.utils:Task", + "return:_-Hz": "alternativa.tanks.utils:XMLHelper", + "return:_-pj": "alternativa.tanks.utils:TaskEvent", + "return:_-mc": "alternativa.tanks.utils:TextureUtils", + "return:_-Hr": "alternativa.tanks.utils:TARAParser", + "return:_-Ui": "alternativa.tanks.utils:TaskSequence", + "_-Tt:_-Ho": "alternativa.osgi.service.network:INetworkService", + "_-Tt:_-Hi": "alternativa.osgi.service.network:NetworkService", + "_-AT:VectorCodecA3DVertexBufferLevel1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel1", + "_-AT:VectorCodecA3DIndexBufferLevel1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel1", + "_-AT:VectorCodecA3DVertexBufferLevel2": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel2", + "_-AT:VectorCodecA3DVertexBufferLevel3": "_codec.versions.version1.a3d.geometry:VectorCodecA3DVertexBufferLevel3", + "_-AT:VectorCodecA3DIndexBufferLevel3": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel3", + "_-AT:VectorCodecA3DGeometryLevel3": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel3", + "_-AT:VectorCodecA3DGeometryLevel2": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel2", + "_-AT:CodecA3DGeometry": "_codec.versions.version1.a3d.geometry:CodecA3DGeometry", + "_-AT:VectorCodecA3DIndexBufferLevel2": "_codec.versions.version1.a3d.geometry:VectorCodecA3DIndexBufferLevel2", + "_-AT:CodecA3DVertexBuffer": "_codec.versions.version1.a3d.geometry:CodecA3DVertexBuffer", + "_-AT:VectorCodecA3DGeometryLevel1": "_codec.versions.version1.a3d.geometry:VectorCodecA3DGeometryLevel1", + "_-AT:CodecA3DIndexBuffer": "_codec.versions.version1.a3d.geometry:CodecA3DIndexBuffer", + "_-V5:_-oN": "alternativa.tanks.game.weapons.thunder:ThunderShotEffectComponent", + "_-LX:_-gY": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackAnimator", + "_-LX:_-VO": "alternativa.tanks.game.entities.tank.graphics.chassis.tracked:TrackedChassisGraphicsComponent", + "_-Yj:TankMaterial2": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial2", + "_-Yj:_-bZ": "alternativa.tanks.game.entities.tank.graphics.materials:TracksMaterial2", + "_-Yj:_-as": "alternativa.tanks.game.entities.tank.graphics.materials:TankMaterial", + "_-Yj:_-jj": "alternativa.tanks.game.entities.tank.graphics.materials:GiShadowMaterial", + "_-Yj:_-4X": "alternativa.tanks.game.entities.tank.graphics.materials:TreesMaterial", + "_-R1:OmniLight": "alternativa.engine3d.lights:OmniLight", + "_-R1:DirectionalLight": "alternativa.engine3d.lights:DirectionalLight", + "_-R1:SpotLight": "alternativa.engine3d.lights:SpotLight", + "_-R1:_-LD": "alternativa.engine3d.lights:AmbientLight", + "_-5g:_-OD": "alternativa.osgi.service.launcherparams:LauncherParams", + "_-5g:_-iB": "alternativa.osgi.service.launcherparams:ILauncherParams", + "_-1s:Event3D": "alternativa.engine3d.core.events:Event3D", + "_-1s:MouseEvent3D": "alternativa.engine3d.core.events:MouseEvent3D", + "_-RQ:_-HE": "alternativa.tanks.game.utils.objectpool:PooledObject", + "_-RQ:_-Q9": "alternativa.tanks.game.utils.objectpool:ObjectPoolManager", + "_-RQ:_-Va": "alternativa.tanks.game.utils.objectpool:ObjectPool", + "_-92:_-Gp": "alternativa.engine3d.animation.events:NotifyEvent", + "_-MF:_-B3": "_codec.versions.version1.a3d.id:CodecParentId", + "_-MF:VectorCodecParentIdLevel2": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel2", + "_-MF:VectorCodecParentIdLevel3": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel3", + "_-MF:VectorCodecParentIdLevel1": "_codec.versions.version1.a3d.id:VectorCodecParentIdLevel1", + "_-fk:VectorCodecA3D2Level2": "_codec.versions.version2.a3d:VectorCodecA3D2Level2", + "_-fk:VectorCodecA3D2Level3": "_codec.versions.version2.a3d:VectorCodecA3D2Level3", + "_-fk:_-3w": "_codec.versions.version2.a3d:CodecA3D2", + "_-fk:VectorCodecA3D2Level1": "_codec.versions.version2.a3d:VectorCodecA3D2Level1", + "_-AA:_-10": "versions.version1.a3d:A3D", + "_-My:_-3-": "alternativa.tanks.game.utils.datacache:DataCache", + "_-My:_-8z": "alternativa.tanks.game.utils.datacache:IDataFactory", + "_-VD:_-IX": "alternativa.protocol.codec:OptionalCodecDecorator", + "_-OR:_-om": "alternativa.tanks.game.entities.tank.graphics.turret:TurretGraphicsComponent", + "_-jT:_-0K": "alternativa.tanks.game.weapons.ammunition.railgun.debug:DebugRailgunTargetEvaluator", + "_-MH:A3D2IndexBuffer": "versions.version2.a3d.geometry:A3D2IndexBuffer", + "_-MH:A3D2VertexBuffer": "versions.version2.a3d.geometry:A3D2VertexBuffer", + "_-MH:A3D2VertexAttributes": "versions.version2.a3d.geometry:A3D2VertexAttributes", + "_-Ie:_-Nq": "versions.version2.a3d:A3D2", + "_-mH:_-qi": "alternativa.tanks.game.weapons.ammunition:IAOEAmmunitionCallback", + "_-o8:_-Bh": "alternativa.osgi.service.dump.dumper:BundleDumper", + "_-o8:_-Ut": "alternativa.osgi.service.dump.dumper:ServiceDumper", + "_-am:_-Fh": "alternativa.engine3d.loaders:ParserA3D", + "_-am:_-Jd": "alternativa.engine3d.loaders:ParserCollada", + "_-am:_-qn": "alternativa.engine3d.loaders:ParserMaterial", + "_-GE:_-RN": "alternativa.protocol.codec.complex:ByteArrayCodec", + "_-GE:_-Tf": "alternativa.protocol.codec.complex:StringCodec", + "_-d8:_-R3": "platform.client.a3d.osgi:Activator", + "_-FM:_-fl": "alternativa.protocol.osgi:ProtocolActivator", + "_-HW:_-pf": "alternativa.osgi.bundle:BundleDescriptor", + "_-HW:_-pF": "alternativa.osgi.bundle:IBundleActivator", + "_-HW:_-C": "alternativa.osgi.bundle:IBundleDescriptor", + "_-Ks:_-i3": "alternativa.engine3d.collisions:EllipsoidCollider", + "_-KA:_-jr": "alternativa.physics.collision.types:RayHit", + "_-K8:_-e5": "alternativa.tanks.game.effects.debug:FloatingTextEffect", + "_-7A:_-3e": "alternativa.tanks.game.entities.tank.physics:ITurretPhysicsComponent", + "_-7A:_-U-": "alternativa.tanks.game.entities.tank.physics:InterpolationComponent", + "_-7A:_-Is": "alternativa.tanks.game.entities.tank.physics:IChassisPhysicsComponent", + "_-io:_-Cs": "alternativa.osgi.service.dump:DumpService", + "_-io:_-6y": "alternativa.osgi.service.dump:IDumper", + "_-io:_-39": "alternativa.osgi.service.dump:IDumpService", + "_-85:_-YM": "alternativa.tanks.game.weapons.ammunition.railgun:MultybodyRaycastFilter", + "_-lS:_-h2": "alternativa.tanks.game.subsystems.timesystem:TimeSystem", + "_-TX:_-R3": "platform.clients.fp10.libraries.alternativaprotocol:Activator" +} diff --git a/packages.txt b/packages.txt deleted file mode 100644 index 7701daf..0000000 --- a/packages.txt +++ /dev/null @@ -1,21 +0,0 @@ -package_1 alternativa.osgi.service.console.variables -package_2 alternativa.tanks.game.entities.map -package_3 alternativa.tanks.game.entities.tank.graphics.materials -package_5 alternativa.osgi -package_6 alternativa.osgi.service.console -package_7 alternativa.tanks -package_8 alternativa.startup -package_9 alternativa.tanks.game.camera -package_10 alternativa.tanks.game -package_11 alternativa -package_13 alternativa.tanks.config -package_14 platform.client.a3d.osgi -package_15 alternativa.utils -package_16 alternativa.protocol.osgi -package_17 platform.clients.fp10.libraries.alternativaprotocol -package_18 alternativa.tanks.game.subsystems.rendersystem -package_20 alternativa.tanks.game.subsystems.eventsystem -package_22 alternativa.tanks.game.subsystems.inputsystem -package_26 alternativa.tanks.game.utils.objectpool -package_74 alternativa.tanks.game.weapons -package_100 alternativa.tanks.game.weapons.ammunition.plasma \ No newline at end of file diff --git a/src/? var?/TankHullParser.as b/src/? var?/TankHullParser.as new file mode 100644 index 0000000..883caac --- /dev/null +++ b/src/? var?/TankHullParser.as @@ -0,0 +1,196 @@ +package § var§ +{ + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.Skin; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.tanks.game.entities.tank.TankHull; + import alternativa.tanks.game.entities.tank.TankPart; + import alternativa.tanks.game.entities.tank.TankWheel; + import alternativa.tanks.game.physics.BoxData; + import alternativa.utils.ByteArrayMap; + + public class TankHullParser extends TankPartParser + { + private static var leftSprings:Array; + + private static var rightSprings:Array; + + public static const KEY_TRACKS_DIFFUSE:String = "tracksDiffuseMap"; + + public static const KEY_TRACKS_NORMAL:String = "tracksNormalMap"; + + public static const KEY_TRACKS_OPACITY:String = "tracksOpacityMap"; + + public static const KEY_SHADOW:String = "tracksShadowMap"; + + public static const TRACKS_NORMALMAP_ATF:String = "tracks_normalmap.atf"; + + public static const TRACKS_DIFFUSEMAP_ATF:String = "tracks_diffuse.atf"; + + public static const TRACKS_OPACITYMAP_ATF:String = "tracks_opacity.atf"; + + public static const SHADOW_ATF:String = "shadow.atf"; + + public function TankHullParser() + { + super(); + } + + override protected function doParse(objects:Vector., tankPart:TankPart, files:ByteArrayMap) : void + { + super.doParse(objects,tankPart,files); + this.parseTextureData(tankPart,files); + } + + private function parseTextureData(tankPart:TankPart, files:ByteArrayMap) : void + { + tankPart.textureData.putValue(KEY_TRACKS_NORMAL,files.getValue(TRACKS_NORMALMAP_ATF)); + tankPart.textureData.putValue(KEY_TRACKS_DIFFUSE,files.getValue(TRACKS_DIFFUSEMAP_ATF)); + tankPart.textureData.putValue(KEY_TRACKS_OPACITY,files.getValue(TRACKS_OPACITYMAP_ATF)); + if(files.getValue(SHADOW_ATF) != null) + { + tankPart.textureData.putValue(KEY_SHADOW,files.getValue(SHADOW_ATF)); + } + } + + override protected function createTankPart() : TankPart + { + return new TankHull(); + } + + override protected function getParsingFunctions() : Object + { + return { + "hull":this.parseSkin, + "mount":this.parseMountPoint, + "body":this.parseBody, + "box":this.parseDetailedGeometry, + "simp":this.parseSimpleGeometry, + "sp":this.parseSuspensionRay, + "wh":this.parseWheels, + "track":this.parseTrack, + "shadow":this.parseShadow + }; + } + + override protected function beginParsing(tankPart:TankPart) : void + { + leftSprings = []; + rightSprings = []; + } + + override protected function endParsing(tankPart:TankPart) : void + { + this.prepareAll(TankHull(tankPart)); + } + + private function parseSkin(mesh:Mesh, tankHull:TankHull) : void + { + tankHull.geometry = mesh.geometry; + } + + private function parseMountPoint(mesh:Mesh, tankHull:TankHull) : void + { + tankHull.§_-Rj§.reset(mesh.x,mesh.y,mesh.z); + tankHull.§_-EN§.copy(tankHull.§_-Rj§); + } + + private function parseBody(mesh:Mesh, tankHull:TankHull) : void + { + tankHull.§_-eh§ = TankPartParsingUtils.parseCollisionBoxData(mesh); + } + + private function parseDetailedGeometry(mesh:Mesh, tankHull:TankHull) : void + { + var boxData:BoxData = TankPartParsingUtils.parseCollisionBoxData(mesh); + tankHull.§_-AE§.push(boxData); + } + + private function parseSimpleGeometry(mesh:Mesh, tankHull:TankHull) : void + { + var boxData:BoxData = TankPartParsingUtils.parseCollisionBoxData(mesh); + tankHull.§_-KR§.push(boxData); + } + + private function parseSuspensionRay(mesh:Mesh, tankHull:TankHull) : void + { + var name:String = mesh.name.toLowerCase(); + var type:String = name.substr(2,1); + var index:int = int(int(name.substr(3,1))); + var array:Array = type == "r" ? rightSprings : leftSprings; + array[index] = new Vector3(mesh.x,mesh.y,mesh.z); + } + + private function parseWheels(mesh:Mesh, tankHull:TankHull) : void + { + var tankWheel:TankWheel = new TankWheel(mesh.name,mesh.geometry,new Vector3(mesh.x,mesh.y,mesh.z)); + if(mesh.name.charAt(2) == "l") + { + tankHull.§_-EY§.push(tankWheel); + } + else + { + tankHull.§_-M4§.push(tankWheel); + } + } + + private function parseShadow(mesh:Mesh, tankHull:TankHull) : void + { + tankHull.shadow = mesh; + } + + private function parseTrack(skin:Skin, tankHull:TankHull) : void + { + var child:Object3D = null; + for(var i:int = 0; i < skin.numChildren; i++) + { + child = skin.getChildAt(i); + child.name = child.name.toLowerCase(); + } + if(skin.name.toLowerCase().charAt(0) == "l") + { + tankHull.§_-Ei§ = skin; + } + else + { + tankHull.§_-iA§ = skin; + } + } + + private function prepareAll(tankHull:TankHull) : void + { + var skinMatrix:Matrix4 = tankHull.§_-eh§.matrix.clone(); + skinMatrix.invert(); + skinMatrix.getAxis(3,tankHull.§_-Sh§); + tankHull.§_-Rj§.transform4(skinMatrix); + this.prepareCollisionGeometry(tankHull.§_-AE§,skinMatrix); + this.prepareCollisionGeometry(tankHull.§_-KR§,skinMatrix); + tankHull.§_-j9§ = this.prepareSuspensionPoints(leftSprings,skinMatrix); + tankHull.§_-Hd§ = this.prepareSuspensionPoints(rightSprings,skinMatrix); + leftSprings = null; + rightSprings = null; + } + + private function prepareCollisionGeometry(geometry:Vector., m:Matrix4) : void + { + var cbData:BoxData = null; + for each(cbData in geometry) + { + cbData.matrix.append(m); + } + } + + private function prepareSuspensionPoints(points:Array, matrix:Matrix4) : Vector. + { + var v:Vector3 = null; + for each(v in points) + { + v.transform4(matrix); + } + return Vector.(points); + } + } +} + diff --git a/src/package_78/name_258.as b/src/? var?/TankPartParser.as similarity index 51% rename from src/package_78/name_258.as rename to src/? var?/TankPartParser.as index d5d62c8..7bc22c3 100644 --- a/src/package_78/name_258.as +++ b/src/? var?/TankPartParser.as @@ -1,13 +1,13 @@ -package package_78 +package § var§ { - import package_116.name_529; - import package_116.name_530; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.loaders.ParserA3D; + import alternativa.engine3d.loaders.ParserCollada; + import alternativa.engine3d.objects.Skin; + import alternativa.tanks.game.entities.tank.TankPart; import alternativa.utils.ByteArrayMap; - import package_19.name_528; - import package_21.name_78; - import package_71.name_333; - public class name_258 + public class TankPartParser { public static const KEY_DIFFUSE_MAP:String = "diffuseMap"; @@ -15,21 +15,21 @@ package package_78 public static const KEY_SURFACE_MAP:String = "surfaceMap"; - public function name_258() + public function TankPartParser() { super(); } - public function method_314(byteArrayMap:ByteArrayMap, mainFile:String) : name_333 + public function parse(byteArrayMap:ByteArrayMap, mainFile:String) : TankPart { - var objects:Vector. = null; - var parserA3D:name_529 = null; - var parserCollada:name_530 = null; - var tankPart:name_333 = this.createTankPart(); + var objects:Vector. = null; + var parserA3D:ParserA3D = null; + var parserCollada:ParserCollada = null; + var tankPart:TankPart = this.createTankPart(); if(mainFile == "main.a3d") { - parserA3D = new name_529(); - parserA3D.method_314(byteArrayMap.name_248(mainFile)); + parserA3D = new ParserA3D(); + parserA3D.parse(byteArrayMap.getValue(mainFile)); objects = parserA3D.objects; } else @@ -38,31 +38,31 @@ package package_78 { throw new Error("Unsupported type: " + mainFile); } - parserCollada = new name_530(); - parserCollada.method_314(XML(byteArrayMap.name_248(mainFile).toString())); + parserCollada = new ParserCollada(); + parserCollada.parse(XML(byteArrayMap.getValue(mainFile).toString())); objects = parserCollada.objects; } - this.method_417(objects); + this.traceSkins(objects); this.beginParsing(tankPart); this.doParse(objects,tankPart,byteArrayMap); this.endParsing(tankPart); - tankPart.textureData.name_59(KEY_DIFFUSE_MAP,byteArrayMap.name_248("diffuse.atf")); - tankPart.textureData.name_59(KEY_NORMAL_MAP,byteArrayMap.name_248("normalmap.atf")); - tankPart.textureData.name_59(KEY_SURFACE_MAP,byteArrayMap.name_248("surface.atf")); + tankPart.textureData.putValue(KEY_DIFFUSE_MAP,byteArrayMap.getValue("diffuse.atf")); + tankPart.textureData.putValue(KEY_NORMAL_MAP,byteArrayMap.getValue("normalmap.atf")); + tankPart.textureData.putValue(KEY_SURFACE_MAP,byteArrayMap.getValue("surface.atf")); return tankPart; } - private function method_417(objects:Vector.) : void + private function traceSkins(objects:Vector.) : void { - var object3D:name_78 = null; - var skin:name_528 = null; + var object3D:Object3D = null; + var skin:Skin = null; var i:int = 0; - var childAt:name_78 = null; + var childAt:Object3D = null; for each(object3D in objects) { - if(object3D is name_528) + if(object3D is Skin) { - skin = name_528(object3D); + skin = Skin(object3D); for(i = 0; i < skin.numChildren; i++) { childAt = skin.getChildAt(i); @@ -71,16 +71,16 @@ package package_78 } } - protected function createTankPart() : name_333 + protected function createTankPart() : TankPart { throw new Error("Not implemented"); } - protected function beginParsing(tankPart:name_333) : void + protected function beginParsing(tankPart:TankPart) : void { } - protected function endParsing(tankPart:name_333) : void + protected function endParsing(tankPart:TankPart) : void { } @@ -89,9 +89,9 @@ package package_78 return {}; } - protected function doParse(objects:Vector., tankPart:name_333, byteArrayMap:ByteArrayMap) : void + protected function doParse(objects:Vector., tankPart:TankPart, byteArrayMap:ByteArrayMap) : void { - var object:name_78 = null; + var object:Object3D = null; var key:String = null; var func:Function = null; var parsingFunctions:Object = this.getParsingFunctions(); diff --git a/src/? var?/TankPartParsingUtils.as b/src/? var?/TankPartParsingUtils.as new file mode 100644 index 0000000..1149165 --- /dev/null +++ b/src/? var?/TankPartParsingUtils.as @@ -0,0 +1,31 @@ +package § var§ +{ + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.objects.Mesh; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.tanks.game.physics.BoxData; + + public class TankPartParsingUtils + { + public function TankPartParsingUtils() + { + super(); + } + + public static function parseCollisionBoxData(mesh:Mesh) : BoxData + { + mesh.calculateBoundBox(); + var bb:BoundBox = mesh.boundBox; + var hs:Vector3 = new Vector3(0.5 * (bb.maxX - bb.minX),0.5 * (bb.maxY - bb.minY),0.5 * (bb.maxZ - bb.minZ)); + var midPoint:Vector3 = new Vector3(0.5 * (bb.minX + bb.maxX),0.5 * (bb.minY + bb.maxY),0.5 * (bb.minZ + bb.maxZ)); + var matrix:Matrix4 = new Matrix4(); + matrix.setRotationMatrix(mesh.rotationX,mesh.rotationY,mesh.rotationZ); + matrix.setPositionXYZ(mesh.x,mesh.y,mesh.z); + midPoint.transform4(matrix); + matrix.setPosition(midPoint); + return new BoxData(hs,matrix); + } + } +} + diff --git a/src/? var?/TankTurretParser.as b/src/? var?/TankTurretParser.as new file mode 100644 index 0000000..d38621a --- /dev/null +++ b/src/? var?/TankTurretParser.as @@ -0,0 +1,51 @@ +package § var§ +{ + import alternativa.engine3d.objects.Mesh; + import alternativa.math.Vector3; + import alternativa.tanks.game.entities.tank.TankPart; + import alternativa.tanks.game.entities.tank.TankTurret; + + public class TankTurretParser extends TankPartParser + { + public function TankTurretParser() + { + super(); + } + + override protected function createTankPart() : TankPart + { + return new TankTurret(); + } + + override protected function getParsingFunctions() : Object + { + return { + "turret":this.parseSkin, + "fmnt":this.parseFlagMountPoint, + "box":this.parseTurretBox, + "muzzle":this.parseMuzzle + }; + } + + private function parseSkin(mesh:Mesh, tankTurret:TankTurret) : void + { + tankTurret.geometry = mesh.geometry; + } + + private function parseFlagMountPoint(mesh:Mesh, tankTurret:TankTurret) : void + { + tankTurret.§_-G3§.reset(mesh.x,mesh.y,mesh.z); + } + + private function parseTurretBox(mesh:Mesh, tankTurret:TankTurret) : void + { + tankTurret.§_-Of§.push(TankPartParsingUtils.parseCollisionBoxData(mesh)); + } + + private function parseMuzzle(mesh:Mesh, tankTurret:TankTurret) : void + { + tankTurret.§_-O3§.push(new Vector3(mesh.x,mesh.y,mesh.z)); + } + } +} + diff --git a/src/package_76/name_663.as b/src/?_-1e?/?_-D-?.as similarity index 68% rename from src/package_76/name_663.as rename to src/?_-1e?/?_-D-?.as index feca430..d720ce3 100644 --- a/src/package_76/name_663.as +++ b/src/?_-1e?/?_-D-?.as @@ -1,10 +1,10 @@ -package package_76 +package §_-1e§ { - import package_90.name_386; + import §_-KA§.§_-FW§; - public class name_663 + public class §_-D-§ { - private static const nodeBoundBoxThreshold:name_386 = new name_386(); + private static const nodeBoundBoxThreshold:§_-FW§ = new §_-FW§(); private static const splitCoordsX:Vector. = new Vector.(); @@ -18,59 +18,59 @@ package package_76 public var threshold:Number = 0.1; - public var var_681:int = 1; + public var §_-eV§:int = 1; - public var name_659:name_656; + public var §_-5H§:§_-oZ§; - public var name_661:Vector.; + public var §_-8A§:Vector.<§_-Nh§>; - public var var_679:int; + public var §_-TO§:int; - public var staticBoundBoxes:Vector. = new Vector.(); + public var staticBoundBoxes:Vector.<§_-FW§> = new Vector.<§_-FW§>(); - private var var_678:int; + private var §_-94§:int; - private var var_677:Number; + private var §_-P5§:Number; - private var var_680:Number; + private var §_-ou§:Number; - public function name_663() + public function §_-D-§() { super(); } - public function name_669(collisionPrimitives:Vector., boundBox:name_386 = null) : void + public function §_-J9§(collisionPrimitives:Vector.<§_-Nh§>, boundBox:§_-FW§ = null) : void { - var child:name_235 = null; - var childBoundBox:name_386 = null; - this.name_661 = collisionPrimitives.concat(); - this.var_679 = this.name_661.length; - this.name_659 = new name_656(); - this.name_659.indices = new Vector.(); - var rootNodeBoundBox:name_386 = this.name_659.boundBox = boundBox != null ? boundBox : new name_386(); - for(var i:int = 0; i < this.var_679; i++) + var child:§_-Nh§ = null; + var childBoundBox:§_-FW§ = null; + this.§_-8A§ = collisionPrimitives.concat(); + this.§_-TO§ = this.§_-8A§.length; + this.§_-5H§ = new §_-oZ§(); + this.§_-5H§.indices = new Vector.(); + var rootNodeBoundBox:§_-FW§ = this.§_-5H§.boundBox = boundBox != null ? boundBox : new §_-FW§(); + for(var i:int = 0; i < this.§_-TO§; i++) { - child = this.name_661[i]; + child = this.§_-8A§[i]; childBoundBox = this.staticBoundBoxes[i] = child.calculateAABB(); - rootNodeBoundBox.name_583(childBoundBox); - this.name_659.indices[i] = i; + rootNodeBoundBox.§_-EH§(childBoundBox); + this.§_-5H§.indices[i] = i; } - this.staticBoundBoxes.length = this.var_679; - this.splitNode(this.name_659); + this.staticBoundBoxes.length = this.§_-TO§; + this.splitNode(this.§_-5H§); splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0; } - private function splitNode(node:name_656) : void + private function splitNode(node:§_-oZ§) : void { - var nodeBoundBox:name_386 = null; + var nodeBoundBox:§_-FW§ = null; var i:int = 0; var j:int = 0; - var boundBox:name_386 = null; + var boundBox:§_-FW§ = null; var min:Number = NaN; var max:Number = NaN; var indices:Vector. = node.indices; var numPrimitives:int = int(indices.length); - if(numPrimitives <= this.var_681) + if(numPrimitives <= this.§_-eV§) { return; } @@ -183,45 +183,45 @@ package package_76 } i++; } - this.var_678 = -1; - this.var_680 = 1e+308; + this.§_-94§ = -1; + this.§_-ou§ = 1e+308; _nodeBB[0] = nodeBoundBox.minX; _nodeBB[1] = nodeBoundBox.minY; _nodeBB[2] = nodeBoundBox.minZ; _nodeBB[3] = nodeBoundBox.maxX; _nodeBB[4] = nodeBoundBox.maxY; _nodeBB[5] = nodeBoundBox.maxZ; - this.method_834(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); - this.method_834(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); - this.method_834(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); - if(this.var_678 < 0) + this.§_-1k§(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); + this.§_-1k§(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); + this.§_-1k§(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); + if(this.§_-94§ < 0) { return; } - var axisX:Boolean = this.var_678 == 0; - var axisY:Boolean = this.var_678 == 1; - node.axis = this.var_678; - node.coord = this.var_677; - node.name_657 = new name_656(); - node.name_657.parent = node; - node.name_657.boundBox = nodeBoundBox.clone(); - node.name_658 = new name_656(); - node.name_658.parent = node; - node.name_658.boundBox = nodeBoundBox.clone(); + var axisX:Boolean = this.§_-94§ == 0; + var axisY:Boolean = this.§_-94§ == 1; + node.axis = this.§_-94§; + node.coord = this.§_-P5§; + node.§_-Gm§ = new §_-oZ§(); + node.§_-Gm§.parent = node; + node.§_-Gm§.boundBox = nodeBoundBox.clone(); + node.§_-75§ = new §_-oZ§(); + node.§_-75§.parent = node; + node.§_-75§.boundBox = nodeBoundBox.clone(); if(axisX) { - node.name_657.boundBox.maxX = node.name_658.boundBox.minX = this.var_677; + node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§; } else if(axisY) { - node.name_657.boundBox.maxY = node.name_658.boundBox.minY = this.var_677; + node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§; } else { - node.name_657.boundBox.maxZ = node.name_658.boundBox.minZ = this.var_677; + node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§; } - var coordMin:Number = this.var_677 - this.threshold; - var coordMax:Number = this.var_677 + this.threshold; + var coordMin:Number = this.§_-P5§ - this.threshold; + var coordMax:Number = this.§_-P5§ + this.threshold; for(i = 0; i < numPrimitives; ) { boundBox = this.staticBoundBoxes[indices[i]]; @@ -231,30 +231,30 @@ package package_76 { if(min < coordMin) { - if(node.name_657.indices == null) + if(node.§_-Gm§.indices == null) { - node.name_657.indices = new Vector.(); + node.§_-Gm§.indices = new Vector.(); } - node.name_657.indices.push(indices[i]); + node.§_-Gm§.indices.push(indices[i]); indices[i] = -1; } else { - if(node.var_674 == null) + if(node.§_-Xt§ == null) { - node.var_674 = new Vector.(); + node.§_-Xt§ = new Vector.(); } - node.var_674.push(indices[i]); + node.§_-Xt§.push(indices[i]); indices[i] = -1; } } else if(min >= coordMin) { - if(node.name_658.indices == null) + if(node.§_-75§.indices == null) { - node.name_658.indices = new Vector.(); + node.§_-75§.indices = new Vector.(); } - node.name_658.indices.push(indices[i]); + node.§_-75§.indices.push(indices[i]); indices[i] = -1; } i++; @@ -276,22 +276,22 @@ package package_76 { node.indices = null; } - if(node.var_674 != null) + if(node.§_-Xt§ != null) { - node.name_660 = new CollisionKdTree2D(this,node); - node.name_660.name_669(); + node.§_-da§ = new CollisionKdTree2D(this,node); + node.§_-da§.§_-J9§(); } - if(node.name_657.indices != null) + if(node.§_-Gm§.indices != null) { - this.splitNode(node.name_657); + this.splitNode(node.§_-Gm§); } - if(node.name_658.indices != null) + if(node.§_-75§.indices != null) { - this.splitNode(node.name_658); + this.splitNode(node.§_-75§); } } - private function method_834(node:name_656, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void + private function §_-1k§(node:§_-oZ§, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void { var currSplitCoord:Number = NaN; var minCoord:Number = NaN; @@ -304,7 +304,7 @@ package package_76 var numObjects:int = 0; var j:int = 0; var cost:Number = NaN; - var boundBox:name_386 = null; + var boundBox:§_-FW§ = null; var axis1:int = (axis + 1) % 3; var axis2:int = (axis + 2) % 3; var area:Number = (bb[axis1 + 3] - bb[axis1]) * (bb[axis2 + 3] - bb[axis2]); @@ -351,11 +351,11 @@ package package_76 cost = areaNegative * numNegative + areaPositive * numPositive; if(!conflict) { - if(cost < this.var_680 && numNegative > 0 && numPositive > 0) + if(cost < this.§_-ou§ && numNegative > 0 && numPositive > 0) { - this.var_678 = axis; - this.var_680 = cost; - this.var_677 = currSplitCoord; + this.§_-94§ = axis; + this.§_-ou§ = cost; + this.§_-P5§ = currSplitCoord; } } for(j = i + 1; j < numSplitCoords; ) @@ -370,20 +370,20 @@ package package_76 } } - public function method_835() : void + public function §_-YO§() : void { - this.method_833("",this.name_659); + this.§_-es§("",this.§_-5H§); } - private function method_833(str:String, node:name_656) : void + private function §_-es§(str:String, node:§_-oZ§) : void { if(node == null) { return; } - trace(str,node.axis == -1 ? "end" : (node.axis == 0 ? "X" : (node.axis == 1 ? "Y" : "Z")),"splitCoord=" + this.var_677,"bound",node.boundBox,"objs:",node.indices); - this.method_833(str + "-",node.name_657); - this.method_833(str + "+",node.name_658); + trace(str,node.axis == -1 ? "end" : (node.axis == 0 ? "X" : (node.axis == 1 ? "Y" : "Z")),"splitCoord=" + this.§_-P5§,"bound",node.boundBox,"objs:",node.indices); + this.§_-es§(str + "-",node.§_-Gm§); + this.§_-es§(str + "+",node.§_-75§); } } } diff --git a/src/package_76/name_682.as b/src/?_-1e?/?_-LG?.as similarity index 57% rename from src/package_76/name_682.as rename to src/?_-1e?/?_-LG?.as index 5f9c209..92afb3b 100644 --- a/src/package_76/name_682.as +++ b/src/?_-1e?/?_-LG?.as @@ -1,71 +1,71 @@ -package package_76 +package §_-1e§ { - import package_121.name_666; - import package_121.name_667; - import package_121.name_668; - import package_121.name_732; - import package_121.name_733; - import package_46.name_194; - import package_90.name_273; - import package_90.name_386; - import package_92.name_271; - import package_92.name_630; + import §_-KA§.§_-FW§; + import §_-KA§.§_-jr§; + import §_-US§.§_-6h§; + import §_-US§.§_-BV§; + import §_-nl§.§_-bj§; + import §while§.§_-6O§; + import §while§.§_-GQ§; + import §while§.§_-O8§; + import §while§.§_-Ph§; + import §while§.§_-hu§; - public class name_682 implements name_256 + public class §_-LG§ implements §_-fx§ { - private static var _rayAABB:name_386 = new name_386(); + private static var _rayAABB:§_-FW§ = new §_-FW§(); - public var var_592:name_663; + public var §_-bw§:§_-D-§; - public var var_684:Vector.; + public var §_-Fz§:Vector.<§_-Nh§>; - public var var_685:int; + public var §_-iH§:int; public var threshold:Number = 0.0001; - private var var_596:Object = {}; + private var §_-P6§:Object = {}; - private var var_420:MinMax = new MinMax(); + private var §_-qC§:MinMax = new MinMax(); - private var var_594:name_194 = new name_194(); + private var §_-k8§:§_-bj§ = new §_-bj§(); - private var var_590:name_194 = new name_194(); + private var §_-0q§:§_-bj§ = new §_-bj§(); - private var var_595:name_273 = new name_273(); + private var §_-2P§:§_-jr§ = new §_-jr§(); - public function name_682() + public function §_-LG§() { super(); - this.var_592 = new name_663(); - this.var_684 = new Vector.(); - this.method_655(name_235.BOX,name_235.BOX,new name_666()); - this.method_655(name_235.BOX,name_235.SPHERE,new name_733()); - this.method_655(name_235.BOX,name_235.RECT,new name_667()); - this.method_655(name_235.BOX,name_235.TRIANGLE,new name_668()); - this.method_655(name_235.SPHERE,name_235.SPHERE,new name_732()); + this.§_-bw§ = new §_-D-§(); + this.§_-Fz§ = new Vector.<§_-Nh§>(); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.BOX,new §_-Ph§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.SPHERE,new §_-O8§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.RECT,new §_-GQ§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.TRIANGLE,new §_-hu§()); + this.§_-c2§(§_-Nh§.SPHERE,§_-Nh§.SPHERE,new §_-6O§()); } - public function method_844(primitive:name_235, isStatic:Boolean = true) : Boolean + public function §_-6v§(primitive:§_-Nh§, isStatic:Boolean = true) : Boolean { return true; } - public function method_843(primitive:name_235, isStatic:Boolean = true) : Boolean + public function §_-2V§(primitive:§_-Nh§, isStatic:Boolean = true) : Boolean { return true; } - public function init(collisionPrimitives:Vector.) : void + public function init(collisionPrimitives:Vector.<§_-Nh§>) : void { - this.var_592.name_669(collisionPrimitives); + this.§_-bw§.§_-J9§(collisionPrimitives); } - public function method_553(contacts:name_630) : name_630 + public function §_-63§(contacts:§_-6h§) : §_-6h§ { return contacts; } - public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean { if((prim1.collisionGroup & prim2.collisionGroup) == 0) { @@ -79,14 +79,14 @@ package package_76 { return false; } - var collider:name_665 = this.var_596[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as name_665; + var collider:§_-hG§ = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as §_-hG§; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_662(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) { return false; } - if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_662(prim2,prim1)) + if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)) { return false; } @@ -95,7 +95,7 @@ package package_76 return false; } - public function method_554(prim1:name_235, prim2:name_235) : Boolean + public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean { if((prim1.collisionGroup & prim2.collisionGroup) == 0) { @@ -109,14 +109,14 @@ package package_76 { return false; } - var collider:name_665 = this.var_596[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as name_665; + var collider:§_-hG§ = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as §_-hG§; if(collider != null && Boolean(collider.haveCollision(prim1,prim2))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_662(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) { return false; } - if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_662(prim2,prim1)) + if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)) { return false; } @@ -125,19 +125,19 @@ package package_76 return false; } - public function raycast(origin:name_194, dir:name_194, collisionGroup:int, maxTime:Number, predicate:name_631, result:name_273) : Boolean + public function raycast(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, predicate:§_-jn§, result:§_-jr§) : Boolean { - var hasStaticIntersection:Boolean = this.name_324(origin,dir,collisionGroup,maxTime,predicate,result); - var hasDynamicIntersection:Boolean = this.method_841(origin,dir,collisionGroup,maxTime,predicate,this.var_595); + var hasStaticIntersection:Boolean = this.§_-cX§(origin,dir,collisionGroup,maxTime,predicate,result); + var hasDynamicIntersection:Boolean = this.§_-Tm§(origin,dir,collisionGroup,maxTime,predicate,this.§_-2P§); if(!(hasDynamicIntersection || hasStaticIntersection)) { return false; } if(hasDynamicIntersection && hasStaticIntersection) { - if(result.t > this.var_595.t) + if(result.t > this.§_-2P§.t) { - result.copy(this.var_595); + result.copy(this.§_-2P§); } return true; } @@ -145,62 +145,62 @@ package package_76 { return true; } - result.copy(this.var_595); + result.copy(this.§_-2P§); return true; } - public function name_324(origin:name_194, dir:name_194, collisionGroup:int, maxTime:Number, predicate:name_631, result:name_273) : Boolean + public function §_-cX§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, predicate:§_-jn§, result:§_-jr§) : Boolean { - if(!this.method_662(origin,dir,this.var_592.name_659.boundBox,this.var_420)) + if(!this.§_-oL§(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§)) { return false; } - if(this.var_420.max < 0 || this.var_420.min > maxTime) + if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime) { return false; } - if(this.var_420.min <= 0) + if(this.§_-qC§.min <= 0) { - this.var_420.min = 0; - this.var_590.x = origin.x; - this.var_590.y = origin.y; - this.var_590.z = origin.z; + this.§_-qC§.min = 0; + this.§_-0q§.x = origin.x; + this.§_-0q§.y = origin.y; + this.§_-0q§.z = origin.z; } else { - this.var_590.x = origin.x + this.var_420.min * dir.x; - this.var_590.y = origin.y + this.var_420.min * dir.y; - this.var_590.z = origin.z + this.var_420.min * dir.z; + this.§_-0q§.x = origin.x + this.§_-qC§.min * dir.x; + this.§_-0q§.y = origin.y + this.§_-qC§.min * dir.y; + this.§_-0q§.z = origin.z + this.§_-qC§.min * dir.z; } - if(this.var_420.max > maxTime) + if(this.§_-qC§.max > maxTime) { - this.var_420.max = maxTime; + this.§_-qC§.max = maxTime; } - var hasIntersection:Boolean = this.method_652(this.var_592.name_659,origin,this.var_590,dir,collisionGroup,this.var_420.min,this.var_420.max,predicate,result); + var hasIntersection:Boolean = this.§_-NC§(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionGroup,this.§_-qC§.min,this.§_-qC§.max,predicate,result); return hasIntersection ? result.t <= maxTime : false; } - public function method_842(body:name_271, primitive:name_235) : Boolean + public function §_-9G§(body:§_-BV§, primitive:§_-Nh§) : Boolean { return false; } - private function method_655(type1:int, type2:int, collider:name_665) : void + private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void { - this.var_596[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider; + this.§_-P6§[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider; } - private function method_653(node:name_656, primitive:name_235, contacts:name_630) : name_630 + private function §_-m1§(node:§_-oZ§, primitive:§_-Nh§, contacts:§_-6h§) : §_-6h§ { return null; } - private function method_841(origin:name_194, dir:name_194, collisionGroup:int, maxTime:Number, filter:name_631, result:name_273) : Boolean + private function §_-Tm§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean { var yy:Number = NaN; var minTime:Number = NaN; - var primitive:name_235 = null; - var paabb:name_386 = null; + var primitive:§_-Nh§ = null; + var paabb:§_-FW§ = null; var t:Number = NaN; var xx:Number = origin.x + dir.x * maxTime; yy = origin.y + dir.y * maxTime; @@ -236,24 +236,24 @@ package package_76 _rayAABB.maxZ = zz; } minTime = maxTime + 1; - for(var i:int = 0; i < this.var_685; ) + for(var i:int = 0; i < this.§_-iH§; ) { - primitive = this.var_684[i]; + primitive = this.§_-Fz§[i]; if((primitive.collisionGroup & collisionGroup) != 0) { paabb = primitive.aabb; if(!(_rayAABB.maxX < paabb.minX || _rayAABB.minX > paabb.maxX || _rayAABB.maxY < paabb.minY || _rayAABB.minY > paabb.maxY || _rayAABB.maxZ < paabb.minZ || _rayAABB.minZ > paabb.maxZ)) { - if(!(filter != null && !filter.name_664(primitive))) + if(!(filter != null && !filter.§_-0w§(primitive))) { - t = primitive.raycast(origin,dir,this.threshold,this.var_594); + t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); if(t > 0 && t < minTime) { minTime = t; result.primitive = primitive; - result.normal.x = this.var_594.x; - result.normal.y = this.var_594.y; - result.normal.z = this.var_594.z; + result.normal.x = this.§_-k8§.x; + result.normal.y = this.§_-k8§.y; + result.normal.z = this.§_-k8§.z; } } } @@ -271,7 +271,7 @@ package package_76 return true; } - private function method_662(origin:name_194, dir:name_194, bb:name_386, time:MinMax) : Boolean + private function §_-oL§(origin:§_-bj§, dir:§_-bj§, bb:§_-FW§, time:MinMax) : Boolean { var t1:Number = NaN; var t2:Number = NaN; @@ -348,12 +348,12 @@ package package_76 return true; } - private function method_652(node:name_656, origin:name_194, localOrigin:name_194, dir:name_194, collisionGroup:int, t1:Number, t2:Number, predicate:name_631, result:name_273) : Boolean + private function §_-NC§(node:§_-oZ§, origin:§_-bj§, localOrigin:§_-bj§, dir:§_-bj§, collisionGroup:int, t1:Number, t2:Number, predicate:§_-jn§, result:§_-jr§) : Boolean { var splitTime:Number = NaN; - var currChildNode:name_656 = null; + var currChildNode:§_-oZ§ = null; var intersects:Boolean = false; - if(node.indices != null && this.method_660(origin,dir,collisionGroup,this.var_592.name_661,node.indices,predicate,result)) + if(node.indices != null && this.§_-FH§(origin,dir,collisionGroup,this.§_-bw§.§_-8A§,node.indices,predicate,result)) { return true; } @@ -372,7 +372,7 @@ package package_76 { splitTime = (node.coord - origin.x) / dir.x; } - currChildNode = localOrigin.x < node.coord ? node.name_657 : node.name_658; + currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§; break; case 1: if(dir.y > -this.threshold && dir.y < this.threshold) @@ -383,7 +383,7 @@ package package_76 { splitTime = (node.coord - origin.y) / dir.y; } - currChildNode = localOrigin.y < node.coord ? node.name_657 : node.name_658; + currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§; break; case 2: if(dir.z > -this.threshold && dir.z < this.threshold) @@ -394,26 +394,26 @@ package package_76 { splitTime = (node.coord - origin.z) / dir.z; } - currChildNode = localOrigin.z < node.coord ? node.name_657 : node.name_658; + currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§; } if(splitTime < t1 || splitTime > t2) { - return this.method_652(currChildNode,origin,localOrigin,dir,collisionGroup,t1,t2,predicate,result); + return this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionGroup,t1,t2,predicate,result); } - intersects = this.method_652(currChildNode,origin,localOrigin,dir,collisionGroup,t1,splitTime,predicate,result); + intersects = this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionGroup,t1,splitTime,predicate,result); if(intersects) { return true; } - this.var_590.x = origin.x + splitTime * dir.x; - this.var_590.y = origin.y + splitTime * dir.y; - this.var_590.z = origin.z + splitTime * dir.z; - return this.method_652(currChildNode == node.name_657 ? node.name_658 : node.name_657,origin,this.var_590,dir,collisionGroup,splitTime,t2,predicate,result); + this.§_-0q§.x = origin.x + splitTime * dir.x; + this.§_-0q§.y = origin.y + splitTime * dir.y; + this.§_-0q§.z = origin.z + splitTime * dir.z; + return this.§_-NC§(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionGroup,splitTime,t2,predicate,result); } - private function method_660(origin:name_194, dir:name_194, collisionGroup:int, primitives:Vector., indices:Vector., filter:name_631, intersection:name_273) : Boolean + private function §_-FH§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, primitives:Vector.<§_-Nh§>, indices:Vector., filter:§_-jn§, intersection:§_-jr§) : Boolean { - var primitive:name_235 = null; + var primitive:§_-Nh§ = null; var t:Number = NaN; var pnum:int = int(indices.length); var minTime:Number = 1e+308; @@ -422,16 +422,16 @@ package package_76 primitive = primitives[indices[i]]; if((primitive.collisionGroup & collisionGroup) != 0) { - if(!(filter != null && !filter.name_664(primitive))) + if(!(filter != null && !filter.§_-0w§(primitive))) { - t = primitive.raycast(origin,dir,this.threshold,this.var_594); + t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); if(t > 0 && t < minTime) { minTime = t; intersection.primitive = primitive; - intersection.normal.x = this.var_594.x; - intersection.normal.y = this.var_594.y; - intersection.normal.z = this.var_594.z; + intersection.normal.x = this.§_-k8§.x; + intersection.normal.y = this.§_-k8§.y; + intersection.normal.z = this.§_-k8§.z; } } } diff --git a/src/package_76/CollisionKdTree2D.as b/src/?_-1e?/CollisionKdTree2D.as similarity index 67% rename from src/package_76/CollisionKdTree2D.as rename to src/?_-1e?/CollisionKdTree2D.as index 779f7d4..a2418f0 100644 --- a/src/package_76/CollisionKdTree2D.as +++ b/src/?_-1e?/CollisionKdTree2D.as @@ -1,10 +1,10 @@ -package package_76 +package §_-1e§ { - import package_90.name_386; + import §_-KA§.§_-FW§; public class CollisionKdTree2D { - private static const nodeBoundBoxThreshold:name_386 = new name_386(); + private static const nodeBoundBoxThreshold:§_-FW§ = new §_-FW§(); private static const splitCoordsX:Vector. = new Vector.(); @@ -18,53 +18,53 @@ package package_76 public var threshold:Number = 0.1; - public var var_681:int = 1; + public var §_-eV§:int = 1; - public var parentTree:name_663; + public var parentTree:§_-D-§; - public var parentNode:name_656; + public var parentNode:§_-oZ§; - public var name_659:name_656; + public var §_-5H§:§_-oZ§; - private var var_678:int; + private var §_-94§:int; - private var var_680:Number; + private var §_-ou§:Number; - private var var_677:Number; + private var §_-P5§:Number; - public function CollisionKdTree2D(parentTree:name_663, parentNode:name_656) + public function CollisionKdTree2D(parentTree:§_-D-§, parentNode:§_-oZ§) { super(); this.parentTree = parentTree; this.parentNode = parentNode; } - public function name_669() : void + public function §_-J9§() : void { - this.name_659 = new name_656(); - this.name_659.boundBox = this.parentNode.boundBox.clone(); - this.name_659.indices = new Vector.(); - var numObjects:int = int(this.parentNode.var_674.length); - for(var i:int = 0; i < numObjects; this.name_659.indices[i] = this.parentNode.var_674[i],i++) + this.§_-5H§ = new §_-oZ§(); + this.§_-5H§.boundBox = this.parentNode.boundBox.clone(); + this.§_-5H§.indices = new Vector.(); + var numObjects:int = int(this.parentNode.§_-Xt§.length); + for(var i:int = 0; i < numObjects; this.§_-5H§.indices[i] = this.parentNode.§_-Xt§[i],i++) { } - this.splitNode(this.name_659); + this.splitNode(this.§_-5H§); splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0; } - private function splitNode(node:name_656) : void + private function splitNode(node:§_-oZ§) : void { var objects:Vector. = null; var i:int = 0; var j:int = 0; - var nodeBoundBox:name_386 = null; + var nodeBoundBox:§_-FW§ = null; var numSplitCoordsX:int = 0; var numSplitCoordsY:int = 0; var numSplitCoordsZ:int = 0; - var bb:name_386 = null; + var bb:§_-FW§ = null; var min:Number = NaN; var max:Number = NaN; - if(node.indices.length <= this.var_681) + if(node.indices.length <= this.§_-eV§) { return; } @@ -77,7 +77,7 @@ package package_76 nodeBoundBoxThreshold.maxY = nodeBoundBox.maxY - this.threshold; nodeBoundBoxThreshold.maxZ = nodeBoundBox.maxZ - this.threshold; var doubleThreshold:Number = this.threshold * 2; - var staticBoundBoxes:Vector. = this.parentTree.staticBoundBoxes; + var staticBoundBoxes:Vector.<§_-FW§> = this.parentTree.staticBoundBoxes; var numObjects:int = int(objects.length); for(i = 0; i < numObjects; ) { @@ -123,8 +123,8 @@ package package_76 } i++; } - this.var_678 = -1; - this.var_680 = 1e+308; + this.§_-94§ = -1; + this.§_-ou§ = 1e+308; _nodeBB[0] = nodeBoundBox.minX; _nodeBB[1] = nodeBoundBox.minY; _nodeBB[2] = nodeBoundBox.minZ; @@ -133,44 +133,44 @@ package package_76 _nodeBB[5] = nodeBoundBox.maxZ; if(this.parentNode.axis != 0) { - this.method_834(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); + this.§_-1k§(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); } if(this.parentNode.axis != 1) { - this.method_834(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); + this.§_-1k§(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); } if(this.parentNode.axis != 2) { - this.method_834(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); + this.§_-1k§(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); } - if(this.var_678 < 0) + if(this.§_-94§ < 0) { return; } - var axisX:Boolean = this.var_678 == 0; - var axisY:Boolean = this.var_678 == 1; - node.axis = this.var_678; - node.coord = this.var_677; - node.name_657 = new name_656(); - node.name_657.parent = node; - node.name_657.boundBox = nodeBoundBox.clone(); - node.name_658 = new name_656(); - node.name_658.parent = node; - node.name_658.boundBox = nodeBoundBox.clone(); + var axisX:Boolean = this.§_-94§ == 0; + var axisY:Boolean = this.§_-94§ == 1; + node.axis = this.§_-94§; + node.coord = this.§_-P5§; + node.§_-Gm§ = new §_-oZ§(); + node.§_-Gm§.parent = node; + node.§_-Gm§.boundBox = nodeBoundBox.clone(); + node.§_-75§ = new §_-oZ§(); + node.§_-75§.parent = node; + node.§_-75§.boundBox = nodeBoundBox.clone(); if(axisX) { - node.name_657.boundBox.maxX = node.name_658.boundBox.minX = this.var_677; + node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§; } else if(axisY) { - node.name_657.boundBox.maxY = node.name_658.boundBox.minY = this.var_677; + node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§; } else { - node.name_657.boundBox.maxZ = node.name_658.boundBox.minZ = this.var_677; + node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§; } - var coordMin:Number = this.var_677 - this.threshold; - var coordMax:Number = this.var_677 + this.threshold; + var coordMin:Number = this.§_-P5§ - this.threshold; + var coordMax:Number = this.§_-P5§ + this.threshold; for(i = 0; i < numObjects; ) { bb = staticBoundBoxes[objects[i]]; @@ -180,11 +180,11 @@ package package_76 { if(min < coordMin) { - if(node.name_657.indices == null) + if(node.§_-Gm§.indices == null) { - node.name_657.indices = new Vector.(); + node.§_-Gm§.indices = new Vector.(); } - node.name_657.indices.push(objects[i]); + node.§_-Gm§.indices.push(objects[i]); objects[i] = -1; } } @@ -192,11 +192,11 @@ package package_76 { if(max > coordMax) { - if(node.name_658.indices == null) + if(node.§_-75§.indices == null) { - node.name_658.indices = new Vector.(); + node.§_-75§.indices = new Vector.(); } - node.name_658.indices.push(objects[i]); + node.§_-75§.indices.push(objects[i]); objects[i] = -1; } } @@ -219,17 +219,17 @@ package package_76 { node.indices = null; } - if(node.name_657.indices != null) + if(node.§_-Gm§.indices != null) { - this.splitNode(node.name_657); + this.splitNode(node.§_-Gm§); } - if(node.name_658.indices != null) + if(node.§_-75§.indices != null) { - this.splitNode(node.name_658); + this.splitNode(node.§_-75§); } } - private function method_834(node:name_656, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void + private function §_-1k§(node:§_-oZ§, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void { var currSplitCoord:Number = NaN; var minCoord:Number = NaN; @@ -242,11 +242,11 @@ package package_76 var numObjects:int = 0; var j:int = 0; var cost:Number = NaN; - var boundBox:name_386 = null; + var boundBox:§_-FW§ = null; var axis1:int = (axis + 1) % 3; var axis2:int = (axis + 2) % 3; var area:Number = (bb[axis1 + 3] - bb[axis1]) * (bb[axis2 + 3] - bb[axis2]); - var staticBoundBoxes:Vector. = this.parentTree.staticBoundBoxes; + var staticBoundBoxes:Vector.<§_-FW§> = this.parentTree.staticBoundBoxes; for(var i:int = 0; i < numSplitCoords; i++) { currSplitCoord = splitCoords[i]; @@ -288,11 +288,11 @@ package package_76 j++; } cost = areaNegative * numNegative + areaPositive * numPositive; - if(!conflict && cost < this.var_680 && numNegative > 0 && numPositive > 0) + if(!conflict && cost < this.§_-ou§ && numNegative > 0 && numPositive > 0) { - this.var_678 = axis; - this.var_680 = cost; - this.var_677 = currSplitCoord; + this.§_-94§ = axis; + this.§_-ou§ = cost; + this.§_-P5§ = currSplitCoord; } for(j = i + 1; j < numSplitCoords; ) { diff --git a/src/?_-5U?/?_-Kr?.as b/src/?_-5U?/?_-Kr?.as new file mode 100644 index 0000000..fdd2100 --- /dev/null +++ b/src/?_-5U?/?_-Kr?.as @@ -0,0 +1,209 @@ +package §_-5U§ +{ + import §_-5g§.§_-OD§; + import §_-5g§.§_-iB§; + import §_-Ep§.§_-7§; + import §_-Ep§.§_-pA§; + import §_-GD§.§_-6A§; + import §_-GD§.§_-X8§; + import §_-GD§.§_-dX§; + import §_-HW§.§_-pf§; + import §_-MU§.§_-5-§; + import §_-MU§.§_-du§; + import §_-O5§.§_-c-§; + import §_-Tt§.§_-Hi§; + import §_-Tt§.§_-Ho§; + import §_-Uy§.§_-oP§; + import §_-XV§.§_-31§; + import §_-XV§.§_-Yx§; + import §_-aA§.§_-1O§; + import §_-aA§.§_-6t§; + import §_-aA§.§_-a-§; + import §_-io§.§_-39§; + import §_-io§.§_-Cs§; + import §_-o8§.§_-Bh§; + import §_-o8§.§_-Ut§; + import flash.display.DisplayObjectContainer; + import flash.display.Stage; + import flash.events.KeyboardEvent; + import flash.ui.Keyboard; + + public class §_-Kr§ implements §_-6t§ + { + private var osgi:§_-oP§; + + private var clientLog:§_-5-§; + + private var console:§_-dX§; + + private var §_-UU§:KeyboardShortcut; + + private var §_-jQ§:KeyboardShortcut; + + public function §_-Kr§() + { + super(); + } + + public function start(rootContainer:DisplayObjectContainer, urlParams:§_-c-§, libraryInfos:Vector.<§_-a-§>, connectionParameters:§_-1O§, startupLogStrings:Vector.) : void + { + var libraryInfo:§_-a-§ = null; + this.osgi = §_-oP§.§_-nQ§(); + this.§_-SF§(urlParams,startupLogStrings); + this.§_-33§(rootContainer.stage,urlParams); + this.osgi.§_-g2§(§_-iB§,new §_-OD§(urlParams,libraryInfos)); + this.osgi.§_-g2§(§_-31§,new §_-Yx§(rootContainer)); + this.osgi.§_-g2§(§_-Ho§,new §_-Hi§(connectionParameters.serverAddress,connectionParameters.serverPorts,connectionParameters.resourcesRootURL)); + var language:String = urlParams.§_-aR§("lang","ru"); + this.osgi.§_-g2§(§_-7§,new §_-pA§(language,"en")); + var dumpService:§_-39§ = new §_-Cs§(this.osgi); + this.osgi.§_-g2§(§_-39§,dumpService); + dumpService.§_-Wc§(new §_-Bh§(this.osgi)); + dumpService.§_-Wc§(new §_-Ut§(this.osgi)); + for each(libraryInfo in libraryInfos) + { + this.osgi.§_-XK§(new §_-pf§(libraryInfo.manifestProperties)); + } + } + + private function §_-SF§(urlParams:§_-c-§, startupLogStrings:Vector.) : void + { + var s:String = null; + var logChannelBufferSize:int = int(int(urlParams.§_-aR§("log_channel_buffer_size","1000"))); + this.clientLog = new §_-du§(logChannelBufferSize); + §_-oP§.clientLog = this.clientLog; + this.osgi.§_-g2§(§_-5-§,this.clientLog); + for each(s in startupLogStrings) + { + this.clientLog.log("startup",s); + } + } + + private function §_-33§(stage:Stage, urlParams:§_-c-§) : void + { + var channelName:String = null; + this.console = new §_-dX§(stage,50,100,1,1); + this.osgi.§_-g2§(§_-6A§,this.console); + var consoleParams:String = urlParams.§_-PU§("console"); + if(Boolean(consoleParams)) + { + this.§_-bC§(stage,this.console,consoleParams); + } + var clientLogConnector:§_-X8§ = new §_-X8§(this.clientLog,this.console); + this.console.§_-0j§("log",clientLogConnector.§_-9Q§); + var logChannels:String = urlParams.§_-PU§("showlog"); + if(Boolean(logChannels)) + { + if(logChannels == "all") + { + this.clientLog.addLogListener(clientLogConnector); + } + else + { + for each(channelName in logChannels.split(",")) + { + this.clientLog.addLogChannelListener(channelName,clientLogConnector); + } + } + } + } + + private function §_-bC§(stage:Stage, console:§_-dX§, consoleParams:String) : void + { + var pair:String = null; + var parts:Array = null; + var pairs:Array = consoleParams.split(","); + var params:Object = {}; + for each(pair in pairs) + { + parts = pair.split(":"); + params[parts[0]] = parts[1]; + } + if(params["show"] != null) + { + console.show(); + } + if(params["ha"] != null) + { + console.§_-TC§ = int(params["ha"]); + } + if(params["va"] != null) + { + console.§_-p2§ = int(params["va"]); + } + if(params["w"] != null) + { + console.width = int(params["w"]); + } + if(params["h"] != null) + { + console.height = int(params["h"]); + } + if(params["alpha"] != null) + { + console.§_-I1§("con_alpha " + params["alpha"]); + } + this.§_-UU§ = this.§ for§(params["hsw"],Keyboard.LEFT,false,true,true); + this.§_-jQ§ = this.§ for§(params["vsw"],Keyboard.UP,false,true,true); + stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-bM§,true); + } + + private function § for§(s:String, defKey:int, defAlt:Boolean, defCtrl:Boolean, defShift:Boolean) : KeyboardShortcut + { + if(s == null) + { + return new KeyboardShortcut(defKey,defAlt,defCtrl,defShift); + } + return new KeyboardShortcut(parseInt(s),s.indexOf("a") > -1,s.indexOf("c") > -1,s.indexOf("s") > -1); + } + + private function §_-bM§(e:KeyboardEvent) : void + { + switch(e.keyCode) + { + case this.§_-UU§.keyCode: + if(this.§_-UU§.altKey == e.altKey && this.§_-UU§.shiftKey == e.shiftKey && this.§_-UU§.ctrlKey == e.ctrlKey) + { + if(this.console.§_-TC§ == 1) + { + this.console.§_-TC§ = 2; + break; + } + this.console.§_-TC§ = 1; + } + break; + case this.§_-jQ§.keyCode: + if(this.§_-jQ§.altKey == e.altKey && this.§_-jQ§.shiftKey == e.shiftKey && this.§_-jQ§.ctrlKey == e.ctrlKey) + { + if(this.console.§_-p2§ == 1) + { + this.console.§_-p2§ = 2; + break; + } + this.console.§_-p2§ = 1; + break; + } + } + } + } +} + +class KeyboardShortcut +{ + public var keyCode:int; + + public var altKey:Boolean; + + public var ctrlKey:Boolean; + + public var shiftKey:Boolean; + + public function KeyboardShortcut(keyCode:int, altKey:Boolean, ctrlKey:Boolean, shiftKey:Boolean) + { + super(); + this.keyCode = keyCode; + this.altKey = altKey; + this.ctrlKey = ctrlKey; + this.shiftKey = shiftKey; + } +} diff --git a/src/package_21/name_81.as b/src/?_-8D?/?_-JI?.as similarity index 75% rename from src/package_21/name_81.as rename to src/?_-8D?/?_-JI?.as index 8c2c0af..ba9cbbc 100644 --- a/src/package_21/name_81.as +++ b/src/?_-8D?/?_-JI?.as @@ -1,5 +1,13 @@ -package package_21 +package §_-8D§ { + import §_-1s§.MouseEvent3D; + import §_-1z§.§_-gA§; + import §_-5U§.§_-fn§; + import §_-Ex§.§_-a2§; + import §_-M8§.§_-5§; + import §_-M8§.§_-Xk§; + import §_-M8§.§_-hR§; + import §_-Vh§.§_-RB§; import alternativa.engine3d.alternativa3d; import flash.display.Bitmap; import flash.display.BitmapData; @@ -30,28 +38,20 @@ package package_21 import flash.ui.Mouse; import flash.utils.Dictionary; import flash.utils.setTimeout; - import alternativa.Alternativa3D; - import package_19.name_117; - import package_28.name_119; - import package_29.MouseEvent3D; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.name_127; use namespace alternativa3d; - public class name_81 extends Sprite + public class §_-JI§ extends Sprite { - private static var drawDistanceFragment:name_121; + private static var drawDistanceFragment:§_-hR§; - private static var drawDistanceVertexProcedure:name_114; + private static var drawDistanceVertexProcedure:§_-Xk§; private static const renderEvent:MouseEvent = new MouseEvent("render"); private static const drawDistancePrograms:Dictionary = new Dictionary(); - private static const drawUnit:name_135 = new name_135(); + private static const drawUnit:§_-QF§ = new §_-QF§(); private static const pixels:Dictionary = new Dictionary(); @@ -67,11 +67,11 @@ package package_21 private static const localCoords:Vector3D = new Vector3D(); - private static const branch:Vector. = new Vector.(); + private static const branch:Vector.<§_-OX§> = new Vector.<§_-OX§>(); - private static const overedBranch:Vector. = new Vector.(); + private static const overedBranch:Vector.<§_-OX§> = new Vector.<§_-OX§>(); - private static const changedBranch:Vector. = new Vector.(); + private static const changedBranch:Vector.<§_-OX§> = new Vector.<§_-OX§>(); private static const functions:Vector. = new Vector.(); @@ -97,57 +97,57 @@ package package_21 public var antiAlias:int; - alternativa3d var var_110:int; + alternativa3d var §_-qj§:int; alternativa3d var _height:int; - alternativa3d var var_114:BitmapData = null; + alternativa3d var §_-gJ§:BitmapData = null; - private var var_117:Vector.; + private var §_-j6§:Vector.; private var indices:Vector.; - private var var_113:int = 0; + private var §_-Zv§:int = 0; - private var surfaces:Vector.; + private var surfaces:Vector.<§_-a2§>; - private var geometries:Vector.; + private var geometries:Vector.<§_-gA§>; - private var var_128:Vector.; + private var §_-2L§:Vector.<§_-Xk§>; - private var var_115:int = 0; + private var §_-8b§:int = 0; - alternativa3d var var_127:Vector.; + alternativa3d var §_-Cr§:Vector.; - alternativa3d var var_133:Vector.; + alternativa3d var §_-g4§:Vector.; - private var var_124:Vector.; + private var §_-Ql§:Vector.; - private var var_121:Vector.>; + private var §extends§:Vector.>; - private var var_120:Vector.>; + private var §_-9L§:Vector.>; - private var var_130:Vector.; + private var §_-4N§:Vector.; - private var var_132:Vector.; + private var §_-ff§:Vector.; alternativa3d var raysLength:int = 0; - private var var_119:MouseEvent; + private var §_-Ki§:MouseEvent; - private var target:name_78; + private var target:§_-OX§; - private var targetSurface:name_117; + private var targetSurface:§_-a2§; - private var var_122:Number; + private var §_-Cu§:Number; - private var var_123:name_78; + private var §_-B4§:§_-OX§; - private var var_129:name_78; + private var §_-c3§:§_-OX§; - private var var_116:name_78; + private var §_-Lx§:§_-OX§; - private var var_131:name_117; + private var §_-H7§:§_-a2§; private var altKey:Boolean; @@ -159,34 +159,34 @@ package package_21 private var area:Sprite; - private var var_112:Logo; + private var §_-N2§:Logo; - private var var_118:Bitmap; + private var §_-OE§:Bitmap; - private var var_111:String = "BR"; + private var §_-bx§:String = "BR"; - private var var_126:Number = 0; + private var §_-hq§:Number = 0; - private var var_125:Number = 0; + private var §_-Xc§:Number = 0; - private var var_134:Boolean; + private var §_-IE§:Boolean; - public function name_81(width:int, height:int, renderToBitmap:Boolean = false, backgroundColor:uint = 0, backgroundAlpha:Number = 1, antiAlias:int = 0) + public function §_-JI§(width:int, height:int, renderToBitmap:Boolean = false, backgroundColor:uint = 0, backgroundAlpha:Number = 1, antiAlias:int = 0) { var item:ContextMenuItem; var menu:ContextMenu; - this.var_117 = new Vector.(); + this.§_-j6§ = new Vector.(); this.indices = new Vector.(); - this.surfaces = new Vector.(); - this.geometries = new Vector.(); - this.var_128 = new Vector.(); - this.alternativa3d::var_127 = new Vector.(); - this.alternativa3d::var_133 = new Vector.(); - this.var_124 = new Vector.(); - this.var_121 = new Vector.>(); - this.var_120 = new Vector.>(); - this.var_130 = new Vector.(); - this.var_132 = new Vector.(); + this.surfaces = new Vector.<§_-a2§>(); + this.geometries = new Vector.<§_-gA§>(); + this.§_-2L§ = new Vector.<§_-Xk§>(); + this.alternativa3d::_-Cr = new Vector.(); + this.alternativa3d::_-g4 = new Vector.(); + this.§_-Ql§ = new Vector.(); + this.§extends§ = new Vector.>(); + this.§_-9L§ = new Vector.>(); + this.§_-4N§ = new Vector.(); + this.§_-ff§ = new Vector.(); super(); if(width < 50) { @@ -196,9 +196,9 @@ package package_21 { height = 50; } - this.alternativa3d::var_110 = width; + this.alternativa3d::_-qj = width; this.alternativa3d::_height = height; - this.var_134 = renderToBitmap; + this.§_-IE§ = renderToBitmap; this.backgroundColor = backgroundColor; this.backgroundAlpha = backgroundAlpha; this.antiAlias = antiAlias; @@ -209,7 +209,7 @@ package package_21 useHandCursor = false; tabEnabled = false; tabChildren = false; - item = new ContextMenuItem("Powered by Alternativa3D " + Alternativa3D.version); + item = new ContextMenuItem("Powered by Alternativa3D " + §_-fn§.version); item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,function(e:ContextMenuEvent):void { try @@ -226,7 +226,7 @@ package package_21 this.container = new Bitmap(); if(renderToBitmap) { - this.method_232(); + this.§_-Eg§(); } super.addChild(this.container); this.area = new Sprite(); @@ -234,104 +234,104 @@ package package_21 this.area.graphics.drawRect(0,0,100,100); this.area.mouseEnabled = false; this.area.visible = false; - this.area.width = this.alternativa3d::var_110; + this.area.width = this.alternativa3d::_-qj; this.area.height = this.alternativa3d::_height; hitArea = this.area; super.addChild(hitArea); - this.method_242(); + this.§_-GU§(); if(drawDistanceFragment == null) { - drawDistanceVertexProcedure = name_114.name_140(["#v0=distance","#c0=transform0","#c1=transform1","#c2=transform2","#c3=coefficient","#c4=projection","dp4 t0.x, i0, c0","dp4 t0.y, i0, c1","dp4 t0.z, i0, c2","mul v0.x, t0.z, c3.z","mov v0.y, i0.x","mov v0.z, i0.x","mov v0.w, i0.x","mul t1.x, t0.x, c4.x","mul t1.y, t0.y, c4.y","mul t0.w, t0.z, c4.z","add t1.z, t0.w, c4.w","mov t3.z, c4.x","div t3.z, t3.z, c4.x","sub t3.z, t3.z, c3.w","mul t1.w, t0.z, t3.z","add t1.w, t1.w, c3.w","mul t0.x, c3.x, t1.w","mul t0.y, c3.y, t1.w","add t1.x, t1.x, t0.x","add t1.y, t1.y, t0.y","mov o0, t1"],"mouseEventsVertex"); - drawDistanceFragment = new name_121(Context3DProgramType.FRAGMENT); - drawDistanceFragment.name_123(new name_114(["mov t0.z, c0.z","mov t0.w, c0.w","frc t0.y, v0.x","sub t0.x, v0.x, t0.y","mul t0.x, t0.x, c0.x","mov o0, ft0","#v0=distance","#c0=code"],"mouseEventsFragment")); + drawDistanceVertexProcedure = §_-Xk§.§_-En§(["#v0=distance","#c0=transform0","#c1=transform1","#c2=transform2","#c3=coefficient","#c4=projection","dp4 t0.x, i0, c0","dp4 t0.y, i0, c1","dp4 t0.z, i0, c2","mul v0.x, t0.z, c3.z","mov v0.y, i0.x","mov v0.z, i0.x","mov v0.w, i0.x","mul t1.x, t0.x, c4.x","mul t1.y, t0.y, c4.y","mul t0.w, t0.z, c4.z","add t1.z, t0.w, c4.w","mov t3.z, c4.x","div t3.z, t3.z, c4.x","sub t3.z, t3.z, c3.w","mul t1.w, t0.z, t3.z","add t1.w, t1.w, c3.w","mul t0.x, c3.x, t1.w","mul t0.y, c3.y, t1.w","add t1.x, t1.x, t0.x","add t1.y, t1.y, t0.y","mov o0, t1"],"mouseEventsVertex"); + drawDistanceFragment = new §_-hR§(Context3DProgramType.FRAGMENT); + drawDistanceFragment.§_-on§(new §_-Xk§(["mov t0.z, c0.z","mov t0.w, c0.w","frc t0.y, v0.x","sub t0.x, v0.x, t0.y","mul t0.x, t0.x, c0.x","mov o0, ft0","#v0=distance","#c0=code"],"mouseEventsFragment")); } - addEventListener(MouseEvent.MOUSE_DOWN,this.method_229); - addEventListener(MouseEvent.CLICK,this.method_229); - addEventListener(MouseEvent.DOUBLE_CLICK,this.method_229); - addEventListener(MouseEvent.MOUSE_MOVE,this.method_229); - addEventListener(MouseEvent.MOUSE_OVER,this.method_229); - addEventListener(MouseEvent.MOUSE_WHEEL,this.method_229); - addEventListener(MouseEvent.MOUSE_OUT,this.method_238); - addEventListener(Event.ADDED_TO_STAGE,this.method_80); - addEventListener(Event.REMOVED_FROM_STAGE,this.method_81); + addEventListener(MouseEvent.MOUSE_DOWN,this.§_-2B§); + addEventListener(MouseEvent.CLICK,this.§_-2B§); + addEventListener(MouseEvent.DOUBLE_CLICK,this.§_-2B§); + addEventListener(MouseEvent.MOUSE_MOVE,this.§_-2B§); + addEventListener(MouseEvent.MOUSE_OVER,this.§_-2B§); + addEventListener(MouseEvent.MOUSE_WHEEL,this.§_-2B§); + addEventListener(MouseEvent.MOUSE_OUT,this.§_-CS§); + addEventListener(Event.ADDED_TO_STAGE,this.§_-Id§); + addEventListener(Event.REMOVED_FROM_STAGE,this.§_-99§); } - private function method_229(mouseEvent:MouseEvent) : void + private function §_-2B§(mouseEvent:MouseEvent) : void { - var prev:int = this.var_113 - 1; - if(this.var_113 > 0 && mouseEvent.type == "mouseMove" && (this.var_117[prev] as MouseEvent).type == "mouseMove") + var prev:int = this.§_-Zv§ - 1; + if(this.§_-Zv§ > 0 && mouseEvent.type == "mouseMove" && (this.§_-j6§[prev] as MouseEvent).type == "mouseMove") { - this.var_117[prev] = mouseEvent; + this.§_-j6§[prev] = mouseEvent; } else { - this.var_117[this.var_113] = mouseEvent; - ++this.var_113; + this.§_-j6§[this.§_-Zv§] = mouseEvent; + ++this.§_-Zv§; } - this.var_119 = mouseEvent; + this.§_-Ki§ = mouseEvent; } - private function method_238(mouseEvent:MouseEvent) : void + private function §_-CS§(mouseEvent:MouseEvent) : void { - this.var_117[this.var_113] = mouseEvent; - ++this.var_113; - this.var_119 = null; + this.§_-j6§[this.§_-Zv§] = mouseEvent; + ++this.§_-Zv§; + this.§_-Ki§ = null; } - private function method_232() : void + private function §_-Eg§() : void { - this.alternativa3d::var_114 = new BitmapData(this.alternativa3d::var_110,this.alternativa3d::_height,this.backgroundAlpha < 1,this.backgroundColor); - this.container.bitmapData = this.alternativa3d::var_114; + this.alternativa3d::_-gJ = new BitmapData(this.alternativa3d::_-qj,this.alternativa3d::_height,this.backgroundAlpha < 1,this.backgroundColor); + this.container.bitmapData = this.alternativa3d::_-gJ; this.container.smoothing = true; } - private function method_80(e:Event) : void + private function §_-Id§(e:Event) : void { - stage.addEventListener(KeyboardEvent.KEY_DOWN,this.method_15); - stage.addEventListener(KeyboardEvent.KEY_UP,this.method_233); + stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); + stage.addEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); } - private function method_81(e:Event) : void + private function §_-99§(e:Event) : void { - stage.removeEventListener(KeyboardEvent.KEY_DOWN,this.method_15); - stage.removeEventListener(KeyboardEvent.KEY_UP,this.method_233); + stage.removeEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); + stage.removeEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); this.altKey = false; this.ctrlKey = false; this.shiftKey = false; } - private function method_15(keyboardEvent:KeyboardEvent) : void + private function §_-Ze§(keyboardEvent:KeyboardEvent) : void { this.altKey = keyboardEvent.altKey; this.ctrlKey = keyboardEvent.ctrlKey; this.shiftKey = keyboardEvent.shiftKey; - if(this.ctrlKey && this.shiftKey && keyboardEvent.keyCode == Keyboard.F1 && this.var_118 == null) + if(this.ctrlKey && this.shiftKey && keyboardEvent.keyCode == Keyboard.F1 && this.§_-OE§ == null) { - this.var_118 = new Bitmap(Logo.image); - this.var_118.x = Math.round((this.alternativa3d::var_110 - this.var_118.width) / 2); - this.var_118.y = Math.round((this.alternativa3d::_height - this.var_118.height) / 2); - super.addChild(this.var_118); - setTimeout(this.method_241,2048); + this.§_-OE§ = new Bitmap(Logo.image); + this.§_-OE§.x = Math.round((this.alternativa3d::_-qj - this.§_-OE§.width) / 2); + this.§_-OE§.y = Math.round((this.alternativa3d::_height - this.§_-OE§.height) / 2); + super.addChild(this.§_-OE§); + setTimeout(this.§_-4j§,2048); } } - private function method_233(keyboardEvent:KeyboardEvent) : void + private function §_-Uf§(keyboardEvent:KeyboardEvent) : void { this.altKey = keyboardEvent.altKey; this.ctrlKey = keyboardEvent.ctrlKey; this.shiftKey = keyboardEvent.shiftKey; } - private function method_241() : void + private function §_-4j§() : void { - if(this.var_118 != null) + if(this.§_-OE§ != null) { - super.removeChild(this.var_118); - this.var_118 = null; + super.removeChild(this.§_-OE§); + this.§_-OE§ = null; } } - alternativa3d function calculateRays(camera:name_124) : void + alternativa3d function calculateRays(camera:§_-be§) : void { var i:int = 0; var mouseEvent:MouseEvent = null; @@ -339,12 +339,12 @@ package package_21 var origin:Vector3D = null; var direction:Vector3D = null; var coefficient:Point = null; - if(this.var_119 != null) + if(this.§_-Ki§ != null) { mouseMoved = false; - for(i = 0; i < this.var_113; ) + for(i = 0; i < this.§_-Zv§; ) { - mouseEvent = this.var_117[i]; + mouseEvent = this.§_-j6§[i]; if(mouseEvent.type == "mouseMove" || mouseEvent.type == "mouseOut") { mouseMoved = true; @@ -354,55 +354,55 @@ package package_21 } if(!mouseMoved) { - renderEvent.localX = this.var_119.localX; - renderEvent.localY = this.var_119.localY; + renderEvent.localX = this.§_-Ki§.localX; + renderEvent.localY = this.§_-Ki§.localY; renderEvent.ctrlKey = this.ctrlKey; renderEvent.altKey = this.altKey; renderEvent.shiftKey = this.shiftKey; - renderEvent.buttonDown = this.var_119.buttonDown; + renderEvent.buttonDown = this.§_-Ki§.buttonDown; renderEvent.delta = 0; - this.var_117[this.var_113] = renderEvent; - ++this.var_113; + this.§_-j6§[this.§_-Zv§] = renderEvent; + ++this.§_-Zv§; } } var mouseX:Number = 1e+22; var mouseY:Number = 1e+22; - for(i = 0; i < this.var_113; i++) + for(i = 0; i < this.§_-Zv§; i++) { - mouseEvent = this.var_117[i]; + mouseEvent = this.§_-j6§[i]; if(mouseEvent.type != "mouseOut") { if(mouseEvent.localX != mouseX || mouseEvent.localY != mouseY) { mouseX = Number(mouseEvent.localX); mouseY = Number(mouseEvent.localY); - if(this.alternativa3d::raysLength < this.alternativa3d::var_127.length) + if(this.alternativa3d::raysLength < this.alternativa3d::_-Cr.length) { - origin = this.alternativa3d::var_127[this.alternativa3d::raysLength]; - direction = this.alternativa3d::var_133[this.alternativa3d::raysLength]; - coefficient = this.var_124[this.alternativa3d::raysLength]; + origin = this.alternativa3d::_-Cr[this.alternativa3d::raysLength]; + direction = this.alternativa3d::_-g4[this.alternativa3d::raysLength]; + coefficient = this.§_-Ql§[this.alternativa3d::raysLength]; } else { origin = new Vector3D(); direction = new Vector3D(); coefficient = new Point(); - this.alternativa3d::var_127[this.alternativa3d::raysLength] = origin; - this.alternativa3d::var_133[this.alternativa3d::raysLength] = direction; - this.var_124[this.alternativa3d::raysLength] = coefficient; - this.var_121[this.alternativa3d::raysLength] = new Vector.(); - this.var_120[this.alternativa3d::raysLength] = new Vector.(); + this.alternativa3d::_-Cr[this.alternativa3d::raysLength] = origin; + this.alternativa3d::_-g4[this.alternativa3d::raysLength] = direction; + this.§_-Ql§[this.alternativa3d::raysLength] = coefficient; + this.§extends§[this.alternativa3d::raysLength] = new Vector.<§_-a2§>(); + this.§_-9L§[this.alternativa3d::raysLength] = new Vector.(); } if(!camera.orthographic) { - direction.x = mouseX - this.alternativa3d::var_110 * 0.5; + direction.x = mouseX - this.alternativa3d::_-qj * 0.5; direction.y = mouseY - this.alternativa3d::_height * 0.5; direction.z = camera.alternativa3d::focalLength; origin.x = direction.x * camera.nearClipping / camera.alternativa3d::focalLength; origin.y = direction.y * camera.nearClipping / camera.alternativa3d::focalLength; origin.z = camera.nearClipping; direction.normalize(); - coefficient.x = mouseX * 2 / this.alternativa3d::var_110; + coefficient.x = mouseX * 2 / this.alternativa3d::_-qj; coefficient.y = mouseY * 2 / this.alternativa3d::_height; } else @@ -410,10 +410,10 @@ package package_21 direction.x = 0; direction.y = 0; direction.z = 1; - origin.x = mouseX - this.alternativa3d::var_110 * 0.5; + origin.x = mouseX - this.alternativa3d::_-qj * 0.5; origin.y = mouseY - this.alternativa3d::_height * 0.5; origin.z = camera.nearClipping; - coefficient.x = mouseX * 2 / this.alternativa3d::var_110; + coefficient.x = mouseX * 2 / this.alternativa3d::_-qj; coefficient.y = mouseY * 2 / this.alternativa3d::_height; } ++this.alternativa3d::raysLength; @@ -427,15 +427,15 @@ package package_21 } } - alternativa3d function name_398(surface:name_117, geometry:name_119, procedure:name_114) : void + alternativa3d function §_-bA§(surface:§_-a2§, geometry:§_-gA§, procedure:§_-Xk§) : void { - this.surfaces[this.var_115] = surface; - this.geometries[this.var_115] = geometry; - this.var_128[this.var_115] = procedure; - ++this.var_115; + this.surfaces[this.§_-8b§] = surface; + this.geometries[this.§_-8b§] = geometry; + this.§_-2L§[this.§_-8b§] = procedure; + ++this.§_-8b§; } - alternativa3d function method_244(stage3D:Stage3D, context:Context3D) : void + alternativa3d function §_-jR§(stage3D:Stage3D, context:Context3D) : void { var vis:Boolean = false; var parent:DisplayObject = null; @@ -444,16 +444,16 @@ package package_21 var isIncubator:Boolean = "viewPort" in stage3DObject; if(isIncubator) { - if(this.alternativa3d::var_110 > 2048) + if(this.alternativa3d::_-qj > 2048) { - this.alternativa3d::var_110 = 2048; + this.alternativa3d::_-qj = 2048; } if(this.alternativa3d::_height > 2048) { this.alternativa3d::_height = 2048; } } - if(this.alternativa3d::var_114 == null) + if(this.alternativa3d::_-gJ == null) { vis = Boolean(this.visible); for(parent = this.parent; parent != null; parent = parent.parent) @@ -469,7 +469,7 @@ package package_21 { rectangle.x = coords.x; rectangle.y = coords.y; - point.x = this.alternativa3d::var_110; + point.x = this.alternativa3d::_-qj; point.y = this.alternativa3d::_height; coords = localToGlobal(point); rectangle.width = coords.x - rectangle.x; @@ -506,13 +506,13 @@ package package_21 { stage3DObject.visible = false; } - if(this.alternativa3d::var_110 != this.alternativa3d::var_114.width || this.alternativa3d::_height != this.alternativa3d::var_114.height || this.backgroundAlpha < 1 != this.alternativa3d::var_114.transparent) + if(this.alternativa3d::_-qj != this.alternativa3d::_-gJ.width || this.alternativa3d::_height != this.alternativa3d::_-gJ.height || this.backgroundAlpha < 1 != this.alternativa3d::_-gJ.transparent) { - this.alternativa3d::var_114.dispose(); - this.method_232(); + this.alternativa3d::_-gJ.dispose(); + this.§_-Eg§(); } } - context.configureBackBuffer(this.alternativa3d::var_110,this.alternativa3d::_height,this.antiAlias); + context.configureBackBuffer(this.alternativa3d::_-qj,this.alternativa3d::_height,this.antiAlias); var r:Number = (this.backgroundColor >> 16 & 0xFF) / 255; var g:Number = (this.backgroundColor >> 8 & 0xFF) / 255; var b:Number = (this.backgroundColor & 0xFF) / 255; @@ -525,23 +525,23 @@ package package_21 context.clear(r,g,b,this.backgroundAlpha); } - alternativa3d function method_243(context:Context3D, camera:name_124) : void + alternativa3d function §_-7K§(context:Context3D, camera:§_-be§) : void { var i:int = 0; - var raySurfaces:Vector. = null; + var raySurfaces:Vector.<§_-a2§> = null; var rayDepths:Vector. = null; var raySurfacesLength:int = 0; var mouseEvent:MouseEvent = null; var index:int = 0; - if(this.var_113 > 0) + if(this.§_-Zv§ > 0) { - if(this.var_115 > 0) + if(this.§_-8b§ > 0) { - this.method_236(context,camera,this.alternativa3d::var_110,this.alternativa3d::_height); + this.§_-oI§(context,camera,this.alternativa3d::_-qj,this.alternativa3d::_height); for(i = 0; i < this.alternativa3d::raysLength; ) { - raySurfaces = this.var_121[i]; - rayDepths = this.var_120[i]; + raySurfaces = this.§extends§[i]; + rayDepths = this.§_-9L§[i]; raySurfacesLength = int(raySurfaces.length); if(raySurfacesLength > 1) { @@ -550,103 +550,103 @@ package package_21 i++; } } - this.var_122 = camera.farClipping; - for(i = 0; i < this.var_113; i++) + this.§_-Cu§ = camera.farClipping; + for(i = 0; i < this.§_-Zv§; i++) { - mouseEvent = this.var_117[i]; + mouseEvent = this.§_-j6§[i]; index = this.indices[i]; switch(mouseEvent.type) { case "mouseDown": - this.method_228(index); + this.§_-7f§(index); if(this.target != null) { - this.method_226(MouseEvent3D.MOUSE_DOWN,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); + this.§_-AJ§(MouseEvent3D.MOUSE_DOWN,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); } - this.var_123 = this.target; + this.§_-B4§ = this.target; break; case "mouseWheel": - this.method_228(index); + this.§_-7f§(index); if(this.target != null) { - this.method_226(MouseEvent3D.MOUSE_WHEEL,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); + this.§_-AJ§(MouseEvent3D.MOUSE_WHEEL,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); } break; case "click": - this.method_228(index); + this.§_-7f§(index); if(this.target != null) { - this.method_226(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); - if(this.var_123 == this.target) + this.§_-AJ§(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); + if(this.§_-B4§ == this.target) { - this.var_129 = this.target; - this.method_226(MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); + this.§_-c3§ = this.target; + this.§_-AJ§(MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); } } - this.var_123 = null; + this.§_-B4§ = null; break; case "doubleClick": - this.method_228(index); + this.§_-7f§(index); if(this.target != null) { - this.method_226(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); - if(this.var_123 == this.target) + this.§_-AJ§(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); + if(this.§_-B4§ == this.target) { - this.method_226(this.var_129 == this.target && this.target.doubleClickEnabled ? MouseEvent3D.DOUBLE_CLICK : MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); + this.§_-AJ§(this.§_-c3§ == this.target && Boolean(this.target.doubleClickEnabled) ? MouseEvent3D.DOUBLE_CLICK : MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); } } - this.var_129 = null; - this.var_123 = null; + this.§_-c3§ = null; + this.§_-B4§ = null; break; case "mouseMove": - this.method_228(index); + this.§_-7f§(index); if(this.target != null) { - this.method_226(MouseEvent3D.MOUSE_MOVE,mouseEvent,camera,this.target,this.targetSurface,this.method_227(this.target,branch)); + this.§_-AJ§(MouseEvent3D.MOUSE_MOVE,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); } - if(this.var_116 != this.target) + if(this.§_-Lx§ != this.target) { - this.method_231(mouseEvent,camera); + this.§_-px§(mouseEvent,camera); } break; case "mouseOut": - this.var_119 = null; + this.§_-Ki§ = null; this.target = null; this.targetSurface = null; - if(this.var_116 != this.target) + if(this.§_-Lx§ != this.target) { - this.method_231(mouseEvent,camera); + this.§_-px§(mouseEvent,camera); } break; case "render": - this.method_228(index); - if(this.var_116 != this.target) + this.§_-7f§(index); + if(this.§_-Lx§ != this.target) { - this.method_231(mouseEvent,camera); + this.§_-px§(mouseEvent,camera); } break; } this.target = null; this.targetSurface = null; - this.var_122 = camera.farClipping; + this.§_-Cu§ = camera.farClipping; } } this.surfaces.length = 0; - this.var_115 = 0; - this.var_117.length = 0; - this.var_113 = 0; + this.§_-8b§ = 0; + this.§_-j6§.length = 0; + this.§_-Zv§ = 0; for(i = 0; i < this.alternativa3d::raysLength; i++) { - this.var_121[i].length = 0; - this.var_120[i].length = 0; + this.§extends§[i].length = 0; + this.§_-9L§[i].length = 0; } this.alternativa3d::raysLength = 0; } - private function method_236(context:Context3D, camera:name_124, contextWidth:int, contextHeight:int) : void + private function §_-oI§(context:Context3D, camera:§_-be§, contextWidth:int, contextHeight:int) : void { - var vLinker:name_121 = null; - var fLinker:name_121 = null; + var vLinker:§_-hR§ = null; + var fLinker:§_-hR§ = null; var i:int = 0; var j:int = 0; var log2Width:int = 0; @@ -661,7 +661,7 @@ package package_21 var red:int = 0; var green:int = 0; var ind:int = 0; - var raySurfaces:Vector. = null; + var raySurfaces:Vector.<§_-a2§> = null; var rayDepths:Vector. = null; context.setBlendFactors(Context3DBlendFactor.ONE,Context3DBlendFactor.ZERO); context.setCulling(Context3DTriangleFace.FRONT); @@ -681,36 +681,36 @@ package package_21 context.setVertexBufferAt(5,null); context.setVertexBufferAt(6,null); context.setVertexBufferAt(7,null); - var drawRectGeometry:name_119 = drawRectGeometries[context]; + var drawRectGeometry:§_-gA§ = drawRectGeometries[context]; if(drawRectGeometry == null) { - drawRectGeometry = new name_119(4); - drawRectGeometry.addVertexStream([name_126.POSITION,name_126.POSITION,name_126.POSITION,name_126.TEXCOORDS[0],name_126.TEXCOORDS[0]]); - drawRectGeometry.setAttributeValues(name_126.POSITION,Vector.([0,0,1,0,1,1,1,1,1,1,0,1])); - drawRectGeometry.setAttributeValues(name_126.TEXCOORDS[0],Vector.([0,0,0,1,1,1,1,0])); + drawRectGeometry = new §_-gA§(4); + drawRectGeometry.addVertexStream([§_-d6§.POSITION,§_-d6§.POSITION,§_-d6§.POSITION,§_-d6§.TEXCOORDS[0],§_-d6§.TEXCOORDS[0]]); + drawRectGeometry.setAttributeValues(§_-d6§.POSITION,Vector.([0,0,1,0,1,1,1,1,1,1,0,1])); + drawRectGeometry.setAttributeValues(§_-d6§.TEXCOORDS[0],Vector.([0,0,0,1,1,1,1,0])); drawRectGeometry.indices = Vector.([0,1,3,2,3,1]); drawRectGeometry.upload(context); drawRectGeometries[context] = drawRectGeometry; } - var drawColoredRectProgram:name_127 = drawColoredRectPrograms[context]; + var drawColoredRectProgram:§_-RB§ = drawColoredRectPrograms[context]; if(drawColoredRectProgram == null) { - vLinker = new name_121(Context3DProgramType.VERTEX); - vLinker.name_123(name_114.name_140(["#a0=a0","#c0=c0","mul t0.x, a0.x, c0.x","mul t0.y, a0.y, c0.y","add o0.x, t0.x, c0.z","add o0.y, t0.y, c0.w","mov o0.z, a0.z","mov o0.w, a0.z"])); - fLinker = new name_121(Context3DProgramType.FRAGMENT); - fLinker.name_123(name_114.name_140(["#c0=c0","mov o0, c0"])); - drawColoredRectProgram = new name_127(vLinker,fLinker); + vLinker = new §_-hR§(Context3DProgramType.VERTEX); + vLinker.§_-on§(§_-Xk§.§_-En§(["#a0=a0","#c0=c0","mul t0.x, a0.x, c0.x","mul t0.y, a0.y, c0.y","add o0.x, t0.x, c0.z","add o0.y, t0.y, c0.w","mov o0.z, a0.z","mov o0.w, a0.z"])); + fLinker = new §_-hR§(Context3DProgramType.FRAGMENT); + fLinker.§_-on§(§_-Xk§.§_-En§(["#c0=c0","mov o0, c0"])); + drawColoredRectProgram = new §_-RB§(vLinker,fLinker); drawColoredRectProgram.upload(context); drawColoredRectPrograms[context] = drawColoredRectProgram; } - var drawTexturedRectProgram:name_127 = drawTexturedRectPrograms[context]; + var drawTexturedRectProgram:§_-RB§ = drawTexturedRectPrograms[context]; if(drawTexturedRectProgram == null) { - vLinker = new name_121(Context3DProgramType.VERTEX); - vLinker.name_123(name_114.name_140(["#a0=a0","#a1=a1","#v0=v0","#c0=c0","#c1=c1","mul v0, a1, c1","mul t0.x, a0.x, c0.x","mul t0.y, a0.y, c0.y","add o0.x, t0.x, c0.z","add o0.y, t0.y, c0.w","mov o0.z, a0.z","mov o0.w, a0.z"])); - fLinker = new name_121(Context3DProgramType.FRAGMENT); - fLinker.name_123(name_114.name_140(["#v0=v0","#s0=s0","tex t0, v0, s0 <2d, nearest, mipnone>","mov o0, t0"])); - drawTexturedRectProgram = new name_127(vLinker,fLinker); + vLinker = new §_-hR§(Context3DProgramType.VERTEX); + vLinker.§_-on§(§_-Xk§.§_-En§(["#a0=a0","#a1=a1","#v0=v0","#c0=c0","#c1=c1","mul v0, a1, c1","mul t0.x, a0.x, c0.x","mul t0.y, a0.y, c0.y","add o0.x, t0.x, c0.z","add o0.y, t0.y, c0.w","mov o0.z, a0.z","mov o0.w, a0.z"])); + fLinker = new §_-hR§(Context3DProgramType.FRAGMENT); + fLinker.§_-on§(§_-Xk§.§_-En§(["#v0=v0","#s0=s0","tex t0, v0, s0 <2d, nearest, mipnone>","mov o0, t0"])); + drawTexturedRectProgram = new §_-RB§(vLinker,fLinker); drawTexturedRectProgram.upload(context); drawTexturedRectPrograms[context] = drawTexturedRectProgram; } @@ -755,9 +755,9 @@ package package_21 var pixelIndex:int = 0; for(i = 0; i < this.alternativa3d::raysLength; ) { - rayCoefficients = this.var_124[i]; + rayCoefficients = this.§_-Ql§[i]; i++; - for(j = 0; j < this.var_115; ) + for(j = 0; j < this.§_-8b§; ) { if(pixelIndex == 0) { @@ -768,29 +768,29 @@ package package_21 } else { - drawColoredRectConst[0] = this.alternativa3d::raysLength * this.var_115 * 2 / contextWidth; + drawColoredRectConst[0] = this.alternativa3d::raysLength * this.§_-8b§ * 2 / contextWidth; drawColoredRectConst[1] = -2 / contextHeight; context.setDepthTest(false,Context3DCompareMode.ALWAYS); context.setProgram(drawColoredRectProgram.program); - context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(name_126.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); + context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawColoredRectConst); drawRectColor[0] = 1; drawRectColor[1] = 0; drawRectColor[2] = 0; drawRectColor[3] = 1; context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawRectColor); - context.drawTriangles(drawRectGeometry.alternativa3d::name_132,0,2); + context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); context.setVertexBufferAt(0,null); } } scissor.x = pixelIndex; context.setScissorRectangle(scissor); - this.method_237(context,camera,j,m0,m5,m10,m11,(pixelIndex * 2 / contextWidth - rayCoefficients.x) * drawTextureWidthScale + drawTextureWidthOffset,rayCoefficients.y * drawTextureHeightScale - drawTextureHeightOffset,kZ,fragmentConst,camera.orthographic); - this.var_130[pixelIndex] = i - 1; - this.var_132[pixelIndex] = j; + this.§_-6R§(context,camera,j,m0,m5,m10,m11,(pixelIndex * 2 / contextWidth - rayCoefficients.x) * drawTextureWidthScale + drawTextureWidthOffset,rayCoefficients.y * drawTextureHeightScale - drawTextureHeightOffset,kZ,fragmentConst,camera.orthographic); + this.§_-4N§[pixelIndex] = i - 1; + this.§_-ff§[pixelIndex] = j; j++; pixelIndex++; - if(pixelIndex >= contextWidth || i >= this.alternativa3d::raysLength && j >= this.var_115) + if(pixelIndex >= contextWidth || i >= this.alternativa3d::raysLength && j >= this.§_-8b§) { if(this.antiAlias > 0) { @@ -801,12 +801,12 @@ package package_21 drawTexturedRectUVScaleConst[0] = textureScreenSize; context.setDepthTest(false,Context3DCompareMode.ALWAYS); context.setProgram(drawTexturedRectProgram.program); - context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(name_126.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - context.setVertexBufferAt(1,drawRectGeometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]),drawRectGeometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); + context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + context.setVertexBufferAt(1,drawRectGeometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]),drawRectGeometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]); context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawColoredRectConst); context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,1,drawTexturedRectUVScaleConst); context.setTextureAt(0,texture); - context.drawTriangles(drawRectGeometry.alternativa3d::name_132,0,2); + context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); context.setTextureAt(0,null); context.setVertexBufferAt(0,null); context.setVertexBufferAt(1,null); @@ -825,10 +825,10 @@ package package_21 green = color >> 8 & 0xFF; if(red < 255) { - ind = this.var_130[k]; - raySurfaces = this.var_121[ind]; - rayDepths = this.var_120[ind]; - ind = this.var_132[k]; + ind = this.§_-4N§[k]; + raySurfaces = this.§extends§[ind]; + rayDepths = this.§_-9L§[ind]; + ind = this.§_-ff§[k]; raySurfaces.push(this.surfaces[ind]); rayDepths.push((red + green / 255) / kZ); } @@ -841,8 +841,8 @@ package package_21 context.setScissorRectangle(null); context.setDepthTest(true,Context3DCompareMode.ALWAYS); context.setProgram(drawColoredRectProgram.program); - context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(name_126.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawColoredRectConst[0] = this.alternativa3d::raysLength * this.var_115 * 2 / contextWidth; + context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + drawColoredRectConst[0] = this.alternativa3d::raysLength * this.§_-8b§ * 2 / contextWidth; drawColoredRectConst[1] = -2 / contextHeight; context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawColoredRectConst); var r:Number = (this.backgroundColor >> 16 & 0xFF) / 255; @@ -862,70 +862,70 @@ package package_21 } drawRectColor[3] = this.backgroundAlpha; context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawRectColor); - context.drawTriangles(drawRectGeometry.alternativa3d::name_132,0,2); + context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); context.setVertexBufferAt(0,null); } - private function method_237(context:Context3D, camera:name_124, index:int, m0:Number, m5:Number, m10:Number, m14:Number, xOffset:Number, yOffset:Number, vertexConst:Number, fragmentConst:Number, orthographic:Boolean) : void + private function §_-6R§(context:Context3D, camera:§_-be§, index:int, m0:Number, m5:Number, m10:Number, m14:Number, xOffset:Number, yOffset:Number, vertexConst:Number, fragmentConst:Number, orthographic:Boolean) : void { var i:int = 0; - var vertex:name_121 = null; + var vertex:§_-hR§ = null; var position:String = null; - var surface:name_117 = this.surfaces[index]; - var geometry:name_119 = this.geometries[index]; - var procedure:name_114 = this.var_128[index]; - var object:name_78 = surface.alternativa3d::object; - var drawDistanceProgram:name_127 = drawDistancePrograms[procedure]; + var surface:§_-a2§ = this.surfaces[index]; + var geometry:§_-gA§ = this.geometries[index]; + var procedure:§_-Xk§ = this.§_-2L§[index]; + var object:§_-OX§ = surface.alternativa3d::object; + var drawDistanceProgram:§_-RB§ = drawDistancePrograms[procedure]; if(drawDistanceProgram == null) { - vertex = new name_121(Context3DProgramType.VERTEX); + vertex = new §_-hR§(Context3DProgramType.VERTEX); position = "position"; - vertex.name_120(position,name_115.ATTRIBUTE); + vertex.§_-LU§(position,§_-5§.ATTRIBUTE); if(procedure != null) { - vertex.name_123(procedure); - vertex.name_120("localPosition",name_115.TEMPORARY); - vertex.name_118(procedure,position); - vertex.name_125(procedure,"localPosition"); + vertex.§_-on§(procedure); + vertex.§_-LU§("localPosition",§_-5§.TEMPORARY); + vertex.§_-FS§(procedure,position); + vertex.§_-qd§(procedure,"localPosition"); position = "localPosition"; } - vertex.name_123(drawDistanceVertexProcedure); - vertex.name_118(drawDistanceVertexProcedure,position); - drawDistanceProgram = new name_127(vertex,drawDistanceFragment); - drawDistanceFragment.name_133(vertex); + vertex.§_-on§(drawDistanceVertexProcedure); + vertex.§_-FS§(drawDistanceVertexProcedure,position); + drawDistanceProgram = new §_-RB§(vertex,drawDistanceFragment); + drawDistanceFragment.§_-NA§(vertex); drawDistanceProgram.upload(context); drawDistancePrograms[procedure] = drawDistanceProgram; } - var buffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); + var buffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); if(buffer == null) { return; } - drawUnit.alternativa3d::name_403 = 0; - drawUnit.alternativa3d::name_404 = 0; - drawUnit.alternativa3d::name_407 = 0; + drawUnit.alternativa3d::_-3G = 0; + drawUnit.alternativa3d::_-9X = 0; + drawUnit.alternativa3d::_-Kv = 0; object.alternativa3d::setTransformConstants(drawUnit,surface,drawDistanceProgram.vertexShader,camera); - drawUnit.alternativa3d::name_412(drawDistanceProgram.vertexShader.getVariableIndex("transform0"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_144(drawDistanceProgram.vertexShader.getVariableIndex("coefficient"),xOffset,yOffset,vertexConst,orthographic ? 1 : 0); - drawUnit.alternativa3d::name_144(drawDistanceProgram.vertexShader.getVariableIndex("projection"),m0,m5,m10,m14); - drawUnit.alternativa3d::name_134(drawDistanceProgram.fragmentShader.getVariableIndex("code"),fragmentConst,0,0,1); + drawUnit.alternativa3d::_-Xd(drawDistanceProgram.vertexShader.getVariableIndex("transform0"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d:: if(drawDistanceProgram.vertexShader.getVariableIndex("coefficient"),xOffset,yOffset,vertexConst,orthographic ? 1 : 0); + drawUnit.alternativa3d:: if(drawDistanceProgram.vertexShader.getVariableIndex("projection"),m0,m5,m10,m14); + drawUnit.alternativa3d::_-Ry(drawDistanceProgram.fragmentShader.getVariableIndex("code"),fragmentConst,0,0,1); context.setProgram(drawDistanceProgram.program); - context.setVertexBufferAt(0,buffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - for(i = 0; i < drawUnit.alternativa3d::name_403; i++) + context.setVertexBufferAt(0,buffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + for(i = 0; i < drawUnit.alternativa3d::_-3G; i++) { - context.setVertexBufferAt(drawUnit.alternativa3d::name_405[i],drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::name_411[i],drawUnit.alternativa3d::name_409[i]); + context.setVertexBufferAt(drawUnit.alternativa3d::else [i],drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]); } - context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::name_410,drawUnit.alternativa3d::name_404); - context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::name_408,drawUnit.alternativa3d::name_407); - context.drawTriangles(geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles); + context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::_-Aq,drawUnit.alternativa3d::_-9X); + context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::_-Cl,drawUnit.alternativa3d::_-Kv); + context.drawTriangles(geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles); context.setVertexBufferAt(0,null); - for(i = 0; i < drawUnit.alternativa3d::name_403; i++) + for(i = 0; i < drawUnit.alternativa3d::_-3G; i++) { - context.setVertexBufferAt(drawUnit.alternativa3d::name_405[i],null); + context.setVertexBufferAt(drawUnit.alternativa3d::else [i],null); } } - private function sort(surfaces:Vector., depths:Vector., length:int) : void + private function sort(surfaces:Vector.<§_-a2§>, depths:Vector., length:int) : void { var r:int = 0; var j:int = 0; @@ -934,7 +934,7 @@ package package_21 var median:Number = NaN; var left:Number = NaN; var right:Number = NaN; - var surface:name_117 = null; + var surface:§_-a2§ = null; stack[0] = 0; stack[1] = length - 1; for(var index:int = 2; index > 0; ) @@ -985,19 +985,19 @@ package package_21 } } - private function method_231(mouseEvent:MouseEvent, camera:name_124) : void + private function §_-px§(mouseEvent:MouseEvent, camera:§_-be§) : void { var changedBranchLength:int = 0; var i:int = 0; var j:int = 0; - var object:name_78 = null; - this.method_227(this.target,branch); - this.method_227(this.var_116,overedBranch); + var object:§_-OX§ = null; + this.§_-lx§(this.target,branch); + this.§_-lx§(this.§_-Lx§,overedBranch); var branchLength:int = int(branch.length); var overedBranchLength:int = int(overedBranch.length); - if(this.var_116 != null) + if(this.§_-Lx§ != null) { - this.method_226(MouseEvent3D.MOUSE_OUT,mouseEvent,camera,this.var_116,this.var_131,overedBranch,true,this.target); + this.§_-AJ§(MouseEvent3D.MOUSE_OUT,mouseEvent,camera,this.§_-Lx§,this.§_-H7§,overedBranch,true,this.target); changedBranchLength = 0; for(i = 0; i < overedBranchLength; ) { @@ -1019,7 +1019,7 @@ package package_21 if(changedBranchLength > 0) { changedBranch.length = changedBranchLength; - this.method_226(MouseEvent3D.ROLL_OUT,mouseEvent,camera,this.var_116,this.var_131,changedBranch,false,this.target); + this.§_-AJ§(MouseEvent3D.ROLL_OUT,mouseEvent,camera,this.§_-Lx§,this.§_-H7§,changedBranch,false,this.target); } } if(this.target != null) @@ -1045,9 +1045,9 @@ package package_21 if(changedBranchLength > 0) { changedBranch.length = changedBranchLength; - this.method_226(MouseEvent3D.ROLL_OVER,mouseEvent,camera,this.target,this.targetSurface,changedBranch,false,this.var_116); + this.§_-AJ§(MouseEvent3D.ROLL_OVER,mouseEvent,camera,this.target,this.targetSurface,changedBranch,false,this.§_-Lx§); } - this.method_226(MouseEvent3D.MOUSE_OVER,mouseEvent,camera,this.target,this.targetSurface,branch,true,this.var_116); + this.§_-AJ§(MouseEvent3D.MOUSE_OVER,mouseEvent,camera,this.target,this.targetSurface,branch,true,this.§_-Lx§); useHandCursor = this.target.useHandCursor; } else @@ -1055,11 +1055,11 @@ package package_21 useHandCursor = false; } Mouse.cursor = Mouse.cursor; - this.var_116 = this.target; - this.var_131 = this.targetSurface; + this.§_-Lx§ = this.target; + this.§_-H7§ = this.targetSurface; } - private function method_227(object:name_78, vector:Vector.) : Vector. + private function §_-lx§(object:§_-OX§, vector:Vector.<§_-OX§>) : Vector.<§_-OX§> { for(var len:int = 0; object != null; ) { @@ -1071,9 +1071,9 @@ package package_21 return vector; } - private function method_226(type:String, mouseEvent:MouseEvent, camera:name_124, target:name_78, targetSurface:name_117, objects:Vector., bubbles:Boolean = true, relatedObject:name_78 = null) : void + private function §_-AJ§(type:String, mouseEvent:MouseEvent, camera:§_-be§, target:§_-OX§, targetSurface:§_-a2§, objects:Vector.<§_-OX§>, bubbles:Boolean = true, relatedObject:§_-OX§ = null) : void { - var object:name_78 = null; + var object:§_-OX§ = null; var vector:Vector. = null; var length:int = 0; var i:int = 0; @@ -1090,13 +1090,13 @@ package package_21 { if(mouseEvent3D == null) { - this.method_234(camera,target.alternativa3d::cameraToLocalTransform,this.var_122,mouseEvent); + this.§_-K3§(camera,target.alternativa3d::cameraToLocalTransform,this.§_-Cu§,mouseEvent); mouseEvent3D = new MouseEvent3D(type,bubbles,localCoords.x,localCoords.y,localCoords.z,relatedObject,mouseEvent.ctrlKey,mouseEvent.altKey,mouseEvent.shiftKey,mouseEvent.buttonDown,mouseEvent.delta); - mouseEvent3D.alternativa3d::name_394 = target; - mouseEvent3D.alternativa3d::var_109 = targetSurface; + mouseEvent3D.alternativa3d::_-5E = target; + mouseEvent3D.alternativa3d::_-BX = targetSurface; } - mouseEvent3D.alternativa3d::name_390 = object; - mouseEvent3D.alternativa3d::name_388 = 1; + mouseEvent3D.alternativa3d::_-Kh = object; + mouseEvent3D.alternativa3d::_-VE = 1; length = int(vector.length); for(j = 0; j < length; functions[j] = vector[j],j++) { @@ -1104,7 +1104,7 @@ package package_21 for(j = 0; j < length; ) { (functions[j] as Function).call(null,mouseEvent3D); - if(mouseEvent3D.alternativa3d::var_108) + if(mouseEvent3D.alternativa3d::_-XD) { return; } @@ -1128,13 +1128,13 @@ package package_21 { if(mouseEvent3D == null) { - this.method_234(camera,target.alternativa3d::cameraToLocalTransform,this.var_122,mouseEvent); + this.§_-K3§(camera,target.alternativa3d::cameraToLocalTransform,this.§_-Cu§,mouseEvent); mouseEvent3D = new MouseEvent3D(type,bubbles,localCoords.x,localCoords.y,localCoords.z,relatedObject,mouseEvent.ctrlKey,mouseEvent.altKey,mouseEvent.shiftKey,mouseEvent.buttonDown,mouseEvent.delta); - mouseEvent3D.alternativa3d::name_394 = target; - mouseEvent3D.alternativa3d::var_109 = targetSurface; + mouseEvent3D.alternativa3d::_-5E = target; + mouseEvent3D.alternativa3d::_-BX = targetSurface; } - mouseEvent3D.alternativa3d::name_390 = object; - mouseEvent3D.alternativa3d::name_388 = i == 0 ? 2 : 3; + mouseEvent3D.alternativa3d::_-Kh = object; + mouseEvent3D.alternativa3d::_-VE = i == 0 ? 2 : 3; length = int(vector.length); for(j = 0; j < length; functions[j] = vector[j],j++) { @@ -1142,7 +1142,7 @@ package package_21 for(j = 0; j < length; ) { (functions[j] as Function).call(null,mouseEvent3D); - if(mouseEvent3D.alternativa3d::var_108) + if(mouseEvent3D.alternativa3d::_-XD) { return; } @@ -1158,18 +1158,18 @@ package package_21 } } - private function method_234(camera:name_124, transform:name_139, z:Number, mouseEvent:MouseEvent) : void + private function §_-K3§(camera:§_-be§, transform:§_-jw§, z:Number, mouseEvent:MouseEvent) : void { var x:Number = NaN; var y:Number = NaN; if(!camera.orthographic) { - x = z * (mouseEvent.localX - this.alternativa3d::var_110 * 0.5) / camera.alternativa3d::focalLength; + x = z * (mouseEvent.localX - this.alternativa3d::_-qj * 0.5) / camera.alternativa3d::focalLength; y = z * (mouseEvent.localY - this.alternativa3d::_height * 0.5) / camera.alternativa3d::focalLength; } else { - x = mouseEvent.localX - this.alternativa3d::var_110 * 0.5; + x = mouseEvent.localX - this.alternativa3d::_-qj * 0.5; y = mouseEvent.localY - this.alternativa3d::_height * 0.5; } localCoords.x = transform.a * x + transform.b * y + transform.c * z + transform.d; @@ -1177,16 +1177,16 @@ package package_21 localCoords.z = transform.i * x + transform.j * y + transform.k * z + transform.l; } - private function method_228(index:int) : void + private function §_-7f§(index:int) : void { - var source:name_78 = null; - var surface:name_117 = null; + var source:§_-OX§ = null; + var surface:§_-a2§ = null; var depth:Number = NaN; - var object:name_78 = null; - var potentialTarget:name_78 = null; - var obj:name_78 = null; - var surfaces:Vector. = this.var_121[index]; - var depths:Vector. = this.var_120[index]; + var object:§_-OX§ = null; + var potentialTarget:§_-OX§ = null; + var obj:§_-OX§ = null; + var surfaces:Vector.<§_-a2§> = this.§extends§[index]; + var depths:Vector. = this.§_-9L§[index]; for(var i:int = surfaces.length - 1; i >= 0; ) { surface = surfaces[i]; @@ -1199,7 +1199,7 @@ package package_21 { potentialTarget = null; } - if(potentialTarget == null && obj.mouseEnabled) + if(potentialTarget == null && Boolean(obj.mouseEnabled)) { potentialTarget = obj; } @@ -1218,7 +1218,7 @@ package package_21 { this.target = potentialTarget; this.targetSurface = surface; - this.var_122 = depth; + this.§_-Cu§ = depth; } break; } @@ -1230,7 +1230,7 @@ package package_21 source = object; this.target = potentialTarget; this.targetSurface = surface; - this.var_122 = depth; + this.§_-Cu§ = depth; } if(source == this.target) { @@ -1243,117 +1243,117 @@ package package_21 public function get renderToBitmap() : Boolean { - return this.alternativa3d::var_114 != null; + return this.alternativa3d::_-gJ != null; } public function set renderToBitmap(value:Boolean) : void { if(value) { - if(this.alternativa3d::var_114 == null) + if(this.alternativa3d::_-gJ == null) { - this.method_232(); + this.§_-Eg§(); } } - else if(this.alternativa3d::var_114 != null) + else if(this.alternativa3d::_-gJ != null) { this.container.bitmapData = null; - this.alternativa3d::var_114.dispose(); - this.alternativa3d::var_114 = null; + this.alternativa3d::_-gJ.dispose(); + this.alternativa3d::_-gJ = null; } } public function get canvas() : BitmapData { - return this.alternativa3d::var_114; + return this.alternativa3d::_-gJ; } - public function method_242() : void + public function §_-GU§() : void { - if(this.var_112 == null) + if(this.§_-N2§ == null) { - this.var_112 = new Logo(); - super.addChild(this.var_112); - this.method_230(); + this.§_-N2§ = new Logo(); + super.addChild(this.§_-N2§); + this.§package§(); } } - public function name_106() : void + public function §_-qT§() : void { - if(this.var_112 != null) + if(this.§_-N2§ != null) { - super.removeChild(this.var_112); - this.var_112 = null; + super.removeChild(this.§_-N2§); + this.§_-N2§ = null; } } - public function get method_240() : String + public function get §_-oJ§() : String { - return this.var_111; + return this.§_-bx§; } - public function set method_240(value:String) : void + public function set §_-oJ§(value:String) : void { - this.var_111 = value; - this.method_230(); + this.§_-bx§ = value; + this.§package§(); } - public function get method_239() : Number + public function get §_-dV§() : Number { - return this.var_126; + return this.§_-hq§; } - public function set method_239(value:Number) : void + public function set §_-dV§(value:Number) : void { - this.var_126 = value; - this.method_230(); + this.§_-hq§ = value; + this.§package§(); } - public function get method_235() : Number + public function get §_-C2§() : Number { - return this.var_125; + return this.§_-Xc§; } - public function set method_235(value:Number) : void + public function set §_-C2§(value:Number) : void { - this.var_125 = value; - this.method_230(); + this.§_-Xc§ = value; + this.§package§(); } - private function method_230() : void + private function §package§() : void { - if(this.var_112 != null) + if(this.§_-N2§ != null) { - if(this.var_111 == StageAlign.TOP_LEFT || this.var_111 == StageAlign.LEFT || this.var_111 == StageAlign.BOTTOM_LEFT) + if(this.§_-bx§ == StageAlign.TOP_LEFT || this.§_-bx§ == StageAlign.LEFT || this.§_-bx§ == StageAlign.BOTTOM_LEFT) { - this.var_112.x = Math.round(this.var_126); + this.§_-N2§.x = Math.round(this.§_-hq§); } - if(this.var_111 == StageAlign.TOP || this.var_111 == StageAlign.BOTTOM) + if(this.§_-bx§ == StageAlign.TOP || this.§_-bx§ == StageAlign.BOTTOM) { - this.var_112.x = Math.round((this.alternativa3d::var_110 - this.var_112.width) / 2); + this.§_-N2§.x = Math.round((this.alternativa3d::_-qj - this.§_-N2§.width) / 2); } - if(this.var_111 == StageAlign.TOP_RIGHT || this.var_111 == StageAlign.RIGHT || this.var_111 == StageAlign.BOTTOM_RIGHT) + if(this.§_-bx§ == StageAlign.TOP_RIGHT || this.§_-bx§ == StageAlign.RIGHT || this.§_-bx§ == StageAlign.BOTTOM_RIGHT) { - this.var_112.x = Math.round(this.alternativa3d::var_110 - this.var_126 - this.var_112.width); + this.§_-N2§.x = Math.round(this.alternativa3d::_-qj - this.§_-hq§ - this.§_-N2§.width); } - if(this.var_111 == StageAlign.TOP_LEFT || this.var_111 == StageAlign.TOP || this.var_111 == StageAlign.TOP_RIGHT) + if(this.§_-bx§ == StageAlign.TOP_LEFT || this.§_-bx§ == StageAlign.TOP || this.§_-bx§ == StageAlign.TOP_RIGHT) { - this.var_112.y = Math.round(this.var_125); + this.§_-N2§.y = Math.round(this.§_-Xc§); } - if(this.var_111 == StageAlign.LEFT || this.var_111 == StageAlign.RIGHT) + if(this.§_-bx§ == StageAlign.LEFT || this.§_-bx§ == StageAlign.RIGHT) { - this.var_112.y = Math.round((this.alternativa3d::_height - this.var_112.height) / 2); + this.§_-N2§.y = Math.round((this.alternativa3d::_height - this.§_-N2§.height) / 2); } - if(this.var_111 == StageAlign.BOTTOM_LEFT || this.var_111 == StageAlign.BOTTOM || this.var_111 == StageAlign.BOTTOM_RIGHT) + if(this.§_-bx§ == StageAlign.BOTTOM_LEFT || this.§_-bx§ == StageAlign.BOTTOM || this.§_-bx§ == StageAlign.BOTTOM_RIGHT) { - this.var_112.y = Math.round(this.alternativa3d::_height - this.var_125 - this.var_112.height); + this.§_-N2§.y = Math.round(this.alternativa3d::_height - this.§_-Xc§ - this.§_-N2§.height); } } } override public function get width() : Number { - return this.alternativa3d::var_110; + return this.alternativa3d::_-qj; } override public function set width(value:Number) : void @@ -1362,9 +1362,9 @@ package package_21 { value = 50; } - this.alternativa3d::var_110 = value; + this.alternativa3d::_-qj = value; this.area.width = value; - this.method_230(); + this.§package§(); } override public function get height() : Number @@ -1380,7 +1380,7 @@ package package_21 } this.alternativa3d::_height = value; this.area.height = value; - this.method_230(); + this.§package§(); } override public function addChild(child:DisplayObject) : DisplayObject diff --git a/src/package_21/name_124.as b/src/?_-8D?/?_-be?.as similarity index 89% rename from src/package_21/name_124.as rename to src/?_-8D?/?_-be?.as index 5b17205..0873741 100644 --- a/src/package_21/name_124.as +++ b/src/?_-8D?/?_-be?.as @@ -1,4 +1,4 @@ -package package_21 +package §_-8D§ { import alternativa.engine3d.alternativa3d; import flash.display.Bitmap; @@ -24,9 +24,9 @@ package package_21 use namespace alternativa3d; - public class name_124 extends name_78 + public class §_-be§ extends §_-OX§ { - public var view:name_81; + public var view:§_-JI§; public var fov:Number = 1.5707963267948966; @@ -50,15 +50,15 @@ package package_21 alternativa3d var correctionY:Number; - alternativa3d var lights:Vector. = new Vector.(); + alternativa3d var lights:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(); alternativa3d var lightsLength:int = 0; alternativa3d var ambient:Vector. = new Vector.(4); - alternativa3d var childLights:Vector. = new Vector.(); + alternativa3d var childLights:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(); - alternativa3d var frustum:name_429; + alternativa3d var frustum:§_-Lg§; alternativa3d var origins:Vector. = new Vector.(); @@ -66,13 +66,13 @@ package package_21 alternativa3d var raysLength:int = 0; - alternativa3d var occluders:Vector. = new Vector.(); + alternativa3d var occluders:Vector.<§_-PS§> = new Vector.<§_-PS§>(); alternativa3d var occludersLength:int = 0; alternativa3d var context3D:Context3D; - alternativa3d var renderer:name_430; + alternativa3d var renderer:§_-7p§; alternativa3d var numDraws:int; @@ -124,25 +124,25 @@ package package_21 private var timer:int; - public function name_124(nearClipping:Number, farClipping:Number) + public function §_-be§(nearClipping:Number, farClipping:Number) { super(); this.nearClipping = nearClipping; this.farClipping = farClipping; - this.alternativa3d::renderer = new name_430(); - this.alternativa3d::frustum = new name_429(); - this.alternativa3d::frustum.next = new name_429(); - this.alternativa3d::frustum.next.next = new name_429(); - this.alternativa3d::frustum.next.next.next = new name_429(); - this.alternativa3d::frustum.next.next.next.next = new name_429(); - this.alternativa3d::frustum.next.next.next.next.next = new name_429(); + this.alternativa3d::renderer = new §_-7p§(); + this.alternativa3d::frustum = new §_-Lg§(); + this.alternativa3d::frustum.next = new §_-Lg§(); + this.alternativa3d::frustum.next.next = new §_-Lg§(); + this.alternativa3d::frustum.next.next.next = new §_-Lg§(); + this.alternativa3d::frustum.next.next.next.next = new §_-Lg§(); + this.alternativa3d::frustum.next.next.next.next.next = new §_-Lg§(); } public function render(stage3D:Stage3D) : void { var i:int = 0; - var light:name_116 = null; - var root:name_78 = null; + var light:§_-Jo§ = null; + var root:§_-OX§ = null; var childLightsLength:int = 0; if(stage3D == null) { @@ -157,11 +157,11 @@ package package_21 this.alternativa3d::ambient[2] = 0; this.alternativa3d::ambient[3] = 1; this.alternativa3d::context3D = stage3D.context3D; - if(this.alternativa3d::context3D != null && this.view != null && this.alternativa3d::renderer != null && (this.view.stage != null || this.view.alternativa3d::var_114 != null)) + if(this.alternativa3d::context3D != null && this.view != null && this.alternativa3d::renderer != null && (this.view.stage != null || this.view.alternativa3d::_-gJ != null)) { this.alternativa3d::renderer.alternativa3d::camera = this; - this.alternativa3d::calculateProjection(this.view.alternativa3d::var_110,this.view.alternativa3d::_height); - this.view.alternativa3d::method_244(stage3D,this.alternativa3d::context3D); + this.alternativa3d::calculateProjection(this.view.alternativa3d::_-qj,this.view.alternativa3d::_height); + this.view.alternativa3d::_-jR(stage3D,this.alternativa3d::context3D); if(alternativa3d::transformChanged) { alternativa3d::composeTransforms(); @@ -192,7 +192,7 @@ package package_21 if(root.boundBox != null) { this.alternativa3d::calculateFrustum(root.alternativa3d::cameraToLocalTransform); - root.alternativa3d::culling = root.boundBox.alternativa3d::name_393(this.alternativa3d::frustum,63); + root.alternativa3d::culling = root.boundBox.alternativa3d::_-JT(this.alternativa3d::frustum,63); } else { @@ -212,12 +212,12 @@ package package_21 light.alternativa3d::blue = (light.color & 0xFF) * light.intensity / 255; } root.alternativa3d::localToCameraTransform.combine(alternativa3d::globalToLocalTransform,root.alternativa3d::transform); - if(root.alternativa3d::culling >= 0 && (root.boundBox == null || this.alternativa3d::occludersLength == 0 || Boolean(root.boundBox.alternativa3d::name_392(this,root)))) + if(root.alternativa3d::culling >= 0 && (root.boundBox == null || this.alternativa3d::occludersLength == 0 || Boolean(root.boundBox.alternativa3d::_-RA(this,root)))) { if(Boolean(root.alternativa3d::listening) && root.boundBox != null) { this.alternativa3d::calculateRays(root.alternativa3d::cameraToLocalTransform); - root.alternativa3d::listening = root.boundBox.alternativa3d::name_391(this.alternativa3d::origins,this.alternativa3d::directions,this.alternativa3d::raysLength); + root.alternativa3d::listening = root.boundBox.alternativa3d::_-Xu(this.alternativa3d::origins,this.alternativa3d::directions,this.alternativa3d::raysLength); } if(this.alternativa3d::lightsLength > 0 && Boolean(root.alternativa3d::useLights)) { @@ -227,8 +227,8 @@ package package_21 for(i = 0; i < this.alternativa3d::lightsLength; ) { light = this.alternativa3d::lights[i]; - light.alternativa3d::name_141.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); - if(light.boundBox == null || light.alternativa3d::checkBound(root)) + light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + if(light.boundBox == null || Boolean(light.alternativa3d::checkBound(root))) { this.alternativa3d::childLights[childLightsLength] = light; childLightsLength++; @@ -242,7 +242,7 @@ package package_21 for(i = 0; i < this.alternativa3d::lightsLength; ) { light = this.alternativa3d::lights[i]; - light.alternativa3d::name_141.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); i++; } root.alternativa3d::collectDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength); @@ -255,15 +255,15 @@ package package_21 } root.alternativa3d::collectChildrenDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength); } - this.view.alternativa3d::method_243(this.alternativa3d::context3D,this); + this.view.alternativa3d::_-7K(this.alternativa3d::context3D,this); this.alternativa3d::renderer.alternativa3d::render(this.alternativa3d::context3D); - if(this.view.alternativa3d::var_114 == null) + if(this.view.alternativa3d::_-gJ == null) { this.alternativa3d::context3D.present(); } else { - this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::var_114); + this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::_-gJ); this.alternativa3d::context3D.present(); } } @@ -279,7 +279,7 @@ package package_21 { throw new Error("It is necessary to have view set."); } - var viewSizeX:Number = this.view.alternativa3d::var_110 * 0.5; + var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5; var viewSizeY:Number = this.view.alternativa3d::_height * 0.5; var focalLength:Number = Math.sqrt(viewSizeX * viewSizeX + viewSizeY * viewSizeY) / Math.tan(this.fov * 0.5); var res:Vector3D = globalToLocal(point); @@ -294,7 +294,7 @@ package package_21 { throw new Error("It is necessary to have view set."); } - var viewSizeX:Number = this.view.alternativa3d::var_110 * 0.5; + var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5; var viewSizeY:Number = this.view.alternativa3d::_height * 0.5; var focalLength:Number = Math.sqrt(viewSizeX * viewSizeX + viewSizeY * viewSizeY) / Math.tan(this.fov * 0.5); var dx:Number = viewX - viewSizeX; @@ -307,7 +307,7 @@ package package_21 alternativa3d::composeTransforms(); } trm.copy(alternativa3d::transform); - for(var root:name_78 = this; root.parent != null; ) + for(var root:§_-OX§ = this; root.parent != null; ) { root = root.parent; if(root.alternativa3d::transformChanged) @@ -328,17 +328,17 @@ package package_21 direction.z *= directionL; } - override public function clone() : name_78 + override public function clone() : §_-OX§ { - var res:name_124 = new name_124(this.nearClipping,this.farClipping); + var res:§_-be§ = new §_-be§(this.nearClipping,this.farClipping); res.clonePropertiesFrom(this); return res; } - override protected function clonePropertiesFrom(source:name_78) : void + override protected function clonePropertiesFrom(source:§_-OX§) : void { super.clonePropertiesFrom(source); - this.view = (source as name_124).view; + this.view = (source as §_-be§).view; } alternativa3d function calculateProjection(width:Number, height:Number) : void @@ -364,7 +364,7 @@ package package_21 this.alternativa3d::correctionY = viewSizeY / this.alternativa3d::focalLength; } - alternativa3d function calculateFrustum(transform:name_139) : void + alternativa3d function calculateFrustum(transform:§_-jw§) : void { var fa:Number = NaN; var fe:Number = NaN; @@ -380,12 +380,12 @@ package package_21 var bz:Number = NaN; var viewSizeX:Number = NaN; var viewSizeY:Number = NaN; - var nearPlane:name_429 = this.alternativa3d::frustum; - var farPlane:name_429 = nearPlane.next; - var leftPlane:name_429 = farPlane.next; - var rightPlane:name_429 = leftPlane.next; - var topPlane:name_429 = rightPlane.next; - var bottomPlane:name_429 = topPlane.next; + var nearPlane:§_-Lg§ = this.alternativa3d::frustum; + var farPlane:§_-Lg§ = nearPlane.next; + var leftPlane:§_-Lg§ = farPlane.next; + var rightPlane:§_-Lg§ = leftPlane.next; + var topPlane:§_-Lg§ = rightPlane.next; + var bottomPlane:§_-Lg§ = topPlane.next; if(!this.orthographic) { fa = transform.a * this.alternativa3d::correctionX; @@ -445,7 +445,7 @@ package package_21 } else { - viewSizeX = this.view.alternativa3d::var_110 * 0.5; + viewSizeX = this.view.alternativa3d::_-qj * 0.5; viewSizeY = this.view.alternativa3d::_height * 0.5; nearPlane.x = transform.j * transform.e - transform.f * transform.i; nearPlane.y = transform.b * transform.i - transform.j * transform.a; @@ -474,7 +474,7 @@ package package_21 } } - alternativa3d function calculateRays(transform:name_139) : void + alternativa3d function calculateRays(transform:§_-jw§) : void { var o:Vector3D = null; var d:Vector3D = null; @@ -482,8 +482,8 @@ package package_21 var direction:Vector3D = null; for(var i:int = 0; i < this.alternativa3d::raysLength; i++) { - o = this.view.alternativa3d::var_127[i]; - d = this.view.alternativa3d::var_133[i]; + o = this.view.alternativa3d::_-Cr[i]; + d = this.view.alternativa3d::_-g4[i]; origin = this.alternativa3d::origins[i]; direction = this.alternativa3d::directions[i]; origin.x = transform.a * o.x + transform.b * o.y + transform.c * o.z + transform.d; @@ -522,7 +522,7 @@ package package_21 } } - alternativa3d function checkInDebug(object:name_78) : int + alternativa3d function checkInDebug(object:§_-OX§) : int { var objectClass:Class = null; var res:int = 0; @@ -530,13 +530,13 @@ package package_21 { if(Boolean(this.debugSet[debug])) { - if(Boolean(this.debugSet[debug][name_78]) || Boolean(this.debugSet[debug][object])) + if(Boolean(this.debugSet[debug][§_-OX§]) || Boolean(this.debugSet[debug][object])) { res |= debug; } else { - for(objectClass = getDefinitionByName(getQualifiedClassName(object)) as Class; objectClass != name_78; ) + for(objectClass = getDefinitionByName(getQualifiedClassName(object)) as Class; objectClass != §_-OX§; ) { if(Boolean(this.debugSet[debug][objectClass])) { diff --git a/src/?_-9C?.as b/src/?_-9C?.as new file mode 100644 index 0000000..0be7dc0 --- /dev/null +++ b/src/?_-9C?.as @@ -0,0 +1,15 @@ +package +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + [Embed(source="/_assets/13__-9C.jpg")] + public class §_-9C§ extends BitmapAsset + { + public function §_-9C§() + { + super(); + } + } +} + diff --git a/src/package_81/name_544.as b/src/?_-9Z?/?_-q4?.as similarity index 61% rename from src/package_81/name_544.as rename to src/?_-9Z?/?_-q4?.as index ecae35c..45f45cc 100644 --- a/src/package_81/name_544.as +++ b/src/?_-9Z?/?_-q4?.as @@ -1,22 +1,22 @@ -package package_81 +package §_-9Z§ { + import §_-1e§.§_-fx§; + import §_-7A§.§_-3e§; + import §_-7A§.§_-Is§; + import §_-KA§.§_-jr§; + import §_-KT§.§_-Ju§; + import §_-RQ§.§_-HE§; + import §_-RQ§.§_-Va§; + import §_-aF§.§_-S8§; + import §_-e6§.§_-1I§; + import §_-e6§.§_-RE§; + import §_-e6§.§_-fX§; + import §_-fT§.§_-HM§; + import §_-nl§.Matrix3; + import §_-nl§.§_-bj§; import flash.geom.Vector3D; - import alternativa.osgi.service.console.variables.ConsoleVarFloat; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; - import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_25.name_250; - import alternativa.tanks.game.utils.objectpool.PooledObject; - import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_46.Matrix3; - import package_46.name_194; - import package_75.class_15; - import package_75.name_236; - import package_76.name_256; - import package_86.name_257; - import package_90.name_273; - public class name_544 extends PooledObject implements IGraphicEffect + public class §_-q4§ extends §_-HE§ implements §_-fX§ { private static const ANIMATION_FPS:Number = 30; @@ -26,110 +26,110 @@ package package_81 private static const BARREL_INDEX:Number = 0; - private static var particleBaseSize:ConsoleVarFloat = new ConsoleVarFloat("flame_base_size",100,1,1000); + private static var particleBaseSize:§_-Ju§ = new §_-Ju§("flame_base_size",100,1,1000); private static var matrix:Matrix3 = new Matrix3(); - private static var particlePosition:name_194 = new name_194(); + private static var particlePosition:§_-bj§ = new §_-bj§(); - private static var barrelOrigin:name_194 = new name_194(); + private static var barrelOrigin:§_-bj§ = new §_-bj§(); - private static var particleDirection:name_194 = new name_194(); + private static var particleDirection:§_-bj§ = new §_-bj§(); - private static var xAxis:name_194 = new name_194(); + private static var xAxis:§_-bj§ = new §_-bj§(); - private static var sourcePosition:name_194 = new name_194(); + private static var sourcePosition:§_-bj§ = new §_-bj§(); - private static var rayHit:name_273 = new name_273(); + private static var rayHit:§_-jr§ = new §_-jr§(); private var range:Number; - private var var_641:Number; + private var §_-n7§:Number; - private var var_639:Number; + private var §_-er§:Number; private var maxParticles:int; private var particleSpeed:Number; - private var sfxData:name_262; + private var sfxData:§_-Fj§; - private var var_637:Vector. = new Vector.(); + private var §_-lV§:Vector. = new Vector.(); - private var var_638:int; + private var §_-Jx§:int; private var numFrames:int; - private var collisionDetector:name_256; + private var collisionDetector:§_-fx§; private var dead:Boolean; - private var var_640:int; + private var §_-ny§:int; - private var var_642:int; + private var §_-jJ§:int; - private var collisionGroup:int = name_257.WEAPON | name_257.STATIC; + private var collisionGroup:int = §_-HM§.WEAPON | §_-HM§.STATIC; - private var origin:name_194 = new name_194(); + private var origin:§_-bj§ = new §_-bj§(); - private var direction:name_194 = new name_194(); + private var direction:§_-bj§ = new §_-bj§(); - private var sideAxis:name_194 = new name_194(); + private var sideAxis:§_-bj§ = new §_-bj§(); - private var var_636:Number; + private var §_-6z§:Number; - private var renderSystem:RenderSystem; + private var renderSystem:§_-1I§; - private var turret:class_15; + private var turret:§_-3e§; - private var chassis:name_236; + private var chassis:§_-Is§; - private var flame:name_717; + private var flame:§_-7Z§; private var position:Vector3D = new Vector3D(); private var dir:Vector3D = new Vector3D(); - public function name_544(objectPool:ObjectPool) + public function §_-q4§(objectPool:§_-Va§) { super(objectPool); } - public function addedToRenderSystem(system:RenderSystem) : void + public function addedToRenderSystem(system:§_-1I§) : void { this.renderSystem = system; this.turret.getGunData(BARREL_INDEX,this.origin,this.direction,this.sideAxis); - this.var_636 = this.turret.getBarrelLength(BARREL_INDEX); - this.position.x = this.origin.x + this.direction.x * this.var_636; - this.position.y = this.origin.y + this.direction.y * this.var_636; - this.position.z = this.origin.z + this.direction.z * this.var_636; + this.§_-6z§ = this.turret.getBarrelLength(BARREL_INDEX); + this.position.x = this.origin.x + this.direction.x * this.§_-6z§; + this.position.y = this.origin.y + this.direction.y * this.§_-6z§; + this.position.z = this.origin.z + this.direction.z * this.§_-6z§; this.flame.position = this.position; this.dir.x = this.direction.x; this.dir.y = this.direction.y; this.dir.z = this.direction.z; this.flame.direction = this.dir; - this.renderSystem.method_48(this.flame); + this.renderSystem.§_-9p§(this.flame); } - public function init(turret:class_15, flamethrowerSmokeAtlas:name_250, flamethrowerFlashAtlas:name_250, flamethrowerFireAtlas:name_250) : void + public function init(turret:§_-3e§, flamethrowerSmokeAtlas:§_-S8§, flamethrowerFlashAtlas:§_-S8§, flamethrowerFireAtlas:§_-S8§) : void { this.turret = turret; - this.flame = new name_717(flamethrowerSmokeAtlas,flamethrowerFireAtlas,flamethrowerFlashAtlas,15); + this.flame = new §_-7Z§(flamethrowerSmokeAtlas,flamethrowerFireAtlas,flamethrowerFlashAtlas,15); this.flame.scale = 5 * 1.4; this.flame.name = "firebird"; } - public function play(camera:GameCamera) : Boolean + public function play(camera:§_-RE§) : Boolean { if(this.flame == null) { return false; } this.turret.getGunData(BARREL_INDEX,this.origin,this.direction,this.sideAxis); - this.var_636 = this.turret.getBarrelLength(BARREL_INDEX); - this.position.x = this.origin.x + this.direction.x * this.var_636; - this.position.y = this.origin.y + this.direction.y * this.var_636; - this.position.z = this.origin.z + this.direction.z * this.var_636; + this.§_-6z§ = this.turret.getBarrelLength(BARREL_INDEX); + this.position.x = this.origin.x + this.direction.x * this.§_-6z§; + this.position.y = this.origin.y + this.direction.y * this.§_-6z§; + this.position.z = this.origin.z + this.direction.z * this.§_-6z§; this.flame.position = this.position; this.dir.x = this.direction.x; this.dir.y = this.direction.y; @@ -142,39 +142,39 @@ package package_81 { } - public function method_255() : void + public function §_-Bz§() : void { this.flame.stop(); this.flame = null; } - private function method_756() : void + private function §_-XT§() : void { var offset:Number = Math.random() * 50; - if(!this.collisionDetector.name_324(this.origin,this.direction,name_257.STATIC,this.var_636 + offset,null,rayHit)) + if(!this.collisionDetector.§_-cX§(this.origin,this.direction,§_-HM§.STATIC,this.§_-6z§ + offset,null,rayHit)) { - sourcePosition.x = this.origin.x + this.direction.x * this.var_636; - sourcePosition.y = this.origin.y + this.direction.y * this.var_636; - sourcePosition.z = this.origin.z + this.direction.z * this.var_636; + sourcePosition.x = this.origin.x + this.direction.x * this.§_-6z§; + sourcePosition.y = this.origin.y + this.direction.y * this.§_-6z§; + sourcePosition.z = this.origin.z + this.direction.z * this.§_-6z§; particleDirection.copy(this.direction); xAxis.copy(this.sideAxis); - this.method_755(sourcePosition,particleDirection,xAxis,offset); + this.§_-0X§(sourcePosition,particleDirection,xAxis,offset); } } - private function method_755(sourcePosition:name_194, direction:name_194, sideAxis:name_194, offset:Number) : void + private function §_-0X§(sourcePosition:§_-bj§, direction:§_-bj§, sideAxis:§_-bj§, offset:Number) : void { var particle:Particle = Particle.getParticle(); particle.currFrame = Math.random() * this.numFrames; var angle:Number = 2 * Math.PI * Math.random(); - matrix.method_344(direction,angle); + matrix.§_-OB§(direction,angle); sideAxis.transform3(matrix); - var d:Number = this.range * this.var_639 * Math.random(); + var d:Number = this.range * this.§_-er§ * Math.random(); direction.x = direction.x * this.range + sideAxis.x * d; direction.y = direction.y * this.range + sideAxis.y * d; direction.z = direction.z * this.range + sideAxis.z * d; direction.normalize(); - var bodyVelocity:name_194 = this.chassis.getBody().state.velocity; + var bodyVelocity:§_-bj§ = this.chassis.getBody().state.velocity; particle.velocity.x = this.particleSpeed * direction.x + bodyVelocity.x; particle.velocity.y = this.particleSpeed * direction.y + bodyVelocity.y; particle.velocity.z = this.particleSpeed * direction.z + bodyVelocity.z; @@ -182,27 +182,27 @@ package package_81 particle.x = sourcePosition.x + offset * direction.x; particle.y = sourcePosition.y + offset * direction.y; particle.z = sourcePosition.z + offset * direction.z; - var _loc9_:* = this.var_638++; - this.var_637[_loc9_] = particle; + var _loc9_:* = this.§_-Jx§++; + this.§_-lV§[_loc9_] = particle; } - private function method_757(index:int) : void + private function §_-90§(index:int) : void { - var particle:Particle = this.var_637[index]; - this.var_637[index] = this.var_637[--this.var_638]; - this.var_637[this.var_638] = null; + var particle:Particle = this.§_-lV§[index]; + this.§_-lV§[index] = this.§_-lV§[--this.§_-Jx§]; + this.§_-lV§[this.§_-Jx§] = null; particle.dispose(); } } } +import §_-8D§.§_-OX§; +import §_-Ex§.§_-hW§; +import §_-nl§.§_-bj§; import flash.geom.ColorTransform; -import package_19.name_494; -import package_21.name_78; -import package_46.name_194; -import package_72.name_242; +import §function§.§_-ok§; -class Particle extends name_494 +class Particle extends §_-hW§ { private static var INITIAL_POOL_SIZE:int = 20; @@ -210,7 +210,7 @@ class Particle extends name_494 private static var poolIndex:int = -1; - public var velocity:name_194 = new name_194(); + public var velocity:§_-bj§ = new §_-bj§(); public var distance:Number = 0; @@ -240,10 +240,10 @@ class Particle extends name_494 pool[_loc1_] = this; } - public function updateColorTransofrm(maxDistance:Number, points:Vector.) : void + public function updateColorTransofrm(maxDistance:Number, points:Vector.<§_-ok§>) : void { - var point1:name_242 = null; - var point2:name_242 = null; + var point1:§_-ok§ = null; + var point2:§_-ok§ = null; var i:int = 0; if(points == null) { diff --git a/src/package_123/name_768.as b/src/?_-9j?/?_-S6?.as similarity index 58% rename from src/package_123/name_768.as rename to src/?_-9j?/?_-S6?.as index 07c85ae..a216a89 100644 --- a/src/package_123/name_768.as +++ b/src/?_-9j?/?_-S6?.as @@ -1,12 +1,13 @@ -package package_123 +package §_-9j§ { + import §_-1z§.§_-gA§; import alternativa.engine3d.alternativa3d; - import package_28.name_119; + import alternativa.engine3d.loaders.collada.collada; use namespace collada; use namespace alternativa3d; - public class name_768 extends class_43 + public class §_-S6§ extends §_-6e§ { internal static const NORMALS:int = 1; @@ -14,33 +15,33 @@ package package_123 internal static const TEXCOORDS:Vector. = Vector.([8,16,32,64,128,256,512,1024]); - internal var var_740:name_784; + internal var §_-2g§:§_-0M§; - internal var var_741:Vector.; + internal var §_-aL§:Vector.<§_-0M§>; - internal var var_743:name_784; + internal var §_-Fl§:§_-0M§; - internal var var_742:Vector.; + internal var §_-jU§:Vector.<§_-0M§>; - internal var var_744:Vector.; + internal var §_-ly§:Vector.<§_-0M§>; internal var indices:Vector.; - internal var var_729:int; + internal var §_-5O§:int; public var indexBegin:int; public var numTriangles:int; - public function name_768(data:XML, document:name_707) + public function §_-S6§(data:XML, document:§_-fr§) { super(data,document); } override protected function parseImplementation() : Boolean { - this.method_909(); - this.method_938(); + this.§_-7Q§(); + this.§_-WT§(); return true; } @@ -49,19 +50,19 @@ package package_123 return data.localName() as String; } - private function method_909() : void + private function §_-7Q§() : void { - var input:name_784 = null; + var input:§_-0M§ = null; var semantic:String = null; var offset:int = 0; - this.var_741 = new Vector.(); - this.var_744 = new Vector.(); - this.var_742 = new Vector.(); + this.§_-aL§ = new Vector.<§_-0M§>(); + this.§_-ly§ = new Vector.<§_-0M§>(); + this.§_-jU§ = new Vector.<§_-0M§>(); var inputsList:XMLList = data.input; var maxInputOffset:int = 0; - for(var i:int = 0,var count:int = int(inputsList.length()); i < count; offset = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) + for(var i:int = 0,var count:int = int(inputsList.length()); i < count; offset = int(input.offset),maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) { - input = new name_784(inputsList[i],document); + input = new §_-0M§(inputsList[i],document); semantic = input.semantic; if(semantic == null) { @@ -70,32 +71,32 @@ package package_123 switch(semantic) { case "VERTEX": - if(this.var_740 == null) + if(this.§_-2g§ == null) { - this.var_740 = input; + this.§_-2g§ = input; } break; case "TEXCOORD": - this.var_741.push(input); + this.§_-aL§.push(input); break; case "NORMAL": - if(this.var_743 == null) + if(this.§_-Fl§ == null) { - this.var_743 = input; + this.§_-Fl§ = input; } break; case "TEXTANGENT": - this.var_744.push(input); + this.§_-ly§.push(input); break; case "TEXBINORMAL": - this.var_742.push(input); + this.§_-jU§.push(input); break; } } - this.var_729 = maxInputOffset + 1; + this.§_-5O§ = maxInputOffset + 1; } - private function method_938() : void + private function §_-WT§() : void { var array:Array = null; var vcountXML:XMLList = null; @@ -110,7 +111,7 @@ package package_123 case "polylist": case "polygons": vcountXML = data.vcount; - array = name_565(vcountXML[0]); + array = §_-TM§(vcountXML[0]); i = 0; count = int(array.length); while(true) @@ -126,21 +127,21 @@ package package_123 pList = data.p; for(i = 0,count = int(pList.length()); i < count; ) { - array = name_565(pList[i]); + array = §_-TM§(pList[i]); for(j = 0; j < array.length; j++) { this.indices.push(parseInt(array[j],10)); } if(vcount.length > 0) { - this.indices = this.method_936(this.indices,vcount); + this.indices = this.§_-aZ§(this.indices,vcount); } i++; } } } - private function method_936(input:Vector., vcount:Vector.) : Vector. + private function §_-aZ§(input:Vector., vcount:Vector.) : Vector. { var indexIn:uint = 0; var i:int = 0; @@ -154,7 +155,7 @@ package package_123 for(i = 0,count = int(vcount.length); i < count; i++) { verticesCount = vcount[i]; - attributesCount = verticesCount * this.var_729; + attributesCount = verticesCount * this.§_-5O§; if(verticesCount == 3) { j = 0; @@ -170,124 +171,124 @@ package package_123 { for(j = 1; j < verticesCount - 1; ) { - for(k = 0; k < this.var_729; k++,indexOut++) + for(k = 0; k < this.§_-5O§; k++,indexOut++) { res[indexOut] = input[int(indexIn + k)]; } - for(k = 0; k < this.var_729; k++,indexOut++) + for(k = 0; k < this.§_-5O§; k++,indexOut++) { - res[indexOut] = input[int(indexIn + this.var_729 * j + k)]; + res[indexOut] = input[int(indexIn + this.§_-5O§ * j + k)]; } - for(k = 0; k < this.var_729; k++,indexOut++) + for(k = 0; k < this.§_-5O§; k++,indexOut++) { - res[indexOut] = input[int(indexIn + this.var_729 * (j + 1) + k)]; + res[indexOut] = input[int(indexIn + this.§_-5O§ * (j + 1) + k)]; } j++; } - indexIn += this.var_729 * verticesCount; + indexIn += this.§_-5O§ * verticesCount; } } return res; } - public function name_773(geometry:name_119, vertices:Vector.) : uint + public function §_-eT§(geometry:§_-gA§, vertices:Vector.<§_-V0§>) : uint { - var tangentSource:name_740 = null; - var binormalSource:name_740 = null; - var normalSource:name_740 = null; + var tangentSource:§_-KP§ = null; + var binormalSource:§_-KP§ = null; + var normalSource:§_-KP§ = null; var index:uint = 0; - var vertex:name_770 = null; - var s:name_740 = null; + var vertex:§_-V0§ = null; + var s:§_-KP§ = null; var j:int = 0; - if(this.var_740 == null) + if(this.§_-2g§ == null) { return 0; } - this.var_740.method_314(); + this.§_-2g§.§_-Om§(); var numIndices:int = int(this.indices.length); - var daeVertices:name_744 = document.findVertices(this.var_740.source); + var daeVertices:§_-l§ = document.findVertices(this.§_-2g§.source); if(daeVertices == null) { - document.logger.logNotFoundError(this.var_740.source); + document.logger.logNotFoundError(this.§_-2g§.source); return 0; } - daeVertices.method_314(); - var positionSource:name_740 = daeVertices.name_771; + daeVertices.§_-Om§(); + var positionSource:§_-KP§ = daeVertices.§_-E6§; var vertexStride:int = 3; - var mainSource:name_740 = positionSource; - var mainInput:name_784 = this.var_740; + var mainSource:§_-KP§ = positionSource; + var mainInput:§_-0M§ = this.§_-2g§; var channels:uint = 0; var inputOffsets:Vector. = new Vector.(); - inputOffsets.push(this.var_740.offset); - if(this.var_743 != null) + inputOffsets.push(this.§_-2g§.offset); + if(this.§_-Fl§ != null) { - normalSource = this.var_743.prepareSource(3); - inputOffsets.push(this.var_743.offset); + normalSource = this.§_-Fl§.prepareSource(3); + inputOffsets.push(this.§_-Fl§.offset); vertexStride += 3; channels |= NORMALS; - if(this.var_744.length > 0 && this.var_742.length > 0) + if(this.§_-ly§.length > 0 && this.§_-jU§.length > 0) { - tangentSource = this.var_744[0].prepareSource(3); - inputOffsets.push(this.var_744[0].offset); - binormalSource = this.var_742[0].prepareSource(3); - inputOffsets.push(this.var_742[0].offset); + tangentSource = this.§_-ly§[0].prepareSource(3); + inputOffsets.push(this.§_-ly§[0].offset); + binormalSource = this.§_-jU§[0].prepareSource(3); + inputOffsets.push(this.§_-jU§[0].offset); vertexStride += 4; channels |= TANGENT4; } } - var textureSources:Vector. = new Vector.(); - var numTexCoordsInputs:int = int(this.var_741.length); + var textureSources:Vector.<§_-KP§> = new Vector.<§_-KP§>(); + var numTexCoordsInputs:int = int(this.§_-aL§.length); if(numTexCoordsInputs > 8) { numTexCoordsInputs = 8; } for(var i:int = 0; i < numTexCoordsInputs; ) { - s = this.var_741[i].prepareSource(2); + s = this.§_-aL§[i].prepareSource(2); textureSources.push(s); - inputOffsets.push(this.var_741[i].offset); + inputOffsets.push(this.§_-aL§[i].offset); vertexStride += 2; channels |= TEXCOORDS[i]; i++; } var verticesLength:int = int(vertices.length); this.indexBegin = geometry.alternativa3d::_indices.length; - for(i = 0; i < numIndices; i += this.var_729) + for(i = 0; i < numIndices; i += this.§_-5O§) { index = this.indices[int(i + mainInput.offset)]; vertex = vertices[index]; - if(vertex == null || !this.method_939(vertex,this.indices,i,inputOffsets)) + if(vertex == null || !this.§_-le§(vertex,this.indices,i,inputOffsets)) { if(vertex != null) { index = uint(verticesLength++); } - vertex = new name_770(); + vertex = new §_-V0§(); vertices[index] = vertex; - vertex.name_785 = this.indices[int(i + this.var_740.offset)]; - vertex.method_933(positionSource.numbers,vertex.name_785,positionSource.stride,document.unitScaleFactor); + vertex.§_-Eq§ = this.indices[int(i + this.§_-2g§.offset)]; + vertex.§_-0l§(positionSource.numbers,vertex.§_-Eq§,positionSource.stride,document.unitScaleFactor); if(normalSource != null) { - vertex.method_935(normalSource.numbers,this.indices[int(i + this.var_743.offset)],normalSource.stride); + vertex.§_-1L§(normalSource.numbers,this.indices[int(i + this.§_-Fl§.offset)],normalSource.stride); } if(tangentSource != null) { - vertex.method_932(tangentSource.numbers,this.indices[int(i + this.var_744[0].offset)],tangentSource.stride,binormalSource.numbers,this.indices[int(i + this.var_742[0].offset)],binormalSource.stride); + vertex.§_-eQ§(tangentSource.numbers,this.indices[int(i + this.§_-ly§[0].offset)],tangentSource.stride,binormalSource.numbers,this.indices[int(i + this.§_-jU§[0].offset)],binormalSource.stride); } for(j = 0; j < textureSources.length; ) { - vertex.method_934(textureSources[j].numbers,this.indices[int(i + this.var_741[j].offset)],textureSources[j].stride); + vertex.§_-SX§(textureSources[j].numbers,this.indices[int(i + this.§_-aL§[j].offset)],textureSources[j].stride); j++; } } - vertex.name_786 = index; + vertex.§_-AR§ = index; geometry.alternativa3d::_indices.push(index); } this.numTriangles = (geometry.alternativa3d::_indices.length - this.indexBegin) / 3; return channels; } - private function method_939(vertex:name_770, indices:Vector., index:int, offsets:Vector.) : Boolean + private function §_-le§(vertex:§_-V0§, indices:Vector., index:int, offsets:Vector.) : Boolean { var numOffsets:int = int(offsets.length); for(var j:int = 0; j < numOffsets; ) @@ -301,9 +302,9 @@ package package_123 return true; } - private function method_937(inputs:Vector., setNum:int) : name_784 + private function §_-0z§(inputs:Vector.<§_-0M§>, setNum:int) : §_-0M§ { - var input:name_784 = null; + var input:§_-0M§ = null; for(var i:int = 0,var numInputs:int = int(inputs.length); i < numInputs; ) { input = inputs[i]; @@ -316,18 +317,18 @@ package package_123 return null; } - private function method_940(mainSetNum:int) : Vector. + private function §_-Rs§(mainSetNum:int) : Vector. { var i:int = 0; - var texCoordsInput:name_784 = null; - var texCoordsSource:name_740 = null; + var texCoordsInput:§_-0M§ = null; + var texCoordsSource:§_-KP§ = null; var data:VertexChannelData = null; - var mainInput:name_784 = this.method_937(this.var_741,mainSetNum); - var numInputs:int = int(this.var_741.length); + var mainInput:§_-0M§ = this.§_-0z§(this.§_-aL§,mainSetNum); + var numInputs:int = int(this.§_-aL§.length); var datas:Vector. = new Vector.(); for(i = 0; i < numInputs; ) { - texCoordsInput = this.var_741[i]; + texCoordsInput = this.§_-aL§[i]; texCoordsSource = texCoordsInput.prepareSource(2); if(texCoordsSource != null) { @@ -346,17 +347,17 @@ package package_123 return datas.length > 0 ? datas : null; } - public function name_772(otherVertices:name_744) : Boolean + public function §_-nY§(otherVertices:§_-l§) : Boolean { - var vertices:name_744 = document.findVertices(this.var_740.source); + var vertices:§_-l§ = document.findVertices(this.§_-2g§.source); if(vertices == null) { - document.logger.logNotFoundError(this.var_740.source); + document.logger.logNotFoundError(this.§_-2g§.source); } return vertices == otherVertices; } - public function get name_774() : String + public function get §_-Ig§() : String { var attr:XML = data.@material[0]; return attr == null ? null : attr.toString(); diff --git a/src/package_125/name_709.as b/src/?_-9n?/?_-Np?.as similarity index 59% rename from src/package_125/name_709.as rename to src/?_-9n?/?_-Np?.as index f50844e..03d04f8 100644 --- a/src/package_125/name_709.as +++ b/src/?_-9n?/?_-Np?.as @@ -1,60 +1,60 @@ -package package_125 +package §_-9n§ { + import §_-OZ§.§_-SK§; import alternativa.engine3d.alternativa3d; - import package_124.name_749; use namespace alternativa3d; - public class name_709 + public class §_-Np§ { public var object:String; - alternativa3d var var_693:Number = 0; + alternativa3d var §_-YC§:Number = 0; - public function name_709() + public function §_-Np§() { super(); } public function get length() : Number { - return this.alternativa3d::var_693; + return this.alternativa3d::_-YC; } - alternativa3d function get keyFramesList() : name_748 + alternativa3d function get keyFramesList() : §_-NS§ { return null; } - alternativa3d function set keyFramesList(value:name_748) : void + alternativa3d function set keyFramesList(value:§_-NS§) : void { } - alternativa3d function method_849(key:name_748) : void + alternativa3d function §_-K1§(key:§_-NS§) : void { - var k:name_748 = null; - var time:Number = Number(key.alternativa3d::var_420); + var k:§_-NS§ = null; + var time:Number = Number(key.alternativa3d::_-qC); if(this.alternativa3d::keyFramesList == null) { this.alternativa3d::keyFramesList = key; - this.alternativa3d::var_693 = time <= 0 ? 0 : time; + this.alternativa3d::_-YC = time <= 0 ? 0 : time; return; } - if(this.alternativa3d::keyFramesList.alternativa3d::var_420 > time) + if(this.alternativa3d::keyFramesList.alternativa3d::_-qC > time) { key.alternativa3d::nextKeyFrame = this.alternativa3d::keyFramesList; this.alternativa3d::keyFramesList = key; return; } k = this.alternativa3d::keyFramesList; - while(k.alternativa3d::nextKeyFrame != null && k.alternativa3d::nextKeyFrame.alternativa3d::var_420 <= time) + while(k.alternativa3d::nextKeyFrame != null && k.alternativa3d::nextKeyFrame.alternativa3d::_-qC <= time) { k = k.alternativa3d::nextKeyFrame; } if(k.alternativa3d::nextKeyFrame == null) { k.alternativa3d::nextKeyFrame = key; - this.alternativa3d::var_693 = time <= 0 ? 0 : time; + this.alternativa3d::_-YC = time <= 0 ? 0 : time; } else { @@ -63,9 +63,9 @@ package package_125 } } - public function method_850(key:name_748) : name_748 + public function §_-dg§(key:§_-NS§) : §_-NS§ { - var k:name_748 = null; + var k:§_-NS§ = null; if(this.alternativa3d::keyFramesList != null) { if(this.alternativa3d::keyFramesList == key) @@ -73,7 +73,7 @@ package package_125 this.alternativa3d::keyFramesList = this.alternativa3d::keyFramesList.alternativa3d::nextKeyFrame; if(this.alternativa3d::keyFramesList == null) { - this.alternativa3d::var_693 = 0; + this.alternativa3d::_-YC = 0; } return key; } @@ -86,7 +86,7 @@ package package_125 { if(key.alternativa3d::nextKeyFrame == null) { - this.alternativa3d::var_693 = k.alternativa3d::var_420 <= 0 ? 0 : Number(k.alternativa3d::var_420); + this.alternativa3d::_-YC = k.alternativa3d::_-qC <= 0 ? 0 : Number(k.alternativa3d::_-qC); } k.alternativa3d::nextKeyFrame = key.alternativa3d::nextKeyFrame; return key; @@ -95,11 +95,11 @@ package package_125 throw new Error("Key not found"); } - public function get keys() : Vector. + public function get keys() : Vector.<§_-NS§> { - var result:Vector. = new Vector.(); + var result:Vector.<§_-NS§> = new Vector.<§_-NS§>(); var i:int = 0; - for(var key:name_748 = this.alternativa3d::keyFramesList; key != null; key = key.alternativa3d::nextKeyFrame) + for(var key:§_-NS§ = this.alternativa3d::keyFramesList; key != null; key = key.alternativa3d::nextKeyFrame) { result[i] = key; i++; @@ -107,32 +107,32 @@ package package_125 return result; } - alternativa3d function blend(time:Number, weight:Number, state:name_749) : void + alternativa3d function blend(time:Number, weight:Number, state:§_-SK§) : void { } - public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_709 + public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-Np§ { return null; } - alternativa3d function createKeyFrame() : name_748 + alternativa3d function createKeyFrame() : §_-NS§ { return null; } - alternativa3d function interpolateKeyFrame(dest:name_748, a:name_748, b:name_748, value:Number) : void + alternativa3d function interpolateKeyFrame(dest:§_-NS§, a:§_-NS§, b:§_-NS§, value:Number) : void { } - alternativa3d function method_851(dest:name_709, start:Number, end:Number) : void + alternativa3d function §_-2Y§(dest:§_-Np§, start:Number, end:Number) : void { - var prev:name_748 = null; - var nextKey:name_748 = null; + var prev:§_-NS§ = null; + var nextKey:§_-NS§ = null; var shiftTime:Number = start > 0 ? start : 0; - var next:name_748 = this.alternativa3d::keyFramesList; - var key:name_748 = this.alternativa3d::createKeyFrame(); - while(next != null && next.alternativa3d::var_420 <= start) + var next:§_-NS§ = this.alternativa3d::keyFramesList; + var key:§_-NS§ = this.alternativa3d::createKeyFrame(); + while(next != null && next.alternativa3d::_-qC <= start) { prev = next; next = next.alternativa3d::nextKeyFrame; @@ -141,8 +141,8 @@ package package_125 { if(next != null) { - this.alternativa3d::interpolateKeyFrame(key,prev,next,(start - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420)); - key.alternativa3d::var_420 = start - shiftTime; + this.alternativa3d::interpolateKeyFrame(key,prev,next,(start - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); + key.alternativa3d::_-qC = start - shiftTime; } else { @@ -156,21 +156,21 @@ package package_125 return; } this.alternativa3d::interpolateKeyFrame(key,key,next,1); - key.alternativa3d::var_420 = next.alternativa3d::var_420 - shiftTime; + key.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime; prev = next; next = next.alternativa3d::nextKeyFrame; } dest.alternativa3d::keyFramesList = key; if(next == null || end <= start) { - dest.alternativa3d::var_693 = key.alternativa3d::var_420 <= 0 ? 0 : Number(key.alternativa3d::var_420); + dest.alternativa3d::_-YC = key.alternativa3d::_-qC <= 0 ? 0 : Number(key.alternativa3d::_-qC); return; } - while(next != null && next.alternativa3d::var_420 <= end) + while(next != null && next.alternativa3d::_-qC <= end) { nextKey = this.alternativa3d::createKeyFrame(); this.alternativa3d::interpolateKeyFrame(nextKey,nextKey,next,1); - nextKey.alternativa3d::var_420 = next.alternativa3d::var_420 - shiftTime; + nextKey.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime; key.alternativa3d::nextKeyFrame = nextKey; key = nextKey; prev = next; @@ -179,13 +179,13 @@ package package_125 if(next != null) { nextKey = this.alternativa3d::createKeyFrame(); - this.alternativa3d::interpolateKeyFrame(nextKey,prev,next,(end - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420)); - nextKey.alternativa3d::var_420 = end - shiftTime; + this.alternativa3d::interpolateKeyFrame(nextKey,prev,next,(end - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); + nextKey.alternativa3d::_-qC = end - shiftTime; key.alternativa3d::nextKeyFrame = nextKey; } if(nextKey != null) { - dest.alternativa3d::var_693 = nextKey.alternativa3d::var_420 <= 0 ? 0 : Number(nextKey.alternativa3d::var_420); + dest.alternativa3d::_-YC = nextKey.alternativa3d::_-qC <= 0 ? 0 : Number(nextKey.alternativa3d::_-qC); } } } diff --git a/src/package_125/name_759.as b/src/?_-9n?/?_-ew?.as similarity index 52% rename from src/package_125/name_759.as rename to src/?_-9n?/?_-ew?.as index c43fbfe..1a166b2 100644 --- a/src/package_125/name_759.as +++ b/src/?_-9n?/?_-ew?.as @@ -1,42 +1,42 @@ -package package_125 +package §_-9n§ { + import §_-OZ§.§_-SK§; import alternativa.engine3d.alternativa3d; import flash.geom.Matrix3D; import flash.geom.Orientation3D; import flash.geom.Vector3D; - import package_124.name_749; use namespace alternativa3d; - public class name_759 extends name_709 + public class §_-ew§ extends §_-Np§ { private static var tempQuat:Vector3D = new Vector3D(); - private static var temp:name_787 = new name_787(); + private static var temp:§_-44§ = new §_-44§(); - private var name_783:name_787; + private var §_-ku§:§_-44§; - public function name_759(object:String) + public function §_-ew§(object:String) { super(); this.object = object; } - override alternativa3d function get keyFramesList() : name_748 + override alternativa3d function get keyFramesList() : §_-NS§ { - return this.name_783; + return this.§_-ku§; } - override alternativa3d function set keyFramesList(value:name_748) : void + override alternativa3d function set keyFramesList(value:§_-NS§) : void { - this.name_783 = name_787(value); + this.§_-ku§ = §_-44§(value); } - public function method_257(time:Number, matrix:Matrix3D) : name_787 + public function §_-Le§(time:Number, matrix:Matrix3D) : §_-44§ { - var key:name_787 = null; - key = new name_787(); - key.alternativa3d::var_420 = time; + var key:§_-44§ = null; + key = new §_-44§(); + key.alternativa3d::_-qC = time; var components:Vector. = matrix.decompose(Orientation3D.QUATERNION); key.alternativa3d::x = components[0].x; key.alternativa3d::y = components[0].y; @@ -45,26 +45,26 @@ package package_125 key.alternativa3d::scaleX = components[2].x; key.alternativa3d::scaleY = components[2].y; key.alternativa3d::scaleZ = components[2].z; - alternativa3d::method_849(key); + alternativa3d::_-K1(key); return key; } - public function method_929(time:Number, x:Number = 0, y:Number = 0, z:Number = 0, rotationX:Number = 0, rotationY:Number = 0, rotationZ:Number = 0, scaleX:Number = 1, scaleY:Number = 1, scaleZ:Number = 1) : name_787 + public function §_-mr§(time:Number, x:Number = 0, y:Number = 0, z:Number = 0, rotationX:Number = 0, rotationY:Number = 0, rotationZ:Number = 0, scaleX:Number = 1, scaleY:Number = 1, scaleZ:Number = 1) : §_-44§ { - var key:name_787 = new name_787(); - key.alternativa3d::var_420 = time; + var key:§_-44§ = new §_-44§(); + key.alternativa3d::_-qC = time; key.alternativa3d::x = x; key.alternativa3d::y = y; key.alternativa3d::z = z; - key.alternativa3d::rotation = this.method_928(rotationX,rotationY,rotationZ); + key.alternativa3d::rotation = this.§_-JN§(rotationX,rotationY,rotationZ); key.alternativa3d::scaleX = scaleX; key.alternativa3d::scaleY = scaleY; key.alternativa3d::scaleZ = scaleZ; - alternativa3d::method_849(key); + alternativa3d::_-K1(key); return key; } - private function method_926(quat:Vector3D, additive:Vector3D) : void + private function §_-Qn§(quat:Vector3D, additive:Vector3D) : void { var ww:Number = additive.w * quat.w - additive.x * quat.x - additive.y * quat.y - additive.z * quat.z; var xx:Number = additive.w * quat.x + additive.x * quat.w + additive.y * quat.z - additive.z * quat.y; @@ -76,7 +76,7 @@ package package_125 quat.z = zz; } - private function method_927(quat:Vector3D) : void + private function §_-OW§(quat:Vector3D) : void { var d:Number = quat.w * quat.w + quat.x * quat.x + quat.y * quat.y + quat.z * quat.z; if(d == 0) @@ -93,7 +93,7 @@ package package_125 } } - private function method_925(quat:Vector3D, x:Number, y:Number, z:Number, angle:Number) : void + private function §_-3K§(quat:Vector3D, x:Number, y:Number, z:Number, angle:Number) : void { quat.w = Math.cos(0.5 * angle); var k:Number = Math.sin(0.5 * angle) / Math.sqrt(x * x + y * y + z * z); @@ -102,24 +102,24 @@ package package_125 quat.z = z * k; } - private function method_928(x:Number, y:Number, z:Number) : Vector3D + private function §_-JN§(x:Number, y:Number, z:Number) : Vector3D { var result:Vector3D = new Vector3D(); - this.method_925(result,1,0,0,x); - this.method_925(tempQuat,0,1,0,y); - this.method_926(result,tempQuat); - this.method_927(result); - this.method_925(tempQuat,0,0,1,z); - this.method_926(result,tempQuat); - this.method_927(result); + this.§_-3K§(result,1,0,0,x); + this.§_-3K§(tempQuat,0,1,0,y); + this.§_-Qn§(result,tempQuat); + this.§_-OW§(result); + this.§_-3K§(tempQuat,0,0,1,z); + this.§_-Qn§(result,tempQuat); + this.§_-OW§(result); return result; } - override alternativa3d function blend(time:Number, weight:Number, state:name_749) : void + override alternativa3d function blend(time:Number, weight:Number, state:§_-SK§) : void { - var prev:name_787 = null; - var next:name_787 = this.name_783; - while(next != null && next.alternativa3d::var_420 < time) + var prev:§_-44§ = null; + var next:§_-44§ = this.§_-ku§; + while(next != null && next.alternativa3d::_-qC < time) { prev = next; next = next.alternativa3d::next; @@ -128,34 +128,34 @@ package package_125 { if(next != null) { - temp.interpolate(prev,next,(time - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420)); - state.method_920(temp,weight); + temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); + state.§_-nV§(temp,weight); } else { - state.method_920(prev,weight); + state.§_-nV§(prev,weight); } } else if(next != null) { - state.method_920(next,weight); + state.§_-nV§(next,weight); } } - override alternativa3d function createKeyFrame() : name_748 + override alternativa3d function createKeyFrame() : §_-NS§ { - return new name_787(); + return new §_-44§(); } - override alternativa3d function interpolateKeyFrame(dest:name_748, a:name_748, b:name_748, value:Number) : void + override alternativa3d function interpolateKeyFrame(dest:§_-NS§, a:§_-NS§, b:§_-NS§, value:Number) : void { - name_787(dest).interpolate(name_787(a),name_787(b),value); + §_-44§(dest).interpolate(§_-44§(a),§_-44§(b),value); } - override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_709 + override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-Np§ { - var track:name_759 = new name_759(object); - alternativa3d::method_851(track,start,end); + var track:§_-ew§ = new §_-ew§(object); + alternativa3d::_-2Y(track,start,end); return track; } } diff --git a/src/?_-9n?/?_-kB?.as b/src/?_-9n?/?_-kB?.as new file mode 100644 index 0000000..ca22dc5 --- /dev/null +++ b/src/?_-9n?/?_-kB?.as @@ -0,0 +1,91 @@ +package §_-9n§ +{ + import §_-OZ§.§_-SK§; + import alternativa.engine3d.alternativa3d; + + use namespace alternativa3d; + + public class §_-kB§ extends §_-Np§ + { + private static var temp:§_-j3§ = new §_-j3§(); + + alternativa3d var §_-ku§:§_-j3§; + + public var property:String; + + public function §_-kB§(object:String, property:String) + { + super(); + this.property = property; + this.object = object; + } + + override alternativa3d function get keyFramesList() : §_-NS§ + { + return this.alternativa3d::_-ku; + } + + override alternativa3d function set keyFramesList(value:§_-NS§) : void + { + this.alternativa3d::_-ku = §_-j3§(value); + } + + public function §_-Le§(time:Number, value:Number = 0) : §_-NS§ + { + var key:§_-j3§ = new §_-j3§(); + key.alternativa3d::_-qC = time; + key.value = value; + alternativa3d::_-K1(key); + return key; + } + + override alternativa3d function blend(time:Number, weight:Number, state:§_-SK§) : void + { + var prev:§_-j3§ = null; + if(this.property == null) + { + return; + } + var next:§_-j3§ = this.alternativa3d::_-ku; + while(next != null && next.alternativa3d::_-qC < time) + { + prev = next; + next = next.alternativa3d::next; + } + if(prev != null) + { + if(next != null) + { + temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); + state.§_-B§(this.property,temp.alternativa3d::_-4O,weight); + } + else + { + state.§_-B§(this.property,prev.alternativa3d::_-4O,weight); + } + } + else if(next != null) + { + state.§_-B§(this.property,next.alternativa3d::_-4O,weight); + } + } + + override alternativa3d function createKeyFrame() : §_-NS§ + { + return new §_-j3§(); + } + + override alternativa3d function interpolateKeyFrame(dest:§_-NS§, a:§_-NS§, b:§_-NS§, value:Number) : void + { + §_-j3§(dest).interpolate(§_-j3§(a),§_-j3§(b),value); + } + + override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-Np§ + { + var track:§_-kB§ = new §_-kB§(object,this.property); + alternativa3d::_-2Y(track,start,end); + return track; + } + } +} + diff --git a/src/?_-Fc?/?_-8a?.as b/src/?_-Fc?/?_-8a?.as new file mode 100644 index 0000000..1fe7259 --- /dev/null +++ b/src/?_-Fc?/?_-8a?.as @@ -0,0 +1,353 @@ +package §_-Fc§ +{ + import §_-1e§.§_-Nh§; + import §_-KA§.§_-FW§; + import §_-RQ§.§_-Q9§; + import §_-US§.§_-DB§; + import §_-az§.§_-ps§; + import §_-bJ§.§_-eG§; + import §_-fT§.§_-ZI§; + import §_-fT§.§_-Zm§; + import §_-lS§.§_-h2§; + import §_-nl§.§_-bj§; + import flash.utils.getTimer; + import §in §.§_-eF§; + + public class §_-8a§ extends §_-ps§ + { + private static var USE_GRID_COLLISION_DETECTOR:Boolean = true; + + public var interpolationCoeff:Number; + + private var physicsStep:int = 33; + + private var physicsScene:§_-DB§; + + private var §_-hl§:Vector.<§catch§>; + + private var §_-g7§:int; + + private var §_-b5§:Vector.<§catch§>; + + private var §_-f5§:int; + + private var §_-ST§:Vector.<§catch§>; + + private var §_-7y§:int; + + private var §_-jp§:§_-eG§; + + private var §_-FE§:int; + + private var running:Boolean; + + private var §_-pR§:§_-eF§; + + private var objectPoolManager:§_-Q9§; + + public function §_-8a§(priority:int, objectPoolManager:§_-Q9§) + { + super(priority); + this.objectPoolManager = objectPoolManager; + this.§_-hl§ = new Vector.<§catch§>(); + this.§_-b5§ = new Vector.<§catch§>(); + this.§_-ST§ = new Vector.<§catch§>(); + this.physicsScene = new §_-DB§(); + this.physicsScene.§_-06§ = true; + this.physicsScene.§_-YB§ = 5; + this.physicsScene.dynamic = 100; + this.physicsScene.gravity = new §_-bj§(0,0,-1000); + if(USE_GRID_COLLISION_DETECTOR) + { + this.§_-jp§ = new §_-eG§(); + this.physicsScene.collisionDetector = this.§_-jp§; + } + else + { + this.physicsScene.collisionDetector = new §_-ZI§(); + } + } + + override protected function onPause() : void + { + this.§_-FE§ = getTimer(); + } + + override protected function onResume() : void + { + this.§_-FE§ = getTimer() - this.§_-FE§; + this.physicsScene.time += this.§_-FE§; + } + + public function §_-Zo§() : §_-eG§ + { + return this.§_-jp§; + } + + public function §_-Xh§() : int + { + return this.physicsStep; + } + + public function §_-d-§() : §_-DB§ + { + return this.physicsScene; + } + + public function §_-kO§(collisionPrimitives:Vector.<§_-Nh§>) : void + { + var gridCellSize:Number = NaN; + var collisionDetector:§_-ZI§ = null; + var bb:§_-FW§ = null; + var size:Number = NaN; + if(USE_GRID_COLLISION_DETECTOR) + { + gridCellSize = 800; + this.§_-jp§.§_-hS§(gridCellSize,collisionPrimitives); + } + else + { + collisionDetector = §_-ZI§(this.physicsScene.collisionDetector); + bb = new §_-FW§(); + size = 20000; + bb.§_-k2§(-size,-size,-size,size,size,size); + collisionDetector.§_-Vy§(collisionPrimitives,bb); + } + } + + public function addControllerBefore(controller:§catch§) : void + { + var deferredActionAddBefore:DeferredActionAddBefore = null; + if(this.running) + { + deferredActionAddBefore = DeferredActionAddBefore(this.objectPoolManager.§_-kP§(DeferredActionAddBefore)); + this.§_-5W§(deferredActionAddBefore,controller); + } + else + { + if(this.§_-hl§.indexOf(controller) >= 0) + { + throw new Error("Controller " + controller + " already exists"); + } + var _loc3_:* = this.§_-g7§++; + this.§_-hl§[_loc3_] = controller; + } + } + + public function addControllerAfter(controller:§catch§) : void + { + var deferredActionAddAfter:DeferredActionAddAfter = null; + if(this.running) + { + deferredActionAddAfter = DeferredActionAddAfter(this.objectPoolManager.§_-kP§(DeferredActionAddAfter)); + this.§_-5W§(deferredActionAddAfter,controller); + } + else + { + if(this.§_-b5§.indexOf(controller) >= 0) + { + throw new Error("Controller " + controller + " already exists"); + } + var _loc3_:* = this.§_-f5§++; + this.§_-b5§[_loc3_] = controller; + } + } + + public function §_-Ve§(controller:§catch§) : void + { + if(this.§_-ST§.indexOf(controller) >= 0) + { + throw new Error("Controller " + controller + " already exists"); + } + var _loc2_:* = this.§_-7y§++; + this.§_-ST§[_loc2_] = controller; + } + + public function removeControllerBefore(controller:§catch§) : void + { + var deferredActionRemoveBefore:DeferredActionRemoveBefore = null; + var index:int = 0; + if(this.running) + { + deferredActionRemoveBefore = DeferredActionRemoveBefore(this.objectPoolManager.§_-kP§(DeferredActionRemoveBefore)); + this.§_-5W§(deferredActionRemoveBefore,controller); + } + else + { + index = int(this.§_-hl§.indexOf(controller)); + if(index < 0) + { + throw new Error("Controller " + controller + " not found"); + } + this.§_-hl§[index] = this.§_-hl§[--this.§_-g7§]; + this.§_-hl§[this.§_-g7§] = null; + } + } + + public function removeControllerAfter(controller:§catch§) : void + { + var deferredActionRemoveAfter:DeferredActionRemoveAfter = null; + var index:int = 0; + if(this.running) + { + deferredActionRemoveAfter = DeferredActionRemoveAfter(this.objectPoolManager.§_-kP§(DeferredActionRemoveAfter)); + this.§_-5W§(deferredActionRemoveAfter,controller); + } + else + { + index = int(this.§_-b5§.indexOf(controller)); + if(index < 0) + { + throw new Error("Controller " + controller + " not found"); + } + this.§_-b5§[index] = this.§_-b5§[--this.§_-f5§]; + this.§_-b5§[this.§_-f5§] = null; + } + } + + public function §_-Fs§(controller:§catch§) : void + { + var index:int = int(this.§_-ST§.indexOf(controller)); + if(index < 0) + { + throw new Error("Controller " + controller + " not found"); + } + this.§_-ST§[index] = this.§_-ST§[--this.§_-7y§]; + this.§_-ST§[this.§_-7y§] = null; + } + + override public function start() : void + { + this.physicsScene.time = §_-h2§.time; + } + + override public function run() : void + { + var i:int = 0; + var controller:§catch§ = null; + var action:§_-eF§ = null; + var currentTime:int = int(§_-h2§.time); + if(this.physicsScene.time < currentTime) + { + while(this.physicsScene.time < currentTime) + { + this.running = true; + §_-Zm§(this.physicsScene.collisionDetector).§_-9F§(); + for(i = 0; i < this.§_-g7§; i++) + { + controller = this.§_-hl§[i]; + controller.updateBeforeSimulation(this.physicsStep); + } + this.physicsScene.update(this.physicsStep); + §_-Zm§(this.physicsScene.collisionDetector).§_-9F§(); + for(i = 0; i < this.§_-f5§; i++) + { + controller = this.§_-b5§[i]; + controller.updateAfterSimulation(this.physicsStep); + } + for(this.running = false; this.§_-pR§ != null; ) + { + action = this.§_-pR§; + this.§_-pR§ = this.§_-pR§.next; + action.next = null; + action.execute(); + action.§_-DQ§(); + } + } + } + this.interpolationCoeff = 1 - (this.physicsScene.time - currentTime) / this.physicsStep; + for(i = 0; i < this.§_-7y§; i++) + { + controller = this.§_-ST§[i]; + controller.interpolate(this.interpolationCoeff); + } + } + + private function §_-5W§(deferredAction:DeferredAction, controller:§catch§) : void + { + deferredAction.system = this; + deferredAction.controller = controller; + deferredAction.next = this.§_-pR§; + this.§_-pR§ = deferredAction; + } + } +} + +import §_-RQ§.§_-HE§; +import §_-RQ§.§_-Va§; +import §in §.§_-eF§; + +class DeferredAction extends §_-eF§ +{ + public var system:§_-8a§; + + public var controller:§catch§; + + public function DeferredAction(objectPool:§_-Va§) + { + super(objectPool); + } + + override public function execute() : void + { + this.doExecute(); + this.system = null; + this.controller = null; + } + + protected function doExecute() : void + { + } +} + +class DeferredActionAddBefore extends DeferredAction +{ + public function DeferredActionAddBefore(objectPool:§_-Va§) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.addControllerBefore(controller); + } +} + +class DeferredActionAddAfter extends DeferredAction +{ + public function DeferredActionAddAfter(objectPool:§_-Va§) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.addControllerAfter(controller); + } +} + +class DeferredActionRemoveBefore extends DeferredAction +{ + public function DeferredActionRemoveBefore(objectPool:§_-Va§) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.removeControllerBefore(controller); + } +} + +class DeferredActionRemoveAfter extends DeferredAction +{ + public function DeferredActionRemoveAfter(objectPool:§_-Va§) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.removeControllerAfter(controller); + } +} diff --git a/src/alternativa/osgi/service/console/ClientLogConnector.as b/src/?_-GD?/?_-X8?.as similarity index 59% rename from src/alternativa/osgi/service/console/ClientLogConnector.as rename to src/?_-GD?/?_-X8?.as index 489766b..e43dd30 100644 --- a/src/alternativa/osgi/service/console/ClientLogConnector.as +++ b/src/?_-GD?/?_-X8?.as @@ -1,33 +1,33 @@ -package alternativa.osgi.service.console +package §_-GD§ { - import package_39.name_160; - import package_39.name_450; + import §_-MU§.§_-5-§; + import §_-MU§.§_-XQ§; - public class ClientLogConnector implements name_450 + public class §_-X8§ implements §_-XQ§ { private static const ALL_CHANNELS:String = "all"; - private var clientLog:name_160; + private var clientLog:§_-5-§; - private var console:IConsole; + private var console:§_-6A§; - public function ClientLogConnector(clientLog:name_160, console:IConsole) + public function §_-X8§(clientLog:§_-5-§, console:§_-6A§) { super(); this.clientLog = clientLog; this.console = console; } - public function method_622(channelName:String, logText:String) : void + public function §_-qU§(channelName:String, logText:String) : void { - this.console.method_143(channelName + " ",logText); + this.console.§_-H-§(channelName + " ",logText); } - public function name_371(console:IConsole, args:Array) : void + public function §_-9Q§(console:§_-6A§, args:Array) : void { if(args.length < 1) { - console.name_145("Usage: log action [arguments]"); + console.§_-MR§("Usage: log action [arguments]"); return; } var action:String = args.shift(); @@ -35,34 +35,34 @@ package alternativa.osgi.service.console { case "c": case "connect": - this.connectChannels(args); + this.§_-1g§(args); break; case "d": case "disconnect": - this.disconnectChannels(args); + this.§_-W4§(args); break; case "show": if(args.length == 0) { - console.name_145("Usage: log show channel_name [filter_string]"); + console.§_-MR§("Usage: log show channel_name [filter_string]"); break; } - this.printFilteredLines(console,args[0],args[1]); + this.§_-95§(console,args[0],args[1]); break; case "ls": case "list": - console.name_145("Existing channels:"); - console.method_145(this.clientLog.getChannelNames()); + console.§_-MR§("Existing channels:"); + console.§_-3c§(this.clientLog.getChannelNames()); } } - private function printFilteredLines(console:IConsole, channelName:String, filterString:String) : void + private function §_-95§(console:§_-6A§, channelName:String, filterString:String) : void { var filteredStrings:Vector. = null; var channelStrings:Vector. = this.clientLog.getChannelStrings(channelName); if(channelStrings == null) { - console.name_145("Channel not found"); + console.§_-MR§("Channel not found"); } else { @@ -78,22 +78,22 @@ package alternativa.osgi.service.console { filteredStrings = channelStrings; } - console.method_142(channelName + " ",filteredStrings); + console.§_-dU§(channelName + " ",filteredStrings); } } - private function connectChannels(channels:Array) : void + private function §_-1g§(channels:Array) : void { var channelName:String = null; if(channels.length == 0) { - this.console.name_145("Usage: log connect channel_name1 [channel_name2 ...]"); + this.console.§_-MR§("Usage: log connect channel_name1 [channel_name2 ...]"); return; } if(channels[0] == ALL_CHANNELS) { this.clientLog.addLogListener(this); - this.console.name_145("All log channels have been connected"); + this.console.§_-MR§("All log channels have been connected"); } else { @@ -102,24 +102,24 @@ package alternativa.osgi.service.console if(channelName != ALL_CHANNELS) { this.clientLog.addLogChannelListener(channelName,this); - this.console.name_145("Log channel " + channelName + " has been connected"); + this.console.§_-MR§("Log channel " + channelName + " has been connected"); } } } } - private function disconnectChannels(channels:Array) : void + private function §_-W4§(channels:Array) : void { var channelName:String = null; if(channels.length == 0) { - this.console.name_145("Usage: log disconnect channel_name1 [channel_name2 ...]"); + this.console.§_-MR§("Usage: log disconnect channel_name1 [channel_name2 ...]"); return; } if(channels[0] == ALL_CHANNELS) { this.clientLog.removeLogListener(this); - this.console.name_145("All log channels have been disconnected"); + this.console.§_-MR§("All log channels have been disconnected"); } else { @@ -128,7 +128,7 @@ package alternativa.osgi.service.console if(channelName != ALL_CHANNELS) { this.clientLog.removeLogChannelListener(channelName,this); - this.console.name_145("Log channel " + channelName + " has been disconnected"); + this.console.§_-MR§("Log channel " + channelName + " has been disconnected"); } } } diff --git a/src/?_-I0?/?_-bt?.as b/src/?_-I0?/?_-bt?.as new file mode 100644 index 0000000..6ae10ec --- /dev/null +++ b/src/?_-I0?/?_-bt?.as @@ -0,0 +1,443 @@ +package §_-I0§ +{ + import §_-1e§.§_-fx§; + import §_-8D§.§_-OX§; + import §_-Ex§.§_-U2§; + import §_-KA§.§_-jr§; + import §_-KT§.§_-Ju§; + import §_-KT§.§_-UT§; + import §_-OR§.§_-om§; + import §_-V-§.§_-aY§; + import §_-aM§.§_-Lm§; + import §_-az§.§_-gw§; + import §_-e6§.§_-RE§; + import §_-e6§.§_-gb§; + import §_-lS§.§_-h2§; + import §_-nl§.Matrix3; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; + import flash.ui.Keyboard; + import flash.utils.getTimer; + + public class §_-bt§ extends §_-Ww§ implements §_-gb§ + { + private static var parentMatrix:Matrix4 = new Matrix4(); + + private static var matrix:Matrix4 = new Matrix4(); + + private static var maxPositionError:Number = 10; + + private static var maxAngleError:Number = Math.PI / 180; + + private static var camSpeedThreshold:Number = 10; + + private static var fixedPitch:§_-Ju§ = new §_-Ju§("cam_fixedpitch",10 * Math.PI / 180,-1,1); + + private static var noPitchCorrection:§_-UT§ = new §_-UT§("cam_nopitchcorrection",1,0,1); + + private static var pitchCorrectionCoeff:§_-Ju§ = new §_-Ju§("cam_pitchcorrectioncoeff",1,0,10); + + private static var reboundDelay:§_-UT§ = new §_-UT§("cam_rebound",1000,0,2000); + + private static var elevationAngles:Vector. = new Vector.(1,true); + + private static var rotationMatrix:Matrix3 = new Matrix3(); + + private static var axis:§_-bj§ = new §_-bj§(); + + private static var rayDirection:§_-bj§ = new §_-bj§(); + + private static const MIN_CAMERA_ANGLE:Number = 5 * Math.PI / 180; + + private static const KEY_CAMERA_UP:uint = Keyboard.PAGE_UP; + + private static const KEY_CAMERA_DOWN:uint = Keyboard.PAGE_DOWN; + + private static const HEIGHT_CHANGE_STEP:Number = 50; + + private static const MIN_HEIGHT:Number = 150; + + private static const MAX_HEIGHT:Number = 3100; + + private static const MIN_DISTANCE:Number = 300; + + private static const COLLISION_OFFSET:Number = 100; + + private static const targetOffset:§_-bj§ = new §_-bj§(0,0,50); + + private static var currentPosition:§_-bj§ = new §_-bj§(); + + private static var currentRotation:§_-bj§ = new §_-bj§(); + + private static var rayOrigin:§_-bj§ = new §_-bj§(); + + private static var flatDirection:§_-bj§ = new §_-bj§(); + + private static var positionDelta:§_-bj§ = new §_-bj§(); + + private static var rayHit:§_-jr§ = new §_-jr§(); + + private var collisionDetector:§_-fx§; + + private var collisionMask:int; + + private var §_-U1§:Number = 0; + + private var §_-7h§:Number = 0; + + private var locked:Boolean; + + private var position:§_-bj§ = new §_-bj§(); + + private var rotation:§_-bj§ = new §_-bj§(); + + private var targetPosition:§_-bj§ = new §_-bj§(); + + private var targetDirection:§_-bj§ = new §_-bj§(); + + private var §_-Wq§:Number = 0; + + private var §_-fq§:Number = 0; + + private var §_-qF§:Number = 0; + + private var §_-51§:Number = 10000000; + + private var §_-kz§:int; + + private var cameraPositionData:CameraPositionData = new CameraPositionData(); + + private var §_-4G§:Number; + + private var input:§_-Lm§; + + private var §_-fZ§:§_-U2§; + + private var §_-LT§:Number = 0; + + private var §_-mg§:Number = 0; + + private var §_-R2§:Number = 1000; + + private var §_-Rb§:Number = 0; + + private var §_-NW§:Number = 0; + + private var §_-1J§:Number = 1000; + + public var smoothing:Number = 40; + + private var angles:§_-bj§ = new §_-bj§(); + + private var §_-n9§:§_-bj§ = new §_-bj§(); + + private var rotationMatrix:Matrix4 = new Matrix4(); + + private var §_-Ys§:Matrix4 = new Matrix4(); + + private var §_-b4§:§_-bj§ = new §_-bj§(); + + public function §_-bt§(camera:§_-RE§, collisionDetector:§_-fx§, collisionMask:int, input:§_-Lm§) + { + super(); + this.camera = camera; + if(collisionDetector == null) + { + throw new ArgumentError("Parameter collisionDetector cannot be null"); + } + this.collisionDetector = collisionDetector; + this.collisionMask = collisionMask; + this.input = input; + this.§_-Tq§ = 600; + } + + public function §_-eA§() : void + { + } + + public function §_-O-§(target:§_-gw§) : void + { + if(target == null) + { + this.§_-fZ§ = null; + } + else + { + this.§_-fZ§ = §_-om§(target.getComponentStrict(§_-om§)).§_-dW§; + } + } + + public function update() : void + { + if(this.§_-fZ§ == null) + { + throw new Error("Target is not set"); + } + if(camera == null) + { + throw new Error("Camera is not set"); + } + var dt:Number = Number(§_-h2§.timeDeltaSeconds); + if(dt > 0.1) + { + dt = 0.1; + } + this.§_-1E§(); + matrix.§_-eP§(targetOffset,this.§_-n9§); + var distanceChangeDir:int = this.input.§_-OO§(KEY_CAMERA_UP) - this.input.§_-OO§(KEY_CAMERA_DOWN) - this.input.§_-i9§(); + if(distanceChangeDir != 0) + { + this.§_-1J§ *= Math.pow(10,distanceChangeDir * 0.02); + } + if(this.input.§_-an§()) + { + this.§_-Rb§ -= this.input.§_-ac§() * 0.01; + this.§_-NW§ -= this.input.§_-ow§() * 0.01; + } + var k:Number = 1; + if(this.smoothing > 0) + { + k = 100 / this.smoothing * dt; + k = k > 1 ? 1 : k; + this.§_-LT§ += (this.§_-Rb§ - this.§_-LT§) * k; + this.§_-mg§ += (this.§_-NW§ - this.§_-mg§) * k; + } + else + { + this.§_-LT§ = this.§_-Rb§; + this.§_-mg§ = this.§_-NW§; + } + this.rotationMatrix.§_-Wl§(this.§_-LT§,0,this.§_-mg§); + this.rotationMatrix.§_-oa§(matrix.d,matrix.h,matrix.l); + matrix.getAxis(3,rayOrigin); + this.rotationMatrix.§_-Uz§(§_-bj§.Y_AXIS,rayDirection); + rayDirection.reverse(); + var distance:Number = this.§_-1J§; + if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,distance,null,rayHit)) + { + distance = rayHit.t - COLLISION_OFFSET; + } + if(distanceChangeDir != 0) + { + this.§_-1J§ = distance; + } + if(this.smoothing > 0) + { + this.§_-R2§ += (distance - this.§_-R2§) * k; + } + else + { + this.§_-R2§ = distance; + } + this.position.x = 0; + this.position.y = -this.§_-R2§; + this.position.z = 0; + this.rotationMatrix.§_-eP§(this.position,currentPosition); + camera.x = currentPosition.x; + camera.y = currentPosition.y; + camera.z = currentPosition.z; + var dx:Number = this.§_-n9§.x - camera.x; + var dy:Number = this.§_-n9§.y - camera.y; + var dz:Number = this.§_-n9§.z - camera.z; + camera.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)) - 0.5 * Math.PI; + camera.rotationY = 0; + camera.rotationZ = -Math.atan2(dx,dy); + } + + private function set §_-Tq§(value:Number) : void + { + this.§_-U1§ = §_-aY§.clamp(value,MIN_HEIGHT,MAX_HEIGHT); + var d:Number = this.§_-pq§(this.§_-U1§); + this.§_-4G§ = Math.atan2(this.§_-U1§,d); + this.§_-7h§ = Math.sqrt(this.§_-U1§ * this.§_-U1§ + d * d); + this.§_-kz§ = 0; + } + + private function §_-TS§(targetPosition:§_-bj§, targetDirection:§_-bj§, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void + { + var angle:Number = NaN; + var now:int = 0; + var delta:Number = NaN; + var actualElevation:Number = this.§_-4G§; + var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y)); + if(xyLength < 0.00001) + { + flatDirection.x = 1; + flatDirection.y = 0; + } + else + { + flatDirection.x = targetDirection.x / xyLength; + flatDirection.y = targetDirection.y / xyLength; + } + result.extraPitch = 0; + result.t = 1; + var minCollisionDistance:Number = this.§_-7h§; + rayOrigin.copy(targetPosition); + elevationAngles[0] = actualElevation; + axis.x = flatDirection.y; + axis.y = -flatDirection.x; + flatDirection.reverse(); + for each(angle in elevationAngles) + { + this.rotationMatrix.§_-OB§(axis,-angle); + this.rotationMatrix.§_-Uz§(flatDirection,rayDirection); + minCollisionDistance = this.§_-LI§(rayOrigin,rayDirection,this.§_-7h§,minCollisionDistance); + } + if(useReboundDelay) + { + now = int(getTimer()); + if(minCollisionDistance <= this.§_-51§ + 0.001) + { + this.§_-51§ = minCollisionDistance; + this.§_-kz§ = now; + } + else if(now - this.§_-kz§ < reboundDelay.value) + { + minCollisionDistance = this.§_-51§; + } + else + { + this.§_-51§ = minCollisionDistance; + } + } + if(minCollisionDistance < this.§_-7h§) + { + result.t = minCollisionDistance / this.§_-7h§; + if(minCollisionDistance < MIN_DISTANCE) + { + rayOrigin.§_-LQ§(minCollisionDistance,rayDirection); + delta = MIN_DISTANCE - minCollisionDistance; + if(this.collisionDetector.raycast(rayOrigin,§_-bj§.Z_AXIS,this.collisionMask,delta,null,rayHit)) + { + delta = rayHit.t - 10; + if(delta < 0) + { + delta = 0; + } + } + result.position.copy(rayOrigin).§_-LQ§(delta,§_-bj§.Z_AXIS); + } + else + { + result.position.copy(rayOrigin).§_-LQ§(minCollisionDistance,rayDirection); + } + } + else + { + result.position.copy(rayOrigin).§_-LQ§(this.§_-7h§,rayDirection); + } + } + + private function §_-LI§(rayOrigin:§_-bj§, rayDirection:§_-bj§, rayLength:Number, minCollisionDistance:Number) : Number + { + var distance:Number = NaN; + if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,rayLength,null,rayHit)) + { + distance = Number(rayHit.t); + if(distance < COLLISION_OFFSET) + { + distance = 0; + } + else + { + distance -= COLLISION_OFFSET; + } + if(distance < minCollisionDistance) + { + return distance; + } + } + return minCollisionDistance; + } + + private function §_-1E§() : void + { + this.§_-U6§(this.§_-fZ§.parent,parentMatrix); + this.§_-U6§(this.§_-fZ§,matrix); + matrix.append(parentMatrix); + matrix.getAxis(3,this.targetPosition); + this.targetDirection.reset(matrix.b,matrix.f,matrix.j); + } + + private function §_-U6§(object:§_-OX§, matrix:Matrix4) : void + { + matrix.§_-Wl§(object.rotationX,object.rotationY,object.rotationZ); + matrix.§_-oa§(object.x,object.y,object.z); + } + + private function §_-K4§() : void + { + var heightChangeDir:int = this.input.§_-OO§(KEY_CAMERA_UP) - this.input.§_-OO§(KEY_CAMERA_DOWN); + if(heightChangeDir != 0) + { + this.§_-Tq§ = this.§_-U1§ + heightChangeDir * HEIGHT_CHANGE_STEP; + } + } + + private function §_-pq§(h:Number) : Number + { + var v:Number = 200 - 1750; + var k:Number = (1300 - 600) / (v * v); + return -k * (h - 1750) * (h - 1750) + 1300; + } + + private function §_-Tu§(positionError:Number) : Number + { + return 3 * positionError; + } + + private function §_-NP§(angleError:Number, currentSpeed:Number) : Number + { + if(angleError < -maxAngleError) + { + return 3 * (angleError + maxAngleError); + } + if(angleError > maxAngleError) + { + return 3 * (angleError - maxAngleError); + } + return currentSpeed; + } + + private function §each §(value:Number, snapValue:Number, epsilon:Number) : Number + { + if(value > snapValue - epsilon && value < snapValue + epsilon) + { + return snapValue; + } + return value; + } + + private function §_-Xv§(cameraPositionData:CameraPositionData) : Number + { + var angle:Number = this.§_-4G§ - fixedPitch.value; + if(angle < 0) + { + angle = 0; + } + var t:Number = cameraPositionData.t; + if(t >= 1 || angle < MIN_CAMERA_ANGLE || noPitchCorrection.value == 1) + { + return cameraPositionData.extraPitch - angle; + } + return cameraPositionData.extraPitch - Math.atan2(t * this.§_-U1§,pitchCorrectionCoeff.value * this.§_-U1§ * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.§_-4G§))); + } + } +} + +import §_-nl§.§_-bj§; + +class CameraPositionData +{ + public var t:Number; + + public var extraPitch:Number; + + public var position:§_-bj§ = new §_-bj§(); + + public function CameraPositionData() + { + super(); + } +} diff --git a/src/?_-I0?/?_-hB?.as b/src/?_-I0?/?_-hB?.as new file mode 100644 index 0000000..0fa0c15 --- /dev/null +++ b/src/?_-I0?/?_-hB?.as @@ -0,0 +1,473 @@ +package §_-I0§ +{ + import §_-1e§.§_-fx§; + import §_-8D§.§_-OX§; + import §_-Ex§.§_-U2§; + import §_-KA§.§_-jr§; + import §_-KT§.§_-Ju§; + import §_-KT§.§_-UT§; + import §_-OR§.§_-om§; + import §_-V-§.§_-aY§; + import §_-aM§.§_-Lm§; + import §_-az§.§_-gw§; + import §_-e6§.§_-RE§; + import §_-e6§.§_-gb§; + import §_-lS§.§_-h2§; + import §_-nl§.Matrix3; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; + import flash.ui.Keyboard; + import flash.utils.getTimer; + + public class §_-hB§ extends §_-Ww§ implements §_-gb§ + { + private static var parentMatrix:Matrix4 = new Matrix4(); + + private static var matrix:Matrix4 = new Matrix4(); + + public static var maxPositionError:Number = 10; + + public static var maxAngleError:Number = Math.PI / 180; + + public static var camSpeedThreshold:Number = 10; + + private static var fixedPitch:§_-Ju§ = new §_-Ju§("cam_fixedpitch",10 * Math.PI / 180,-1,1); + + private static var noPitchCorrection:§_-UT§ = new §_-UT§("cam_nopitchcorrection",1,0,1); + + private static var pitchCorrectionCoeff:§_-Ju§ = new §_-Ju§("cam_pitchcorrectioncoeff",1,0,10); + + private static var reboundDelay:§_-UT§ = new §_-UT§("cam_rebound",1000,0,2000); + + private static var elevationAngles:Vector. = new Vector.(1,true); + + private static var rotationMatrix:Matrix3 = new Matrix3(); + + private static var axis:§_-bj§ = new §_-bj§(); + + private static var rayDirection:§_-bj§ = new §_-bj§(); + + private static const MIN_CAMERA_ANGLE:Number = 5 * Math.PI / 180; + + private static const KEY_CAMERA_UP:uint = Keyboard.PAGE_UP; + + private static const ALT_KEY_CAMERA_UP:uint = 221; + + private static const KEY_CAMERA_DOWN:uint = Keyboard.PAGE_DOWN; + + private static const ALT_KEY_CAMERA_DOWN:uint = 219; + + private static const HEIGHT_CHANGE_STEP:Number = 50; + + private static const MIN_HEIGHT:Number = 150; + + private static const MAX_HEIGHT:Number = 3100; + + private static const MIN_DISTANCE:Number = 300; + + private static const COLLISION_OFFSET:Number = 50; + + private static var currentPosition:§_-bj§ = new §_-bj§(); + + private static var currentRotation:§_-bj§ = new §_-bj§(); + + private static var rayOrigin:§_-bj§ = new §_-bj§(); + + private static var flatDirection:§_-bj§ = new §_-bj§(); + + private static var positionDelta:§_-bj§ = new §_-bj§(); + + private static var rayHit:§_-jr§ = new §_-jr§(); + + private var collisionDetector:§_-fx§; + + private var collisionMask:int; + + private var §_-U1§:Number = 0; + + private var §_-7h§:Number = 0; + + private var locked:Boolean; + + private var position:§_-bj§ = new §_-bj§(); + + private var rotation:§_-bj§ = new §_-bj§(); + + private var targetPosition:§_-bj§ = new §_-bj§(); + + private var targetDirection:§_-bj§ = new §_-bj§(); + + private var §_-Wq§:Number = 0; + + private var §_-fq§:Number = 0; + + private var §_-qF§:Number = 0; + + private var §_-51§:Number = 10000000; + + private var §_-kz§:int; + + private var cameraPositionData:CameraPositionData = new CameraPositionData(); + + private var §_-4G§:Number; + + private var §_-d9§:Number = 0; + + private var input:§_-Lm§; + + private var §_-fZ§:§_-U2§; + + public function §_-hB§(camera:§_-RE§, collisionDetector:§_-fx§, collisionMask:int, input:§_-Lm§) + { + super(); + this.camera = camera; + if(collisionDetector == null) + { + throw new ArgumentError("Parameter collisionDetector cannot be null"); + } + this.collisionDetector = collisionDetector; + this.collisionMask = collisionMask; + this.input = input; + this.§_-Tq§ = 600; + } + + public function §_-eA§() : void + { + } + + public function §_-O-§(target:§_-gw§) : void + { + if(target == null) + { + this.§_-fZ§ = null; + } + else + { + this.§_-fZ§ = §_-om§(target.getComponentStrict(§_-om§)).§_-dW§; + } + } + + public function §_-7o§() : void + { + noPitchCorrection.value = 1; + } + + public function §_-hI§() : void + { + noPitchCorrection.value = 0; + } + + public function §_-WF§(targetPosition:§_-bj§, targetDirection:§_-bj§) : void + { + this.targetPosition.copy(targetPosition); + this.targetDirection.copy(targetDirection); + this.§_-kz§ = 0; + this.§_-TS§(targetPosition,targetDirection,false,10000,this.cameraPositionData); + this.position.copy(this.cameraPositionData.position); + this.rotation.x = this.§_-Xv§(this.cameraPositionData) - 0.5 * Math.PI; + this.rotation.z = Math.atan2(-targetDirection.x,targetDirection.y); + §_-Vi§(this.position); + §_-LV§(this.rotation); + } + + public function §_-5p§() : void + { + this.position.reset(camera.x,camera.y,camera.z); + this.rotation.reset(camera.rotationX,camera.rotationY,camera.rotationZ); + } + + public function update() : void + { + if(this.§_-fZ§ == null) + { + throw new Error("Target is not set"); + } + if(camera == null) + { + throw new Error("Camera is not set"); + } + var dt:Number = Number(§_-h2§.timeDeltaSeconds); + if(dt > 0.1) + { + dt = 0.1; + } + this.§_-K4§(); + if(!this.locked) + { + this.§_-1E§(); + } + this.§_-TS§(this.targetPosition,this.targetDirection,true,dt,this.cameraPositionData); + positionDelta.§_-hL§(this.cameraPositionData.position,this.position); + var positionError:Number = Number(positionDelta.length()); + if(positionError > maxPositionError) + { + this.§_-Wq§ = this.§_-Tu§(positionError - maxPositionError); + } + var distance:Number = this.§_-Wq§ * dt; + if(distance > positionError) + { + distance = positionError; + } + positionDelta.normalize().scale(distance); + var targetPitchAngle:Number = this.§_-Xv§(this.cameraPositionData); + var targetYawAngle:Number = Number(Math.atan2(-this.targetDirection.x,this.targetDirection.y)); + var currentPitchAngle:Number = Number(§_-aY§.§_-d§(this.rotation.x + 0.5 * Math.PI)); + var currentYawAngle:Number = Number(§_-aY§.§_-d§(this.rotation.z)); + var pitchError:Number = Number(§_-aY§.§_-Bu§(targetPitchAngle - currentPitchAngle)); + this.§_-fq§ = this.§_-NP§(pitchError,this.§_-fq§); + var deltaPitch:Number = this.§_-fq§ * dt; + if(pitchError > 0 && deltaPitch > pitchError || pitchError < 0 && deltaPitch < pitchError) + { + deltaPitch = pitchError; + } + var yawError:Number = Number(§_-aY§.§_-Bu§(targetYawAngle - currentYawAngle)); + this.§_-qF§ = this.§_-NP§(yawError,this.§_-qF§); + var deltaYaw:Number = this.§_-qF§ * dt; + if(yawError > 0 && deltaYaw > yawError || yawError < 0 && deltaYaw < yawError) + { + deltaYaw = yawError; + } + this.§_-Wq§ = this.§each §(this.§_-Wq§,0,camSpeedThreshold); + this.§_-fq§ = this.§each §(this.§_-fq§,0,camSpeedThreshold); + this.§_-qF§ = this.§each §(this.§_-qF§,0,camSpeedThreshold); + this.position.add(positionDelta); + this.rotation.x += deltaPitch; + this.rotation.z += deltaYaw; + currentPosition.copy(this.position); + currentRotation.copy(this.rotation); + §_-Vi§(currentPosition); + §_-LV§(currentRotation); + } + + public function §_-qb§(locked:Boolean) : void + { + this.locked = locked; + } + + public function get §_-Tq§() : Number + { + return this.§_-U1§; + } + + public function set §_-Tq§(value:Number) : void + { + this.§_-U1§ = §_-aY§.clamp(value,MIN_HEIGHT,MAX_HEIGHT); + var d:Number = this.§_-pq§(this.§_-U1§); + this.§_-4G§ = Math.atan2(this.§_-U1§,d); + this.§_-7h§ = Math.sqrt(this.§_-U1§ * this.§_-U1§ + d * d); + this.§_-kz§ = 0; + } + + public function §_-Ls§(targetPosition:§_-bj§, targetDirection:§_-bj§, resultingPosition:§_-bj§, resultingAngles:§_-bj§) : void + { + this.§_-TS§(targetPosition,targetDirection,false,10000,this.cameraPositionData); + resultingAngles.x = this.§_-Xv§(this.cameraPositionData) - 0.5 * Math.PI; + resultingAngles.z = Math.atan2(-targetDirection.x,targetDirection.y); + resultingPosition.copy(this.cameraPositionData.position); + } + + private function §_-TS§(targetPosition:§_-bj§, targetDirection:§_-bj§, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void + { + var angle:Number = NaN; + var now:int = 0; + var delta:Number = NaN; + var actualElevation:Number = this.§_-4G§; + var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y)); + if(xyLength < 0.00001) + { + flatDirection.x = 1; + flatDirection.y = 0; + } + else + { + flatDirection.x = targetDirection.x / xyLength; + flatDirection.y = targetDirection.y / xyLength; + } + result.extraPitch = 0; + result.t = 1; + var minCollisionDistance:Number = this.§_-7h§; + rayOrigin.copy(targetPosition); + elevationAngles[0] = actualElevation; + axis.x = flatDirection.y; + axis.y = -flatDirection.x; + flatDirection.reverse(); + for each(angle in elevationAngles) + { + rotationMatrix.§_-OB§(axis,-angle); + rotationMatrix.§_-Uz§(flatDirection,rayDirection); + minCollisionDistance = this.§_-5y§(rayOrigin,rayDirection,this.§_-7h§,minCollisionDistance); + } + if(useReboundDelay) + { + now = int(getTimer()); + if(minCollisionDistance <= this.§_-51§ + 0.001) + { + this.§_-51§ = minCollisionDistance; + this.§_-kz§ = now; + } + else if(now - this.§_-kz§ < reboundDelay.value) + { + minCollisionDistance = this.§_-51§; + } + else + { + this.§_-51§ = minCollisionDistance; + } + } + if(minCollisionDistance < this.§_-7h§) + { + result.t = minCollisionDistance / this.§_-7h§; + if(minCollisionDistance < MIN_DISTANCE) + { + rayOrigin.§_-LQ§(minCollisionDistance,rayDirection); + delta = MIN_DISTANCE - minCollisionDistance; + if(this.collisionDetector.raycast(rayOrigin,§_-bj§.Z_AXIS,this.collisionMask,delta,null,rayHit)) + { + delta = rayHit.t - 10; + if(delta < 0) + { + delta = 0; + } + } + result.position.copy(rayOrigin).§_-LQ§(delta,§_-bj§.Z_AXIS); + } + else + { + result.position.copy(rayOrigin).§_-LQ§(minCollisionDistance,rayDirection); + } + } + else + { + result.position.copy(rayOrigin).§_-LQ§(this.§_-7h§,rayDirection); + } + } + + private function §_-5y§(rayOrigin:§_-bj§, rayDirection:§_-bj§, rayLength:Number, minCollisionDistance:Number) : Number + { + var distance:Number = NaN; + if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,rayLength,null,rayHit)) + { + distance = Number(rayHit.t); + if(distance < COLLISION_OFFSET) + { + distance = 0; + } + else + { + distance -= COLLISION_OFFSET; + } + if(distance < minCollisionDistance) + { + return distance; + } + } + return minCollisionDistance; + } + + private function §_-1E§() : void + { + this.setMatrix(this.§_-fZ§.parent,parentMatrix); + this.setMatrix(this.§_-fZ§,matrix); + matrix.append(parentMatrix); + matrix.getAxis(3,this.targetPosition); + this.targetDirection.reset(matrix.b,matrix.f,matrix.j); + } + + private function setMatrix(object:§_-OX§, matrix:Matrix4) : void + { + matrix.§_-Wl§(object.rotationX,object.rotationY,object.rotationZ); + matrix.§_-oa§(object.x,object.y,object.z); + } + + private function §_-K4§() : void + { + var heightChangeDir:int = this.input.§_-OO§(KEY_CAMERA_UP) - this.input.§_-OO§(KEY_CAMERA_DOWN); + if(heightChangeDir != 0) + { + this.§_-Tq§ = this.§_-U1§ + heightChangeDir * HEIGHT_CHANGE_STEP; + } + } + + private function §_-pq§(h:Number) : Number + { + var hMid:Number = 0.5 * (3300 + 200); + var a:Number = hMid; + var v:Number = 200 - hMid; + var k:Number = (1300 - 600) / (v * v); + return -k * (h - a) * (h - a) + 1300; + } + + private function §_-Tu§(positionError:Number) : Number + { + return 3 * positionError; + } + + private function §_-NP§(angleError:Number, currentSpeed:Number) : Number + { + if(angleError < -maxAngleError) + { + return 3 * (angleError + maxAngleError); + } + if(angleError > maxAngleError) + { + return 3 * (angleError - maxAngleError); + } + return currentSpeed; + } + + private function §each §(value:Number, snapValue:Number, epsilon:Number) : Number + { + if(value > snapValue - epsilon && value < snapValue + epsilon) + { + return snapValue; + } + return value; + } + + private function §_-Xv§(cameraPositionData:CameraPositionData) : Number + { + var angle:Number = this.§_-4G§ - fixedPitch.value; + if(angle < 0) + { + angle = 0; + } + var t:Number = cameraPositionData.t; + if(t >= 1 || angle < MIN_CAMERA_ANGLE || noPitchCorrection.value == 1) + { + return cameraPositionData.extraPitch - angle; + } + return cameraPositionData.extraPitch - Math.atan2(t * this.§_-U1§,pitchCorrectionCoeff.value * this.§_-U1§ * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.§_-4G§))); + } + + private function §_-PD§(value:Number, targetValue:Number, delta:Number) : Number + { + if(value < targetValue) + { + value += delta; + return value > targetValue ? targetValue : value; + } + if(value > targetValue) + { + value -= delta; + return value < targetValue ? targetValue : value; + } + return value; + } + } +} + +import §_-nl§.§_-bj§; + +class CameraPositionData +{ + public var t:Number; + + public var extraPitch:Number; + + public var position:§_-bj§ = new §_-bj§(); + + public function CameraPositionData() + { + super(); + } +} diff --git a/src/package_88/name_268.as b/src/?_-K8?/?_-e5?.as similarity index 58% rename from src/package_88/name_268.as rename to src/?_-K8?/?_-e5?.as index f946eed..0635acb 100644 --- a/src/package_88/name_268.as +++ b/src/?_-K8?/?_-e5?.as @@ -1,20 +1,20 @@ -package package_88 +package §_-K8§ { + import §_-8D§.§_-OX§; + import §_-RQ§.§_-HE§; + import §_-RQ§.§_-Va§; + import §_-e6§.§_-1I§; + import §_-e6§.§_-RE§; + import §_-e6§.§_-fX§; + import §_-lS§.§_-h2§; import alternativa.engine3d.alternativa3d; import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.geom.Vector3D; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; - import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_21.name_78; - import alternativa.tanks.game.utils.objectpool.PooledObject; - import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_45.name_182; use namespace alternativa3d; - public class name_268 extends PooledObject implements IGraphicEffect + public class §_-e5§ extends §_-HE§ implements §_-fX§ { private static var vector1:Vector3D = new Vector3D(); @@ -22,61 +22,61 @@ package package_88 private var messageLifeTime:int; - private var var_435:Vector.; + private var §_-cd§:Vector.; - private var anchor:name_78; + private var anchor:§_-OX§; - private var var_466:DisplayObjectContainer; + private var §_-1R§:DisplayObjectContainer; - private var var_467:Function; + private var §_-Cx§:Function; - public function name_268(objectPool:ObjectPool) + public function §_-e5§(objectPool:§_-Va§) { super(objectPool); - this.var_435 = new Vector.(); - this.var_466 = new Sprite(); + this.§_-cd§ = new Vector.(); + this.§_-1R§ = new Sprite(); } - public function init(messageLifeTime:int, anchor:name_78, destuctionCallback:Function) : void + public function init(messageLifeTime:int, anchor:§_-OX§, destuctionCallback:Function) : void { this.messageLifeTime = messageLifeTime; this.anchor = anchor; - this.var_467 = destuctionCallback; + this.§_-Cx§ = destuctionCallback; } - public function name_305(text:String, color:uint) : void + public function §_-U8§(text:String, color:uint) : void { var message:Message = Message.create(); message.color = color; message.text = text; message.lifeTime = 0; - this.var_435.push(message); - this.var_466.addChild(message); + this.§_-cd§.push(message); + this.§_-1R§.addChild(message); } - public function addedToRenderSystem(system:RenderSystem) : void + public function addedToRenderSystem(system:§_-1I§) : void { - system.method_41("debug_messages").addChild(this.var_466); + system.§_-S4§("debug_messages").addChild(this.§_-1R§); } - public function play(camera:GameCamera) : Boolean + public function play(camera:§_-RE§) : Boolean { var i:int = 0; var message:Message = null; - var timeDelta:int = name_182.timeDelta; - for(i = 0; i < this.var_435.length; ) + var timeDelta:int = int(§_-h2§.timeDelta); + for(i = 0; i < this.§_-cd§.length; ) { - message = this.var_435[i]; + message = this.§_-cd§[i]; message.lifeTime += timeDelta; if(message.lifeTime >= this.messageLifeTime) { message.destroy(); - this.var_435.shift(); + this.§_-cd§.shift(); i--; } i++; } - if(this.var_435.length == 0) + if(this.§_-cd§.length == 0) { return false; } @@ -88,18 +88,18 @@ package package_88 vector2.y -= camera.view.height / 2; if(vector2.z > 0.01 && vector2.z > camera.nearClipping) { - this.var_466.visible = true; - this.var_466.x = int(vector2.x); - this.var_466.y = int(vector2.y); + this.§_-1R§.visible = true; + this.§_-1R§.x = int(vector2.x); + this.§_-1R§.y = int(vector2.y); } else { - this.var_466.visible = false; + this.§_-1R§.visible = false; } var messageY:int = 0; - for(i = this.var_435.length - 1; i >= 0; i--) + for(i = this.§_-cd§.length - 1; i >= 0; i--) { - message = this.var_435[i]; + message = this.§_-cd§[i]; message.y = messageY; message.x = -int(message.textWidth / 2); messageY -= 20; @@ -111,19 +111,19 @@ package package_88 { var message:Message = null; var func:Function = null; - if(this.var_466.parent != null) + if(this.§_-1R§.parent != null) { - this.var_466.parent.removeChild(this.var_466); + this.§_-1R§.parent.removeChild(this.§_-1R§); } - for each(message in this.var_435) + for each(message in this.§_-cd§) { message.destroy(); } - this.var_435.length = 0; - if(this.var_467 != null) + this.§_-cd§.length = 0; + if(this.§_-Cx§ != null) { - func = this.var_467; - this.var_467 = null; + func = this.§_-Cx§; + this.§_-Cx§ = null; func.call(); } } diff --git a/src/package_90/name_386.as b/src/?_-KA?/?_-FW?.as similarity index 75% rename from src/package_90/name_386.as rename to src/?_-KA?/?_-FW?.as index 5476e63..1828c13 100644 --- a/src/package_90/name_386.as +++ b/src/?_-KA?/?_-FW?.as @@ -1,8 +1,8 @@ -package package_90 +package §_-KA§ { - import package_46.name_194; + import §_-nl§.§_-bj§; - public class name_386 + public class §_-FW§ { public var minX:Number = 1e+308; @@ -16,12 +16,12 @@ package package_90 public var maxZ:Number = -1e+308; - public function name_386() + public function §_-FW§() { super(); } - public function method_140(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number) : void + public function §_-k2§(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number) : void { this.minX = minX; this.minY = minY; @@ -31,7 +31,7 @@ package package_90 this.maxZ = maxZ; } - public function name_686(delta:Number) : void + public function §_-Gd§(delta:Number) : void { this.minX -= delta; this.minY -= delta; @@ -41,7 +41,7 @@ package package_90 this.maxZ += delta; } - public function name_583(boundBox:name_386) : void + public function §_-EH§(boundBox:§_-FW§) : void { this.minX = boundBox.minX < this.minX ? boundBox.minX : this.minX; this.minY = boundBox.minY < this.minY ? boundBox.minY : this.minY; @@ -51,7 +51,7 @@ package package_90 this.maxZ = boundBox.maxZ > this.maxZ ? boundBox.maxZ : this.maxZ; } - public function method_702(x:Number, y:Number, z:Number) : void + public function §_-aW§(x:Number, y:Number, z:Number) : void { if(x < this.minX) { @@ -79,7 +79,7 @@ package package_90 } } - public function name_584() : void + public function §_-GT§() : void { this.minX = 1e+308; this.minY = 1e+308; @@ -89,32 +89,32 @@ package package_90 this.maxZ = -1e+308; } - public function intersects(bb:name_386, epsilon:Number) : Boolean + public function intersects(bb:§_-FW§, epsilon:Number) : Boolean { return !(this.minX > bb.maxX + epsilon || this.maxX < bb.minX - epsilon || this.minY > bb.maxY + epsilon || this.maxY < bb.minY - epsilon || this.minZ > bb.maxZ + epsilon || this.maxZ < bb.minZ - epsilon); } - public function name_687(point:name_194, epsilon:Number) : Boolean + public function §_-Wu§(point:§_-bj§, epsilon:Number) : Boolean { return point.x > this.minX - epsilon && point.x < this.maxX + epsilon && point.y > this.minY - epsilon && point.y < this.maxY + epsilon && point.z > this.minZ - epsilon && point.z < this.maxZ + epsilon; } - public function name_689() : Number + public function §_-ot§() : Number { return this.maxX - this.minX; } - public function name_688() : Number + public function §_-jP§() : Number { return this.maxY - this.minY; } - public function name_690() : Number + public function §_-Ix§() : Number { return this.maxZ - this.minZ; } - public function copyFrom(boundBox:name_386) : void + public function copyFrom(boundBox:§_-FW§) : void { this.minX = boundBox.minX; this.minY = boundBox.minY; @@ -124,9 +124,9 @@ package package_90 this.maxZ = boundBox.maxZ; } - public function clone() : name_386 + public function clone() : §_-FW§ { - var clone:name_386 = new name_386(); + var clone:§_-FW§ = new §_-FW§(); clone.copyFrom(this); return clone; } diff --git a/src/package_89/name_266.as b/src/?_-LL?/?_-nR?.as similarity index 53% rename from src/package_89/name_266.as rename to src/?_-LL?/?_-nR?.as index 75969a8..f861671 100644 --- a/src/package_89/name_266.as +++ b/src/?_-LL?/?_-nR?.as @@ -1,26 +1,26 @@ -package package_89 +package §_-LL§ { + import §_-1z§.§_-pi§; + import §_-7A§.§_-3e§; + import §_-8D§.§_-OX§; + import §_-Ex§.§_-U2§; + import §_-Ex§.§_-hW§; + import §_-RQ§.§_-HE§; + import §_-RQ§.§_-Va§; + import §_-Vh§.§_-YD§; + import §_-e6§.§_-1I§; + import §_-e6§.§_-9l§; + import §_-e6§.§_-RE§; + import §_-e6§.§_-fX§; + import §_-lS§.§_-h2§; + import §_-nl§.Matrix3; + import §_-nl§.§_-bj§; import alternativa.engine3d.alternativa3d; import flash.display3D.Context3DBlendFactor; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.BlendedMaterial; - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; - import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_19.name_380; - import package_19.name_494; - import package_21.name_78; - import alternativa.tanks.game.utils.objectpool.PooledObject; - import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_28.name_129; - import package_4.name_313; - import package_45.name_182; - import package_46.Matrix3; - import package_46.name_194; - import package_75.class_15; use namespace alternativa3d; - public class name_266 extends PooledObject implements IGraphicEffect + public class §_-nR§ extends §_-HE§ implements §_-fX§ { private static const BARREL_INDEX:int = 0; @@ -38,29 +38,29 @@ package package_89 private static const trailSpeed3:Number = 1300; - private static var muzzlePosition:name_194 = new name_194(); + private static var muzzlePosition:§_-bj§ = new §_-bj§(); - private static var gunDirection:name_194 = new name_194(); + private static var gunDirection:§_-bj§ = new §_-bj§(); - private static var axis:name_194 = new name_194(); + private static var axis:§_-bj§ = new §_-bj§(); - private static var eulerAngles:name_194 = new name_194(); + private static var eulerAngles:§_-bj§ = new §_-bj§(); private static var trailMatrix:Matrix3 = new Matrix3(); private static var trailMatrix2:Matrix3 = new Matrix3(); - private var turret:class_15; + private var turret:§_-3e§; - private var sprite1:name_494; + private var sprite1:§_-hW§; - private var sprite2:name_494; + private var sprite2:§_-hW§; - private var sprite3:name_494; + private var sprite3:§_-hW§; - private var var_427:BlendedMaterial; + private var §_-kg§:§_-9l§; - private var var_428:name_313 = new name_313(16563726,0.1); + private var §_-ld§:§_-YD§ = new §_-YD§(16563726,0.1); private var trail1:Trail; @@ -88,38 +88,38 @@ package package_89 private var timeToLive:int; - public function name_266(objectPool:ObjectPool) + public function §_-nR§(objectPool:§_-Va§) { super(objectPool); - this.var_427 = new BlendedMaterial(); - this.var_427.var_21 = true; - this.var_427.blendModeSource = Context3DBlendFactor.ONE; - this.var_427.blendModeDestination = Context3DBlendFactor.ONE; - this.method_378(); + this.§_-kg§ = new §_-9l§(); + this.§_-kg§.§_-L4§ = true; + this.§_-kg§.blendModeSource = Context3DBlendFactor.ONE; + this.§_-kg§.blendModeDestination = Context3DBlendFactor.ONE; + this.§_-5M§(); } - public function init(turret:class_15, diffuse:name_129, opacity:name_129) : void + public function init(turret:§_-3e§, diffuse:§_-pi§, opacity:§_-pi§) : void { this.turret = turret; } - public function addedToRenderSystem(system:RenderSystem) : void + public function addedToRenderSystem(system:§_-1I§) : void { - var container:name_78 = system.method_62(); + var container:§_-OX§ = system.§_-Hn§(); container.addChild(this.sprite1); container.addChild(this.sprite2); container.addChild(this.sprite3); } - public function play(camera:GameCamera) : Boolean + public function play(camera:§_-RE§) : Boolean { if(this.timeToLive <= 0) { return false; } this.turret.getGunMuzzleData(BARREL_INDEX,muzzlePosition,gunDirection); - var dt:Number = name_182.timeDeltaSeconds; - this.timeToLive -= name_182.timeDelta; + var dt:Number = Number(§_-h2§.timeDeltaSeconds); + this.timeToLive -= §_-h2§.timeDelta; return true; } @@ -128,34 +128,34 @@ package package_89 this.sprite1.alternativa3d::removeFromParent(); this.sprite2.alternativa3d::removeFromParent(); this.sprite3.alternativa3d::removeFromParent(); - method_254(); + §_-DQ§(); } - private function method_378() : void + private function §_-5M§() : void { - this.sprite1 = this.method_377(120); - this.sprite2 = this.method_377(99.75); - this.sprite3 = this.method_377(79.5); + this.sprite1 = this.§_-eJ§(120); + this.sprite2 = this.§_-eJ§(99.75); + this.sprite3 = this.§_-eJ§(79.5); } - private function method_377(size:Number) : name_494 + private function §_-eJ§(size:Number) : §_-hW§ { - var sprite:name_494 = new name_494(size,size); + var sprite:§_-hW§ = new §_-hW§(size,size); sprite.rotation = 2 * Math.PI * Math.random(); - sprite.material = this.var_427; + sprite.material = this.§_-kg§; return sprite; } - private function method_380(sprite:name_494, basePoint:name_194, direction:name_194, distance:Number) : void + private function §_-ME§(sprite:§_-hW§, basePoint:§_-bj§, direction:§_-bj§, distance:Number) : void { sprite.x = basePoint.x + direction.x * distance; sprite.y = basePoint.y + direction.y * distance; sprite.z = basePoint.z + direction.z * distance; } - private function method_379(trail:name_380, angle:Number, basePoint:name_194, direction:name_194, distance:Number, dx:Number, dz:Number) : void + private function §_-Qt§(trail:§_-U2§, angle:Number, basePoint:§_-bj§, direction:§_-bj§, distance:Number, dx:Number, dz:Number) : void { - trailMatrix.method_344(name_194.Y_AXIS,angle); + trailMatrix.§_-OB§(§_-bj§.Y_AXIS,angle); if(direction.y < -0.99999 || direction.y > 0.99999) { axis.x = 0; @@ -171,9 +171,9 @@ package package_89 axis.normalize(); angle = Number(Math.acos(direction.y)); } - trailMatrix2.method_344(axis,angle); + trailMatrix2.§_-OB§(axis,angle); trailMatrix.append(trailMatrix2); - trailMatrix.name_341(eulerAngles); + trailMatrix.§_-fJ§(eulerAngles); trail.rotationX = eulerAngles.x; trail.rotationY = eulerAngles.y; trail.rotationZ = eulerAngles.z; @@ -184,28 +184,28 @@ package package_89 } } -import package_19.name_380; -import package_21.name_126; -import package_21.name_78; -import package_28.name_119; -import package_4.class_4; +import §_-1z§.§_-gA§; +import §_-8D§.§_-OX§; +import §_-8D§.§_-d6§; +import §_-Ex§.§_-U2§; +import §_-Vh§.§_-b9§; -class Trail extends name_380 +class Trail extends §_-U2§ { private static var verts:Vector. = Vector.([0,0,0,0,0,0,0,0,0]); - public function Trail(scale:Number, material:class_4) + public function Trail(scale:Number, material:§_-b9§) { super(); var h:Number = 240 * scale; verts[0] = -4; verts[3] = 4; verts[7] = h; - geometry = new name_119(); + geometry = new §_-gA§(); var attributes:Array = []; - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; + attributes[0] = §_-d6§.POSITION; + attributes[1] = §_-d6§.POSITION; + attributes[2] = §_-d6§.POSITION; geometry.addVertexStream(attributes); geometry.numVertices = 3; var values:Vector. = new Vector.(9); @@ -213,7 +213,7 @@ class Trail extends name_380 { values[i] = verts[i]; } - geometry.setAttributeValues(name_126.POSITION,values); + geometry.setAttributeValues(§_-d6§.POSITION,values); geometry.indices = Vector.([0,1,2]); addSurface(material,0,1); calculateBoundBox(); diff --git a/src/?_-Lz?.as b/src/?_-Lz?.as new file mode 100644 index 0000000..df5cba9 --- /dev/null +++ b/src/?_-Lz?.as @@ -0,0 +1,15 @@ +package +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + [Embed(source="/_assets/16__-Lz.jpg")] + public class §_-Lz§ extends BitmapAsset + { + public function §_-Lz§() + { + super(); + } + } +} + diff --git a/src/?_-M9?.as b/src/?_-M9?.as new file mode 100644 index 0000000..5abe8bd --- /dev/null +++ b/src/?_-M9?.as @@ -0,0 +1,15 @@ +package +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + [Embed(source="/_assets/14__-M9.jpg")] + public class §_-M9§ extends BitmapAsset + { + public function §_-M9§() + { + super(); + } + } +} + diff --git a/src/alternativa/utils/CircularStringBuffer.as b/src/?_-O5?/?_-2n?.as similarity index 60% rename from src/alternativa/utils/CircularStringBuffer.as rename to src/?_-O5?/?_-2n?.as index 83de67f..ab58478 100644 --- a/src/alternativa/utils/CircularStringBuffer.as +++ b/src/?_-O5?/?_-2n?.as @@ -1,36 +1,36 @@ -package alternativa.utils +package §_-O5§ { - public class CircularStringBuffer implements ICircularStringBuffer + public class §_-2n§ implements §_-c4§ { public var strings:Vector.; - public var var_665:int; + public var §_-Uh§:int; - public var var_664:int; + public var §_-1A§:int; - private var var_666:int; + private var §_-9W§:int; - public function CircularStringBuffer(capacity:int) + public function §_-2n§(capacity:int) { super(); - this.var_666 = capacity; - this.strings = new Vector.(this.var_666 + 1); + this.§_-9W§ = capacity; + this.strings = new Vector.(this.§_-9W§ + 1); } public function add(s:String) : void { - this.strings[this.var_664] = s; - this.var_664 = this.incIndex(this.var_664); - if(this.var_664 == this.var_665) + this.strings[this.§_-1A§] = s; + this.§_-1A§ = this.incIndex(this.§_-1A§); + if(this.§_-1A§ == this.§_-Uh§) { - this.var_665 = this.incIndex(this.var_665); + this.§_-Uh§ = this.incIndex(this.§_-Uh§); } } public function clear() : void { - this.var_665 = 0; - this.var_664 = 0; + this.§_-Uh§ = 0; + this.§_-1A§ = 0; var len:int = int(this.strings.length); for(var i:int = 0; i < len; i++) { @@ -40,7 +40,7 @@ package alternativa.utils public function get size() : int { - var result:int = this.var_664 - this.var_665; + var result:int = this.§_-1A§ - this.§_-Uh§; if(result < 0) { result += this.strings.length; @@ -50,13 +50,13 @@ package alternativa.utils public function get capacity() : int { - return this.var_666; + return this.§_-9W§; } - public function name_638() : Vector. + public function §_-BS§() : Vector. { var result:Vector. = new Vector.(); - for(var i:int = this.var_665; i != this.var_664; i = this.incIndex(i)) + for(var i:int = this.§_-Uh§; i != this.§_-1A§; i = this.incIndex(i)) { result.push(this.strings[i]); } @@ -68,7 +68,7 @@ package alternativa.utils throw new Error("Unimplemented"); } - public function name_633(startIndex:int) : IStringBufferIterator + public function §_-Pj§(startIndex:int) : §_-fU§ { return new Iterator(this,startIndex); } @@ -80,13 +80,13 @@ package alternativa.utils } } -class Iterator implements IStringBufferIterator +class Iterator implements §_-fU§ { - private var buffer:CircularStringBuffer; + private var buffer:§_-2n§; private var index:int; - public function Iterator(buffer:CircularStringBuffer, startIndex:int) + public function Iterator(buffer:§_-2n§, startIndex:int) { super(); if(startIndex < 0 || startIndex > buffer.size) @@ -95,7 +95,7 @@ class Iterator implements IStringBufferIterator } this.buffer = buffer; var bufferLength:uint = uint(buffer.strings.length); - this.index = buffer.var_665 + startIndex - 1; + this.index = buffer.§_-Uh§ + startIndex - 1; if(this.index < 0) { this.index = bufferLength - 1; @@ -108,13 +108,13 @@ class Iterator implements IStringBufferIterator public function hasNext() : Boolean { - return this.incIndex(this.index) != this.buffer.var_664; + return this.incIndex(this.index) != this.buffer.§_-1A§; } public function getNext() : String { this.index = this.incIndex(this.index); - if(this.index == this.buffer.var_664) + if(this.index == this.buffer.§_-1A§) { throw new Error("End of buffer"); } diff --git a/src/?_-OZ?/?_-FA?.as b/src/?_-OZ?/?_-FA?.as new file mode 100644 index 0000000..65533c2 --- /dev/null +++ b/src/?_-OZ?/?_-FA?.as @@ -0,0 +1,392 @@ +package §_-OZ§ +{ + import §_-8D§.§_-OX§; + import §_-9n§.§_-Np§; + import alternativa.engine3d.alternativa3d; + + use namespace alternativa3d; + + public class §_-FA§ extends §_-CO§ + { + alternativa3d var §_-Kq§:Array; + + public var name:String; + + public var loop:Boolean = true; + + public var length:Number = 0; + + public var animated:Boolean = true; + + private var §_-qC§:Number = 0; + + private var §_-Iv§:int = 0; + + private var §_-cT§:Vector.<§_-Np§> = new Vector.<§_-Np§>(); + + private var §_-Ci§:§_-Re§; + + public function §_-FA§(name:String = null) + { + super(); + this.name = name; + } + + public function get objects() : Array + { + return this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq); + } + + public function set objects(value:Array) : void + { + this.§_-R5§(this.alternativa3d::_-Kq,alternativa3d::controller,value,alternativa3d::controller); + this.alternativa3d::_-Kq = value == null ? null : [].concat(value); + } + + override alternativa3d function setController(value:§_-cK§) : void + { + this.§_-R5§(this.alternativa3d::_-Kq,alternativa3d::controller,this.alternativa3d::_-Kq,value); + this.alternativa3d::controller = value; + } + + private function addObject(object:Object) : void + { + if(this.alternativa3d::_-Kq == null) + { + this.alternativa3d::_-Kq = [object]; + } + else + { + this.alternativa3d::_-Kq.push(object); + } + if(alternativa3d::controller != null) + { + alternativa3d::controller.alternativa3d::addObject(object); + } + } + + private function §_-R5§(oldObjects:Array, oldController:§_-cK§, newObjects:Array, newController:§_-cK§) : void + { + var i:int = 0; + var count:int = 0; + if(oldController != null && oldObjects != null) + { + for(i = 0,count = int(this.alternativa3d::_-Kq.length); i < count; i++) + { + oldController.alternativa3d::_-il(oldObjects[i]); + } + } + if(newController != null && newObjects != null) + { + for(i = 0,count = int(newObjects.length); i < count; i++) + { + newController.alternativa3d::addObject(newObjects[i]); + } + } + } + + public function §_-SR§() : void + { + var track:§_-Np§ = null; + var len:Number = NaN; + for(var i:int = 0; i < this.§_-Iv§; ) + { + track = this.§_-cT§[i]; + len = track.length; + if(len > this.length) + { + this.length = len; + } + i++; + } + } + + public function §_-nn§(track:§_-Np§) : §_-Np§ + { + if(track == null) + { + throw new Error("Track can not be null"); + } + var _loc2_:* = this.§_-Iv§++; + this.§_-cT§[_loc2_] = track; + if(track.length > this.length) + { + this.length = track.length; + } + return track; + } + + public function §_-kS§(track:§_-Np§) : §_-Np§ + { + var t:§_-Np§ = null; + var index:int = int(this.§_-cT§.indexOf(track)); + if(index < 0) + { + throw new ArgumentError("Track not found"); + } + --this.§_-Iv§; + for(var j:int = index + 1; index < this.§_-Iv§; ) + { + this.§_-cT§[index] = this.§_-cT§[j]; + index++; + j++; + } + this.§_-cT§.length = this.§_-Iv§; + this.length = 0; + for(var i:int = 0; i < this.§_-Iv§; ) + { + t = this.§_-cT§[i]; + if(t.length > this.length) + { + this.length = t.length; + } + i++; + } + return track; + } + + public function §_-QA§(index:int) : §_-Np§ + { + return this.§_-cT§[index]; + } + + public function get numTracks() : int + { + return this.§_-Iv§; + } + + override alternativa3d function update(interval:Number, weight:Number) : void + { + var i:int = 0; + var track:§_-Np§ = null; + var state:§_-SK§ = null; + var oldTime:Number = this.§_-qC§; + if(this.animated) + { + this.§_-qC§ += interval * speed; + if(this.loop) + { + if(this.§_-qC§ < 0) + { + this.§_-qC§ = 0; + } + else if(this.§_-qC§ >= this.length) + { + this.alternativa3d::_-D3(oldTime,this.length); + this.§_-qC§ = this.length <= 0 ? 0 : this.§_-qC§ % this.length; + this.alternativa3d::_-D3(0,this.§_-qC§); + } + else + { + this.alternativa3d::_-D3(oldTime,this.§_-qC§); + } + } + else + { + if(this.§_-qC§ < 0) + { + this.§_-qC§ = 0; + } + else if(this.§_-qC§ >= this.length) + { + this.§_-qC§ = this.length; + } + this.alternativa3d::_-D3(oldTime,this.§_-qC§); + } + } + if(weight > 0) + { + for(i = 0; i < this.§_-Iv§; ) + { + track = this.§_-cT§[i]; + if(track.object != null) + { + state = alternativa3d::controller.alternativa3d::getState(track.object); + if(state != null) + { + track.alternativa3d::blend(this.§_-qC§,weight,state); + } + } + i++; + } + } + } + + public function get time() : Number + { + return this.§_-qC§; + } + + public function set time(value:Number) : void + { + this.§_-qC§ = value; + } + + public function get §_-SA§() : Number + { + return this.length == 0 ? 0 : this.§_-qC§ / this.length; + } + + public function set §_-SA§(value:Number) : void + { + this.§_-qC§ = value * this.length; + } + + private function §_-8I§(object:Object) : int + { + if(object is §_-OX§) + { + return §_-OX§(object).numChildren; + } + return 0; + } + + private function getChildAt(object:Object, index:int) : Object + { + if(object is §_-OX§) + { + return §_-OX§(object).getChildAt(index); + } + return null; + } + + private function §_-Lo§(object:Object) : void + { + var child:Object = null; + for(var i:int = 0,var numChildren:int = this.§_-8I§(object); i < numChildren; i++) + { + child = this.getChildAt(object,i); + this.addObject(child); + this.§_-Lo§(child); + } + } + + public function §_-L6§(object:Object, includeDescendants:Boolean) : void + { + this.§_-R5§(this.alternativa3d::_-Kq,alternativa3d::controller,null,alternativa3d::controller); + this.alternativa3d::_-Kq = null; + this.addObject(object); + if(includeDescendants) + { + this.§_-Lo§(object); + } + } + + alternativa3d function §_-D3§(start:Number, end:Number) : void + { + for(var notify:§_-Re§ = this.§_-Ci§; notify != null; ) + { + if(notify.alternativa3d::_-qC > start) + { + if(notify.alternativa3d::_-qC > end) + { + notify = notify.alternativa3d::next; + continue; + } + notify.alternativa3d::_-XY = alternativa3d::controller.alternativa3d::nearestNotifyers; + alternativa3d::controller.alternativa3d::nearestNotifyers = notify; + } + notify = notify.alternativa3d::next; + } + } + + public function §_-Bn§(time:Number, name:String = null) : §_-Re§ + { + var n:§_-Re§ = null; + time = time <= 0 ? 0 : (time >= this.length ? this.length : time); + var notify:§_-Re§ = new §_-Re§(name); + notify.alternativa3d::_-qC = time; + if(this.§_-Ci§ == null) + { + this.§_-Ci§ = notify; + return notify; + } + if(this.§_-Ci§.alternativa3d::_-qC > time) + { + notify.alternativa3d::next = this.§_-Ci§; + this.§_-Ci§ = notify; + return notify; + } + n = this.§_-Ci§; + while(n.alternativa3d::next != null && n.alternativa3d::next.alternativa3d::_-qC <= time) + { + n = n.alternativa3d::next; + } + if(n.alternativa3d::next == null) + { + n.alternativa3d::next = notify; + } + else + { + notify.alternativa3d::next = n.alternativa3d::next; + n.alternativa3d::next = notify; + } + return notify; + } + + public function §_-VB§(offsetFromEnd:Number = 0, name:String = null) : §_-Re§ + { + return this.§_-Bn§(this.length - offsetFromEnd,name); + } + + public function §_-LH§(notify:§_-Re§) : §_-Re§ + { + var n:§_-Re§ = null; + if(this.§_-Ci§ != null) + { + if(this.§_-Ci§ == notify) + { + this.§_-Ci§ = this.§_-Ci§.alternativa3d::next; + return notify; + } + n = this.§_-Ci§; + while(n.alternativa3d::next != null && n.alternativa3d::next != notify) + { + n = n.alternativa3d::next; + } + if(n.alternativa3d::next == notify) + { + n.alternativa3d::next = notify.alternativa3d::next; + return notify; + } + } + throw new Error("Notify not found"); + } + + public function get §_-ZY§() : Vector.<§_-Re§> + { + var result:Vector.<§_-Re§> = new Vector.<§_-Re§>(); + var i:int = 0; + for(var notify:§_-Re§ = this.§_-Ci§; notify != null; notify = notify.alternativa3d::next) + { + result[i] = notify; + i++; + } + return result; + } + + public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-FA§ + { + var sliced:§_-FA§ = new §_-FA§(this.name); + sliced.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq); + for(var i:int = 0; i < this.§_-Iv§; i++) + { + sliced.§_-nn§(this.§_-cT§[i].slice(start,end)); + } + return sliced; + } + + public function clone() : §_-FA§ + { + var cloned:§_-FA§ = new §_-FA§(this.name); + cloned.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq); + for(var i:int = 0; i < this.§_-Iv§; i++) + { + cloned.§_-nn§(this.§_-cT§[i]); + } + cloned.length = this.length; + return cloned; + } + } +} + diff --git a/src/alternativa/tanks/game/entities/map/MapMaterial.as b/src/?_-RG?/?_-pE?.as similarity index 51% rename from src/alternativa/tanks/game/entities/map/MapMaterial.as rename to src/?_-RG?/?_-pE?.as index 5ce84d4..e249fc5 100644 --- a/src/alternativa/tanks/game/entities/map/MapMaterial.as +++ b/src/?_-RG?/?_-pE?.as @@ -1,5 +1,22 @@ -package alternativa.tanks.game.entities.map +package §_-RG§ { + import §_-1z§.§_-b1§; + import §_-1z§.§_-gA§; + import §_-1z§.§_-pi§; + import §_-8D§.§_-Jo§; + import §_-8D§.§_-OX§; + import §_-8D§.§_-QF§; + import §_-8D§.§_-WR§; + import §_-8D§.§_-be§; + import §_-8D§.§_-d6§; + import §_-8D§.§_-jw§; + import §_-Ex§.§_-a2§; + import §_-M8§.§_-5§; + import §_-M8§.§_-Xk§; + import §_-M8§.§_-hR§; + import §_-Vh§.§_-Pt§; + import §_-Vh§.§_-b9§; + import §_-Z2§.§_-ZC§; import alternativa.engine3d.alternativa3d; import avmplus.getQualifiedClassName; import flash.display.BitmapData; @@ -8,29 +25,12 @@ package alternativa.tanks.game.entities.map import flash.display3D.VertexBuffer3D; import flash.utils.Dictionary; import flash.utils.getDefinitionByName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_23.name_103; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; - import package_4.name_28; use namespace alternativa3d; - public class MapMaterial extends class_4 + public class §_-pE§ extends §_-b9§ { - private static var fogTexture:name_129; + private static var fogTexture:§_-pi§; public static const DISABLED:int = 0; @@ -54,43 +54,43 @@ package alternativa.tanks.game.entities.map private static var _programs:Dictionary = new Dictionary(); - private static const getLightMapProcedure:name_114 = name_114.name_140(["#v0=vUV1","#s0=sLightMap","tex o0, v0, s0 <2d,repeat,linear,mipnone>"],"getLightMap"); + private static const getLightMapProcedure:§_-Xk§ = §_-Xk§.§_-En§(["#v0=vUV1","#s0=sLightMap","tex o0, v0, s0 <2d,repeat,linear,mipnone>"],"getLightMap"); - private static const minShadowProcedure:name_114 = name_114.name_140(["min o0, o0, i0"],"minShadowProc"); + private static const minShadowProcedure:§_-Xk§ = §_-Xk§.§_-En§(["min o0, o0, i0"],"minShadowProc"); - private static const mulShadowProcedure:name_114 = name_114.name_140(["mul o0, o0, i0"],"mulShadowProc"); + private static const mulShadowProcedure:§_-Xk§ = §_-Xk§.§_-En§(["mul o0, o0, i0"],"mulShadowProc"); - private static const applyLightMapProcedure:name_114 = name_114.name_140(["add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","mov o0, i0"],"applyLightMap"); + private static const applyLightMapProcedure:§_-Xk§ = §_-Xk§.§_-En§(["add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","mov o0, i0"],"applyLightMap"); - private static const _passLightMapUVProcedure:name_114 = new name_114(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUV"); + private static const _passLightMapUVProcedure:§_-Xk§ = new §_-Xk§(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUV"); - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + private static const passSimpleFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - private static const applyLightMapAndSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapAndSimpleFog"); + private static const applyLightMapAndSimpleFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapAndSimpleFog"); - private static const passAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"projAndPassAdvancedFogConst"); + private static const passAdvancedFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"projAndPassAdvancedFogConst"); - private static const applyLightMapAndAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapAndAdvancedFog"); + private static const applyLightMapAndAdvancedFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapAndAdvancedFog"); - alternativa3d static const outputOpacity:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","tex t1, v0, s1 <2d, linear,repeat, miplinear>","mov t0.w, t1.x","sub t1.x, t1.x, c0.w","kil t1.x","mov o0, t0"],"samplerSetProcedureOpacity"); + alternativa3d static const outputOpacity:§_-Xk§ = new §_-Xk§(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","tex t1, v0, s1 <2d, linear,repeat, miplinear>","mov t0.w, t1.x","sub t1.x, t1.x, c0.w","kil t1.x","mov o0, t0"],"samplerSetProcedureOpacity"); - private static const passUVProcedure:name_114 = new name_114(["#v0=vUV","#a0=aUV","mov v0, a0"],"passUVProcedure"); + private static const passUVProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#a0=aUV","mov v0, a0"],"passUVProcedure"); - private static const diffuseProcedure:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","mov t0.w, c0.w","mov o0, t0"],"diffuseProcedure"); + private static const diffuseProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","mov t0.w, c0.w","mov o0, t0"],"diffuseProcedure"); - private static const diffuseOpacityProcedure:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","tex t1, v0, s1 <2d, linear,repeat, miplinear>","mov t0.w, t1.x","mul t0.w, t0.w, c0.w","mov o0, t0"],"diffuseOpacityProcedure"); + private static const diffuseOpacityProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","tex t1, v0, s1 <2d, linear,repeat, miplinear>","mov t0.w, t1.x","mul t0.w, t0.w, c0.w","mov o0, t0"],"diffuseOpacityProcedure"); - public var diffuseMap:name_129; + public var diffuseMap:§_-pi§; - public var lightMap:name_129; + public var lightMap:§_-pi§; public var lightMapChannel:uint = 0; - public var opacityMap:name_129; + public var opacityMap:§_-pi§; public var alpha:Number = 1; - public function MapMaterial(diffuseMap:name_129, lightMap:name_129, lightMapChannel:uint = 0, opacityMap:name_129 = null) + public function §_-pE§(diffuseMap:§_-pi§, lightMap:§_-pi§, lightMapChannel:uint = 0, opacityMap:§_-pi§ = null) { super(); this.diffuseMap = diffuseMap; @@ -99,7 +99,7 @@ package alternativa.tanks.game.entities.map this.opacityMap = opacityMap; } - public static function method_33(texture:name_129) : void + public static function §_-RX§(texture:§_-pi§) : void { fogTexture = texture; } @@ -107,112 +107,112 @@ package alternativa.tanks.game.entities.map override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.diffuseMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) + if(this.diffuseMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) { resources[this.diffuseMap] = true; } - if(this.lightMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) + if(this.lightMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) { resources[this.lightMap] = true; } - if(this.opacityMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) + if(this.opacityMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) { resources[this.opacityMap] = true; } } - private function setupProgram(targetObject:name_78, shadows:Vector., numShadows:int) : MapMaterialProgram + private function final(targetObject:§_-OX§, shadows:Vector.<§_-ZC§>, numShadows:int) : MapMaterialProgram { var i:int = 0; - var renderer:name_103 = null; - var sProc:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); + var renderer:§_-ZC§ = null; + var sProc:§_-Xk§ = null; + var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::_-di(targetObject.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(passUVProcedure); - vertexLinker.name_123(_passLightMapUVProcedure); + vertexLinker.§_-on§(alternativa3d::_projectProcedure); + vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar); + vertexLinker.§_-on§(passUVProcedure); + vertexLinker.§_-on§(_passLightMapUVProcedure); if(fogMode == SIMPLE) { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); + vertexLinker.§_-on§(passSimpleFogConstProcedure); + vertexLinker.§_-FS§(passSimpleFogConstProcedure,positionVar); } else if(fogMode == ADVANCED) { - vertexLinker.name_120("tProjected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.name_123(passAdvancedFogConstProcedure); - vertexLinker.name_118(passAdvancedFogConstProcedure,positionVar,"tProjected"); + vertexLinker.§_-LU§("tProjected"); + vertexLinker.§_-qd§(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.§_-on§(passAdvancedFogConstProcedure); + vertexLinker.§_-FS§(passAdvancedFogConstProcedure,positionVar,"tProjected"); } - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - var procedure:name_114 = this.opacityMap == null ? diffuseProcedure : diffuseOpacityProcedure; - fragmentLinker.name_120("tOutColor"); - fragmentLinker.name_123(procedure); - fragmentLinker.name_125(procedure,"tOutColor"); + var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT); + var procedure:§_-Xk§ = this.opacityMap == null ? diffuseProcedure : diffuseOpacityProcedure; + fragmentLinker.§_-LU§("tOutColor"); + fragmentLinker.§_-on§(procedure); + fragmentLinker.§_-qd§(procedure,"tOutColor"); if(shadows != null) { - fragmentLinker.name_120("tLight"); - fragmentLinker.name_123(getLightMapProcedure); - fragmentLinker.name_125(getLightMapProcedure,"tLight"); - fragmentLinker.name_120("tShadow"); + fragmentLinker.§_-LU§("tLight"); + fragmentLinker.§_-on§(getLightMapProcedure); + fragmentLinker.§_-qd§(getLightMapProcedure,"tLight"); + fragmentLinker.§_-LU§("tShadow"); for(i = 0; i < numShadows; i++) { renderer = shadows[i]; - vertexLinker.name_123(renderer.getVShader(i)); + vertexLinker.§_-on§(renderer.getVShader(i)); sProc = renderer.getFShader(i); - fragmentLinker.name_123(sProc); - fragmentLinker.name_125(sProc,"tShadow"); - if(renderer.alternativa3d::name_372) + fragmentLinker.§_-on§(sProc); + fragmentLinker.§_-qd§(sProc,"tShadow"); + if(renderer.alternativa3d::_-cu) { - fragmentLinker.name_123(mulShadowProcedure); - fragmentLinker.name_118(mulShadowProcedure,"tShadow"); - fragmentLinker.name_125(mulShadowProcedure,"tLight"); + fragmentLinker.§_-on§(mulShadowProcedure); + fragmentLinker.§_-FS§(mulShadowProcedure,"tShadow"); + fragmentLinker.§_-qd§(mulShadowProcedure,"tLight"); } else { - fragmentLinker.name_123(minShadowProcedure); - fragmentLinker.name_118(minShadowProcedure,"tShadow"); - fragmentLinker.name_125(minShadowProcedure,"tLight"); + fragmentLinker.§_-on§(minShadowProcedure); + fragmentLinker.§_-FS§(minShadowProcedure,"tShadow"); + fragmentLinker.§_-qd§(minShadowProcedure,"tLight"); } } } else { - fragmentLinker.name_120("tLight"); - fragmentLinker.name_123(getLightMapProcedure); - fragmentLinker.name_125(getLightMapProcedure,"tLight"); + fragmentLinker.§_-LU§("tLight"); + fragmentLinker.§_-on§(getLightMapProcedure); + fragmentLinker.§_-qd§(getLightMapProcedure,"tLight"); } if(fogMode == SIMPLE) { - fragmentLinker.name_123(applyLightMapAndSimpleFogProcedure); - fragmentLinker.name_118(applyLightMapAndSimpleFogProcedure,"tOutColor","tLight"); + fragmentLinker.§_-on§(applyLightMapAndSimpleFogProcedure); + fragmentLinker.§_-FS§(applyLightMapAndSimpleFogProcedure,"tOutColor","tLight"); } else if(fogMode == ADVANCED) { - fragmentLinker.name_123(applyLightMapAndAdvancedFogProcedure); - fragmentLinker.name_118(applyLightMapAndAdvancedFogProcedure,"tOutColor","tLight"); + fragmentLinker.§_-on§(applyLightMapAndAdvancedFogProcedure); + fragmentLinker.§_-FS§(applyLightMapAndAdvancedFogProcedure,"tOutColor","tLight"); } else { - fragmentLinker.name_123(applyLightMapProcedure); - fragmentLinker.name_118(applyLightMapProcedure,"tOutColor","tLight"); + fragmentLinker.§_-on§(applyLightMapProcedure); + fragmentLinker.§_-FS§(applyLightMapProcedure,"tOutColor","tLight"); } - fragmentLinker.name_133(vertexLinker); + fragmentLinker.§_-NA§(vertexLinker); return new MapMaterialProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:§_-be§, surface:§_-a2§, geometry:§_-gA§, lights:Vector.<§_-Jo§>, lightsLength:int, objectRenderPriority:int = -1) : void { var i:int = 0; - var renderer:name_103 = null; - var lm:name_139 = null; + var renderer:§_-ZC§ = null; + var lm:§_-jw§ = null; var dist:Number = NaN; - var cLocal:name_139 = null; + var cLocal:§_-jw§ = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -233,14 +233,14 @@ package alternativa.tanks.game.entities.map { return; } - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var lightMapUVBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[this.lightMapChannel]); + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]); + var lightMapUVBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[this.lightMapChannel]); if(positionBuffer == null || uvBuffer == null || lightMapUVBuffer == null) { return; } - var object:name_78 = surface.alternativa3d::object; + var object:§_-OX§ = surface.alternativa3d::object; var optionsPrograms:Vector. = _programs[object.alternativa3d::transformProcedure]; if(optionsPrograms == null) { @@ -257,17 +257,17 @@ package alternativa.tanks.game.entities.map var program:MapMaterialProgram = optionsPrograms[index]; if(program == null) { - program = this.setupProgram(object,object.alternativa3d::shadowRenderers,numShadows); + program = this.final(object,object.alternativa3d::shadowRenderers,numShadows); program.upload(camera.alternativa3d::context3D); optionsPrograms[index] = program; } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - drawUnit.alternativa3d::setVertexBufferAt(program.aUV1,lightMapUVBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[this.lightMapChannel]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[this.lightMapChannel]]); + var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.aUV1,lightMapUVBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[this.lightMapChannel]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[this.lightMapChannel]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_134(program.cAlpha,0,0,0,this.alpha); + drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::_-Ry(program.cAlpha,0,0,0,this.alpha); drawUnit.alternativa3d::setTextureAt(program.sTexture,this.diffuseMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(program.sLightMap,this.lightMap.alternativa3d::_texture); if(this.opacityMap != null) @@ -284,12 +284,12 @@ package alternativa.tanks.game.entities.map { lm = object.alternativa3d::localToCameraTransform; dist = fogFar - fogNear; - drawUnit.alternativa3d::name_144(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); - drawUnit.alternativa3d::name_134(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity); + drawUnit.alternativa3d:: if(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::_-Ry(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity); } if(fogMode == SIMPLE) { - drawUnit.alternativa3d::name_134(program.cFogColor,fogColorR,fogColorG,fogColorB); + drawUnit.alternativa3d::_-Ry(program.cFogColor,fogColorR,fogColorG,fogColorB); } if(fogMode == ADVANCED) { @@ -300,7 +300,7 @@ package alternativa.tanks.game.entities.map { bmd.setPixel(i,0,i / 32 * 255 << 16); } - fogTexture = new name_93(bmd); + fogTexture = new §_-b1§(bmd); fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -323,27 +323,27 @@ package alternativa.tanks.game.entities.map rightY /= len; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.cFogConsts,0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::_-Ry(program.cFogConsts,0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.sFogTexture,fogTexture.alternativa3d::_texture); } if(this.opacityMap != null || this.alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.TRANSPARENT_SORT)); } else { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.OPAQUE)); } } } } -import package_30.name_121; -import package_4.name_127; +import §_-M8§.§_-hR§; +import §_-Vh§.§_-RB§; -class MapMaterialProgram extends name_127 +class MapMaterialProgram extends §_-RB§ { public var aPosition:int; @@ -371,21 +371,21 @@ class MapMaterialProgram extends name_127 public var sFogTexture:int; - public function MapMaterialProgram(vertex:name_121, fragment:name_121) + public function MapMaterialProgram(vertex:§_-hR§, fragment:§_-hR§) { super(vertex,fragment); - this.aPosition = vertex.name_207("aPosition"); - this.aUV = vertex.name_207("aUV"); - this.aUV1 = vertex.name_207("aUV1"); - this.cProjMatrix = vertex.name_207("cProjMatrix"); - this.cAlpha = fragment.name_207("cAlpha"); - this.sTexture = fragment.name_207("sTexture"); - this.sLightMap = fragment.name_207("sLightMap"); - this.sOpacity = fragment.name_207("sOpacity"); - this.cFogSpace = vertex.name_207("cFogSpace"); - this.cFogRange = fragment.name_207("cFogRange"); - this.cFogColor = fragment.name_207("cFogColor"); - this.cFogConsts = fragment.name_207("cFogConsts"); - this.sFogTexture = fragment.name_207("sFogTexture"); + this.aPosition = vertex.§_-Dj§("aPosition"); + this.aUV = vertex.§_-Dj§("aUV"); + this.aUV1 = vertex.§_-Dj§("aUV1"); + this.cProjMatrix = vertex.§_-Dj§("cProjMatrix"); + this.cAlpha = fragment.§_-Dj§("cAlpha"); + this.sTexture = fragment.§_-Dj§("sTexture"); + this.sLightMap = fragment.§_-Dj§("sLightMap"); + this.sOpacity = fragment.§_-Dj§("sOpacity"); + this.cFogSpace = vertex.§_-Dj§("cFogSpace"); + this.cFogRange = fragment.§_-Dj§("cFogRange"); + this.cFogColor = fragment.§_-Dj§("cFogColor"); + this.cFogConsts = fragment.§_-Dj§("cFogConsts"); + this.sFogTexture = fragment.§_-Dj§("sFogTexture"); } } diff --git a/src/?_-RG?/A3DMapBuilder.as b/src/?_-RG?/A3DMapBuilder.as new file mode 100644 index 0000000..f685bd4 --- /dev/null +++ b/src/?_-RG?/A3DMapBuilder.as @@ -0,0 +1,444 @@ +package §_-RG§ +{ + import §_-1e§.§_-Nh§; + import §_-1z§.§_-KJ§; + import §_-1z§.§_-VF§; + import §_-1z§.§_-b1§; + import §_-1z§.§_-n4§; + import §_-1z§.§_-pi§; + import §_-8D§.§_-Jo§; + import §_-8D§.§_-OX§; + import §_-Ex§.§_-8f§; + import §_-Ex§.§_-U2§; + import §_-Ex§.§_-a2§; + import §_-O5§.§_-Hk§; + import §_-V-§.§_-Q4§; + import §_-V-§.§_-Ui§; + import §_-Vh§.§_-18§; + import §_-Yj§.§_-4X§; + import §_-am§.§_-Fh§; + import §_-am§.§_-Jd§; + import §_-am§.§_-qn§; + import §_-fT§.§_-HM§; + import alternativa.engine3d.alternativa3d; + import flash.display.BitmapData; + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.utils.ByteArray; + + use namespace alternativa3d; + + public class A3DMapBuilder extends EventDispatcher + { + public static const MAIN_FILE:String = "main.a3d"; + + public static const ADDITIONAL_FILES_START:String = "part"; + + public static const TREES_FILE:String = "trees.a3d"; + + public static const MARKET_FILE:String = "market.a3d"; + + public static const PHYSICS_FILE:String = "physics.a3d"; + + public static const BEAMS_FILE:String = "beams.a3d"; + + public static const LIGHTS_FILE:String = "lights.dae"; + + private static const COLLISION_MASK:int = 255; + + private static var fakeEmissionTextureResource:§_-b1§ = new §_-b1§(new BitmapData(1,1,false,8355711)); + + private static var fakeBumpTextureResource:§_-b1§ = new §_-b1§(new BitmapData(1,1,false,8355839)); + + private var §_-Kq§:Vector.<§_-OX§> = new Vector.<§_-OX§>(); + + private var §_-73§:Vector.<§_-Nh§>; + + private var §_-9k§:Vector.<§_-Jo§>; + + private var §_-Gv§:Vector.<§_-8f§> = new Vector.<§_-8f§>(); + + private var §_-ah§:§_-Ui§; + + private var mapFiles:§_-Hk§; + + private var collector:Vector.<§_-OX§>; + + private var §_-TE§:§_-VF§ = new §_-VF§(new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680)); + + public function A3DMapBuilder() + { + super(); + } + + public function get objects() : Vector.<§_-OX§> + { + return this.§_-Kq§; + } + + public function get collisionPrimitives() : Vector.<§_-Nh§> + { + return this.§_-73§; + } + + public function get lights() : Vector.<§_-Jo§> + { + return this.§_-9k§; + } + + public function get decals() : Vector.<§_-8f§> + { + return this.§_-Gv§; + } + + public function §_-Q7§(mapFiles:§_-Hk§) : void + { + var geometryFileName:String = null; + this.mapFiles = mapFiles; + var mapGeometryFiles:Vector. = this.§_-VG§(mapFiles); + this.collector = new Vector.<§_-OX§>(); + this.§_-ah§ = new §_-Ui§(); + for each(geometryFileName in mapGeometryFiles) + { + this.§_-ah§.addTask(new GeometryBuildTask(mapFiles.§_-HG§(geometryFileName),this.collector)); + } + this.§_-ah§.addEventListener(Event.COMPLETE,this.§_-OY§); + this.§_-ah§.run(); + } + + private function §_-OY§(event:Event) : void + { + var surface:§_-a2§ = null; + var object:§_-OX§ = null; + var mesh:§_-U2§ = null; + var meshName:String = null; + var decal:§_-8f§ = null; + var resourceCache:Object = {}; + for each(object in this.collector) + { + mesh = object as §_-U2§; + if(mesh != null) + { + meshName = mesh.name.toLowerCase(); + if(meshName.indexOf("decal") >= 0) + { + decal = new §_-8f§(1.5); + decal.name = meshName; + decal.useShadow = true; + decal.geometry = mesh.geometry; + decal.alternativa3d::_-eW = mesh.alternativa3d::_-eW; + decal.alternativa3d::_-Oy = mesh.alternativa3d::_-Oy; + for each(surface in decal.alternativa3d::_-eW) + { + surface.alternativa3d::object = decal; + } + decal.boundBox = mesh.boundBox; + decal.matrix = mesh.matrix; + mesh = decal; + this.§_-Gv§.push(decal); + } + mesh.calculateBoundBox(); + this.§_-Gj§(mesh,resourceCache); + this.§_-Kq§.push(mesh); + } + } + this.collector = null; + this.§_-ah§ = null; + this.§_-gU§(this.mapFiles.§_-HG§(TREES_FILE)); + this.§_-hj§(this.mapFiles.§_-HG§(MARKET_FILE)); + this.§_-1o§(this.mapFiles.§_-HG§(BEAMS_FILE)); + this.§_-F0§(this.mapFiles.§_-HG§(LIGHTS_FILE)); + this.§_-et§(this.mapFiles.§_-HG§(PHYSICS_FILE)); + dispatchEvent(new Event(Event.COMPLETE)); + } + + private function §_-hj§(data:ByteArray) : void + { + var parser:§_-Fh§ = null; + var resourceCache:Object = null; + var object:§_-OX§ = null; + var mesh:§_-U2§ = null; + var i:int = 0; + var surface:§_-a2§ = null; + var material:§_-qn§ = null; + var diffName:String = null; + var diffuse:§_-pi§ = null; + var bump:§_-pi§ = null; + var opacity:§_-pi§ = null; + var emission:§_-pi§ = null; + var reflection:§_-pi§ = null; + var envMaterial:§_-18§ = null; + if(data != null) + { + parser = new §_-Fh§(); + parser.§_-Om§(data); + resourceCache = {}; + for each(object in parser.objects) + { + mesh = object as §_-U2§; + if(mesh != null) + { + for(i = 0; i < mesh.§_-hT§; ) + { + surface = mesh.§_-Hq§(i); + if(surface.material != null) + { + material = §_-qn§(surface.material); + diffName = §_-n4§(material.textures["diffuse"]).url; + diffuse = this.§_-kb§(material.textures["diffuse"],resourceCache,this.mapFiles); + bump = this.§_-kb§(material.textures["bump"],resourceCache,this.mapFiles); + opacity = this.§_-kb§(material.textures["transparent"],resourceCache,this.mapFiles); + emission = this.§_-kb§(material.textures["emission"],resourceCache,this.mapFiles); + if(diffName.indexOf("vetrino01") >= 0) + { + reflection = this.§_-kb§(new §_-n4§("vetrino_rfl.atf"),resourceCache,this.mapFiles); + envMaterial = new §_-18§(diffuse,this.§_-TE§,null,reflection,emission,opacity); + envMaterial.reflection = 0.4; + surface.material = envMaterial; + } + else + { + surface.material = new §_-pE§(diffuse,emission,1,opacity); + } + } + i++; + } + this.§_-Kq§.push(mesh); + } + } + } + } + + private function §_-Gj§(mesh:§_-U2§, resourceCache:Object) : void + { + var surface:§_-a2§ = null; + var parserMaterial:§_-qn§ = null; + var diffuseTextureResource:§_-pi§ = null; + var emissionTextureResource:§_-pi§ = null; + var opacityTextureResource:§_-pi§ = null; + var material:§_-pE§ = null; + for each(surface in mesh.alternativa3d::_-eW) + { + parserMaterial = surface.material as §_-qn§; + if(parserMaterial != null) + { + diffuseTextureResource = this.§_-kb§(parserMaterial.textures["diffuse"],resourceCache,this.mapFiles); + emissionTextureResource = this.§_-kb§(parserMaterial.textures["emission"],resourceCache,this.mapFiles); + opacityTextureResource = this.§_-kb§(parserMaterial.textures["transparent"],resourceCache,this.mapFiles); + if(emissionTextureResource == null) + { + material = new §_-pE§(diffuseTextureResource,fakeEmissionTextureResource,0,opacityTextureResource); + } + else + { + material = new §_-pE§(diffuseTextureResource,emissionTextureResource,1,opacityTextureResource); + } + surface.material = material; + } + } + } + + private function §_-VG§(mapFiles:§_-Hk§) : Vector. + { + var name:String = null; + var names:Vector. = new Vector.(); + names.push(MAIN_FILE); + for(name in mapFiles.data) + { + if(name.indexOf(ADDITIONAL_FILES_START) == 0 && name.indexOf(".a3d") > 0) + { + names.push(name); + } + } + return names; + } + + private function §_-gU§(data:ByteArray) : void + { + var parser:§_-Fh§ = null; + var resourceCache:Object = null; + var object:§_-OX§ = null; + var mesh:§_-U2§ = null; + var i:int = 0; + var surface:§_-a2§ = null; + var material:§_-qn§ = null; + var diffuse:§_-pi§ = null; + var bump:§_-pi§ = null; + var opacity:§_-pi§ = null; + var trMaterial:§_-4X§ = null; + if(data != null) + { + parser = new §_-Fh§(); + parser.§_-Om§(data); + resourceCache = {}; + for each(object in parser.objects) + { + mesh = object as §_-U2§; + if(mesh != null) + { + for(i = 0; i < mesh.§_-hT§; ) + { + surface = mesh.§_-Hq§(i); + if(surface.material != null) + { + material = §_-qn§(surface.material); + diffuse = this.§_-kb§(material.textures["diffuse"],resourceCache,this.mapFiles); + bump = this.§_-kb§(material.textures["bump"],resourceCache,this.mapFiles); + opacity = this.§_-kb§(material.textures["transparent"],resourceCache,this.mapFiles); + trMaterial = new §_-4X§(diffuse,fakeBumpTextureResource,null,null,opacity); + trMaterial.§_-kj§ = 0; + trMaterial.alphaThreshold = 0.2; + surface.material = trMaterial; + } + i++; + } + this.§_-Kq§.push(mesh); + } + } + } + } + + private function §_-1o§(data:ByteArray) : void + { + var object:§_-OX§ = null; + var mesh:§_-U2§ = null; + var i:int = 0; + var surface:§_-a2§ = null; + var material:§_-qn§ = null; + var diffuse:§_-pi§ = null; + var opacity:§_-pi§ = null; + if(data == null) + { + return; + } + var parser:§_-Fh§ = new §_-Fh§(); + parser.§_-Om§(data); + var resourceCache:Object = {}; + for each(object in parser.objects) + { + mesh = object as §_-U2§; + if(mesh != null) + { + for(i = 0; i < mesh.§_-hT§; ) + { + surface = mesh.§_-Hq§(i); + if(surface.material != null) + { + material = §_-qn§(surface.material); + diffuse = this.§_-kb§(material.textures["diffuse"],resourceCache,this.mapFiles); + opacity = this.§_-kb§(material.textures["transparent"],resourceCache,this.mapFiles); + surface.material = new §_-Au§(opacity); + } + i++; + } + this.§_-Kq§.push(mesh); + } + } + } + + private function §_-F0§(lightsData:ByteArray) : void + { + var parserCollada:§_-Jd§ = null; + var numLights:uint = 0; + var i:int = 0; + if(lightsData != null) + { + parserCollada = new §_-Jd§(); + parserCollada.§_-Om§(XML(lightsData.toString())); + numLights = uint(parserCollada.lights.length); + this.§_-9k§ = new Vector.<§_-Jo§>(numLights); + for(i = 0; i < numLights; i++) + { + this.§_-9k§[i] = parserCollada.lights[i]; + §_-Jo§(this.§_-9k§[i]).alternativa3d::removeFromParent(); + } + } + } + + private function §_-kb§(fileTextureResource:§_-n4§, resourceCache:Object, mapFiles:§_-Hk§) : §_-KJ§ + { + var textureName:String = null; + var resource:§_-KJ§ = null; + var textureData:ByteArray = null; + if(fileTextureResource != null && Boolean(fileTextureResource.url)) + { + textureName = fileTextureResource.url.toLowerCase(); + textureName = textureName.replace(".png",".atf"); + textureName = textureName.replace(".jpg",".atf"); + if(mapFiles.§_-HG§(textureName) != null) + { + resource = resourceCache[textureName]; + if(resource == null) + { + textureData = mapFiles.§_-HG§(textureName); + resource = new §_-KJ§(textureData); + resourceCache[textureName] = resource; + } + return resource; + } + trace("[WARN] texture not found:",fileTextureResource.url.toLowerCase()); + } + return null; + } + + private function §_-et§(a3dData:ByteArray) : void + { + var object:§_-OX§ = null; + var objectName:String = null; + var parserA3D:§_-Fh§ = new §_-Fh§(); + parserA3D.§_-Om§(a3dData); + this.§_-73§ = new Vector.<§_-Nh§>(); + for each(object in parserA3D.objects) + { + if(object is §_-U2§) + { + objectName = object.name.toLowerCase(); + if(objectName.indexOf("tri") == 0) + { + §_-Q4§.§_-eU§(§_-U2§(object),this.§_-73§,§_-HM§.STATIC,COLLISION_MASK); + } + else if(objectName.indexOf("box") == 0) + { + §_-Q4§.§_-MS§(§_-U2§(object),this.§_-73§,§_-HM§.STATIC,COLLISION_MASK); + } + else if(objectName.indexOf("plane") == 0) + { + §_-Q4§.§_-4D§(§_-U2§(object),this.§_-73§,§_-HM§.STATIC,COLLISION_MASK); + } + } + } + } + } +} + +import §_-8D§.§_-OX§; +import §_-V-§.§_-h5§; +import §_-am§.§_-Fh§; +import flash.utils.ByteArray; +import flash.utils.setTimeout; + +class GeometryBuildTask extends §_-h5§ +{ + private var data:ByteArray; + + private var collector:Vector.<§_-OX§>; + + public function GeometryBuildTask(data:ByteArray, collector:Vector.<§_-OX§>) + { + super(); + this.data = data; + this.collector = collector; + } + + override public function run() : void + { + var object:§_-OX§ = null; + var parser:§_-Fh§ = new §_-Fh§(); + parser.§_-Om§(this.data); + for each(object in parser.objects) + { + this.collector.push(object); + } + setTimeout(§_-3Z§,0); + } +} diff --git a/src/alternativa/osgi/OSGi.as b/src/?_-Uy?/?_-oP?.as similarity index 65% rename from src/alternativa/osgi/OSGi.as rename to src/?_-Uy?/?_-oP?.as index 8c6f36a..f10a12c 100644 --- a/src/alternativa/osgi/OSGi.as +++ b/src/?_-Uy?/?_-oP?.as @@ -1,26 +1,26 @@ -package alternativa.osgi +package §_-Uy§ { + import §_-HW§.§_-C§; + import §_-HW§.§_-pF§; + import §_-MU§.§_-bV§; import flash.utils.Dictionary; import flash.utils.getQualifiedClassName; - import package_31.class_6; - import package_31.name_202; - import package_39.name_203; - public class OSGi + public class §_-oP§ { - public static var clientLog:name_203; + public static var clientLog:§_-bV§; - private static var instance:OSGi; + private static var instance:§_-oP§; private static const LOG_CHANNEL:String = "osgi"; - private var var_52:Object = {}; + private var §_-2M§:Object = {}; private var services:Dictionary = new Dictionary(); - private var var_51:Dictionary = new Dictionary(); + private var §_-dp§:Dictionary = new Dictionary(); - public function OSGi() + public function §_-oP§() { super(); if(instance == null) @@ -31,21 +31,21 @@ package alternativa.osgi throw new Error("Only one instance of OSGi class is allowed"); } - public static function name_8() : OSGi + public static function §_-nQ§() : §_-oP§ { return instance; } - public function method_121(bundleDescriptor:name_202) : void + public function §_-XK§(bundleDescriptor:§_-C§) : void { - var activators:Vector. = null; + var activators:Vector.<§_-pF§> = null; var i:int = 0; - var activator:class_6 = null; - if(this.var_52[bundleDescriptor.name] == null) + var activator:§_-pF§ = null; + if(this.§_-2M§[bundleDescriptor.name] == null) { clientLog.log(LOG_CHANNEL,"Installing bundle %1",bundleDescriptor.name); clientLog.log(LOG_CHANNEL,"Bundle activators: %1",bundleDescriptor.activators); - this.var_52[bundleDescriptor.name] = bundleDescriptor; + this.§_-2M§[bundleDescriptor.name] = bundleDescriptor; activators = bundleDescriptor.activators; if(activators != null) { @@ -62,20 +62,20 @@ package alternativa.osgi throw new Error("Bundle " + bundleDescriptor.name + " is already installed"); } - public function method_120(bundleName:String) : void + public function §_-PX§(bundleName:String) : void { var i:int = 0; - var activator:class_6 = null; + var activator:§_-pF§ = null; if(bundleName == null) { throw new ArgumentError("Bundle name is null"); } - var bundleDescriptor:name_202 = this.var_52[bundleName]; + var bundleDescriptor:§_-C§ = this.§_-2M§[bundleName]; if(bundleDescriptor == null) { throw new Error("Bundle " + bundleName + " not found"); } - var activators:Vector. = bundleDescriptor.activators; + var activators:Vector.<§_-pF§> = bundleDescriptor.activators; if(activators != null) { for(i = 0; i < activators.length; i++) @@ -85,20 +85,20 @@ package alternativa.osgi activator.stop(this); } } - delete this.var_52[bundleName]; + delete this.§_-2M§[bundleName]; clientLog.log(LOG_CHANNEL,"Bundle " + bundleName + " has been uninstalled"); } - public function method_116(serviceInterface:Class, serviceImplementation:Object) : void + public function §_-g2§(serviceInterface:Class, serviceImplementation:Object) : void { var injectPoints:Vector. = null; var ip:InjectPoint = null; if(this.services[serviceInterface] == null) { this.services[serviceInterface] = serviceImplementation; - if(this.var_51[serviceInterface] != null) + if(this.§_-dp§[serviceInterface] != null) { - injectPoints = this.var_51[serviceInterface]; + injectPoints = this.§_-dp§[serviceInterface]; for each(ip in injectPoints) { ip.injectOwner[ip.injectFieldName] = serviceImplementation; @@ -111,53 +111,53 @@ package alternativa.osgi throw new Error("Service " + serviceInterface + " is already registered"); } - public function method_118(serviceInterfaces:Array, serviceImplementation:Object) : void + public function §_-pC§(serviceInterfaces:Array, serviceImplementation:Object) : void { var serviceInterface:Class = null; for each(serviceInterface in serviceInterfaces) { - this.method_116(serviceInterface,serviceImplementation); + this.§_-g2§(serviceInterface,serviceImplementation); } } - public function method_117(serviceInterface:Class) : void + public function §_-5n§(serviceInterface:Class) : void { if(this.services[serviceInterface] != null) { delete this.services[serviceInterface]; - delete this.var_51[serviceInterface]; + delete this.§_-dp§[serviceInterface]; clientLog.log(LOG_CHANNEL,"Service has been unregistered: " + serviceInterface); } } - public function name_30(serviceInterface:Class) : Object + public function §_-N6§(serviceInterface:Class) : Object { return this.services[serviceInterface]; } - public function name_161(serviceInterface:Class, injectFieldOwner:Class, injectFieldName:String) : void + public function §_-oK§(serviceInterface:Class, injectFieldOwner:Class, injectFieldName:String) : void { - if(!this.var_51[serviceInterface]) + if(!this.§_-dp§[serviceInterface]) { - this.var_51[serviceInterface] = new Vector.(); + this.§_-dp§[serviceInterface] = new Vector.(); } - this.var_51[serviceInterface].push(new InjectPoint(injectFieldOwner,injectFieldName)); + this.§_-dp§[serviceInterface].push(new InjectPoint(injectFieldOwner,injectFieldName)); injectFieldOwner[injectFieldName] = this.services[serviceInterface]; clientLog.log(LOG_CHANNEL,"Inject %1 have been processed. Current value is %2",injectFieldOwner + "." + injectFieldName,this.services[serviceInterface]); } - public function get method_122() : Vector. + public function get §_-01§() : Vector.<§_-C§> { - var bundleDescriptor:name_202 = null; - var list:Vector. = new Vector.(); - for each(bundleDescriptor in this.var_52) + var bundleDescriptor:§_-C§ = null; + var list:Vector.<§_-C§> = new Vector.<§_-C§>(); + for each(bundleDescriptor in this.§_-2M§) { list.push(bundleDescriptor); } return list; } - public function get method_119() : Vector. + public function get §_-cA§() : Vector. { var service:Object = null; var list:Vector. = new Vector.(); diff --git a/src/package_4/name_643.as b/src/?_-Vh?/?_-18?.as similarity index 52% rename from src/package_4/name_643.as rename to src/?_-Vh?/?_-18?.as index ccacbaa..9aca974 100644 --- a/src/package_4/name_643.as +++ b/src/?_-Vh?/?_-18?.as @@ -1,5 +1,19 @@ -package package_4 +package §_-Vh§ { + import §_-1z§.§_-b1§; + import §_-1z§.§_-gA§; + import §_-1z§.§_-pi§; + import §_-8D§.§_-Jo§; + import §_-8D§.§_-OX§; + import §_-8D§.§_-QF§; + import §_-8D§.§_-WR§; + import §_-8D§.§_-be§; + import §_-8D§.§_-d6§; + import §_-8D§.§_-jw§; + import §_-Ex§.§_-a2§; + import §_-M8§.§_-5§; + import §_-M8§.§_-Xk§; + import §_-M8§.§_-hR§; import alternativa.engine3d.alternativa3d; import avmplus.getQualifiedClassName; import flash.display.BitmapData; @@ -8,26 +22,12 @@ package package_4 import flash.display3D.VertexBuffer3D; import flash.utils.Dictionary; import flash.utils.getDefinitionByName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; use namespace alternativa3d; - public class name_643 extends class_5 + public class §_-18§ extends §_-pZ§ { - alternativa3d static var fogTexture:name_129; + alternativa3d static var fogTexture:§_-pi§; private static var _programs:Dictionary = new Dictionary(); @@ -51,51 +51,51 @@ package package_4 alternativa3d static var fogColorB:Number = 200 / 255; - alternativa3d static const _passReflectionProcedure:name_114 = new name_114(["#v1=vNormal","#v0=vPosition","mov v0, i0","mov v1, i1"],"passReflectionProcedure"); + alternativa3d static const _passReflectionProcedure:§_-Xk§ = new §_-Xk§(["#v1=vNormal","#v0=vPosition","mov v0, i0","mov v1, i1"],"passReflectionProcedure"); - alternativa3d static const _applyReflectionProcedure:name_114 = new name_114(["#v1=vNormal","#v0=vPosition","#s0=sCubeMap","#c0=cCamera","sub t0, v0, c0","dp3 t1.x, v1, t0","add t1.x, t1.x, t1.x","mul t1, v1, t1.x","sub t1, t0, t1","nrm t1.xyz, t1.xyz","tex o0, t1, s0 "],"applyReflectionProcedure"); + alternativa3d static const _applyReflectionProcedure:§_-Xk§ = new §_-Xk§(["#v1=vNormal","#v0=vPosition","#s0=sCubeMap","#c0=cCamera","sub t0, v0, c0","dp3 t1.x, v1, t0","add t1.x, t1.x, t1.x","mul t1, v1, t1.x","sub t1, t0, t1","nrm t1.xyz, t1.xyz","tex o0, t1, s0 "],"applyReflectionProcedure"); - alternativa3d static const _applyReflectionNormalMapProcedure:name_114 = new name_114(["#s0=sCubeMap","#c0=cCamera","#v0=vPosition","sub t0, v0, c0","dp3 t1.x, i0.xyz, t0","add t1.x, t1.x, t1.x","mul t1, i0.xyz, t1.x","sub t1, t0, t1","nrm t1.xyz, t1.xyz","tex o0, t1, s0 "],"applyReflectionNormalMapProcedure"); + alternativa3d static const _applyReflectionNormalMapProcedure:§_-Xk§ = new §_-Xk§(["#s0=sCubeMap","#c0=cCamera","#v0=vPosition","sub t0, v0, c0","dp3 t1.x, i0.xyz, t0","add t1.x, t1.x, t1.x","mul t1, i0.xyz, t1.x","sub t1, t0, t1","nrm t1.xyz, t1.xyz","tex o0, t1, s0 "],"applyReflectionNormalMapProcedure"); - alternativa3d static const _blendReflection:name_114 = new name_114(["#c0=cAlpha","mul t1, i0, c0.y","mul t0.xyz, i1, c0.z","add t0.xyz, t1, t0","mov t0.w, i0.w","mov o0, t0"],"blendReflection"); + alternativa3d static const _blendReflection:§_-Xk§ = new §_-Xk§(["#c0=cAlpha","mul t1, i0, c0.y","mul t0.xyz, i1, c0.z","add t0.xyz, t1, t0","mov t0.w, i0.w","mov o0, t0"],"blendReflection"); - alternativa3d static const _blendReflectionMap:name_114 = new name_114(["#c0=cCamera","#c1=cAlpha","#s0=sReflection","#v0=vUV","tex t0, v0, s0 <2d,repeat,linear,miplinear>","mul t0, t0, c1.z","mul t1.xyz, i1, t0","sub t0, c0.www, t0","mul t2, i0, t0","add t0.xyz, t1, t2","mov t0.w, i0.w","mov o0, t0"],"blendReflectionMap"); + alternativa3d static const _blendReflectionMap:§_-Xk§ = new §_-Xk§(["#c0=cCamera","#c1=cAlpha","#s0=sReflection","#v0=vUV","tex t0, v0, s0 <2d,repeat,linear,miplinear>","mul t0, t0, c1.z","mul t1.xyz, i1, t0","sub t0, c0.www, t0","mul t2, i0, t0","add t0.xyz, t1, t2","mov t0.w, i0.w","mov o0, t0"],"blendReflectionMap"); - private static const _passTBNRightProcedure:name_114 = method_123(true); + private static const _passTBNRightProcedure:§_-Xk§ = §_-eg§(true); - private static const _passTBNLeftProcedure:name_114 = method_123(false); + private static const _passTBNLeftProcedure:§_-Xk§ = §_-eg§(false); - private static const _getNormalTangentProcedure:name_114 = new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#c0=cCamera","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz"],"getNormalTangentProcedure"); + private static const _getNormalTangentProcedure:§_-Xk§ = new §_-Xk§(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#c0=cCamera","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz"],"getNormalTangentProcedure"); - private static const _getNormalObjectProcedure:name_114 = new name_114(["#v3=vUV","#c0=cCamera","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm o0.xyz, t0.xyz"],"getNormalObjectProcedure"); + private static const _getNormalObjectProcedure:§_-Xk§ = new §_-Xk§(["#v3=vUV","#c0=cCamera","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm o0.xyz, t0.xyz"],"getNormalObjectProcedure"); - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + private static const passSimpleFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); + private static const outputWithSimpleFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + private static const postPassAdvancedFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); + private static const outputWithAdvancedFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); - private static const _applyLightMapProcedure:name_114 = new name_114(["#v0=vUV1","#s0=sLightMap","tex t0, v0, s0 <2d,repeat,linear,mipnone>","add t0, t0, t0","mul i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapProcedure"); + private static const _applyLightMapProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV1","#s0=sLightMap","tex t0, v0, s0 <2d,repeat,linear,mipnone>","add t0, t0, t0","mul i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"applyLightMapProcedure"); - private static const _passLightMapUVProcedure:name_114 = new name_114(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUVProcedure"); + private static const _passLightMapUVProcedure:§_-Xk§ = new §_-Xk§(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUVProcedure"); - private var var_53:int = 0; + private var §_-NH§:int = 0; - public var normalMap:name_129; + public var normalMap:§_-pi§; - public var environmentMap:name_129; + public var environmentMap:§_-pi§; public var reflection:Number = 1; - public var reflectionMap:name_129; + public var reflectionMap:§_-pi§; - public var lightMap:name_129; + public var lightMap:§_-pi§; public var lightMapChannel:uint = 1; - public function name_643(diffuseMap:name_129 = null, environmentMap:name_129 = null, normalMap:name_129 = null, reflectionMap:name_129 = null, lightMap:name_129 = null, opacityMap:name_129 = null, alpha:Number = 1) + public function §_-18§(diffuseMap:§_-pi§ = null, environmentMap:§_-pi§ = null, normalMap:§_-pi§ = null, reflectionMap:§_-pi§ = null, lightMap:§_-pi§ = null, opacityMap:§_-pi§ = null, alpha:Number = 1) { super(diffuseMap,opacityMap,alpha); this.environmentMap = environmentMap; @@ -104,186 +104,186 @@ package package_4 this.lightMap = lightMap; } - private static function method_123(right:Boolean) : name_114 + private static function §_-eg§(right:Boolean) : §_-Xk§ { var crsInSpace:String = right ? "crs t1.xyz, i0, i1" : "crs t1.xyz, i1, i0"; - return new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure"); + return new §_-Xk§(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure"); } - public function get method_124() : int + public function get §_-Q8§() : int { - return this.var_53; + return this.§_-NH§; } - public function set method_124(value:int) : void + public function set §_-Q8§(value:int) : void { - if(value != name_204.TANGENT_RIGHT_HANDED && value != name_204.TANGENT_LEFT_HANDED && value != name_204.OBJECT) + if(value != §_-12§.TANGENT_RIGHT_HANDED && value != §_-12§.TANGENT_LEFT_HANDED && value != §_-12§.OBJECT) { throw new ArgumentError("Value must be a constant from the NormalMapSpace class"); } - this.var_53 = value; + this.§_-NH§ = value; } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.environmentMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.environmentMap)) as Class,resourceType))) + if(this.environmentMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.environmentMap)) as Class,resourceType))) { resources[this.environmentMap] = true; } - if(this.normalMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + if(this.normalMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) { resources[this.normalMap] = true; } - if(this.reflectionMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.reflectionMap)) as Class,resourceType))) + if(this.reflectionMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.reflectionMap)) as Class,resourceType))) { resources[this.reflectionMap] = true; } - if(this.lightMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) + if(this.lightMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) { resources[this.lightMap] = true; } } - private function method_75(targetObject:name_78) : EnvironmentMaterialShaderProgram + private function final(targetObject:§_-OX§) : EnvironmentMaterialShaderProgram { - var procedure:name_114 = null; - var outputProcedure:name_114 = null; - var nrmProcedure:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); + var procedure:§_-Xk§ = null; + var outputProcedure:§_-Xk§ = null; + var nrmProcedure:§_-Xk§ = null; + var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX); + var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT); var positionVar:String = "aPosition"; var normalVar:String = "aNormal"; var tangentVar:String = "aTangent"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - vertexLinker.name_120(normalVar,name_115.ATTRIBUTE); + vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); + vertexLinker.§_-LU§(normalVar,§_-5§.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::_-di(targetObject.alternativa3d::transformProcedure,vertexLinker); } if(targetObject.alternativa3d::deltaTransformProcedure != null) { - vertexLinker.name_120("tTransformedNormal"); - procedure = targetObject.alternativa3d::deltaTransformProcedure.name_143(); - vertexLinker.name_123(procedure); - vertexLinker.name_118(procedure,normalVar); - vertexLinker.name_125(procedure,"tTransformedNormal"); + vertexLinker.§_-LU§("tTransformedNormal"); + procedure = targetObject.alternativa3d::deltaTransformProcedure.§_-mY§(); + vertexLinker.§_-on§(procedure); + vertexLinker.§_-FS§(procedure,normalVar); + vertexLinker.§_-qd§(procedure,"tTransformedNormal"); normalVar = "tTransformedNormal"; - if((this.var_53 == name_204.TANGENT_RIGHT_HANDED || this.var_53 == name_204.TANGENT_LEFT_HANDED) && this.normalMap != null) + if((this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) && this.normalMap != null) { - vertexLinker.name_120(tangentVar,name_115.ATTRIBUTE); - vertexLinker.name_120("tTransformedTangent"); - procedure = targetObject.alternativa3d::deltaTransformProcedure.name_143(); - vertexLinker.name_123(procedure); - vertexLinker.name_118(procedure,tangentVar); - vertexLinker.name_125(procedure,"tTransformedTangent"); + vertexLinker.§_-LU§(tangentVar,§_-5§.ATTRIBUTE); + vertexLinker.§_-LU§("tTransformedTangent"); + procedure = targetObject.alternativa3d::deltaTransformProcedure.§_-mY§(); + vertexLinker.§_-on§(procedure); + vertexLinker.§_-FS§(procedure,tangentVar); + vertexLinker.§_-qd§(procedure,"tTransformedTangent"); tangentVar = "tTransformedTangent"; } } - else if((this.var_53 == name_204.TANGENT_RIGHT_HANDED || this.var_53 == name_204.TANGENT_LEFT_HANDED) && this.normalMap != null) + else if((this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) && this.normalMap != null) { - vertexLinker.name_120(tangentVar,name_115.ATTRIBUTE); + vertexLinker.§_-LU§(tangentVar,§_-5§.ATTRIBUTE); } - vertexLinker.name_123(_passLightMapUVProcedure); - vertexLinker.name_123(alternativa3d::_passReflectionProcedure); - vertexLinker.name_118(alternativa3d::_passReflectionProcedure,positionVar,normalVar); - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(alternativa3d::_passUVProcedure); + vertexLinker.§_-on§(_passLightMapUVProcedure); + vertexLinker.§_-on§(alternativa3d::_passReflectionProcedure); + vertexLinker.§_-FS§(alternativa3d::_passReflectionProcedure,positionVar,normalVar); + vertexLinker.§_-on§(alternativa3d::_projectProcedure); + vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar); + vertexLinker.§_-on§(alternativa3d::_passUVProcedure); if(this.normalMap != null) { - fragmentLinker.name_120("tNormal"); - if(this.var_53 == name_204.TANGENT_RIGHT_HANDED || this.var_53 == name_204.TANGENT_LEFT_HANDED) + fragmentLinker.§_-LU§("tNormal"); + if(this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) { - nrmProcedure = this.var_53 == name_204.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; - vertexLinker.name_123(nrmProcedure); - vertexLinker.name_118(nrmProcedure,tangentVar,normalVar); - fragmentLinker.name_123(_getNormalTangentProcedure); - fragmentLinker.name_125(_getNormalTangentProcedure,"tNormal"); + nrmProcedure = this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; + vertexLinker.§_-on§(nrmProcedure); + vertexLinker.§_-FS§(nrmProcedure,tangentVar,normalVar); + fragmentLinker.§_-on§(_getNormalTangentProcedure); + fragmentLinker.§_-qd§(_getNormalTangentProcedure,"tNormal"); } else { - fragmentLinker.name_123(_getNormalObjectProcedure); - fragmentLinker.name_125(_getNormalObjectProcedure,"tNormal"); + fragmentLinker.§_-on§(_getNormalObjectProcedure); + fragmentLinker.§_-qd§(_getNormalObjectProcedure,"tNormal"); } } - vertexLinker.name_142(); - fragmentLinker.name_120("tColor"); - if(var_21) + vertexLinker.§_-XI§(); + fragmentLinker.§_-LU§("tColor"); + if(§_-L4§) { - fragmentLinker.name_123(alternativa3d::_samplerSetProcedureDiffuseAlpha); - fragmentLinker.name_125(alternativa3d::_samplerSetProcedureDiffuseAlpha,"tColor"); + fragmentLinker.§_-on§(alternativa3d::_samplerSetProcedureDiffuseAlpha); + fragmentLinker.§_-qd§(alternativa3d::_samplerSetProcedureDiffuseAlpha,"tColor"); } else if(opacityMap != null) { - fragmentLinker.name_123(alternativa3d::_samplerSetProcedureOpacity); - fragmentLinker.name_125(alternativa3d::_samplerSetProcedureOpacity,"tColor"); + fragmentLinker.§_-on§(alternativa3d::_samplerSetProcedureOpacity); + fragmentLinker.§_-qd§(alternativa3d::_samplerSetProcedureOpacity,"tColor"); } else { - fragmentLinker.name_123(alternativa3d::_samplerSetProcedure); - fragmentLinker.name_125(alternativa3d::_samplerSetProcedure,"tColor"); + fragmentLinker.§_-on§(alternativa3d::_samplerSetProcedure); + fragmentLinker.§_-qd§(alternativa3d::_samplerSetProcedure,"tColor"); } - fragmentLinker.name_120("tReflection"); + fragmentLinker.§_-LU§("tReflection"); if(this.normalMap != null) { - fragmentLinker.name_123(alternativa3d::_applyReflectionNormalMapProcedure); - fragmentLinker.name_118(alternativa3d::_applyReflectionNormalMapProcedure,"tNormal"); - fragmentLinker.name_125(alternativa3d::_applyReflectionNormalMapProcedure,"tReflection"); + fragmentLinker.§_-on§(alternativa3d::_applyReflectionNormalMapProcedure); + fragmentLinker.§_-FS§(alternativa3d::_applyReflectionNormalMapProcedure,"tNormal"); + fragmentLinker.§_-qd§(alternativa3d::_applyReflectionNormalMapProcedure,"tReflection"); } else { - fragmentLinker.name_123(alternativa3d::_applyReflectionProcedure); - fragmentLinker.name_125(alternativa3d::_applyReflectionProcedure,"tReflection"); + fragmentLinker.§_-on§(alternativa3d::_applyReflectionProcedure); + fragmentLinker.§_-qd§(alternativa3d::_applyReflectionProcedure,"tReflection"); } - fragmentLinker.name_123(_applyLightMapProcedure); - fragmentLinker.name_118(_applyLightMapProcedure,"tColor"); - fragmentLinker.name_125(_applyLightMapProcedure,"tColor"); + fragmentLinker.§_-on§(_applyLightMapProcedure); + fragmentLinker.§_-FS§(_applyLightMapProcedure,"tColor"); + fragmentLinker.§_-qd§(_applyLightMapProcedure,"tColor"); if(this.reflectionMap != null) { - fragmentLinker.name_123(alternativa3d::_blendReflectionMap); - fragmentLinker.name_118(alternativa3d::_blendReflectionMap,"tColor","tReflection"); + fragmentLinker.§_-on§(alternativa3d::_blendReflectionMap); + fragmentLinker.§_-FS§(alternativa3d::_blendReflectionMap,"tColor","tReflection"); outputProcedure = alternativa3d::_blendReflectionMap; } else { - fragmentLinker.name_123(alternativa3d::_blendReflection); - fragmentLinker.name_118(alternativa3d::_blendReflection,"tColor","tReflection"); + fragmentLinker.§_-on§(alternativa3d::_blendReflection); + fragmentLinker.§_-FS§(alternativa3d::_blendReflection,"tColor","tReflection"); outputProcedure = alternativa3d::_blendReflection; } if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED) { - fragmentLinker.name_120("outColor"); - fragmentLinker.name_125(outputProcedure,"outColor"); + fragmentLinker.§_-LU§("outColor"); + fragmentLinker.§_-qd§(outputProcedure,"outColor"); } if(alternativa3d::fogMode == alternativa3d::SIMPLE) { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_123(outputWithSimpleFogProcedure); - fragmentLinker.name_118(outputWithSimpleFogProcedure,"outColor"); + vertexLinker.§_-on§(passSimpleFogConstProcedure); + vertexLinker.§_-FS§(passSimpleFogConstProcedure,positionVar); + fragmentLinker.§_-on§(outputWithSimpleFogProcedure); + fragmentLinker.§_-FS§(outputWithSimpleFogProcedure,"outColor"); } else if(alternativa3d::fogMode == alternativa3d::ADVANCED) { - vertexLinker.name_120("tProjected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); - fragmentLinker.name_118(outputWithAdvancedFogProcedure,"outColor"); + vertexLinker.§_-LU§("tProjected"); + vertexLinker.§_-qd§(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.§_-on§(postPassAdvancedFogConstProcedure); + vertexLinker.§_-FS§(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); + fragmentLinker.§_-on§(outputWithAdvancedFogProcedure); + fragmentLinker.§_-FS§(outputWithAdvancedFogProcedure,"outColor"); } - fragmentLinker.name_142(); - fragmentLinker.name_133(vertexLinker); + fragmentLinker.§_-XI§(); + fragmentLinker.§_-NA§(vertexLinker); return new EnvironmentMaterialShaderProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:§_-be§, surface:§_-a2§, geometry:§_-gA§, lights:Vector.<§_-Jo§>, lightsLength:int, objectRenderPriority:int = -1) : void { - var program:name_127 = null; + var program:§_-RB§ = null; var i:int = 0; - var lm:name_139 = null; + var lm:§_-jw§ = null; var dist:Number = NaN; - var cLocal:name_139 = null; + var cLocal:§_-jw§ = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -300,26 +300,26 @@ package package_4 { return; } - if(!var_21 && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) { return; } - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.NORMAL); - var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TANGENT4); + var object:§_-OX§ = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]); + var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.NORMAL); + var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TANGENT4); if(positionBuffer == null || uvBuffer == null) { return; } - var key:String = alternativa3d::fogMode.toString() + this.var_53.toString() + (this.normalMap != null ? "N" : "n") + (opacityMap != null ? "O" : "o") + (var_21 ? "D" : "d"); + var key:String = alternativa3d::fogMode.toString() + this.§_-NH§.toString() + (this.normalMap != null ? "N" : "n") + (opacityMap != null ? "O" : "o") + (!!§_-L4§ ? "D" : "d"); var programs:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(programs == null) { programs = new Dictionary(false); _programs[object.alternativa3d::transformProcedure] = programs; - program = this.method_75(object); + program = this.final(object); program.upload(camera.alternativa3d::context3D); programs[key] = program; } @@ -328,28 +328,28 @@ package package_4 program = programs[key]; if(program == null) { - program = this.method_75(object); + program = this.final(object); program.upload(camera.alternativa3d::context3D); programs[key] = program; } } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); + var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sLightMap"),this.lightMap.alternativa3d::_texture); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV1"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[this.lightMapChannel]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[this.lightMapChannel]]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.NORMAL],name_126.alternativa3d::FORMATS[name_126.NORMAL]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV1"),uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[this.lightMapChannel]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[this.lightMapChannel]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.NORMAL],§_-d6§.alternativa3d::FORMATS[§_-d6§.NORMAL]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - var camTransform:name_139 = object.alternativa3d::cameraToLocalTransform; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cCamera"),camTransform.d,camTransform.h,camTransform.l); + drawUnit.alternativa3d::_-mQ(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + var camTransform:§_-jw§ = object.alternativa3d::cameraToLocalTransform; + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("cCamera"),camTransform.d,camTransform.h,camTransform.l); var envProgram:EnvironmentMaterialShaderProgram = program as EnvironmentMaterialShaderProgram; if(this.normalMap != null) { drawUnit.alternativa3d::setTextureAt(envProgram.sBump,this.normalMap.alternativa3d::_texture); - if(this.var_53 == name_204.TANGENT_RIGHT_HANDED || this.var_53 == name_204.TANGENT_LEFT_HANDED) + if(this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) { - drawUnit.alternativa3d::setVertexBufferAt(envProgram.aTangent,tangentsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TANGENT4],name_126.alternativa3d::FORMATS[name_126.TANGENT4]); + drawUnit.alternativa3d::setVertexBufferAt(envProgram.aTangent,tangentsBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TANGENT4],§_-d6§.alternativa3d::FORMATS[§_-d6§.TANGENT4]); } } if(this.reflectionMap != null) @@ -358,11 +358,11 @@ package package_4 } drawUnit.alternativa3d::setTextureAt(envProgram.sTexture,diffuseMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(envProgram.sCubeMap,this.environmentMap.alternativa3d::_texture); - var cameraToLocalTransform:name_139 = object.alternativa3d::cameraToLocalTransform; - drawUnit.alternativa3d::name_134(envProgram.cCamera,cameraToLocalTransform.d,cameraToLocalTransform.h,cameraToLocalTransform.l); - drawUnit.alternativa3d::name_134(envProgram.cAlpha,0,1 - this.reflection,this.reflection,alpha); + var cameraToLocalTransform:§_-jw§ = object.alternativa3d::cameraToLocalTransform; + drawUnit.alternativa3d::_-Ry(envProgram.cCamera,cameraToLocalTransform.d,cameraToLocalTransform.h,cameraToLocalTransform.l); + drawUnit.alternativa3d::_-Ry(envProgram.cAlpha,0,1 - this.reflection,this.reflection,alpha); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture); - if(!var_21 && opacityMap != null) + if(!§_-L4§ && opacityMap != null) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture); } @@ -370,12 +370,12 @@ package package_4 { lm = object.alternativa3d::localToCameraTransform; dist = alternativa3d::fogFar - alternativa3d::fogNear; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - alternativa3d::fogNear) / dist); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogRange"),alternativa3d::fogMaxDensity,1,0,1 - alternativa3d::fogMaxDensity); + drawUnit.alternativa3d:: if(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - alternativa3d::fogNear) / dist); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("cFogRange"),alternativa3d::fogMaxDensity,1,0,1 - alternativa3d::fogMaxDensity); } if(alternativa3d::fogMode == alternativa3d::SIMPLE) { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB); } if(alternativa3d::fogMode == alternativa3d::ADVANCED) { @@ -386,7 +386,7 @@ package package_4 { bmd.setPixel(i,0,i / 32 * 255 << 16); } - alternativa3d::fogTexture = new name_93(bmd); + alternativa3d::fogTexture = new §_-b1§(bmd); alternativa3d::fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -409,26 +409,26 @@ package package_4 rightY /= lens; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),alternativa3d::fogTexture.alternativa3d::_texture); } - if(var_21 || opacityMap != null || alpha < 1) + if(Boolean(§_-L4§) || opacityMap != null || alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.TRANSPARENT_SORT)); } else { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.OPAQUE)); } } } } -import package_30.name_121; +import §_-M8§.§_-hR§; -class EnvironmentMaterialShaderProgram extends name_127 +class EnvironmentMaterialShaderProgram extends §_-RB§ { public var aTangent:int = -1; @@ -454,21 +454,21 @@ class EnvironmentMaterialShaderProgram extends name_127 public var sReflection:int = -1; - public function EnvironmentMaterialShaderProgram(vertexShader:name_121, fragmentShader:name_121) + public function EnvironmentMaterialShaderProgram(vertexShader:§_-hR§, fragmentShader:§_-hR§) { super(vertexShader,fragmentShader); this.aPosition = vertexShader.getVariableIndex("aPosition"); this.aNormal = vertexShader.getVariableIndex("aNormal"); this.aUV = vertexShader.getVariableIndex("aUV"); - if(fragmentShader.method_286("sBump")) + if(fragmentShader.§_-oj§("sBump")) { this.sBump = fragmentShader.getVariableIndex("sBump"); } - if(vertexShader.method_286("aTangent")) + if(vertexShader.§_-oj§("aTangent")) { this.aTangent = vertexShader.getVariableIndex("aTangent"); } - if(fragmentShader.method_286("sReflection")) + if(fragmentShader.§_-oj§("sReflection")) { this.sReflection = fragmentShader.getVariableIndex("sReflection"); } @@ -477,7 +477,7 @@ class EnvironmentMaterialShaderProgram extends name_127 this.sCubeMap = fragmentShader.getVariableIndex("sCubeMap"); this.cCamera = fragmentShader.getVariableIndex("cCamera"); this.cAlpha = fragmentShader.getVariableIndex("cAlpha"); - if(fragmentShader.method_286("sOpacity")) + if(fragmentShader.§_-oj§("sOpacity")) { this.sOpacity = fragmentShader.getVariableIndex("sOpacity"); } diff --git a/src/?_-Wh?/?_-4Q?.as b/src/?_-Wh?/?_-4Q?.as new file mode 100644 index 0000000..faecc44 --- /dev/null +++ b/src/?_-Wh?/?_-4Q?.as @@ -0,0 +1,231 @@ +package §_-Wh§ +{ + import §_-8D§.§_-OX§; + import §_-Ex§.§_-2S§; + import §_-LX§.§_-VO§; + import §_-US§.§_-4q§; + import §_-US§.§_-BV§; + import §_-Vh§.§_-YD§; + import §_-aG§.§_-7-§; + import §_-az§.§_-2J§; + import §_-az§.§_-AG§; + import §_-e6§.§_-1I§; + import §_-e6§.§_-Kn§; + import §_-fj§.§_-cx§; + import §_-fj§.§_-gd§; + import §_-fj§.§_-nL§; + import §_-jd§.§_-82§; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; + import §_-pe§.§_-m3§; + import alternativa.engine3d.alternativa3d; + import §default§.§_-dT§; + + use namespace alternativa3d; + + public class §_-4Q§ extends §_-2J§ implements §_-Kn§ + { + private static var material:§_-YD§ = new §_-YD§(11141120); + + private static var bodyMaterial:§_-YD§ = new §_-YD§(43520); + + private static var eulerAngles:§_-bj§ = new §_-bj§(); + + private var chassis:§_-cx§; + + private var turret:§_-82§; + + private var §_-hF§:Vector.; + + private var §_-ec§:§_-OX§; + + private var rays:Vector.; + + public function §_-4Q§() + { + super(); + } + + override public function initComponent() : void + { + var collisionBox:§_-m3§ = null; + var hs:§_-bj§ = null; + var box:§_-7-§ = null; + var wireFrame:§_-2S§ = null; + this.chassis = §_-cx§(entity.getComponentStrict(§_-cx§)); + this.turret = §_-82§(entity.getComponentStrict(§_-82§)); + this.§_-hF§ = new Vector.(); + var body:§_-BV§ = this.chassis.getBody(); + for(var item:§_-4q§ = body.collisionPrimitives.head; item != null; ) + { + collisionBox = §_-m3§(item.primitive); + hs = collisionBox.hs.clone().scale(2); + box = new §_-7-§(hs.x,hs.y,hs.z); + wireFrame = §_-2S§.§_-LJ§(box,16711680); + this.§_-hF§.push(new CollisionPrimitive3D(collisionBox,wireFrame)); + item = item.next; + } + var trackedChassisGraphicsComponent:§_-VO§ = §_-VO§(entity.getComponentStrict(§_-VO§)); + var hull:§_-dT§ = trackedChassisGraphicsComponent.§_-lD§(); + hs = hull.§_-eh§.hs.clone().scale(2); + box = new §_-7-§(hs.x,hs.y,hs.z); + this.§_-ec§ = §_-2S§.§_-LJ§(box,65280); + this.§_-CT§(); + } + + private function §_-CT§() : void + { + this.rays = new Vector.(); + this.§_-6S§(this.chassis.§_-Ei§,this.rays); + this.§_-6S§(this.chassis.§_-iA§,this.rays); + } + + private function §_-6S§(track:§_-nL§, rays:Vector.) : void + { + var ray:§_-gd§ = null; + var box:§_-7-§ = null; + var wireFrame1:§_-2S§ = null; + var wireFrame2:§_-2S§ = null; + for each(ray in track.rays) + { + box = new §_-7-§(10,10,10); + wireFrame1 = §_-2S§.§_-LJ§(box,255); + box = new §_-7-§(10,10,10); + wireFrame2 = §_-2S§.§_-LJ§(box,65535); + rays.push(new RayEntry(ray,wireFrame1,wireFrame2)); + } + } + + override public function addToGame(gameKernel:§_-AG§) : void + { + var collisionPrimitive3D:CollisionPrimitive3D = null; + var rayEntry:RayEntry = null; + var renderSystem:§_-1I§ = gameKernel.§_-DZ§(); + for each(collisionPrimitive3D in this.§_-hF§) + { + this.§_-Ab§(renderSystem,collisionPrimitive3D.skin); + } + this.§_-Ab§(renderSystem,this.§_-ec§); + for each(rayEntry in this.rays) + { + this.§_-Ab§(renderSystem,rayEntry.originSkin); + this.§_-Ab§(renderSystem,rayEntry.endSkin); + } + renderSystem.§_-mA§(this); + } + + override public function removeFromGame(gameKernel:§_-AG§) : void + { + var collisionPrimitive3D:CollisionPrimitive3D = null; + var rayEntry:RayEntry = null; + var renderSystem:§_-1I§ = gameKernel.§_-DZ§(); + for each(collisionPrimitive3D in this.§_-hF§) + { + this.§_-Je§(renderSystem,collisionPrimitive3D.skin); + } + for each(rayEntry in this.rays) + { + this.§_-Je§(renderSystem,rayEntry.originSkin); + this.§_-Je§(renderSystem,rayEntry.endSkin); + } + this.§_-Je§(renderSystem,this.§_-ec§); + gameKernel.§_-DZ§().§_-EI§(this); + } + + private function §_-Ab§(renderSystem:§_-1I§, object:§_-OX§) : void + { + renderSystem.§_-Bj§().addChild(object); + renderSystem.§_-IL§(object.getResources()); + } + + private function §_-Je§(renderSystem:§_-1I§, object:§_-OX§) : void + { + object.alternativa3d::removeFromParent(); + renderSystem.§_-Jb§(object.getResources()); + } + + public function render() : void + { + var entry:CollisionPrimitive3D = null; + var body:§_-BV§ = null; + var rayEntry:RayEntry = null; + var transform:Matrix4 = null; + var skin:§_-OX§ = null; + var worldPos:§_-bj§ = null; + var rayLength:Number = NaN; + for each(entry in this.§_-hF§) + { + transform = entry.collisionPrimitive.transform; + transform.§_-fJ§(eulerAngles); + skin = entry.skin; + skin.x = transform.d; + skin.y = transform.h; + skin.z = transform.l; + skin.rotationX = eulerAngles.x; + skin.rotationY = eulerAngles.y; + skin.rotationZ = eulerAngles.z; + } + body = this.chassis.getBody(); + body.baseMatrix.§_-fJ§(eulerAngles); + this.§_-ec§.rotationX = eulerAngles.x; + this.§_-ec§.rotationY = eulerAngles.y; + this.§_-ec§.rotationZ = eulerAngles.z; + this.§_-ec§.x = body.state.position.x; + this.§_-ec§.y = body.state.position.y; + this.§_-ec§.z = body.state.position.z; + for each(rayEntry in this.rays) + { + worldPos = rayEntry.ray.worldPos; + rayEntry.originSkin.x = worldPos.x; + rayEntry.originSkin.y = worldPos.y; + rayEntry.originSkin.z = worldPos.z; + if(rayEntry.ray.§_-n3§) + { + rayLength = Number(rayEntry.ray.§_-ZA§.t); + } + else + { + rayLength = Number(this.chassis.§_-CF§.rayLength); + } + rayEntry.endSkin.x = worldPos.x + rayEntry.ray.§_-Py§.x * rayLength; + rayEntry.endSkin.y = worldPos.y + rayEntry.ray.§_-Py§.y * rayLength; + rayEntry.endSkin.z = worldPos.z + rayEntry.ray.§_-Py§.z * rayLength; + } + } + } +} + +import §_-1e§.§_-Nh§; +import §_-8D§.§_-OX§; +import §_-fj§.§_-gd§; + +class CollisionPrimitive3D +{ + public var collisionPrimitive:§_-Nh§; + + public var skin:§_-OX§; + + public function CollisionPrimitive3D(collisionPrimitive:§_-Nh§, skin:§_-OX§) + { + super(); + this.collisionPrimitive = collisionPrimitive; + this.skin = skin; + } +} + +class RayEntry +{ + public var ray:§_-gd§; + + public var originSkin:§_-OX§; + + public var endSkin:§_-OX§; + + public function RayEntry(ray:§_-gd§, originSkin:§_-OX§, endSkin:§_-OX§) + { + super(); + this.ray = ray; + this.originSkin = originSkin; + this.endSkin = endSkin; + } +} diff --git a/src/?_-YQ?/?_-A3?.as b/src/?_-YQ?/?_-A3?.as new file mode 100644 index 0000000..a24f6eb --- /dev/null +++ b/src/?_-YQ?/?_-A3?.as @@ -0,0 +1,1431 @@ +package §_-YQ§ +{ + import § var§.§_-Uk§; + import § var§.§_-gx§; + import §_-1e§.§_-fx§; + import §_-1s§.MouseEvent3D; + import §_-1z§.§_-KJ§; + import §_-1z§.§_-VF§; + import §_-1z§.§_-b1§; + import §_-1z§.§_-pi§; + import §_-7A§.§_-Is§; + import §_-7A§.§_-U-§; + import §_-8D§.§_-HO§; + import §_-8D§.§_-OX§; + import §_-8T§.§_-j8§; + import §_-8T§.§_-mW§; + import §_-8w§.§_-87§; + import §_-8w§.§_-BD§; + import §_-8w§.§_-HR§; + import §_-8w§.§_-bh§; + import §_-9-§.§_-Yo§; + import §_-9Z§.§_-47§; + import §_-9Z§.§_-Fj§; + import §_-GD§.§_-6A§; + import §_-I0§.§_-Jv§; + import §_-I0§.§_-bt§; + import §_-I0§.§_-hB§; + import §_-IG§.§_-h4§; + import §_-IQ§.§_-Pa§; + import §_-K8§.§_-e5§; + import §_-KA§.§_-jr§; + import §_-KT§.§_-Ju§; + import §_-KT§.§_-UT§; + import §_-LL§.§_-nR§; + import §_-LX§.§_-VO§; + import §_-MU§.§_-5-§; + import §_-My§.§_-3-§; + import §_-O5§.§_-Hk§; + import §_-O5§.§_-hM§; + import §_-OR§.§_-om§; + import §_-R8§.§_-QM§; + import §_-US§.§_-BV§; + import §_-Uy§.§_-oP§; + import §_-V5§.§_-oN§; + import §_-Vh§.§_-b9§; + import §_-Vh§.§_-pZ§; + import §_-Wh§.§_-4Q§; + import §_-Wh§.§_-OG§; + import §_-Wh§.§_-iU§; + import §_-XN§.§_-O2§; + import §_-XN§.§_-Rp§; + import §_-XN§.§_-YE§; + import §_-XN§.§_-e3§; + import §_-XN§.§_-kW§; + import §_-Yj§.TankMaterial2; + import §_-Yj§.§_-bZ§; + import §_-Yj§.§_-jj§; + import §_-aF§.§_-S8§; + import §_-aG§.§_-7-§; + import §_-aM§.§_-Lm§; + import §_-aM§.§_-X0§; + import §_-az§.§_-AG§; + import §_-az§.§_-Ss§; + import §_-az§.§_-gw§; + import §_-az§.§_-ps§; + import §_-cv§.§_-YU§; + import §_-dz§.§_-2G§; + import §_-dz§.§_-Dm§; + import §_-dz§.§_-NB§; + import §_-dz§.§_-VX§; + import §_-dz§.§_-Zh§; + import §_-dz§.§_-l3§; + import §_-dz§.§_-od§; + import §_-e6§.§_-1I§; + import §_-e6§.§_-gb§; + import §_-eb§.§_-7a§; + import §_-eb§.§_-ka§; + import §_-fT§.§_-HM§; + import §_-fj§.§_-cx§; + import §_-gP§.§_-ke§; + import §_-j-§.§_-B7§; + import §_-j-§.§_-Fr§; + import §_-jT§.§_-0K§; + import §_-jd§.§_-82§; + import §_-ks§.§_-ig§; + import §_-nl§.§_-bj§; + import alternativa.engine3d.alternativa3d; + import alternativa.tanks.game.usertitle.component.§_-YR§; + import §default§.§_-2W§; + import §default§.§_-49§; + import §default§.§_-4a§; + import §default§.§_-7d§; + import §default§.§_-MC§; + import §default§.§_-Vp§; + import §default§.§_-b7§; + import §default§.§_-dT§; + import §default§.§_-gX§; + import §default§.§_-kU§; + import flash.display.BitmapData; + import flash.geom.ColorTransform; + import flash.geom.Vector3D; + import flash.ui.Keyboard; + import §function§.§_-7Y§; + import §function§.§_-KQ§; + import §function§.§_-T§; + import §function§.§_-Xx§; + import §function§.§_-Y1§; + import §function§.§_-ok§; + import §return§.§_-mc§; + + use namespace alternativa3d; + + public class §_-A3§ extends §_-ps§ implements §_-Fr§ + { + private static const DEAD_TEXTURE_ID:String = "dead"; + + private static var conShockSize:§_-Ju§ = new §_-Ju§("shock_size",1200,0,2000); + + private static var conShockSizeGrow:§_-Ju§ = new §_-Ju§("shock_size_grow",200,0,2000); + + private static var conPysicsDebug:§_-UT§ = new §_-UT§("physics_debug",0,0,1); + + private static var conMaxSpeed:§_-Ju§ = new §_-Ju§("max_speed",800,0,2000); + + private static var log:§_-5-§ = §_-5-§(§_-oP§.§_-nQ§().§_-N6§(§_-5-§)); + + private var config:§_-YU§; + + private var gameKernel:§_-AG§; + + private var §_-D1§:int = 0; + + private var §_-Dl§:Vector.<§_-KQ§> = new Vector.<§_-KQ§>(); + + private var tanks:Vector.<§_-gw§>; + + private var §_-Dx§:int; + + private var §_-LW§:§_-S8§; + + private var §_-J4§:§_-S8§; + + private var §_-FD§:§_-S8§; + + private var §_-Qv§:BitmapData; + + private var §_-Wv§:§_-hB§; + + private var §_-al§:§_-bt§; + + private var freeCameraController:§_-Jv§; + + private var §_-8c§:§_-gb§; + + private var §_-Xq§:§_-Pa§; + + private var §_-34§:§_-Yo§; + + private var §_-T2§:§_-e5§; + + private var §_-pn§:int; + + private var §_-8m§:int; + + private var §_-lw§:int; + + private var §_-BT§:TextureResourceCache; + + private var §_-pb§:MultiBitmapTextureResourceCache; + + private var §_-fa§:§_-iQ§; + + private var §_-n6§:§_-ig§; + + private var preloader:Preloader; + + private var §_-3t§:§_-gw§; + + private var §_-3u§:§_-3-§ = new §_-3-§(); + + public function §_-A3§(param1:int, param2:§_-YU§, param3:§_-AG§, param4:§_-Jv§, param5:Preloader) + { + super(param1); + this.preloader = param5; + this.config = param2; + this.gameKernel = param3; + this.freeCameraController = param4; + this.tanks = new Vector.<§_-gw§>(); + this.§_-Dx§ = -1; + this.§_-Qv§ = new BitmapData(1,1); + this.§_-Qv§.setPixel(0,0,11141120); + this.§_-8c§ = param4; + this.§_-BT§ = new TextureResourceCache(param2.§_-WX§); + this.§_-pb§ = new MultiBitmapTextureResourceCache(param2.§_-WX§); + this.§_-fa§ = new §_-iQ§(param3); + TanksTestingTool.testTask = this; + } + + override public function start() : void + { + var _loc1_:§_-Lm§ = §_-Lm§(§_-Uw§.getTaskInterface(§_-Lm§)); + _loc1_.§_-hn§(§_-X0§.KEY_DOWN,this.§_-Ze§); + var _loc2_:§_-B7§ = §_-B7§(§_-Uw§.getTaskInterface(§_-B7§)); + _loc2_.addEventListener(§_-VO§.TANK_CLICK,this); + this.§_-Wv§ = new §_-hB§(this.gameKernel.§_-DZ§().§_-GW§(),this.gameKernel.§_-m8§().§_-d-§().collisionDetector,§_-HM§.STATIC,_loc1_); + this.§_-al§ = new §_-bt§(this.gameKernel.§_-DZ§().§_-GW§(),this.gameKernel.§_-m8§().§_-d-§().collisionDetector,§_-HM§.STATIC,_loc1_); + this.§_-Xq§ = new §_-Pa§(this.gameKernel.§_-DZ§()); + this.§_-34§ = new §_-Yo§(); + this.gameKernel.stage.addChild(this.§_-34§); + var _loc3_:§_-6A§ = §_-6A§(§_-oP§.§_-nQ§().§_-N6§(§_-6A§)); + _loc3_.§_-0j§("addtank",this.§_-gr§); + var _loc4_:XMLList = this.config.xml.elements("console-commands"); + if(_loc4_.length() > 0) + { + this.§_-Bl§(_loc3_,this.config.xml.elements("console-commands")[0].toString()); + } + _loc3_.§_-0j§("lstanks",this.§_-3R§); + this.§_-n6§ = new §_-ig§(§_-AG§.RENDER_SYSTEM_PRIORITY + 1,10,this.gameKernel.stage,0,0); + this.gameKernel.addTask(this.§_-n6§); + this.gameKernel.§_-Ev§().addEventListener(§_-Ss§.MAP_COMPLETE,this); + } + + private function get activeTank() : §_-gw§ + { + return this.§_-Dx§ >= 0 ? this.tanks[this.§_-Dx§] : null; + } + + private function §_-mn§(param1:int) : void + { + if(param1 >= 0 && param1 < this.tanks.length) + { + if(this.activeTank != null) + { + this.activeTank.dispatchEvent(§_-kU§.SET_DISABLED_STATE); + } + this.§_-Dx§ = param1; + this.activeTank.dispatchEvent(§_-kU§.SET_ACTIVE_STATE); + if(this.§_-8c§ == this.§_-Wv§) + { + this.§_-Wv§.§_-O-§(this.activeTank); + } + if(this.§_-8c§ == this.§_-al§) + { + this.§_-al§.§_-O-§(this.activeTank); + } + } + } + + public function include() : void + { + if(this.tanks.length > 0) + { + this.§_-mn§((this.§_-Dx§ + 1) % this.tanks.length); + } + if(this.§_-8c§ != this.§_-Wv§) + { + this.§_-N8§(this.§_-Wv§); + } + } + + private function §_-C4§() : void + { + var _loc1_:int = 0; + if(this.tanks.length > 0) + { + _loc1_ = this.§_-Dx§ - 1; + if(_loc1_ < 0) + { + _loc1_ = this.tanks.length - 1; + } + this.§_-mn§(_loc1_); + } + } + + private function §_-Bl§(param1:§_-6A§, param2:String) : void + { + var _loc4_:String = null; + var _loc3_:Array = param2.split(/\r*\n/); + for each(_loc4_ in _loc3_) + { + param1.§_-I1§(_loc4_); + } + } + + private function §_-gr§(param1:§_-6A§, param2:Array) : void + { + this.§_-kX§(§_-E8§.§_-mS§(param2)); + } + + private function §_-Ze§(param1:§_-X0§, param2:uint) : void + { + var _loc3_:§_-1I§ = null; + var _loc4_:int = 0; + switch(param2) + { + case Keyboard.Q: + _loc3_ = this.gameKernel.§_-DZ§(); + _loc4_ = int(_loc3_.§_-m9§()); + _loc3_.§_-dO§(_loc4_ == 0 ? 4 : 0); + break; + case Keyboard.M: + case Keyboard.BACKSLASH: + this.§_-v§(); + break; + case Keyboard.N: + if(this.§_-8c§ == this.freeCameraController) + { + §_-Jv§.targeted = !§_-Jv§.targeted; + break; + } + §_-Jv§.targeted = true; + this.§_-N8§(this.freeCameraController); + break; + case Keyboard.ENTER: + this.include(); + } + } + + private function §_-3S§() : void + { + var _loc1_:§_-cx§ = null; + var _loc2_:§_-BV§ = null; + if(this.activeTank != null) + { + _loc1_ = §_-cx§(this.activeTank.getComponent(§_-cx§)); + _loc2_ = _loc1_.body; + _loc2_.state.velocity.z = 1000; + } + } + + private function §_-gE§() : void + { + var _loc2_:§_-YR§ = null; + var _loc1_:§_-gw§ = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = §_-YR§(_loc1_.getComponent(§_-YR§)); + if(_loc2_.§_-l-§()) + { + _loc2_.removeFromScene(); + } + else + { + _loc2_.addToScene(); + } + } + } + + private function §_-fy§() : void + { + this.§_-n6§.§_-U8§("Message: " + Math.random(),§_-hM§.random()); + } + + private function §_-3Y§() : Boolean + { + return this.gameKernel.§_-Ku§().§_-IA§(Keyboard.CONTROL); + } + + private function §_-iR§(param1:int, param2:Boolean) : void + { + var _loc3_:§_-YR§ = null; + if(this.activeTank != null) + { + _loc3_ = §_-YR§(this.activeTank.getComponentStrict(§_-YR§)); + if(param2) + { + _loc3_.§_-0W§(param1,10000); + } + else + { + _loc3_.§_-kd§(param1); + } + } + } + + private function §_-Hj§() : void + { + var _loc3_:§_-pi§ = null; + var _loc4_:Vector.<§_-b9§> = null; + var _loc5_:int = 0; + var _loc8_:§_-pZ§ = null; + var _loc1_:Vector.<§_-pi§> = this.§_-pb§.getFrames("thunder/explosion"); + var _loc2_:§_-1I§ = this.gameKernel.§_-DZ§(); + for each(_loc3_ in _loc1_) + { + _loc2_.§_-09§(_loc3_); + } + _loc4_ = new Vector.<§_-b9§>(_loc1_.length); + _loc5_ = 0; + while(_loc5_ < _loc1_.length) + { + _loc8_ = new §_-pZ§(_loc1_[_loc5_]); + _loc8_.§_-L4§ = true; + _loc4_[_loc5_] = _loc8_; + _loc5_++; + } + var _loc6_:§_-Xx§ = §_-Xx§(this.gameKernel.§_-11§().§_-kP§(§_-Xx§)); + var _loc7_:§_-bj§ = new §_-bj§(Math.random() * 3000,Math.random() * 3000,1000 + Math.random() * 3000); + _loc6_.init(300,300,_loc4_,_loc7_,0,0,30,true); + _loc2_.each(_loc6_); + } + + private function §_-dK§() : void + { + var _loc1_:§_-pi§ = this.§_-BT§.getResource("smoky/diffuse"); + var _loc2_:§_-pi§ = this.§_-BT§.getResource("smoky/opacity"); + var _loc3_:§_-1I§ = this.gameKernel.§_-DZ§(); + _loc3_.§_-09§(_loc1_); + _loc3_.§_-09§(_loc2_); + var _loc4_:§_-nR§ = §_-nR§(this.gameKernel.§_-11§().§_-kP§(§_-nR§)); + _loc4_.init(new DummyTurret(),_loc1_,_loc2_); + _loc3_.each(_loc4_); + } + + private function §_-fC§() : void + { + --this.§_-8m§; + if(this.§_-8m§ < 0) + { + this.§_-8m§ += this.config.tankParts.§_-OC§; + } + this.§_-1y§(); + } + + private function §_-WI§() : void + { + this.§_-8m§ = (this.§_-8m§ + 1) % this.config.tankParts.§_-OC§; + this.§_-1y§(); + } + + private function §_-hd§() : void + { + --this.§_-pn§; + if(this.§_-pn§ < 0) + { + this.§_-pn§ += this.config.tankParts.§_-pg§; + } + this.§_-1y§(); + } + + public function §_-42§() : void + { + this.§_-pn§ = (this.§_-pn§ + 1) % this.config.tankParts.§_-pg§; + this.§_-1y§(); + } + + private function §_-1y§() : void + { + var _loc2_:§_-E8§ = null; + var _loc3_:§_-gw§ = null; + var _loc4_:§_-Is§ = null; + var _loc5_:§_-Is§ = null; + var _loc6_:§_-bj§ = null; + var _loc1_:§_-gw§ = this.activeTank; + if(_loc1_ != null) + { + this.§_-1w§(); + _loc2_ = new §_-E8§(); + _loc2_.hull = this.config.tankParts.§_-lD§(this.§_-pn§).id; + _loc2_.turret = this.config.tankParts.§_-eq§(this.§_-8m§).id; + _loc2_.coloring = this.§_-lw§; + _loc3_ = this.§_-kX§(_loc2_); + this.§_-mn§(this.tanks.length - 1); + _loc4_ = §_-Is§(_loc1_.getComponentStrict(§_-Is§)); + _loc5_ = §_-Is§(_loc3_.getComponentStrict(§_-Is§)); + _loc5_.getBody().§_-LV§(_loc4_.getBody().state.orientation); + _loc6_ = _loc4_.getBody().state.position.clone(); + _loc6_.z += 200; + _loc5_.getBody().§_-Vi§(_loc6_); + } + } + + override public function run() : void + { + } + + private function §_-Qe§() : void + { + var _loc1_:§_-om§ = null; + if(this.activeTank != null) + { + if(this.§_-T2§ == null) + { + this.§_-T2§ = §_-e5§(this.gameKernel.§_-11§().§_-kP§(§_-e5§)); + _loc1_ = §_-om§(this.activeTank.getComponentStrict(§_-om§)); + this.§_-T2§.init(5000,_loc1_.§_-5x§(),this.§_-ab§); + this.gameKernel.§_-DZ§().each(this.§_-T2§); + } + this.§_-T2§.§_-U8§("Message " + Math.random(),65280); + } + } + + public function §_-86§(param1:String, param2:*) : void + { + var _loc3_:int = 0; + var _loc4_:Vector.<§_-HO§> = null; + var _loc5_:Vector.<§_-HO§> = null; + var _loc6_:§_-E8§ = null; + var _loc7_:XMLList = null; + var _loc8_:int = 0; + var _loc9_:int = 0; + var _loc10_:§_-gw§ = null; + var _loc11_:§_-VF§ = null; + var _loc12_:§_-KJ§ = null; + switch(param1) + { + case §_-VO§.TANK_CLICK: + _loc3_ = int(this.tanks.indexOf(§_-gw§(param2))); + if(_loc3_ >= 0) + { + this.§_-mn§(_loc3_); + } + break; + case §_-Ss§.MAP_COMPLETE: + this.§_-N8§(this.§_-Wv§); + if(this.config.xml.user.length() > 0) + { + _loc6_ = §_-E8§.§_-CW§(this.config.xml.user[0],true); + this.§_-lw§ = _loc6_.coloring; + this.§_-pn§ = this.config.tankParts.§_-mh§(_loc6_.hull); + this.§_-8m§ = this.config.tankParts.§_-mR§(_loc6_.turret); + if(this.§_-pn§ < 0) + { + throw new ArgumentError("bad hull: " + _loc6_.hull); + } + if(this.§_-8m§ < 0) + { + throw new ArgumentError("bad turret: " + _loc6_.turret); + } + this.§_-kX§(_loc6_); + } + else + { + this.§_-kX§(§_-E8§.defaultTankParams); + } + this.§_-mn§(this.tanks.length - 1); + if(this.config.xml.tanks.length() > 0) + { + _loc7_ = this.config.xml.tanks[0].tank; + _loc8_ = 0; + _loc9_ = int(_loc7_.length()); + while(_loc8_ < _loc9_) + { + _loc10_ = this.§_-kX§(§_-E8§.§_-CW§(_loc7_[_loc8_])); + _loc10_.dispatchEvent(§_-kU§.SET_ACTIVE_STATE); + _loc10_.dispatchEvent(§_-kU§.SET_DISABLED_STATE); + _loc8_++; + } + } + _loc4_ = this.gameKernel.§_-DZ§().§_-Hn§().getResources(true,§_-VF§); + if(_loc4_.length > 0) + { + _loc11_ = _loc4_[0] as §_-VF§; + _loc11_.left = this.config.§_-WX§.§_-o0§("left_01") as BitmapData; + _loc11_.right = this.config.§_-WX§.§_-o0§("right_01") as BitmapData; + _loc11_.back = this.config.§_-WX§.§_-o0§("back_01") as BitmapData; + _loc11_.front = this.config.§_-WX§.§_-o0§("front_01") as BitmapData; + _loc11_.top = this.config.§_-WX§.§_-o0§("top_01") as BitmapData; + _loc11_.bottom = this.config.§_-WX§.§_-o0§("bottom_01") as BitmapData; + this.gameKernel.§_-DZ§().§_-09§(_loc11_); + } + this.§_-Q§(); + this.config.clear(); + _loc5_ = this.gameKernel.§_-DZ§().§_-Hn§().getResources(true,§_-KJ§); + for each(_loc12_ in _loc5_) + { + _loc12_.data.clear(); + _loc12_.data = null; + } + this.preloader.§_-QU§(1); + } + } + + private function onMouseDown(param1:MouseEvent3D) : void + { + var _loc2_:Vector3D = §_-OX§(param1.target).localToGlobal(new Vector3D(param1.localX,param1.localY,param1.localZ)); + log.log("mouse","click pos %1 %2 %3",_loc2_.x.toFixed(),_loc2_.y.toFixed(),_loc2_.z.toFixed()); + } + + private function §_-kq§() : void + { + } + + private function §_-14§() : void + { + this.gameKernel.§_-oR§(this.§_-3t§); + this.tanks.push(this.§_-3t§); + this.§_-mn§(this.tanks.length - 1); + } + + private function §_-kX§(param1:§_-E8§) : §_-gw§ + { + var _loc2_:§_-gw§ = this.§_-As§(param1); + this.gameKernel.§_-oR§(_loc2_); + this.tanks.push(_loc2_); + return _loc2_; + } + + private function §_-As§(param1:§_-E8§) : §_-gw§ + { + var _loc2_:§_-dT§ = this.config.tankParts.§_-N1§(param1.hull); + var _loc3_:§_-Vp§ = this.config.tankParts.§_-Sw§(param1.turret); + var _loc4_:BitmapData = this.config.tankParts.§_-bR§(param1.coloring); + var _loc5_:BitmapData = this.config.§_-WX§.§_-o0§(DEAD_TEXTURE_ID) as BitmapData; + var _loc6_:§_-gw§ = new §_-gw§(§_-gw§.§_-9o§()); + var _loc9_:§_-cx§ = new §_-cx§(_loc2_,1000,80000); + var _loc10_:int = int(conMaxSpeed.value); + _loc9_.§_-la§(_loc10_,true); + _loc9_.§_-Gu§(2,true); + _loc9_.§_-Vi§(new §_-bj§(param1.x,param1.y,param1.z)); + _loc9_.body.§_-U4§(param1.rotationX / 180 * Math.PI,param1.rotationY / 180 * Math.PI,param1.rotationZ / 180 * Math.PI); + var _loc12_:§_-VO§ = new §_-VO§(_loc2_); + _loc12_.§_-Ru§(this.§_-E-§(_loc2_,_loc4_,_loc5_,6,6)); + _loc12_.§_-gq§(this.§_-Bi§(_loc2_)); + _loc12_.§_-CE§(this.§_-TH§(_loc2_)); + _loc6_.§_-2d§(_loc9_); + _loc6_.§_-2d§(_loc12_); + _loc6_.§_-2d§(new §_-MC§(new §_-BD§(this.config.soundsLibrary))); + var _loc13_:§_-gX§ = new §_-gX§(); + _loc6_.§_-2d§(_loc13_); + _loc6_.§_-2d§(new §_-iU§()); + _loc6_.§_-2d§(new §_-U-§()); + var _loc14_:§_-82§ = new §_-82§(_loc3_,1,2); + var _loc15_:§_-om§ = new §_-om§(_loc3_); + _loc15_.§_-CI§(this.§_-E-§(_loc3_,_loc4_,_loc5_,3,3)); + _loc6_.§_-2d§(_loc14_); + _loc6_.§_-2d§(_loc15_); + _loc6_.§_-2d§(new §_-4a§(new §_-HR§(this.config.soundsLibrary))); + if(_loc3_.id.indexOf("Smoky") >= 0) + { + this.§_-0A§(_loc6_); + } + else if(_loc3_.id.indexOf("Thunder") >= 0) + { + this.§_-D5§(_loc6_); + } + else + { + this.§_-Gy§(_loc6_); + } + _loc6_.§_-2d§(new §_-b7§()); + if(conPysicsDebug.value == 1) + { + _loc6_.§_-2d§(new §_-4Q§()); + } + if(!param1.isUser) + { + } + var _loc16_:Vector.<§_-b9§> = this.§_-0u§(this.§_-pb§.getFrames("tank_explosion/shock_wave")); + var _loc17_:Vector.<§_-b9§> = this.§_-0u§(this.§_-pb§.getFrames("tank_explosion/explosion")); + var _loc18_:Vector.<§_-b9§> = this.§_-0u§(this.§_-pb§.getFrames("tank_explosion/smoke")); + var _loc19_:§_-OG§ = new §_-OG§(1200,200,_loc16_,_loc17_,_loc18_); + _loc6_.§_-2d§(_loc19_); + _loc6_.§_-m7§(); + return _loc6_; + } + + private function §_-8j§() : void + { + var _loc1_:§_-cx§ = §_-cx§(this.tanks[this.§_-Dx§].getComponent(§_-cx§)); + var _loc2_:§_-bj§ = new §_-bj§(); + _loc1_.§_-UQ§.§_-fJ§(_loc2_); + _loc2_.x = _loc2_.x * 180 / Math.PI; + _loc2_.y = _loc2_.y * 180 / Math.PI; + _loc2_.z = _loc2_.z * 180 / Math.PI; + log.log("tank","position %1 %2 %3",_loc1_.§_-bi§.x.toFixed(),_loc1_.§_-bi§.y.toFixed(),_loc1_.§_-bi§.z.toFixed()); + log.log("tank","rotation %1 %2 %3",_loc2_.x.toFixed(),_loc2_.y.toFixed(),_loc2_.z.toFixed()); + } + + private function §_-Q§() : void + { + var _loc4_:XMLList = null; + var _loc5_:int = 0; + var _loc6_:int = 0; + var _loc7_:XML = null; + var _loc8_:§_-KQ§ = null; + var _loc9_:Array = null; + var _loc1_:§_-pi§ = this.§_-BT§.getResource("fire/diffuse"); + var _loc2_:§_-pi§ = this.§_-BT§.getResource("fire/opacity"); + var _loc3_:§_-1I§ = this.gameKernel.§_-DZ§(); + _loc3_.§_-09§(_loc1_); + _loc3_.§_-09§(_loc2_); + this.§_-LW§ = new §_-S8§(_loc1_,_loc2_,8,8,0,16,30,true); + this.§_-J4§ = new §_-S8§(_loc1_,_loc2_,8,8,16,16,30,true); + this.§_-FD§ = new §_-S8§(_loc1_,_loc2_,8,8,32,32,45,true,0.5,0.5); + if(this.config.xml.effects.length() > 0) + { + _loc4_ = this.config.xml.effects[0].fire; + _loc5_ = 0; + _loc6_ = int(_loc4_.length()); + while(_loc5_ < _loc6_) + { + _loc7_ = _loc4_[_loc5_]; + _loc8_ = new §_-KQ§(this.§_-LW§,this.§_-J4§,this.§_-FD§,5,true); + _loc9_ = _loc7_.@position.toString().split(/\s+/); + _loc8_.position = new Vector3D(Number(_loc9_[0]),Number(_loc9_[1]),Number(_loc9_[2])); + _loc8_.scale = Number(_loc7_.@scale); + this.§_-Dl§.push(_loc8_); + this.gameKernel.§_-DZ§().§_-9p§(_loc8_); + _loc5_++; + } + } + } + + private function §_-Bi§(param1:§_-dT§) : §_-bZ§ + { + var _loc2_:§_-Hk§ = param1.textureData; + var _loc3_:§_-KJ§ = this.§_-fa§.§_-kb§(_loc2_.§_-HG§(§_-gx§.KEY_TRACKS_DIFFUSE)); + var _loc4_:§_-KJ§ = this.§_-fa§.§_-kb§(_loc2_.§_-HG§(§_-gx§.KEY_TRACKS_NORMAL)); + var _loc5_:§_-bZ§ = new §_-bZ§(); + _loc5_.glossiness = 65; + _loc5_.§_-kj§ = 0.6; + _loc5_.diffuseMap = _loc3_; + _loc5_.normalMap = _loc4_; + if(_loc2_.§_-HG§(§_-gx§.KEY_TRACKS_OPACITY) != null) + { + _loc5_.opacityMap = this.§_-fa§.§_-kb§(_loc2_.§_-HG§(§_-gx§.KEY_TRACKS_OPACITY)); + } + return _loc5_; + } + + private function §_-TH§(param1:§_-dT§) : §_-jj§ + { + var _loc3_:§_-KJ§ = null; + var _loc2_:§_-Hk§ = param1.textureData; + if(_loc2_.§_-HG§(§_-gx§.KEY_SHADOW) != null) + { + _loc3_ = this.§_-fa§.§_-kb§(_loc2_.§_-HG§(§_-gx§.KEY_SHADOW)); + return new §_-jj§(_loc3_); + } + return null; + } + + private function §_-0A§(param1:§_-gw§) : void + { + var _loc9_:§_-pi§ = null; + var _loc10_:Vector.<§_-b9§> = null; + var _loc11_:int = 0; + var _loc18_:§_-pZ§ = null; + var _loc3_:Number = 10000000 / 3; + var _loc4_:§_-fx§ = this.gameKernel.§_-m8§().§_-d-§().collisionDetector; + var _loc5_:§_-NB§ = new §_-NB§(); + var _loc6_:§_-O2§ = new §_-O2§(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); + _loc6_.§_-JD§(this.gameKernel.§_-m8§().§_-d-§().collisionDetector); + _loc6_.§_-XH§(new §_-NB§()); + var _loc7_:Vector.<§_-pi§> = this.§_-pb§.getFrames("thunder/explosion"); + var _loc8_:§_-1I§ = this.gameKernel.§_-DZ§(); + for each(_loc9_ in _loc7_) + { + _loc8_.§_-09§(_loc9_); + } + _loc10_ = new Vector.<§_-b9§>(_loc7_.length); + _loc11_ = 0; + while(_loc11_ < _loc7_.length) + { + _loc18_ = new §_-pZ§(_loc7_[_loc11_]); + _loc18_.§_-L4§ = true; + _loc10_[_loc11_] = _loc18_; + _loc11_++; + } + var _loc12_:§_-pi§ = this.§_-BT§.getResource("smoky/diffuse"); + var _loc13_:§_-pi§ = this.§_-BT§.getResource("smoky/opacity"); + _loc8_.§_-09§(_loc12_); + _loc8_.§_-09§(_loc13_); + §_-j8§.init(_loc12_,_loc13_); + var _loc14_:§_-Zh§ = new §_-mW§(this.gameKernel,1000,10000000,200,100,0.5,null,_loc10_); + var _loc15_:§_-od§ = new §_-od§(1000,_loc3_,_loc6_,_loc14_,new §_-87§(this.config.soundsLibrary.§_-lM§("smoky/shot")),true); + _loc15_.§_-BE§ = true; + param1.§_-2d§(_loc15_); + var _loc16_:BitmapData = new BitmapData(20,20,false,0); + _loc16_.perlinNoise(20,20,3,13,false,true); + §_-oN§.init(_loc12_,_loc13_); + var _loc17_:§_-oN§ = new §_-oN§(this.§_-BT§.getResource("thunder/shot")); + param1.§_-2d§(_loc17_); + } + + private function §_-D5§(param1:§_-gw§) : void + { + var _loc9_:§_-pi§ = null; + var _loc10_:Vector.<§_-b9§> = null; + var _loc11_:int = 0; + var _loc18_:§_-pZ§ = null; + var _loc4_:§_-fx§ = this.gameKernel.§_-m8§().§_-d-§().collisionDetector; + var _loc5_:§_-NB§ = new §_-NB§(); + var _loc6_:§_-O2§ = new §_-O2§(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); + _loc6_.§_-JD§(this.gameKernel.§_-m8§().§_-d-§().collisionDetector); + _loc6_.§_-XH§(new §_-NB§()); + var _loc7_:Vector.<§_-pi§> = this.§_-pb§.getFrames("thunder/explosion"); + var _loc8_:§_-1I§ = this.gameKernel.§_-DZ§(); + for each(_loc9_ in _loc7_) + { + _loc8_.§_-09§(_loc9_); + } + _loc10_ = new Vector.<§_-b9§>(_loc7_.length); + _loc11_ = 0; + while(_loc11_ < _loc7_.length) + { + _loc18_ = new §_-pZ§(_loc7_[_loc11_]); + _loc18_.§_-L4§ = true; + _loc10_[_loc11_] = _loc18_; + _loc11_++; + } + var _loc12_:§_-pi§ = this.§_-BT§.getResource("smoky/diffuse"); + var _loc13_:§_-pi§ = this.§_-BT§.getResource("smoky/opacity"); + _loc8_.§_-09§(_loc12_); + _loc8_.§_-09§(_loc13_); + §_-j8§.init(_loc12_,_loc13_); + var _loc14_:§_-Zh§ = new §_-mW§(this.gameKernel,1000,10000000,200,100,0.5,null,_loc10_); + var _loc15_:§_-od§ = new §_-od§(1000,3333333.3333333335,_loc6_,_loc14_,new §_-87§(this.config.soundsLibrary.§_-lM§("thunder/shot")),true); + _loc15_.§_-BE§ = true; + param1.§_-2d§(_loc15_); + var _loc16_:BitmapData = new BitmapData(20,20,false,0); + _loc16_.perlinNoise(20,20,3,13,false,true); + §_-oN§.init(_loc12_,_loc13_); + var _loc17_:§_-oN§ = new §_-oN§(this.§_-BT§.getResource("thunder/shot")); + param1.§_-2d§(_loc17_); + } + + private function §_-2a§(param1:§_-gw§) : void + { + var _loc5_:§_-fx§ = this.gameKernel.§_-m8§().§_-d-§().collisionDetector; + var _loc6_:§_-0K§ = new §_-0K§(); + var _loc7_:§_-e3§ = new §_-e3§(Math.PI / 9,20,Math.PI / 9,20,_loc5_,_loc6_); + } + + private function §_-Ar§(param1:§_-gw§) : void + { + var _loc9_:§_-fx§ = this.gameKernel.§_-m8§().§_-d-§().collisionDetector; + var _loc10_:§_-NB§ = new §_-NB§(); + var _loc11_:§_-YE§ = new §_-YE§(Math.PI / 4,20,Math.PI / 4,20,100,_loc9_,_loc10_); + var _loc13_:Number = Number(§_-Dm§.BASE_FORCE); + var _loc14_:§_-2G§ = new §_-QM§(2000,4000,0.5); + var _loc15_:BitmapData = this.config.§_-WX§.§_-o0§("plasma/charge") as BitmapData; + var _loc16_:Vector. = §_-mc§.§_-YA§(_loc15_,_loc15_.height); + var _loc17_:Vector.<§_-b9§> = this.§_-Gt§(_loc16_); + var _loc18_:BitmapData = this.config.§_-WX§.§_-o0§("plasma/explosion") as BitmapData; + _loc16_ = §_-mc§.§_-YA§(_loc18_,_loc18_.height); + var _loc19_:Vector.<§_-b9§> = this.§_-Gt§(_loc16_); + var _loc20_:ColorTransform = new ColorTransform(5); + var _loc22_:§_-7a§ = new §_-h4§(this.gameKernel,_loc17_,_loc19_,_loc20_); + var _loc23_:§_-ka§ = new §_-ka§(50,2000,100,_loc13_,_loc14_,_loc22_,null); + param1.§_-2d§(_loc23_); + var _loc24_:§_-VX§ = new §_-VX§(1000,1000,1000,1000,0,8000,_loc11_,null,true); + param1.§_-2d§(_loc24_); + var _loc25_:BitmapData = new BitmapData(20,20,false,0); + _loc25_.perlinNoise(20,20,3,13,false,true); + var _loc26_:§_-pi§ = this.§_-BT§.getResource("plasma/shot"); + var _loc27_:§_-T§ = new §_-T§(_loc26_,null); + param1.§_-2d§(_loc27_); + } + + private function §_-Gy§(param1:§_-gw§) : void + { + var _loc5_:§_-l3§ = new §_-l3§(1000,1,15,true); + param1.§_-2d§(_loc5_); + var _loc7_:Number = 30 * Math.PI / 180; + var _loc10_:§_-Fj§ = this.§_-N§(); + var _loc11_:§_-47§ = new §_-47§(3000,_loc7_,20,3000,_loc10_); + param1.§_-2d§(_loc11_); + var _loc16_:§_-1I§ = this.gameKernel.§_-DZ§(); + var _loc17_:§_-pi§ = this.§_-BT§.getResource("firebird/diffuse"); + var _loc18_:§_-pi§ = this.§_-BT§.getResource("firebird/opacity"); + _loc16_.§_-09§(_loc17_); + _loc16_.§_-09§(_loc18_); + §_-47§.init(_loc17_,_loc18_); + var _loc19_:§_-fx§ = this.gameKernel.§_-m8§().§_-d-§().collisionDetector; + var _loc20_:§_-Rp§ = §_-NB§.INSTANCE; + var _loc21_:§_-kW§ = new §_-kW§(3000,_loc7_,10,10,_loc19_,_loc20_); + var _loc22_:§_-bh§ = new §_-bh§(this.config.soundsLibrary.§_-lM§("flamethrower/shot")); + var _loc23_:§_-ke§ = new §_-ke§(1000,100,_loc21_,_loc22_,true,false); + param1.§_-2d§(_loc23_); + } + + private function §_-Gt§(param1:Vector.) : Vector.<§_-b9§> + { + var _loc3_:BitmapData = null; + var _loc2_:Vector.<§_-b9§> = new Vector.<§_-b9§>(); + for each(_loc3_ in param1) + { + } + return _loc2_; + } + + private function §_-1w§() : void + { + var _loc1_:§_-gw§ = null; + if(this.§_-Dx§ >= 0) + { + _loc1_ = this.activeTank; + this.gameKernel.§_-13§(_loc1_); + this.tanks.splice(this.§_-Dx§,1); + if(this.tanks.length == 0) + { + this.§_-Dx§ = -1; + } + else + { + this.§_-Dx§--; + this.§_-mn§(this.§_-Dx§); + } + } + } + + private function §_-v§() : void + { + if(this.§_-8c§ == this.§_-al§) + { + this.§_-N8§(this.§_-Wv§); + } + else if(this.§_-8c§ == this.freeCameraController) + { + this.§_-N8§(this.§_-al§); + } + else + { + this.§_-N8§(this.freeCameraController); + } + } + + private function §_-N8§(param1:§_-gb§) : void + { + if(this.activeTank != null) + { + if(param1 == this.§_-Wv§) + { + this.§_-Wv§.§_-O-§(this.activeTank); + } + if(param1 == this.§_-al§) + { + this.§_-al§.§_-O-§(this.activeTank); + } + if(param1 == this.freeCameraController) + { + this.freeCameraController.§_-O-§(this.activeTank); + } + } + this.gameKernel.§_-DZ§().§_-N8§(param1); + this.§_-8c§ = param1; + } + + private function §_-E-§(param1:§_-7d§, param2:BitmapData, param3:BitmapData, param4:Number, param5:Number) : §_-2W§ + { + var _loc15_:§_-dT§ = null; + var _loc16_:§_-49§ = null; + var _loc6_:§_-1I§ = this.gameKernel.§_-DZ§(); + var _loc7_:§_-Hk§ = param1.textureData; + var _loc8_:§_-KJ§ = this.§_-fa§.§_-kb§(_loc7_.§_-HG§(§_-Uk§.KEY_DIFFUSE_MAP)); + var _loc9_:§_-KJ§ = this.§_-fa§.§_-kb§(_loc7_.§_-HG§(§_-Uk§.KEY_NORMAL_MAP)); + var _loc10_:§_-KJ§ = this.§_-fa§.§_-kb§(_loc7_.§_-HG§(§_-Uk§.KEY_SURFACE_MAP)); + var _loc11_:§_-b1§ = this.§_-fa§.§_-F6§(param2); + var _loc12_:§_-b1§ = this.§_-fa§.§_-F6§(param3); + var _loc13_:TankMaterial2 = new TankMaterial2(_loc11_,_loc8_,_loc9_,_loc10_); + var _loc14_:TankMaterial2 = new TankMaterial2(_loc12_,_loc8_,_loc9_,_loc10_); + _loc13_.§_-jM§ = param4; + _loc13_.§_-Sf§ = param5; + _loc14_.§_-jM§ = param4; + _loc14_.§_-Sf§ = param5; + _loc6_.§_-09§(param1.geometry); + if(param1 is §_-dT§) + { + _loc15_ = §_-dT§(param1); + for each(var _loc19_ in _loc15_.§_-EY§.concat(_loc15_.§_-M4§)) + { + _loc16_ = _loc19_; + _loc19_; + _loc6_.§_-09§(_loc16_.geometry); + } + _loc6_.§_-09§(_loc15_.§_-Ei§.geometry); + _loc6_.§_-09§(_loc15_.§_-iA§.geometry); + _loc6_.§_-09§(_loc15_.shadow.geometry); + } + return new §_-2W§(_loc13_,_loc14_); + } + + private function §_-Ps§() : void + { + var _loc1_:§_-7-§ = new §_-7-§(20,20,20); + } + + private function §_-ab§() : void + { + this.§_-T2§ = null; + null; + } + + private function §_-N§() : §_-Fj§ + { + var _loc4_:BitmapData = null; + var _loc5_:Vector.<§_-ok§> = null; + var _loc6_:§_-Fj§ = null; + var _loc1_:BitmapData = this.config.§_-WX§.§_-o0§("flame/sprite") as BitmapData; + var _loc2_:Vector. = §_-mc§.§_-YA§(_loc1_); + var _loc3_:Vector.<§_-b9§> = new Vector.<§_-b9§>(); + for each(var _loc9_ in _loc2_) + { + _loc4_ = _loc9_; + _loc9_; + } + _loc5_ = new Vector.<§_-ok§>(); + _loc5_.push(new §_-ok§(0,3)); + _loc5_.push(new §_-ok§(0.5)); + _loc5_.push(new §_-ok§(0.75,0.2,0.2,0.2)); + _loc5_.push(new §_-ok§(1,0,0,0,0)); + return new §_-Fj§(_loc3_,_loc5_); + } + + private function §_-3i§() : void + { + this.§_-X7§(); + this.§_-N3§(); + this.§_-5L§(); + } + + private function §_-X7§() : void + { + var _loc2_:§_-fx§ = null; + var _loc3_:§_-Is§ = null; + var _loc4_:§_-bj§ = null; + var _loc5_:§_-jr§ = null; + var _loc6_:§_-bj§ = null; + var _loc7_:§_-bj§ = null; + var _loc8_:Vector.<§_-pi§> = null; + var _loc9_:Vector.<§_-b9§> = null; + var _loc10_:§_-Y1§ = null; + var _loc1_:§_-gw§ = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = this.gameKernel.§_-m8§().§_-d-§().collisionDetector; + _loc3_ = §_-Is§(_loc1_.getComponentStrict(§_-Is§)); + _loc4_ = _loc3_.getBody().state.position; + _loc5_ = new §_-jr§(); + if(_loc2_.§_-cX§(_loc4_,§_-bj§.DOWN,§_-HM§.STATIC,1000,null,_loc5_)) + { + _loc6_ = _loc5_.position.clone(); + _loc6_.z = _loc6_.z + 1; + _loc7_ = new §_-bj§(); + _loc7_.x = -Math.acos(_loc5_.normal.z); + if(_loc5_.normal.z < 0.999) + { + _loc7_.z = Math.atan2(-_loc5_.normal.x,_loc5_.normal.y); + } + _loc8_ = this.§_-pb§.getFrames("tank_explosion/shock_wave"); + _loc9_ = this.§_-0u§(_loc8_); + _loc10_ = §_-Y1§(this.gameKernel.§_-11§().§_-kP§(§_-Y1§)); + _loc10_.init(conShockSize.value,_loc6_,_loc7_,_loc9_,30,conShockSizeGrow.value); + this.gameKernel.§_-DZ§().each(_loc10_); + } + } + } + + private function §_-N3§() : void + { + var _loc2_:Vector.<§_-pi§> = null; + var _loc3_:Vector.<§_-b9§> = null; + var _loc4_:§_-Xx§ = null; + var _loc5_:§_-Is§ = null; + var _loc6_:§_-bj§ = null; + var _loc7_:Number = NaN; + var _loc8_:Number = NaN; + var _loc9_:Number = NaN; + var _loc1_:§_-gw§ = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = this.§_-pb§.getFrames("tank_explosion/explosion"); + _loc3_ = this.§_-0u§(_loc2_); + _loc4_ = §_-Xx§(this.gameKernel.§_-11§().§_-kP§(§_-Xx§)); + _loc5_ = §_-Is§(this.activeTank.getComponentStrict(§_-Is§)); + _loc6_ = _loc5_.getBody().state.position.clone(); + _loc6_.z = _loc6_.z + 100; + _loc7_ = Math.random() * Math.PI; + _loc8_ = 400; + _loc9_ = 25; + _loc4_.init(600,600,_loc3_,_loc6_,_loc7_,_loc8_,_loc9_,false); + this.gameKernel.§_-DZ§().each(_loc4_); + } + } + + private function §_-5L§() : void + { + var _loc2_:Number = NaN; + var _loc3_:Number = NaN; + var _loc4_:Number = NaN; + var _loc5_:Number = NaN; + var _loc6_:Number = NaN; + var _loc7_:Number = NaN; + var _loc8_:Number = NaN; + var _loc9_:int = 0; + var _loc10_:Vector.<§_-pi§> = null; + var _loc11_:Vector.<§_-b9§> = null; + var _loc12_:§_-Is§ = null; + var _loc13_:§_-bj§ = null; + var _loc14_:§_-bj§ = null; + var _loc15_:Number = NaN; + var _loc16_:§_-bj§ = null; + var _loc17_:int = 0; + var _loc18_:Number = NaN; + var _loc19_:Number = NaN; + var _loc20_:§_-7Y§ = null; + var _loc21_:Number = NaN; + var _loc1_:§_-gw§ = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = 100; + _loc3_ = 10 * Math.PI / 180; + _loc4_ = 60 * Math.PI / 180; + _loc5_ = 700; + _loc6_ = 1100; + _loc7_ = 15; + _loc8_ = -1000; + _loc9_ = 400; + _loc10_ = this.§_-pb§.getFrames("tank_explosion/smoke"); + _loc11_ = this.§_-0u§(_loc10_); + _loc12_ = §_-Is§(this.activeTank.getComponentStrict(§_-Is§)); + _loc13_ = _loc12_.getBody().state.position.clone(); + _loc13_.z = _loc13_.z + _loc2_; + _loc14_ = new §_-bj§(); + _loc15_ = Math.random() * Math.PI; + _loc16_ = new §_-bj§(); + _loc17_ = 0; + while(_loc17_ < 3) + { + _loc16_.x = Math.cos(_loc15_); + _loc16_.y = Math.sin(_loc15_); + _loc18_ = Math.random() * (_loc4_ - _loc3_) + _loc3_; + _loc19_ = _loc5_ + Math.random() * (_loc6_ - _loc5_); + _loc14_.copy(_loc16_).scale(Math.sin(_loc18_)).add(§_-bj§.UP).normalize().scale(_loc19_); + _loc20_ = §_-7Y§(this.gameKernel.§_-11§().§_-kP§(§_-7Y§)); + _loc21_ = Math.random() * Math.PI; + _loc20_.init(_loc9_,_loc9_,_loc11_,_loc13_,_loc14_,_loc8_,_loc21_,_loc7_,false); + this.gameKernel.§_-DZ§().each(_loc20_); + _loc15_ = _loc15_ + 2 / 3 * Math.PI; + _loc17_++; + } + } + } + + private function §_-0u§(param1:Vector.<§_-pi§>) : Vector.<§_-b9§> + { + FrameMaterialsFactory.INSTANCE.renderSystem = this.gameKernel.§_-DZ§(); + return this.§_-3u§.§_-6i§(param1,FrameMaterialsFactory.INSTANCE) as Vector.<§_-b9§>; + } + + private function §_-3R§(param1:§_-6A§, param2:Array) : void + { + var _loc3_:§_-gw§ = null; + var _loc4_:§_-cx§ = null; + var _loc5_:§_-BV§ = null; + for each(var _loc8_ in this.tanks) + { + _loc3_ = _loc8_; + _loc8_; + _loc4_ = §_-cx§(_loc3_.getComponentStrict(§_-cx§)); + _loc5_ = _loc4_.body; + param1.§_-MR§("Tank " + _loc5_.id); + param1.§_-MR§("position " + _loc5_.state.position); + param1.§_-MR§("velocity " + _loc5_.state.velocity); + } + } + } +} + +import §_-1e§.§_-Nh§; +import §_-1z§.§_-KJ§; +import §_-1z§.§_-b1§; +import §_-1z§.§_-pi§; +import §_-7A§.§_-3e§; +import §_-My§.§_-8z§; +import §_-O5§.§_-hM§; +import §_-R8§.§_-QM§; +import §_-Vh§.§_-YD§; +import §_-Vh§.§_-b9§; +import §_-Vh§.§_-pZ§; +import §_-Yn§.§_-L8§; +import §_-az§.§_-AG§; +import §_-cv§.§_-Tv§; +import §_-dz§.§_-2p§; +import §_-dz§.§_-Zh§; +import §_-e6§.§_-1I§; +import §_-nl§.Matrix4; +import §_-nl§.§_-bj§; +import §default§.§_-Vp§; +import §default§.§_-af§; +import flash.display.BitmapData; +import flash.media.Sound; +import flash.utils.ByteArray; +import §function§.§_-OF§; +import §function§.§_-Xx§; +import §return§.§_-mc§; + +class FrameMaterialsFactory implements §_-8z§ +{ + public static const INSTANCE:FrameMaterialsFactory = new FrameMaterialsFactory(); + + public var renderSystem:§_-1I§; + + public function FrameMaterialsFactory() + { + super(); + } + + public function createData(param1:Object) : Object + { + var _loc6_:§_-pZ§ = null; + var _loc2_:Vector.<§_-pi§> = param1 as Vector.<§_-pi§>; + var _loc3_:int = int(_loc2_.length); + var _loc4_:Vector.<§_-b9§> = new Vector.<§_-b9§>(_loc3_); + var _loc5_:int = 0; + while(_loc5_ < _loc3_) + { + this.renderSystem.§_-09§(_loc2_[_loc5_]); + _loc6_ = new §_-pZ§(_loc2_[_loc5_]); + _loc6_.§_-L4§ = true; + _loc4_[_loc5_] = _loc6_; + _loc5_++; + } + return _loc4_; + } +} + +class DummyTurretCallback implements §_-af§ +{ + public function DummyTurretCallback() + { + super(); + } + + public function onTurretControlChanged(param1:int, param2:Boolean) : void + { + } +} + +class PointHitRoundAmmo implements §_-Zh§ +{ + private var impactForce:Number; + + private var weaponDistanceWeakening:§_-QM§; + + private var weaponHitEffects:WeaponHitEffects; + + public function PointHitRoundAmmo(param1:§_-AG§) + { + var _loc5_:int = 0; + super(); + this.impactForce = 10000; + this.weaponDistanceWeakening = new §_-QM§(10000,15000,0.5); + var _loc2_:Vector.<§_-b9§> = new Vector.<§_-b9§>(); + var _loc4_:int = 0; + while(_loc4_ < 20) + { + _loc5_ = 255 - 255 / (20 - 1) * _loc4_; + _loc2_.push(new §_-YD§(§_-hM§.§_-TU§(_loc5_,_loc5_,_loc5_),_loc5_ / 255 + 0.5)); + _loc4_++; + } + this.weaponHitEffects = new WeaponHitEffects(null,_loc2_,param1); + } + + public function getRound() : §_-2p§ + { + return new §_-L8§(this.impactForce,this.weaponDistanceWeakening,this.weaponHitEffects); + } +} + +class WeaponHitEffects implements §_-OF§ +{ + private var sound:Sound; + + private var frames:Vector.<§_-b9§>; + + private var gameKernel:§_-AG§; + + public function WeaponHitEffects(param1:Sound, param2:Vector.<§_-b9§>, param3:§_-AG§) + { + super(); + this.sound = param1; + this.frames = param2; + this.gameKernel = param3; + } + + public function createEffects(param1:§_-bj§, param2:Number, param3:Number) : void + { + var _loc4_:§_-Xx§ = §_-Xx§(this.gameKernel.§_-11§().§_-kP§(§_-Xx§)); + _loc4_.init(600,600,this.frames,param1,0,50,30,false); + this.gameKernel.§_-DZ§().each(_loc4_); + } +} + +class TextureResourceCache +{ + private var textureLibrary:§_-Tv§; + + private var cache:Object = {}; + + public function TextureResourceCache(param1:§_-Tv§) + { + super(); + this.textureLibrary = param1; + } + + public function getResource(param1:String) : §_-pi§ + { + var _loc3_:Object = null; + var _loc2_:§_-pi§ = this.cache[param1]; + if(_loc2_ == null) + { + _loc3_ = this.textureLibrary.§_-o0§(param1); + if(_loc3_ is BitmapData) + { + _loc2_ = new §_-b1§(_loc3_ as BitmapData); + this.cache[param1] = _loc2_; + } + else if(_loc3_ is ByteArray) + { + _loc2_ = new §_-KJ§(_loc3_ as ByteArray); + this.cache[param1] = _loc2_; + } + } + return _loc2_; + } +} + +class MultiBitmapTextureResourceCache +{ + private var textureLibrary:§_-Tv§; + + private var cache:Object = {}; + + public function MultiBitmapTextureResourceCache(param1:§_-Tv§) + { + super(); + this.textureLibrary = param1; + } + + public function getFrames(param1:String) : Vector.<§_-pi§> + { + var _loc3_:BitmapData = null; + var _loc4_:Vector. = null; + var _loc5_:int = 0; + var _loc2_:Vector.<§_-pi§> = this.cache[param1]; + if(_loc2_ == null) + { + _loc3_ = this.textureLibrary.§_-o0§(param1) as BitmapData; + _loc4_ = §_-mc§.§_-YA§(_loc3_); + _loc2_ = new Vector.<§_-pi§>(_loc4_.length); + _loc5_ = 0; + while(_loc5_ < _loc4_.length) + { + _loc2_[_loc5_] = new §_-b1§(_loc4_[_loc5_]); + _loc5_++; + } + this.cache[param1] = _loc2_; + } + return _loc2_; + } +} + +class DummyTurret implements §_-3e§ +{ + public function DummyTurret() + { + super(); + } + + public function setTurret(param1:§_-Vp§) : void + { + } + + public function getTurretDirection() : Number + { + return 0; + } + + public function setTurretDirection(param1:Number) : void + { + } + + public function setTurretControls(param1:int) : Boolean + { + return false; + } + + public function centerTurret(param1:Boolean) : void + { + } + + public function setTurretMountPoint(param1:§_-bj§) : void + { + } + + public function getTurretPrimitives() : Vector.<§_-Nh§> + { + return null; + } + + public function getChassisMatrix() : Matrix4 + { + return null; + } + + public function getInterpolatedTurretDirection() : Number + { + return 0; + } + + public function getSkinMountPoint(param1:§_-bj§) : void + { + } + + public function getGunData(param1:int, param2:§_-bj§, param3:§_-bj§, param4:§_-bj§) : void + { + } + + public function getGunMuzzleData(param1:int, param2:§_-bj§, param3:§_-bj§) : void + { + param2.reset(0,0,2000); + param3.reset(0,0,1); + } + + public function getGunMuzzleData2(param1:int, param2:§_-bj§, param3:§_-bj§) : void + { + } + + public function getBarrelLength(param1:int) : Number + { + return 0; + } + + public function getBarrelCount() : int + { + return 0; + } +} diff --git a/src/?_-YQ?/?_-DN?.as b/src/?_-YQ?/?_-DN?.as new file mode 100644 index 0000000..a23e8d4 --- /dev/null +++ b/src/?_-YQ?/?_-DN?.as @@ -0,0 +1,92 @@ +package §_-YQ§ +{ + import §_-Ex§.§_-5P§; + import §_-I0§.§_-Jv§; + import §_-O5§.§_-Hk§; + import §_-RG§.A3DMapComponent; + import §_-az§.§_-AG§; + import §_-az§.§_-gw§; + import §_-az§.§_-ps§; + import §_-cv§.§_-YU§; + import §_-cv§.§_-cP§; + import §_-cv§.§_-dD§; + import §_-e6§.§_-1I§; + import flash.display.DisplayObjectContainer; + + public class §_-DN§ extends §_-ps§ + { + private var gameKernel:§_-AG§; + + private var config:§_-YU§; + + private var container:DisplayObjectContainer; + + private var preloader:Preloader; + + public function §_-DN§(param1:§_-AG§, param2:§_-YU§, param3:DisplayObjectContainer, param4:Preloader) + { + super(§_-AG§.EVENT_SYSTEM_PRIORITY + 1); + this.gameKernel = param1; + this.config = param2; + this.preloader = param4; + this.container = param3; + } + + override public function run() : void + { + var _loc1_:§_-1I§ = this.gameKernel.§_-DZ§(); + var _loc2_:§_-Jv§ = new §_-Jv§(_loc1_.§_-GW§(),this.gameKernel.§_-Ku§()); + _loc1_.§_-N8§(_loc2_); + _loc2_.§_-oa§(0,0,1000); + _loc2_.§_-38§(0,2000,0); + this.container.addChild(_loc1_.§_-0D§()); + var _loc3_:§_-gw§ = this.§_-pL§(); + this.gameKernel.§_-oR§(_loc3_); + this.preloader.§_-QU§(0.75); + §_-Uw§.addTask(new §_-A3§(§_-AG§.INPUT_SYSTEM_PRIORITY + 1,this.config,this.gameKernel,_loc2_,this.preloader)); + §_-Uw§.killTask(this); + } + + private function §_-pL§() : §_-gw§ + { + var _loc2_:§_-Hk§ = null; + var _loc6_:§_-dD§ = null; + var _loc7_:String = null; + var _loc3_:§_-cP§ = this.config.§_-WG§.§_-hJ§("skybox"); + if(_loc3_ != null) + { + _loc2_ = new §_-Hk§(); + _loc6_ = _loc3_.§_-EZ§(this.config.§_-f§()); + for each(_loc7_ in [§_-5P§.BACK,§_-5P§.BOTTOM,§_-5P§.FRONT,§_-5P§.LEFT,§_-5P§.RIGHT,§_-5P§.TOP]) + { + _loc2_.§_-9v§(_loc7_,_loc6_.§_-Vf§(_loc7_)); + } + } + var _loc4_:§_-gw§ = new §_-gw§(§_-gw§.§_-9o§()); + var _loc5_:A3DMapComponent = new A3DMapComponent(this.config.mapData,_loc2_,1000000,new MapListener(this.gameKernel.§_-Ev§())); + _loc4_.§_-2d§(_loc5_); + _loc4_.§_-m7§(); + return _loc4_; + } + } +} + +import §_-RG§.§_-7J§; +import §_-az§.§_-Ss§; +import §_-j-§.§_-B7§; + +class MapListener implements §_-7J§ +{ + private var eventSystem:§_-B7§; + + public function MapListener(param1:§_-B7§) + { + super(); + this.eventSystem = param1; + } + + public function onA3DMapComplete() : void + { + this.eventSystem.dispatchEvent(§_-Ss§.MAP_COMPLETE,null); + } +} diff --git a/src/?_-Yj?/TankMaterial2.as b/src/?_-Yj?/TankMaterial2.as new file mode 100644 index 0000000..d8a4399 --- /dev/null +++ b/src/?_-Yj?/TankMaterial2.as @@ -0,0 +1,699 @@ +package §_-Yj§ +{ + import §_-1z§.§_-b1§; + import §_-1z§.§_-gA§; + import §_-1z§.§_-pi§; + import §_-8D§.§_-Jo§; + import §_-8D§.§_-OX§; + import §_-8D§.§_-QF§; + import §_-8D§.§_-WR§; + import §_-8D§.§_-be§; + import §_-8D§.§_-d6§; + import §_-8D§.§_-jw§; + import §_-Ex§.§_-a2§; + import §_-M8§.§_-5§; + import §_-M8§.§_-Xk§; + import §_-M8§.§_-hR§; + import §_-R1§.DirectionalLight; + import §_-R1§.OmniLight; + import §_-Vh§.§_-Pt§; + import §_-Vh§.§_-RB§; + import §_-Vh§.§_-b9§; + import §_-Vh§.§_-pZ§; + import §_-Z2§.§_-ZC§; + import §_-Z2§.§_-cD§; + import alternativa.engine3d.alternativa3d; + import flash.display.BitmapData; + import flash.display3D.Context3DBlendFactor; + import flash.display3D.Context3DProgramType; + import flash.display3D.VertexBuffer3D; + import flash.utils.Dictionary; + import flash.utils.getDefinitionByName; + import flash.utils.getQualifiedClassName; + + use namespace alternativa3d; + + public class TankMaterial2 extends §_-pZ§ + { + private static var fogTexture:§_-pi§; + + public static const DISABLED:int = 0; + + public static const SIMPLE:int = 1; + + public static const ADVANCED:int = 2; + + public static var fogMode:int = DISABLED; + + public static var fogNear:Number = 1000; + + public static var fogFar:Number = 5000; + + public static var fogMaxDensity:Number = 1; + + public static var fogColorR:Number = 200 / 255; + + public static var fogColorG:Number = 162 / 255; + + public static var fogColorB:Number = 200 / 255; + + private static const passSimpleFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + + private static const outputWithSimpleFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul t1.xyz, c0.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithSimpleFog"); + + private static const postPassAdvancedFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + + private static const outputWithAdvancedFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t1.xyz, t1.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithAdvancedFog"); + + private static const objectsProgramsSets:Dictionary = new Dictionary(); + + private static const lightContainer:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(1,true); + + private static const actualLigths:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(); + + private static const passUVProcedure:§_-Xk§ = new §_-Xk§(["#a0=aUV","#v0=vUV","mov v0, a0"],"passUVProcedure"); + + private static const diffuseProcedure:§_-Xk§ = §_-Xk§.§_-En§(["#v0=vUV","#c0=cTiling","#s0=sColormap","#s1=sDiffuse","#s2=sSurface","mul t0, v0, c0","tex t1, t0, s0 <2d, repeat, linear, miplinear>","tex t0, v0, s1 <2d, clamp, linear, miplinear>","add t2, t0, t0","mul t2, t2, t1","tex t1, v0, s2 <2d, clamp, linear, miplinear>","mul t2, t2, t1.x","add t2, t2, t0","mul t0, t0, t1.x","sub o0, t2, t0"],"diffuse"); + + private static const setColorProcedure:§_-Xk§ = new §_-Xk§(["mov o0, i0"],"setColorProcedure"); + + private static const outputWithLightProcedure:§_-Xk§ = new §_-Xk§(["mul t0.xyz, i0.xyz, i1.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithLightProcedure"); + + private static const outputProcedure:§_-Xk§ = new §_-Xk§(["mov o0, i0"],"outputProcedure"); + + private static const passVaryingsProcedure:§_-Xk§ = new §_-Xk§(["#c0=cCamera","#v0=vPosition","#v1=vViewVector","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryingsProcedure"); + + private static const getNormalAndViewProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#v1=vViewVector","#c0=cSurface","#s0=sBump","tex t0, v0, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","neg t0.y, t0.y","nrm o0.xyz, t0.xyz","nrm o1.xyz, v1"],"getNormalAndViewProcedure"); + + private static const getSpecularOptionsProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#c0=cSurface","#s0=sSurface","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul i0.w, c0.y, t0.z","mul i1.w, c0.z, t0.y"],"getSpecularOptionsProcedure"); + + public var diffuse:§_-pi§; + + public var colorMap:§_-pi§; + + public var surfaceMap:§_-pi§; + + public var §_-jM§:Number = 1; + + public var §_-Sf§:Number = 1; + + public var normalMap:§_-pi§; + + public var glossiness:Number = 100; + + public var §_-kj§:Number = 1; + + private const outputWithSpecularProcedure:§_-Xk§ = new §_-Xk§(["mul t0.xyz, i0.xyz, i1.xyz","add t0.xyz, t0.xyz, i2.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithSpecularProcedure"); + + public function TankMaterial2(colorMap:§_-pi§ = null, diffuse:§_-pi§ = null, normalMap:§_-pi§ = null, surfaceMap:§_-pi§ = null) + { + super(); + this.colorMap = colorMap; + this.diffuse = diffuse; + this.normalMap = normalMap; + this.surfaceMap = surfaceMap; + } + + public static function §_-RX§(texture:§_-pi§) : void + { + fogTexture = texture; + } + + private static function directionalProcedure(light:§_-Jo§, add:Boolean) : §_-Xk§ + { + return new §_-Xk§(["#c0=c" + light.alternativa3d::_-oG + "Direction","#c1=c" + light.alternativa3d::_-oG + "Color","add t0.xyz, i1.xyz, c0.xyz","nrm t0.xyz, t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, i0.w","mul t0.w, t0.w, i1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x",add ? "mul t0.xyz, c1.xyz, t0.x" : "mul o0.xyz, c1.xyz, t0.x",add ? "add o0.xyz, o0.xyz, t0.xyz" : "mov o0.w, c0.w",add ? "mul t0.xyz, c1.xyz, t0.w" : "mul o1.xyz, c1.xyz, t0.w",add ? "add o1.xyz, o1.xyz, t0.xyz" : "mov o1.w, c0.w"],"directionalProcedure"); + } + + private static function omniProcedure(light:§_-Jo§, add:Boolean) : §_-Xk§ + { + return new §_-Xk§(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, i0.w","mul t1.w, t1.w, i1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx",add ? "mul t1.xyz, t0.xyz, t0.w" : "mul o0.xyz, t0.xyz, t0.w",add ? "add o0.xyz, o0.xyz, t1.xyz" : "mov o0.w, c0.w",add ? "mul t1.xyz, t0.xyz, t1.w" : "mul o1.xyz, t0.xyz, t1.w",add ? "add o1.xyz, o1.xyz, t1.xyz" : "mov o1.w, c0.w"],"omniProcedure"); + } + + override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void + { + super.alternativa3d::fillResources(resources,resourceType); + if(this.diffuse != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.diffuse)) as Class,resourceType))) + { + resources[this.diffuse] = true; + } + if(this.colorMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.colorMap)) as Class,resourceType))) + { + resources[this.colorMap] = true; + } + if(this.normalMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + { + resources[this.normalMap] = true; + } + if(this.surfaceMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.surfaceMap)) as Class,resourceType))) + { + resources[this.surfaceMap] = true; + } + } + + override alternativa3d function collectDraws(camera:§_-be§, surface:§_-a2§, geometry:§_-gA§, lights:Vector.<§_-Jo§>, lightsLength:int, objectRenderPriority:int = -1) : void + { + var i:int = 0; + var light:§_-Jo§ = null; + var shadowedLight:DirectionalLight = null; + var drawUnit:§_-QF§ = null; + var shadowOrAmbientProgram:ShadowOrAmbientProgram = null; + var lightingProgram:LightingProgram = null; + var numShadows:int = 0; + var shadow:§_-ZC§ = null; + var lightsPrograms:Dictionary = null; + var fogProgram:FogProgram = null; + if(this.diffuse == null || this.colorMap == null || this.normalMap == null || this.surfaceMap == null || this.diffuse.alternativa3d::_texture == null || this.colorMap.alternativa3d::_texture == null || this.normalMap.alternativa3d::_texture == null || this.surfaceMap.alternativa3d::_texture == null) + { + return; + } + var object:§_-OX§ = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]); + if(positionBuffer == null || uvBuffer == null) + { + return; + } + var lightsKey:String = ""; + var actualLightsLength:int = 0; + for(i = 0; i < lightsLength; ) + { + light = lights[i]; + if(light is DirectionalLight && shadowedLight == null && DirectionalLight(light).shadow != null) + { + shadowedLight = DirectionalLight(light); + } + else if(actualLightsLength < 8 && (light is OmniLight || light is DirectionalLight)) + { + actualLigths[actualLightsLength] = light; + lightsKey += light.alternativa3d::_-oG; + actualLightsLength++; + } + i++; + } + var programs:Array = objectsProgramsSets[object.alternativa3d::transformProcedure]; + if(programs == null) + { + programs = []; + objectsProgramsSets[object.alternativa3d::transformProcedure] = programs; + } + if(shadowedLight != null) + { + shadowOrAmbientProgram = programs[0]; + if(shadowOrAmbientProgram == null) + { + shadowOrAmbientProgram = this.§_-3O§(object,shadowedLight.shadow,true); + shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); + programs[0] = shadowOrAmbientProgram; + } + drawUnit = this.§_-Mi§(shadowOrAmbientProgram,shadowedLight.shadow,true,camera,object,surface,geometry); + } + else + { + shadowOrAmbientProgram = programs[1]; + if(shadowOrAmbientProgram == null) + { + shadowOrAmbientProgram = this.§_-3O§(object,null,true); + shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); + programs[1] = shadowOrAmbientProgram; + } + drawUnit = this.§_-Mi§(shadowOrAmbientProgram,null,true,camera,object,surface,geometry); + } + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.TANK_OPAQUE); + if(shadowedLight != null) + { + numShadows = object.alternativa3d::shadowRenderers != null ? int(object.alternativa3d::shadowRenderers.length) : 0; + for(i = 0; i < numShadows; ) + { + shadow = object.alternativa3d::shadowRenderers[i]; + if(shadow is §_-cD§) + { + shadowOrAmbientProgram = programs[2]; + if(shadowOrAmbientProgram == null) + { + shadowOrAmbientProgram = this.§_-3O§(object,shadow,false); + shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); + programs[2] = shadowOrAmbientProgram; + } + drawUnit = this.§_-Mi§(shadowOrAmbientProgram,shadow,false,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ZERO; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_COLOR; + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.SHADOWS); + } + i++; + } + lightingProgram = programs[3]; + if(lightingProgram == null) + { + lightContainer[0] = shadowedLight; + lightingProgram = this.§_-F§(object,lightContainer,1); + lightingProgram.upload(camera.alternativa3d::context3D); + programs[3] = lightingProgram; + } + drawUnit = this.§_-MK§(lightingProgram,lightContainer,1,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.DESTINATION_ALPHA; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.SHADOWED_LIGHTS); + } + if(actualLightsLength > 0) + { + lightsPrograms = programs[4]; + if(lightsPrograms == null) + { + lightsPrograms = new Dictionary(false); + programs[4] = lightsPrograms; + } + lightingProgram = lightsPrograms[lightsKey]; + if(lightingProgram == null) + { + lightingProgram = this.§_-F§(object,actualLigths,actualLightsLength); + lightingProgram.upload(camera.alternativa3d::context3D); + lightsPrograms[lightsKey] = lightingProgram; + } + drawUnit = this.§_-MK§(lightingProgram,actualLigths,actualLightsLength,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.LIGHTS); + } + if(fogMode == SIMPLE || fogMode == ADVANCED) + { + fogProgram = programs[int(fogMode + 4)]; + if(fogProgram == null) + { + fogProgram = this.§_-Ck§(object); + fogProgram.upload(camera.alternativa3d::context3D); + programs[int(fogMode + 4)] = fogProgram; + } + drawUnit = this.§_-P8§(fogProgram,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA; + camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.FOG); + } + actualLigths.length = 0; + } + + private function §_-3O§(object:§_-OX§, shadow:§_-ZC§, ambient:Boolean) : ShadowOrAmbientProgram + { + var shadowProc:§_-Xk§ = null; + var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX); + var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT); + var positionVar:String = "aPosition"; + vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::_-di(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.§_-on§(alternativa3d::_projectProcedure); + vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar); + if(ambient) + { + vertexLinker.§_-on§(passUVProcedure); + } + var colorConst:String = ambient ? "cAmbient" : "cShadow"; + fragmentLinker.§_-LU§(colorConst,§_-5§.CONSTANT); + fragmentLinker.§_-LU§("tLight"); + fragmentLinker.§_-on§(setColorProcedure); + fragmentLinker.§_-FS§(setColorProcedure,colorConst); + fragmentLinker.§_-qd§(setColorProcedure,"tLight"); + if(shadow != null) + { + vertexLinker.§_-on§(shadow.getVShader()); + shadowProc = shadow.getFIntensityShader(); + fragmentLinker.§_-on§(shadowProc); + fragmentLinker.§_-qd§(shadowProc,"tLight"); + } + if(ambient) + { + fragmentLinker.§_-LU§("tColor"); + fragmentLinker.§_-on§(diffuseProcedure); + fragmentLinker.§_-qd§(diffuseProcedure,"tColor"); + fragmentLinker.§_-on§(outputWithLightProcedure); + fragmentLinker.§_-FS§(outputWithLightProcedure,"tColor","tLight"); + } + else + { + fragmentLinker.§_-on§(outputProcedure); + fragmentLinker.§_-FS§(outputProcedure,"tLight"); + } + fragmentLinker.§_-NA§(vertexLinker); + return new ShadowOrAmbientProgram(vertexLinker,fragmentLinker); + } + + private function §_-Mi§(program:ShadowOrAmbientProgram, shadow:§_-ZC§, ambient:Boolean, camera:§_-be§, object:§_-OX§, surface:§_-a2§, geometry:§_-gA§) : §_-QF§ + { + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]); + var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + if(ambient) + { + drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]); + } + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + if(ambient) + { + drawUnit.alternativa3d::_-Ry(program.cAmbient,camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1); + drawUnit.alternativa3d::_-Ry(program.cTiling,this.§_-jM§,this.§_-Sf§,0,0); + drawUnit.alternativa3d::setTextureAt(program.sDiffuse,this.diffuse.alternativa3d::_texture); + drawUnit.alternativa3d::setTextureAt(program.sColormap,this.colorMap.alternativa3d::_texture); + drawUnit.alternativa3d::setTextureAt(program.sSurface,this.surfaceMap.alternativa3d::_texture); + } + else + { + drawUnit.alternativa3d::_-Ry(program.cShadow,1,1,1,1); + } + if(shadow != null) + { + shadow.applyShader(drawUnit,program,object,camera); + } + return drawUnit; + } + + private function §_-F§(object:§_-OX§, lights:Vector.<§_-Jo§>, lightsLength:int) : LightingProgram + { + var procedure:§_-Xk§ = null; + var light:§_-Jo§ = null; + var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX); + var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT); + var positionVar:String = "aPosition"; + vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::_-di(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.§_-on§(alternativa3d::_projectProcedure); + vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar); + vertexLinker.§_-on§(passUVProcedure); + vertexLinker.§_-on§(passVaryingsProcedure); + vertexLinker.§_-FS§(passVaryingsProcedure,positionVar); + fragmentLinker.§_-LU§("tNormal"); + fragmentLinker.§_-LU§("tView"); + fragmentLinker.§_-on§(getNormalAndViewProcedure); + fragmentLinker.§_-qd§(getNormalAndViewProcedure,"tNormal","tView"); + fragmentLinker.§_-on§(getSpecularOptionsProcedure); + fragmentLinker.§_-FS§(getSpecularOptionsProcedure,"tNormal","tView"); + fragmentLinker.§_-LU§("tLight"); + fragmentLinker.§_-LU§("tHLight"); + var first:Boolean = true; + for(var i:int = 0; i < lightsLength; ) + { + light = lights[i]; + if(light is DirectionalLight) + { + procedure = directionalProcedure(light,!first); + fragmentLinker.§_-on§(procedure); + fragmentLinker.§_-FS§(procedure,"tNormal","tView"); + fragmentLinker.§_-qd§(procedure,"tLight","tHLight"); + if(first) + { + first = false; + } + } + else if(light is OmniLight) + { + procedure = omniProcedure(light,!first); + fragmentLinker.§_-on§(procedure); + fragmentLinker.§_-FS§(procedure,"tNormal","tView"); + fragmentLinker.§_-qd§(procedure,"tLight","tHLight"); + if(first) + { + first = false; + } + } + i++; + } + fragmentLinker.§_-LU§("outColor"); + fragmentLinker.§_-on§(diffuseProcedure); + fragmentLinker.§_-qd§(diffuseProcedure,"outColor"); + fragmentLinker.§_-on§(this.outputWithSpecularProcedure); + fragmentLinker.§_-FS§(this.outputWithSpecularProcedure,"outColor","tLight","tHLight"); + fragmentLinker.§_-NA§(vertexLinker); + return new LightingProgram(vertexLinker,fragmentLinker); + } + + private function §_-MK§(program:LightingProgram, lights:Vector.<§_-Jo§>, lightsLength:int, camera:§_-be§, object:§_-OX§, surface:§_-a2§, geometry:§_-gA§) : §_-QF§ + { + var rScale:Number = NaN; + var transform:§_-jw§ = null; + var light:§_-Jo§ = null; + var len:Number = NaN; + var omni:OmniLight = null; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]); + var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d:: if(program.cCamera,object.alternativa3d::cameraToLocalTransform.d,object.alternativa3d::cameraToLocalTransform.h,object.alternativa3d::cameraToLocalTransform.l,1); + for(var i:int = 0; i < lightsLength; ) + { + light = lights[i]; + if(light is DirectionalLight) + { + transform = light.alternativa3d::_-cl; + len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + else if(light is OmniLight) + { + omni = OmniLight(light); + transform = light.alternativa3d::_-cl; + rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); + rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); + rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); + rScale /= 3; + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + i++; + } + drawUnit.alternativa3d::_-Ry(program.cSurface,0,this.glossiness,this.§_-kj§,1); + drawUnit.alternativa3d::_-Ry(program.cTiling,this.§_-jM§,this.§_-Sf§,0,0); + drawUnit.alternativa3d::setTextureAt(program.sDiffuse,this.diffuse.alternativa3d::_texture); + drawUnit.alternativa3d::setTextureAt(program.sColormap,this.colorMap.alternativa3d::_texture); + drawUnit.alternativa3d::setTextureAt(program.sSurface,this.surfaceMap.alternativa3d::_texture); + drawUnit.alternativa3d::setTextureAt(program.sBump,this.normalMap.alternativa3d::_texture); + return drawUnit; + } + + private function §_-Ck§(object:§_-OX§) : FogProgram + { + var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX); + var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT); + var positionVar:String = "aPosition"; + vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::_-di(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.§_-on§(alternativa3d::_projectProcedure); + vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar); + if(fogMode == SIMPLE) + { + vertexLinker.§_-on§(passSimpleFogConstProcedure); + vertexLinker.§_-FS§(passSimpleFogConstProcedure,positionVar); + fragmentLinker.§_-on§(outputWithSimpleFogProcedure); + } + else + { + vertexLinker.§_-LU§("projected"); + vertexLinker.§_-qd§(alternativa3d::_projectProcedure,"projected"); + vertexLinker.§_-on§(postPassAdvancedFogConstProcedure); + vertexLinker.§_-FS§(postPassAdvancedFogConstProcedure,positionVar,"projected"); + fragmentLinker.§_-on§(outputWithAdvancedFogProcedure); + } + fragmentLinker.§_-NA§(vertexLinker); + return new FogProgram(vertexLinker,fragmentLinker); + } + + private function §_-P8§(program:FogProgram, camera:§_-be§, object:§_-OX§, surface:§_-a2§, geometry:§_-gA§) : §_-QF§ + { + var lm:§_-jw§ = null; + var dist:Number = NaN; + var cLocal:§_-jw§ = null; + var halfW:Number = NaN; + var leftX:Number = NaN; + var leftY:Number = NaN; + var rightX:Number = NaN; + var rightY:Number = NaN; + var angle:Number = NaN; + var dx:Number = NaN; + var dy:Number = NaN; + var lens:Number = NaN; + var uScale:Number = NaN; + var uRight:Number = NaN; + var bmd:BitmapData = null; + var i:int = 0; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + if(fogMode == SIMPLE || fogMode == ADVANCED) + { + lm = object.alternativa3d::localToCameraTransform; + dist = fogFar - fogNear; + drawUnit.alternativa3d:: if(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::_-Ry(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity); + } + if(fogMode == SIMPLE) + { + drawUnit.alternativa3d::_-Ry(program.cFogColor,fogColorR,fogColorG,fogColorB); + } + if(fogMode == ADVANCED) + { + if(fogTexture == null) + { + bmd = new BitmapData(32,1,false,16711680); + for(i = 0; i < 32; i++) + { + bmd.setPixel(i,0,i / 32 * 255 << 16); + } + fogTexture = new §_-b1§(bmd); + fogTexture.upload(camera.alternativa3d::context3D); + } + cLocal = camera.alternativa3d::localToGlobalTransform; + halfW = camera.view.width / 2; + leftX = -halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; + leftY = -halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; + rightX = halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; + rightY = halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; + angle = Math.atan2(leftY,leftX) - Math.PI / 2; + if(angle < 0) + { + angle += Math.PI * 2; + } + dx = rightX - leftX; + dy = rightY - leftY; + lens = Number(Math.sqrt(dx * dx + dy * dy)); + leftX /= lens; + leftY /= lens; + rightX /= lens; + rightY /= lens; + uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; + uRight = angle / Math.PI / 2; + drawUnit.alternativa3d::_-Ry(program.cFogConsts,0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setTextureAt(program.sFogTexture,fogTexture.alternativa3d::_texture); + } + return drawUnit; + } + + override public function clone() : §_-b9§ + { + var cloned:TankMaterial2 = new TankMaterial2(this.colorMap,this.diffuse,this.normalMap,this.surfaceMap); + cloned.§_-kj§ = this.§_-kj§; + cloned.glossiness = this.glossiness; + return cloned; + } + } +} + +import §_-M8§.§_-hR§; +import §_-Vh§.§_-RB§; + +class ShadowOrAmbientProgram extends §_-RB§ +{ + public var aPosition:int; + + public var aUV:int; + + public var cProjMatrix:int; + + public var cAmbient:int; + + public var cTiling:int; + + public var sDiffuse:int; + + public var sColormap:int; + + public var sSurface:int; + + public var cShadow:int; + + public function ShadowOrAmbientProgram(vertex:§_-hR§, fragment:§_-hR§) + { + super(vertex,fragment); + this.aPosition = vertex.§_-Dj§("aPosition"); + this.aUV = vertex.§_-Dj§("aUV"); + this.cProjMatrix = vertex.§_-Dj§("cProjMatrix"); + this.cAmbient = fragment.§_-Dj§("cAmbient"); + this.cTiling = fragment.§_-Dj§("cTiling"); + this.sDiffuse = fragment.§_-Dj§("sDiffuse"); + this.sColormap = fragment.§_-Dj§("sColormap"); + this.sSurface = fragment.§_-Dj§("sSurface"); + this.cShadow = fragment.§_-Dj§("cShadow"); + } +} + +class LightingProgram extends §_-RB§ +{ + public var aPosition:int; + + public var aUV:int; + + public var cProjMatrix:int; + + public var cCamera:int; + + public var cSurface:int; + + public var cTiling:int; + + public var sDiffuse:int; + + public var sColormap:int; + + public var sSurface:int; + + public var sBump:int; + + public function LightingProgram(vertex:§_-hR§, fragment:§_-hR§) + { + super(vertex,fragment); + this.aPosition = vertex.§_-Dj§("aPosition"); + this.aUV = vertex.§_-Dj§("aUV"); + this.cProjMatrix = vertex.§_-Dj§("cProjMatrix"); + this.cCamera = vertex.§_-Dj§("cCamera"); + this.cSurface = fragment.§_-Dj§("cSurface"); + this.cTiling = fragment.§_-Dj§("cTiling"); + this.sDiffuse = fragment.§_-Dj§("sDiffuse"); + this.sColormap = fragment.§_-Dj§("sColormap"); + this.sSurface = fragment.§_-Dj§("sSurface"); + this.sBump = fragment.§_-Dj§("sBump"); + } +} + +class FogProgram extends §_-RB§ +{ + public var aPosition:int; + + public var cProjMatrix:int; + + public var cFogSpace:int; + + public var cFogRange:int; + + public var cFogColor:int; + + public var cFogConsts:int; + + public var sFogTexture:int; + + public function FogProgram(vertex:§_-hR§, fragment:§_-hR§) + { + super(vertex,fragment); + this.aPosition = vertex.§_-Dj§("aPosition"); + this.cProjMatrix = vertex.§_-Dj§("cProjMatrix"); + this.cFogSpace = vertex.§_-Dj§("cFogSpace"); + this.cFogRange = fragment.§_-Dj§("cFogRange"); + this.cFogColor = fragment.§_-Dj§("cFogColor"); + this.cFogConsts = fragment.§_-Dj§("cFogConsts"); + this.sFogTexture = fragment.§_-Dj§("sFogTexture"); + } +} diff --git a/src/package_25/name_414.as b/src/?_-aF?/?_-B0?.as similarity index 84% rename from src/package_25/name_414.as rename to src/?_-aF?/?_-B0?.as index 3130562..0675e93 100644 --- a/src/package_25/name_414.as +++ b/src/?_-aF?/?_-B0?.as @@ -1,8 +1,8 @@ -package package_25 +package §_-aF§ { import flash.utils.*; - public class name_414 + public class §_-B0§ { private static var initialized:Boolean = false; @@ -190,16 +190,16 @@ package package_25 private static const CLAMP:String = "clamp"; - private var var_584:ByteArray = null; + private var §_-0e§:ByteArray = null; - private var var_582:String = ""; + private var §_-iF§:String = ""; - private var var_583:Boolean = false; + private var §_-9J§:Boolean = false; - public function name_414(debugging:Boolean = false) + public function §_-B0§(debugging:Boolean = false) { super(); - this.var_583 = debugging; + this.§_-9J§ = debugging; if(!initialized) { init(); @@ -281,12 +281,12 @@ package package_25 public function get error() : String { - return this.var_582; + return this.§_-iF§; } - public function get method_644() : ByteArray + public function get §_-Ky§() : ByteArray { - return this.var_584; + return this.§_-0e§; } public function assemble(mode:String, source:String, verbose:Boolean = false) : ByteArray @@ -332,8 +332,8 @@ package package_25 var index:uint = 0; var byteStr:String = null; var start:uint = uint(getTimer()); - this.var_584 = new ByteArray(); - this.var_582 = ""; + this.§_-0e§ = new ByteArray(); + this.§_-iF§ = ""; var isFrag:Boolean = false; if(mode == FRAGMENT) { @@ -341,19 +341,19 @@ package package_25 } else if(mode != VERTEX) { - this.var_582 = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\"."; + this.§_-iF§ = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\"."; } - this.method_644.endian = Endian.LITTLE_ENDIAN; - this.method_644.writeByte(160); - this.method_644.writeUnsignedInt(1); - this.method_644.writeByte(161); - this.method_644.writeByte(isFrag ? 1 : 0); + this.§_-Ky§.endian = Endian.LITTLE_ENDIAN; + this.§_-Ky§.writeByte(160); + this.§_-Ky§.writeUnsignedInt(1); + this.§_-Ky§.writeByte(161); + this.§_-Ky§.writeByte(isFrag ? 1 : 0); var lines:Array = source.replace(/[\f\n\r\v]+/g,"\n").split("\n"); var nest:int = 0; var nops:int = 0; var lng:int = int(lines.length); i = 0; - while(i < lng && this.var_582 == "") + while(i < lng && this.§_-iF§ == "") { line = new String(lines[i]); startcomment = int(line.search("//")); @@ -369,7 +369,7 @@ package package_25 } opCode = line.match(/^\w{3}/ig); opFound = OPMAP[opCode[0]]; - if(this.var_583) + if(this.§_-9J§) { trace(opFound); } @@ -388,7 +388,7 @@ package package_25 nest--; if(nest < 0) { - this.var_582 = "error: conditional closes without open."; + this.§_-iF§ = "error: conditional closes without open."; break; } } @@ -397,30 +397,30 @@ package package_25 nest++; if(nest > MAX_NESTING) { - this.var_582 = "error: nesting to deep, maximum allowed is " + MAX_NESTING + "."; + this.§_-iF§ = "error: nesting to deep, maximum allowed is " + MAX_NESTING + "."; break; } } if(Boolean(opFound.flags & OP_FRAG_ONLY) && !isFrag) { - this.var_582 = "error: opcode is only allowed in fragment programs."; + this.§_-iF§ = "error: opcode is only allowed in fragment programs."; break; } if(verbose) { trace("emit opcode=" + opFound); } - this.method_644.writeUnsignedInt(opFound.emitCode); + this.§_-Ky§.writeUnsignedInt(opFound.emitCode); nops++; if(nops > MAX_OPCODES) { - this.var_582 = "error: too many opcodes. maximum is " + MAX_OPCODES + "."; + this.§_-iF§ = "error: too many opcodes. maximum is " + MAX_OPCODES + "."; break; } regs = line.match(/vc\[([vof][actps]?)(\d*)?(\.[xyzw](\+\d{1,3})?)?\](\.[xyzw]{1,4})?|([vof][actps]?)(\d*)?(\.[xyzw]{1,4})?/gi); if(regs.length != opFound.numRegister) { - this.var_582 = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + "."; + this.§_-iF§ = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + "."; break; } badreg = false; @@ -441,13 +441,13 @@ package package_25 } res = regs[j].match(/^\b[A-Za-z]{1,2}/ig); regFound = REGMAP[res[0]]; - if(this.var_583) + if(this.§_-9J§) { trace(regFound); } if(regFound == null) { - this.var_582 = "error: could not parse operand " + j + " (" + regs[j] + ")."; + this.§_-iF§ = "error: could not parse operand " + j + " (" + regs[j] + ")."; badreg = true; break; } @@ -455,20 +455,20 @@ package package_25 { if(!(regFound.flags & REG_FRAG)) { - this.var_582 = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs."; + this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs."; badreg = true; break; } if(isRelative) { - this.var_582 = "error: register operand " + j + " (" + regs[j] + ") relative adressing not allowed in fragment programs."; + this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") relative adressing not allowed in fragment programs."; badreg = true; break; } } else if(!(regFound.flags & REG_VERT)) { - this.var_582 = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs."; + this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs."; badreg = true; break; } @@ -481,7 +481,7 @@ package package_25 } if(regFound.range < regidx) { - this.var_582 = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + "."; + this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + "."; badreg = true; break; } @@ -494,7 +494,7 @@ package package_25 reloffset = 0; if(isDest && isRelative) { - this.var_582 = "error: relative can not be destination"; + this.§_-iF§ = "error: relative can not be destination"; badreg = true; break; } @@ -537,7 +537,7 @@ package package_25 regFoundRel = REGMAP[relname[0]]; if(regFoundRel == null) { - this.var_582 = "error: bad index register"; + this.§_-iF§ = "error: bad index register"; badreg = true; break; } @@ -545,7 +545,7 @@ package package_25 selmatch = relreg[0].match(/(\.[xyzw]{1,1})/); if(selmatch.length == 0) { - this.var_582 = "error: bad index register select"; + this.§_-iF§ = "error: bad index register select"; badreg = true; break; } @@ -561,7 +561,7 @@ package package_25 } if(reloffset < 0 || reloffset > 255) { - this.var_582 = "error: index offset " + reloffset + " out of bounds. [0..255]"; + this.§_-iF§ = "error: index offset " + reloffset + " out of bounds. [0..255]"; badreg = true; break; } @@ -576,9 +576,9 @@ package package_25 } if(isDest) { - this.method_644.writeShort(regidx); - this.method_644.writeByte(regmask); - this.method_644.writeByte(regFound.emitCode); + this.§_-Ky§.writeShort(regidx); + this.§_-Ky§.writeByte(regmask); + this.§_-Ky§.writeByte(regFound.emitCode); pad -= 32; } else if(isSampler) @@ -614,10 +614,10 @@ package package_25 samplerbits |= uint(optfound.mask) << uint(optfound.flag); } } - this.method_644.writeShort(regidx); - this.method_644.writeByte(int(bias * 8)); - this.method_644.writeByte(0); - this.method_644.writeUnsignedInt(samplerbits); + this.§_-Ky§.writeShort(regidx); + this.§_-Ky§.writeByte(int(bias * 8)); + this.§_-Ky§.writeByte(0); + this.§_-Ky§.writeUnsignedInt(samplerbits); if(verbose) { trace(" bits: " + (samplerbits - 5)); @@ -628,21 +628,21 @@ package package_25 { if(j == 0) { - this.method_644.writeUnsignedInt(0); + this.§_-Ky§.writeUnsignedInt(0); pad -= 32; } - this.method_644.writeShort(regidx); - this.method_644.writeByte(reloffset); - this.method_644.writeByte(regmask); - this.method_644.writeByte(regFound.emitCode); - this.method_644.writeByte(reltype); - this.method_644.writeShort(isRelative ? relsel | 1 << 15 : 0); + this.§_-Ky§.writeShort(regidx); + this.§_-Ky§.writeByte(reloffset); + this.§_-Ky§.writeByte(regmask); + this.§_-Ky§.writeByte(regFound.emitCode); + this.§_-Ky§.writeByte(reltype); + this.§_-Ky§.writeShort(isRelative ? relsel | 1 << 15 : 0); pad -= 64; } } for(j = 0; j < pad; ) { - this.method_644.writeByte(0); + this.§_-Ky§.writeByte(0); j += 8; } if(badreg) @@ -652,16 +652,16 @@ package package_25 } i++; } - if(this.var_582 != "") + if(this.§_-iF§ != "") { - this.var_582 += "\n at line " + i + " " + lines[i]; - this.method_644.length = 0; - trace(this.var_582); + this.§_-iF§ += "\n at line " + i + " " + lines[i]; + this.§_-Ky§.length = 0; + trace(this.§_-iF§); } - if(this.var_583) + if(this.§_-9J§) { dbgLine = "generated bytecode:"; - agalLength = uint(this.method_644.length); + agalLength = uint(this.§_-Ky§.length); for(index = 0; index < agalLength; index++) { if(!(index % 16)) @@ -672,7 +672,7 @@ package package_25 { dbgLine += " "; } - byteStr = this.method_644[index].toString(16); + byteStr = this.§_-Ky§[index].toString(16); if(byteStr.length < 2) { byteStr = "0" + byteStr; @@ -685,7 +685,7 @@ package package_25 { trace("AGALMiniAssembler.assemble time: " + (getTimer() - start) / 1000 + "s"); } - return this.method_644; + return this.§_-Ky§; } } } diff --git a/src/?_-aF?/?_-SG?.as b/src/?_-aF?/?_-SG?.as new file mode 100644 index 0000000..1258aba --- /dev/null +++ b/src/?_-aF?/?_-SG?.as @@ -0,0 +1,232 @@ +package §_-aF§ +{ + import §_-8D§.§_-FW§; + import §_-8D§.§_-jw§; + import alternativa.engine3d.alternativa3d; + import flash.geom.Vector3D; + + use namespace alternativa3d; + + public class §_-SG§ + { + private static var randomNumbers:Vector.; + + private static const randomNumbersCount:int = 1000; + + private static const vector:Vector3D = new Vector3D(); + + public var name:String; + + public var scale:Number = 1; + + public var boundBox:§_-FW§; + + alternativa3d var next:§_-SG§; + + alternativa3d var §implements§:§_-SG§; + + alternativa3d var system:§_-ja§; + + alternativa3d var startTime:Number; + + alternativa3d var lifeTime:Number = 1.7976931348623157e+308; + + alternativa3d var particleList:Particle; + + alternativa3d var aabb:§_-FW§; + + alternativa3d var §_-M7§:Vector3D; + + protected var §_-cF§:Vector3D; + + protected var §_-gV§:Vector.; + + protected var §_-lB§:Vector.; + + protected var §_-ib§:Vector.; + + protected var §_-Nz§:Vector.; + + protected var §_-kf§:int = 0; + + private var §_-TK§:int; + + private var §_-hs§:int; + + private var §_-G1§:Vector3D; + + private var §_-Q2§:Vector3D; + + public function §_-SG§() + { + var i:int = 0; + this.alternativa3d::aabb = new §_-FW§(); + this.§_-gV§ = new Vector.(); + this.§_-lB§ = new Vector.(); + this.§_-ib§ = new Vector.(); + this.§_-Nz§ = new Vector.(); + this.§_-G1§ = new Vector3D(0,0,0); + this.§_-Q2§ = new Vector3D(0,0,1); + super(); + if(randomNumbers == null) + { + randomNumbers = new Vector.(); + for(i = 0; i < randomNumbersCount; randomNumbers[i] = Math.random(),i++) + { + } + } + this.§_-TK§ = Math.random() * randomNumbersCount; + } + + public function get position() : Vector3D + { + return this.§_-G1§.clone(); + } + + public function set position(value:Vector3D) : void + { + this.§_-G1§.x = value.x; + this.§_-G1§.y = value.y; + this.§_-G1§.z = value.z; + this.§_-G1§.w = value.w; + if(this.alternativa3d::system != null) + { + this.alternativa3d::_-is(this.alternativa3d::system.alternativa3d::_-EV() - this.alternativa3d::startTime); + } + } + + public function get direction() : Vector3D + { + return this.§_-Q2§.clone(); + } + + public function set direction(value:Vector3D) : void + { + this.§_-Q2§.x = value.x; + this.§_-Q2§.y = value.y; + this.§_-Q2§.z = value.z; + this.§_-Q2§.w = value.w; + if(this.alternativa3d::system != null) + { + this.alternativa3d::_-Af(this.alternativa3d::system.alternativa3d::_-EV() - this.alternativa3d::startTime); + } + } + + public function stop() : void + { + var time:Number = this.alternativa3d::system.alternativa3d::_-EV() - this.alternativa3d::startTime; + for(var i:int = 0; i < this.§_-kf§; ) + { + if(time < this.§_-gV§[i]) + { + break; + } + i++; + } + this.§_-kf§ = i; + } + + protected function get §_-Ta§() : §_-ja§ + { + return this.alternativa3d::system; + } + + protected function get §_-iq§() : §_-jw§ + { + return this.alternativa3d::system.alternativa3d::cameraToLocalTransform; + } + + protected function random() : Number + { + var res:Number = randomNumbers[this.§_-hs§]; + ++this.§_-hs§; + if(this.§_-hs§ == randomNumbersCount) + { + this.§_-hs§ = 0; + } + return res; + } + + protected function §_-Le§(time:Number, script:Function) : void + { + this.§_-gV§[this.§_-kf§] = time; + this.§_-lB§[this.§_-kf§] = new Vector3D(); + this.§_-ib§[this.§_-kf§] = new Vector3D(); + this.§_-Nz§[this.§_-kf§] = script; + ++this.§_-kf§; + } + + protected function §_-DM§(time:Number) : void + { + this.alternativa3d::lifeTime = time; + } + + alternativa3d function calculateAABB() : void + { + this.alternativa3d::aabb.minX = this.boundBox.minX * this.scale + this.§_-G1§.x; + this.alternativa3d::aabb.minY = this.boundBox.minY * this.scale + this.§_-G1§.y; + this.alternativa3d::aabb.minZ = this.boundBox.minZ * this.scale + this.§_-G1§.z; + this.alternativa3d::aabb.maxX = this.boundBox.maxX * this.scale + this.§_-G1§.x; + this.alternativa3d::aabb.maxY = this.boundBox.maxY * this.scale + this.§_-G1§.y; + this.alternativa3d::aabb.maxZ = this.boundBox.maxZ * this.scale + this.§_-G1§.z; + } + + alternativa3d function §_-is§(time:Number) : void + { + var pos:Vector3D = null; + for(var i:int = 0; i < this.§_-kf§; ) + { + if(time <= this.§_-gV§[i]) + { + pos = this.§_-lB§[i]; + pos.x = this.§_-G1§.x; + pos.y = this.§_-G1§.y; + pos.z = this.§_-G1§.z; + } + i++; + } + } + + alternativa3d function §_-Af§(time:Number) : void + { + var dir:Vector3D = null; + vector.x = this.§_-Q2§.x; + vector.y = this.§_-Q2§.y; + vector.z = this.§_-Q2§.z; + vector.normalize(); + for(var i:int = 0; i < this.§_-kf§; ) + { + if(time <= this.§_-gV§[i]) + { + dir = this.§_-ib§[i]; + dir.x = vector.x; + dir.y = vector.y; + dir.z = vector.z; + } + i++; + } + } + + alternativa3d function §_-Xj§(time:Number) : Boolean + { + var keyTime:Number = NaN; + var script:Function = null; + this.§_-hs§ = this.§_-TK§; + for(var i:int = 0; i < this.§_-kf§; ) + { + keyTime = this.§_-gV§[i]; + if(time < keyTime) + { + break; + } + this.alternativa3d::_-M7 = this.§_-lB§[i]; + this.§_-cF§ = this.§_-ib§[i]; + script = this.§_-Nz§[i]; + script.call(this,keyTime,time - keyTime); + i++; + } + return i < this.§_-kf§ || this.alternativa3d::particleList != null; + } + } +} + diff --git a/src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as b/src/?_-aM?/?_-Yf?.as similarity index 57% rename from src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as rename to src/?_-aM?/?_-Yf?.as index 28e9dc9..1f46f10 100644 --- a/src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as +++ b/src/?_-aM?/?_-Yf?.as @@ -1,120 +1,120 @@ -package alternativa.tanks.game.subsystems.inputsystem +package §_-aM§ { + import §_-V-§.§_-C1§; + import §_-az§.§_-ps§; import flash.display.InteractiveObject; import flash.events.KeyboardEvent; import flash.events.MouseEvent; - import alternativa.tanks.game.GameTask; - import package_27.name_479; - public class InputSystem extends GameTask implements IInput + public class §_-Yf§ extends §_-ps§ implements §_-Lm§ { private static const NUM_KEYS:int = 256; private var eventSource:InteractiveObject; - private var var_216:name_479; + private var §_-Pb§:§_-C1§; - private var var_230:Boolean; + private var §_-FK§:Boolean; - private var var_221:Boolean; + private var §_-PG§:Boolean; - private var var_225:Boolean; + private var §_-Hv§:Boolean; - private var var_227:int; + private var §_-8e§:int; - private var var_226:int; + private var §_-dL§:int; private var mouseX:int; private var mouseY:int; - private var var_229:int; + private var §_-Sm§:int; - private var var_228:int; + private var §_-4F§:int; - private var var_223:int; + private var §_-HC§:int; - private var var_224:CleanupTask; + private var §_-Jh§:CleanupTask; - private var var_220:Vector.>; + private var §_-CU§:Vector.>; - private var var_217:Vector.>; + private var §_-ll§:Vector.>; - private var var_219:Vector.; + private var § use§:Vector.; - private var var_218:Vector.; + private var §_-A4§:Vector.; - private var var_222:KeybardEventQueue; + private var §use §:KeybardEventQueue; - public function InputSystem(priority:int, eventSource:InteractiveObject) + public function §_-Yf§(priority:int, eventSource:InteractiveObject) { super(priority); this.eventSource = eventSource; - this.var_216 = new name_479(NUM_KEYS); - this.var_220 = new Vector.>(NUM_KEYS); - this.var_217 = new Vector.>(NUM_KEYS); - this.var_219 = new Vector.(); - this.var_218 = new Vector.(); - this.var_222 = new KeybardEventQueue(); + this.§_-Pb§ = new §_-C1§(NUM_KEYS); + this.§_-CU§ = new Vector.>(NUM_KEYS); + this.§_-ll§ = new Vector.>(NUM_KEYS); + this.§ use§ = new Vector.(); + this.§_-A4§ = new Vector.(); + this.§use § = new KeybardEventQueue(); } - public function name_94(eventType:KeyboardEventType, listener:Function, keyCode:uint = 0) : void + public function §_-hn§(eventType:§_-X0§, listener:Function, keyCode:uint = 0) : void { switch(eventType) { - case KeyboardEventType.KEY_DOWN: + case §_-X0§.KEY_DOWN: if(keyCode == 0) { - this.addKeyListener(this.var_219,listener); + this.§_-3J§(this.§ use§,listener); break; } - this.addDistinctKeyListener(this.var_220,keyCode,listener); + this.§_-ft§(this.§_-CU§,keyCode,listener); break; - case KeyboardEventType.KEY_UP: + case §_-X0§.KEY_UP: if(keyCode == 0) { - this.addKeyListener(this.var_218,listener); + this.§_-3J§(this.§_-A4§,listener); break; } - this.addDistinctKeyListener(this.var_217,keyCode,listener); + this.§_-ft§(this.§_-ll§,keyCode,listener); break; } } - public function name_384(eventType:KeyboardEventType, listener:Function, keyCode:uint = 0) : void + public function §_-or§(eventType:§_-X0§, listener:Function, keyCode:uint = 0) : void { switch(eventType) { - case KeyboardEventType.KEY_DOWN: + case §_-X0§.KEY_DOWN: if(keyCode == 0) { - this.removeKeyListener(this.var_219,listener); + this.§_-JO§(this.§ use§,listener); break; } - this.removeDistinctKeyListener(this.var_220,keyCode,listener); + this.§_-7G§(this.§_-CU§,keyCode,listener); break; - case KeyboardEventType.KEY_UP: + case §_-X0§.KEY_UP: if(keyCode == 0) { - this.removeKeyListener(this.var_218,listener); + this.§_-JO§(this.§_-A4§,listener); break; } - this.removeDistinctKeyListener(this.var_217,keyCode,listener); + this.§_-7G§(this.§_-ll§,keyCode,listener); break; } } - public function name_192(keyCode:uint) : int + public function §_-OO§(keyCode:uint) : int { - return this.var_216.name_478(keyCode); + return this.§_-Pb§.§_-2C§(keyCode); } - public function name_346(keyCode:uint) : Boolean + public function §_-IA§(keyCode:uint) : Boolean { - return this.var_216.name_478(keyCode) == 1; + return this.§_-Pb§.§_-2C§(keyCode) == 1; } - private function addDistinctKeyListener(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void + private function §_-ft§(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void { var listeners:Vector. = keyTypeListeners[keyCode]; if(listeners == null) @@ -129,7 +129,7 @@ package alternativa.tanks.game.subsystems.inputsystem } } - private function removeDistinctKeyListener(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void + private function §_-7G§(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void { var index:int = 0; var newLength:int = 0; @@ -146,7 +146,7 @@ package alternativa.tanks.game.subsystems.inputsystem } } - private function addKeyListener(listeners:Vector., listener:Function) : void + private function §_-3J§(listeners:Vector., listener:Function) : void { if(listeners.indexOf(listener) < 0) { @@ -154,7 +154,7 @@ package alternativa.tanks.game.subsystems.inputsystem } } - private function removeKeyListener(listeners:Vector., listener:Function) : void + private function §_-JO§(listeners:Vector., listener:Function) : void { var newLength:int = 0; var index:int = int(listeners.indexOf(listener)); @@ -166,71 +166,71 @@ package alternativa.tanks.game.subsystems.inputsystem } } - public function name_199() : Boolean + public function §_-an§() : Boolean { - return this.var_221; + return this.§_-PG§; } - public function method_262() : Boolean + public function §_-0T§() : Boolean { - return this.var_225; + return this.§_-Hv§; } - public function name_197() : int + public function §_-ow§() : int { - return this.var_229; + return this.§_-Sm§; } - public function name_200() : int + public function §_-ac§() : int { - return this.var_228; + return this.§_-4F§; } - public function method_261() : int + public function §_-i9§() : int { - return this.var_223; + return this.§_-HC§; } override public function start() : void { - this.var_224 = new CleanupTask(int.MAX_VALUE,this); - var_4.addTask(this.var_224); - this.eventSource.addEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); - this.eventSource.addEventListener(KeyboardEvent.KEY_UP,this.onKeyUp); + this.§_-Jh§ = new CleanupTask(int.MAX_VALUE,this); + §_-Uw§.addTask(this.§_-Jh§); + this.eventSource.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); + this.eventSource.addEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); this.eventSource.addEventListener(MouseEvent.MOUSE_MOVE,this.onMouseMove); this.eventSource.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); this.eventSource.addEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown); - this.eventSource.addEventListener(MouseEvent.MOUSE_UP,this.onMouseUp); + this.eventSource.addEventListener(MouseEvent.MOUSE_UP,this.§_-4B§); } override public function stop() : void { - var_4.killTask(this.var_224); - this.eventSource.removeEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); - this.eventSource.removeEventListener(KeyboardEvent.KEY_UP,this.onKeyUp); + §_-Uw§.killTask(this.§_-Jh§); + this.eventSource.removeEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); + this.eventSource.removeEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); this.eventSource.removeEventListener(MouseEvent.MOUSE_MOVE,this.onMouseMove); this.eventSource.removeEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); this.eventSource.removeEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown); - this.eventSource.removeEventListener(MouseEvent.MOUSE_UP,this.onMouseUp); + this.eventSource.removeEventListener(MouseEvent.MOUSE_UP,this.§_-4B§); } override public function run() : void { - this.var_229 = this.mouseX - this.var_227; - this.var_228 = this.mouseY - this.var_226; - this.dispatchKeyboardEvents(); + this.§_-Sm§ = this.mouseX - this.§_-8e§; + this.§_-4F§ = this.mouseY - this.§_-dL§; + this.§_-Db§(); } - private function dispatchKeyboardEvents() : void + private function §_-Db§() : void { var distinctListeners:Vector. = null; var listeners:Vector. = null; var event:KeyboardEventItem = null; var keyCode:uint = 0; - var eventType:KeyboardEventType = null; + var eventType:§_-X0§ = null; while(true) { - event = this.var_222.poll(); + event = this.§use §.poll(); if(event == null) { break; @@ -239,27 +239,27 @@ package alternativa.tanks.game.subsystems.inputsystem eventType = event.type; switch(eventType) { - case KeyboardEventType.KEY_DOWN: - distinctListeners = this.var_220[keyCode]; - listeners = this.var_219; + case §_-X0§.KEY_DOWN: + distinctListeners = this.§_-CU§[keyCode]; + listeners = this.§ use§; break; - case KeyboardEventType.KEY_UP: - distinctListeners = this.var_217[keyCode]; - listeners = this.var_218; + case §_-X0§.KEY_UP: + distinctListeners = this.§_-ll§[keyCode]; + listeners = this.§_-A4§; } if(distinctListeners != null) { - this.dispatchKeyboardEvent(distinctListeners,eventType,keyCode); + this.§_-np§(distinctListeners,eventType,keyCode); } if(listeners != null) { - this.dispatchKeyboardEvent(listeners,eventType,keyCode); + this.§_-np§(listeners,eventType,keyCode); } event.destroy(); } } - private function dispatchKeyboardEvent(listeners:Vector., eventType:KeyboardEventType, keyCode:uint) : void + private function §_-np§(listeners:Vector., eventType:§_-X0§, keyCode:uint) : void { var func:Function = null; var numListeners:int = int(listeners.length); @@ -270,37 +270,37 @@ package alternativa.tanks.game.subsystems.inputsystem } } - public function method_341() : void + public function §_-cM§() : void { - this.var_230 = this.var_221; - this.var_225 = false; - this.var_227 = this.mouseX; - this.var_226 = this.mouseY; - this.var_223 = 0; + this.§_-FK§ = this.§_-PG§; + this.§_-Hv§ = false; + this.§_-8e§ = this.mouseX; + this.§_-dL§ = this.mouseY; + this.§_-HC§ = 0; } - private function onKeyDown(event:KeyboardEvent) : void + private function §_-Ze§(event:KeyboardEvent) : void { var keyCode:uint = uint(event.keyCode); if(keyCode < NUM_KEYS) { - if(this.var_216.name_478(keyCode) == 0) + if(this.§_-Pb§.§_-2C§(keyCode) == 0) { - this.var_216.name_480(keyCode,true); - this.var_222.add(keyCode,KeyboardEventType.KEY_DOWN); + this.§_-Pb§.§_-Kg§(keyCode,true); + this.§use §.add(keyCode,§_-X0§.KEY_DOWN); } } } - private function onKeyUp(event:KeyboardEvent) : void + private function §_-Uf§(event:KeyboardEvent) : void { var keyCode:uint = uint(event.keyCode); if(keyCode < NUM_KEYS) { - if(this.var_216.name_478(keyCode) == 1) + if(this.§_-Pb§.§_-2C§(keyCode) == 1) { - this.var_216.name_480(keyCode,false); - this.var_222.add(keyCode,KeyboardEventType.KEY_UP); + this.§_-Pb§.§_-Kg§(keyCode,false); + this.§use §.add(keyCode,§_-X0§.KEY_UP); } } } @@ -313,29 +313,29 @@ package alternativa.tanks.game.subsystems.inputsystem private function onMouseWheel(event:MouseEvent) : void { - this.var_223 = event.delta; + this.§_-HC§ = event.delta; } private function onMouseDown(event:MouseEvent) : void { - this.var_221 = true; - this.var_225 = true; + this.§_-PG§ = true; + this.§_-Hv§ = true; } - private function onMouseUp(event:MouseEvent) : void + private function §_-4B§(event:MouseEvent) : void { - this.var_221 = false; + this.§_-PG§ = false; } } } -import alternativa.tanks.game.GameTask; +import §_-az§.§_-ps§; -class CleanupTask extends GameTask +class CleanupTask extends §_-ps§ { - private var inputSystem:InputSystem; + private var inputSystem:§_-Yf§; - public function CleanupTask(priority:int, inputSystem:InputSystem) + public function CleanupTask(priority:int, inputSystem:§_-Yf§) { super(priority); this.inputSystem = inputSystem; @@ -343,7 +343,7 @@ class CleanupTask extends GameTask override public function run() : void { - this.inputSystem.method_341(); + this.inputSystem.§_-cM§(); } } @@ -351,7 +351,7 @@ class KeyboardEventItem { private static var pool:KeyboardEventItem; - public var type:KeyboardEventType; + public var type:§_-X0§; public var keyCode:uint; @@ -392,7 +392,7 @@ class KeybardEventQueue super(); } - public function add(keyCode:uint, type:KeyboardEventType) : void + public function add(keyCode:uint, type:§_-X0§) : void { var keyItem:KeyboardEventItem = KeyboardEventItem.create(); keyItem.keyCode = keyCode; diff --git a/src/package_41/name_175.as b/src/?_-aa?/?_-cS?.as similarity index 53% rename from src/package_41/name_175.as rename to src/?_-aa?/?_-cS?.as index f9d1068..10ca5e2 100644 --- a/src/package_41/name_175.as +++ b/src/?_-aa?/?_-cS?.as @@ -1,22 +1,22 @@ -package package_41 +package §_-aa§ { + import §_-cv§.§_-NN§; + import §_-cv§.§_-YU§; + import §_-cv§.§_-cP§; + import §_-cv§.§_-dD§; import flash.events.Event; import flash.utils.ByteArray; - import alternativa.tanks.config.Config; - import alternativa.tanks.config.StringUtils; - import alternativa.tanks.config.BlobGroup; - import alternativa.tanks.config.BlobCategory; - import package_40.class_7; - import package_40.name_169; - import package_40.name_170; + import §return§.§_-Ui§; + import §return§.§_-h5§; + import §return§.§_-pj§; - public class name_175 extends class_7 + public class §_-cS§ extends §_-h5§ { - private var config:Config; + private var config:§_-YU§; - private var var_34:name_170; + private var §_-d5§:§_-Ui§; - public function name_175(param1:Config) + public function §_-cS§(param1:§_-YU§) { super(); this.config = param1; @@ -32,53 +32,53 @@ package package_41 var _loc6_:XML = null; var _loc7_:String = null; var _loc8_:String = null; - this.var_34 = new name_170(); + this.§_-d5§ = new §_-Ui§(); for each(_loc1_ in this.config.xml.elements("blobs").elements("blobs-category")) { _loc2_ = _loc1_.@id; for each(_loc3_ in _loc1_.elements("blobs-group")) { _loc4_ = _loc3_.@id; - _loc5_ = StringUtils.name_460(_loc3_.@baseUrl); + _loc5_ = §_-NN§.§_-KN§(_loc3_.@baseUrl); for each(_loc6_ in _loc3_.elements("blob")) { _loc7_ = _loc6_.@id; _loc8_ = _loc5_ + _loc6_.@file; - this.var_34.addTask(new BlobLoader(_loc2_,_loc4_,_loc7_,_loc8_,this)); + this.§_-d5§.addTask(new BlobLoader(_loc2_,_loc4_,_loc7_,_loc8_,this)); } } } - this.var_34.addEventListener(name_169.TASK_COMPLETE,this.method_312); - this.var_34.addEventListener(Event.COMPLETE,this.onLoadingComplete); - this.var_34.run(); + this.§_-d5§.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-fm§); + this.§_-d5§.addEventListener(Event.COMPLETE,this.onLoadingComplete); + this.§_-d5§.run(); } - private function method_312(param1:name_169) : void + private function §_-fm§(param1:§_-pj§) : void { - dispatchEvent(new name_169(name_169.TASK_PROGRESS,1,this.var_34.length)); + dispatchEvent(new §_-pj§(§_-pj§.TASK_PROGRESS,1,this.§_-d5§.length)); } - public function method_328(param1:String, param2:String, param3:String, param4:ByteArray) : void + public function §_-To§(param1:String, param2:String, param3:String, param4:ByteArray) : void { - var _loc5_:BlobCategory = this.config.name_68.name_72(param1); + var _loc5_:§_-cP§ = this.config.§_-WG§.§_-hJ§(param1); if(_loc5_ == null) { - _loc5_ = new BlobCategory(); - this.config.name_68.method_326(param1,_loc5_); + _loc5_ = new §_-cP§(); + this.config.§_-WG§.§_-hv§(param1,_loc5_); } - var _loc6_:BlobGroup = _loc5_.name_62(param2); + var _loc6_:§_-dD§ = _loc5_.§_-EZ§(param2); if(_loc6_ == null) { - _loc6_ = new BlobGroup(); - _loc5_.method_214(param2,_loc6_); + _loc6_ = new §_-dD§(); + _loc5_.§_-b6§(param2,_loc6_); } - _loc6_.method_218(param3,param4); + _loc6_.§_-CC§(param3,param4); } private function onLoadingComplete(param1:Event) : void { - this.var_34 = null; - method_102(); + this.§_-d5§ = null; + §_-3Z§(); } } } @@ -88,9 +88,9 @@ import flash.events.EventDispatcher; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; -import package_40.class_7; +import §return§.§_-h5§; -class BlobLoader extends class_7 +class BlobLoader extends §_-h5§ { private var categoryId:String; @@ -100,11 +100,11 @@ class BlobLoader extends class_7 private var blobUrl:String; - private var blobsLoaderTask:name_175; + private var blobsLoaderTask:§_-cS§; private var loader:URLLoader; - public function BlobLoader(param1:String, param2:String, param3:String, param4:String, param5:name_175) + public function BlobLoader(param1:String, param2:String, param3:String, param4:String, param5:§_-cS§) { super(); this.categoryId = param1; @@ -124,8 +124,8 @@ class BlobLoader extends class_7 private function onLoadingComplete(param1:Event) : void { - this.blobsLoaderTask.method_328(this.categoryId,this.groupId,this.blobId,this.loader.data); + this.blobsLoaderTask.§_-To§(this.categoryId,this.groupId,this.blobId,this.loader.data); this.loader = null; - method_102(); + §_-3Z§(); } } diff --git a/src/?_-aa?/?_-i0?.as b/src/?_-aa?/?_-i0?.as new file mode 100644 index 0000000..e3b2c28 --- /dev/null +++ b/src/?_-aa?/?_-i0?.as @@ -0,0 +1,101 @@ +package §_-aa§ +{ + import §_-cv§.§_-FR§; + import §_-cv§.§_-NN§; + import §_-cv§.§_-YU§; + import flash.events.Event; + import flash.media.Sound; + import §return§.§_-Ui§; + import §return§.§_-pj§; + + public class §_-i0§ extends §_-FR§ + { + private var sounds:Object = {}; + + private var §_-d5§:§_-Ui§; + + public function §_-i0§(param1:§_-YU§) + { + super("Sounds library loader",param1); + } + + public function §_-lM§(param1:String) : Sound + { + return this.sounds[param1]; + } + + public function §_-Od§(param1:String, param2:Sound) : void + { + this.sounds[param1] = param2; + } + + override public function run() : void + { + var _loc3_:XML = null; + if(config.xml.sounds == null) + { + §_-3Z§(); + return; + } + var _loc1_:XML = config.xml.sounds[0]; + var _loc2_:String = §_-NN§.§_-KN§(_loc1_.@baseUrl); + this.§_-d5§ = new §_-Ui§(); + for each(_loc3_ in _loc1_.sound) + { + this.§_-d5§.addTask(new SoundLoader(_loc3_.@id,_loc2_ + _loc3_.@file,this)); + } + this.§_-d5§.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-fm§); + this.§_-d5§.addEventListener(Event.COMPLETE,this.§_-Pw§); + this.§_-d5§.run(); + } + + private function §_-fm§(param1:§_-pj§) : void + { + dispatchEvent(new §_-pj§(§_-pj§.TASK_PROGRESS,1,this.§_-d5§.length)); + } + + private function §_-Pw§(param1:Event) : void + { + this.§_-d5§ = null; + §_-3Z§(); + } + } +} + +import flash.events.Event; +import flash.events.EventDispatcher; +import flash.media.Sound; +import flash.net.URLRequest; +import §return§.§_-h5§; + +class SoundLoader extends §_-h5§ +{ + private var id:String; + + private var url:String; + + private var library:§_-i0§; + + private var loader:Sound; + + public function SoundLoader(param1:String, param2:String, param3:§_-i0§) + { + super(); + this.id = param1; + this.url = param2; + this.library = param3; + } + + override public function run() : void + { + this.loader = new Sound(); + this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete); + this.loader.load(new URLRequest(this.url)); + } + + private function onLoadingComplete(param1:Event) : void + { + this.library.§_-Od§(this.id,this.loader); + §_-3Z§(); + } +} diff --git a/src/package_116/name_529.as b/src/?_-am?/?_-Fh?.as similarity index 66% rename from src/package_116/name_529.as rename to src/?_-am?/?_-Fh?.as index 4fd2fc5..6ab0ed8 100644 --- a/src/package_116/name_529.as +++ b/src/?_-am?/?_-Fh?.as @@ -1,96 +1,96 @@ -package package_116 +package §_-am§ { + import §_-1z§.§_-gA§; + import §_-1z§.§_-n4§; + import §_-5Y§.A3D2Image; + import §_-5Y§.A3D2Map; + import §_-5Y§.A3D2Material; + import §_-8D§.§_-FW§; + import §_-8D§.§_-OX§; + import §_-8D§.§_-d6§; + import §_-8D§.§_-mb§; + import §_-AA§.§_-10§; + import §_-DJ§.§_-1F§; + import §_-DJ§.§_-2i§; + import §_-DJ§.§_-J5§; + import §_-DJ§.§_-Sv§; + import §_-Ex§.§_-54§; + import §_-Ex§.§_-7D§; + import §_-Ex§.§_-U2§; + import §_-FM§.§_-fl§; + import §_-Ie§.§_-Nq§; + import §_-KL§.§_-Mu§; + import §_-MH§.A3D2IndexBuffer; + import §_-MH§.A3D2VertexAttributes; + import §_-MH§.A3D2VertexBuffer; + import §_-MU§.§_-5-§; + import §_-QH§.§_-7x§; + import §_-R1§.DirectionalLight; + import §_-R1§.OmniLight; + import §_-R1§.SpotLight; + import §_-R1§.§_-LD§; + import §_-TX§.§_-R3§; + import §_-Uy§.§_-oP§; + import §_-Vh§.§_-Pt§; + import §_-Zp§.A3DBox; + import §_-Zp§.A3DObject; + import §_-Zp§.A3DSurface; + import §_-d8§.§_-R3§; + import §_-hQ§.§_-Fx§; + import §_-hQ§.§_-W-§; + import §_-i2§.A3DGeometry; + import §_-i2§.A3DIndexBuffer; + import §_-i2§.A3DVertexBuffer; + import §_-iL§.§_-R6§; + import §_-iL§.§_-Yr§; + import §_-iL§.§_-ZD§; + import §_-jN§.A3DImage; + import §_-jN§.A3DMap; + import §_-jN§.A3DMaterial; + import §_-nD§.§_-aQ§; + import §_-oA§.A3D2AmbientLight; + import §_-oA§.A3D2Box; + import §_-oA§.A3D2DirectionalLight; + import §_-oA§.A3D2Joint; + import §_-oA§.A3D2Mesh; + import §_-oA§.A3D2Object; + import §_-oA§.A3D2OmniLight; + import §_-oA§.A3D2Skin; + import §_-oA§.A3D2SpotLight; + import §_-oA§.A3D2Surface; + import §_-oA§.A3D2Transform; import alternativa.engine3d.alternativa3d; import flash.geom.Matrix3D; import flash.geom.Vector3D; import flash.utils.ByteArray; import flash.utils.Dictionary; import flash.utils.Endian; - import platform.client.a3d.osgi.Activator; - import alternativa.protocol.osgi.ProtocolActivator; - import platform.clients.fp10.libraries.alternativaprotocol.Activator; - import package_19.name_380; - import package_19.name_528; - import package_19.name_700; - import package_21.name_126; - import package_21.name_386; - import package_21.name_432; - import package_21.name_78; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_24.SpotLight; - import package_24.name_376; - import package_28.name_119; - import package_28.name_167; - import package_32.name_148; - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_36.name_648; - import package_38.name_159; - import package_38.name_162; - import package_38.name_453; - import package_39.name_160; - import package_4.name_28; - import package_48.A3D2AmbientLight; - import package_48.A3D2Box; - import package_48.A3D2DirectionalLight; - import package_48.A3D2Joint; - import package_48.A3D2Mesh; - import package_48.A3D2Object; - import package_48.A3D2OmniLight; - import package_48.A3D2Skin; - import package_48.A3D2SpotLight; - import package_48.A3D2Surface; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - import package_50.A3DBox; - import package_50.A3DObject; - import package_50.A3DSurface; - import package_51.A3D2Image; - import package_51.A3D2Map; - import package_51.A3D2Material; - import package_52.A3D2IndexBuffer; - import package_52.A3D2VertexAttributes; - import package_52.A3D2VertexBuffer; - import package_53.A3DImage; - import package_53.A3DMap; - import package_53.A3DMaterial; - import package_54.A3DGeometry; - import package_54.A3DIndexBuffer; - import package_54.A3DVertexBuffer; - import package_57.name_213; - import package_57.name_214; - import package_64.name_212; - import package_65.name_210; - import package_66.name_211; use namespace alternativa3d; - public class name_529 + public class §_-Fh§ { - public var hierarchy:Vector.; + public var hierarchy:Vector.<§_-OX§>; - public var objects:Vector.; + public var objects:Vector.<§_-OX§>; private var maps:Dictionary; private var materials:Dictionary; - private var protocol:name_159; + private var protocol:§_-ZD§; - private var var_628:Object; + private var §_-gk§:Object; - private var var_629:Boolean = false; + private var §_-Y8§:Boolean = false; - public function name_529() + public function §_-Fh§() { super(); this.init(); } - private static function method_725(source:name_210) : name_211 + private static function §_-a5§(source:§_-10§) : §_-Nq§ { var i:int = 0; var count:int = 0; @@ -172,7 +172,7 @@ package package_116 for(i = 0,count = int(sourceMaterials.length); i < count; i++) { sourceMaterial = sourceMaterials[i]; - destMaterial = new A3D2Material(method_715(sourceMaterial.diffuseMapId),method_715(sourceMaterial.glossinessMapId),method_715(sourceMaterial.id),method_715(sourceMaterial.lightMapId),method_715(sourceMaterial.normalMapId),method_715(sourceMaterial.opacityMapId),-1,method_715(sourceMaterial.specularMapId)); + destMaterial = new A3D2Material(§_-pc§(sourceMaterial.diffuseMapId),§_-pc§(sourceMaterial.glossinessMapId),§_-pc§(sourceMaterial.id),§_-pc§(sourceMaterial.lightMapId),§_-pc§(sourceMaterial.normalMapId),§_-pc§(sourceMaterial.opacityMapId),-1,§_-pc§(sourceMaterial.specularMapId)); destMaterials[i] = destMaterial; } } @@ -204,7 +204,7 @@ package package_116 sourceIndexBuffer = sourceGeometry.indexBuffer; sourceVertexBuffers = sourceGeometry.vertexBuffers; destIndexBuffer = new A3D2IndexBuffer(sourceIndexBuffer.byteBuffer,lastIndexBufferIndex++,sourceIndexBuffer.indexCount); - destIndexBufferId = destIndexBuffer.id; + destIndexBufferId = int(destIndexBuffer.id); destIndexBuffers.push(destIndexBuffer); for(j = 0,inCount = int(sourceVertexBuffers.length); j < inCount; j++) { @@ -240,41 +240,41 @@ package package_116 destVertexBuffersIds.push(destVertexBuffer.id); } } - destMesh = new A3D2Mesh(method_715(sourceObject.boundBoxId),method_719(sourceObject.id),destIndexBufferId,sourceObject.name,method_720(sourceObject.parentId),method_723(sourceObject.surfaces),new A3D2Transform(sourceObject.transformation.matrix),destVertexBuffersIds,sourceObject.visible); + destMesh = new A3D2Mesh(§_-pc§(sourceObject.boundBoxId),§_-PV§(sourceObject.id),destIndexBufferId,sourceObject.name,§_-0m§(sourceObject.parentId),§_-qD§(sourceObject.surfaces),new A3D2Transform(sourceObject.transformation.matrix),destVertexBuffersIds,sourceObject.visible); destMeshes.push(destMesh); objectsMap[sourceObject.id.id] = destMesh; } else { - destObject = new A3D2Object(method_715(sourceObject.boundBoxId),method_719(sourceObject.id),sourceObject.name,method_720(sourceObject.parentId),new A3D2Transform(sourceObject.transformation.matrix),sourceObject.visible); + destObject = new A3D2Object(§_-pc§(sourceObject.boundBoxId),§_-PV§(sourceObject.id),sourceObject.name,§_-0m§(sourceObject.parentId),new A3D2Transform(sourceObject.transformation.matrix),sourceObject.visible); destObjects.push(destObject); objectsMap[sourceObject.id.id] = destObject; } } } - return new name_211(null,null,null,destBoxes,null,null,null,destImages,destIndexBuffers,null,destMaps,destMaterials,destMeshes != null && destMeshes.length > 0 ? destMeshes : null,destObjects != null && destObjects.length > 0 ? destObjects : null,null,null,null,null,destVertexBuffers); + return new §_-Nq§(null,null,null,destBoxes,null,null,null,destImages,destIndexBuffers,null,destMaps,destMaterials,destMeshes != null && destMeshes.length > 0 ? destMeshes : null,destObjects != null && destObjects.length > 0 ? destObjects : null,null,null,null,null,destVertexBuffers); } - private static function method_715(id:name_213) : int + private static function §_-pc§(id:§_-W-§) : int { return id != null ? int(id.id) : -1; } - private static function method_719(id:name_213) : name_155 + private static function §_-PV§(id:§_-W-§) : §_-Mu§ { - return id != null ? name_155.method_300(id.id) : name_155.method_300(-1); + return id != null ? §_-Mu§.§_-mU§(id.id) : §_-Mu§.§_-mU§(-1); } - private static function method_720(parentId:name_212) : name_155 + private static function §_-0m§(parentId:§_-aQ§) : §_-Mu§ { if(parentId == null) { return null; } - return parentId != null ? name_155.method_300(parentId.id) : null; + return parentId != null ? §_-Mu§.§_-mU§(parentId.id) : null; } - private static function method_723(source:Vector.) : Vector. + private static function §_-qD§(source:Vector.) : Vector. { var sourceSurface:A3DSurface = null; var destSurface:A3D2Surface = null; @@ -282,13 +282,13 @@ package package_116 for(var i:int = 0,var count:int = int(source.length); i < count; i++) { sourceSurface = source[i]; - destSurface = new A3D2Surface(sourceSurface.indexBegin,method_715(sourceSurface.materialId),sourceSurface.numTriangles); + destSurface = new A3D2Surface(sourceSurface.indexBegin,§_-pc§(sourceSurface.materialId),sourceSurface.numTriangles); dest[i] = destSurface; } return dest; } - public function method_314(input:ByteArray) : void + public function §_-Om§(input:ByteArray) : void { var version:int = 0; try @@ -301,7 +301,7 @@ package package_116 } else { - this.method_726(input); + this.§_-5V§(input); } } catch(e:Error) @@ -310,9 +310,9 @@ package package_116 } } - public function method_729(name:String) : name_78 + public function §_-Yy§(name:String) : §_-OX§ { - var object:name_78 = null; + var object:§_-OX§ = null; for each(object in this.objects) { if(object.name == name) @@ -325,41 +325,41 @@ package package_116 private function init() : void { - if(this.var_629) + if(this.§_-Y8§) { return; } - if(OSGi.name_8() != null) + if(§_-oP§.§_-nQ§() != null) { - this.protocol = name_159(OSGi.name_8().name_30(name_163)); + this.protocol = §_-ZD§(§_-oP§.§_-nQ§().§_-N6§(§_-2i§)); return; } - OSGi.clientLog = new DummyClientLog(); - var osgi:OSGi = new OSGi(); - osgi.method_116(name_160,new DummyClientLog()); - new ProtocolActivator().start(osgi); - new platform.client.a3d.osgi.Activator().start(osgi); - new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(osgi); - this.protocol = name_159(osgi.name_30(name_163)); - this.var_629 = true; + §_-oP§.clientLog = new DummyClientLog(); + var osgi:§_-oP§ = new §_-oP§(); + osgi.§_-g2§(§_-5-§,new DummyClientLog()); + new §_-fl§().start(osgi); + new §_-d8§.§_-R3§().start(osgi); + new §_-TX§.§_-R3§().start(osgi); + this.protocol = §_-ZD§(osgi.§_-N6§(§_-2i§)); + this.§_-Y8§ = true; } private function parseVersion1(input:ByteArray) : void { input.position = 4; - var nullMap:name_648 = name_453.name_454(input); - nullMap.name_702(0); + var nullMap:§_-J5§ = §_-Yr§.§_-Nx§(input); + nullMap.§_-iM§(0); var data:ByteArray = new ByteArray(); data.writeBytes(input,input.position); data.position = 0; - var buffer:name_442 = new name_442(data,data,nullMap); - var codec:name_152 = this.protocol.name_448(new name_148(name_210,false)); - var _a3d:name_210 = name_210(codec.method_296(buffer)); - var a3d2:name_211 = method_725(_a3d); - this.method_721(a3d2); + var buffer:§_-1F§ = new §_-1F§(data,data,nullMap); + var codec:§_-Sv§ = this.protocol.§_-8G§(new §_-7x§(§_-10§,false)); + var _a3d:§_-10§ = §_-10§(codec.§_-2Q§(buffer)); + var a3d2:§_-Nq§ = §_-a5§(_a3d); + this.§_-Ol§(a3d2); } - private function method_721(a3d:name_211) : void + private function §_-Ol§(a3d:§_-Nq§) : void { var a3DObject:A3D2Object = null; var a3DMesh:A3D2Mesh = null; @@ -375,17 +375,17 @@ package package_116 var a3DDirLight:A3D2DirectionalLight = null; var a3DSkin:A3D2Skin = null; var a3DJoint:A3D2Joint = null; - var parent:name_155 = null; - var p:name_78 = null; - var object:name_78 = null; - var resJoint:name_700 = null; - var resSkin:name_380 = null; - var resAmbientLight:name_376 = null; - var resObject:name_78 = null; + var parent:§_-Mu§ = null; + var p:§_-OX§ = null; + var object:§_-OX§ = null; + var resJoint:§_-7D§ = null; + var resSkin:§_-U2§ = null; + var resAmbientLight:§_-LD§ = null; + var resObject:§_-OX§ = null; var resOmniLight:OmniLight = null; var resSpotLight:SpotLight = null; var resDirLight:DirectionalLight = null; - var resMesh:name_380 = null; + var resMesh:§_-U2§ = null; var objectsMap:Dictionary = new Dictionary(); var a3DIndexBuffers:Dictionary = new Dictionary(); var a3DVertexBuffers:Dictionary = new Dictionary(); @@ -418,14 +418,14 @@ package package_116 { a3DImages[a3DImage.id] = a3DImage; } - this.hierarchy = new Vector.(); - this.objects = new Vector.(); + this.hierarchy = new Vector.<§_-OX§>(); + this.objects = new Vector.<§_-OX§>(); this.maps = new Dictionary(); this.materials = new Dictionary(); - this.var_628 = new Dictionary(); + this.§_-gk§ = new Dictionary(); for each(a3DJoint in a3d.joints) { - resJoint = new name_700(); + resJoint = new §_-7D§(); resJoint.visible = a3DJoint.visible; resJoint.name = a3DJoint.name; parents[resJoint] = a3DJoint.parentId; @@ -435,16 +435,16 @@ package package_116 this.hierarchy.push(resJoint); } this.objects.push(resJoint); - this.method_716(a3DJoint.transform,resJoint); + this.§_-ET§(a3DJoint.transform,resJoint); a3DBox = a3DBoxes[a3DJoint.boundBoxId]; if(a3DBox != null) { - this.method_718(a3DBox.box,resJoint); + this.§_-Rh§(a3DBox.box,resJoint); } } for each(a3DSkin in a3d.skins) { - resSkin = this.method_429(a3DSkin,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); + resSkin = this.§_-hi§(a3DSkin,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); resSkin.visible = a3DSkin.visible; resSkin.name = a3DSkin.name; parents[resSkin] = a3DSkin.parentId; @@ -454,16 +454,16 @@ package package_116 this.hierarchy.push(resSkin); } this.objects.push(resSkin); - this.method_716(a3DSkin.transform,resSkin); + this.§_-ET§(a3DSkin.transform,resSkin); a3DBox = a3DBoxes[a3DSkin.boundBoxId]; if(a3DBox != null) { - this.method_718(a3DBox.box,resSkin); + this.§_-Rh§(a3DBox.box,resSkin); } } for each(a3DAmbientLight in a3d.ambientLights) { - resAmbientLight = new name_376(a3DAmbientLight.color); + resAmbientLight = new §_-LD§(a3DAmbientLight.color); resAmbientLight.intensity = a3DAmbientLight.intensity; resAmbientLight.visible = a3DAmbientLight.visible; resAmbientLight.name = a3DAmbientLight.name; @@ -474,16 +474,16 @@ package package_116 this.hierarchy.push(resAmbientLight); } this.objects.push(resAmbientLight); - this.method_716(a3DAmbientLight.transform,resAmbientLight); + this.§_-ET§(a3DAmbientLight.transform,resAmbientLight); a3DBox = a3DBoxes[a3DAmbientLight.boundBoxId]; if(a3DBox != null) { - this.method_718(a3DBox.box,resAmbientLight); + this.§_-Rh§(a3DBox.box,resAmbientLight); } } for each(a3DObject in a3d.objects) { - resObject = new name_78(); + resObject = new §_-OX§(); resObject.visible = a3DObject.visible; resObject.name = a3DObject.name; parents[resObject] = a3DObject.parentId; @@ -493,11 +493,11 @@ package package_116 this.hierarchy.push(resObject); } this.objects.push(resObject); - this.method_716(a3DObject.transform,resObject); + this.§_-ET§(a3DObject.transform,resObject); a3DBox = a3DBoxes[a3DObject.boundBoxId]; if(a3DBox != null) { - this.method_718(a3DBox.box,resObject); + this.§_-Rh§(a3DBox.box,resObject); } } for each(a3DOmniLight in a3d.omniLights) @@ -512,7 +512,7 @@ package package_116 this.hierarchy.push(resOmniLight); } this.objects.push(resOmniLight); - this.method_716(a3DOmniLight.transform,resOmniLight); + this.§_-ET§(a3DOmniLight.transform,resOmniLight); } for each(a3DSpotLight in a3d.spotLights) { @@ -526,7 +526,7 @@ package package_116 this.hierarchy.push(resSpotLight); } this.objects.push(resSpotLight); - this.method_716(a3DSpotLight.transform,resSpotLight); + this.§_-ET§(a3DSpotLight.transform,resSpotLight); } for each(a3DDirLight in a3d.directionalLights) { @@ -540,11 +540,11 @@ package package_116 this.hierarchy.push(resDirLight); } this.objects.push(resDirLight); - this.method_716(a3DDirLight.transform,resDirLight); + this.§_-ET§(a3DDirLight.transform,resDirLight); } for each(a3DMesh in a3d.meshes) { - resMesh = this.method_727(a3DMesh,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); + resMesh = this.§_-cN§(a3DMesh,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); resMesh.visible = a3DMesh.visible; resMesh.name = a3DMesh.name; parents[resMesh] = a3DMesh.parentId; @@ -554,11 +554,11 @@ package package_116 this.hierarchy.push(resMesh); } this.objects.push(resMesh); - this.method_716(a3DMesh.transform,resMesh); + this.§_-ET§(a3DMesh.transform,resMesh); a3DBox = a3DBoxes[a3DMesh.boundBoxId]; if(a3DBox != null) { - this.method_718(a3DBox.box,resMesh); + this.§_-Rh§(a3DBox.box,resMesh); } } for each(object in objectsMap) @@ -572,17 +572,17 @@ package package_116 } } - private function method_730(source:Vector.>, objectsMap:Dictionary) : Vector.> + private function §_-V6§(source:Vector.>, objectsMap:Dictionary) : Vector.> { - var vector:Vector. = null; - var resultVector:Vector. = null; + var vector:Vector.<§_-Mu§> = null; + var resultVector:Vector.<§_-7D§> = null; var j:int = 0; var jcount:int = 0; - var result:Vector.> = new Vector.>(); + var result:Vector.> = new Vector.>(); for(var i:int = 0,var count:int = int(source.length); i < count; i++) { vector = source[i]; - resultVector = new Vector.(); + resultVector = new Vector.<§_-7D§>(); for(j = 0,jcount = int(vector.length); j < jcount; j++) { resultVector[j] = objectsMap[vector[j]]; @@ -592,12 +592,12 @@ package package_116 return result; } - private function method_726(input:ByteArray) : void + private function §_-5V§(input:ByteArray) : void { input.position = 0; var data:ByteArray = new ByteArray(); - var buffer:name_442 = new name_442(data,data,new name_648()); - name_162.method_303(input,buffer); + var buffer:§_-1F§ = new §_-1F§(data,data,new §_-J5§()); + §_-R6§.§_-Nd§(input,buffer); input.position = 0; var versionMajor:int = int(buffer.reader.readUnsignedShort()); var versionMinor:int = int(buffer.reader.readUnsignedShort()); @@ -608,16 +608,16 @@ package package_116 } } - private function parseVersion2_0(buffer:name_442) : void + private function parseVersion2_0(buffer:§_-1F§) : void { - var codec:name_152 = this.protocol.name_448(new name_148(name_211,false)); - var a3d:name_211 = name_211(codec.method_296(buffer)); - this.method_721(a3d); + var codec:§_-Sv§ = this.protocol.§_-8G§(new §_-7x§(§_-Nq§,false)); + var a3d:§_-Nq§ = §_-Nq§(codec.§_-2Q§(buffer)); + this.§_-Ol§(a3d); } - private function method_718(box:Vector., destination:name_78) : void + private function §_-Rh§(box:Vector., destination:§_-OX§) : void { - destination.boundBox = new name_386(); + destination.boundBox = new §_-FW§(); destination.boundBox.minX = box[0]; destination.boundBox.minY = box[1]; destination.boundBox.minZ = box[2]; @@ -626,13 +626,13 @@ package package_116 destination.boundBox.maxZ = box[5]; } - private function method_716(transform:A3D2Transform, obj:name_78) : void + private function §_-ET§(transform:A3D2Transform, obj:§_-OX§) : void { if(transform == null) { return; } - var matrix:name_214 = transform.matrix; + var matrix:§_-Fx§ = transform.matrix; var mat:Matrix3D = new Matrix3D(Vector.([matrix.a,matrix.e,matrix.i,0,matrix.b,matrix.f,matrix.j,0,matrix.c,matrix.g,matrix.k,0,matrix.d,matrix.h,matrix.l,1])); var vecs:Vector. = mat.decompose(); obj.x = vecs[0].x; @@ -646,55 +646,55 @@ package package_116 obj.scaleZ = vecs[2].z; } - private function method_728(transform:A3D2Transform, obj:name_700) : void + private function §_-Ma§(transform:A3D2Transform, obj:§_-7D§) : void { if(transform == null) { return; } - var matrix:name_214 = transform.matrix; + var matrix:§_-Fx§ = transform.matrix; var mat:Vector. = Vector.([matrix.a,matrix.b,matrix.c,matrix.d,matrix.e,matrix.f,matrix.g,matrix.h,matrix.i,matrix.j,matrix.k,matrix.l]); - obj.alternativa3d::name_701(mat); + obj.alternativa3d::_-k9(mat); } - private function method_727(a3DMesh:A3D2Mesh, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : name_380 + private function §_-cN§(a3DMesh:A3D2Mesh, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : §_-U2§ { var s:A3D2Surface = null; - var m:name_641 = null; - var res:name_380 = new name_380(); - res.geometry = this.method_724(a3DMesh.indexBufferId,a3DMesh.vertexBuffers,indexBuffers,vertexBuffers); + var m:§_-qn§ = null; + var res:§_-U2§ = new §_-U2§(); + res.geometry = this.§_-DD§(a3DMesh.indexBufferId,a3DMesh.vertexBuffers,indexBuffers,vertexBuffers); var surfaces:Vector. = a3DMesh.surfaces; for(var i:int = 0; i < surfaces.length; i++) { s = surfaces[i]; - m = this.method_722(materials[s.materialId],maps,images); + m = this.§_-dI§(materials[s.materialId],maps,images); res.addSurface(m,s.indexBegin,s.numTriangles); } return res; } - private function method_429(a3DSkin:A3D2Skin, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : name_528 + private function §_-hi§(a3DSkin:A3D2Skin, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : §_-54§ { var s:A3D2Surface = null; - var m:name_641 = null; - var res:name_528 = new name_528(1,a3DSkin.joints.length); - res.geometry = this.method_724(a3DSkin.indexBufferId,a3DSkin.vertexBuffers,indexBuffers,vertexBuffers); + var m:§_-qn§ = null; + var res:§_-54§ = new §_-54§(1,a3DSkin.joints.length); + res.geometry = this.§_-DD§(a3DSkin.indexBufferId,a3DSkin.vertexBuffers,indexBuffers,vertexBuffers); var surfaces:Vector. = a3DSkin.surfaces; for(var i:int = 0; i < surfaces.length; i++) { s = surfaces[i]; - m = this.method_722(materials[s.materialId],maps,images); + m = this.§_-dI§(materials[s.materialId],maps,images); res.addSurface(m,s.indexBegin,s.numTriangles); } return res; } - private function method_731(geometry:name_119) : void + private function §_-Jp§(geometry:§_-gA§) : void { var offset:int = 0; var i:int = 0; var attr:int = 0; - var vertexStream:name_432 = geometry.alternativa3d::_vertexStreams[0]; + var vertexStream:§_-mb§ = geometry.alternativa3d::_vertexStreams[0]; var prev:int = -1; var stride:int = vertexStream.attributes.length * 4; var length:int = vertexStream.data.length / stride; @@ -710,11 +710,11 @@ package package_116 { switch(attr) { - case name_126.JOINTS[0]: + case §_-d6§.JOINTS[0]: data.position = j * stride + offset; trace("JOINT0:",data.readFloat(),data.readFloat(),data.readFloat(),data.readFloat()); break; - case name_126.JOINTS[1]: + case §_-d6§.JOINTS[1]: data.position = j * stride + offset; trace("JOINT1:",data.readFloat(),data.readFloat(),data.readFloat(),data.readFloat()); } @@ -724,10 +724,10 @@ package package_116 } } - private function method_724(indexBufferID:int, vertexBuffersIDs:Vector., indexBuffers:Dictionary, vertexBuffers:Dictionary) : name_119 + private function §_-DD§(indexBufferID:int, vertexBuffersIDs:Vector., indexBuffers:Dictionary, vertexBuffers:Dictionary) : §_-gA§ { var id:int = 0; - var geometry:name_119 = null; + var geometry:§_-gA§ = null; var vertexCount:uint = 0; var buffer:A3D2VertexBuffer = null; var byteArray:ByteArray = null; @@ -743,21 +743,21 @@ package package_116 { key += "v" + id.toString(); } - geometry = this.var_628[key]; + geometry = this.§_-gk§[key]; if(geometry != null) { return geometry; } - geometry = new name_119(); + geometry = new §_-gA§(); var a3dIB:A3D2IndexBuffer = indexBuffers[indexBufferID]; - var indices:Vector. = name_28.method_99(a3dIB.byteBuffer); + var indices:Vector. = §_-Pt§.§_-a1§(a3dIB.byteBuffer); var uvoffset:int = 0; geometry.alternativa3d::_indices = indices; var buffers:Vector. = vertexBuffersIDs; for(var j:int = 0; j < buffers.length; j++) { buffer = vertexBuffers[buffers[j]]; - vertexCount = buffer.vertexCount; + vertexCount = uint(buffer.vertexCount); byteArray = buffer.byteBuffer; byteArray.endian = Endian.LITTLE_ENDIAN; offset = 0; @@ -768,23 +768,23 @@ package package_116 switch(buffer.attributes[k]) { case A3D2VertexAttributes.POSITION: - attr = int(name_126.POSITION); + attr = int(§_-d6§.POSITION); break; case A3D2VertexAttributes.NORMAL: - attr = int(name_126.NORMAL); + attr = int(§_-d6§.NORMAL); break; case A3D2VertexAttributes.TANGENT4: - attr = int(name_126.TANGENT4); + attr = int(§_-d6§.TANGENT4); break; case A3D2VertexAttributes.TEXCOORD: - attr = int(name_126.TEXCOORDS[uvoffset]); + attr = int(§_-d6§.TEXCOORDS[uvoffset]); uvoffset++; break; case A3D2VertexAttributes.JOINT: - attr = int(name_126.JOINTS[jointsOffset]); + attr = int(§_-d6§.JOINTS[jointsOffset]); jointsOffset++; } - numFloats = name_126.name_433(attr); + numFloats = int(§_-d6§.§_-Dk§(attr)); numFloats = numFloats < 1 ? 1 : numFloats; for(t = 0; t < numFloats; t++) { @@ -796,51 +796,51 @@ package package_116 geometry.alternativa3d::_vertexStreams[0].data = byteArray; } geometry.alternativa3d::_numVertices = buffers.length > 0 ? int(vertexCount) : 0; - this.var_628[key] = geometry; + this.§_-gk§[key] = geometry; return geometry; } - private function method_717(source:A3D2Map, images:Dictionary) : name_167 + private function §_-L2§(source:A3D2Map, images:Dictionary) : §_-n4§ { if(source == null) { return null; } - var res:name_167 = this.maps[source.imageId]; + var res:§_-n4§ = this.maps[source.imageId]; if(res != null) { return res; } - return this.maps[source.imageId] = new name_167(images[source.imageId].url); + return this.maps[source.imageId] = new §_-n4§(images[source.imageId].url); } - private function method_722(source:A3D2Material, a3DMaps:Dictionary, images:Dictionary) : name_641 + private function §_-dI§(source:A3D2Material, a3DMaps:Dictionary, images:Dictionary) : §_-qn§ { if(source == null) { return null; } - var res:name_641 = this.materials[source.id]; + var res:§_-qn§ = this.materials[source.id]; if(res != null) { return res; } - res = this.materials[source.id] = new name_641(); - res.textures["diffuse"] = this.method_717(a3DMaps[source.diffuseMapId],images); - res.textures["emission"] = this.method_717(a3DMaps[source.lightMapId],images); - res.textures["bump"] = this.method_717(a3DMaps[source.normalMapId],images); - res.textures["specular"] = this.method_717(a3DMaps[source.specularMapId],images); - res.textures["glossiness"] = this.method_717(a3DMaps[source.glossinessMapId],images); - res.textures["transparent"] = this.method_717(a3DMaps[source.opacityMapId],images); + res = this.materials[source.id] = new §_-qn§(); + res.textures["diffuse"] = this.§_-L2§(a3DMaps[source.diffuseMapId],images); + res.textures["emission"] = this.§_-L2§(a3DMaps[source.lightMapId],images); + res.textures["bump"] = this.§_-L2§(a3DMaps[source.normalMapId],images); + res.textures["specular"] = this.§_-L2§(a3DMaps[source.specularMapId],images); + res.textures["glossiness"] = this.§_-L2§(a3DMaps[source.glossinessMapId],images); + res.textures["transparent"] = this.§_-L2§(a3DMaps[source.opacityMapId],images); return res; } } } -import package_39.name_160; -import package_39.name_450; +import §_-MU§.§_-5-§; +import §_-MU§.§_-XQ§; -class DummyClientLog implements name_160 +class DummyClientLog implements §_-5-§ { public function DummyClientLog() { @@ -860,19 +860,19 @@ class DummyClientLog implements name_160 return null; } - public function addLogListener(listener:name_450) : void + public function addLogListener(listener:§_-XQ§) : void { } - public function removeLogListener(listener:name_450) : void + public function removeLogListener(listener:§_-XQ§) : void { } - public function addLogChannelListener(channelName:String, listener:name_450) : void + public function addLogChannelListener(channelName:String, listener:§_-XQ§) : void { } - public function removeLogChannelListener(channelName:String, listener:name_450) : void + public function removeLogChannelListener(channelName:String, listener:§_-XQ§) : void { } diff --git a/src/?_-az?/?_-1H?.as b/src/?_-az?/?_-1H?.as new file mode 100644 index 0000000..8a39e7f --- /dev/null +++ b/src/?_-az?/?_-1H?.as @@ -0,0 +1,175 @@ +package §_-az§ +{ + import §_-Lt§.§_-Fv§; + import §_-Lt§.§_-x§; + import flash.utils.Dictionary; + import flash.utils.describeType; + import flash.utils.getDefinitionByName; + + public class §_-1H§ + { + private var §_-AF§:§_-Fv§ = new §_-Fv§(); + + private var §_-Ey§:TaskArray = new TaskArray(); + + private var §_-4z§:TaskArray = new TaskArray(); + + private var §_-TV§:Dictionary = new Dictionary(); + + public function §_-1H§() + { + super(); + } + + public function addTask(task:§_-ps§) : void + { + if(this.§_-AF§.contains(task)) + { + throw new Error("Task is already active"); + } + if(this.§_-Ey§.contains(task)) + { + throw new Error("Task has been already scheduled for addition"); + } + this.§_-Ey§.add(task); + } + + public function killTask(task:§_-ps§) : void + { + if(Boolean(this.§_-AF§.contains(task)) && !this.§_-4z§.contains(task)) + { + this.§_-4z§.add(task); + } + } + + public function §_-h3§() : void + { + var task:§_-ps§ = null; + this.§_-db§(); + var iterator:§_-x§ = this.§_-AF§.listIterator(); + while(iterator.hasNext()) + { + task = §_-ps§(iterator.next()); + if(!task.§_-DX§) + { + task.run(); + } + } + this.§_-4g§(); + } + + public function getTaskInterface(taskInterface:Class) : Object + { + return this.§_-TV§[taskInterface]; + } + + public function §_-Ap§() : void + { + var task:§_-ps§ = null; + var listIterator:§_-x§ = this.§_-AF§.listIterator(); + while(listIterator.hasNext()) + { + task = §_-ps§(listIterator.next()); + this.killTask(task); + } + } + + private function §_-db§() : void + { + var task:§_-ps§ = null; + var taskInterfaces:Vector. = null; + var taskInterface:Class = null; + var activeTasksIterator:§_-x§ = null; + var activeTask:§_-ps§ = null; + for(var i:int = 0; i < this.§_-Ey§.numTasks; i++) + { + task = this.§_-Ey§.tasks[i]; + task.§_-Uw§ = this; + task.start(); + taskInterfaces = this.§_-8q§(task); + for each(taskInterface in taskInterfaces) + { + this.§_-TV§[taskInterface] = task; + } + activeTasksIterator = this.§_-AF§.listIterator(); + while(activeTasksIterator.hasNext()) + { + activeTask = §_-ps§(activeTasksIterator.next()); + if(activeTask.priority > task.priority) + { + activeTasksIterator.§_-q9§(); + break; + } + } + activeTasksIterator.add(task); + } + this.§_-Ey§.clear(); + } + + private function §_-4g§() : void + { + var task:§_-ps§ = null; + var taskInterfaces:Vector. = null; + var taskInterface:Class = null; + for(var i:int = 0; i < this.§_-4z§.numTasks; i++) + { + task = this.§_-4z§.tasks[i]; + this.§_-AF§.remove(task); + task.stop(); + taskInterfaces = this.§_-8q§(task); + for each(taskInterface in taskInterfaces) + { + delete this.§_-TV§[taskInterface]; + } + task.§_-Uw§ = null; + } + this.§_-4z§.clear(); + } + + private function §_-8q§(object:Object) : Vector. + { + var interfaceXML:XML = null; + var interfaceClass:Object = null; + var result:Vector. = new Vector.(); + var xml:XML = describeType(object); + for each(interfaceXML in xml.implementsInterface) + { + interfaceClass = getDefinitionByName(interfaceXML.@type); + result.push(interfaceClass); + } + return result; + } + } +} + +class TaskArray +{ + public var tasks:Vector.<§_-ps§> = new Vector.<§_-ps§>(); + + public var numTasks:int; + + public function TaskArray() + { + super(); + } + + public function add(task:§_-ps§) : void + { + var _loc2_:* = this.numTasks++; + this.tasks[_loc2_] = task; + } + + public function clear() : void + { + for(var i:int = 0; i < this.numTasks; i++) + { + this.tasks[i] = null; + } + this.numTasks = 0; + } + + public function contains(task:§_-ps§) : Boolean + { + return this.tasks.indexOf(task) >= 0; + } +} diff --git a/src/?_-az?/?_-AG?.as b/src/?_-az?/?_-AG?.as new file mode 100644 index 0000000..84d042b --- /dev/null +++ b/src/?_-az?/?_-AG?.as @@ -0,0 +1,216 @@ +package §_-az§ +{ + import §_-Fc§.§_-8a§; + import §_-RQ§.§_-Q9§; + import §_-V-§.§_-mw§; + import §_-aM§.§_-Lm§; + import §_-aM§.§_-Yf§; + import §_-e6§.§_-1I§; + import §_-j-§.§_-B7§; + import §_-j-§.§_-Wd§; + import §_-lS§.§_-h2§; + import §_-nO§.§_-5B§; + import §_-nO§.§_-Yk§; + import flash.display.Stage; + import §in §.§_-N9§; + import §in §.§_-eF§; + + public class §_-AG§ + { + public static const TIME_SYSTEM_PRIORITY:int = 0; + + public static const INPUT_SYSTEM_PRIORITY:int = 1000; + + public static const EVENT_SYSTEM_PRIORITY:int = 2000; + + public static const LOGIC_SYSTEM_1_PRIORITY:int = 3000; + + public static const LOGIC_SYSTEM_2_PRIORITY:int = 3001; + + public static const PHYSICS_SYSTEM_PRIORITY:int = 4000; + + public static const RENDER_SYSTEM_PRIORITY:int = 5000; + + public static const CLEANUP_SYSTEM_PRIORITY:int = 6000; + + public const §_-PI§:§_-mw§ = new §_-mw§(20); + + private var §_-We§:Stage; + + private var §_-D9§:Object; + + private var §_-IC§:§_-kM§ = new DummyLogger(); + + private var §_-Uw§:§_-1H§; + + private var §_-f2§:§_-h2§; + + private var inputSystem:§_-Yf§; + + private var eventSystem:§_-Wd§; + + private var logicSystem1:§_-Yk§; + + private var logicSystem2:§_-Yk§; + + private var physicsSystem:§_-8a§; + + private var renderSystem:§_-1I§; + + private var §_-0s§:§_-N9§; + + private var §_-jZ§:Vector.<§_-gw§>; + + private var §_-TA§:int; + + private var §_-XC§:§_-Q9§; + + public function §_-AG§(stage:Stage, options:Object) + { + super(); + this.§_-We§ = stage; + this.§_-D9§ = options || {}; + this.§_-jZ§ = new Vector.<§_-gw§>(); + this.§_-XC§ = new §_-Q9§(); + this.§_-Uw§ = new §_-1H§(); + this.§_-f2§ = new §_-h2§(TIME_SYSTEM_PRIORITY); + this.§_-Uw§.addTask(this.§_-f2§); + this.inputSystem = new §_-Yf§(INPUT_SYSTEM_PRIORITY,stage); + this.§_-Uw§.addTask(this.inputSystem); + this.eventSystem = new §_-Wd§(EVENT_SYSTEM_PRIORITY); + this.§_-Uw§.addTask(this.eventSystem); + this.logicSystem1 = new §_-Yk§(LOGIC_SYSTEM_1_PRIORITY,this); + this.§_-Uw§.addTask(this.logicSystem1); + this.logicSystem2 = new §_-Yk§(LOGIC_SYSTEM_2_PRIORITY,this); + this.§_-Uw§.addTask(this.logicSystem2); + this.physicsSystem = new §_-8a§(PHYSICS_SYSTEM_PRIORITY,this.§_-XC§); + this.§_-Uw§.addTask(this.physicsSystem); + this.renderSystem = new §_-1I§(RENDER_SYSTEM_PRIORITY,stage); + this.§_-Uw§.addTask(this.renderSystem); + this.§_-0s§ = new §_-N9§(CLEANUP_SYSTEM_PRIORITY); + this.§_-Uw§.addTask(this.§_-0s§); + } + + public function get logger() : §_-kM§ + { + return this.§_-IC§; + } + + public function set logger(value:§_-kM§) : void + { + if(value == null) + { + throw new ArgumentError("Logger is null"); + } + this.§_-IC§ = value; + } + + public function get stage() : Stage + { + return this.§_-We§; + } + + public function get options() : Object + { + return this.§_-D9§; + } + + public function §_-L§(command:§_-eF§) : void + { + this.§_-0s§.§_-Si§(command); + } + + public function §_-11§() : §_-Q9§ + { + return this.§_-XC§; + } + + public function addTask(gameTask:§_-ps§) : void + { + this.§_-Uw§.addTask(gameTask); + } + + public function §_-oR§(entity:§_-gw§) : void + { + if(entity.index < 0) + { + entity.index = this.§_-TA§; + var _loc2_:* = this.§_-TA§++; + this.§_-jZ§[_loc2_] = entity; + entity.addToGame(this); + return; + } + throw new Error("Entity " + entity + " is already in game"); + } + + public function §_-13§(entity:§_-gw§) : void + { + var index:int = int(entity.index); + if(index < 0) + { + throw new Error("Entity " + entity + " is not in game"); + } + var lastEntity:§_-gw§ = this.§_-jZ§[--this.§_-TA§]; + lastEntity.index = index; + this.§_-jZ§[index] = lastEntity; + this.§_-jZ§[this.§_-TA§] = null; + entity.index = -1; + entity.removeFromGame(this); + } + + public function §_-Ku§() : §_-Lm§ + { + return this.inputSystem; + } + + public function §_-Ev§() : §_-B7§ + { + return this.eventSystem; + } + + public function getLogicSystem1() : §_-5B§ + { + return this.logicSystem1; + } + + public function getLogicSystem2() : §_-5B§ + { + return this.logicSystem2; + } + + public function §_-m8§() : §_-8a§ + { + return this.physicsSystem; + } + + public function §_-DZ§() : §_-1I§ + { + return this.renderSystem; + } + + public function §_-Kf§() : void + { + this.§_-PI§.§_-Ay§(); + this.§_-Uw§.§_-h3§(); + this.§_-PI§.§_-BM§(); + } + + public function §_-EC§() : void + { + this.§_-Uw§.§_-Ap§(); + this.§_-Uw§.§_-h3§(); + } + } +} + +class DummyLogger implements §_-kM§ +{ + public function DummyLogger() + { + super(); + } + + public function log(channel:String, text:String) : void + { + } +} diff --git a/src/package_113/name_469.as b/src/?_-bJ?/?_-eG?.as similarity index 64% rename from src/package_113/name_469.as rename to src/?_-bJ?/?_-eG?.as index 2bfd80e..1f2bce1 100644 --- a/src/package_113/name_469.as +++ b/src/?_-bJ?/?_-eG?.as @@ -1,20 +1,20 @@ -package package_113 +package §_-bJ§ { - import package_109.name_377; - import package_121.name_666; - import package_121.name_667; - import package_121.name_668; - import package_46.name_194; - import package_76.name_235; - import package_76.name_631; - import package_76.name_665; - import package_86.*; - import package_90.name_273; - import package_90.name_386; - import package_92.name_271; - import package_92.name_630; + import §_-1e§.§_-Nh§; + import §_-1e§.§_-hG§; + import §_-1e§.§_-jn§; + import §_-KA§.§_-FW§; + import §_-KA§.§_-jr§; + import §_-US§.§_-6h§; + import §_-US§.§_-BV§; + import §_-fT§.*; + import §_-nl§.§_-bj§; + import §_-pe§.§_-m3§; + import §while§.§_-GQ§; + import §while§.§_-Ph§; + import §while§.§_-hu§; - public class name_469 implements name_468 + public class §_-eG§ implements §_-Zm§ { private static var timestamp:int; @@ -24,19 +24,19 @@ package package_113 private static var EPSILON:Number = 0.0001; - private static var normal:name_194 = new name_194(); + private static var normal:§_-bj§ = new §_-bj§(); - private static var collisionBox:name_377 = new name_377(new name_194(),4294967295,0); + private static var collisionBox:§_-m3§ = new §_-m3§(new §_-bj§(),4294967295,0); private var cellSize:Number; - private var var_609:name_386 = new name_386(); + private var §_-aq§:§_-FW§ = new §_-FW§(); - private var denseArray:Vector.; + private var denseArray:Vector.<§_-Nh§>; private var denseCellIndices:Vector.; - private var var_613:int; + private var §_-00§:int; private var numCellsX:int; @@ -44,140 +44,140 @@ package package_113 private var numCellsZ:int; - private var var_616:int; + private var §_-Sp§:int; - private var var_615:Vector.; + private var §_-48§:Vector.; - private var var_618:int; + private var §_-81§:int; - private var var_611:Vector.; + private var §_-3Q§:Vector.<§_-Pg§>; - private var var_612:int; + private var §_-VV§:int; private var bodyCellEntries:Vector.; - private var var_596:Object; + private var §_-P6§:Object; - private var var_610:RaycastCellVisitor; + private var §_-SI§:RaycastCellVisitor; - private var var_614:OccupiedCellIndex; + private var §_-Qp§:OccupiedCellIndex; - private var var_617:Boolean; + private var §_-WJ§:Boolean; - public function name_469() + public function §_-eG§() { super(); - this.var_611 = new Vector.(); - this.var_610 = new RaycastCellVisitor(); - this.method_690(); - this.method_686(); + this.§_-3Q§ = new Vector.<§_-Pg§>(); + this.§_-SI§ = new RaycastCellVisitor(); + this.§_-kL§(); + this.§_-8J§(); } - private function method_655(type1:int, type2:int, collider:name_665) : void + private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void { - this.var_596[type1 | type2] = collider; + this.§_-P6§[type1 | type2] = collider; } - public function name_591(bodyCollisionData:name_568) : void + public function §_-pN§(bodyCollisionData:§_-YY§) : void { - if(this.method_683(bodyCollisionData.body) >= 0) + if(this.§_-OL§(bodyCollisionData.body) >= 0) { throw new Error("Body collision data already exists"); } - var bodyCollisionGridData:name_685 = name_685.create(); + var bodyCollisionGridData:§_-Pg§ = §_-Pg§.create(); bodyCollisionGridData.body = bodyCollisionData.body; bodyCollisionGridData.detailedPrimitives = bodyCollisionData.detailedPrimitives; bodyCollisionGridData.simplePrimitives = bodyCollisionData.simplePrimitives; - bodyCollisionGridData.index = this.var_612; - var _loc3_:* = this.var_612++; - this.var_611[_loc3_] = bodyCollisionGridData; - this.var_617 = true; + bodyCollisionGridData.index = this.§_-VV§; + var _loc3_:* = this.§_-VV§++; + this.§_-3Q§[_loc3_] = bodyCollisionGridData; + this.§_-WJ§ = true; } - public function name_590(bodyCollisionData:name_568) : void + public function §_-qP§(bodyCollisionData:§_-YY§) : void { - var index:int = this.method_683(bodyCollisionData.body); + var index:int = this.§_-OL§(bodyCollisionData.body); if(index < 0) { throw new Error("Body collision data not found"); } - --this.var_612; - var lastBodyEntry:name_685 = this.var_611[this.var_612]; + --this.§_-VV§; + var lastBodyEntry:§_-Pg§ = this.§_-3Q§[this.§_-VV§]; lastBodyEntry.index = index; - name_685(this.var_611[index]).destroy(); - this.var_611[index] = lastBodyEntry; - this.var_611[this.var_612] = null; - this.var_617 = true; + §_-Pg§(this.§_-3Q§[index]).destroy(); + this.§_-3Q§[index] = lastBodyEntry; + this.§_-3Q§[this.§_-VV§] = null; + this.§_-WJ§ = true; } - public function name_470() : void + public function §_-9F§() : void { - this.method_680(); + this.§_-nT§(); } - public function method_696() : Number + public function §_-OA§() : Number { return this.cellSize; } - public function method_700() : name_386 + public function §_-8t§() : §_-FW§ { - return this.var_609.clone(); + return this.§_-aq§.clone(); } - public function method_697() : int + public function §_-9i§() : int { return this.numCellsX; } - public function method_699() : int + public function §_-PM§() : int { return this.numCellsY; } - public function method_698() : int + public function §_-5F§() : int { return this.numCellsZ; } - public function method_701() : int + public function §_-Bo§() : int { - return this.var_616; + return this.§_-Sp§; } - public function method_695(x:int, y:int, z:int) : int + public function §_-D6§(x:int, y:int, z:int) : int { var cellIndex:int = x * this.numCellsY * this.numCellsZ + y * this.numCellsZ + z; return this.denseCellIndices[cellIndex] >>> 24; } - public function name_472(cellSize:Number, staticPrimitives:Vector.) : void + public function §_-hS§(cellSize:Number, staticPrimitives:Vector.<§_-Nh§>) : void { - this.method_693(staticPrimitives,cellSize); - this.method_684(staticPrimitives); - this.method_689(); + this.§_-SQ§(staticPrimitives,cellSize); + this.§_-hH§(staticPrimitives); + this.§_-EF§(); } - public function method_651(center:name_194, radius:Number, filter:name_655) : Vector. + public function §_-7u§(center:§_-bj§, radius:Number, filter:§_-VN§) : Vector.<§_-bB§> { - var result:Vector. = null; + var result:Vector.<§_-bB§> = null; var j:int = 0; var k:int = 0; var index:int = 0; var bodyCellEntry:BodyCellEntry = null; - var data:name_685 = null; - var body:name_271 = null; - var position:name_194 = null; + var data:§_-Pg§ = null; + var body:§_-BV§ = null; + var position:§_-bj§ = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var d:Number = NaN; - var imin:int = this.clamp((center.x - radius - this.var_609.minX) / this.cellSize,0,this.numCellsX - 1); - var imax:int = this.clamp((center.x + radius - this.var_609.minX) / this.cellSize,0,this.numCellsX - 1); - var jmin:int = this.clamp((center.y - radius - this.var_609.minY) / this.cellSize,0,this.numCellsY - 1); - var jmax:int = this.clamp((center.y + radius - this.var_609.minY) / this.cellSize,0,this.numCellsY - 1); - var kmin:int = this.clamp((center.z - radius - this.var_609.minZ) / this.cellSize,0,this.numCellsZ - 1); - var kmax:int = this.clamp((center.z + radius - this.var_609.minZ) / this.cellSize,0,this.numCellsZ - 1); + var imin:int = this.clamp((center.x - radius - this.§_-aq§.minX) / this.cellSize,0,this.numCellsX - 1); + var imax:int = this.clamp((center.x + radius - this.§_-aq§.minX) / this.cellSize,0,this.numCellsX - 1); + var jmin:int = this.clamp((center.y - radius - this.§_-aq§.minY) / this.cellSize,0,this.numCellsY - 1); + var jmax:int = this.clamp((center.y + radius - this.§_-aq§.minY) / this.cellSize,0,this.numCellsY - 1); + var kmin:int = this.clamp((center.z - radius - this.§_-aq§.minZ) / this.cellSize,0,this.numCellsZ - 1); + var kmax:int = this.clamp((center.z + radius - this.§_-aq§.minZ) / this.cellSize,0,this.numCellsZ - 1); var ts:int = int(++timestamp); var radiusSqr:Number = radius * radius; for(var i:int = imin; i <= imax; i++) @@ -201,13 +201,13 @@ package package_113 d = dx * dx + dy * dy + dz * dz; if(d < radiusSqr) { - if(filter == null || Boolean(filter.name_670(center,body))) + if(filter == null || Boolean(filter.§_-cb§(center,body))) { if(result == null) { - result = new Vector.(); + result = new Vector.<§_-bB§>(); } - result.push(new name_654(body,Math.sqrt(d))); + result.push(new §_-bB§(body,Math.sqrt(d))); } } } @@ -219,55 +219,55 @@ package package_113 return result; } - public function method_553(contacts:name_630) : name_630 + public function §_-63§(contacts:§_-6h§) : §_-6h§ { - var bodyCollisionData:name_685 = null; - this.method_680(); - for(var i:int = 0; i < this.var_612; i++) + var bodyCollisionData:§_-Pg§ = null; + this.§_-nT§(); + for(var i:int = 0; i < this.§_-VV§; i++) { - bodyCollisionData = this.var_611[i]; - contacts = this.method_687(bodyCollisionData,contacts); + bodyCollisionData = this.§_-3Q§[i]; + contacts = this.§_-RK§(bodyCollisionData,contacts); } - return this.method_692(contacts); + return this.§_-aE§(contacts); } - private function method_689() : void + private function §_-EF§() : void { - this.var_610.denseArray = this.denseArray; - this.var_610.denseCellIndices = this.denseCellIndices; - this.var_610.numCellsX = this.numCellsX; - this.var_610.numCellsY = this.numCellsY; - this.var_610.numCellsZ = this.numCellsZ; + this.§_-SI§.denseArray = this.denseArray; + this.§_-SI§.denseCellIndices = this.denseCellIndices; + this.§_-SI§.numCellsX = this.numCellsX; + this.§_-SI§.numCellsY = this.numCellsY; + this.§_-SI§.numCellsZ = this.numCellsZ; } - private function method_693(staticPrimitives:Vector., cellSize:Number) : void + private function §_-SQ§(staticPrimitives:Vector.<§_-Nh§>, cellSize:Number) : void { - var collisionPrimitive:name_235 = null; + var collisionPrimitive:§_-Nh§ = null; this.cellSize = cellSize; - this.var_609.name_584(); + this.§_-aq§.§_-GT§(); for each(collisionPrimitive in staticPrimitives) { - this.var_609.name_583(collisionPrimitive.calculateAABB()); + this.§_-aq§.§_-EH§(collisionPrimitive.calculateAABB()); } - this.var_609.name_686(cellSize + EPSILON); - this.numCellsX = int(this.var_609.name_689() / cellSize) + 1; - this.numCellsY = int(this.var_609.name_688() / cellSize) + 1; - this.numCellsZ = int(this.var_609.name_690() / cellSize) + 1; - this.var_613 = this.numCellsX * this.numCellsY * this.numCellsZ; - this.var_609.maxX = this.var_609.minX + this.numCellsX * cellSize; - this.var_609.maxY = this.var_609.minY + this.numCellsY * cellSize; - this.var_609.maxZ = this.var_609.minZ + this.numCellsZ * cellSize; - this.bodyCellEntries = new Vector.(this.var_613); + this.§_-aq§.§_-Gd§(cellSize + EPSILON); + this.numCellsX = int(this.§_-aq§.§_-ot§() / cellSize) + 1; + this.numCellsY = int(this.§_-aq§.§_-jP§() / cellSize) + 1; + this.numCellsZ = int(this.§_-aq§.§_-Ix§() / cellSize) + 1; + this.§_-00§ = this.numCellsX * this.numCellsY * this.numCellsZ; + this.§_-aq§.maxX = this.§_-aq§.minX + this.numCellsX * cellSize; + this.§_-aq§.maxY = this.§_-aq§.minY + this.numCellsY * cellSize; + this.§_-aq§.maxZ = this.§_-aq§.minZ + this.numCellsZ * cellSize; + this.bodyCellEntries = new Vector.(this.§_-00§); } - private function method_684(staticPrimitives:Vector.) : void + private function §_-hH§(staticPrimitives:Vector.<§_-Nh§>) : void { var index:int = 0; var denseArraySize:int = 0; var lastIndex:int = 0; var numCellPrimitives:int = 0; - var collisionPrimitive:name_235 = null; - var bb:name_386 = null; + var collisionPrimitive:§_-Nh§ = null; + var bb:§_-FW§ = null; var imin:int = 0; var imax:int = 0; var jmin:int = 0; @@ -279,33 +279,33 @@ package package_113 var k:int = 0; var cellIndex:int = 0; var denseCellIndex:int = 0; - var cellCounters:Vector. = this.method_685(staticPrimitives); - this.var_616 = 0; - this.denseCellIndices = new Vector.(this.var_613); - for(index = 0; index < this.var_613; index++) + var cellCounters:Vector. = this.§_-VK§(staticPrimitives); + this.§_-Sp§ = 0; + this.denseCellIndices = new Vector.(this.§_-00§); + for(index = 0; index < this.§_-00§; index++) { numCellPrimitives = cellCounters[index]; - if(numCellPrimitives > this.var_616) + if(numCellPrimitives > this.§_-Sp§) { - this.var_616 = numCellPrimitives; + this.§_-Sp§ = numCellPrimitives; } denseArraySize += numCellPrimitives; this.denseCellIndices[index] = numCellPrimitives << 24 | lastIndex; lastIndex += numCellPrimitives; cellCounters[index] = 0; } - this.denseArray = new Vector.(denseArraySize); + this.denseArray = new Vector.<§_-Nh§>(denseArraySize); var numPrimitives:int = int(staticPrimitives.length); for(index = 0; index < numPrimitives; index++) { collisionPrimitive = staticPrimitives[index]; bb = collisionPrimitive.aabb; - imin = (bb.minX - this.var_609.minX) / this.cellSize; - imax = (bb.maxX - this.var_609.minX) / this.cellSize; - jmin = (bb.minY - this.var_609.minY) / this.cellSize; - jmax = (bb.maxY - this.var_609.minY) / this.cellSize; - kmin = (bb.minZ - this.var_609.minZ) / this.cellSize; - kmax = (bb.maxZ - this.var_609.minZ) / this.cellSize; + imin = (bb.minX - this.§_-aq§.minX) / this.cellSize; + imax = (bb.maxX - this.§_-aq§.minX) / this.cellSize; + jmin = (bb.minY - this.§_-aq§.minY) / this.cellSize; + jmax = (bb.maxY - this.§_-aq§.minY) / this.cellSize; + kmin = (bb.minZ - this.§_-aq§.minZ) / this.cellSize; + kmax = (bb.maxZ - this.§_-aq§.minZ) / this.cellSize; for(i = imin; i <= imax; i++) { for(j = jmin; j <= jmax; j++) @@ -322,9 +322,9 @@ package package_113 } } - private function method_685(staticPrimitives:Vector.) : Vector. + private function §_-VK§(staticPrimitives:Vector.<§_-Nh§>) : Vector. { - var bb:name_386 = null; + var bb:§_-FW§ = null; var imin:int = 0; var imax:int = 0; var jmin:int = 0; @@ -335,17 +335,17 @@ package package_113 var j:int = 0; var k:int = 0; var cellIndex:int = 0; - var cellPrimitiveCounters:Vector. = new Vector.(this.var_613); + var cellPrimitiveCounters:Vector. = new Vector.(this.§_-00§); var numPrimitives:int = int(staticPrimitives.length); for(var index:int = 0; index < numPrimitives; index++) { bb = staticPrimitives[index].aabb; - imin = (bb.minX - this.var_609.minX) / this.cellSize; - imax = (bb.maxX - this.var_609.minX) / this.cellSize; - jmin = (bb.minY - this.var_609.minY) / this.cellSize; - jmax = (bb.maxY - this.var_609.minY) / this.cellSize; - kmin = (bb.minZ - this.var_609.minZ) / this.cellSize; - kmax = (bb.maxZ - this.var_609.minZ) / this.cellSize; + imin = (bb.minX - this.§_-aq§.minX) / this.cellSize; + imax = (bb.maxX - this.§_-aq§.minX) / this.cellSize; + jmin = (bb.minY - this.§_-aq§.minY) / this.cellSize; + jmax = (bb.maxY - this.§_-aq§.minY) / this.cellSize; + kmin = (bb.minZ - this.§_-aq§.minZ) / this.cellSize; + kmax = (bb.maxZ - this.§_-aq§.minZ) / this.cellSize; for(i = imin; i <= imax; i++) { for(j = jmin; j <= jmax; j++) @@ -361,11 +361,11 @@ package package_113 return cellPrimitiveCounters; } - private function method_692(contacts:name_630) : name_630 + private function §_-aE§(contacts:§_-6h§) : §_-6h§ { var currentBodyCellEntry:BodyCellEntry = null; - var currentBodyData:name_685 = null; - var bodyCollisionGridData:name_685 = null; + var currentBodyData:§_-Pg§ = null; + var bodyCollisionGridData:§_-Pg§ = null; var imin:int = 0; var imax:int = 0; var jmin:int = 0; @@ -377,14 +377,14 @@ package package_113 var j:int = 0; var k:int = 0; var cellIndex:int = 0; - this.method_694(); - var numBodies:int = int(this.var_611.length); - for(var occupiedCell:OccupiedCellIndex = this.var_614; occupiedCell != null; ) + this.§_-KE§(); + var numBodies:int = int(this.§_-3Q§.length); + for(var occupiedCell:OccupiedCellIndex = this.§_-Qp§; occupiedCell != null; ) { for(currentBodyCellEntry = this.bodyCellEntries[occupiedCell.index]; currentBodyCellEntry != null; ) { currentBodyData = currentBodyCellEntry.data; - contacts = this.method_682(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,currentBodyCellEntry.next,numBodies,contacts); + contacts = this.§_-AZ§(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,currentBodyCellEntry.next,numBodies,contacts); bodyCollisionGridData = currentBodyCellEntry.data; imin = bodyCollisionGridData.i & 0xFFFF; imax = bodyCollisionGridData.i >>> 16; @@ -402,7 +402,7 @@ package package_113 cellIndex = i * this.numCellsY * this.numCellsZ + j * this.numCellsZ + k; if(cellIndex != thisCell) { - contacts = this.method_682(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,this.bodyCellEntries[cellIndex],numBodies,contacts); + contacts = this.§_-AZ§(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,this.bodyCellEntries[cellIndex],numBodies,contacts); } k++; } @@ -415,25 +415,25 @@ package package_113 return contacts; } - private function method_682(body:name_271, bodyIndex:int, bodyPrimitives:Vector., cellStartEntry:BodyCellEntry, numBodies:int, contacts:name_630) : name_630 + private function §_-AZ§(body:§_-BV§, bodyIndex:int, bodyPrimitives:Vector.<§_-Nh§>, cellStartEntry:BodyCellEntry, numBodies:int, contacts:§_-6h§) : §_-6h§ { var index2:int = 0; var min:int = 0; var max:int = 0; var bitIndex:int = 0; var mask:int = 0; - var body2:name_271 = null; - var bodyPrimitives2:Vector. = null; + var body2:§_-BV§ = null; + var bodyPrimitives2:Vector.<§_-Nh§> = null; var numPrimitives2:int = 0; var i:int = 0; - var collisionPrimitive1:name_235 = null; + var collisionPrimitive1:§_-Nh§ = null; var j:int = 0; - var collisionPrimitive2:name_235 = null; + var collisionPrimitive2:§_-Nh§ = null; for(var numPrimitives1:int = int(bodyPrimitives.length); cellStartEntry != null; ) { if(cellStartEntry.data.body != body) { - index2 = cellStartEntry.data.index; + index2 = int(cellStartEntry.data.index); min = bodyIndex; max = index2; if(bodyIndex > index2) @@ -443,9 +443,9 @@ package package_113 } bitIndex = min * (2 * numBodies - min - 3) / 2 + max - 1; mask = 1 << (bitIndex & 0x1F); - if((this.var_615[bitIndex >>> 5] & mask) == 0) + if((this.§_-48§[bitIndex >>> 5] & mask) == 0) { - this.var_615[bitIndex >>> 5] |= mask; + this.§_-48§[bitIndex >>> 5] |= mask; body2 = cellStartEntry.data.body; if(body2.aabb.intersects(body.aabb,EPSILON)) { @@ -459,7 +459,7 @@ package package_113 collisionPrimitive2 = bodyPrimitives2[j]; if(!((collisionPrimitive1.collisionGroup & collisionPrimitive2.collisionMask) == 0 || (collisionPrimitive1.collisionMask & collisionPrimitive2.collisionGroup) == 0 || !collisionPrimitive1.aabb.intersects(collisionPrimitive2.aabb,EPSILON))) { - contacts = this.method_691(body,bodyPrimitives,numPrimitives1,body2,bodyPrimitives2,numPrimitives2,contacts); + contacts = this.§_-1p§(body,bodyPrimitives,numPrimitives1,body2,bodyPrimitives2,numPrimitives2,contacts); } } } @@ -471,11 +471,11 @@ package package_113 return contacts; } - private function method_691(body1:name_271, primitives1:Vector., numPrimitives1:int, body2:name_271, primitives2:Vector., numPrimitives2:int, contact:name_630) : name_630 + private function §_-1p§(body1:§_-BV§, primitives1:Vector.<§_-Nh§>, numPrimitives1:int, body2:§_-BV§, primitives2:Vector.<§_-Nh§>, numPrimitives2:int, contact:§_-6h§) : §_-6h§ { - var primitive1:name_235 = null; + var primitive1:§_-Nh§ = null; var j:int = 0; - var primitive2:name_235 = null; + var primitive2:§_-Nh§ = null; var skipCollision:Boolean = false; var firstFilterTest:Boolean = true; for(var i:int = 0; i < numPrimitives1; i++) @@ -511,15 +511,15 @@ package package_113 return contact; } - private function method_694() : void + private function §_-KE§() : void { - for(var i:int = 0; i < this.var_618; i++) + for(var i:int = 0; i < this.§_-81§; i++) { - this.var_615[i] = 0; + this.§_-48§[i] = 0; } } - private function method_687(bodyCollisionData:name_685, contacts:name_630) : name_630 + private function §_-RK§(bodyCollisionData:§_-Pg§, contacts:§_-6h§) : §_-6h§ { var jj:int = 0; var kk:int = 0; @@ -527,9 +527,9 @@ package package_113 var denseIndexStart:int = 0; var denseIndexEnd:int = 0; var index:int = 0; - var staticCollisionPrimitive:name_235 = null; + var staticCollisionPrimitive:§_-Nh§ = null; var bpi:int = 0; - var bodyCollisionPrimitive:name_235 = null; + var bodyCollisionPrimitive:§_-Nh§ = null; var imin:int = bodyCollisionData.i & 0xFFFF; var imax:int = bodyCollisionData.i >>> 16; var jmin:int = bodyCollisionData.j & 0xFFFF; @@ -537,7 +537,7 @@ package package_113 var kmin:int = bodyCollisionData.k & 0xFFFF; var kmax:int = bodyCollisionData.k >>> 16; var tstamp:int = int(++timestamp); - var bodyPrimitives:Vector. = bodyCollisionData.detailedPrimitives; + var bodyPrimitives:Vector.<§_-Nh§> = bodyCollisionData.detailedPrimitives; var numBodyPrimitives:int = int(bodyPrimitives.length); for(var ii:int = imin; ii <= imax; ii++) { @@ -572,71 +572,71 @@ package package_113 return contacts; } - public function raycast(origin:name_194, direction:name_194, collisionMask:int, maxTime:Number, filter:name_631, result:name_273) : Boolean + public function raycast(origin:§_-bj§, direction:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean { - if(this.var_617) + if(this.§_-WJ§) { - this.method_680(); + this.§_-nT§(); } - this.var_610.collisionMask = collisionMask; - this.var_610.filter = filter; - this.var_610.result = result; - this.var_610.bodyCellEntries = this.bodyCellEntries; - this.method_681(origin,direction,maxTime,this.var_610); - this.var_610.clear(); - if(this.var_610.hasHit) + this.§_-SI§.collisionMask = collisionMask; + this.§_-SI§.filter = filter; + this.§_-SI§.result = result; + this.§_-SI§.bodyCellEntries = this.bodyCellEntries; + this.§_-e0§(origin,direction,maxTime,this.§_-SI§); + this.§_-SI§.clear(); + if(this.§_-SI§.hasHit) { if(result.t < maxTime) { - result.position.copy(origin).method_362(result.t,direction); + result.position.copy(origin).§_-LQ§(result.t,direction); return true; } } return false; } - public function name_324(origin:name_194, direction:name_194, collisionMask:int, maxTime:Number, filter:name_631, result:name_273) : Boolean + public function §_-cX§(origin:§_-bj§, direction:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean { - this.var_610.collisionMask = collisionMask; - this.var_610.filter = filter; - this.var_610.result = result; - this.method_681(origin,direction,maxTime,this.var_610); - this.var_610.clear(); - if(this.var_610.hasHit) + this.§_-SI§.collisionMask = collisionMask; + this.§_-SI§.filter = filter; + this.§_-SI§.result = result; + this.§_-e0§(origin,direction,maxTime,this.§_-SI§); + this.§_-SI§.clear(); + if(this.§_-SI§.hasHit) { if(result.t < maxTime) { - result.position.copy(origin).method_362(result.t,direction); + result.position.copy(origin).§_-LQ§(result.t,direction); return true; } } return false; } - public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean { if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0 || !prim1.aabb.intersects(prim2.aabb,0.01)) { return false; } - var collider:name_665 = this.var_596[prim1.type | prim2.type]; + var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type]; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_662(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_662(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); } return false; } - public function method_554(prim1:name_235, prim2:name_235) : Boolean + public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean { return false; } - public function method_681(origin:name_194, direction:name_194, maxTime:Number, visitor:class_34) : void + public function §_-e0§(origin:§_-bj§, direction:§_-bj§, maxTime:Number, visitor:§_-hm§) : void { var t:Number = NaN; var i:int = 0; @@ -644,29 +644,29 @@ package package_113 var k:int = 0; var cellMaxTime:Number = NaN; var tstamp:int = int(++timestamp); - var x1:Number = origin.x - this.var_609.minX; - var y1:Number = origin.y - this.var_609.minY; - var z1:Number = origin.z - this.var_609.minZ; + var x1:Number = origin.x - this.§_-aq§.minX; + var y1:Number = origin.y - this.§_-aq§.minY; + var z1:Number = origin.z - this.§_-aq§.minZ; var x2:Number = x1 + direction.x * maxTime; var y2:Number = y1 + direction.y * maxTime; var z2:Number = z1 + direction.z * maxTime; var axis:int = -1; var entryTime:Number = 0; - var p:name_194 = new name_194(); - var pointInBounds:Boolean = this.var_609.name_687(origin,EPSILON); + var p:§_-bj§ = new §_-bj§(); + var pointInBounds:Boolean = this.§_-aq§.§_-Wu§(origin,EPSILON); if(!pointInBounds) { collisionBox.hs.reset(this.cellSize * this.numCellsX / 2,this.cellSize * this.numCellsY / 2,this.cellSize * this.numCellsZ / 2); - collisionBox.transform.d = this.var_609.minX + collisionBox.hs.x; - collisionBox.transform.h = this.var_609.minY + collisionBox.hs.y; - collisionBox.transform.l = this.var_609.minZ + collisionBox.hs.z; + collisionBox.transform.d = this.§_-aq§.minX + collisionBox.hs.x; + collisionBox.transform.h = this.§_-aq§.minY + collisionBox.hs.y; + collisionBox.transform.l = this.§_-aq§.minZ + collisionBox.hs.z; collisionBox.calculateAABB(); t = collisionBox.raycast(origin,direction,EPSILON,normal); if(t < 0 || t >= maxTime) { return; } - p.copy(origin).method_362(t,direction); + p.copy(origin).§_-LQ§(t,direction); if(normal.x > 0.9999 || normal.x < -0.9999) { axis = 0; @@ -680,9 +680,9 @@ package package_113 axis = 2; } entryTime = t; - i = this.clamp((p.x - this.var_609.minX) / this.cellSize,0,this.numCellsX - 1); - j = this.clamp((p.y - this.var_609.minY) / this.cellSize,0,this.numCellsY - 1); - k = this.clamp((p.z - this.var_609.minZ) / this.cellSize,0,this.numCellsZ - 1); + i = this.clamp((p.x - this.§_-aq§.minX) / this.cellSize,0,this.numCellsX - 1); + j = this.clamp((p.y - this.§_-aq§.minY) / this.cellSize,0,this.numCellsY - 1); + k = this.clamp((p.z - this.§_-aq§.minZ) / this.cellSize,0,this.numCellsZ - 1); } else { @@ -784,12 +784,12 @@ package package_113 return value; } - private function method_688() : void + private function §_-Oi§() : void { var bodyCellEntry:BodyCellEntry = null; var nextBodyCellEntry:BodyCellEntry = null; var nextOccupiedCell:OccupiedCellIndex = null; - for(var cellIndex:int = 0; cellIndex < this.var_613; cellIndex++) + for(var cellIndex:int = 0; cellIndex < this.§_-00§; cellIndex++) { bodyCellEntry = this.bodyCellEntries[cellIndex]; for(this.bodyCellEntries[cellIndex] = null; bodyCellEntry != null; ) @@ -799,8 +799,8 @@ package package_113 bodyCellEntry = nextBodyCellEntry; } } - var occupiedCell:OccupiedCellIndex = this.var_614; - for(this.var_614 = null; occupiedCell != null; ) + var occupiedCell:OccupiedCellIndex = this.§_-Qp§; + for(this.§_-Qp§ = null; occupiedCell != null; ) { nextOccupiedCell = occupiedCell.next; occupiedCell.destory(); @@ -808,10 +808,10 @@ package package_113 } } - private function method_680() : void + private function §_-nT§() : void { - var bodyCollisionData:name_685 = null; - var boundBox:name_386 = null; + var bodyCollisionData:§_-Pg§ = null; + var boundBox:§_-FW§ = null; var imin:int = 0; var jmin:int = 0; var kmin:int = 0; @@ -825,31 +825,31 @@ package package_113 var k:int = 0; var index:int = 0; var newEntry:BodyCellEntry = null; - this.method_688(); - for(var ti:int = 0; ti < this.var_612; ti++) + this.§_-Oi§(); + for(var ti:int = 0; ti < this.§_-VV§; ti++) { - bodyCollisionData = this.var_611[ti]; + bodyCollisionData = this.§_-3Q§[ti]; boundBox = bodyCollisionData.body.aabb; - imin = (boundBox.minX - this.var_609.minX) / this.cellSize; + imin = (boundBox.minX - this.§_-aq§.minX) / this.cellSize; if(!(imin < 0 || imin >= this.numCellsX)) { - jmin = (boundBox.minY - this.var_609.minY) / this.cellSize; + jmin = (boundBox.minY - this.§_-aq§.minY) / this.cellSize; if(!(jmin < 0 || jmin >= this.numCellsY)) { - kmin = (boundBox.minZ - this.var_609.minZ) / this.cellSize; + kmin = (boundBox.minZ - this.§_-aq§.minZ) / this.cellSize; if(!(kmin < 0 || kmin >= this.numCellsZ)) { - imax = (boundBox.maxX - this.var_609.minX) / this.cellSize; + imax = (boundBox.maxX - this.§_-aq§.minX) / this.cellSize; if(imax >= this.numCellsX) { imax = this.numCellsX - 1; } - jmax = (boundBox.maxY - this.var_609.minY) / this.cellSize; + jmax = (boundBox.maxY - this.§_-aq§.minY) / this.cellSize; if(jmax >= this.numCellsY) { jmax = this.numCellsY - 1; } - kmax = (boundBox.maxZ - this.var_609.minZ) / this.cellSize; + kmax = (boundBox.maxZ - this.§_-aq§.minZ) / this.cellSize; if(kmax >= this.numCellsZ) { kmax = this.numCellsZ - 1; @@ -861,8 +861,8 @@ package package_113 if(this.bodyCellEntries[cellIndex] == null) { occupiedCellIndex = OccupiedCellIndex.create(cellIndex); - occupiedCellIndex.next = this.var_614; - this.var_614 = occupiedCellIndex; + occupiedCellIndex.next = this.§_-Qp§; + this.§_-Qp§ = occupiedCellIndex; } for(i = imin; i <= imax; ) { @@ -883,15 +883,15 @@ package package_113 } } } - this.var_617 = false; + this.§_-WJ§ = false; } - private function method_683(body:name_271) : int + private function §_-OL§(body:§_-BV§) : int { - var bodyCollisionGridData:name_685 = null; - for(var i:int = 0; i < this.var_612; ) + var bodyCollisionGridData:§_-Pg§ = null; + for(var i:int = 0; i < this.§_-VV§; ) { - bodyCollisionGridData = this.var_611[i]; + bodyCollisionGridData = this.§_-3Q§[i]; if(bodyCollisionGridData.body == body) { return i; @@ -901,33 +901,33 @@ package package_113 return -1; } - private function method_686() : void + private function §_-8J§() : void { var maxObjectPairs:int = MAX_OBJECTS * (MAX_OBJECTS - 1) / 2; - this.var_618 = (maxObjectPairs + 31) / 32; - this.var_615 = new Vector.(this.var_618); + this.§_-81§ = (maxObjectPairs + 31) / 32; + this.§_-48§ = new Vector.(this.§_-81§); } - private function method_690() : void + private function §_-kL§() : void { - this.var_596 = new Object(); - this.method_655(name_235.BOX,name_235.BOX,new name_666()); - this.method_655(name_235.BOX,name_235.RECT,new name_667()); - this.method_655(name_235.BOX,name_235.TRIANGLE,new name_668()); + this.§_-P6§ = new Object(); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.BOX,new §_-Ph§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.RECT,new §_-GQ§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.TRIANGLE,new §_-hu§()); } } } -import package_46.name_194; -import package_76.name_235; -import package_76.name_631; -import package_90.name_273; +import §_-1e§.§_-Nh§; +import §_-1e§.§_-jn§; +import §_-KA§.§_-jr§; +import §_-nl§.§_-bj§; class BodyCellEntry { private static var pool:BodyCellEntry; - public var data:name_685; + public var data:§_-Pg§; public var next:BodyCellEntry; @@ -956,13 +956,13 @@ class BodyCellEntry } } -class RaycastCellVisitor implements class_34 +class RaycastCellVisitor implements §_-hm§ { public static var EPSILON:Number = 0.0001; - private static var normal:name_194 = new name_194(); + private static var normal:§_-bj§ = new §_-bj§(); - public var denseArray:Vector.; + public var denseArray:Vector.<§_-Nh§>; public var denseCellIndices:Vector.; @@ -976,15 +976,15 @@ class RaycastCellVisitor implements class_34 public var collisionMask:int; - public var filter:name_631; + public var filter:§_-jn§; - public var result:name_273; + public var result:§_-jr§; public var hasHit:Boolean; - private var nearestPrimitive:name_235; + private var nearestPrimitive:§_-Nh§; - private var nearestNormal:name_194 = new name_194(); + private var nearestNormal:§_-bj§ = new §_-bj§(); private var nearestTime:Number = 1.7976931348623157e+308; @@ -993,13 +993,13 @@ class RaycastCellVisitor implements class_34 super(); } - public function visitCell(celli:int, cellj:int, cellk:int, axis:int, cellEntryTime:Number, cellMaxTime:Number, timestamp:int, rayOrigin:name_194, rayDirection:name_194) : Boolean + public function visitCell(celli:int, cellj:int, cellk:int, axis:int, cellEntryTime:Number, cellMaxTime:Number, timestamp:int, rayOrigin:§_-bj§, rayDirection:§_-bj§) : Boolean { - var collisionPrimitive:name_235 = null; + var collisionPrimitive:§_-Nh§ = null; var time:Number = NaN; var bodyCellEntry:BodyCellEntry = null; - var data:name_685 = null; - var detailedPrimitives:Vector. = null; + var data:§_-Pg§ = null; + var detailedPrimitives:Vector.<§_-Nh§> = null; var numPrimitives:uint = 0; this.hasHit = false; var cellIndex:int = celli * this.numCellsY * this.numCellsZ + cellj * this.numCellsZ + cellk; @@ -1015,8 +1015,8 @@ class RaycastCellVisitor implements class_34 collisionPrimitive.timestamp = timestamp; if((collisionPrimitive.collisionGroup & this.collisionMask) != 0) { - time = collisionPrimitive.raycast(rayOrigin,rayDirection,EPSILON,normal); - if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.name_664(collisionPrimitive)))) + time = Number(collisionPrimitive.raycast(rayOrigin,rayDirection,EPSILON,normal)); + if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.§_-0w§(collisionPrimitive)))) { minTime = time; if(time < cellMaxTime) @@ -1052,8 +1052,8 @@ class RaycastCellVisitor implements class_34 collisionPrimitive = detailedPrimitives[i]; if((collisionPrimitive.collisionGroup & this.collisionMask) != 0) { - time = collisionPrimitive.raycast(rayOrigin,rayDirection,EPSILON,normal); - if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.name_664(collisionPrimitive)))) + time = Number(collisionPrimitive.raycast(rayOrigin,rayDirection,EPSILON,normal)); + if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.§_-0w§(collisionPrimitive)))) { minTime = time; if(time < cellMaxTime) diff --git a/src/alternativa/tanks/config/TextureLibrary.as b/src/?_-cv?/?_-Tv?.as similarity index 55% rename from src/alternativa/tanks/config/TextureLibrary.as rename to src/?_-cv?/?_-Tv?.as index 5b6cedf..57b7f3a 100644 --- a/src/alternativa/tanks/config/TextureLibrary.as +++ b/src/?_-cv?/?_-Tv?.as @@ -1,29 +1,29 @@ -package alternativa.tanks.config +package §_-cv§ { import flash.display.BitmapData; import flash.events.Event; - import package_40.name_169; - import package_40.name_170; + import §return§.§_-Ui§; + import §return§.§_-pj§; - public class TextureLibrary extends ResourceLoader + public class §_-Tv§ extends §_-FR§ { private var textures:Object = {}; - private var var_193:BitmapData; + private var §_-gh§:BitmapData; - private var var_34:name_170; + private var §_-d5§:§_-Ui§; - public function TextureLibrary(param1:Config) + public function §_-Tv§(param1:§_-YU§) { super("Texture library loader",param1); } - public function name_244(param1:String) : Object + public function §_-o0§(param1:String) : Object { - return this.textures[param1] || this.getDummyTexture(); + return this.textures[param1] || this.§_-8P§(); } - public function method_310(param1:String, param2:Object) : void + public function §_-Co§(param1:String, param2:Object) : void { this.textures[param1] = param2; } @@ -32,52 +32,52 @@ package alternativa.tanks.config { var _loc3_:XML = null; var _loc1_:XML = config.xml.textures[0]; - var _loc2_:String = StringUtils.name_460(_loc1_.@baseUrl); - this.var_34 = new name_170(); + var _loc2_:String = §_-NN§.§_-KN§(_loc1_.@baseUrl); + this.§_-d5§ = new §_-Ui§(); for each(_loc3_ in _loc1_.texture) { - this.var_34.addTask(new TextureLoader(_loc3_.@id,_loc2_ + _loc3_.@url,this)); + this.§_-d5§.addTask(new TextureLoader(_loc3_.@id,_loc2_ + _loc3_.@url,this)); } - this.var_34.addEventListener(name_169.TASK_COMPLETE,this.onTaskComplete); - this.var_34.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.var_34.run(); + this.§_-d5§.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-fm§); + this.§_-d5§.addEventListener(Event.COMPLETE,this.§_-Pw§); + this.§_-d5§.run(); } - private function onTaskComplete(param1:name_169) : void + private function §_-fm§(param1:§_-pj§) : void { - dispatchEvent(new name_169(name_169.TASK_PROGRESS,1,this.var_34.length)); + dispatchEvent(new §_-pj§(§_-pj§.TASK_PROGRESS,1,this.§_-d5§.length)); } - private function onSequenceComplete(param1:Event) : void + private function §_-Pw§(param1:Event) : void { - this.var_34 = null; - method_102(); + this.§_-d5§ = null; + §_-3Z§(); } - private function getDummyTexture() : BitmapData + private function §_-8P§() : BitmapData { var _loc1_:int = 0; var _loc2_:uint = 0; var _loc3_:int = 0; var _loc4_:int = 0; - if(this.var_193 == null) + if(this.§_-gh§ == null) { _loc1_ = 128; _loc2_ = 16711935; - this.var_193 = new BitmapData(_loc1_,_loc1_,false,0); + this.§_-gh§ = new BitmapData(_loc1_,_loc1_,false,0); _loc3_ = 0; while(_loc3_ < _loc1_) { _loc4_ = 0; while(_loc4_ < _loc1_) { - this.var_193.setPixel(Boolean(_loc3_ % 2) ? _loc4_ : _loc4_ + 1,_loc3_,_loc2_); + this.§_-gh§.setPixel(Boolean(_loc3_ % 2) ? _loc4_ : _loc4_ + 1,_loc3_,_loc2_); _loc4_ += 2; } _loc3_++; } } - return this.var_193; + return this.§_-gh§; } } } @@ -90,21 +90,21 @@ import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; -import package_40.class_7; +import §return§.§_-h5§; -class TextureLoader extends class_7 +class TextureLoader extends §_-h5§ { private var id:String; private var url:String; - private var library:TextureLibrary; + private var library:§_-Tv§; private var loader:Loader; private var urlLoader:URLLoader; - public function TextureLoader(param1:String, param2:String, param3:TextureLibrary) + public function TextureLoader(param1:String, param2:String, param3:§_-Tv§) { super(); this.id = param1; @@ -131,13 +131,13 @@ class TextureLoader extends class_7 private function onLoadingCompressedComplete(param1:Event) : void { - this.library.method_310(this.id,ByteArray(this.urlLoader.data)); - method_102(); + this.library.§_-Co§(this.id,ByteArray(this.urlLoader.data)); + §_-3Z§(); } private function onLoadingComplete(param1:Event) : void { - this.library.method_310(this.id,Bitmap(this.loader.content).bitmapData); - method_102(); + this.library.§_-Co§(this.id,Bitmap(this.loader.content).bitmapData); + §_-3Z§(); } } diff --git a/src/?_-cv?/?_-YU?.as b/src/?_-cv?/?_-YU?.as new file mode 100644 index 0000000..5467f8f --- /dev/null +++ b/src/?_-cv?/?_-YU?.as @@ -0,0 +1,198 @@ +package §_-cv§ +{ + import §_-O5§.§_-Hk§; + import §_-aa§.§_-cS§; + import §_-aa§.§_-i0§; + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.utils.ByteArray; + import §return§.§_-Hr§; + import §return§.§_-Ui§; + import §return§.§_-h5§; + import §return§.§_-pj§; + + [Event(name="complete",type="flash.events.Event")] + public class §_-YU§ extends EventDispatcher + { + public var mapData:§_-Hk§; + + public var §_-WX§:§_-Tv§; + + public var tankParts:§_-Kz§; + + public var soundsLibrary:§_-i0§; + + public var §_-WG§:§_-o6§ = new §_-o6§(); + + private var §_-Qb§:XML; + + private var §_-d5§:§_-Ui§; + + private var preloader:Preloader; + + private var §_-D9§:Object = {}; + + public function §_-YU§() + { + super(); + } + + public function load(param1:String, param2:Preloader) : void + { + this.preloader = param2; + this.§_-d5§ = new §_-Ui§(); + var _loc3_:ConfigXMLLoader = new ConfigXMLLoader(param1,this); + this.§_-d5§.addTask(_loc3_); + _loc3_.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-Ax§); + var _loc4_:§_-cS§ = new §_-cS§(this); + this.§_-d5§.addTask(_loc4_); + _loc4_.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§); + this.§_-WX§ = new §_-Tv§(this); + this.§_-WX§.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§); + this.§_-d5§.addTask(this.§_-WX§); + var _loc5_:§_-h5§ = this.§_-kp§(); + this.§_-d5§.addTask(_loc5_); + _loc5_.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-Ax§); + this.tankParts = new §_-Kz§(this); + this.tankParts.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§); + this.§_-d5§.addTask(this.tankParts); + this.soundsLibrary = new §_-i0§(this); + this.soundsLibrary.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§); + this.§_-d5§.addTask(this.soundsLibrary); + this.§_-d5§.addEventListener(Event.COMPLETE,this.§_-Pw§); + this.§_-d5§.run(); + } + + private function §_-Ax§(param1:§_-pj§) : void + { + this.preloader.§_-fE§(param1.progress / param1.total * 0.1); + } + + public function §_-f§() : String + { + return this.xml.map.@skybox; + } + + public function get xml() : XML + { + return this.§_-Qb§; + } + + public function set xml(param1:XML) : void + { + this.§_-Qb§ = param1; + this.static(); + } + + public function get options() : Object + { + return this.§_-D9§; + } + + public function clear() : void + { + var _loc1_:* = undefined; + for(_loc1_ in this.mapData.data) + { + delete this.mapData.data[_loc1_]; + } + this.§_-Qb§ = null; + this.mapData = null; + } + + private function §_-kp§() : §_-h5§ + { + return new MapLoadTask(this,this.§_-SN§); + } + + private function §_-Pw§(param1:Event) : void + { + this.§_-d5§ = null; + dispatchEvent(new Event(Event.COMPLETE)); + } + + private function §_-SN§(param1:ByteArray) : void + { + var _loc2_:§_-Hr§ = new §_-Hr§(param1); + this.mapData = new §_-Hk§(_loc2_.data); + } + + private function static() : void + { + var _loc1_:XML = null; + for each(_loc1_ in this.§_-Qb§.kernelOptions.option) + { + this.§_-D9§[_loc1_.@name] = _loc1_.toString(); + } + } + } +} + +import flash.events.Event; +import flash.events.EventDispatcher; +import flash.net.URLLoader; +import flash.net.URLLoaderDataFormat; +import flash.net.URLRequest; +import flash.utils.ByteArray; +import §return§.§_-h5§; + +class ConfigXMLLoader extends §_-h5§ +{ + private var config:§_-YU§; + + private var loader:URLLoader; + + private var url:String; + + public function ConfigXMLLoader(param1:String, param2:§_-YU§) + { + super(); + this.url = param1; + this.config = param2; + } + + override public function run() : void + { + this.loader = new URLLoader(); + this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete); + this.loader.load(new URLRequest(this.url)); + } + + private function onLoadingComplete(param1:Event) : void + { + this.config.xml = XML(this.loader.data); + this.loader = null; + §_-3Z§(); + } +} + +class MapLoadTask extends §_-h5§ +{ + private var callback:Function; + + private var config:§_-YU§; + + private var loader:URLLoader; + + public function MapLoadTask(param1:§_-YU§, param2:Function) + { + super(); + this.config = param1; + this.callback = param2; + } + + override public function run() : void + { + this.loader = new URLLoader(); + this.loader.dataFormat = URLLoaderDataFormat.BINARY; + this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete); + this.loader.load(new URLRequest(this.config.xml.map.@url)); + } + + private function onLoadingComplete(param1:Event) : void + { + this.callback.call(null,ByteArray(this.loader.data)); + this.loader = null; + §_-3Z§(); + } +} diff --git a/src/package_86/name_466.as b/src/?_-fT?/?_-ZI?.as similarity index 57% rename from src/package_86/name_466.as rename to src/?_-fT?/?_-ZI?.as index 8dec7f7..b8ba765 100644 --- a/src/package_86/name_466.as +++ b/src/?_-fT?/?_-ZI?.as @@ -1,127 +1,127 @@ -package package_86 +package §_-fT§ { - import package_121.name_666; - import package_121.name_667; - import package_121.name_668; - import package_46.name_194; - import package_76.name_235; - import package_76.name_631; - import package_76.name_656; - import package_76.name_663; - import package_76.name_665; - import package_90.name_273; - import package_90.name_386; - import package_92.name_271; - import package_92.name_513; - import package_92.name_601; - import package_92.name_630; + import §_-1e§.§_-D-§; + import §_-1e§.§_-Nh§; + import §_-1e§.§_-hG§; + import §_-1e§.§_-jn§; + import §_-1e§.§_-oZ§; + import §_-KA§.§_-FW§; + import §_-KA§.§_-jr§; + import §_-US§.§_-4q§; + import §_-US§.§_-6h§; + import §_-US§.§_-BV§; + import §_-US§.§_-G2§; + import §_-nl§.§_-bj§; + import §while§.§_-GQ§; + import §while§.§_-Ph§; + import §while§.§_-hu§; - public class name_466 implements name_468 + public class §_-ZI§ implements §_-Zm§ { - public var var_592:name_663; + public var §_-bw§:§_-D-§; public var threshold:Number = 0.0001; - private var var_596:Object; + private var §_-P6§:Object; - private var var_591:Vector.; + private var §_-Wj§:Vector.<§_-YY§>; - private var var_593:int; + private var §_-LK§:int; - private var name_605:Vector.; + private var §_-By§:Vector.<§_-BV§>; private var numBodies:int; - private var var_420:MinMax = new MinMax(); + private var §_-qC§:MinMax = new MinMax(); - private var var_594:name_194 = new name_194(); + private var §_-k8§:§_-bj§ = new §_-bj§(); - private var var_590:name_194 = new name_194(); + private var §_-0q§:§_-bj§ = new §_-bj§(); - private var var_595:name_273 = new name_273(); + private var §_-2P§:§_-jr§ = new §_-jr§(); - private var _rayAABB:name_386 = new name_386(); + private var _rayAABB:§_-FW§ = new §_-FW§(); - public function name_466() + public function §_-ZI§() { super(); - this.var_592 = new name_663(); - this.name_605 = new Vector.(); - this.var_591 = new Vector.(); - this.var_596 = new Object(); - this.method_655(name_235.BOX,name_235.BOX,new name_666()); - this.method_655(name_235.BOX,name_235.RECT,new name_667()); - this.method_655(name_235.BOX,name_235.TRIANGLE,new name_668()); + this.§_-bw§ = new §_-D-§(); + this.§_-By§ = new Vector.<§_-BV§>(); + this.§_-Wj§ = new Vector.<§_-YY§>(); + this.§_-P6§ = new Object(); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.BOX,new §_-Ph§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.RECT,new §_-GQ§()); + this.§_-c2§(§_-Nh§.BOX,§_-Nh§.TRIANGLE,new §_-hu§()); } - public function method_665(primitive:name_235) : void + public function §_-oT§(primitive:§_-Nh§) : void { } - public function method_664(primitive:name_235) : void + public function §_-HZ§(primitive:§_-Nh§) : void { } - public function name_470() : void + public function §_-9F§() : void { } - public function name_473(collisionPrimitives:Vector., boundBox:name_386 = null) : void + public function §_-Vy§(collisionPrimitives:Vector.<§_-Nh§>, boundBox:§_-FW§ = null) : void { - this.var_592.name_669(collisionPrimitives,boundBox); + this.§_-bw§.§_-J9§(collisionPrimitives,boundBox); } - public function name_591(tankPhysicsEntry:name_568) : void + public function §_-pN§(tankPhysicsEntry:§_-YY§) : void { - if(this.var_591.indexOf(tankPhysicsEntry) >= 0) + if(this.§_-Wj§.indexOf(tankPhysicsEntry) >= 0) { throw new Error("Tank entry already exists"); } - var _loc2_:* = this.var_593++; - this.var_591[_loc2_] = tankPhysicsEntry; + var _loc2_:* = this.§_-LK§++; + this.§_-Wj§[_loc2_] = tankPhysicsEntry; } - public function name_590(tankPhysicsEntry:name_568) : void + public function §_-qP§(tankPhysicsEntry:§_-YY§) : void { - var index:Number = Number(this.var_591.indexOf(tankPhysicsEntry)); + var index:Number = Number(this.§_-Wj§.indexOf(tankPhysicsEntry)); if(index < 0) { throw new Error("Tank entry not found"); } - this.var_591[index] = this.var_591[--this.var_593]; - this.var_591[this.var_593] = null; + this.§_-Wj§[index] = this.§_-Wj§[--this.§_-LK§]; + this.§_-Wj§[this.§_-LK§] = null; } - public function name_592(body:name_271) : void + public function §_-D8§(body:§_-BV§) : void { var _loc2_:* = this.numBodies++; - this.name_605[_loc2_] = body; + this.§_-By§[_loc2_] = body; } - public function name_593(body:name_271) : void + public function §_-2x§(body:§_-BV§) : void { - var index:int = int(this.name_605.indexOf(body)); + var index:int = int(this.§_-By§.indexOf(body)); if(index < 0) { throw new Error("Body not found"); } - this.name_605[index] = this.name_605[--this.numBodies]; - this.name_605[this.numBodies] = null; + this.§_-By§[index] = this.§_-By§[--this.numBodies]; + this.§_-By§[this.numBodies] = null; } - public function method_651(center:name_194, radius:Number, filter:name_655) : Vector. + public function §_-7u§(center:§_-bj§, radius:Number, filter:§_-VN§) : Vector.<§_-bB§> { - var result:Vector. = null; - var tankPhysicsEntry:name_568 = null; - var position:name_194 = null; + var result:Vector.<§_-bB§> = null; + var tankPhysicsEntry:§_-YY§ = null; + var position:§_-bj§ = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var distance:Number = NaN; radius *= radius; - for(var i:int = 0; i < this.var_593; ) + for(var i:int = 0; i < this.§_-LK§; ) { - tankPhysicsEntry = this.var_591[i]; + tankPhysicsEntry = this.§_-Wj§[i]; position = tankPhysicsEntry.body.state.position; dx = position.x - center.x; dy = position.y - center.y; @@ -129,13 +129,13 @@ package package_86 distance = dx * dx + dy * dy + dz * dz; if(distance < radius) { - if(filter == null || Boolean(filter.name_670(center,tankPhysicsEntry.body))) + if(filter == null || Boolean(filter.§_-cb§(center,tankPhysicsEntry.body))) { if(result == null) { - result = new Vector.(); + result = new Vector.<§_-bB§>(); } - result.push(new name_654(tankPhysicsEntry.body,Math.sqrt(distance))); + result.push(new §_-bB§(tankPhysicsEntry.body,Math.sqrt(distance))); } } i++; @@ -143,30 +143,30 @@ package package_86 return result; } - public function method_553(contact:name_630) : name_630 + public function §_-63§(contact:§_-6h§) : §_-6h§ { - return this.method_659(contact); + return this.§_-Uu§(contact); } - public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean { if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0 || !prim1.aabb.intersects(prim2.aabb,0.01)) { return false; } - var collider:name_665 = this.var_596[prim1.type | prim2.type]; + var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type]; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_662(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_662(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); } return false; } - public function method_554(prim1:name_235, prim2:name_235) : Boolean + public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean { if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0) { @@ -180,31 +180,31 @@ package package_86 { return false; } - var collider:name_665 = this.var_596[prim1.type | prim2.type]; + var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type]; if(collider != null && Boolean(collider.haveCollision(prim1,prim2))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_662(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_662(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); } return false; } - public function raycast(origin:name_194, dir:name_194, collisionMask:int, maxTime:Number, filter:name_631, result:name_273) : Boolean + public function raycast(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean { - var hasStaticIntersection:Boolean = this.name_324(origin,dir,collisionMask,maxTime,filter,result); - var hasDynamicIntersection:Boolean = this.method_658(origin,dir,collisionMask,maxTime,filter,this.var_595); + var hasStaticIntersection:Boolean = this.§_-cX§(origin,dir,collisionMask,maxTime,filter,result); + var hasDynamicIntersection:Boolean = this.§_-eu§(origin,dir,collisionMask,maxTime,filter,this.§_-2P§); if(!(hasDynamicIntersection || hasStaticIntersection)) { return false; } if(hasDynamicIntersection && hasStaticIntersection) { - if(result.t > this.var_595.t) + if(result.t > this.§_-2P§.t) { - result.copy(this.var_595); + result.copy(this.§_-2P§); } return true; } @@ -212,73 +212,73 @@ package package_86 { return true; } - result.copy(this.var_595); + result.copy(this.§_-2P§); return true; } - public function name_324(origin:name_194, dir:name_194, collisionMask:int, maxTime:Number, filter:name_631, result:name_273) : Boolean + public function §_-cX§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean { - if(!this.method_662(origin,dir,this.var_592.name_659.boundBox,this.var_420)) + if(!this.§_-oL§(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§)) { return false; } - if(this.var_420.max < 0 || this.var_420.min > maxTime) + if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime) { return false; } - if(this.var_420.min <= 0) + if(this.§_-qC§.min <= 0) { - this.var_420.min = 0; - this.var_590.x = origin.x; - this.var_590.y = origin.y; - this.var_590.z = origin.z; + this.§_-qC§.min = 0; + this.§_-0q§.x = origin.x; + this.§_-0q§.y = origin.y; + this.§_-0q§.z = origin.z; } else { - this.var_590.x = origin.x + this.var_420.min * dir.x; - this.var_590.y = origin.y + this.var_420.min * dir.y; - this.var_590.z = origin.z + this.var_420.min * dir.z; + this.§_-0q§.x = origin.x + this.§_-qC§.min * dir.x; + this.§_-0q§.y = origin.y + this.§_-qC§.min * dir.y; + this.§_-0q§.z = origin.z + this.§_-qC§.min * dir.z; } - if(this.var_420.max > maxTime) + if(this.§_-qC§.max > maxTime) { - this.var_420.max = maxTime; + this.§_-qC§.max = maxTime; } - var hasIntersection:Boolean = this.method_652(this.var_592.name_659,origin,this.var_590,dir,collisionMask,this.var_420.min,this.var_420.max,filter,result); + var hasIntersection:Boolean = this.§_-NC§(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionMask,this.§_-qC§.min,this.§_-qC§.max,filter,result); return hasIntersection ? result.t <= maxTime : false; } - public function method_657(primitive:name_235) : Boolean + public function §_-TL§(primitive:§_-Nh§) : Boolean { - return this.method_654(primitive,this.var_592.name_659); + return this.§_-B8§(primitive,this.§_-bw§.§_-5H§); } - private function method_655(type1:int, type2:int, collider:name_665) : void + private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void { - this.var_596[type1 | type2] = collider; + this.§_-P6§[type1 | type2] = collider; } - private function method_659(contact:name_630) : name_630 + private function §_-Uu§(contact:§_-6h§) : §_-6h§ { - var tankEntry:name_568 = null; - var body:name_271 = null; - var listItem:name_513 = null; + var tankEntry:§_-YY§ = null; + var body:§_-BV§ = null; + var listItem:§_-4q§ = null; var j:int = 0; - var otherTankEntry:name_568 = null; - for(var i:int = 0; i < this.var_593; i++) + var otherTankEntry:§_-YY§ = null; + for(var i:int = 0; i < this.§_-LK§; i++) { - tankEntry = this.var_591[i]; + tankEntry = this.§_-Wj§[i]; body = tankEntry.body; for(listItem = body.collisionPrimitives.head; listItem != null; ) { - contact = this.method_653(this.var_592.name_659,listItem.primitive,contact); + contact = this.§_-m1§(this.§_-bw§.§_-5H§,listItem.primitive,contact); listItem = listItem.next; } - for(j = i + 1; j < this.var_593; ) + for(j = i + 1; j < this.§_-LK§; ) { - otherTankEntry = this.var_591[j]; + otherTankEntry = this.§_-Wj§[j]; if(body.aabb.intersects(otherTankEntry.body.aabb,0.1)) { - contact = this.method_656(tankEntry,otherTankEntry,contact); + contact = this.§_-4I§(tankEntry,otherTankEntry,contact); } j++; } @@ -286,15 +286,15 @@ package package_86 return contact; } - private function method_656(tankEntry1:name_568, tankEntry2:name_568, contact:name_630) : name_630 + private function §_-4I§(tankEntry1:§_-YY§, tankEntry2:§_-YY§, contact:§_-6h§) : §_-6h§ { - var primitive1:name_235 = null; + var primitive1:§_-Nh§ = null; var numSimplePrimitives2:int = 0; var j:int = 0; - var primitive2:name_235 = null; + var primitive2:§_-Nh§ = null; var skipCollision:Boolean = false; - var body1:name_271 = tankEntry1.body; - var body2:name_271 = tankEntry2.body; + var body1:§_-BV§ = tankEntry1.body; + var body2:§_-BV§ = tankEntry2.body; var numSimplePrimitives1:int = int(tankEntry1.simplePrimitives.length); var firstFilterTest:Boolean = true; for(var i:int = 0; i < numSimplePrimitives1; i++) @@ -331,14 +331,14 @@ package package_86 return contact; } - private function method_666(primitives1:name_601, primitives2:name_601) : Boolean + private function §_-AX§(primitives1:§_-G2§, primitives2:§_-G2§) : Boolean { - var item2:name_513 = null; - for(var item1:name_513 = primitives1.head; item1 != null; ) + var item2:§_-4q§ = null; + for(var item1:§_-4q§ = primitives1.head; item1 != null; ) { for(item2 = primitives2.head; item2 != null; ) { - if(this.method_554(item1.primitive,item2.primitive)) + if(this.§_-A5§(item1.primitive,item2.primitive)) { return true; } @@ -349,11 +349,11 @@ package package_86 return false; } - private function method_667(primitives:name_601) : Boolean + private function §_-bH§(primitives:§_-G2§) : Boolean { - for(var item:name_513 = primitives.head; item != null; ) + for(var item:§_-4q§ = primitives.head; item != null; ) { - if(this.method_657(item.primitive)) + if(this.§_-TL§(item.primitive)) { return true; } @@ -362,16 +362,16 @@ package package_86 return false; } - private function method_653(node:name_656, primitive:name_235, contact:name_630) : name_630 + private function §_-m1§(node:§_-oZ§, primitive:§_-Nh§, contact:§_-6h§) : §_-6h§ { var min:Number = NaN; var max:Number = NaN; - var primitives:Vector. = null; + var primitives:Vector.<§_-Nh§> = null; var indices:Vector. = null; var i:int = 0; if(node.indices != null) { - primitives = this.var_592.name_661; + primitives = this.§_-bw§.§_-8A§; indices = node.indices; for(i = indices.length - 1; i >= 0; ) { @@ -389,46 +389,46 @@ package package_86 switch(node.axis) { case 0: - min = primitive.aabb.minX; - max = primitive.aabb.maxX; + min = Number(primitive.aabb.minX); + max = Number(primitive.aabb.maxX); break; case 1: - min = primitive.aabb.minY; - max = primitive.aabb.maxY; + min = Number(primitive.aabb.minY); + max = Number(primitive.aabb.maxY); break; case 2: - min = primitive.aabb.minZ; - max = primitive.aabb.maxZ; + min = Number(primitive.aabb.minZ); + max = Number(primitive.aabb.maxZ); } if(min < node.coord) { - contact = this.method_653(node.name_657,primitive,contact); + contact = this.§_-m1§(node.§_-Gm§,primitive,contact); } if(max > node.coord) { - contact = this.method_653(node.name_658,primitive,contact); + contact = this.§_-m1§(node.§_-75§,primitive,contact); } - if(node.name_660 != null && min < node.coord && max > node.coord) + if(node.§_-da§ != null && min < node.coord && max > node.coord) { - contact = this.method_653(node.name_660.name_659,primitive,contact); + contact = this.§_-m1§(node.§_-da§.§_-5H§,primitive,contact); } return contact; } - private function method_654(primitive:name_235, node:name_656) : Boolean + private function §_-B8§(primitive:§_-Nh§, node:§_-oZ§) : Boolean { var min:Number = NaN; var max:Number = NaN; - var primitives:Vector. = null; + var primitives:Vector.<§_-Nh§> = null; var indices:Vector. = null; var i:int = 0; if(node.indices != null) { - primitives = this.var_592.name_661; + primitives = this.§_-bw§.§_-8A§; indices = node.indices; for(i = indices.length - 1; i >= 0; ) { - if(this.method_554(primitive,primitives[indices[i]])) + if(this.§_-A5§(primitive,primitives[indices[i]])) { return true; } @@ -442,34 +442,34 @@ package package_86 switch(node.axis) { case 0: - min = primitive.aabb.minX; - max = primitive.aabb.maxX; + min = Number(primitive.aabb.minX); + max = Number(primitive.aabb.maxX); break; case 1: - min = primitive.aabb.minY; - max = primitive.aabb.maxY; + min = Number(primitive.aabb.minY); + max = Number(primitive.aabb.maxY); break; case 2: - min = primitive.aabb.minZ; - max = primitive.aabb.maxZ; + min = Number(primitive.aabb.minZ); + max = Number(primitive.aabb.maxZ); } - if(node.name_660 != null && min < node.coord && max > node.coord) + if(node.§_-da§ != null && min < node.coord && max > node.coord) { - if(this.method_654(primitive,node.name_660.name_659)) + if(this.§_-B8§(primitive,node.§_-da§.§_-5H§)) { return true; } } if(min < node.coord) { - if(this.method_654(primitive,node.name_657)) + if(this.§_-B8§(primitive,node.§_-Gm§)) { return true; } } if(max > node.coord) { - if(this.method_654(primitive,node.name_658)) + if(this.§_-B8§(primitive,node.§_-75§)) { return true; } @@ -477,13 +477,13 @@ package package_86 return false; } - private function method_658(origin:name_194, dir:name_194, collisionMask:int, maxTime:Number, filter:name_631, result:name_273) : Boolean + private function §_-eu§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean { - var tankPhysicsEntry:name_568 = null; - var body:name_271 = null; - var aabb:name_386 = null; - var collisionPrimitiveListItem:name_513 = null; - var primitive:name_235 = null; + var tankPhysicsEntry:§_-YY§ = null; + var body:§_-BV§ = null; + var aabb:§_-FW§ = null; + var collisionPrimitiveListItem:§_-4q§ = null; + var primitive:§_-Nh§ = null; var t:Number = NaN; var xx:Number = origin.x + dir.x * maxTime; var yy:Number = origin.y + dir.y * maxTime; @@ -519,11 +519,11 @@ package package_86 this._rayAABB.maxZ = zz; } var minTime:Number = maxTime + 1; - for(var i:int = 0; i < this.var_593; i++) + for(var i:int = 0; i < this.§_-LK§; i++) { - tankPhysicsEntry = this.var_591[i]; + tankPhysicsEntry = this.§_-Wj§[i]; body = tankPhysicsEntry.body; - if(!(filter != null && !filter.name_664(body.collisionPrimitives.head.primitive))) + if(!(filter != null && !filter.§_-0w§(body.collisionPrimitives.head.primitive))) { aabb = body.aabb; if(!(this._rayAABB.maxX < aabb.minX || this._rayAABB.minX > aabb.maxX || this._rayAABB.maxY < aabb.minY || this._rayAABB.minY > aabb.maxY || this._rayAABB.maxZ < aabb.minZ || this._rayAABB.minZ > aabb.maxZ)) @@ -544,14 +544,14 @@ package package_86 } else { - t = primitive.raycast(origin,dir,this.threshold,this.var_594); + t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); if(t > 0 && t < minTime) { minTime = t; result.primitive = primitive; - result.normal.x = this.var_594.x; - result.normal.y = this.var_594.y; - result.normal.z = this.var_594.z; + result.normal.x = this.§_-k8§.x; + result.normal.y = this.§_-k8§.y; + result.normal.z = this.§_-k8§.z; } collisionPrimitiveListItem = collisionPrimitiveListItem.next; } @@ -571,7 +571,7 @@ package package_86 return true; } - private function method_662(origin:name_194, dir:name_194, bb:name_386, time:MinMax) : Boolean + private function §_-oL§(origin:§_-bj§, dir:§_-bj§, bb:§_-FW§, time:MinMax) : Boolean { var t1:Number = NaN; var t2:Number = NaN; @@ -648,15 +648,15 @@ package package_86 return true; } - private function method_652(node:name_656, origin:name_194, localOrigin:name_194, dir:name_194, collisionMask:int, t1:Number, t2:Number, filter:name_631, result:name_273) : Boolean + private function §_-NC§(node:§_-oZ§, origin:§_-bj§, localOrigin:§_-bj§, dir:§_-bj§, collisionMask:int, t1:Number, t2:Number, filter:§_-jn§, result:§_-jr§) : Boolean { var splitTime:Number = NaN; - var currChildNode:name_656 = null; + var currChildNode:§_-oZ§ = null; var intersects:Boolean = false; - var splitNode:name_656 = null; + var splitNode:§_-oZ§ = null; var i:int = 0; - var primitive:name_235 = null; - if(node.indices != null && this.method_660(origin,dir,collisionMask,this.var_592.name_661,node.indices,filter,result)) + var primitive:§_-Nh§ = null; + if(node.indices != null && this.§_-FH§(origin,dir,collisionMask,this.§_-bw§.§_-8A§,node.indices,filter,result)) { return true; } @@ -675,7 +675,7 @@ package package_86 { splitTime = (node.coord - origin.x) / dir.x; } - currChildNode = localOrigin.x < node.coord ? node.name_657 : node.name_658; + currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§; break; case 1: if(dir.y > -this.threshold && dir.y < this.threshold) @@ -686,7 +686,7 @@ package package_86 { splitTime = (node.coord - origin.y) / dir.y; } - currChildNode = localOrigin.y < node.coord ? node.name_657 : node.name_658; + currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§; break; case 2: if(dir.z > -this.threshold && dir.z < this.threshold) @@ -697,35 +697,35 @@ package package_86 { splitTime = (node.coord - origin.z) / dir.z; } - currChildNode = localOrigin.z < node.coord ? node.name_657 : node.name_658; + currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§; } if(splitTime < t1 || splitTime > t2) { - return this.method_652(currChildNode,origin,localOrigin,dir,collisionMask,t1,t2,filter,result); + return this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionMask,t1,t2,filter,result); } - intersects = this.method_652(currChildNode,origin,localOrigin,dir,collisionMask,t1,splitTime,filter,result); + intersects = this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionMask,t1,splitTime,filter,result); if(intersects) { return true; } - this.var_590.x = origin.x + splitTime * dir.x; - this.var_590.y = origin.y + splitTime * dir.y; - this.var_590.z = origin.z + splitTime * dir.z; - if(node.name_660 != null) + this.§_-0q§.x = origin.x + splitTime * dir.x; + this.§_-0q§.y = origin.y + splitTime * dir.y; + this.§_-0q§.z = origin.z + splitTime * dir.z; + if(node.§_-da§ != null) { - splitNode = node.name_660.name_659; + splitNode = node.§_-da§.§_-5H§; while(splitNode != null && splitNode.axis != -1) { switch(splitNode.axis) { case 0: - splitNode = this.var_590.x < splitNode.coord ? splitNode.name_657 : splitNode.name_658; + splitNode = this.§_-0q§.x < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; break; case 1: - splitNode = this.var_590.y < splitNode.coord ? splitNode.name_657 : splitNode.name_658; + splitNode = this.§_-0q§.y < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; break; case 2: - splitNode = this.var_590.z < splitNode.coord ? splitNode.name_657 : splitNode.name_658; + splitNode = this.§_-0q§.z < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; break; } } @@ -733,15 +733,15 @@ package package_86 { for(i = splitNode.indices.length - 1; i >= 0; ) { - primitive = this.var_592.name_661[splitNode.indices[i]]; + primitive = this.§_-bw§.§_-8A§[splitNode.indices[i]]; if((primitive.collisionGroup & collisionMask) != 0) { - if(!(filter != null && !filter.name_664(primitive))) + if(!(filter != null && !filter.§_-0w§(primitive))) { result.t = primitive.raycast(origin,dir,this.threshold,result.normal); if(result.t >= 0) { - result.position.copy(this.var_590); + result.position.copy(this.§_-0q§); result.primitive = primitive; return true; } @@ -751,12 +751,12 @@ package package_86 } } } - return this.method_652(currChildNode == node.name_657 ? node.name_658 : node.name_657,origin,this.var_590,dir,collisionMask,splitTime,t2,filter,result); + return this.§_-NC§(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionMask,splitTime,t2,filter,result); } - private function method_660(origin:name_194, dir:name_194, collisionMask:int, primitives:Vector., indices:Vector., filter:name_631, intersection:name_273) : Boolean + private function §_-FH§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, primitives:Vector.<§_-Nh§>, indices:Vector., filter:§_-jn§, intersection:§_-jr§) : Boolean { - var primitive:name_235 = null; + var primitive:§_-Nh§ = null; var t:Number = NaN; var pnum:int = int(indices.length); var minTime:Number = 1e+308; @@ -765,16 +765,16 @@ package package_86 primitive = primitives[indices[i]]; if((primitive.collisionGroup & collisionMask) != 0) { - if(!(filter != null && !filter.name_664(primitive))) + if(!(filter != null && !filter.§_-0w§(primitive))) { - t = primitive.raycast(origin,dir,this.threshold,this.var_594); + t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); if(t > 0 && t < minTime) { minTime = t; intersection.primitive = primitive; - intersection.normal.x = this.var_594.x; - intersection.normal.y = this.var_594.y; - intersection.normal.z = this.var_594.z; + intersection.normal.x = this.§_-k8§.x; + intersection.normal.y = this.§_-k8§.y; + intersection.normal.z = this.§_-k8§.z; } } } @@ -791,15 +791,15 @@ package package_86 return true; } - private function method_663(body1:name_271, body2:name_271, contact:name_630) : name_630 + private function §_-Yu§(body1:§_-BV§, body2:§_-BV§, contact:§_-6h§) : §_-6h§ { - return this.method_661(body1.collisionPrimitives,body2.collisionPrimitives,contact); + return this.§_-bO§(body1.collisionPrimitives,body2.collisionPrimitives,contact); } - private function method_661(primitives1:name_601, primitives2:name_601, contact:name_630) : name_630 + private function §_-bO§(primitives1:§_-G2§, primitives2:§_-G2§, contact:§_-6h§) : §_-6h§ { - var item2:name_513 = null; - for(var item1:name_513 = primitives1.head; item1 != null; ) + var item2:§_-4q§ = null; + for(var item1:§_-4q§ = primitives1.head; item1 != null; ) { for(item2 = primitives2.head; item2 != null; ) { diff --git a/src/?_-fj?/?_-1t?.as b/src/?_-fj?/?_-1t?.as new file mode 100644 index 0000000..3cba7a7 --- /dev/null +++ b/src/?_-fj?/?_-1t?.as @@ -0,0 +1,118 @@ +package §_-fj§ +{ + import §_-Fc§.§_-8a§; + import §_-az§.§_-AG§; + import §_-fT§.§_-HM§; + import §default§.native; + + public class §_-1t§ extends §_-Cv§ + { + private var §_-Cn§:ContactFilter; + + public function §_-1t§(component:§_-cx§) + { + super(component); + this.§_-Cn§ = new ContactFilter(); + } + + override public function start(data:*) : void + { + var gameKernel:§_-AG§ = null; + var physicsSystem:§_-8a§ = null; + component.addToScene(); + component.setDetailedCollisionGroup(§_-HM§.TANK); + component.setSuspensionCollisionMask(§_-HM§.STATIC); + component.body.postCollisionFilter = this.§_-Cn§; + var callback:native = native(data); + if(callback != null) + { + gameKernel = component.gameKernel; + this.§_-Cn§.initCallback(callback); + gameKernel.getLogicSystem1().addLogicUnit(this.§_-Cn§); + physicsSystem = gameKernel.§_-m8§(); + physicsSystem.addControllerAfter(this.§_-Cn§); + physicsSystem.addControllerBefore(this.§_-Cn§); + } + } + + override public function stop() : void + { + var gameKernel:§_-AG§ = null; + var physicsSystem:§_-8a§ = null; + component.body.postCollisionFilter = null; + if(this.§_-Cn§.callback != null) + { + gameKernel = component.gameKernel; + gameKernel.getLogicSystem1().removeLogicUnit(this.§_-Cn§); + physicsSystem = gameKernel.§_-m8§(); + physicsSystem.removeControllerAfter(this.§_-Cn§); + physicsSystem.removeControllerBefore(this.§_-Cn§); + this.§_-Cn§.callback = null; + } + } + } +} + +import §_-1e§.§_-p9§; +import §_-Fc§.§catch§; +import §_-US§.§_-BV§; +import §_-lS§.§_-h2§; +import §_-nO§.§_-KI§; +import §default§.native; +import flash.utils.getTimer; + +class ContactFilter implements §_-p9§, §catch§, §_-KI§ +{ + private static const MIN_TRANSPARENCY_DURATION:int = 3000; + + public var callback:native; + + private var numContacts:int; + + private var canActivate:Boolean; + + private var startTime:int; + + public function ContactFilter() + { + super(); + } + + public function initCallback(callback:native) : void + { + this.canActivate = false; + this.startTime = getTimer(); + this.callback = callback; + } + + public function acceptBodiesCollision(body1:§_-BV§, body2:§_-BV§) : Boolean + { + ++this.numContacts; + return false; + } + + public function updateBeforeSimulation(physicsStep:int) : void + { + this.numContacts = 0; + } + + public function updateAfterSimulation(physicsStep:int) : void + { + if(Boolean(this.canActivate) && this.numContacts == 0) + { + this.callback.§_-PH§(); + } + } + + public function interpolate(interpolationCoeff:Number) : void + { + } + + public function runLogic() : void + { + if(§_-h2§.time - this.startTime > MIN_TRANSPARENCY_DURATION) + { + this.canActivate = true; + } + } +} diff --git a/src/?_-fj?/?_-cx?.as b/src/?_-fj?/?_-cx?.as new file mode 100644 index 0000000..6d311c1 --- /dev/null +++ b/src/?_-fj?/?_-cx?.as @@ -0,0 +1,688 @@ +package §_-fj§ +{ + import §_-1e§.§_-Nh§; + import §_-78§.§_-GH§; + import §_-78§.§_-M2§; + import §_-7A§.§_-3e§; + import §_-7A§.§_-Is§; + import §_-7A§.§_-U-§; + import §_-Fc§.§_-8a§; + import §_-Fc§.§catch§; + import §_-KA§.§_-FW§; + import §_-MU§.§_-5-§; + import §_-US§.§_-BV§; + import §_-US§.§_-DB§; + import §_-US§.§_-kG§; + import §_-Uy§.§_-oP§; + import §_-az§.§_-2J§; + import §_-az§.§_-AG§; + import §_-az§.§_-Ss§; + import §_-fT§.§_-HM§; + import §_-fT§.§_-WY§; + import §_-fT§.§_-YY§; + import §_-fT§.§_-Zm§; + import §_-lS§.§_-h2§; + import §_-nl§.Matrix3; + import §_-nl§.Matrix4; + import §_-nl§.§_-Ok§; + import §_-nl§.§_-bj§; + import §_-pe§.§_-m3§; + import §default§.§_-BH§; + import §default§.§_-dT§; + import §default§.§_-kU§; + + public class §_-cx§ extends §_-2J§ implements §catch§, §_-Is§, §_-BH§ + { + private static var lastId:int; + + private static const RAY_OFFSET:Number = 5; + + private static var _v:§_-bj§ = new §_-bj§(); + + public var gameKernel:§_-AG§; + + public var body:§_-BV§; + + public var §_-Ei§:§_-nL§; + + public var §_-iA§:§_-nL§; + + public var maxSpeed:Number = 0; + + private var §_-fL§:ValueSmoother = new ValueSmoother(100,1000,0,0); + + public var maxTurnSpeed:Number = 0; + + private var §_-dr§:ValueSmoother = new ValueSmoother(0.3,10,0,0); + + private var §_-mt§:Number = 0; + + private var §_-JJ§:Number = 0; + + private var §_-Tb§:Boolean; + + private var §_-mq§:Boolean; + + private var §_-DC§:Vector.<§_-Nh§>; + + public var §_-i1§:Vector.<§_-Nh§>; + + public var §_-4Y§:Vector.<§_-Nh§>; + + public var §_-bi§:§_-bj§ = new §_-bj§(); + + public var §_-UQ§:§_-Ok§ = new §_-Ok§(); + + public var §_-YH§:Matrix4 = new Matrix4(); + + public var §_-CF§:§_-8C§ = new §_-8C§(); + + public var moveDirection:int; + + public var turnDirection:int; + + private var hull:§_-dT§; + + private var §_-Rg§:§_-YY§; + + private var §_-z§:§_-M2§; + + private var §case §:Boolean; + + private var turret:§_-3e§; + + private var §_-CG§:Vector.<§_-bj§>; + + private var mass:Number = 1; + + private var power:Number = 0; + + private var reverseBackTurn:Boolean; + + public function §_-cx§(hull:§_-dT§, mass:Number, power:Number) + { + super(); + this.mass = mass; + this.power = power; + this.§_-CG§ = new Vector.<§_-bj§>(); + this.body = new §_-BV§(1,Matrix3.IDENTITY); + this.body.id = lastId++; + this.§_-DC§ = new Vector.<§_-Nh§>(); + this.§_-4Y§ = new Vector.<§_-Nh§>(); + this.§_-i1§ = new Vector.<§_-Nh§>(); + this.§_-Rg§ = new §_-YY§(this.body,this.§_-i1§,this.§_-4Y§); + this.§_-Uj§(hull); + } + + public function §_-P0§() : Vector.<§_-bj§> + { + return this.§_-CG§; + } + + public function getBody() : §_-BV§ + { + return this.body; + } + + public function §_-Ln§(wheelName:String) : Number + { + var lastHitLength:Number = this.§_-Ei§.§_-fG§(wheelName,this.§_-CF§.rayLength); + if(lastHitLength < 0) + { + lastHitLength = this.§_-iA§.§_-fG§(wheelName,this.§_-CF§.rayLength); + } + if(lastHitLength < 0) + { + return 0; + } + return this.§_-CF§.§_-Fw§ - lastHitLength; + } + + public function §_-Ra§() : Number + { + return this.§_-Ei§.§_-gt§; + } + + public function §_-8p§() : Number + { + return this.§_-iA§.§_-gt§; + } + + public function §_-Uj§(hull:§_-dT§) : void + { + if(hull == null) + { + throw new ArgumentError("Parameter hull is null"); + } + if(this.hull == hull) + { + return; + } + this.hull = hull; + this.§_-21§(hull.§_-AE§,this.§_-DC§,§_-HM§.TANK,§_-HM§.TANK | §_-HM§.STATIC); + this.§_-21§(hull.§_-KR§,this.§_-i1§,§_-HM§.TANK,§_-HM§.TANK); + if(this.turret != null) + { + this.turret.setTurretMountPoint(hull.§_-Rj§); + } + this.§_-I3§(); + this.§_-Y2§(); + var rayZ:Number = this.§_-EQ§(); + this.setSuspensionCollisionMask(§_-HM§.TANK | §_-HM§.STATIC); + this.§_-CF§.rayLength = 75; + this.§_-CF§.§_-Fw§ = rayZ - hull.§_-Sh§.z; + this.§_-CF§.§_-WZ§ = 1000; + this.body.material.§_-J1§ = 0.1; + this.setChassisControls(this.moveDirection,this.turnDirection,true); + var bb:§_-FW§ = new §_-FW§(); + this.calculateBoundBox(bb); + this.§_-JA§(bb); + } + + public function §_-Gu§(value:Number, immediate:Boolean) : void + { + if(immediate) + { + this.maxTurnSpeed = value; + this.§_-dr§.reset(value); + } + else + { + this.§_-dr§.targetValue = value; + } + } + + public function §_-la§(value:Number, immediate:Boolean) : void + { + if(immediate) + { + this.maxSpeed = value; + this.§_-fL§.reset(value); + } + else + { + this.§_-fL§.targetValue = value; + } + } + + private function §_-EQ§() : Number + { + var matrix:Matrix4 = new Matrix4(); + matrix.§_-Vi§(this.hull.§_-Sh§); + this.§_-Ei§ = new §_-nL§(this.body,matrix,this.hull.§_-EY§); + this.§_-iA§ = new §_-nL§(this.body,matrix,this.hull.§_-M4§); + return this.§_-Ei§.rays[0].getRelativeZ(); + } + + private function §_-Y2§() : void + { + var dimensions:§_-bj§ = null; + var xx:Number = NaN; + var yy:Number = NaN; + var zz:Number = NaN; + if(this.mass == Infinity) + { + this.body.invMass = 0; + this.body.invInertia.copy(Matrix3.ZERO); + } + else + { + dimensions = this.hull.§_-eh§.hs.clone(); + dimensions.scale(2); + this.body.invMass = 1 / this.mass; + xx = dimensions.x * dimensions.x; + yy = dimensions.y * dimensions.y; + zz = dimensions.z * dimensions.z; + this.body.invInertia.a = 12 * this.body.invMass / (yy + zz); + this.body.invInertia.f = 12 * this.body.invMass / (zz + xx); + this.body.invInertia.k = 12 * this.body.invMass / (xx + yy); + } + } + + private function calculateBoundBox(boundBox:§_-FW§) : void + { + var collisionPrimitive:§_-Nh§ = null; + var primitiveTransform:Matrix4 = null; + boundBox.§_-GT§(); + for each(collisionPrimitive in this.§_-DC§) + { + primitiveTransform = collisionPrimitive.transform; + collisionPrimitive.transform = collisionPrimitive.localTransform || Matrix4.IDENTITY; + boundBox.§_-EH§(collisionPrimitive.calculateAABB()); + collisionPrimitive.transform = primitiveTransform; + } + } + + private function §_-JA§(boundBox:§_-FW§) : void + { + var z:int = (boundBox.maxZ - boundBox.minZ) / 2; + this.§_-Ud§(0,boundBox.maxX,boundBox.maxY,z); + this.§_-Ud§(1,boundBox.minX,boundBox.maxY,z); + this.§_-Ud§(2,boundBox.minX,boundBox.minY,z); + this.§_-Ud§(3,boundBox.maxX,boundBox.minY,z); + } + + private function §_-Ud§(index:int, x:Number, y:Number, z:Number) : void + { + var point:§_-bj§ = null; + var clientLog:§_-5-§ = null; + clientLog = §_-5-§(§_-oP§.§_-nQ§().§_-N6§(§_-5-§)); + clientLog.log("tank","LegacyTrackedChassisComponent::setBoundPoint() point %1: %2, %3, %4",index,x.toFixed(2),y.toFixed(2),z.toFixed(2)); + if(index < this.§_-CG§.length) + { + point = this.§_-CG§[index]; + } + if(point == null) + { + point = new §_-bj§(); + this.§_-CG§[index] = point; + } + point.reset(x,y,z); + } + + public function §_-I3§() : void + { + var collisionPrimitive:§_-Nh§ = null; + var turretPrimitives:Vector.<§_-Nh§> = null; + if(this.body.collisionPrimitives != null) + { + this.body.collisionPrimitives.clear(); + } + this.§_-y§(this.§_-DC§); + this.§_-y§(this.§_-i1§); + this.§_-4Y§.length = 0; + for each(collisionPrimitive in this.§_-DC§) + { + this.§_-4Y§.push(collisionPrimitive); + } + if(this.turret != null) + { + turretPrimitives = this.turret.getTurretPrimitives(); + this.§_-y§(turretPrimitives); + for each(collisionPrimitive in turretPrimitives) + { + this.§_-4Y§.push(collisionPrimitive); + } + } + } + + public function §_-JK§(velocity:§_-bj§) : void + { + this.body.§_-8g§(velocity); + } + + public function §_-VU§(velocity:§_-bj§) : void + { + this.body.§_-6F§(velocity); + } + + public function §_-LV§(orientation:§_-Ok§) : void + { + this.body.§_-LV§(orientation); + } + + public function §_-oa§(x:Number, y:Number, z:Number) : void + { + this.body.§_-oa§(x,y,z); + } + + public function §_-83§(w:Number, x:Number, y:Number, z:Number) : void + { + this.body.§_-83§(w,x,y,z); + } + + public function §_-C3§(x:Number, y:Number, z:Number) : void + { + var w:Number = 1 - x * x - y * y - z * z; + this.body.§_-83§(w < 0 ? 0 : Number(Math.sqrt(w)),x,y,z); + } + + public function setLinearVelocityXYZ(x:Number, y:Number, z:Number) : void + { + this.body.§_-7q§(x,y,z); + } + + public function setAngularVelocityXYZ(x:Number, y:Number, z:Number) : void + { + this.body.§_-U4§(x,y,z); + } + + public function §_-Vi§(position:§_-bj§) : void + { + this.body.§_-Vi§(position); + } + + public function §_-eS§() : void + { + this.body.§use§(); + } + + private function §_-Er§(throttleLeft:Number, throttleRight:Number) : void + { + this.§_-mt§ = throttleLeft; + this.§_-JJ§ = throttleRight; + } + + private function § get§(lb:Boolean, rb:Boolean) : void + { + this.§_-Tb§ = lb; + this.§_-mq§ = rb; + } + + public function setChassisControls(moveDirection:int, turnDirection:int, reverseBackTurn:Boolean, force:Boolean = false) : Boolean + { + var throttle:Number = NaN; + var throttleLeft:Number = NaN; + var throttleRight:Number = NaN; + var k:Number = NaN; + turnDirection = -turnDirection; + if(force || this.moveDirection != moveDirection || this.turnDirection != turnDirection) + { + this.moveDirection = moveDirection; + this.turnDirection = turnDirection; + this.reverseBackTurn = reverseBackTurn; + throttle = this.power; + throttleLeft = moveDirection * throttle; + throttleRight = moveDirection * throttle; + if(moveDirection == 0) + { + this.§ get§(false,false); + k = 0.8; + throttleLeft -= turnDirection * throttle * k; + throttleRight += turnDirection * throttle * k; + } + else + { + k = 0.4; + if(moveDirection == 1) + { + this.§ get§(turnDirection == 1,turnDirection == -1); + if(turnDirection == 1) + { + throttleLeft -= throttle * k; + } + if(turnDirection == -1) + { + throttleRight -= throttle * k; + } + } + else if(reverseBackTurn) + { + this.§ get§(turnDirection == -1,turnDirection == 1); + if(turnDirection == -1) + { + throttleLeft += throttle * k; + } + if(turnDirection == 1) + { + throttleRight += throttle * k; + } + } + else + { + this.§ get§(turnDirection == 1,turnDirection == -1); + if(turnDirection == 1) + { + throttleLeft += throttle * k; + } + if(turnDirection == -1) + { + throttleRight += throttle * k; + } + } + } + this.§_-Er§(throttleLeft,throttleRight); + return true; + } + return false; + } + + override public function addToGame(gameKernel:§_-AG§) : void + { + this.gameKernel = gameKernel; + } + + override public function removeFromGame(gameKernel:§_-AG§) : void + { + this.§_-z§.§_-Ah§.stop(); + this.removeFromScene(); + gameKernel = null; + } + + override public function initComponent() : void + { + §_-U-§(entity.getComponentStrict(§_-U-§)).§_-Ea§(this); + this.§_-I3§(); + this.§_-z§ = new §_-M2§(); + var respawnState:§_-Gg§ = new §_-Gg§(this); + this.§_-z§.§_-W§(entity,§_-kU§.SET_RESPAWN_STATE,respawnState); + this.§_-z§.§_-W§(entity,§_-kU§.SET_ACTIVATING_STATE,new §_-1t§(this)); + this.§_-z§.§_-W§(entity,§_-kU§.SET_ACTIVE_STATE,new §_-Wz§(this)); + this.§_-z§.§_-W§(entity,§_-kU§.SET_DEAD_STATE,new §_-0N§(this)); + this.§_-z§.§_-Ah§ = §_-GH§.INSTANCE; + entity.addEventHandler(§_-Ss§.BATTLE_FINISHED,this.§_-7L§); + } + + public function §_-pB§(point:§_-bj§) : void + { + point.copy(this.hull.§_-EN§); + } + + public function §_-Cd§() : Matrix4 + { + return this.§_-YH§; + } + + public function setTurret(turret:§_-3e§) : void + { + this.turret = turret; + if(turret != null) + { + this.§_-I3§(); + } + } + + public function §_-Cj§(point:§_-bj§) : void + { + point.copy(this.hull.§_-Rj§); + } + + public function updateBeforeSimulation(physicsStep:int) : void + { + var d:Number = NaN; + var limit:Number = NaN; + var dt:Number = Number(§_-h2§.timeDeltaSeconds); + if(this.maxSpeed != this.§_-fL§.targetValue) + { + this.maxSpeed = this.§_-fL§.update(dt); + } + if(this.maxTurnSpeed != this.§_-dr§.targetValue) + { + this.maxTurnSpeed = this.§_-dr§.update(dt); + } + var slipTerm:int = this.§_-mt§ > this.§_-JJ§ ? -1 : (this.§_-mt§ < this.§_-JJ§ ? 1 : 0); + var world:§_-DB§ = this.body.scene; + var weight:Number = this.mass * world.§_-MX§.length(); + var k:Number = this.§_-mt§ != this.§_-JJ§ && !(this.§_-Tb§ || this.§_-mq§) && this.body.state.rotation.length() > this.maxTurnSpeed ? 0.1 : 1; + this.§_-Ei§.§_-HQ§(dt,k * this.§_-mt§,this.maxSpeed,slipTerm,weight,this.§_-CF§,this.§_-Tb§); + this.§_-iA§.§_-HQ§(dt,k * this.§_-JJ§,this.maxSpeed,slipTerm,weight,this.§_-CF§,this.§_-mq§); + var baseMatrix:Matrix3 = this.body.baseMatrix; + if(this.§_-iA§.§_-Ca§ >= this.§_-iA§.numRays >> 1 || this.§_-Ei§.§_-Ca§ >= this.§_-Ei§.numRays >> 1) + { + d = world.§_-MX§.x * baseMatrix.c + world.§_-MX§.y * baseMatrix.g + world.§_-MX§.z * baseMatrix.k; + limit = Math.SQRT1_2 * world.§_-MX§.length(); + if(d < -limit || d > limit) + { + _v.x = (baseMatrix.c * d - world.§_-MX§.x) * this.mass; + _v.y = (baseMatrix.g * d - world.§_-MX§.y) * this.mass; + _v.z = (baseMatrix.k * d - world.§_-MX§.z) * this.mass; + this.body.§_-Qy§(_v); + } + } + } + + public function updateAfterSimulation(physicsStep:int) : void + { + } + + public function interpolate(interpolationCoeff:Number) : void + { + this.body.interpolate(interpolationCoeff,this.§_-bi§,this.§_-UQ§); + this.§_-UQ§.normalize(); + this.§_-UQ§.toMatrix4(this.§_-YH§); + this.§_-YH§.§_-Vi§(this.§_-bi§); + } + + public function §_-5l§(mask:int) : void + { + for(var i:int = 0; i < this.§_-i1§.length; i++) + { + this.§_-i1§[i].collisionMask = mask; + } + } + + public function setDetailedCollisionGroup(collisionGroup:int) : void + { + var collisionPrimitive:§_-Nh§ = null; + for each(collisionPrimitive in this.§_-DC§) + { + collisionPrimitive.collisionGroup = collisionGroup; + } + if(this.turret != null) + { + for each(collisionPrimitive in this.turret.getTurretPrimitives()) + { + collisionPrimitive.collisionGroup = collisionGroup; + } + } + } + + public function setSuspensionCollisionMask(collisionMask:int) : void + { + this.§_-Ei§.collisionMask = collisionMask; + this.§_-iA§.collisionMask = collisionMask; + } + + public function addToScene() : void + { + var physicsSystem:§_-8a§ = null; + var physicsScene:§_-DB§ = null; + var collisionDetector:§_-Zm§ = null; + if(!this.§case §) + { + physicsSystem = this.gameKernel.§_-m8§(); + physicsScene = physicsSystem.§_-d-§(); + collisionDetector = §_-Zm§(physicsScene.collisionDetector); + physicsScene.§_-D8§(this.body); + collisionDetector.§_-pN§(this.§_-Rg§); + physicsSystem.addControllerBefore(this); + this.§case § = true; + } + } + + public function removeFromScene() : void + { + var physicsSystem:§_-8a§ = null; + var physicsScene:§_-DB§ = null; + var collisionDetector:§_-Zm§ = null; + if(this.§case §) + { + physicsSystem = this.gameKernel.§_-m8§(); + physicsScene = physicsSystem.§_-d-§(); + collisionDetector = §_-Zm§(physicsScene.collisionDetector); + physicsScene.§_-2x§(this.body); + collisionDetector.§_-qP§(this.§_-Rg§); + physicsSystem.removeControllerBefore(this); + this.§case § = false; + } + } + + private function §_-Nr§(value:Number) : void + { + if(value <= 0) + { + throw new ArgumentError("Mass must have a positive value"); + } + this.body.invMass = 1 / value; + if(this.hull != null) + { + §_-kG§.§_-Il§(value,this.hull.§_-eh§.hs,this.body.invInertia); + } + } + + private function §_-21§(geometryData:Vector.<§_-WY§>, primitives:Vector.<§_-Nh§>, collisionGroup:int, collisionMask:int) : void + { + var boxData:§_-WY§ = null; + var primitive:§_-m3§ = null; + primitives.length = 0; + for each(boxData in geometryData) + { + primitive = new §_-m3§(boxData.hs,collisionGroup,collisionMask); + primitive.localTransform = boxData.matrix.clone(); + primitive.body = this.body; + primitives.push(primitive); + } + } + + private function §_-y§(primitives:Vector.<§_-Nh§>) : void + { + var collisionPrimitive:§_-Nh§ = null; + for each(collisionPrimitive in primitives) + { + this.body.§_-jH§(collisionPrimitive,collisionPrimitive.localTransform); + } + } + + private function §_-7L§(gameType:String, gameData:*) : void + { + this.setChassisControls(0,0,false); + } + } +} + +class ValueSmoother +{ + public var currentValue:Number; + + public var targetValue:Number; + + public var smoothingSpeedUp:Number; + + public var smoothingSpeedDown:Number; + + public function ValueSmoother(smoothingSpeedUp:Number, smoothingSpeedDown:Number, targetValue:Number, currentValue:Number) + { + super(); + this.smoothingSpeedUp = smoothingSpeedUp; + this.smoothingSpeedDown = smoothingSpeedDown; + this.targetValue = targetValue; + this.currentValue = currentValue; + } + + public function reset(value:Number) : void + { + this.currentValue = value; + this.targetValue = value; + } + + public function update(dt:Number) : Number + { + if(this.currentValue < this.targetValue) + { + this.currentValue += this.smoothingSpeedUp * dt; + if(this.currentValue > this.targetValue) + { + this.currentValue = this.targetValue; + } + } + else if(this.currentValue > this.targetValue) + { + this.currentValue -= this.smoothingSpeedDown * dt; + if(this.currentValue < this.targetValue) + { + this.currentValue = this.targetValue; + } + } + return this.currentValue; + } +} diff --git a/src/?_-fj?/?_-nL?.as b/src/?_-fj?/?_-nL?.as new file mode 100644 index 0000000..da196ce --- /dev/null +++ b/src/?_-fj?/?_-nL?.as @@ -0,0 +1,151 @@ +package §_-fj§ +{ + import §_-KT§.§_-Ju§; + import §_-US§.§_-BV§; + import §_-V-§.§_-aY§; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; + import §default§.§_-49§; + + public class §_-nL§ + { + private static var conSpeedDamping:§_-Ju§ = new §_-Ju§("track_damping",0,0,1000); + + public var chassisBody:§_-BV§; + + public var rays:Vector.<§_-gd§>; + + public var numRays:int; + + public var §_-Ca§:int; + + public var §_-gt§:Number = 0; + + private var §_-Ce§:Object; + + public function §_-nL§(chassisBody:§_-BV§, matrix:Matrix4, wheels:Vector.<§_-49§>) + { + super(); + this.chassisBody = chassisBody; + this.§_-TD§(matrix,wheels); + } + + public function set collisionMask(value:int) : void + { + for(var i:int = 0; i < this.numRays; i++) + { + §_-gd§(this.rays[i]).collisionMask = value; + } + } + + private function §_-eO§(tankWheel:§_-49§) : Boolean + { + var parts:Array = tankWheel.name.split("_"); + return parts[1] == "1"; + } + + public function §_-TD§(matrix:Matrix4, wheels:Vector.<§_-49§>) : void + { + var position:§_-bj§; + var i:int; + var tankWheel:§_-49§ = null; + var mainWheel:§_-49§ = null; + var ray:§_-gd§ = null; + var mainWheels:Vector.<§_-49§> = new Vector.<§_-49§>(); + for each(tankWheel in wheels) + { + if(this.§_-eO§(tankWheel)) + { + mainWheels.push(tankWheel); + } + } + if(mainWheels.length == 0) + { + throw new Error("No main wheels found"); + } + mainWheels.sort(function(a:§_-49§, b:§_-49§):Number + { + if(a.position.y > b.position.y) + { + return -1; + } + if(a.position.y < b.position.y) + { + return 1; + } + return 0; + }); + this.§_-Ce§ = {}; + this.numRays = mainWheels.length; + this.rays = new Vector.<§_-gd§>(this.numRays); + position = new §_-bj§(); + for(i = 0; i < this.numRays; i++) + { + mainWheel = mainWheels[i]; + matrix.§_-eP§(mainWheel.position,position); + ray = new §_-gd§(this.chassisBody,position,new §_-bj§(0,0,-1)); + this.rays[i] = ray; + this.§_-Ce§[mainWheel.name] = ray; + } + } + + public function §_-fG§(name:String, maxRayLength:Number) : Number + { + var ray:§_-gd§ = this.§_-Ce§[name]; + if(ray == null) + { + return -1; + } + return !!ray.§_-n3§ ? Number(ray.§_-ZA§.t) : maxRayLength; + } + + public function §_-HQ§(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, weight:Number, data:§_-8C§, brake:Boolean) : void + { + var i:int = 0; + var springCoeff:Number = NaN; + var mid:int = 0; + var ray:§_-gd§ = null; + this.§_-Ca§ = 0; + for(i = 0; i < this.numRays; ) + { + if(§_-gd§(this.rays[i]).§_-1l§(data.rayLength)) + { + ++this.§_-Ca§; + } + i++; + } + if(this.§_-Ca§ > 0) + { + this.§_-gt§ = 0; + springCoeff = 0.5 * weight / (this.§_-Ca§ * (data.rayLength - data.§_-Fw§)); + throttle *= this.numRays / this.§_-Ca§; + mid = this.numRays >> 1; + if(Boolean(this.numRays & 1 == 0)) + { + for(i = 0; i < this.numRays; i++) + { + ray = this.rays[i]; + ray.§_-Qy§(dt,throttle,maxSpeed,i <= mid ? slipTerm : int(-slipTerm),springCoeff,data,brake); + this.§_-gt§ += ray.§_-bv§; + } + } + else + { + for(i = 0; i < this.numRays; ) + { + ray = this.rays[i]; + ray.§_-Qy§(dt,throttle,maxSpeed,i < mid ? slipTerm : (i > mid ? int(-slipTerm) : 0),springCoeff,data,brake); + this.§_-gt§ += ray.§_-bv§; + i++; + } + } + this.§_-gt§ /= this.§_-Ca§; + } + else + { + this.§_-gt§ = §_-aY§.§_-Fi§(this.§_-gt§,0,conSpeedDamping.value * dt); + } + } + } +} + diff --git a/src/package_93/name_294.as b/src/?_-ks?/?_-ig?.as similarity index 55% rename from src/package_93/name_294.as rename to src/?_-ks?/?_-ig?.as index 57c4c46..0cda398 100644 --- a/src/package_93/name_294.as +++ b/src/?_-ks?/?_-ig?.as @@ -1,13 +1,13 @@ -package package_93 +package §_-ks§ { + import §_-az§.§_-ps§; import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.events.TimerEvent; import flash.utils.Timer; import flash.utils.getTimer; - import alternativa.tanks.game.GameTask; - public class name_294 extends GameTask + public class §_-ig§ extends §_-ps§ { private static const MESSAGE_SPACING_Y:int = 19; @@ -15,57 +15,57 @@ package package_93 private var maxMessagesNumber:int; - private var var_436:Sprite; + private var §_-pQ§:Sprite; - private var var_435:Vector.; + private var §_-cd§:Vector.; private var timer:Timer; - public function name_294(priority:int, maxMessagesNumber:int, container:DisplayObjectContainer, messagesX:int, messagesY:int) + public function §_-ig§(priority:int, maxMessagesNumber:int, container:DisplayObjectContainer, messagesX:int, messagesY:int) { super(priority); this.maxMessagesNumber = maxMessagesNumber; - this.var_436 = new Sprite(); - this.var_436.x = messagesX; - this.var_436.y = messagesY; - container.addChild(this.var_436); - this.var_435 = new Vector.(); + this.§_-pQ§ = new Sprite(); + this.§_-pQ§.x = messagesX; + this.§_-pQ§.y = messagesY; + container.addChild(this.§_-pQ§); + this.§_-cd§ = new Vector.(); this.timer = new Timer(1000); - this.timer.addEventListener(TimerEvent.TIMER,this.method_391); + this.timer.addEventListener(TimerEvent.TIMER,this.§_-Zt§); } public function set messagesX(value:int) : void { - this.var_436.x = value; + this.§_-pQ§.x = value; } public function set messagesY(value:int) : void { - this.var_436.y = value; + this.§_-pQ§.y = value; } - public function name_305(text:String, color:uint) : void + public function §_-U8§(text:String, color:uint) : void { var message:Message = new Message(text,color,MESSAGE_LIFE_TIME); - this.var_435.push(message); - this.var_436.addChild(message); - if(this.var_435.length > this.maxMessagesNumber) + this.§_-cd§.push(message); + this.§_-pQ§.addChild(message); + if(this.§_-cd§.length > this.maxMessagesNumber) { - this.method_389(0); + this.§_-AW§(0); } - this.method_390(); - this.method_388(); + this.§_-cp§(); + this.§_-4t§(); } override public function stop() : void { - this.var_436.parent.removeChild(this.var_436); + this.§_-pQ§.parent.removeChild(this.§_-pQ§); this.timer.stop(); } - private function method_388() : void + private function §_-4t§() : void { - if(this.var_435.length > 0) + if(this.§_-cd§.length > 0) { if(!this.timer.running) { @@ -78,38 +78,38 @@ package package_93 } } - private function method_390() : void + private function §_-cp§() : void { var message:Message = null; - for(var i:int = 0; i < this.var_435.length; i++) + for(var i:int = 0; i < this.§_-cd§.length; i++) { - message = this.var_435[i]; + message = this.§_-cd§[i]; message.y = i * MESSAGE_SPACING_Y; } } - private function method_391(event:TimerEvent) : void + private function §_-Zt§(event:TimerEvent) : void { - this.method_392(getTimer()); - this.method_390(); - this.method_388(); + this.§_-ZP§(getTimer()); + this.§_-cp§(); + this.§_-4t§(); } - private function method_392(time:int) : void + private function §_-ZP§(time:int) : void { - if(this.var_435.length > 0) + if(this.§_-cd§.length > 0) { - if(Message(this.var_435[0]).expirationTime <= time) + if(Message(this.§_-cd§[0]).expirationTime <= time) { - this.method_389(0); + this.§_-AW§(0); } } } - private function method_389(i:int) : void + private function §_-AW§(i:int) : void { - this.var_436.removeChild(this.var_435[i]); - this.var_435.splice(i,1); + this.§_-pQ§.removeChild(this.§_-cd§[i]); + this.§_-cd§.splice(i,1); } } } diff --git a/src/package_112/name_651.as b/src/?_-mX?/?_-Wb?.as similarity index 53% rename from src/package_112/name_651.as rename to src/?_-mX?/?_-Wb?.as index f38704d..3de9605 100644 --- a/src/package_112/name_651.as +++ b/src/?_-mX?/?_-Wb?.as @@ -1,28 +1,28 @@ -package package_112 +package §_-mX§ { + import §_-O5§.§_-Hk§; + import §default§.§_-7d§; import flash.events.Event; - import alternativa.utils.ByteArrayMap; - import package_40.class_7; - import package_40.name_170; - import package_71.name_333; + import §return§.§_-Ui§; + import §return§.§_-h5§; - public class name_651 extends class_7 + public class §_-Wb§ extends §_-h5§ { - public var data:name_333; + public var data:§_-7d§; - protected var var_673:String; + protected var §_-P9§:String; - private var files:ByteArrayMap; + private var files:§_-Hk§; - private var var_672:name_170; + private var §_-e2§:§_-Ui§; private var baseUrl:String; private var partXML:XML; - private var partsCollector:Vector.; + private var partsCollector:Vector.<§_-7d§>; - public function name_651(param1:String, param2:XML, param3:Vector.) + public function §_-Wb§(param1:String, param2:XML, param3:Vector.<§_-7d§>) { super(); this.partXML = param2; @@ -33,54 +33,54 @@ package package_112 override public function run() : void { var _loc2_:XML = null; - this.files = new ByteArrayMap(); - this.var_672 = new name_170(); + this.files = new §_-Hk§(); + this.§_-e2§ = new §_-Ui§(); var _loc1_:String = this.baseUrl + this.partXML.modelFile[0].toString(); - this.var_673 = "main." + this.partXML.modelFile[0].@type; - this.var_672.addTask(new BlobLoadTask(this.var_673,_loc1_,this.files)); + this.§_-P9§ = "main." + this.partXML.modelFile[0].@type; + this.§_-e2§.addTask(new BlobLoadTask(this.§_-P9§,_loc1_,this.files)); for each(_loc2_ in this.partXML.texture) { - this.var_672.addTask(new BlobLoadTask(_loc2_.@id,this.baseUrl + _loc2_.toString(),this.files)); + this.§_-e2§.addTask(new BlobLoadTask(_loc2_.@id,this.baseUrl + _loc2_.toString(),this.files)); } - this.var_672.addEventListener(Event.COMPLETE,this.method_817); - this.var_672.run(); + this.§_-e2§.addEventListener(Event.COMPLETE,this.§_-Mk§); + this.§_-e2§.run(); } - public function parseModelData(param1:ByteArrayMap) : name_333 + public function parseModelData(param1:§_-Hk§) : §_-7d§ { throw new Error("Not implemented"); } - private function method_817(param1:Event) : void + private function §_-Mk§(param1:Event) : void { - this.var_672 = null; + this.§_-e2§ = null; this.data = this.parseModelData(this.files); this.data.id = this.partXML.id; this.partsCollector.push(this.data); - method_102(); + §_-3Z§(); } } } +import §_-O5§.§_-Hk§; import flash.events.Event; import flash.events.EventDispatcher; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; -import alternativa.utils.ByteArrayMap; -import package_40.class_7; +import §return§.§_-h5§; -class BlobLoadTask extends class_7 +class BlobLoadTask extends §_-h5§ { public var blobId:String; - private var collector:ByteArrayMap; + private var collector:§_-Hk§; private var blobUrl:String; private var loader:URLLoader; - public function BlobLoadTask(param1:String, param2:String, param3:ByteArrayMap) + public function BlobLoadTask(param1:String, param2:String, param3:§_-Hk§) { super(); this.collector = param3; @@ -98,8 +98,8 @@ class BlobLoadTask extends class_7 private function onLoadingComplete(param1:Event) : void { - this.collector.name_59(this.blobId,this.loader.data); + this.collector.§_-9v§(this.blobId,this.loader.data); this.loader = null; - method_102(); + §_-3Z§(); } } diff --git a/src/?_-nO?/?_-Yk?.as b/src/?_-nO?/?_-Yk?.as new file mode 100644 index 0000000..19df8ee --- /dev/null +++ b/src/?_-nO?/?_-Yk?.as @@ -0,0 +1,133 @@ +package §_-nO§ +{ + import §_-az§.§_-AG§; + import §_-az§.§_-ps§; + + public class §_-Yk§ extends §_-ps§ implements §_-5B§ + { + private var §_-jB§:Vector.<§_-KI§>; + + private var §_-0Y§:int; + + private var running:Boolean; + + private var gameKernel:§_-AG§; + + public function §_-Yk§(priority:int, gameKernel:§_-AG§) + { + super(priority); + this.gameKernel = gameKernel; + this.§_-jB§ = new Vector.<§_-KI§>(); + } + + public function addLogicUnit(logicUnit:§_-KI§) : void + { + var actionAddUnit:ActionAddUnit = null; + if(this.running) + { + actionAddUnit = ActionAddUnit(this.gameKernel.§_-11§().§_-kP§(ActionAddUnit)); + this.§_-5W§(actionAddUnit,logicUnit); + } + else + { + if(this.§_-jB§.indexOf(logicUnit) >= 0) + { + throw new Error("Logic unit already exists"); + } + var _loc3_:* = this.§_-0Y§++; + this.§_-jB§[_loc3_] = logicUnit; + } + } + + public function removeLogicUnit(logicUnit:§_-KI§) : void + { + var actionRemoveUnit:ActionRemoveUnit = null; + var index:int = 0; + if(this.running) + { + actionRemoveUnit = ActionRemoveUnit(this.gameKernel.§_-11§().§_-kP§(ActionRemoveUnit)); + this.§_-5W§(actionRemoveUnit,logicUnit); + } + else + { + index = int(this.§_-jB§.indexOf(logicUnit)); + if(index < 0) + { + throw new Error("Logic unit not found"); + } + this.§_-jB§[index] = this.§_-jB§[--this.§_-0Y§]; + this.§_-jB§[this.§_-0Y§] = null; + } + } + + override public function run() : void + { + this.running = true; + for(var i:int = 0; i < this.§_-0Y§; i++) + { + this.§_-jB§[i].runLogic(); + } + this.running = false; + } + + private function §_-5W§(action:DeferredAction, unit:§_-KI§) : void + { + action.system = this; + action.unit = unit; + this.gameKernel.§_-L§(action); + } + } +} + +import §_-RQ§.§_-HE§; +import §_-RQ§.§_-Va§; +import §in §.§_-eF§; + +class DeferredAction extends §_-eF§ +{ + public var system:§_-5B§; + + public var unit:§_-KI§; + + public function DeferredAction(objectPool:§_-Va§) + { + super(objectPool); + } + + override public function execute() : void + { + this.doExecute(); + this.system = null; + this.unit = null; + } + + protected function doExecute() : void + { + } +} + +class ActionAddUnit extends DeferredAction +{ + public function ActionAddUnit(objectPool:§_-Va§) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.addLogicUnit(unit); + } +} + +class ActionRemoveUnit extends DeferredAction +{ + public function ActionRemoveUnit(objectPool:§_-Va§) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.removeLogicUnit(unit); + } +} diff --git a/src/package_109/name_377.as b/src/?_-pe?/?_-m3?.as similarity index 78% rename from src/package_109/name_377.as rename to src/?_-pe?/?_-m3?.as index c541977..3ea0132 100644 --- a/src/package_109/name_377.as +++ b/src/?_-pe?/?_-m3?.as @@ -1,40 +1,40 @@ -package package_109 +package §_-pe§ { - import package_46.Matrix4; - import package_46.name_194; - import package_76.name_235; - import package_90.name_386; + import §_-1e§.§_-Nh§; + import §_-KA§.§_-FW§; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; - public class name_377 extends name_235 + public class §_-m3§ extends §_-Nh§ { - public var hs:name_194 = new name_194(); + public var hs:§_-bj§ = new §_-bj§(); - public function name_377(hs:name_194, collisionGroup:int, collisionMask:int) + public function §_-m3§(hs:§_-bj§, collisionGroup:int, collisionMask:int) { super(BOX,collisionGroup,collisionMask); this.hs.copy(hs); } - override public function calculateAABB() : name_386 + override public function calculateAABB() : §_-FW§ { var t:Matrix4 = null; var xx:Number = NaN; var yy:Number = NaN; var zz:Number = NaN; t = transform; - xx = t.a < 0 ? -t.a : t.a; - yy = t.b < 0 ? -t.b : t.b; - zz = t.c < 0 ? -t.c : t.c; + xx = t.a < 0 ? -t.a : Number(t.a); + yy = t.b < 0 ? -t.b : Number(t.b); + zz = t.c < 0 ? -t.c : Number(t.c); aabb.maxX = this.hs.x * xx + this.hs.y * yy + this.hs.z * zz; aabb.minX = -aabb.maxX; - xx = t.e < 0 ? -t.e : t.e; - yy = t.f < 0 ? -t.f : t.f; - zz = t.g < 0 ? -t.g : t.g; + xx = t.e < 0 ? -t.e : Number(t.e); + yy = t.f < 0 ? -t.f : Number(t.f); + zz = t.g < 0 ? -t.g : Number(t.g); aabb.maxY = this.hs.x * xx + this.hs.y * yy + this.hs.z * zz; aabb.minY = -aabb.maxY; - xx = t.i < 0 ? -t.i : t.i; - yy = t.j < 0 ? -t.j : t.j; - zz = t.k < 0 ? -t.k : t.k; + xx = t.i < 0 ? -t.i : Number(t.i); + yy = t.j < 0 ? -t.j : Number(t.j); + zz = t.k < 0 ? -t.k : Number(t.k); aabb.maxZ = this.hs.x * xx + this.hs.y * yy + this.hs.z * zz; aabb.minZ = -aabb.maxZ; aabb.minX += t.d; @@ -46,9 +46,9 @@ package package_109 return aabb; } - override public function copyFrom(source:name_235) : name_235 + override public function copyFrom(source:§_-Nh§) : §_-Nh§ { - var box:name_377 = source as name_377; + var box:§_-m3§ = source as §_-m3§; if(box == null) { return this; @@ -58,12 +58,12 @@ package package_109 return this; } - override protected function createPrimitive() : name_235 + override protected function createPrimitive() : §_-Nh§ { - return new name_377(this.hs,collisionGroup,collisionMask); + return new §_-m3§(this.hs,collisionGroup,collisionMask); } - override public function raycast(origin:name_194, vector:name_194, epsilon:Number, normal:name_194) : Number + override public function raycast(origin:§_-bj§, vector:§_-bj§, epsilon:Number, normal:§_-bj§) : Number { var t1:Number = NaN; var t2:Number = NaN; @@ -205,9 +205,9 @@ package package_109 return -1; } } - vx = normal.x; - vy = normal.y; - vz = normal.z; + vx = Number(normal.x); + vy = Number(normal.y); + vz = Number(normal.z); normal.x = transform.a * vx + transform.b * vy + transform.c * vz; normal.y = transform.e * vx + transform.f * vy + transform.g * vz; normal.z = transform.i * vx + transform.j * vy + transform.k * vz; diff --git a/src/package_72/name_255.as b/src/?function?/?_-KQ?.as similarity index 50% rename from src/package_72/name_255.as rename to src/?function?/?_-KQ?.as index b26162a..c9dad56 100644 --- a/src/package_72/name_255.as +++ b/src/?function?/?_-KQ?.as @@ -1,20 +1,20 @@ -package package_72 +package §function§ { + import §_-8D§.§_-FW§; + import §_-aF§.§_-S8§; + import §_-aF§.§_-SG§; + import §_-aF§.§_-nN§; import flash.display3D.Context3DBlendFactor; import flash.geom.Vector3D; import flash.utils.setTimeout; - import package_21.name_386; - import package_25.name_113; - import package_25.name_250; - import package_25.name_626; - public class name_255 extends name_113 + public class §_-KQ§ extends §_-SG§ { - private static var smokePrototype:name_626; + private static var smokePrototype:§_-nN§; - private static var firePrototype:name_626; + private static var firePrototype:§_-nN§; - private static var flamePrototype:name_626; + private static var flamePrototype:§_-nN§; private static var liftSpeed:Number = 60; @@ -22,7 +22,7 @@ package package_72 private static var pos:Vector3D = new Vector3D(); - public function name_255(smoke:name_250, fire:name_250, flame:name_250, live:Number = 1, repeat:Boolean = false) + public function §_-KQ§(smoke:§_-S8§, fire:§_-S8§, flame:§_-S8§, live:Number = 1, repeat:Boolean = false) { var i:int; var ft:Number = NaN; @@ -31,37 +31,37 @@ package package_72 ft = 1 / 30; if(smokePrototype == null) { - smokePrototype = new name_626(128,128,smoke,false); - smokePrototype.method_257(0 * ft,0,0.4,0.4,0.65,0.25,0,0); - smokePrototype.method_257(9 * ft,0,0.58,0.58,0.65,0.45,0.23,0.3); - smokePrototype.method_257(19 * ft,0,0.78,0.78,0.65,0.55,0.5,0.66); - smokePrototype.method_257(40 * ft,0,1.21,1.21,0.4,0.4,0.4,0.27); - smokePrototype.method_257(54 * ft,0,1.5,1.5,0,0,0,0); + smokePrototype = new §_-nN§(128,128,smoke,false); + smokePrototype.§_-Le§(0 * ft,0,0.4,0.4,0.65,0.25,0,0); + smokePrototype.§_-Le§(9 * ft,0,0.58,0.58,0.65,0.45,0.23,0.3); + smokePrototype.§_-Le§(19 * ft,0,0.78,0.78,0.65,0.55,0.5,0.66); + smokePrototype.§_-Le§(40 * ft,0,1.21,1.21,0.4,0.4,0.4,0.27); + smokePrototype.§_-Le§(54 * ft,0,1.5,1.5,0,0,0,0); } if(firePrototype == null) { - firePrototype = new name_626(128,128,fire,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - firePrototype.method_257(0 * ft,0,0.3,0.3,1,1,1,0); - firePrototype.method_257(8 * ft,0,0.4,0.4,1,1,1,0.85); - firePrototype.method_257(17 * ft,0,0.51,0.51,1,0.56,0.48,0.1); - firePrototype.method_257(24 * ft,0,0.6,0.6,1,0.56,0.48,0); + firePrototype = new §_-nN§(128,128,fire,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + firePrototype.§_-Le§(0 * ft,0,0.3,0.3,1,1,1,0); + firePrototype.§_-Le§(8 * ft,0,0.4,0.4,1,1,1,0.85); + firePrototype.§_-Le§(17 * ft,0,0.51,0.51,1,0.56,0.48,0.1); + firePrototype.§_-Le§(24 * ft,0,0.6,0.6,1,0.56,0.48,0); } if(flamePrototype == null) { - flamePrototype = new name_626(128,128,flame,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - flamePrototype.method_257(0 * ft,0,1,1,1,1,1,0); - flamePrototype.method_257(10 * ft,0,1,1,1,1,1,1); - flamePrototype.method_257(live - 10 * ft,0,1,1,1,1,1,1); - flamePrototype.method_257(live,0,1,1,1,1,1,0); + flamePrototype = new §_-nN§(128,128,flame,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + flamePrototype.§_-Le§(0 * ft,0,1,1,1,1,1,0); + flamePrototype.§_-Le§(10 * ft,0,1,1,1,1,1,1); + flamePrototype.§_-Le§(live - 10 * ft,0,1,1,1,1,1,1); + flamePrototype.§_-Le§(live,0,1,1,1,1,1,0); } - boundBox = new name_386(); + boundBox = new §_-FW§(); boundBox.minX = -100; boundBox.minY = -100; boundBox.minZ = -20; boundBox.maxX = 100; boundBox.maxY = 100; boundBox.maxZ = 200; - method_257(0,this.keyFrame1); + §_-Le§(0,this.keyFrame1); i = 0; while(true) { @@ -70,22 +70,22 @@ package package_72 { break; } - method_257(keyTime,this.method_530); + §_-Le§(keyTime,this.§_-IJ§); i++; } if(repeat) { setTimeout(function():void { - var newFire:name_255 = new name_255(smoke,fire,flame,live,repeat); + var newFire:§_-KQ§ = new §_-KQ§(smoke,fire,flame,live,repeat); newFire.name = name; newFire.scale = scale; newFire.position = position; newFire.direction = direction; - var_5.method_37(newFire); + §_-Ta§.each(newFire); },(live - 5 * ft) * 1000); } - method_258(var_151[var_148 - 1] + smokePrototype.lifeTime); + §_-DM§(§_-gV§[§_-kf§ - 1] + smokePrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void @@ -94,32 +94,32 @@ package package_72 pos.y = random() * 10 - 10 * 0.5; pos.z = random() * 10 * 0.5; var rnd:Number = 0.2 + random() * 0.2; - flamePrototype.name_627(this,time,pos,0,rnd,rnd,1,0); + flamePrototype.§_-fs§(this,time,pos,0,rnd,rnd,1,0); pos.x = random() * 10 - 10 * 0.5; pos.y = random() * 10 - 10 * 0.5; pos.z = random() * 10 * 0.5; rnd = 0.2 + random() * 0.2; - flamePrototype.name_627(this,time,pos,0,rnd,rnd,1,0.5 * flamePrototype.atlas.rangeLength); + flamePrototype.§_-fs§(this,time,pos,0,rnd,rnd,1,0.5 * flamePrototype.atlas.rangeLength); } - private function method_530(keyTime:Number, time:Number) : void + private function §_-IJ§(keyTime:Number, time:Number) : void { for(var i:int = 0; i < 1; i++) { pos.x = random() * 10 - 10 * 0.5; pos.y = random() * 10 - 10 * 0.5; pos.z = 10 + random() * 10 * 0.5; - this.method_529(time,0.7 + random() * 0.5,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,1,1,1,random() * smokePrototype.atlas.rangeLength); + this.§_-C8§(time,0.7 + random() * 0.5,pos); + smokePrototype.§_-fs§(this,time,pos,random() - 0.5,1,1,1,random() * smokePrototype.atlas.rangeLength); pos.x = 0; pos.y = 0; pos.z = 0; - this.method_529(time,0.7 + random() * 0.5,pos); - firePrototype.name_627(this,time,pos,random() - 0.5,1,1,0.2,random() * firePrototype.atlas.rangeLength); + this.§_-C8§(time,0.7 + random() * 0.5,pos); + firePrototype.§_-fs§(this,time,pos,random() - 0.5,1,1,0.2,random() * firePrototype.atlas.rangeLength); } } - private function method_531(direction:Vector3D, angle:Number, result:Vector3D) : void + private function §_-ky§(direction:Vector3D, angle:Number, result:Vector3D) : void { var x:Number = random() * 2 - 1; var y:Number = random() * 2 - 1; @@ -135,11 +135,11 @@ package package_72 result.normalize(); } - private function method_529(time:Number, factor:Number, result:Vector3D) : void + private function §_-C8§(time:Number, factor:Number, result:Vector3D) : void { - result.x += time * windSpeed * var_5.wind.x; - result.y += time * windSpeed * var_5.wind.y; - result.z += time * windSpeed * var_5.wind.z + time * liftSpeed * factor; + result.x += time * windSpeed * §_-Ta§.wind.x; + result.y += time * windSpeed * §_-Ta§.wind.y; + result.z += time * windSpeed * §_-Ta§.wind.z + time * liftSpeed * factor; } } } diff --git a/src/?function?/?_-T?.as b/src/?function?/?_-T?.as new file mode 100644 index 0000000..61f02b9 --- /dev/null +++ b/src/?function?/?_-T?.as @@ -0,0 +1,122 @@ +package §function§ +{ + import §_-1z§.§_-pi§; + import §_-7A§.§_-3e§; + import §_-az§.§_-2J§; + import §_-az§.§_-AG§; + import §_-jG§.§_-gg§; + import §_-nl§.§_-bj§; + import flash.media.Sound; + + public class §_-T§ extends §_-2J§ implements §_-gg§ + { + private var shotTextureResource:§_-pi§; + + private var shotSound:Sound; + + private var gameKernel:§_-AG§; + + private var turret:§_-3e§; + + public function §_-T§(shotTextureResource:§_-pi§, shotSound:Sound) + { + super(); + this.shotTextureResource = shotTextureResource; + this.shotSound = shotSound; + } + + override public function initComponent() : void + { + this.turret = §_-3e§(entity.getComponentStrict(§_-3e§)); + } + + override public function addToGame(gameKernel:§_-AG§) : void + { + this.gameKernel = gameKernel; + } + + override public function removeFromGame(gameKernel:§_-AG§) : void + { + } + + public function §_-km§(barrelIndex:int, barrelOrigin:§_-bj§, muzzlePosition:§_-bj§, gunDirection:§_-bj§, gunElevationAxis:§_-bj§) : void + { + var simpleWeaponShotEffect:SimpleWeaponShotEffect = SimpleWeaponShotEffect(this.gameKernel.§_-11§().§_-kP§(SimpleWeaponShotEffect)); + simpleWeaponShotEffect.init(barrelIndex,this.turret,this.shotTextureResource,100); + this.gameKernel.§_-DZ§().each(simpleWeaponShotEffect); + } + } +} + +import §_-1z§.§_-pi§; +import §_-7A§.§_-3e§; +import §_-Ex§.§_-U2§; +import §_-RQ§.§_-HE§; +import §_-RQ§.§_-Va§; +import §_-V-§.§_-Eh§; +import §_-Vh§.§_-pZ§; +import §_-e6§.§_-1I§; +import §_-e6§.§_-RE§; +import §_-e6§.§_-fX§; +import §_-lS§.§_-h2§; +import §_-nl§.§_-bj§; +import alternativa.engine3d.alternativa3d; + +use namespace alternativa3d; + +class SimpleWeaponShotEffect extends §_-HE§ implements §_-fX§ +{ + private static var muzzlePosition:§_-bj§ = new §_-bj§(); + + private static var gunDirection:§_-bj§ = new §_-bj§(); + + private var turret:§_-3e§; + + private var mesh:§_-U2§; + + private var material:§_-pZ§; + + private var timeToLive:int; + + private var barrelIndex:int; + + public function SimpleWeaponShotEffect(objectPool:§_-Va§) + { + super(objectPool); + this.mesh = new §_-Gi§(40,250,0,250 / 2); + this.material = new §_-pZ§(); + this.material.§_-L4§ = true; + this.mesh.setMaterialToAllSurfaces(this.material); + } + + public function init(barrelIndex:int, turret:§_-3e§, textureResource:§_-pi§, timeToLive:int) : void + { + this.barrelIndex = barrelIndex; + this.turret = turret; + this.timeToLive = timeToLive; + this.material.diffuseMap = textureResource; + } + + public function addedToRenderSystem(system:§_-1I§) : void + { + system.§_-09§(this.mesh.geometry); + system.§_-p1§().addChild(this.mesh); + } + + public function play(camera:§_-RE§) : Boolean + { + if(this.timeToLive < 0) + { + return false; + } + this.turret.getGunMuzzleData(this.barrelIndex,muzzlePosition,gunDirection); + §_-Eh§.§_-Wr§(this.mesh,muzzlePosition,gunDirection,camera.position); + this.timeToLive -= §_-h2§.timeDelta; + return true; + } + + public function destroy() : void + { + this.mesh.alternativa3d::removeFromParent(); + } +} diff --git a/src/package_43/name_190.as b/src/?in ?/DeferredCommand.as similarity index 57% rename from src/package_43/name_190.as rename to src/?in ?/DeferredCommand.as index a95015a..5ab14f1 100644 --- a/src/package_43/name_190.as +++ b/src/?in ?/DeferredCommand.as @@ -1,13 +1,13 @@ -package package_43 +package §in § { - import alternativa.tanks.game.utils.objectpool.PooledObject; import alternativa.tanks.game.utils.objectpool.ObjectPool; + import alternativa.tanks.game.utils.objectpool.PooledObject; - public class name_190 extends PooledObject + public class DeferredCommand extends PooledObject { - public var next:name_190; + public var next:DeferredCommand; - public function name_190(objectPool:ObjectPool) + public function DeferredCommand(objectPool:ObjectPool) { super(objectPool); } diff --git a/src/package_43/name_183.as b/src/?in ?/DeferredCommandsSystem.as similarity index 53% rename from src/package_43/name_183.as rename to src/?in ?/DeferredCommandsSystem.as index ca7a507..eecd8e6 100644 --- a/src/package_43/name_183.as +++ b/src/?in ?/DeferredCommandsSystem.as @@ -1,17 +1,17 @@ -package package_43 +package §in § { import alternativa.tanks.game.GameTask; - public class name_183 extends GameTask + public class DeferredCommandsSystem extends GameTask { - private var commands:name_190; + private var commands:DeferredCommand; - public function name_183(priority:int) + public function DeferredCommandsSystem(priority:int) { super(priority); } - public function name_187(command:name_190) : void + public function addCommand(command:DeferredCommand) : void { command.next = this.commands; this.commands = command; @@ -19,13 +19,13 @@ package package_43 override public function run() : void { - for(var command:name_190 = null; this.commands != null; ) + for(var command:DeferredCommand = null; this.commands != null; ) { command = this.commands; this.commands = this.commands.next; command.next = null; command.execute(); - command.method_254(); + command.storeInPool(); } } } diff --git a/src/package_40/name_171.as b/src/?return?/?_-Hr?.as similarity index 67% rename from src/package_40/name_171.as rename to src/?return?/?_-Hr?.as index d73c97a..3de4685 100644 --- a/src/package_40/name_171.as +++ b/src/?return?/?_-Hr?.as @@ -1,21 +1,21 @@ -package package_40 +package §return§ { import flash.utils.ByteArray; - public class name_171 + public class §_-Hr§ { - private var var_102:Object; + private var §_-Bp§:Object; - public function name_171(param1:ByteArray) + public function §_-Hr§(param1:ByteArray) { super(); if(param1 != null) { - this.method_314(param1); + this.§_-Om§(param1); } } - public function method_314(param1:ByteArray) : void + public function §_-Om§(param1:ByteArray) : void { var _loc4_:int = 0; var _loc5_:ByteArray = null; @@ -28,30 +28,30 @@ package package_40 _loc3_[_loc4_] = new FileInfo(param1.readUTF(),param1.readInt()); _loc4_++; } - this.var_102 = {}; + this.§_-Bp§ = {}; _loc4_ = 0; while(_loc4_ < _loc2_) { _loc5_ = new ByteArray(); _loc6_ = _loc3_[_loc4_]; param1.readBytes(_loc5_,0,_loc6_.size); - this.var_102[_loc6_.name] = _loc5_; + this.§_-Bp§[_loc6_.name] = _loc5_; _loc4_++; } } public function get data() : Object { - return this.var_102; + return this.§_-Bp§; } - public function method_315(param1:String) : ByteArray + public function §_-lv§(param1:String) : ByteArray { - if(this.var_102 == null) + if(this.§_-Bp§ == null) { return null; } - return ByteArray(this.var_102[param1]); + return ByteArray(this.§_-Bp§[param1]); } } } diff --git a/src/package_121/name_666.as b/src/?while?/?_-Ph?.as similarity index 62% rename from src/package_121/name_666.as rename to src/?while?/?_-Ph?.as index 6fe0a94..f9ad166 100644 --- a/src/package_121/name_666.as +++ b/src/?while?/?_-Ph?.as @@ -1,106 +1,106 @@ -package package_121 +package §while§ { - import package_109.name_377; - import package_46.Matrix4; - import package_46.name_194; - import package_76.name_235; - import package_92.name_630; - import package_92.name_674; + import §_-1e§.§_-Nh§; + import §_-US§.§_-6h§; + import §_-US§.§_-cR§; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; + import §_-pe§.§_-m3§; - public class name_666 extends class_41 + public class §_-Ph§ extends §_-dj§ { private var epsilon:Number = 0.001; - private var vectorToBox1:name_194 = new name_194(); + private var vectorToBox1:§_-bj§ = new §_-bj§(); - private var axis:name_194 = new name_194(); + private var axis:§_-bj§ = new §_-bj§(); - private var axis10:name_194 = new name_194(); + private var axis10:§_-bj§ = new §_-bj§(); - private var axis11:name_194 = new name_194(); + private var axis11:§_-bj§ = new §_-bj§(); - private var axis12:name_194 = new name_194(); + private var axis12:§_-bj§ = new §_-bj§(); - private var axis20:name_194 = new name_194(); + private var axis20:§_-bj§ = new §_-bj§(); - private var axis21:name_194 = new name_194(); + private var axis21:§_-bj§ = new §_-bj§(); - private var axis22:name_194 = new name_194(); + private var axis22:§_-bj§ = new §_-bj§(); - private var var_675:int; + private var §_-Wt§:int; - private var var_676:Number; + private var §_-hK§:Number; - private var points1:Vector. = new Vector.(8,true); + private var points1:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); - private var points2:Vector. = new Vector.(8,true); + private var points2:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); - private var var_683:Vector. = new Vector.(8,true); + private var §_-2r§:Vector.<§_-cR§> = new Vector.<§_-cR§>(8,true); - private var name_679:int; + private var §_-P3§:int; - public function name_666() + public function §_-Ph§() { super(); for(var i:int = 0; i < 8; i++) { - this.var_683[i] = new name_674(); - this.points1[i] = new name_194(); - this.points2[i] = new name_194(); + this.§_-2r§[i] = new §_-cR§(); + this.points1[i] = new §_-bj§(); + this.points2[i] = new §_-bj§(); } } - override public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + override public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean { - var box1:name_377 = null; - var box2:name_377 = null; + var box1:§_-m3§ = null; + var box2:§_-m3§ = null; if(!this.haveCollision(prim1,prim2)) { return false; } if(prim1.body != null) { - box1 = prim1 as name_377; - box2 = prim2 as name_377; + box1 = prim1 as §_-m3§; + box2 = prim2 as §_-m3§; } else { - box1 = prim2 as name_377; - box2 = prim1 as name_377; + box1 = prim2 as §_-m3§; + box2 = prim1 as §_-m3§; } - if(this.var_675 < 6) + if(this.§_-Wt§ < 6) { - if(!this.method_828(box1,box2,this.vectorToBox1,this.var_675,contact)) + if(!this.§_-NV§(box1,box2,this.vectorToBox1,this.§_-Wt§,contact)) { return false; } } else { - this.var_675 -= 6; - this.method_831(box1,box2,this.vectorToBox1,int(this.var_675 / 3),this.var_675 % 3,contact); + this.§_-Wt§ -= 6; + this.§_-og§(box1,box2,this.vectorToBox1,int(this.§_-Wt§ / 3),this.§_-Wt§ % 3,contact); } contact.body1 = box1.body; contact.body2 = box2.body; return true; } - override public function haveCollision(prim1:name_235, prim2:name_235) : Boolean + override public function haveCollision(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean { - var box1:name_377 = null; - var box2:name_377 = null; + var box1:§_-m3§ = null; + var box2:§_-m3§ = null; var transform1:Matrix4 = null; var transform2:Matrix4 = null; - this.var_676 = 10000000000; + this.§_-hK§ = 10000000000; if(prim1.body != null) { - box1 = prim1 as name_377; - box2 = prim2 as name_377; + box1 = prim1 as §_-m3§; + box2 = prim2 as §_-m3§; } else { - box1 = prim2 as name_377; - box2 = prim1 as name_377; + box1 = prim2 as §_-m3§; + box2 = prim1 as §_-m3§; } transform1 = box1.transform; transform2 = box2.transform; @@ -110,97 +110,97 @@ package package_121 this.axis10.x = transform1.a; this.axis10.y = transform1.e; this.axis10.z = transform1.i; - if(!this.method_826(box1,box2,this.axis10,0,this.vectorToBox1)) + if(!this.§_-mG§(box1,box2,this.axis10,0,this.vectorToBox1)) { return false; } this.axis11.x = transform1.b; this.axis11.y = transform1.f; this.axis11.z = transform1.j; - if(!this.method_826(box1,box2,this.axis11,1,this.vectorToBox1)) + if(!this.§_-mG§(box1,box2,this.axis11,1,this.vectorToBox1)) { return false; } this.axis12.x = transform1.c; this.axis12.y = transform1.g; this.axis12.z = transform1.k; - if(!this.method_826(box1,box2,this.axis12,2,this.vectorToBox1)) + if(!this.§_-mG§(box1,box2,this.axis12,2,this.vectorToBox1)) { return false; } this.axis20.x = transform2.a; this.axis20.y = transform2.e; this.axis20.z = transform2.i; - if(!this.method_826(box1,box2,this.axis20,3,this.vectorToBox1)) + if(!this.§_-mG§(box1,box2,this.axis20,3,this.vectorToBox1)) { return false; } this.axis21.x = transform2.b; this.axis21.y = transform2.f; this.axis21.z = transform2.j; - if(!this.method_826(box1,box2,this.axis21,4,this.vectorToBox1)) + if(!this.§_-mG§(box1,box2,this.axis21,4,this.vectorToBox1)) { return false; } this.axis22.x = transform2.c; this.axis22.y = transform2.g; this.axis22.z = transform2.k; - if(!this.method_826(box1,box2,this.axis22,5,this.vectorToBox1)) + if(!this.§_-mG§(box1,box2,this.axis22,5,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis10,this.axis20,6,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis10,this.axis20,6,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis10,this.axis21,7,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis10,this.axis21,7,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis10,this.axis22,8,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis10,this.axis22,8,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis11,this.axis20,9,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis11,this.axis20,9,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis11,this.axis21,10,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis11,this.axis21,10,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis11,this.axis22,11,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis11,this.axis22,11,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis12,this.axis20,12,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis12,this.axis20,12,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis12,this.axis21,13,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis12,this.axis21,13,this.vectorToBox1)) { return false; } - if(!this.method_825(box1,box2,this.axis12,this.axis22,14,this.vectorToBox1)) + if(!this.§_-kt§(box1,box2,this.axis12,this.axis22,14,this.vectorToBox1)) { return false; } return true; } - private function method_828(box1:name_377, box2:name_377, vectorToBox1:name_194, faceAxisIdx:int, contact:name_630) : Boolean + private function §_-NV§(box1:§_-m3§, box2:§_-m3§, vectorToBox1:§_-bj§, faceAxisIdx:int, contact:§_-6h§) : Boolean { var transform2:Matrix4 = null; - var colAxis:name_194 = null; + var colAxis:§_-bj§ = null; var incidentAxisDot:Number = NaN; var pen:Number = NaN; - var tmpBox:name_377 = null; + var tmpBox:§_-m3§ = null; var dot:Number = NaN; var absDot:Number = NaN; - var v:name_194 = null; - var cp:name_674 = null; - var cpPos:name_194 = null; - var r:name_194 = null; + var v:§_-bj§ = null; + var cp:§_-cR§ = null; + var cpPos:§_-bj§ = null; + var r:§_-bj§ = null; var swapNormal:Boolean = false; if(faceAxisIdx > 2) { @@ -240,18 +240,18 @@ package package_121 axisIdx++; } transform2.getAxis(incidentAxisIdx,this.axis); - method_824(box2.hs,incidentAxisIdx,incidentAxisDot < 0,this.points1); - transform2.method_357(this.points1,this.points2,4); - transform1.method_352(this.points2,this.points1,4); + §_-ho§(box2.hs,incidentAxisIdx,incidentAxisDot < 0,this.points1); + transform2.§_-ZK§(this.points1,this.points2,4); + transform1.§_-iX§(this.points2,this.points1,4); var pnum:int = this.clip(box1.hs,faceAxisIdx); - this.name_679 = 0; + this.§_-P3§ = 0; for(var i:int = 0; i < pnum; ) { v = this.points1[i]; - pen = this.method_830(box1.hs,v,faceAxisIdx,negativeFace); + pen = this.§_-iN§(box1.hs,v,faceAxisIdx,negativeFace); if(pen > -this.epsilon) { - cp = this.var_683[this.name_679++]; + cp = this.§_-2r§[this.§_-P3§++]; cpPos = cp.pos; cpPos.x = transform1.a * v.x + transform1.b * v.y + transform1.c * v.z + transform1.d; cpPos.y = transform1.e * v.x + transform1.f * v.y + transform1.g * v.z + transform1.h; @@ -274,41 +274,41 @@ package package_121 colAxis.y = -colAxis.y; colAxis.z = -colAxis.z; } - if(this.name_679 > 4) + if(this.§_-P3§ > 4) { - this.method_840(); + this.§_-PC§(); } - for(i = 0; i < this.name_679; ) + for(i = 0; i < this.§_-P3§; ) { cp = contact.points[i]; - cp.copyFrom(this.var_683[i]); + cp.copyFrom(this.§_-2r§[i]); i++; } - contact.name_679 = this.name_679; + contact.§_-P3§ = this.§_-P3§; return true; } - private function method_840() : void + private function §_-PC§() : void { var i:int = 0; var minIdx:int = 0; - var cp1:name_674 = null; - var cp2:name_674 = null; + var cp1:§_-cR§ = null; + var cp2:§_-cR§ = null; var minLen:Number = NaN; - var p1:name_194 = null; - var p2:name_194 = null; + var p1:§_-bj§ = null; + var p2:§_-bj§ = null; var ii:int = 0; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var len:Number = NaN; - while(this.name_679 > 4) + while(this.§_-P3§ > 4) { minLen = 10000000000; - p1 = (this.var_683[int(this.name_679 - 1)] as name_674).pos; - for(i = 0; i < this.name_679; i++) + p1 = (this.§_-2r§[int(this.§_-P3§ - 1)] as §_-cR§).pos; + for(i = 0; i < this.§_-P3§; i++) { - p2 = (this.var_683[i] as name_674).pos; + p2 = (this.§_-2r§[i] as §_-cR§).pos; dx = p2.x - p1.x; dy = p2.y - p1.y; dz = p2.z - p1.z; @@ -320,9 +320,9 @@ package package_121 } p1 = p2; } - ii = minIdx == 0 ? this.name_679 - 1 : minIdx - 1; - cp1 = this.var_683[ii]; - cp2 = this.var_683[minIdx]; + ii = minIdx == 0 ? this.§_-P3§ - 1 : minIdx - 1; + cp1 = this.§_-2r§[ii]; + cp2 = this.§_-2r§[minIdx]; p1 = cp1.pos; p2 = cp2.pos; p2.x = 0.5 * (p1.x + p2.x); @@ -331,17 +331,17 @@ package package_121 cp2.penetration = 0.5 * (cp1.penetration + cp2.penetration); if(minIdx > 0) { - for(i = minIdx; i < this.name_679; i++) + for(i = minIdx; i < this.§_-P3§; i++) { - this.var_683[int(i - 1)] = this.var_683[i]; + this.§_-2r§[int(i - 1)] = this.§_-2r§[i]; } - this.var_683[int(this.name_679 - 1)] = cp1; + this.§_-2r§[int(this.§_-P3§ - 1)] = cp1; } - --this.name_679; + --this.§_-P3§; } } - private function method_830(hs:name_194, p:name_194, faceAxisIdx:int, reverse:Boolean) : Number + private function §_-iN§(hs:§_-bj§, p:§_-bj§, faceAxisIdx:int, reverse:Boolean) : Number { switch(faceAxisIdx) { @@ -371,71 +371,71 @@ package package_121 } } - private function clip(hs:name_194, faceAxisIdx:int) : int + private function clip(hs:§_-bj§, faceAxisIdx:int) : int { var pnum:int = 4; switch(faceAxisIdx) { case 0: - pnum = method_819(-hs.z,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_820(hs.z,pnum,this.points2,this.points1,this.epsilon); + pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); break; case 1: - pnum = method_819(-hs.z,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_820(hs.z,pnum,this.points2,this.points1,this.epsilon); + pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + return §_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon); break; case 2: - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + pnum = int(§_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); break; default: return 0; } } - private function method_831(box1:name_377, box2:name_377, vectorToBox1:name_194, axisIdx1:int, axisIdx2:int, contact:name_630) : void + private function §_-og§(box1:§_-m3§, box2:§_-m3§, vectorToBox1:§_-bj§, axisIdx1:int, axisIdx2:int, contact:§_-6h§) : void { var halfLen1:Number = NaN; var halfLen2:Number = NaN; @@ -443,7 +443,7 @@ package package_121 var transform2:Matrix4 = box2.transform; transform1.getAxis(axisIdx1,this.axis10); transform2.getAxis(axisIdx2,this.axis20); - var colAxis:name_194 = contact.normal; + var colAxis:§_-bj§ = contact.normal; colAxis.x = this.axis10.y * this.axis20.z - this.axis10.z * this.axis20.y; colAxis.y = this.axis10.z * this.axis20.x - this.axis10.x * this.axis20.z; colAxis.z = this.axis10.x * this.axis20.y - this.axis10.y * this.axis20.x; @@ -457,16 +457,16 @@ package package_121 colAxis.y = -colAxis.y; colAxis.z = -colAxis.z; } - var tx:Number = box1.hs.x; - var ty:Number = box1.hs.y; - var tz:Number = box1.hs.z; - var x2:Number = box2.hs.x; - var y2:Number = box2.hs.y; - var z2:Number = box2.hs.z; + var tx:Number = Number(box1.hs.x); + var ty:Number = Number(box1.hs.y); + var tz:Number = Number(box1.hs.z); + var x2:Number = Number(box2.hs.x); + var y2:Number = Number(box2.hs.y); + var z2:Number = Number(box2.hs.z); if(axisIdx1 == 0) { tx = 0; - halfLen1 = box1.hs.x; + halfLen1 = Number(box1.hs.x); } else if(colAxis.x * transform1.a + colAxis.y * transform1.e + colAxis.z * transform1.i > 0) { @@ -475,7 +475,7 @@ package package_121 if(axisIdx2 == 0) { x2 = 0; - halfLen2 = box2.hs.x; + halfLen2 = Number(box2.hs.x); } else if(colAxis.x * transform2.a + colAxis.y * transform2.e + colAxis.z * transform2.i < 0) { @@ -484,7 +484,7 @@ package package_121 if(axisIdx1 == 1) { ty = 0; - halfLen1 = box1.hs.y; + halfLen1 = Number(box1.hs.y); } else if(colAxis.x * transform1.b + colAxis.y * transform1.f + colAxis.z * transform1.j > 0) { @@ -493,7 +493,7 @@ package package_121 if(axisIdx2 == 1) { y2 = 0; - halfLen2 = box2.hs.y; + halfLen2 = Number(box2.hs.y); } else if(colAxis.x * transform2.b + colAxis.y * transform2.f + colAxis.z * transform2.j < 0) { @@ -502,7 +502,7 @@ package package_121 if(axisIdx1 == 2) { tz = 0; - halfLen1 = box1.hs.z; + halfLen1 = Number(box1.hs.z); } else if(colAxis.x * transform1.c + colAxis.y * transform1.g + colAxis.z * transform1.k > 0) { @@ -511,7 +511,7 @@ package package_121 if(axisIdx2 == 2) { z2 = 0; - halfLen2 = box2.hs.z; + halfLen2 = Number(box2.hs.z); } else if(colAxis.x * transform2.c + colAxis.y * transform2.g + colAxis.z * transform2.k < 0) { @@ -535,13 +535,13 @@ package package_121 var c2:Number = this.axis20.x * tx + this.axis20.y * ty + this.axis20.z * tz; var t1:Number = (c2 * k - c1) / det; var t2:Number = (c2 - c1 * k) / det; - contact.name_679 = 1; - var cp:name_674 = contact.points[0]; - var cpPos:name_194 = cp.pos; + contact.§_-P3§ = 1; + var cp:§_-cR§ = contact.points[0]; + var cpPos:§_-bj§ = cp.pos; cp.pos.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2); cp.pos.y = 0.5 * (y1 + this.axis10.y * t1 + y2 + this.axis20.y * t2); cp.pos.z = 0.5 * (z1 + this.axis10.z * t1 + z2 + this.axis20.z * t2); - var r:name_194 = cp.r1; + var r:§_-bj§ = cp.r1; r.x = cpPos.x - transform1.d; r.y = cpPos.y - transform1.h; r.z = cpPos.z - transform1.l; @@ -549,25 +549,25 @@ package package_121 r.x = cpPos.x - transform2.d; r.y = cpPos.y - transform2.h; r.z = cpPos.z - transform2.l; - cp.penetration = this.var_676; + cp.penetration = this.§_-hK§; } - private function method_826(box1:name_377, box2:name_377, axis:name_194, axisIndex:int, toBox1:name_194) : Boolean + private function §_-mG§(box1:§_-m3§, box2:§_-m3§, axis:§_-bj§, axisIndex:int, toBox1:§_-bj§) : Boolean { - var overlap:Number = this.method_827(box1,box2,axis,toBox1); + var overlap:Number = this.§true§(box1,box2,axis,toBox1); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.var_676) + if(overlap + this.epsilon < this.§_-hK§) { - this.var_676 = overlap; - this.var_675 = axisIndex; + this.§_-hK§ = overlap; + this.§_-Wt§ = axisIndex; } return true; } - private function method_825(box1:name_377, box2:name_377, axis1:name_194, axis2:name_194, axisIndex:int, toBox1:name_194) : Boolean + private function §_-kt§(box1:§_-m3§, box2:§_-m3§, axis1:§_-bj§, axis2:§_-bj§, axisIndex:int, toBox1:§_-bj§) : Boolean { this.axis.x = axis1.y * axis2.z - axis1.z * axis2.y; this.axis.y = axis1.z * axis2.x - axis1.x * axis2.z; @@ -581,20 +581,20 @@ package package_121 this.axis.x *= k; this.axis.y *= k; this.axis.z *= k; - var overlap:Number = this.method_827(box1,box2,this.axis,toBox1); + var overlap:Number = this.§true§(box1,box2,this.axis,toBox1); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.var_676) + if(overlap + this.epsilon < this.§_-hK§) { - this.var_676 = overlap; - this.var_675 = axisIndex; + this.§_-hK§ = overlap; + this.§_-Wt§ = axisIndex; } return true; } - public function method_827(box1:name_377, box2:name_377, axis:name_194, vectorToBox1:name_194) : Number + public function §true§(box1:§_-m3§, box2:§_-m3§, axis:§_-bj§, vectorToBox1:§_-bj§) : Number { var m:Matrix4 = box1.transform; var d:Number = (m.a * axis.x + m.e * axis.y + m.i * axis.z) * box1.hs.x; @@ -644,11 +644,11 @@ package package_121 } } -import package_46.name_194; +import §_-nl§.§_-bj§; class CollisionPointTmp { - public var pos:name_194 = new name_194(); + public var pos:§_-bj§ = new §_-bj§(); public var penetration:Number; diff --git a/src/package_121/name_668.as b/src/?while?/?_-hu?.as similarity index 62% rename from src/package_121/name_668.as rename to src/?while?/?_-hu?.as index 3de233d..aafa711 100644 --- a/src/package_121/name_668.as +++ b/src/?while?/?_-hu?.as @@ -1,81 +1,81 @@ -package package_121 +package §while§ { - import package_109.name_377; - import package_109.name_378; - import package_46.Matrix4; - import package_46.name_194; - import package_76.name_235; - import package_92.name_630; - import package_92.name_674; + import §_-1e§.§_-Nh§; + import §_-US§.§_-6h§; + import §_-US§.§_-cR§; + import §_-nl§.Matrix4; + import §_-nl§.§_-bj§; + import §_-pe§.§_-Pr§; + import §_-pe§.§_-m3§; - public class name_668 extends class_41 + public class §_-hu§ extends §_-dj§ { public var epsilon:Number = 0.001; - private var var_675:int; + private var §_-Wt§:int; - private var var_676:Number; + private var §_-hK§:Number; - private var toBox:name_194 = new name_194(); + private var toBox:§_-bj§ = new §_-bj§(); - private var axis:name_194 = new name_194(); + private var axis:§_-bj§ = new §_-bj§(); - private var var_682:name_194 = new name_194(); + private var §_-VZ§:§_-bj§ = new §_-bj§(); - private var axis10:name_194 = new name_194(); + private var axis10:§_-bj§ = new §_-bj§(); - private var axis11:name_194 = new name_194(); + private var axis11:§_-bj§ = new §_-bj§(); - private var axis12:name_194 = new name_194(); + private var axis12:§_-bj§ = new §_-bj§(); - private var axis20:name_194 = new name_194(); + private var axis20:§_-bj§ = new §_-bj§(); - private var axis21:name_194 = new name_194(); + private var axis21:§_-bj§ = new §_-bj§(); - private var axis22:name_194 = new name_194(); + private var axis22:§_-bj§ = new §_-bj§(); - private var points1:Vector. = new Vector.(8,true); + private var points1:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); - private var points2:Vector. = new Vector.(8,true); + private var points2:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); - public function name_668() + public function §_-hu§() { super(); for(var i:int = 0; i < 8; i++) { - this.points1[i] = new name_194(); - this.points2[i] = new name_194(); + this.points1[i] = new §_-bj§(); + this.points2[i] = new §_-bj§(); } } - override public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + override public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean { - var box:name_377 = null; + var box:§_-m3§ = null; if(!this.haveCollision(prim1,prim2)) { return false; } - var tri:name_378 = prim1 as name_378; + var tri:§_-Pr§ = prim1 as §_-Pr§; if(tri == null) { - box = name_377(prim1); - tri = name_378(prim2); + box = §_-m3§(prim1); + tri = §_-Pr§(prim2); } else { - box = name_377(prim2); + box = §_-m3§(prim2); } - if(this.var_675 < 4) + if(this.§_-Wt§ < 4) { - if(!this.method_828(box,tri,this.toBox,this.var_675,contact)) + if(!this.§_-NV§(box,tri,this.toBox,this.§_-Wt§,contact)) { return false; } } else { - this.var_675 -= 4; - if(!this.method_831(box,tri,this.toBox,this.var_675 % 3,int(this.var_675 / 3),contact)) + this.§_-Wt§ -= 4; + if(!this.§_-og§(box,tri,this.toBox,this.§_-Wt§ % 3,int(this.§_-Wt§ / 3),contact)) { return false; } @@ -91,53 +91,53 @@ package package_121 return true; } - override public function haveCollision(prim1:name_235, prim2:name_235) : Boolean + override public function haveCollision(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean { - var tri:name_378 = null; - var box:name_377 = null; + var tri:§_-Pr§ = null; + var box:§_-m3§ = null; var triTransform:Matrix4 = null; - var v:name_194 = null; - tri = prim1 as name_378; + var v:§_-bj§ = null; + tri = prim1 as §_-Pr§; if(tri == null) { - box = name_377(prim1); - tri = name_378(prim2); + box = §_-m3§(prim1); + tri = §_-Pr§(prim2); } else { - box = name_377(prim2); + box = §_-m3§(prim2); } var boxTransform:Matrix4 = box.transform; triTransform = tri.transform; this.toBox.x = boxTransform.d - triTransform.d; this.toBox.y = boxTransform.h - triTransform.h; this.toBox.z = boxTransform.l - triTransform.l; - this.var_676 = 1e+308; + this.§_-hK§ = 1e+308; this.axis.x = triTransform.c; this.axis.y = triTransform.g; this.axis.z = triTransform.k; - if(!this.method_826(box,tri,this.axis,0,this.toBox)) + if(!this.§_-mG§(box,tri,this.axis,0,this.toBox)) { return false; } this.axis10.x = boxTransform.a; this.axis10.y = boxTransform.e; this.axis10.z = boxTransform.i; - if(!this.method_826(box,tri,this.axis10,1,this.toBox)) + if(!this.§_-mG§(box,tri,this.axis10,1,this.toBox)) { return false; } this.axis11.x = boxTransform.b; this.axis11.y = boxTransform.f; this.axis11.z = boxTransform.j; - if(!this.method_826(box,tri,this.axis11,2,this.toBox)) + if(!this.§_-mG§(box,tri,this.axis11,2,this.toBox)) { return false; } this.axis12.x = boxTransform.c; this.axis12.y = boxTransform.g; this.axis12.z = boxTransform.k; - if(!this.method_826(box,tri,this.axis12,3,this.toBox)) + if(!this.§_-mG§(box,tri,this.axis12,3,this.toBox)) { return false; } @@ -145,15 +145,15 @@ package package_121 this.axis20.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z; this.axis20.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z; this.axis20.z = triTransform.i * v.x + triTransform.j * v.y + triTransform.k * v.z; - if(!this.method_825(box,tri,this.axis10,this.axis20,4,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis10,this.axis20,4,this.toBox)) { return false; } - if(!this.method_825(box,tri,this.axis11,this.axis20,5,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis11,this.axis20,5,this.toBox)) { return false; } - if(!this.method_825(box,tri,this.axis12,this.axis20,6,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis12,this.axis20,6,this.toBox)) { return false; } @@ -161,15 +161,15 @@ package package_121 this.axis21.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z; this.axis21.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z; this.axis21.z = triTransform.i * v.x + triTransform.j * v.y + triTransform.k * v.z; - if(!this.method_825(box,tri,this.axis10,this.axis21,7,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis10,this.axis21,7,this.toBox)) { return false; } - if(!this.method_825(box,tri,this.axis11,this.axis21,8,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis11,this.axis21,8,this.toBox)) { return false; } - if(!this.method_825(box,tri,this.axis12,this.axis21,9,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis12,this.axis21,9,this.toBox)) { return false; } @@ -177,37 +177,37 @@ package package_121 this.axis22.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z; this.axis22.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z; this.axis22.z = triTransform.i * v.x + triTransform.j * v.y + triTransform.k * v.z; - if(!this.method_825(box,tri,this.axis10,this.axis22,10,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis10,this.axis22,10,this.toBox)) { return false; } - if(!this.method_825(box,tri,this.axis11,this.axis22,11,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis11,this.axis22,11,this.toBox)) { return false; } - if(!this.method_825(box,tri,this.axis12,this.axis22,12,this.toBox)) + if(!this.§_-kt§(box,tri,this.axis12,this.axis22,12,this.toBox)) { return false; } return true; } - private function method_826(box:name_377, tri:name_378, axis:name_194, axisIndex:int, toBox:name_194) : Boolean + private function §_-mG§(box:§_-m3§, tri:§_-Pr§, axis:§_-bj§, axisIndex:int, toBox:§_-bj§) : Boolean { - var overlap:Number = this.method_827(box,tri,axis,toBox); + var overlap:Number = this.§true§(box,tri,axis,toBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.var_676) + if(overlap + this.epsilon < this.§_-hK§) { - this.var_676 = overlap; - this.var_675 = axisIndex; + this.§_-hK§ = overlap; + this.§_-Wt§ = axisIndex; } return true; } - private function method_825(box:name_377, tri:name_378, axis1:name_194, axis2:name_194, axisIndex:int, toBox:name_194) : Boolean + private function §_-kt§(box:§_-m3§, tri:§_-Pr§, axis1:§_-bj§, axis2:§_-bj§, axisIndex:int, toBox:§_-bj§) : Boolean { var k:Number = NaN; this.axis.x = axis1.y * axis2.z - axis1.z * axis2.y; @@ -222,20 +222,20 @@ package package_121 this.axis.x *= k; this.axis.y *= k; this.axis.z *= k; - var overlap:Number = this.method_827(box,tri,this.axis,toBox); + var overlap:Number = this.§true§(box,tri,this.axis,toBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.var_676) + if(overlap + this.epsilon < this.§_-hK§) { - this.var_676 = overlap; - this.var_675 = axisIndex; + this.§_-hK§ = overlap; + this.§_-Wt§ = axisIndex; } return true; } - private function method_827(box:name_377, tri:name_378, axis:name_194, toBox:name_194) : Number + private function §true§(box:§_-m3§, tri:§_-Pr§, axis:§_-bj§, toBox:§_-bj§) : Number { var t:Matrix4 = box.transform; var projection:Number = (t.a * axis.x + t.e * axis.y + t.i * axis.z) * box.hs.x; @@ -294,34 +294,34 @@ package package_121 return projection + max - vectorProjection; } - private function method_828(box:name_377, tri:name_378, toBox:name_194, faceAxisIndex:int, contact:name_630) : Boolean + private function §_-NV§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, faceAxisIndex:int, contact:§_-6h§) : Boolean { if(faceAxisIndex == 0) { - return this.method_837(box,tri,toBox,contact); + return this.§_-hz§(box,tri,toBox,contact); } - return this.method_838(box,tri,toBox,faceAxisIndex,contact); + return this.§_-C-§(box,tri,toBox,faceAxisIndex,contact); } - private function method_837(box:name_377, tri:name_378, toBox:name_194, contact:name_630) : Boolean + private function §_-hz§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, contact:§_-6h§) : Boolean { - var cp:name_674 = null; + var cp:§_-cR§ = null; var dot:Number = NaN; var absDot:Number = NaN; - var v:name_194 = null; - var cpPos:name_194 = null; - var r:name_194 = null; + var v:§_-bj§ = null; + var cpPos:§_-bj§ = null; + var r:§_-bj§ = null; var boxTransform:Matrix4 = box.transform; var triTransform:Matrix4 = tri.transform; - this.var_682.x = triTransform.c; - this.var_682.y = triTransform.g; - this.var_682.z = triTransform.k; - var over:Boolean = toBox.x * this.var_682.x + toBox.y * this.var_682.y + toBox.z * this.var_682.z > 0; + this.§_-VZ§.x = triTransform.c; + this.§_-VZ§.y = triTransform.g; + this.§_-VZ§.z = triTransform.k; + var over:Boolean = toBox.x * this.§_-VZ§.x + toBox.y * this.§_-VZ§.y + toBox.z * this.§_-VZ§.z > 0; if(!over) { - this.var_682.x = -this.var_682.x; - this.var_682.y = -this.var_682.y; - this.var_682.z = -this.var_682.z; + this.§_-VZ§.x = -this.§_-VZ§.x; + this.§_-VZ§.y = -this.§_-VZ§.y; + this.§_-VZ§.z = -this.§_-VZ§.z; } var incFaceAxisIdx:int = 0; var incAxisDot:Number = 0; @@ -329,7 +329,7 @@ package package_121 for(var axisIdx:int = 0; axisIdx < 3; ) { boxTransform.getAxis(axisIdx,this.axis); - dot = this.axis.x * this.var_682.x + this.axis.y * this.var_682.y + this.axis.z * this.var_682.z; + dot = this.axis.x * this.§_-VZ§.x + this.axis.y * this.§_-VZ§.y + this.axis.z * this.§_-VZ§.z; absDot = dot < 0 ? -dot : dot; if(absDot > maxDot) { @@ -340,17 +340,17 @@ package package_121 axisIdx++; } var negativeFace:Boolean = incAxisDot > 0; - method_824(box.hs,incFaceAxisIdx,negativeFace,this.points1); - boxTransform.method_357(this.points1,this.points2,4); - triTransform.method_352(this.points2,this.points1,4); - var pnum:int = this.method_839(tri); - contact.name_679 = 0; + §_-ho§(box.hs,incFaceAxisIdx,negativeFace,this.points1); + boxTransform.§_-ZK§(this.points1,this.points2,4); + triTransform.§_-iX§(this.points2,this.points1,4); + var pnum:int = this.§_-MQ§(tri); + contact.§_-P3§ = 0; for(var i:int = 0; i < pnum; ) { v = this.points2[i]; if(over && v.z < 0 || !over && v.z > 0) { - cp = contact.points[contact.name_679++]; + cp = contact.points[contact.§_-P3§++]; cpPos = cp.pos; cpPos.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z + triTransform.d; cpPos.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z + triTransform.h; @@ -363,34 +363,34 @@ package package_121 r.x = cpPos.x - triTransform.d; r.y = cpPos.y - triTransform.h; r.z = cpPos.z - triTransform.l; - cp.penetration = over ? -v.z : v.z; + cp.penetration = over ? -v.z : Number(v.z); } i++; } - contact.normal.x = this.var_682.x; - contact.normal.y = this.var_682.y; - contact.normal.z = this.var_682.z; + contact.normal.x = this.§_-VZ§.x; + contact.normal.y = this.§_-VZ§.y; + contact.normal.z = this.§_-VZ§.z; return true; } - private function method_838(box:name_377, tri:name_378, toBox:name_194, faceAxisIdx:int, contact:name_630) : Boolean + private function §_-C-§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, faceAxisIdx:int, contact:§_-6h§) : Boolean { var penetration:Number = NaN; - var cp:name_674 = null; - var cpPos:name_194 = null; - var r:name_194 = null; + var cp:§_-cR§ = null; + var cpPos:§_-bj§ = null; + var r:§_-bj§ = null; faceAxisIdx--; var boxTransform:Matrix4 = box.transform; var triTransform:Matrix4 = tri.transform; - boxTransform.getAxis(faceAxisIdx,this.var_682); - var negativeFace:Boolean = toBox.x * this.var_682.x + toBox.y * this.var_682.y + toBox.z * this.var_682.z > 0; + boxTransform.getAxis(faceAxisIdx,this.§_-VZ§); + var negativeFace:Boolean = toBox.x * this.§_-VZ§.x + toBox.y * this.§_-VZ§.y + toBox.z * this.§_-VZ§.z > 0; if(!negativeFace) { - this.var_682.x = -this.var_682.x; - this.var_682.y = -this.var_682.y; - this.var_682.z = -this.var_682.z; + this.§_-VZ§.x = -this.§_-VZ§.x; + this.§_-VZ§.y = -this.§_-VZ§.y; + this.§_-VZ§.z = -this.§_-VZ§.z; } - var v:name_194 = this.points1[0]; + var v:§_-bj§ = this.points1[0]; v.x = tri.v0.x; v.y = tri.v0.y; v.z = tri.v0.z; @@ -402,17 +402,17 @@ package package_121 v.x = tri.v2.x; v.y = tri.v2.y; v.z = tri.v2.z; - triTransform.method_357(this.points1,this.points2,3); - boxTransform.method_352(this.points2,this.points1,3); - var pnum:int = this.method_832(box.hs,faceAxisIdx); - contact.name_679 = 0; + triTransform.§_-ZK§(this.points1,this.points2,3); + boxTransform.§_-iX§(this.points2,this.points1,3); + var pnum:int = this.§_-kk§(box.hs,faceAxisIdx); + contact.§_-P3§ = 0; for(var i:int = 0; i < pnum; ) { v = this.points1[i]; - penetration = this.method_830(box.hs,v,faceAxisIdx,negativeFace); + penetration = this.§_-iN§(box.hs,v,faceAxisIdx,negativeFace); if(penetration > -this.epsilon) { - cp = contact.points[contact.name_679++]; + cp = contact.points[contact.§_-P3§++]; cpPos = cp.pos; cpPos.x = boxTransform.a * v.x + boxTransform.b * v.y + boxTransform.c * v.z + boxTransform.d; cpPos.y = boxTransform.e * v.x + boxTransform.f * v.y + boxTransform.g * v.z + boxTransform.h; @@ -429,13 +429,13 @@ package package_121 } i++; } - contact.normal.x = this.var_682.x; - contact.normal.y = this.var_682.y; - contact.normal.z = this.var_682.z; + contact.normal.x = this.§_-VZ§.x; + contact.normal.y = this.§_-VZ§.y; + contact.normal.z = this.§_-VZ§.z; return true; } - private function method_830(hs:name_194, p:name_194, faceAxisIdx:int, negativeFace:Boolean) : Number + private function §_-iN§(hs:§_-bj§, p:§_-bj§, faceAxisIdx:int, negativeFace:Boolean) : Number { switch(faceAxisIdx) { @@ -465,96 +465,96 @@ package package_121 } } - private function method_832(hs:name_194, faceAxisIdx:int) : int + private function §_-kk§(hs:§_-bj§, faceAxisIdx:int) : int { var pnum:int = 3; switch(faceAxisIdx) { case 0: - pnum = method_819(-hs.z,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_820(hs.z,pnum,this.points2,this.points1,this.epsilon); + pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); break; case 1: - pnum = method_819(-hs.z,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_820(hs.z,pnum,this.points2,this.points1,this.epsilon); + pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + return §_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon); break; case 2: - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + pnum = int(§_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); break; default: return 0; } } - private function method_839(tri:name_378) : int + private function §_-MQ§(tri:§_-Pr§) : int { var vnum:int = 4; - vnum = this.method_836(tri.v0,tri.e0,this.points1,vnum,this.points2); + vnum = this.§_-NG§(tri.v0,tri.e0,this.points1,vnum,this.points2); if(vnum == 0) { return 0; } - vnum = this.method_836(tri.v1,tri.e1,this.points2,vnum,this.points1); + vnum = this.§_-NG§(tri.v1,tri.e1,this.points2,vnum,this.points1); if(vnum == 0) { return 0; } - return this.method_836(tri.v2,tri.e2,this.points1,vnum,this.points2); + return this.§_-NG§(tri.v2,tri.e2,this.points1,vnum,this.points2); } - private function method_836(linePoint:name_194, lineDir:name_194, verticesIn:Vector., vnum:int, verticesOut:Vector.) : int + private function §_-NG§(linePoint:§_-bj§, lineDir:§_-bj§, verticesIn:Vector.<§_-bj§>, vnum:int, verticesOut:Vector.<§_-bj§>) : int { var t:Number = NaN; - var v:name_194 = null; - var v2:name_194 = null; + var v:§_-bj§ = null; + var v2:§_-bj§ = null; var offset2:Number = NaN; var nx:Number = -lineDir.y; - var ny:Number = lineDir.x; + var ny:Number = Number(lineDir.x); var offset:Number = linePoint.x * nx + linePoint.y * ny; - var v1:name_194 = verticesIn[int(vnum - 1)]; + var v1:§_-bj§ = verticesIn[int(vnum - 1)]; var offset1:Number = v1.x * nx + v1.y * ny; var num:int = 0; for(var i:int = 0; i < vnum; i++) @@ -596,7 +596,7 @@ package package_121 return num; } - private function method_831(box:name_377, tri:name_378, toBox:name_194, boxAxisIdx:int, triAxisIdx:int, contact:name_630) : Boolean + private function §_-og§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, boxAxisIdx:int, triAxisIdx:int, contact:§_-6h§) : Boolean { var tmpx1:Number = NaN; var tmpy1:Number = NaN; @@ -609,28 +609,28 @@ package package_121 switch(triAxisIdx) { case 0: - tmpx1 = tri.e0.x; - tmpy1 = tri.e0.y; - tmpz1 = tri.e0.z; - tmpx2 = tri.v0.x; - tmpy2 = tri.v0.y; - tmpz2 = tri.v0.z; + tmpx1 = Number(tri.e0.x); + tmpy1 = Number(tri.e0.y); + tmpz1 = Number(tri.e0.z); + tmpx2 = Number(tri.v0.x); + tmpy2 = Number(tri.v0.y); + tmpz2 = Number(tri.v0.z); break; case 1: - tmpx1 = tri.e1.x; - tmpy1 = tri.e1.y; - tmpz1 = tri.e1.z; - tmpx2 = tri.v1.x; - tmpy2 = tri.v1.y; - tmpz2 = tri.v1.z; + tmpx1 = Number(tri.e1.x); + tmpy1 = Number(tri.e1.y); + tmpz1 = Number(tri.e1.z); + tmpx2 = Number(tri.v1.x); + tmpy2 = Number(tri.v1.y); + tmpz2 = Number(tri.v1.z); break; case 2: - tmpx1 = tri.e2.x; - tmpy1 = tri.e2.y; - tmpz1 = tri.e2.z; - tmpx2 = tri.v2.x; - tmpy2 = tri.v2.y; - tmpz2 = tri.v2.z; + tmpx1 = Number(tri.e2.x); + tmpy1 = Number(tri.e2.y); + tmpz1 = Number(tri.e2.z); + tmpx2 = Number(tri.v2.x); + tmpy2 = Number(tri.v2.y); + tmpz2 = Number(tri.v2.z); } var triTransform:Matrix4 = tri.transform; this.axis20.x = triTransform.a * tmpx1 + triTransform.b * tmpy1 + triTransform.c * tmpz1; @@ -641,7 +641,7 @@ package package_121 var z2:Number = triTransform.i * tmpx2 + triTransform.j * tmpy2 + triTransform.k * tmpz2 + triTransform.l; var boxTransform:Matrix4 = box.transform; boxTransform.getAxis(boxAxisIdx,this.axis10); - var v:name_194 = contact.normal; + var v:§_-bj§ = contact.normal; v.x = this.axis10.y * this.axis20.z - this.axis10.z * this.axis20.y; v.y = this.axis10.z * this.axis20.x - this.axis10.x * this.axis20.z; v.z = this.axis10.x * this.axis20.y - this.axis10.y * this.axis20.x; @@ -655,13 +655,13 @@ package package_121 v.y = -v.y; v.z = -v.z; } - tmpx1 = box.hs.x; - tmpy1 = box.hs.y; - tmpz1 = box.hs.z; + tmpx1 = Number(box.hs.x); + tmpy1 = Number(box.hs.y); + tmpz1 = Number(box.hs.z); if(boxAxisIdx == 0) { tmpx1 = 0; - boxHalfLen = box.hs.x; + boxHalfLen = Number(box.hs.x); } else if(boxTransform.a * v.x + boxTransform.e * v.y + boxTransform.i * v.z > 0) { @@ -670,7 +670,7 @@ package package_121 if(boxAxisIdx == 1) { tmpy1 = 0; - boxHalfLen = box.hs.y; + boxHalfLen = Number(box.hs.y); } else if(boxTransform.b * v.x + boxTransform.f * v.y + boxTransform.j * v.z > 0) { @@ -679,7 +679,7 @@ package package_121 if(boxAxisIdx == 2) { tmpz1 = 0; - boxHalfLen = box.hs.z; + boxHalfLen = Number(box.hs.z); } else if(boxTransform.c * v.x + boxTransform.g * v.y + boxTransform.k * v.z > 0) { @@ -697,14 +697,14 @@ package package_121 var c2:Number = this.axis20.x * vx + this.axis20.y * vy + this.axis20.z * vz; var t1:Number = (c2 * k - c1) / det; var t2:Number = (c2 - c1 * k) / det; - contact.name_679 = 1; - var cp:name_674 = contact.points[0]; - cp.penetration = this.var_676; + contact.§_-P3§ = 1; + var cp:§_-cR§ = contact.points[0]; + cp.penetration = this.§_-hK§; v = cp.pos; v.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2); v.y = 0.5 * (y1 + this.axis10.y * t1 + y2 + this.axis20.y * t2); v.z = 0.5 * (z1 + this.axis10.z * t1 + z2 + this.axis20.z * t2); - var r:name_194 = cp.r1; + var r:§_-bj§ = cp.r1; r.x = v.x - boxTransform.d; r.y = v.y - boxTransform.h; r.z = v.z - boxTransform.l; diff --git a/src/Preloader.as b/src/Preloader.as index 65720df..dca14b2 100644 --- a/src/Preloader.as +++ b/src/Preloader.as @@ -1,44 +1,44 @@ package { + import §_-1z§.§_-b1§; + import §_-1z§.§_-n4§; + import §_-1z§.§_-pi§; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Shape; import flash.display.Sprite; import flash.display3D.Context3D; import flash.events.Event; - import package_28.name_129; - import package_28.name_167; - import package_28.name_93; public class Preloader extends Sprite { - private static const EmbedPreloader:Class = name_166; + private static const EmbedPreloader:Class = §_-Lz§; - private static const EmbedPreloaderA:Class = name_165; + private static const EmbedPreloaderA:Class = §_-9C§; - private static const EmbedProgress:Class = name_164; + private static const EmbedProgress:Class = §_-M9§; private var area:Shape = new Shape(); - private var var_27:Bitmap = new EmbedPreloader(); + private var §_-1q§:Bitmap = new EmbedPreloader(); - private var var_28:Bitmap = new EmbedPreloaderA(); + private var §_-Za§:Bitmap = new EmbedPreloaderA(); private var progress:Bitmap = new EmbedProgress(); private var context:Context3D; - public var maps:Vector.; + public var maps:Vector.<§_-n4§>; - private var var_31:int; + private var §_-dH§:int; private var counter:int; private var baseURL:String; - private var var_30:name_129 = new name_93(new BitmapData(1,1,false,8355711)); + private var §_-m§:§_-pi§ = new §_-b1§(new BitmapData(1,1,false,8355711)); - private var var_29:Number = 0.09803921568627451; + private var §_-UB§:Number = 0.09803921568627451; public function Preloader() { @@ -46,61 +46,61 @@ package addChild(this.area); this.area.alpha = 1; this.progress.alpha = 1; - this.var_27.alpha = 1; - addChild(this.var_27); - addChild(this.var_28); + this.§_-1q§.alpha = 1; + addChild(this.§_-1q§); + addChild(this.§_-Za§); addChild(this.progress); - addEventListener(Event.ADDED_TO_STAGE,this.method_80); - addEventListener(Event.REMOVED_FROM_STAGE,this.method_81); + addEventListener(Event.ADDED_TO_STAGE,this.§_-Id§); + addEventListener(Event.REMOVED_FROM_STAGE,this.§_-99§); this.progress.scaleX = 0.025; } - public function name_69(param1:Number) : void + public function §_-QU§(param1:Number) : void { this.progress.scaleX = param1; if(this.progress.scaleX >= 1) { - this.method_78(); + this.§_-Dq§(); } } - private function method_78() : void + private function §_-Dq§() : void { - addEventListener(Event.ENTER_FRAME,this.method_12); + addEventListener(Event.ENTER_FRAME,this.§_-ba§); } - public function method_82(param1:Number) : void + public function §_-fE§(param1:Number) : void { this.progress.scaleX += param1; if(this.progress.scaleX > 0.5) { - addEventListener(Event.ENTER_FRAME,this.method_79); + addEventListener(Event.ENTER_FRAME,this.§_-MO§); } if(this.progress.scaleX >= 1) { - this.method_78(); + this.§_-Dq§(); } } - private function method_80(param1:Event) : void + private function §_-Id§(param1:Event) : void { - stage.addEventListener(Event.RESIZE,this.method_4); - this.method_4(); + stage.addEventListener(Event.RESIZE,this.§_-7B§); + this.§_-7B§(); } - private function method_81(param1:Event) : void + private function §_-99§(param1:Event) : void { - stage.removeEventListener(Event.RESIZE,this.method_4); + stage.removeEventListener(Event.RESIZE,this.§_-7B§); } - private function method_12(param1:Event) : void + private function §_-ba§(param1:Event) : void { - this.area.alpha -= this.var_29; - this.var_27.alpha -= this.var_29; - this.progress.alpha -= this.var_29; + this.area.alpha -= this.§_-UB§; + this.§_-1q§.alpha -= this.§_-UB§; + this.progress.alpha -= this.§_-UB§; if(this.area.alpha <= 0) { - removeEventListener(Event.ENTER_FRAME,this.method_12); + removeEventListener(Event.ENTER_FRAME,this.§_-ba§); if(parent != null) { parent.removeChild(this); @@ -109,29 +109,29 @@ package } } - private function method_79(param1:Event) : void + private function §_-MO§(param1:Event) : void { - this.var_28.alpha -= this.var_29 * 1.5; - if(this.var_28.alpha <= 0) + this.§_-Za§.alpha -= this.§_-UB§ * 1.5; + if(this.§_-Za§.alpha <= 0) { - removeEventListener(Event.ENTER_FRAME,this.method_79); + removeEventListener(Event.ENTER_FRAME,this.§_-MO§); } } - private function method_4(param1:Event = null) : void + private function §_-7B§(param1:Event = null) : void { this.area.graphics.clear(); - this.var_27.x = Math.round(stage.stageWidth / 2 - this.var_27.width / 2); - this.var_27.y = Math.round(stage.stageHeight / 2 - this.var_27.height / 2) - 30; - this.var_28.x = this.var_27.x; - this.var_28.y = this.var_27.y; - this.progress.x = this.var_27.x + 2; - this.progress.y = this.var_27.y + 221; + this.§_-1q§.x = Math.round(stage.stageWidth / 2 - this.§_-1q§.width / 2); + this.§_-1q§.y = Math.round(stage.stageHeight / 2 - this.§_-1q§.height / 2) - 30; + this.§_-Za§.x = this.§_-1q§.x; + this.§_-Za§.y = this.§_-1q§.y; + this.progress.x = this.§_-1q§.x + 2; + this.progress.y = this.§_-1q§.y + 221; this.area.graphics.beginFill(0); - this.area.graphics.drawRect(0,0,this.var_27.x,stage.stageHeight); - this.area.graphics.drawRect(this.var_27.x,0,this.var_27.width,this.var_27.y); - this.area.graphics.drawRect(this.var_27.x + this.var_27.width,0,stage.stageWidth - this.var_27.width - this.var_27.x,stage.stageHeight); - this.area.graphics.drawRect(this.var_27.x,this.var_27.y + this.var_27.height,this.var_27.width,stage.stageHeight - this.var_27.height - this.var_27.y); + this.area.graphics.drawRect(0,0,this.§_-1q§.x,stage.stageHeight); + this.area.graphics.drawRect(this.§_-1q§.x,0,this.§_-1q§.width,this.§_-1q§.y); + this.area.graphics.drawRect(this.§_-1q§.x + this.§_-1q§.width,0,stage.stageWidth - this.§_-1q§.width - this.§_-1q§.x,stage.stageHeight); + this.area.graphics.drawRect(this.§_-1q§.x,this.§_-1q§.y + this.§_-1q§.height,this.§_-1q§.width,stage.stageHeight - this.§_-1q§.height - this.§_-1q§.y); } } } diff --git a/src/TanksTestingTool.as b/src/TanksTestingTool.as index df6757e..a55b9d4 100644 --- a/src/TanksTestingTool.as +++ b/src/TanksTestingTool.as @@ -1,5 +1,36 @@ package { + import §_-1c§.§_-0F§; + import §_-5U§.§_-Kr§; + import §_-FM§.§_-fl§; + import §_-GD§.§_-6A§; + import §_-I0§.§_-Jv§; + import §_-I0§.§_-VT§; + import §_-KT§.§_-6L§; + import §_-KT§.§_-Ju§; + import §_-KT§.§_-UT§; + import §_-KT§.§_-mN§; + import §_-O5§.§_-c-§; + import §_-RG§.§_-Au§; + import §_-RG§.§_-pE§; + import §_-TX§.§_-R3§; + import §_-Uy§.§_-oP§; + import §_-Vh§.§_-Pt§; + import §_-Vh§.§_-Wn§; + import §_-Vh§.§_-dn§; + import §_-YQ§.§_-A3§; + import §_-YQ§.§_-DN§; + import §_-Yj§.TankMaterial2; + import §_-Yj§.§_-4X§; + import §_-Yj§.§_-as§; + import §_-Yj§.§_-bZ§; + import §_-Yj§.§_-jj§; + import §_-aA§.§_-1O§; + import §_-aA§.§_-a-§; + import §_-az§.§_-AG§; + import §_-cv§.§_-YU§; + import §_-d8§.§_-R3§; + import §_-e6§.§_-1I§; import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Stage3D; @@ -11,52 +42,21 @@ package import flash.events.FullScreenEvent; import flash.events.KeyboardEvent; import flash.ui.Keyboard; - import alternativa.osgi.service.console.variables.ConsoleVarFloat; - import alternativa.osgi.service.console.variables.ConsoleVarInt; - import alternativa.osgi.service.console.variables.ConsoleVarString; - import alternativa.osgi.service.console.variables.ConsoleVar; - import alternativa.tanks.game.GameKernel; - import alternativa.ClientConfigurator; - import package_12.name_15; - import alternativa.tanks.config.Config; - import platform.client.a3d.osgi.Activator; - import alternativa.utils.Properties; - import alternativa.protocol.osgi.ProtocolActivator; - import platform.clients.fp10.libraries.alternativaprotocol.Activator; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.entities.map.VisibleLightMaterial; - import alternativa.tanks.game.entities.map.MapMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial2; - import alternativa.tanks.game.entities.tank.graphics.materials.TreesMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; - import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial; - import package_4.name_11; - import package_4.name_28; - import package_4.name_6; - import alternativa.osgi.OSGi; - import alternativa.osgi.service.console.IConsole; - import alternativa.tanks.InitBattleTask; - import alternativa.tanks.TankTestTask; - import alternativa.startup.LibraryInfo; - import alternativa.startup.ConnectionParameters; - import alternativa.tanks.game.camera.FreeCameraController; - import alternativa.tanks.game.camera.AxisIndicator; [SWF(backgroundColor="#333333",frameRate="100",width="1024",height="768")] public class TanksTestingTool extends Sprite { - public static var testTask:TankTestTask; + public static var testTask:§_-A3§; - private var config:Config; + private var config:§_-YU§; - private var gameKernel:GameKernel; + private var gameKernel:§_-AG§; - private var var_1:name_15; + private var §_-6s§:§_-0F§; private var stage3D:Stage3D; - private var var_2:ClientConfigurator; + private var §_-nZ§:§_-Kr§; private var preloader:Preloader = new Preloader(); @@ -65,174 +65,173 @@ package super(); mouseEnabled = false; mouseChildren = false; - this.initStage(); - this.initClient(); - this.initConsole(); - this.initOptionsSupport(); - VisibleLightMaterial.fadeRadius = 7000; - VisibleLightMaterial.spotAngle = 140 * Math.PI / 180; - VisibleLightMaterial.fallofAngle = 170 * Math.PI / 180; + this.§_-PK§(); + this.§_-l2§(); + this.§_-33§(); + this.§_-5D§(); + §_-Au§.fadeRadius = 7000; + §_-Au§.spotAngle = 140 * Math.PI / 180; + §_-Au§.fallofAngle = 170 * Math.PI / 180; this.stage3D = stage.stage3Ds[0]; - this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.onContextCreate); + this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.§_-9x§); this.stage3D.requestContext3D(); } - private function onContextCreate(param1:Event) : void + private function §_-9x§(param1:Event) : void { - switch(name_28.name_35(this.stage3D.context3D)) + switch(§_-Pt§.§_-OP§(this.stage3D.context3D)) { - case name_6.DXT1: - this.loadConfig("cfg.dxt1.xml"); + case §_-Wn§.DXT1: + this.§_-Bw§("cfg.dxt1.xml"); break; - case name_6.ETC1: - this.loadConfig("cfg.etc1.xml"); + case §_-Wn§.ETC1: + this.§_-Bw§("cfg.etc1.xml"); break; - case name_6.PVRTC: - this.loadConfig("cfg.pvrtc.xml"); - } } - - } - - private function initOptionsSupport() : void - { - new ConsoleVarInt("fog_mode",0,0,3,this.onFogSettingsChange); - new ConsoleVarFloat("fog_near",0,0,1000000,this.onFogSettingsChange); - new ConsoleVarFloat("fog_far",5000,0,1000000,this.onFogSettingsChange); - new ConsoleVarFloat("fog_density",1,0,1,this.onFogSettingsChange); - new ConsoleVarFloat("horizon_offset",0,-1000000,1000000,this.onFogSettingsChange); - new ConsoleVarFloat("horizon_size",5000,0,1000000,this.onFogSettingsChange); - new ConsoleVarString("fog_color","0x0",this.onFogSettingsChange); - var _loc1_:IConsole = IConsole(OSGi.name_8().name_30(IConsole)); - _loc1_.name_45("fog_texture",this.onFogTextureChange); - new ConsoleVarFloat("beam_distance",7000,0,1000000,this.onLightSettingsChange); - new ConsoleVarFloat("beam_spot",140,0,180,this.onLightSettingsChange); - new ConsoleVarFloat("beam_fallof",170,0,180,this.onLightSettingsChange); - new ConsoleVarFloat("beam_fallof",170,0,180,this.onLightSettingsChange); - new ConsoleVarFloat("camera_smoothing",20,0,200,this.onControllerSettingsChange); - MapMaterial.fogMode = MapMaterial.DISABLED; - TreesMaterial.fogMode = TreesMaterial.DISABLED; - TankMaterial.fogMode = TankMaterial.DISABLED; - TankMaterial2.fogMode = TankMaterial.DISABLED; - GiShadowMaterial.fogMode = name_11.DISABLED; - TracksMaterial2.fogMode = name_11.DISABLED; - } - - private function onControllerSettingsChange(param1:ConsoleVarFloat) : void - { - FreeCameraController.smoothing = param1.value; - } - - private function onLightSettingsChange(param1:ConsoleVar) : void - { - switch(param1.name_32()) - { - case "beam_distance": - VisibleLightMaterial.fadeRadius = ConsoleVarFloat(param1).value; - break; - case "beam_spot": - VisibleLightMaterial.spotAngle = ConsoleVarFloat(param1).value * Math.PI / 180; - break; - case "beam_fallof": - VisibleLightMaterial.fallofAngle = ConsoleVarFloat(param1).value * Math.PI / 180; + case §_-Wn§.PVRTC: + this.§_-Bw§("cfg.pvrtc.xml"); } } - private function onFogSettingsChange(param1:ConsoleVar) : void + private function §_-5D§() : void + { + new §_-UT§("fog_mode",0,0,3,this.§_-JG§); + new §_-Ju§("fog_near",0,0,1000000,this.§_-JG§); + new §_-Ju§("fog_far",5000,0,1000000,this.§_-JG§); + new §_-Ju§("fog_density",1,0,1,this.§_-JG§); + new §_-Ju§("horizon_offset",0,-1000000,1000000,this.§_-JG§); + new §_-Ju§("horizon_size",5000,0,1000000,this.§_-JG§); + new §_-mN§("fog_color","0x0",this.§_-JG§); + var _loc1_:§_-6A§ = §_-6A§(§_-oP§.§_-nQ§().§_-N6§(§_-6A§)); + _loc1_.§_-0j§("fog_texture",this.§_-nx§); + new §_-Ju§("beam_distance",7000,0,1000000,this.§_-1B§); + new §_-Ju§("beam_spot",140,0,180,this.§_-1B§); + new §_-Ju§("beam_fallof",170,0,180,this.§_-1B§); + new §_-Ju§("beam_fallof",170,0,180,this.§_-1B§); + new §_-Ju§("camera_smoothing",20,0,200,this.§_-27§); + §_-pE§.fogMode = §_-pE§.DISABLED; + §_-4X§.fogMode = §_-4X§.DISABLED; + §_-as§.fogMode = §_-as§.DISABLED; + TankMaterial2.fogMode = §_-as§.DISABLED; + §_-jj§.fogMode = §_-dn§.DISABLED; + §_-bZ§.fogMode = §_-dn§.DISABLED; + } + + private function §_-27§(param1:§_-Ju§) : void + { + §_-Jv§.smoothing = param1.value; + } + + private function §_-1B§(param1:§_-6L§) : void + { + switch(param1.§_-cC§()) + { + case "beam_distance": + §_-Au§.fadeRadius = §_-Ju§(param1).value; + break; + case "beam_spot": + §_-Au§.spotAngle = §_-Ju§(param1).value * Math.PI / 180; + break; + case "beam_fallof": + §_-Au§.fallofAngle = §_-Ju§(param1).value * Math.PI / 180; + } + } + + private function §_-JG§(param1:§_-6L§) : void { var _loc3_:Number = NaN; var _loc4_:Number = NaN; var _loc5_:Number = NaN; - var _loc6_:RenderSystem = this.gameKernel.name_5(); - switch(param1.name_32()) + var _loc6_:§_-1I§ = this.gameKernel.§_-DZ§(); + switch(param1.§_-cC§()) { case "fog_mode": - _loc6_.name_41(ConsoleVarInt(param1).value); + _loc6_.§_-ev§(§_-UT§(param1).value); break; case "fog_near": - _loc6_.name_47(ConsoleVarFloat(param1).value); + _loc6_.§_-9g§(§_-Ju§(param1).value); break; case "fog_far": - _loc6_.name_48(ConsoleVarFloat(param1).value); + _loc6_.§_-H9§(§_-Ju§(param1).value); break; case "fog_density": - _loc6_.name_49(ConsoleVarFloat(param1).value); + _loc6_.§_-J0§(§_-Ju§(param1).value); break; case "horizon_size": - _loc6_.name_38(ConsoleVarFloat(param1).value); + _loc6_.§_-Jk§(§_-Ju§(param1).value); break; case "horizon_offset": - _loc6_.name_34(ConsoleVarFloat(param1).value); + _loc6_.§_-Dd§(§_-Ju§(param1).value); break; case "fog_color": - _loc6_.name_40(parseInt(ConsoleVarString(param1).value,16)); + _loc6_.§_-5d§(parseInt(§_-mN§(param1).value,16)); } } - private function onFogTextureChange(param1:IConsole, param2:Array) : void + private function §_-nx§(param1:§_-6A§, param2:Array) : void { - this.gameKernel.name_5().name_36(param2.join(" ")); + this.gameKernel.§_-DZ§().§_-FZ§(param2.join(" ")); } - private function initStage() : void + private function §_-PK§() : void { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.quality = StageQuality.LOW; } - private function initClient() : void + private function §_-l2§() : void { - new OSGi(); - this.var_2 = new ClientConfigurator(); - this.var_2.start(this,new Properties(loaderInfo.parameters),new Vector.(),new ConnectionParameters(null,null,null),new Vector.()); - new ProtocolActivator().start(OSGi.name_8()); - new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(OSGi.name_8()); - new platform.client.a3d.osgi.Activator().start(OSGi.name_8()); + new §_-oP§(); + this.§_-nZ§ = new §_-Kr§(); + this.§_-nZ§.start(this,new §_-c-§(loaderInfo.parameters),new Vector.<§_-a-§>(),new §_-1O§(null,null,null),new Vector.()); + new §_-fl§().start(§_-oP§.§_-nQ§()); + new §_-TX§.§_-R3§().start(§_-oP§.§_-nQ§()); + new §_-d8§.§_-R3§().start(§_-oP§.§_-nQ§()); } - private function initConsole() : void + private function §_-33§() : void { - var _loc1_:IConsole = IConsole(OSGi.name_8().name_30(IConsole)); + var _loc1_:§_-6A§ = §_-6A§(§_-oP§.§_-nQ§().§_-N6§(§_-6A§)); _loc1_.width = 100; _loc1_.alpha = 0.8; _loc1_.height = 30; } - private function loadConfig(param1:String) : void + private function §_-Bw§(param1:String) : void { addChild(this.preloader); - this.config = new Config(); - this.config.addEventListener(Event.COMPLETE,this.onConfigLoadingComplete); + this.config = new §_-YU§(); + this.config.addEventListener(Event.COMPLETE,this.§_-JY§); this.config.load(param1,this.preloader); } - private function onConfigLoadingComplete(param1:Event) : void + private function §_-JY§(param1:Event) : void { - this.initGame(); - this.initHUD(); + this.§_-G-§(); + this.§_-lN§(); } - private function initHUD() : void + private function §_-lN§() : void { - this.var_1 = new name_15(); - stage.addChild(this.var_1); - this.var_1.mouseChildren = true; - this.var_1.mouseEnabled = true; - this.var_1.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.onClickFullScreenButton); - this.var_1.addEventListener("CLICK_NEXT_TANK_BUTTON",this.onClickNextTankButton); + this.§_-6s§ = new §_-0F§(); + stage.addChild(this.§_-6s§); + this.§_-6s§.mouseChildren = true; + this.§_-6s§.mouseEnabled = true; + this.§_-6s§.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.§_-GO§); + this.§_-6s§.addEventListener("CLICK_NEXT_TANK_BUTTON",this.§_-gC§); stage.addChild(this.preloader); - stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); - this.gameKernel.name_5().name_27().diagramVerticalMargin = 85; - this.gameKernel.name_5().name_27().diagramHorizontalMargin = 12; - this.onResize(null); + stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); + this.gameKernel.§_-DZ§().§_-GW§().diagramVerticalMargin = 85; + this.gameKernel.§_-DZ§().§_-GW§().diagramHorizontalMargin = 12; + this.§_-7B§(null); } - private function onKeyDown(param1:KeyboardEvent) : void + private function §_-Ze§(param1:KeyboardEvent) : void { var _loc2_:DisplayObject = null; if(param1.keyCode == Keyboard.G) { - _loc2_ = this.gameKernel.name_5().name_39(); + _loc2_ = this.gameKernel.§_-DZ§().§_-G§(); if(_loc2_.parent != null) { _loc2_.parent.removeChild(_loc2_); @@ -244,19 +243,19 @@ package } } - private function onClickFullScreenButton(param1:Event) : void + private function §_-GO§(param1:Event) : void { - stage.displayState = this.var_1.name_31 ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; - stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.onFullScreenChange); + stage.displayState = !!this.§_-6s§.§_-8F§ ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; + stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.§_-Tp§); } - private function onFullScreenChange(param1:Event) : void + private function §_-Tp§(param1:Event) : void { - stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.onFullScreenChange); - this.var_1.name_31 = stage.displayState != StageDisplayState.NORMAL; + stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.§_-Tp§); + this.§_-6s§.§_-8F§ = stage.displayState != StageDisplayState.NORMAL; } - private function onClickNextTankButton(param1:Event) : void + private function §_-gC§(param1:Event) : void { if(testTask != null) { @@ -264,34 +263,34 @@ package } } - private function initGame() : void + private function §_-G-§() : void { - this.gameKernel = new GameKernel(stage,this.config.options); - this.gameKernel.name_5().name_37(this.stage3D); - var _loc1_:InitBattleTask = new InitBattleTask(this.gameKernel,this.config,this,this.preloader); + this.gameKernel = new §_-AG§(stage,this.config.options); + this.gameKernel.§_-DZ§().§_-X4§(this.stage3D); + var _loc1_:§_-DN§ = new §_-DN§(this.gameKernel,this.config,this,this.preloader); this.gameKernel.addTask(_loc1_); - stage.addEventListener(Event.RESIZE,this.onResize); - this.onResize(null); - stage.addEventListener(Event.ENTER_FRAME,this.onEnterFrame); + stage.addEventListener(Event.RESIZE,this.§_-7B§); + this.§_-7B§(null); + stage.addEventListener(Event.ENTER_FRAME,this.§_-ba§); } - private function onEnterFrame(param1:Event) : void + private function §_-ba§(param1:Event) : void { - this.gameKernel.name_51(); + this.gameKernel.§_-Kf§(); } - private function onResize(param1:Event) : void + private function §_-7B§(param1:Event) : void { - var _loc2_:AxisIndicator = null; + var _loc2_:§_-VT§ = null; if(this.gameKernel != null) { - this.gameKernel.name_5().name_46(0,0,stage.stageWidth,stage.stageHeight); - _loc2_ = this.gameKernel.name_5().name_42(); + this.gameKernel.§_-DZ§().§_-3N§(0,0,stage.stageWidth,stage.stageHeight); + _loc2_ = this.gameKernel.§_-DZ§().§_-MG§(); _loc2_.y = stage.stageHeight - _loc2_.size; } - if(this.var_1 != null) + if(this.§_-6s§ != null) { - this.var_1.name_50(stage.stageWidth,stage.stageHeight); + this.§_-6s§.§_-K6§(stage.stageWidth,stage.stageHeight); } } } diff --git a/src/_assets/13_name_165.jpg b/src/_assets/13__-9C.jpg similarity index 100% rename from src/_assets/13_name_165.jpg rename to src/_assets/13__-9C.jpg diff --git a/src/_assets/14_name_164.jpg b/src/_assets/14__-M9.jpg similarity index 100% rename from src/_assets/14_name_164.jpg rename to src/_assets/14__-M9.jpg diff --git a/src/_assets/15_package_12.name_221.png b/src/_assets/15_package_12.name_221.png deleted file mode 100644 index 14da791..0000000 Binary files a/src/_assets/15_package_12.name_221.png and /dev/null differ diff --git a/src/_assets/16_name_166.jpg b/src/_assets/16__-Lz.jpg similarity index 100% rename from src/_assets/16_name_166.jpg rename to src/_assets/16__-Lz.jpg diff --git a/src/_assets/17_package_12.TanksHudDemo_nextTankState1Class.png b/src/_assets/17_package_12.TanksHudDemo_nextTankState1Class.png deleted file mode 100644 index 9844db8..0000000 Binary files a/src/_assets/17_package_12.TanksHudDemo_nextTankState1Class.png and /dev/null differ diff --git a/src/_assets/18_package_12.TanksHudDemo_fullScreenState2Class.png b/src/_assets/18_package_12.TanksHudDemo_fullScreenState2Class.png deleted file mode 100644 index 41a5696..0000000 Binary files a/src/_assets/18_package_12.TanksHudDemo_fullScreenState2Class.png and /dev/null differ diff --git a/src/_assets/19_package_12.name_222.png b/src/_assets/19_package_12.name_222.png deleted file mode 100644 index ea28f0c..0000000 Binary files a/src/_assets/19_package_12.name_222.png and /dev/null differ diff --git a/src/_assets/20_package_12.TanksHudDemo_nextTankState2Class.png b/src/_assets/20_package_12.TanksHudDemo_nextTankState2Class.png deleted file mode 100644 index 45bb021..0000000 Binary files a/src/_assets/20_package_12.TanksHudDemo_nextTankState2Class.png and /dev/null differ diff --git a/src/_assets/21_package_12.TanksHudDemo_fullScreenState1Class.png b/src/_assets/21_package_12.TanksHudDemo_fullScreenState1Class.png deleted file mode 100644 index 2e44a11..0000000 Binary files a/src/_assets/21_package_12.TanksHudDemo_fullScreenState1Class.png and /dev/null differ diff --git a/src/_assets/22_package_12.name_220.png b/src/_assets/22_package_12.name_220.png deleted file mode 100644 index bc0b1d7..0000000 Binary files a/src/_assets/22_package_12.name_220.png and /dev/null differ diff --git a/src/_codec/VectorCodecStringLevel1.as b/src/_codec/VectorCodecStringLevel1.as new file mode 100644 index 0000000..fefb15f --- /dev/null +++ b/src/_codec/VectorCodecStringLevel1.as @@ -0,0 +1,58 @@ +package _codec +{ + 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; + + public class VectorCodecStringLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecStringLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(String,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = String(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_35/VectorCodecStringLevel2.as b/src/_codec/VectorCodecStringLevel2.as similarity index 51% rename from src/package_35/VectorCodecStringLevel2.as rename to src/_codec/VectorCodecStringLevel2.as index 2081a2a..2b37af1 100644 --- a/src/package_35/VectorCodecStringLevel2.as +++ b/src/_codec/VectorCodecStringLevel2.as @@ -1,15 +1,15 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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; - public class VectorCodecStringLevel2 implements name_152 + public class VectorCodecStringLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -19,32 +19,32 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(String,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(String,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = String(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = String(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -52,7 +52,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -63,23 +63,23 @@ package package_35 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_35/VectorCodecStringLevel3.as b/src/_codec/VectorCodecStringLevel3.as similarity index 57% rename from src/package_35/VectorCodecStringLevel3.as rename to src/_codec/VectorCodecStringLevel3.as index f1e3b0e..ac59184 100644 --- a/src/package_35/VectorCodecStringLevel3.as +++ b/src/_codec/VectorCodecStringLevel3.as @@ -1,15 +1,15 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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; - public class VectorCodecStringLevel3 implements name_152 + public class VectorCodecStringLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -19,16 +19,16 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(String,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(String,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -36,25 +36,25 @@ package package_35 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = String(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = String(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -65,7 +65,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -79,37 +79,37 @@ package package_35 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/VectorCodecbyteLevel1.as b/src/_codec/VectorCodecbyteLevel1.as new file mode 100644 index 0000000..089d739 --- /dev/null +++ b/src/_codec/VectorCodecbyteLevel1.as @@ -0,0 +1,59 @@ +package _codec +{ + 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 alternativa.types.Byte; + + public class VectorCodecbyteLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecbyteLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Byte,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = int(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_35/VectorCodecbyteLevel2.as b/src/_codec/VectorCodecbyteLevel2.as similarity index 50% rename from src/package_35/VectorCodecbyteLevel2.as rename to src/_codec/VectorCodecbyteLevel2.as index eb193a8..4372384 100644 --- a/src/package_35/VectorCodecbyteLevel2.as +++ b/src/_codec/VectorCodecbyteLevel2.as @@ -1,16 +1,16 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_33.name_154; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.Byte; - public class VectorCodecbyteLevel2 implements name_152 + public class VectorCodecbyteLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_154,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Byte,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = int(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = int(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_35 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_35/VectorCodecbyteLevel3.as b/src/_codec/VectorCodecbyteLevel3.as similarity index 57% rename from src/package_35/VectorCodecbyteLevel3.as rename to src/_codec/VectorCodecbyteLevel3.as index e22ba56..428e71f 100644 --- a/src/package_35/VectorCodecbyteLevel3.as +++ b/src/_codec/VectorCodecbyteLevel3.as @@ -1,16 +1,16 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_33.name_154; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.Byte; - public class VectorCodecbyteLevel3 implements name_152 + public class VectorCodecbyteLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_154,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Byte,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_35 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = int(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = int(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_35 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/VectorCodecfloatLevel1.as b/src/_codec/VectorCodecfloatLevel1.as new file mode 100644 index 0000000..6ed5804 --- /dev/null +++ b/src/_codec/VectorCodecfloatLevel1.as @@ -0,0 +1,60 @@ +package _codec +{ + 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 alternativa.types.Float; + + public class VectorCodecfloatLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecfloatLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Float,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = Number(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var value:Number = NaN; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_35/VectorCodecfloatLevel2.as b/src/_codec/VectorCodecfloatLevel2.as similarity index 50% rename from src/package_35/VectorCodecfloatLevel2.as rename to src/_codec/VectorCodecfloatLevel2.as index 0a0867f..518f349 100644 --- a/src/package_35/VectorCodecfloatLevel2.as +++ b/src/_codec/VectorCodecfloatLevel2.as @@ -1,16 +1,16 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_33.name_157; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.Float; - public class VectorCodecfloatLevel2 implements name_152 + public class VectorCodecfloatLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_157,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Float,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = Number(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = Number(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_35 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_35/VectorCodecfloatLevel3.as b/src/_codec/VectorCodecfloatLevel3.as similarity index 57% rename from src/package_35/VectorCodecfloatLevel3.as rename to src/_codec/VectorCodecfloatLevel3.as index eda1d54..47d6599 100644 --- a/src/package_35/VectorCodecfloatLevel3.as +++ b/src/_codec/VectorCodecfloatLevel3.as @@ -1,16 +1,16 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_33.name_157; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.Float; - public class VectorCodecfloatLevel3 implements name_152 + public class VectorCodecfloatLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_157,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Float,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_35 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = Number(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = Number(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_35 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/VectorCodecintLevel1.as b/src/_codec/VectorCodecintLevel1.as new file mode 100644 index 0000000..164373e --- /dev/null +++ b/src/_codec/VectorCodecintLevel1.as @@ -0,0 +1,58 @@ +package _codec +{ + 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; + + public class VectorCodecintLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecintLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(int,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = int(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_35/VectorCodecintLevel2.as b/src/_codec/VectorCodecintLevel2.as similarity index 51% rename from src/package_35/VectorCodecintLevel2.as rename to src/_codec/VectorCodecintLevel2.as index 7abc0fd..e87726d 100644 --- a/src/package_35/VectorCodecintLevel2.as +++ b/src/_codec/VectorCodecintLevel2.as @@ -1,15 +1,15 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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; - public class VectorCodecintLevel2 implements name_152 + public class VectorCodecintLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -19,32 +19,32 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(int,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(int,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = int(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = int(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -52,7 +52,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -63,23 +63,23 @@ package package_35 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_35/VectorCodecintLevel3.as b/src/_codec/VectorCodecintLevel3.as similarity index 57% rename from src/package_35/VectorCodecintLevel3.as rename to src/_codec/VectorCodecintLevel3.as index 30b5a40..f42345e 100644 --- a/src/package_35/VectorCodecintLevel3.as +++ b/src/_codec/VectorCodecintLevel3.as @@ -1,15 +1,15 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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; - public class VectorCodecintLevel3 implements name_152 + public class VectorCodecintLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -19,16 +19,16 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(int,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(int,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -36,25 +36,25 @@ package package_35 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = int(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = int(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -65,7 +65,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -79,37 +79,37 @@ package package_35 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/VectorCodeclongLevel1.as b/src/_codec/VectorCodeclongLevel1.as new file mode 100644 index 0000000..df67138 --- /dev/null +++ b/src/_codec/VectorCodeclongLevel1.as @@ -0,0 +1,59 @@ +package _codec +{ + 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 alternativa.types.Long; + + public class VectorCodeclongLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodeclongLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Long,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = Long(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/VectorCodeclongLevel2.as b/src/_codec/VectorCodeclongLevel2.as new file mode 100644 index 0000000..2e2b918 --- /dev/null +++ b/src/_codec/VectorCodeclongLevel2.as @@ -0,0 +1,89 @@ +package _codec +{ + 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 alternativa.types.Long; + + public class VectorCodeclongLevel2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodeclongLevel2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Long,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = Long(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/VectorCodeclongLevel3.as b/src/_codec/VectorCodeclongLevel3.as new file mode 100644 index 0000000..9e57e4a --- /dev/null +++ b/src/_codec/VectorCodeclongLevel3.as @@ -0,0 +1,119 @@ +package _codec +{ + 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 alternativa.types.Long; + + public class VectorCodeclongLevel3 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodeclongLevel3(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Long,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector.> = null; + var i2:int = 0; + var length3:int = 0; + var items3:Vector. = null; + var i3:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.>> = new Vector.>>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.>(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length3 = LengthCodecHelper.decodeLength(protocolBuffer); + items3 = new Vector.(length3,true); + items2[i2] = items3; + for(i3 = 0; i3 < length3; i3++) + { + items3[i3] = Long(this.elementCodec.decode(protocolBuffer)); + } + } + i2++; + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector.> = null; + var length2:int = 0; + var i2:int = 0; + var items3:Vector. = null; + var length3:int = 0; + var i3:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.>> = Vector.>>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + items3 = items2[i1]; + if(items3 != null) + { + protocolBuffer.optionalMap.addBit(false); + length3 = int(items3.length); + LengthCodecHelper.encodeLength(protocolBuffer,length3); + for(i3 = 0; i3 < length3; i3++) + { + this.elementCodec.encode(protocolBuffer,items3[i3]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/VectorCodecshortLevel1.as b/src/_codec/VectorCodecshortLevel1.as new file mode 100644 index 0000000..68f5839 --- /dev/null +++ b/src/_codec/VectorCodecshortLevel1.as @@ -0,0 +1,59 @@ +package _codec +{ + 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 alternativa.types.Short; + + public class VectorCodecshortLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecshortLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Short,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = int(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_35/VectorCodecshortLevel2.as b/src/_codec/VectorCodecshortLevel2.as similarity index 50% rename from src/package_35/VectorCodecshortLevel2.as rename to src/_codec/VectorCodecshortLevel2.as index 9dc2377..1cf3f8e 100644 --- a/src/package_35/VectorCodecshortLevel2.as +++ b/src/_codec/VectorCodecshortLevel2.as @@ -1,16 +1,16 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_33.name_158; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.Short; - public class VectorCodecshortLevel2 implements name_152 + public class VectorCodecshortLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_158,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Short,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = int(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = int(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_35 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_35/VectorCodecshortLevel3.as b/src/_codec/VectorCodecshortLevel3.as similarity index 57% rename from src/package_35/VectorCodecshortLevel3.as rename to src/_codec/VectorCodecshortLevel3.as index df886cb..63aa45a 100644 --- a/src/package_35/VectorCodecshortLevel3.as +++ b/src/_codec/VectorCodecshortLevel3.as @@ -1,16 +1,16 @@ -package package_35 +package _codec { - import package_32.name_148; - import package_33.name_158; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.Short; - public class VectorCodecshortLevel3 implements name_152 + public class VectorCodecshortLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_35 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_158,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Short,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_35 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = int(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = int(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_35 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_35 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/commons/CodecA3DMatrix.as b/src/_codec/commons/CodecA3DMatrix.as new file mode 100644 index 0000000..53eebab --- /dev/null +++ b/src/_codec/commons/CodecA3DMatrix.as @@ -0,0 +1,113 @@ +package _codec.commons +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import commons.A3DMatrix; + + public class CodecA3DMatrix implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Bx§:ICodec; + + private var §_-Qh§:ICodec; + + private var §_-ir§:ICodec; + + private var §_-p§:ICodec; + + private var §_-Kw§:ICodec; + + private var §_-PP§:ICodec; + + private var §_-e7§:ICodec; + + private var §_-QE§:ICodec; + + private var §_-SL§:ICodec; + + private var §for §:ICodec; + + private var §_-Hb§:ICodec; + + private var §_-3B§:ICodec; + + public function CodecA3DMatrix() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Bx§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-Qh§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-ir§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-p§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-Kw§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-PP§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-e7§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-QE§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-SL§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§for § = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-Hb§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-3B§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_a:Number = Number(this.§_-Bx§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","a",value_a); + var value_b:Number = Number(this.§_-Qh§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","b",value_b); + var value_c:Number = Number(this.§_-ir§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","c",value_c); + var value_d:Number = Number(this.§_-p§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","d",value_d); + var value_e:Number = Number(this.§_-Kw§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","e",value_e); + var value_f:Number = Number(this.§_-PP§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","f",value_f); + var value_g:Number = Number(this.§_-e7§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","g",value_g); + var value_h:Number = Number(this.§_-QE§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","h",value_h); + var value_i:Number = Number(this.§_-SL§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","i",value_i); + var value_j:Number = Number(this.§for §.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","j",value_j); + var value_k:Number = Number(this.§_-Hb§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","k",value_k); + var value_l:Number = Number(this.§_-3B§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","l",value_l); + return new A3DMatrix(value_a,value_b,value_c,value_d,value_e,value_f,value_g,value_h,value_i,value_j,value_k,value_l); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DMatrix = A3DMatrix(object); + this.§_-Bx§.encode(protocolBuffer,struct.a); + this.§_-Qh§.encode(protocolBuffer,struct.b); + this.§_-ir§.encode(protocolBuffer,struct.c); + this.§_-p§.encode(protocolBuffer,struct.d); + this.§_-Kw§.encode(protocolBuffer,struct.e); + this.§_-PP§.encode(protocolBuffer,struct.f); + this.§_-e7§.encode(protocolBuffer,struct.g); + this.§_-QE§.encode(protocolBuffer,struct.h); + this.§_-SL§.encode(protocolBuffer,struct.i); + this.§for §.encode(protocolBuffer,struct.j); + this.§_-Hb§.encode(protocolBuffer,struct.k); + this.§_-3B§.encode(protocolBuffer,struct.l); + } + } +} + diff --git a/src/_codec/commons/CodecId.as b/src/_codec/commons/CodecId.as new file mode 100644 index 0000000..2b1b3d0 --- /dev/null +++ b/src/_codec/commons/CodecId.as @@ -0,0 +1,46 @@ +package _codec.commons +{ + 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 commons.Id; + + public class CodecId implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + public function CodecId() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","commons.Id","id",value_id); + return new Id(value_id); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:Id = Id(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + } + } +} + diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel1.as b/src/_codec/commons/VectorCodecA3DMatrixLevel1.as new file mode 100644 index 0000000..11b7f49 --- /dev/null +++ b/src/_codec/commons/VectorCodecA3DMatrixLevel1.as @@ -0,0 +1,59 @@ +package _codec.commons +{ + 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 commons.A3DMatrix; + + public class VectorCodecA3DMatrixLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DMatrixLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DMatrix(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel2.as b/src/_codec/commons/VectorCodecA3DMatrixLevel2.as new file mode 100644 index 0000000..d6401a4 --- /dev/null +++ b/src/_codec/commons/VectorCodecA3DMatrixLevel2.as @@ -0,0 +1,89 @@ +package _codec.commons +{ + 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 commons.A3DMatrix; + + public class VectorCodecA3DMatrixLevel2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DMatrixLevel2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = A3DMatrix(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel3.as b/src/_codec/commons/VectorCodecA3DMatrixLevel3.as new file mode 100644 index 0000000..3e38880 --- /dev/null +++ b/src/_codec/commons/VectorCodecA3DMatrixLevel3.as @@ -0,0 +1,119 @@ +package _codec.commons +{ + 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 commons.A3DMatrix; + + public class VectorCodecA3DMatrixLevel3 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DMatrixLevel3(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector.> = null; + var i2:int = 0; + var length3:int = 0; + var items3:Vector. = null; + var i3:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.>> = new Vector.>>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.>(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length3 = LengthCodecHelper.decodeLength(protocolBuffer); + items3 = new Vector.(length3,true); + items2[i2] = items3; + for(i3 = 0; i3 < length3; i3++) + { + items3[i3] = A3DMatrix(this.elementCodec.decode(protocolBuffer)); + } + } + i2++; + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector.> = null; + var length2:int = 0; + var i2:int = 0; + var items3:Vector. = null; + var length3:int = 0; + var i3:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.>> = Vector.>>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + items3 = items2[i1]; + if(items3 != null) + { + protocolBuffer.optionalMap.addBit(false); + length3 = int(items3.length); + LengthCodecHelper.encodeLength(protocolBuffer,length3); + for(i3 = 0; i3 < length3; i3++) + { + this.elementCodec.encode(protocolBuffer,items3[i3]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/commons/VectorCodecIdLevel1.as b/src/_codec/commons/VectorCodecIdLevel1.as new file mode 100644 index 0000000..c98389a --- /dev/null +++ b/src/_codec/commons/VectorCodecIdLevel1.as @@ -0,0 +1,59 @@ +package _codec.commons +{ + 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 commons.Id; + + public class VectorCodecIdLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecIdLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Id,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = Id(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/commons/VectorCodecIdLevel2.as b/src/_codec/commons/VectorCodecIdLevel2.as new file mode 100644 index 0000000..732c699 --- /dev/null +++ b/src/_codec/commons/VectorCodecIdLevel2.as @@ -0,0 +1,89 @@ +package _codec.commons +{ + 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 commons.Id; + + public class VectorCodecIdLevel2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecIdLevel2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Id,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = Id(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/commons/VectorCodecIdLevel3.as b/src/_codec/commons/VectorCodecIdLevel3.as new file mode 100644 index 0000000..8a5f3dc --- /dev/null +++ b/src/_codec/commons/VectorCodecIdLevel3.as @@ -0,0 +1,119 @@ +package _codec.commons +{ + 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 commons.Id; + + public class VectorCodecIdLevel3 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecIdLevel3(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(Id,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector.> = null; + var i2:int = 0; + var length3:int = 0; + var items3:Vector. = null; + var i3:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.>> = new Vector.>>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.>(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length3 = LengthCodecHelper.decodeLength(protocolBuffer); + items3 = new Vector.(length3,true); + items2[i2] = items3; + for(i3 = 0; i3 < length3; i3++) + { + items3[i3] = Id(this.elementCodec.decode(protocolBuffer)); + } + } + i2++; + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector.> = null; + var length2:int = 0; + var i2:int = 0; + var items3:Vector. = null; + var length3:int = 0; + var i3:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.>> = Vector.>>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + items3 = items2[i1]; + if(items3 != null) + { + protocolBuffer.optionalMap.addBit(false); + length3 = int(items3.length); + LengthCodecHelper.encodeLength(protocolBuffer,length3); + for(i3 = 0; i3 < length3; i3++) + { + this.elementCodec.encode(protocolBuffer,items3[i3]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/unsigned/VectorCodecintLevel1.as b/src/_codec/unsigned/VectorCodecintLevel1.as new file mode 100644 index 0000000..a5af3e7 --- /dev/null +++ b/src/_codec/unsigned/VectorCodecintLevel1.as @@ -0,0 +1,59 @@ +package _codec.unsigned +{ + 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 alternativa.types.UShort; + + public class VectorCodecintLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecintLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(UShort,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = uint(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_37/VectorCodecintLevel2.as b/src/_codec/unsigned/VectorCodecintLevel2.as similarity index 50% rename from src/package_37/VectorCodecintLevel2.as rename to src/_codec/unsigned/VectorCodecintLevel2.as index ef089f3..424c269 100644 --- a/src/package_37/VectorCodecintLevel2.as +++ b/src/_codec/unsigned/VectorCodecintLevel2.as @@ -1,16 +1,16 @@ -package package_37 +package _codec.unsigned { - import package_32.name_148; - import package_33.name_156; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.UShort; - public class VectorCodecintLevel2 implements name_152 + public class VectorCodecintLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_37 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_156,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(UShort,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = uint(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = uint(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_37 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_37 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_37/VectorCodecintLevel3.as b/src/_codec/unsigned/VectorCodecintLevel3.as similarity index 57% rename from src/package_37/VectorCodecintLevel3.as rename to src/_codec/unsigned/VectorCodecintLevel3.as index e5f4237..5935055 100644 --- a/src/package_37/VectorCodecintLevel3.as +++ b/src/_codec/unsigned/VectorCodecintLevel3.as @@ -1,16 +1,16 @@ -package package_37 +package _codec.unsigned { - import package_32.name_148; - import package_33.name_156; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.UShort; - public class VectorCodecintLevel3 implements name_152 + public class VectorCodecintLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_37 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_156,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(UShort,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_37 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = uint(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = uint(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_37 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_37 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/unsigned/VectorCodeclongLevel1.as b/src/_codec/unsigned/VectorCodeclongLevel1.as new file mode 100644 index 0000000..694a3be --- /dev/null +++ b/src/_codec/unsigned/VectorCodeclongLevel1.as @@ -0,0 +1,58 @@ +package _codec.unsigned +{ + 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; + + public class VectorCodeclongLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodeclongLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(uint,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = uint(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_37/VectorCodeclongLevel2.as b/src/_codec/unsigned/VectorCodeclongLevel2.as similarity index 51% rename from src/package_37/VectorCodeclongLevel2.as rename to src/_codec/unsigned/VectorCodeclongLevel2.as index 6d0426e..2e7034b 100644 --- a/src/package_37/VectorCodeclongLevel2.as +++ b/src/_codec/unsigned/VectorCodeclongLevel2.as @@ -1,15 +1,15 @@ -package package_37 +package _codec.unsigned { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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; - public class VectorCodeclongLevel2 implements name_152 + public class VectorCodeclongLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -19,32 +19,32 @@ package package_37 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(uint,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(uint,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = uint(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = uint(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -52,7 +52,7 @@ package package_37 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -63,23 +63,23 @@ package package_37 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_37/VectorCodeclongLevel3.as b/src/_codec/unsigned/VectorCodeclongLevel3.as similarity index 57% rename from src/package_37/VectorCodeclongLevel3.as rename to src/_codec/unsigned/VectorCodeclongLevel3.as index 955b1b9..245d12f 100644 --- a/src/package_37/VectorCodeclongLevel3.as +++ b/src/_codec/unsigned/VectorCodeclongLevel3.as @@ -1,15 +1,15 @@ -package package_37 +package _codec.unsigned { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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; - public class VectorCodeclongLevel3 implements name_152 + public class VectorCodeclongLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -19,16 +19,16 @@ package package_37 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(uint,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(uint,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -36,25 +36,25 @@ package package_37 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = uint(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = uint(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -65,7 +65,7 @@ package package_37 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -79,37 +79,37 @@ package package_37 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/unsigned/VectorCodecshortLevel1.as b/src/_codec/unsigned/VectorCodecshortLevel1.as new file mode 100644 index 0000000..54e2907 --- /dev/null +++ b/src/_codec/unsigned/VectorCodecshortLevel1.as @@ -0,0 +1,59 @@ +package _codec.unsigned +{ + 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 alternativa.types.UByte; + + public class VectorCodecshortLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecshortLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(UByte,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = uint(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_37/VectorCodecshortLevel2.as b/src/_codec/unsigned/VectorCodecshortLevel2.as similarity index 50% rename from src/package_37/VectorCodecshortLevel2.as rename to src/_codec/unsigned/VectorCodecshortLevel2.as index f7a9ebd..d06de36 100644 --- a/src/package_37/VectorCodecshortLevel2.as +++ b/src/_codec/unsigned/VectorCodecshortLevel2.as @@ -1,16 +1,16 @@ -package package_37 +package _codec.unsigned { - import package_32.name_148; - import package_33.name_153; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.UByte; - public class VectorCodecshortLevel2 implements name_152 + public class VectorCodecshortLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_37 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_153,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(UByte,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = uint(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = uint(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_37 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_37 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_37/VectorCodecshortLevel3.as b/src/_codec/unsigned/VectorCodecshortLevel3.as similarity index 57% rename from src/package_37/VectorCodecshortLevel3.as rename to src/_codec/unsigned/VectorCodecshortLevel3.as index 0552a31..fcec47b 100644 --- a/src/package_37/VectorCodecshortLevel3.as +++ b/src/_codec/unsigned/VectorCodecshortLevel3.as @@ -1,16 +1,16 @@ -package package_37 +package _codec.unsigned { - import package_32.name_148; - import package_33.name_153; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; + 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 alternativa.types.UByte; - public class VectorCodecshortLevel3 implements name_152 + public class VectorCodecshortLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_37 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(name_153,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(UByte,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_37 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = uint(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = uint(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_37 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_37 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/CodecA3D.as b/src/_codec/versions/version1/a3d/CodecA3D.as new file mode 100644 index 0000000..cda93e3 --- /dev/null +++ b/src/_codec/versions/version1/a3d/CodecA3D.as @@ -0,0 +1,83 @@ +package _codec.versions.version1.a3d +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import versions.version1.a3d.A3D; + import versions.version1.a3d.geometry.A3DGeometry; + import versions.version1.a3d.materials.A3DImage; + import versions.version1.a3d.materials.A3DMap; + import versions.version1.a3d.materials.A3DMaterial; + import versions.version1.a3d.objects.A3DBox; + import versions.version1.a3d.objects.A3DObject; + + public class CodecA3D implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-EA§:ICodec; + + private var §_-PA§:ICodec; + + private var §_-Sd§:ICodec; + + private var §_-dB§:ICodec; + + private var §_-77§:ICodec; + + private var §_-1x§:ICodec; + + public function CodecA3D() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-EA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1)); + this.§_-PA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1)); + this.§_-Sd§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1)); + this.§_-dB§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1)); + this.§_-77§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1)); + this.§_-1x§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boxes:Vector. = this.§_-EA§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","boxes",value_boxes); + var value_geometries:Vector. = this.§_-PA§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","geometries",value_geometries); + var value_images:Vector. = this.§_-Sd§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","images",value_images); + var value_maps:Vector. = this.§_-dB§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","maps",value_maps); + var value_materials:Vector. = this.§_-77§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","materials",value_materials); + var value_objects:Vector. = this.§_-1x§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","objects",value_objects); + return new A3D(value_boxes,value_geometries,value_images,value_maps,value_materials,value_objects); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D = A3D(object); + this.§_-EA§.encode(protocolBuffer,struct.boxes); + this.§_-PA§.encode(protocolBuffer,struct.geometries); + this.§_-Sd§.encode(protocolBuffer,struct.images); + this.§_-dB§.encode(protocolBuffer,struct.maps); + this.§_-77§.encode(protocolBuffer,struct.materials); + this.§_-1x§.encode(protocolBuffer,struct.objects); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as new file mode 100644 index 0000000..22781cf --- /dev/null +++ b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d +{ + 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 versions.version1.a3d.A3D; + + public class VectorCodecA3DLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as new file mode 100644 index 0000000..fff9b20 --- /dev/null +++ b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as @@ -0,0 +1,89 @@ +package _codec.versions.version1.a3d +{ + 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 versions.version1.a3d.A3D; + + public class VectorCodecA3DLevel2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DLevel2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = A3D(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as new file mode 100644 index 0000000..2971925 --- /dev/null +++ b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as @@ -0,0 +1,119 @@ +package _codec.versions.version1.a3d +{ + 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 versions.version1.a3d.A3D; + + public class VectorCodecA3DLevel3 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DLevel3(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector.> = null; + var i2:int = 0; + var length3:int = 0; + var items3:Vector. = null; + var i3:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.>> = new Vector.>>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.>(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length3 = LengthCodecHelper.decodeLength(protocolBuffer); + items3 = new Vector.(length3,true); + items2[i2] = items3; + for(i3 = 0; i3 < length3; i3++) + { + items3[i3] = A3D(this.elementCodec.decode(protocolBuffer)); + } + } + i2++; + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector.> = null; + var length2:int = 0; + var i2:int = 0; + var items3:Vector. = null; + var length3:int = 0; + var i3:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.>> = Vector.>>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + items3 = items2[i1]; + if(items3 != null) + { + protocolBuffer.optionalMap.addBit(false); + length3 = int(items3.length); + LengthCodecHelper.encodeLength(protocolBuffer,length3); + for(i3 = 0; i3 < length3; i3++) + { + this.elementCodec.encode(protocolBuffer,items3[i3]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as new file mode 100644 index 0000000..827192f --- /dev/null +++ b/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as @@ -0,0 +1,62 @@ +package _codec.versions.version1.a3d.geometry +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import commons.Id; + import versions.version1.a3d.geometry.A3DGeometry; + import versions.version1.a3d.geometry.A3DIndexBuffer; + import versions.version1.a3d.geometry.A3DVertexBuffer; + + public class CodecA3DGeometry implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + private var §_-XF§:ICodec; + + private var §_-U9§:ICodec; + + public function CodecA3DGeometry() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-XF§ = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true)); + this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","id",value_id); + var value_indexBuffer:A3DIndexBuffer = this.§_-XF§.decode(protocolBuffer) as A3DIndexBuffer; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","indexBuffer",value_indexBuffer); + var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","vertexBuffers",value_vertexBuffers); + return new A3DGeometry(value_id,value_indexBuffer,value_vertexBuffers); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DGeometry = A3DGeometry(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-XF§.encode(protocolBuffer,struct.indexBuffer); + this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as new file mode 100644 index 0000000..bd6b08a --- /dev/null +++ b/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as @@ -0,0 +1,53 @@ +package _codec.versions.version1.a3d.geometry +{ + 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 flash.utils.ByteArray; + import versions.version1.a3d.geometry.A3DIndexBuffer; + + public class CodecA3DIndexBuffer implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-GN§:ICodec; + + private var §_-mz§:ICodec; + + public function CodecA3DIndexBuffer() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); + this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","byteBuffer",value_byteBuffer); + var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","indexCount",value_indexCount); + return new A3DIndexBuffer(value_byteBuffer,value_indexCount); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DIndexBuffer = A3DIndexBuffer(object); + this.§_-GN§.encode(protocolBuffer,struct.byteBuffer); + this.§_-mz§.encode(protocolBuffer,struct.indexCount); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as new file mode 100644 index 0000000..1c24a2a --- /dev/null +++ b/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as @@ -0,0 +1,62 @@ +package _codec.versions.version1.a3d.geometry +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Byte; + import alternativa.types.UShort; + import flash.utils.ByteArray; + import versions.version1.a3d.geometry.A3DVertexBuffer; + + public class CodecA3DVertexBuffer implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Lj§:ICodec; + + private var §_-GN§:ICodec; + + private var §_-hc§:ICodec; + + public function CodecA3DVertexBuffer() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Lj§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1)); + this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); + this.§_-hc§ = protocol.getCodec(new TypeCodecInfo(UShort,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_attributes:Vector. = this.§_-Lj§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","attributes",value_attributes); + var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","byteBuffer",value_byteBuffer); + var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","vertexCount",value_vertexCount); + return new A3DVertexBuffer(value_attributes,value_byteBuffer,value_vertexCount); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DVertexBuffer = A3DVertexBuffer(object); + this.§_-Lj§.encode(protocolBuffer,struct.attributes); + this.§_-GN§.encode(protocolBuffer,struct.byteBuffer); + this.§_-hc§.encode(protocolBuffer,struct.vertexCount); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as new file mode 100644 index 0000000..f83b135 --- /dev/null +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.geometry +{ + 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 versions.version1.a3d.geometry.A3DGeometry; + + public class VectorCodecA3DGeometryLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DGeometryLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DGeometry,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DGeometry(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_62/VectorCodecA3DGeometryLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as similarity index 50% rename from src/package_62/VectorCodecA3DGeometryLevel2.as rename to src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as index 996ff75..d5b50c2 100644 --- a/src/package_62/VectorCodecA3DGeometryLevel2.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as @@ -1,16 +1,16 @@ -package package_62 +package _codec.versions.version1.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DGeometry; + 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 versions.version1.a3d.geometry.A3DGeometry; - public class VectorCodecA3DGeometryLevel2 implements name_152 + public class VectorCodecA3DGeometryLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_62 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DGeometry,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DGeometry,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DGeometry(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DGeometry(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_62 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_62 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_62/VectorCodecA3DGeometryLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as similarity index 58% rename from src/package_62/VectorCodecA3DGeometryLevel3.as rename to src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as index 9c783f1..6e1f5ce 100644 --- a/src/package_62/VectorCodecA3DGeometryLevel3.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as @@ -1,16 +1,16 @@ -package package_62 +package _codec.versions.version1.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DGeometry; + 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 versions.version1.a3d.geometry.A3DGeometry; - public class VectorCodecA3DGeometryLevel3 implements name_152 + public class VectorCodecA3DGeometryLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_62 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DGeometry,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DGeometry,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_62 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DGeometry(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DGeometry(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_62 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_62 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as new file mode 100644 index 0000000..506c591 --- /dev/null +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.geometry +{ + 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 versions.version1.a3d.geometry.A3DIndexBuffer; + + public class VectorCodecA3DIndexBufferLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DIndexBufferLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DIndexBuffer(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_62/VectorCodecA3DIndexBufferLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as similarity index 52% rename from src/package_62/VectorCodecA3DIndexBufferLevel2.as rename to src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as index fd32641..c398523 100644 --- a/src/package_62/VectorCodecA3DIndexBufferLevel2.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as @@ -1,16 +1,16 @@ -package package_62 +package _codec.versions.version1.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DIndexBuffer; + 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 versions.version1.a3d.geometry.A3DIndexBuffer; - public class VectorCodecA3DIndexBufferLevel2 implements name_152 + public class VectorCodecA3DIndexBufferLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_62 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DIndexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DIndexBuffer(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DIndexBuffer(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_62 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_62 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_62/VectorCodecA3DIndexBufferLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as similarity index 58% rename from src/package_62/VectorCodecA3DIndexBufferLevel3.as rename to src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as index 82aa9d7..6e608ed 100644 --- a/src/package_62/VectorCodecA3DIndexBufferLevel3.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as @@ -1,16 +1,16 @@ -package package_62 +package _codec.versions.version1.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DIndexBuffer; + 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 versions.version1.a3d.geometry.A3DIndexBuffer; - public class VectorCodecA3DIndexBufferLevel3 implements name_152 + public class VectorCodecA3DIndexBufferLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_62 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DIndexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_62 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DIndexBuffer(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DIndexBuffer(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_62 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_62 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as new file mode 100644 index 0000000..30461aa --- /dev/null +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.geometry +{ + 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 versions.version1.a3d.geometry.A3DVertexBuffer; + + public class VectorCodecA3DVertexBufferLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DVertexBufferLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DVertexBuffer,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DVertexBuffer(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_62/VectorCodecA3DVertexBufferLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as similarity index 52% rename from src/package_62/VectorCodecA3DVertexBufferLevel2.as rename to src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as index 4015cb7..7766414 100644 --- a/src/package_62/VectorCodecA3DVertexBufferLevel2.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as @@ -1,16 +1,16 @@ -package package_62 +package _codec.versions.version1.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DVertexBuffer; + 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 versions.version1.a3d.geometry.A3DVertexBuffer; - public class VectorCodecA3DVertexBufferLevel2 implements name_152 + public class VectorCodecA3DVertexBufferLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_62 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DVertexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DVertexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DVertexBuffer(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DVertexBuffer(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_62 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_62 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_62/VectorCodecA3DVertexBufferLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as similarity index 58% rename from src/package_62/VectorCodecA3DVertexBufferLevel3.as rename to src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as index 0fcd620..b3d2d96 100644 --- a/src/package_62/VectorCodecA3DVertexBufferLevel3.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as @@ -1,16 +1,16 @@ -package package_62 +package _codec.versions.version1.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DVertexBuffer; + 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 versions.version1.a3d.geometry.A3DVertexBuffer; - public class VectorCodecA3DVertexBufferLevel3 implements name_152 + public class VectorCodecA3DVertexBufferLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_62 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DVertexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DVertexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_62 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DVertexBuffer(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DVertexBuffer(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_62 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_62 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/id/CodecParentId.as b/src/_codec/versions/version1/a3d/id/CodecParentId.as new file mode 100644 index 0000000..aab8a9e --- /dev/null +++ b/src/_codec/versions/version1/a3d/id/CodecParentId.as @@ -0,0 +1,46 @@ +package _codec.versions.version1.a3d.id +{ + 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 versions.version1.a3d.id.ParentId; + + public class CodecParentId implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + public function CodecParentId() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.id.ParentId","id",value_id); + return new ParentId(value_id); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:ParentId = ParentId(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as new file mode 100644 index 0000000..d38c018 --- /dev/null +++ b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.id +{ + 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 versions.version1.a3d.id.ParentId; + + public class VectorCodecParentIdLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecParentIdLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(ParentId,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = ParentId(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as new file mode 100644 index 0000000..6f886a0 --- /dev/null +++ b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as @@ -0,0 +1,89 @@ +package _codec.versions.version1.a3d.id +{ + 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 versions.version1.a3d.id.ParentId; + + public class VectorCodecParentIdLevel2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecParentIdLevel2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(ParentId,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = ParentId(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as new file mode 100644 index 0000000..1b3f917 --- /dev/null +++ b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as @@ -0,0 +1,119 @@ +package _codec.versions.version1.a3d.id +{ + 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 versions.version1.a3d.id.ParentId; + + public class VectorCodecParentIdLevel3 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecParentIdLevel3(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(ParentId,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector.> = null; + var i2:int = 0; + var length3:int = 0; + var items3:Vector. = null; + var i3:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.>> = new Vector.>>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.>(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length3 = LengthCodecHelper.decodeLength(protocolBuffer); + items3 = new Vector.(length3,true); + items2[i2] = items3; + for(i3 = 0; i3 < length3; i3++) + { + items3[i3] = ParentId(this.elementCodec.decode(protocolBuffer)); + } + } + i2++; + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector.> = null; + var length2:int = 0; + var i2:int = 0; + var items3:Vector. = null; + var length3:int = 0; + var i3:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.>> = Vector.>>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + items3 = items2[i1]; + if(items3 != null) + { + protocolBuffer.optionalMap.addBit(false); + length3 = int(items3.length); + LengthCodecHelper.encodeLength(protocolBuffer,length3); + for(i3 = 0; i3 < length3; i3++) + { + this.elementCodec.encode(protocolBuffer,items3[i3]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as b/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as new file mode 100644 index 0000000..b6145cb --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as @@ -0,0 +1,53 @@ +package _codec.versions.version1.a3d.materials +{ + 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 commons.Id; + import versions.version1.a3d.materials.A3DImage; + + public class CodecA3DImage implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + private var §_-aV§:ICodec; + + public function CodecA3DImage() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","id",value_id); + var value_url:String = this.§_-aV§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","url",value_url); + return new A3DImage(value_id,value_url); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DImage = A3DImage(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-aV§.encode(protocolBuffer,struct.url); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as new file mode 100644 index 0000000..6f732cc --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as @@ -0,0 +1,85 @@ +package _codec.versions.version1.a3d.materials +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.UShort; + import commons.Id; + import versions.version1.a3d.materials.A3DMap; + + public class CodecA3DMap implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-mC§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-2N§:ICodec; + + private var §_-K5§:ICodec; + + private var §_-Q5§:ICodec; + + private var §_-WH§:ICodec; + + private var §_-kh§:ICodec; + + public function CodecA3DMap() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-K5§ = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.§_-Q5§ = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.§_-WH§ = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.§_-kh§ = protocol.getCodec(new TypeCodecInfo(Float,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","channel",value_channel); + var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","id",value_id); + var value_imageId:Id = this.§_-2N§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","imageId",value_imageId); + var value_uOffset:Number = Number(this.§_-K5§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uOffset",value_uOffset); + var value_uScale:Number = Number(this.§_-Q5§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uScale",value_uScale); + var value_vOffset:Number = Number(this.§_-WH§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vOffset",value_vOffset); + var value_vScale:Number = Number(this.§_-kh§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vScale",value_vScale); + return new A3DMap(value_channel,value_id,value_imageId,value_uOffset,value_uScale,value_vOffset,value_vScale); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DMap = A3DMap(object); + this.§_-mC§.encode(protocolBuffer,struct.channel); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-2N§.encode(protocolBuffer,struct.imageId); + this.§_-K5§.encode(protocolBuffer,struct.uOffset); + this.§_-Q5§.encode(protocolBuffer,struct.uScale); + this.§_-WH§.encode(protocolBuffer,struct.vOffset); + this.§_-kh§.encode(protocolBuffer,struct.vScale); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as new file mode 100644 index 0000000..3218136 --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as @@ -0,0 +1,83 @@ +package _codec.versions.version1.a3d.materials +{ + 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 commons.Id; + import versions.version1.a3d.materials.A3DMaterial; + + public class CodecA3DMaterial implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-9A§:ICodec; + + private var §_-hw§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-Hu§:ICodec; + + private var §_-GK§:ICodec; + + private var §_-LZ§:ICodec; + + private var §_-FU§:ICodec; + + public function CodecA3DMaterial() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_diffuseMapId:Id = this.§_-9A§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","diffuseMapId",value_diffuseMapId); + var value_glossinessMapId:Id = this.§_-hw§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","glossinessMapId",value_glossinessMapId); + var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","id",value_id); + var value_lightMapId:Id = this.§_-Hu§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","lightMapId",value_lightMapId); + var value_normalMapId:Id = this.§_-GK§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","normalMapId",value_normalMapId); + var value_opacityMapId:Id = this.§_-LZ§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","opacityMapId",value_opacityMapId); + var value_specularMapId:Id = this.§_-FU§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","specularMapId",value_specularMapId); + return new A3DMaterial(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_specularMapId); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DMaterial = A3DMaterial(object); + this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId); + this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-Hu§.encode(protocolBuffer,struct.lightMapId); + this.§_-GK§.encode(protocolBuffer,struct.normalMapId); + this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId); + this.§_-FU§.encode(protocolBuffer,struct.specularMapId); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as new file mode 100644 index 0000000..db15e6f --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.materials +{ + 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 versions.version1.a3d.materials.A3DImage; + + public class VectorCodecA3DImageLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DImageLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DImage(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_59/VectorCodecA3DImageLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as similarity index 50% rename from src/package_59/VectorCodecA3DImageLevel2.as rename to src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as index a046f76..305d12b 100644 --- a/src/package_59/VectorCodecA3DImageLevel2.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as @@ -1,16 +1,16 @@ -package package_59 +package _codec.versions.version1.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DImage; + 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 versions.version1.a3d.materials.A3DImage; - public class VectorCodecA3DImageLevel2 implements name_152 + public class VectorCodecA3DImageLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_59 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DImage,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DImage(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DImage(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_59 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_59 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_59/VectorCodecA3DImageLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as similarity index 58% rename from src/package_59/VectorCodecA3DImageLevel3.as rename to src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as index 4f6f46d..d2bc5ba 100644 --- a/src/package_59/VectorCodecA3DImageLevel3.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as @@ -1,16 +1,16 @@ -package package_59 +package _codec.versions.version1.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DImage; + 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 versions.version1.a3d.materials.A3DImage; - public class VectorCodecA3DImageLevel3 implements name_152 + public class VectorCodecA3DImageLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_59 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DImage,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_59 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DImage(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DImage(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_59 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_59 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as new file mode 100644 index 0000000..eca0122 --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.materials +{ + 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 versions.version1.a3d.materials.A3DMap; + + public class VectorCodecA3DMapLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DMapLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DMap(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as new file mode 100644 index 0000000..d086228 --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as @@ -0,0 +1,89 @@ +package _codec.versions.version1.a3d.materials +{ + 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 versions.version1.a3d.materials.A3DMap; + + public class VectorCodecA3DMapLevel2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DMapLevel2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = A3DMap(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/package_59/VectorCodecA3DMapLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as similarity index 56% rename from src/package_59/VectorCodecA3DMapLevel3.as rename to src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as index df6555d..bc7d2e3 100644 --- a/src/package_59/VectorCodecA3DMapLevel3.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as @@ -1,16 +1,16 @@ -package package_59 +package _codec.versions.version1.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DMap; + 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 versions.version1.a3d.materials.A3DMap; - public class VectorCodecA3DMapLevel3 implements name_152 + public class VectorCodecA3DMapLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_59 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DMap,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_59 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DMap(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DMap(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_59 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_59 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as new file mode 100644 index 0000000..db0b7de --- /dev/null +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.materials +{ + 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 versions.version1.a3d.materials.A3DMaterial; + + public class VectorCodecA3DMaterialLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DMaterialLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_59/VectorCodecA3DMaterialLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as similarity index 50% rename from src/package_59/VectorCodecA3DMaterialLevel2.as rename to src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as index 2b4c638..2afa9fb 100644 --- a/src/package_59/VectorCodecA3DMaterialLevel2.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as @@ -1,16 +1,16 @@ -package package_59 +package _codec.versions.version1.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DMaterial; + 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 versions.version1.a3d.materials.A3DMaterial; - public class VectorCodecA3DMaterialLevel2 implements name_152 + public class VectorCodecA3DMaterialLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_59 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DMaterial,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DMaterial(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_59 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_59 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_59/VectorCodecA3DMaterialLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as similarity index 58% rename from src/package_59/VectorCodecA3DMaterialLevel3.as rename to src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as index 1f9a3a4..0db969d 100644 --- a/src/package_59/VectorCodecA3DMaterialLevel3.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as @@ -1,16 +1,16 @@ -package package_59 +package _codec.versions.version1.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DMaterial; + 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 versions.version1.a3d.materials.A3DMaterial; - public class VectorCodecA3DMaterialLevel3 implements name_152 + public class VectorCodecA3DMaterialLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_59 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DMaterial,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_59 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DMaterial(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_59 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_59 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as b/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as new file mode 100644 index 0000000..4439966 --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as @@ -0,0 +1,55 @@ +package _codec.versions.version1.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import commons.Id; + import versions.version1.a3d.objects.A3DBox; + + public class CodecA3DBox implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-pM§:ICodec; + + private var §_-2o§:ICodec; + + public function CodecA3DBox() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-pM§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_box:Vector. = this.§_-pM§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","box",value_box); + var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","id",value_id); + return new A3DBox(value_box,value_id); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DBox = A3DBox(object); + this.§_-pM§.encode(protocolBuffer,struct.box); + this.§_-2o§.encode(protocolBuffer,struct.id); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as b/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as new file mode 100644 index 0000000..8a22acc --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as @@ -0,0 +1,93 @@ +package _codec.versions.version1.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import commons.Id; + import versions.version1.a3d.id.ParentId; + import versions.version1.a3d.objects.A3DObject; + import versions.version1.a3d.objects.A3DSurface; + import versions.version1.a3d.objects.A3DTransformation; + + public class CodecA3DObject implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-e§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-Qr§:ICodec; + + private var §_-9u§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3DObject() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-e§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(ParentId,true)); + this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1)); + this.§_-9u§ = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:Id = this.§_-Dh§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","boundBoxId",value_boundBoxId); + var value_geometryId:Id = this.§_-e§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","geometryId",value_geometryId); + var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","id",value_id); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","name",value_name); + var value_parentId:ParentId = this.§_-jk§.decode(protocolBuffer) as ParentId; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","parentId",value_parentId); + var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","surfaces",value_surfaces); + var value_transformation:A3DTransformation = this.§_-9u§.decode(protocolBuffer) as A3DTransformation; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","transformation",value_transformation); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","visible",value_visible); + return new A3DObject(value_boundBoxId,value_geometryId,value_id,value_name,value_parentId,value_surfaces,value_transformation,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DObject = A3DObject(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-e§.encode(protocolBuffer,struct.geometryId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-Qr§.encode(protocolBuffer,struct.surfaces); + this.§_-9u§.encode(protocolBuffer,struct.transformation); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as b/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as new file mode 100644 index 0000000..016fcf3 --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.objects +{ + 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 commons.Id; + import versions.version1.a3d.objects.A3DSurface; + + public class CodecA3DSurface implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-AL§:ICodec; + + private var §_-Av§:ICodec; + + private var §_-pJ§:ICodec; + + public function CodecA3DSurface() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-AL§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.§_-pJ§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","indexBegin",value_indexBegin); + var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","materialId",value_materialId); + var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","numTriangles",value_numTriangles); + return new A3DSurface(value_indexBegin,value_materialId,value_numTriangles); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DSurface = A3DSurface(object); + this.§_-AL§.encode(protocolBuffer,struct.indexBegin); + this.§_-Av§.encode(protocolBuffer,struct.materialId); + this.§_-pJ§.encode(protocolBuffer,struct.numTriangles); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as b/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as new file mode 100644 index 0000000..0c2d472 --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as @@ -0,0 +1,47 @@ +package _codec.versions.version1.a3d.objects +{ + 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 commons.A3DMatrix; + import versions.version1.a3d.objects.A3DTransformation; + + public class CodecA3DTransformation implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-dG§:ICodec; + + public function CodecA3DTransformation() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix; + log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DTransformation","matrix",value_matrix); + return new A3DTransformation(value_matrix); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3DTransformation = A3DTransformation(object); + this.§_-dG§.encode(protocolBuffer,struct.matrix); + } + } +} + diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as new file mode 100644 index 0000000..1b6d3fa --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.objects +{ + 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 versions.version1.a3d.objects.A3DBox; + + public class VectorCodecA3DBoxLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DBoxLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DBox,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DBox(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_56/VectorCodecA3DBoxLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as similarity index 50% rename from src/package_56/VectorCodecA3DBoxLevel2.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as index bca8c23..074a581 100644 --- a/src/package_56/VectorCodecA3DBoxLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DBox; + 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 versions.version1.a3d.objects.A3DBox; - public class VectorCodecA3DBoxLevel2 implements name_152 + public class VectorCodecA3DBoxLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DBox,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DBox,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DBox(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DBox(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_56 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_56/VectorCodecA3DBoxLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as similarity index 56% rename from src/package_56/VectorCodecA3DBoxLevel3.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as index 96dba2d..c8c966c 100644 --- a/src/package_56/VectorCodecA3DBoxLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DBox; + 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 versions.version1.a3d.objects.A3DBox; - public class VectorCodecA3DBoxLevel3 implements name_152 + public class VectorCodecA3DBoxLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DBox,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DBox,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_56 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DBox(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DBox(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_56 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as new file mode 100644 index 0000000..56f70a4 --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.objects +{ + 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 versions.version1.a3d.objects.A3DObject; + + public class VectorCodecA3DObjectLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DObjectLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DObject,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DObject(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_56/VectorCodecA3DObjectLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as similarity index 50% rename from src/package_56/VectorCodecA3DObjectLevel2.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as index 7963a41..53f80e9 100644 --- a/src/package_56/VectorCodecA3DObjectLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DObject; + 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 versions.version1.a3d.objects.A3DObject; - public class VectorCodecA3DObjectLevel2 implements name_152 + public class VectorCodecA3DObjectLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DObject,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DObject,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DObject(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DObject(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_56 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_56/VectorCodecA3DObjectLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as similarity index 58% rename from src/package_56/VectorCodecA3DObjectLevel3.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as index 78c93b5..9493d34 100644 --- a/src/package_56/VectorCodecA3DObjectLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DObject; + 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 versions.version1.a3d.objects.A3DObject; - public class VectorCodecA3DObjectLevel3 implements name_152 + public class VectorCodecA3DObjectLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DObject,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DObject,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_56 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DObject(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DObject(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_56 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as new file mode 100644 index 0000000..ebe93f9 --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.objects +{ + 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 versions.version1.a3d.objects.A3DSurface; + + public class VectorCodecA3DSurfaceLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DSurfaceLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DSurface,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DSurface(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_56/VectorCodecA3DSurfaceLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as similarity index 50% rename from src/package_56/VectorCodecA3DSurfaceLevel2.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as index 4f5d3ea..d986375 100644 --- a/src/package_56/VectorCodecA3DSurfaceLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DSurface; + 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 versions.version1.a3d.objects.A3DSurface; - public class VectorCodecA3DSurfaceLevel2 implements name_152 + public class VectorCodecA3DSurfaceLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DSurface,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DSurface,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DSurface(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DSurface(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_56 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_56/VectorCodecA3DSurfaceLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as similarity index 58% rename from src/package_56/VectorCodecA3DSurfaceLevel3.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as index f8fc0ea..1290cb9 100644 --- a/src/package_56/VectorCodecA3DSurfaceLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DSurface; + 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 versions.version1.a3d.objects.A3DSurface; - public class VectorCodecA3DSurfaceLevel3 implements name_152 + public class VectorCodecA3DSurfaceLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DSurface,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DSurface,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_56 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DSurface(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DSurface(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_56 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as new file mode 100644 index 0000000..0a3c065 --- /dev/null +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version1.a3d.objects +{ + 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 versions.version1.a3d.objects.A3DTransformation; + + public class VectorCodecA3DTransformationLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3DTransformationLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DTransformation,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3DTransformation(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_56/VectorCodecA3DTransformationLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as similarity index 52% rename from src/package_56/VectorCodecA3DTransformationLevel2.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as index 8bda5a1..b21458b 100644 --- a/src/package_56/VectorCodecA3DTransformationLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DTransformation; + 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 versions.version1.a3d.objects.A3DTransformation; - public class VectorCodecA3DTransformationLevel2 implements name_152 + public class VectorCodecA3DTransformationLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DTransformation,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DTransformation,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3DTransformation(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3DTransformation(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_56 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_56/VectorCodecA3DTransformationLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as similarity index 58% rename from src/package_56/VectorCodecA3DTransformationLevel3.as rename to src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as index ffea221..b4f6e54 100644 --- a/src/package_56/VectorCodecA3DTransformationLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as @@ -1,16 +1,16 @@ -package package_56 +package _codec.versions.version1.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DTransformation; + 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 versions.version1.a3d.objects.A3DTransformation; - public class VectorCodecA3DTransformationLevel3 implements name_152 + public class VectorCodecA3DTransformationLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_56 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3DTransformation,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DTransformation,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_56 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3DTransformation(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3DTransformation(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_56 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_56 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/CodecA3D2.as b/src/_codec/versions/version2/a3d/CodecA3D2.as new file mode 100644 index 0000000..da85f4f --- /dev/null +++ b/src/_codec/versions/version2/a3d/CodecA3D2.as @@ -0,0 +1,174 @@ +package _codec.versions.version2.a3d +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import versions.version2.a3d.A3D2; + import versions.version2.a3d.animation.A3D2AnimationClip; + import versions.version2.a3d.animation.A3D2Track; + import versions.version2.a3d.geometry.A3D2IndexBuffer; + import versions.version2.a3d.geometry.A3D2VertexBuffer; + import versions.version2.a3d.materials.A3D2CubeMap; + import versions.version2.a3d.materials.A3D2Image; + import versions.version2.a3d.materials.A3D2Map; + import versions.version2.a3d.materials.A3D2Material; + import versions.version2.a3d.objects.A3D2AmbientLight; + import versions.version2.a3d.objects.A3D2Box; + import versions.version2.a3d.objects.A3D2Decal; + import versions.version2.a3d.objects.A3D2DirectionalLight; + import versions.version2.a3d.objects.A3D2Joint; + import versions.version2.a3d.objects.A3D2Mesh; + import versions.version2.a3d.objects.A3D2Object; + import versions.version2.a3d.objects.A3D2OmniLight; + import versions.version2.a3d.objects.A3D2Skin; + import versions.version2.a3d.objects.A3D2SpotLight; + import versions.version2.a3d.objects.A3D2Sprite; + + public class CodecA3D2 implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-8X§:ICodec; + + private var §_-Fa§:ICodec; + + private var §_-Aj§:ICodec; + + private var §_-EA§:ICodec; + + private var §_-lJ§:ICodec; + + private var §_-9f§:ICodec; + + private var §_-GC§:ICodec; + + private var §_-Sd§:ICodec; + + private var §_-76§:ICodec; + + private var §_-3f§:ICodec; + + private var §_-dB§:ICodec; + + private var §_-77§:ICodec; + + private var §_-PJ§:ICodec; + + private var §_-1x§:ICodec; + + private var §_-aP§:ICodec; + + private var §_-e9§:ICodec; + + private var §_-3y§:ICodec; + + private var §_-E2§:ICodec; + + private var §_-U9§:ICodec; + + public function CodecA3D2() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-8X§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1)); + this.§_-Fa§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1)); + this.§_-Aj§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1)); + this.§_-EA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1)); + this.§_-lJ§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1)); + this.§_-9f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1)); + this.§_-GC§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1)); + this.§_-Sd§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1)); + this.§_-76§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1)); + this.§_-3f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1)); + this.§_-dB§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1)); + this.§_-77§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1)); + this.§_-PJ§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1)); + this.§_-1x§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1)); + this.§_-aP§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1)); + this.§_-e9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1)); + this.§_-3y§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1)); + this.§_-E2§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1)); + this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_ambientLights:Vector. = this.§_-8X§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","ambientLights",value_ambientLights); + var value_animationClips:Vector. = this.§_-Fa§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationClips",value_animationClips); + var value_animationTracks:Vector. = this.§_-Aj§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationTracks",value_animationTracks); + var value_boxes:Vector. = this.§_-EA§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","boxes",value_boxes); + var value_cubeMaps:Vector. = this.§_-lJ§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","cubeMaps",value_cubeMaps); + var value_decals:Vector. = this.§_-9f§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","decals",value_decals); + var value_directionalLights:Vector. = this.§_-GC§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","directionalLights",value_directionalLights); + var value_images:Vector. = this.§_-Sd§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","images",value_images); + var value_indexBuffers:Vector. = this.§_-76§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","indexBuffers",value_indexBuffers); + var value_joints:Vector. = this.§_-3f§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","joints",value_joints); + var value_maps:Vector. = this.§_-dB§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","maps",value_maps); + var value_materials:Vector. = this.§_-77§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","materials",value_materials); + var value_meshes:Vector. = this.§_-PJ§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","meshes",value_meshes); + var value_objects:Vector. = this.§_-1x§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","objects",value_objects); + var value_omniLights:Vector. = this.§_-aP§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","omniLights",value_omniLights); + var value_skins:Vector. = this.§_-e9§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","skins",value_skins); + var value_spotLights:Vector. = this.§_-3y§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","spotLights",value_spotLights); + var value_sprites:Vector. = this.§_-E2§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","sprites",value_sprites); + var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","vertexBuffers",value_vertexBuffers); + return new A3D2(value_ambientLights,value_animationClips,value_animationTracks,value_boxes,value_cubeMaps,value_decals,value_directionalLights,value_images,value_indexBuffers,value_joints,value_maps,value_materials,value_meshes,value_objects,value_omniLights,value_skins,value_spotLights,value_sprites,value_vertexBuffers); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2 = A3D2(object); + this.§_-8X§.encode(protocolBuffer,struct.ambientLights); + this.§_-Fa§.encode(protocolBuffer,struct.animationClips); + this.§_-Aj§.encode(protocolBuffer,struct.animationTracks); + this.§_-EA§.encode(protocolBuffer,struct.boxes); + this.§_-lJ§.encode(protocolBuffer,struct.cubeMaps); + this.§_-9f§.encode(protocolBuffer,struct.decals); + this.§_-GC§.encode(protocolBuffer,struct.directionalLights); + this.§_-Sd§.encode(protocolBuffer,struct.images); + this.§_-76§.encode(protocolBuffer,struct.indexBuffers); + this.§_-3f§.encode(protocolBuffer,struct.joints); + this.§_-dB§.encode(protocolBuffer,struct.maps); + this.§_-77§.encode(protocolBuffer,struct.materials); + this.§_-PJ§.encode(protocolBuffer,struct.meshes); + this.§_-1x§.encode(protocolBuffer,struct.objects); + this.§_-aP§.encode(protocolBuffer,struct.omniLights); + this.§_-e9§.encode(protocolBuffer,struct.skins); + this.§_-3y§.encode(protocolBuffer,struct.spotLights); + this.§_-E2§.encode(protocolBuffer,struct.sprites); + this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as new file mode 100644 index 0000000..aa75112 --- /dev/null +++ b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d +{ + 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 versions.version2.a3d.A3D2; + + public class VectorCodecA3D2Level1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2Level1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as new file mode 100644 index 0000000..d6a52a1 --- /dev/null +++ b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as @@ -0,0 +1,89 @@ +package _codec.versions.version2.a3d +{ + 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 versions.version2.a3d.A3D2; + + public class VectorCodecA3D2Level2 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2Level2(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector. = null; + var i2:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.> = new Vector.>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; i2++) + { + items2[i2] = A3D2(this.elementCodec.decode(protocolBuffer)); + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector. = null; + var length2:int = 0; + var i2:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.> = Vector.>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + this.elementCodec.encode(protocolBuffer,items2[i2]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as new file mode 100644 index 0000000..a9b419b --- /dev/null +++ b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as @@ -0,0 +1,119 @@ +package _codec.versions.version2.a3d +{ + 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 versions.version2.a3d.A3D2; + + public class VectorCodecA3D2Level3 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2Level3(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length2:int = 0; + var items2:Vector.> = null; + var i2:int = 0; + var length3:int = 0; + var items3:Vector. = null; + var i3:int = 0; + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector.>> = new Vector.>>(length1,true); + for(var i1:int = 0; i1 < length1; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length2 = LengthCodecHelper.decodeLength(protocolBuffer); + items2 = new Vector.>(length2,true); + result[i1] = items2; + for(i2 = 0; i2 < length2; ) + { + if(!protocolBuffer.optionalMap.OptionalMap()) + { + length3 = LengthCodecHelper.decodeLength(protocolBuffer); + items3 = new Vector.(length3,true); + items2[i2] = items3; + for(i3 = 0; i3 < length3; i3++) + { + items3[i3] = A3D2(this.elementCodec.decode(protocolBuffer)); + } + } + i2++; + } + } + i1++; + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var items2:Vector.> = null; + var length2:int = 0; + var i2:int = 0; + var items3:Vector. = null; + var length3:int = 0; + var i3:int = 0; + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector.>> = Vector.>>(object); + var length1:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length1); + for(var i1:int = 0; i1 < length1; i1++) + { + items2 = data[i1]; + if(items2 != null) + { + protocolBuffer.optionalMap.addBit(false); + length2 = int(items2.length); + LengthCodecHelper.encodeLength(protocolBuffer,length2); + for(i2 = 0; i2 < length2; i2++) + { + items3 = items2[i1]; + if(items3 != null) + { + protocolBuffer.optionalMap.addBit(false); + length3 = int(items3.length); + LengthCodecHelper.encodeLength(protocolBuffer,length3); + for(i3 = 0; i3 < length3; i3++) + { + this.elementCodec.encode(protocolBuffer,items3[i3]); + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + else + { + protocolBuffer.optionalMap.addBit(true); + } + } + } + } +} + diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as new file mode 100644 index 0000000..09826ab --- /dev/null +++ b/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as @@ -0,0 +1,72 @@ +package _codec.versions.version2.a3d.animation +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Long; + import versions.version2.a3d.animation.A3D2AnimationClip; + + public class CodecA3D2AnimationClip implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + private var §_-HX§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-Td§:ICodec; + + private var §_-Z-§:ICodec; + + public function CodecA3D2AnimationClip() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-HX§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-Td§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1)); + this.§_-Z-§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","id",value_id); + var value_loop:Boolean = Boolean(this.§_-HX§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","loop",value_loop); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","name",value_name); + var value_objectIDs:Vector. = this.§_-Td§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","objectIDs",value_objectIDs); + var value_tracks:Vector. = this.§_-Z-§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","tracks",value_tracks); + return new A3D2AnimationClip(value_id,value_loop,value_name,value_objectIDs,value_tracks); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2AnimationClip = A3D2AnimationClip(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-HX§.encode(protocolBuffer,struct.loop); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-Td§.encode(protocolBuffer,struct.objectIDs); + this.§_-Z-§.encode(protocolBuffer,struct.tracks); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as new file mode 100644 index 0000000..06edc99 --- /dev/null +++ b/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as @@ -0,0 +1,54 @@ +package _codec.versions.version2.a3d.animation +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import versions.version2.a3d.animation.A3D2Keyframe; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Keyframe implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-dk§:ICodec; + + private var §_-S2§:ICodec; + + public function CodecA3D2Keyframe() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-dk§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_time:Number = Number(this.§_-dk§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","time",value_time); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","transform",value_transform); + return new A3D2Keyframe(value_time,value_transform); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Keyframe = A3D2Keyframe(object); + this.§_-dk§.encode(protocolBuffer,struct.time); + this.§_-S2§.encode(protocolBuffer,struct.transform); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as new file mode 100644 index 0000000..5818548 --- /dev/null +++ b/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as @@ -0,0 +1,60 @@ +package _codec.versions.version2.a3d.animation +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import versions.version2.a3d.animation.A3D2Keyframe; + import versions.version2.a3d.animation.A3D2Track; + + public class CodecA3D2Track implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + private var §_-Ja§:ICodec; + + private var §_-Fo§:ICodec; + + public function CodecA3D2Track() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-Ja§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1)); + this.§_-Fo§ = protocol.getCodec(new TypeCodecInfo(String,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","id",value_id); + var value_keyframes:Vector. = this.§_-Ja§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","keyframes",value_keyframes); + var value_objectName:String = this.§_-Fo§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","objectName",value_objectName); + return new A3D2Track(value_id,value_keyframes,value_objectName); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Track = A3D2Track(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-Ja§.encode(protocolBuffer,struct.keyframes); + this.§_-Fo§.encode(protocolBuffer,struct.objectName); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as new file mode 100644 index 0000000..1113741 --- /dev/null +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.animation +{ + 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 versions.version2.a3d.animation.A3D2AnimationClip; + + public class VectorCodecA3D2AnimationClipLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2AnimationClipLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AnimationClip,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2AnimationClip(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_61/VectorCodecA3D2AnimationClipLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as similarity index 52% rename from src/package_61/VectorCodecA3D2AnimationClipLevel2.as rename to src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as index 4164d8c..7246c4e 100644 --- a/src/package_61/VectorCodecA3D2AnimationClipLevel2.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as @@ -1,16 +1,16 @@ -package package_61 +package _codec.versions.version2.a3d.animation { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2AnimationClip; + 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 versions.version2.a3d.animation.A3D2AnimationClip; - public class VectorCodecA3D2AnimationClipLevel2 implements name_152 + public class VectorCodecA3D2AnimationClipLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_61 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2AnimationClip,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AnimationClip,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2AnimationClip(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2AnimationClip(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_61 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_61 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_61/VectorCodecA3D2AnimationClipLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as similarity index 58% rename from src/package_61/VectorCodecA3D2AnimationClipLevel3.as rename to src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as index b323b84..013d260 100644 --- a/src/package_61/VectorCodecA3D2AnimationClipLevel3.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as @@ -1,16 +1,16 @@ -package package_61 +package _codec.versions.version2.a3d.animation { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2AnimationClip; + 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 versions.version2.a3d.animation.A3D2AnimationClip; - public class VectorCodecA3D2AnimationClipLevel3 implements name_152 + public class VectorCodecA3D2AnimationClipLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_61 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2AnimationClip,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AnimationClip,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_61 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2AnimationClip(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2AnimationClip(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_61 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_61 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as new file mode 100644 index 0000000..bf77f80 --- /dev/null +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.animation +{ + 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 versions.version2.a3d.animation.A3D2Keyframe; + + public class VectorCodecA3D2KeyframeLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2KeyframeLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Keyframe,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Keyframe(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_61/VectorCodecA3D2KeyframeLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as similarity index 50% rename from src/package_61/VectorCodecA3D2KeyframeLevel2.as rename to src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as index f1716a7..21050a0 100644 --- a/src/package_61/VectorCodecA3D2KeyframeLevel2.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as @@ -1,16 +1,16 @@ -package package_61 +package _codec.versions.version2.a3d.animation { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2Keyframe; + 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 versions.version2.a3d.animation.A3D2Keyframe; - public class VectorCodecA3D2KeyframeLevel2 implements name_152 + public class VectorCodecA3D2KeyframeLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_61 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Keyframe,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Keyframe,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Keyframe(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Keyframe(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_61 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_61 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_61/VectorCodecA3D2KeyframeLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as similarity index 58% rename from src/package_61/VectorCodecA3D2KeyframeLevel3.as rename to src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as index 5145a80..7d7fbfe 100644 --- a/src/package_61/VectorCodecA3D2KeyframeLevel3.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as @@ -1,16 +1,16 @@ -package package_61 +package _codec.versions.version2.a3d.animation { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2Keyframe; + 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 versions.version2.a3d.animation.A3D2Keyframe; - public class VectorCodecA3D2KeyframeLevel3 implements name_152 + public class VectorCodecA3D2KeyframeLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_61 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Keyframe,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Keyframe,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_61 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Keyframe(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Keyframe(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_61 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_61 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as new file mode 100644 index 0000000..fc0737d --- /dev/null +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.animation +{ + 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 versions.version2.a3d.animation.A3D2Track; + + public class VectorCodecA3D2TrackLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2TrackLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Track,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Track(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_61/VectorCodecA3D2TrackLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as similarity index 50% rename from src/package_61/VectorCodecA3D2TrackLevel2.as rename to src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as index a3fdca0..d0b2e47 100644 --- a/src/package_61/VectorCodecA3D2TrackLevel2.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as @@ -1,16 +1,16 @@ -package package_61 +package _codec.versions.version2.a3d.animation { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2Track; + 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 versions.version2.a3d.animation.A3D2Track; - public class VectorCodecA3D2TrackLevel2 implements name_152 + public class VectorCodecA3D2TrackLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_61 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Track,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Track,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Track(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Track(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_61 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_61 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_61/VectorCodecA3D2TrackLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as similarity index 58% rename from src/package_61/VectorCodecA3D2TrackLevel3.as rename to src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as index c1b49e2..af0199d 100644 --- a/src/package_61/VectorCodecA3D2TrackLevel3.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as @@ -1,16 +1,16 @@ -package package_61 +package _codec.versions.version2.a3d.animation { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2Track; + 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 versions.version2.a3d.animation.A3D2Track; - public class VectorCodecA3D2TrackLevel3 implements name_152 + public class VectorCodecA3D2TrackLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_61 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Track,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Track,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_61 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Track(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Track(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_61 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_61 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as new file mode 100644 index 0000000..98abf1e --- /dev/null +++ b/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.geometry +{ + 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 flash.utils.ByteArray; + import versions.version2.a3d.geometry.A3D2IndexBuffer; + + public class CodecA3D2IndexBuffer implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-GN§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-mz§:ICodec; + + public function CodecA3D2IndexBuffer() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","byteBuffer",value_byteBuffer); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","id",value_id); + var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","indexCount",value_indexCount); + return new A3D2IndexBuffer(value_byteBuffer,value_id,value_indexCount); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2IndexBuffer = A3D2IndexBuffer(object); + this.§_-GN§.encode(protocolBuffer,struct.byteBuffer); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-mz§.encode(protocolBuffer,struct.indexCount); + } + } +} + diff --git a/src/package_60/CodecA3D2VertexAttributes.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as similarity index 62% rename from src/package_60/CodecA3D2VertexAttributes.as rename to src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as index 052935b..4b4073d 100644 --- a/src/package_60/CodecA3D2VertexAttributes.as +++ b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as @@ -1,22 +1,22 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_52.A3D2VertexAttributes; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import versions.version2.a3d.geometry.A3D2VertexAttributes; - public class CodecA3D2VertexAttributes implements name_152 + public class CodecA3D2VertexAttributes implements ICodec { public function CodecA3D2VertexAttributes() { super(); } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var result:A3D2VertexAttributes = null; var value:int = int(protocolBuffer.reader.readInt()); @@ -40,14 +40,14 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { if(object == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var value:int = int(object.value); - protocolBuffer.name_483.writeInt(value); + protocolBuffer.writer.writeInt(value); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as new file mode 100644 index 0000000..762e42f --- /dev/null +++ b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as @@ -0,0 +1,69 @@ +package _codec.versions.version2.a3d.geometry +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.EnumCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.UShort; + import flash.utils.ByteArray; + import versions.version2.a3d.geometry.A3D2VertexAttributes; + import versions.version2.a3d.geometry.A3D2VertexBuffer; + + public class CodecA3D2VertexBuffer implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Lj§:ICodec; + + private var §_-GN§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-hc§:ICodec; + + public function CodecA3D2VertexBuffer() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Lj§ = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1)); + this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-hc§ = protocol.getCodec(new TypeCodecInfo(UShort,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_attributes:Vector. = this.§_-Lj§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","attributes",value_attributes); + var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","byteBuffer",value_byteBuffer); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","id",value_id); + var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","vertexCount",value_vertexCount); + return new A3D2VertexBuffer(value_attributes,value_byteBuffer,value_id,value_vertexCount); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2VertexBuffer = A3D2VertexBuffer(object); + this.§_-Lj§.encode(protocolBuffer,struct.attributes); + this.§_-GN§.encode(protocolBuffer,struct.byteBuffer); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-hc§.encode(protocolBuffer,struct.vertexCount); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as new file mode 100644 index 0000000..190dc90 --- /dev/null +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.geometry +{ + 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 versions.version2.a3d.geometry.A3D2IndexBuffer; + + public class VectorCodecA3D2IndexBufferLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2IndexBufferLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2IndexBuffer,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2IndexBuffer(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_60/VectorCodecA3D2IndexBufferLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as similarity index 52% rename from src/package_60/VectorCodecA3D2IndexBufferLevel2.as rename to src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as index 2e4a748..7bae526 100644 --- a/src/package_60/VectorCodecA3D2IndexBufferLevel2.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as @@ -1,16 +1,16 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2IndexBuffer; + 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 versions.version2.a3d.geometry.A3D2IndexBuffer; - public class VectorCodecA3D2IndexBufferLevel2 implements name_152 + public class VectorCodecA3D2IndexBufferLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_60 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2IndexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2IndexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2IndexBuffer(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2IndexBuffer(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_60 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_60/VectorCodecA3D2IndexBufferLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as similarity index 58% rename from src/package_60/VectorCodecA3D2IndexBufferLevel3.as rename to src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as index adc7e4d..28c4755 100644 --- a/src/package_60/VectorCodecA3D2IndexBufferLevel3.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as @@ -1,16 +1,16 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2IndexBuffer; + 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 versions.version2.a3d.geometry.A3D2IndexBuffer; - public class VectorCodecA3D2IndexBufferLevel3 implements name_152 + public class VectorCodecA3D2IndexBufferLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_60 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2IndexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2IndexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_60 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2IndexBuffer(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2IndexBuffer(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_60 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as new file mode 100644 index 0000000..85feae5 --- /dev/null +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.geometry +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.codec.OptionalCodecDecorator; + import alternativa.protocol.impl.LengthCodecHelper; + import alternativa.protocol.info.EnumCodecInfo; + import versions.version2.a3d.geometry.A3D2VertexAttributes; + + public class VectorCodecA3D2VertexAttributesLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2VertexAttributesLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new EnumCodecInfo(A3D2VertexAttributes,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2VertexAttributes(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_60/VectorCodecA3D2VertexAttributesLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as similarity index 54% rename from src/package_60/VectorCodecA3D2VertexAttributesLevel2.as rename to src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as index 6083807..91b294f 100644 --- a/src/package_60/VectorCodecA3D2VertexAttributesLevel2.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as @@ -1,16 +1,16 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_32.name_209; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2VertexAttributes; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.codec.OptionalCodecDecorator; + import alternativa.protocol.impl.LengthCodecHelper; + import alternativa.protocol.info.EnumCodecInfo; + import versions.version2.a3d.geometry.A3D2VertexAttributes; - public class VectorCodecA3D2VertexAttributesLevel2 implements name_152 + public class VectorCodecA3D2VertexAttributesLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_60 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_209(A3D2VertexAttributes,false)); + this.elementCodec = protocol.getCodec(new EnumCodecInfo(A3D2VertexAttributes,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2VertexAttributes(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2VertexAttributes(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_60 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_60/VectorCodecA3D2VertexAttributesLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as similarity index 60% rename from src/package_60/VectorCodecA3D2VertexAttributesLevel3.as rename to src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as index 4bad0c1..13465fe 100644 --- a/src/package_60/VectorCodecA3D2VertexAttributesLevel3.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as @@ -1,16 +1,16 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_32.name_209; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2VertexAttributes; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.codec.OptionalCodecDecorator; + import alternativa.protocol.impl.LengthCodecHelper; + import alternativa.protocol.info.EnumCodecInfo; + import versions.version2.a3d.geometry.A3D2VertexAttributes; - public class VectorCodecA3D2VertexAttributesLevel3 implements name_152 + public class VectorCodecA3D2VertexAttributesLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_60 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_209(A3D2VertexAttributes,false)); + this.elementCodec = protocol.getCodec(new EnumCodecInfo(A3D2VertexAttributes,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_60 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2VertexAttributes(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2VertexAttributes(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_60 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as new file mode 100644 index 0000000..64025e2 --- /dev/null +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.geometry +{ + 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 versions.version2.a3d.geometry.A3D2VertexBuffer; + + public class VectorCodecA3D2VertexBufferLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2VertexBufferLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2VertexBuffer,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2VertexBuffer(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_60/VectorCodecA3D2VertexBufferLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as similarity index 52% rename from src/package_60/VectorCodecA3D2VertexBufferLevel2.as rename to src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as index e4cbacf..1b0d9d8 100644 --- a/src/package_60/VectorCodecA3D2VertexBufferLevel2.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as @@ -1,16 +1,16 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2VertexBuffer; + 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 versions.version2.a3d.geometry.A3D2VertexBuffer; - public class VectorCodecA3D2VertexBufferLevel2 implements name_152 + public class VectorCodecA3D2VertexBufferLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_60 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2VertexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2VertexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2VertexBuffer(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2VertexBuffer(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_60 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_60/VectorCodecA3D2VertexBufferLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as similarity index 58% rename from src/package_60/VectorCodecA3D2VertexBufferLevel3.as rename to src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as index 2199ea1..85451a1 100644 --- a/src/package_60/VectorCodecA3D2VertexBufferLevel3.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as @@ -1,16 +1,16 @@ -package package_60 +package _codec.versions.version2.a3d.geometry { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2VertexBuffer; + 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 versions.version2.a3d.geometry.A3D2VertexBuffer; - public class VectorCodecA3D2VertexBufferLevel3 implements name_152 + public class VectorCodecA3D2VertexBufferLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_60 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2VertexBuffer,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2VertexBuffer,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_60 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2VertexBuffer(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2VertexBuffer(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_60 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_60 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as new file mode 100644 index 0000000..0056e7d --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as @@ -0,0 +1,82 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2CubeMap; + + public class CodecA3D2CubeMap implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Yc§:ICodec; + + private var §_-SV§:ICodec; + + private var §_-Ni§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-nb§:ICodec; + + private var §_-23§:ICodec; + + private var §_-TW§:ICodec; + + public function CodecA3D2CubeMap() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Yc§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-SV§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-Ni§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-nb§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-23§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-TW§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_backId:int = int(this.§_-Yc§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","backId",value_backId); + var value_bottomId:int = int(this.§_-SV§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","bottomId",value_bottomId); + var value_frontId:int = int(this.§_-Ni§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","frontId",value_frontId); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","id",value_id); + var value_leftId:int = int(this.§_-nb§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","leftId",value_leftId); + var value_rightId:int = int(this.§_-23§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","rightId",value_rightId); + var value_topId:int = int(this.§_-TW§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","topId",value_topId); + return new A3D2CubeMap(value_backId,value_bottomId,value_frontId,value_id,value_leftId,value_rightId,value_topId); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2CubeMap = A3D2CubeMap(object); + this.§_-Yc§.encode(protocolBuffer,struct.backId); + this.§_-SV§.encode(protocolBuffer,struct.bottomId); + this.§_-Ni§.encode(protocolBuffer,struct.frontId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-nb§.encode(protocolBuffer,struct.leftId); + this.§_-23§.encode(protocolBuffer,struct.rightId); + this.§_-TW§.encode(protocolBuffer,struct.topId); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as new file mode 100644 index 0000000..25f4ad4 --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as @@ -0,0 +1,52 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2Image; + + public class CodecA3D2Image implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-2o§:ICodec; + + private var §_-aV§:ICodec; + + public function CodecA3D2Image() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","id",value_id); + var value_url:String = this.§_-aV§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","url",value_url); + return new A3D2Image(value_id,value_url); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Image = A3D2Image(object); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-aV§.encode(protocolBuffer,struct.url); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as new file mode 100644 index 0000000..c00f48e --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.materials +{ + 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.UShort; + import versions.version2.a3d.materials.A3D2Map; + + public class CodecA3D2Map implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-mC§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-2N§:ICodec; + + public function CodecA3D2Map() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","channel",value_channel); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","id",value_id); + var value_imageId:int = int(this.§_-2N§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","imageId",value_imageId); + return new A3D2Map(value_channel,value_id,value_imageId); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Map = A3D2Map(object); + this.§_-mC§.encode(protocolBuffer,struct.channel); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-2N§.encode(protocolBuffer,struct.imageId); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as new file mode 100644 index 0000000..81504f0 --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as @@ -0,0 +1,88 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2Material; + + public class CodecA3D2Material implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-9A§:ICodec; + + private var §_-hw§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-Hu§:ICodec; + + private var §_-GK§:ICodec; + + private var §_-LZ§:ICodec; + + private var §_-bz§:ICodec; + + private var §_-FU§:ICodec; + + public function CodecA3D2Material() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-bz§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(int,true)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_diffuseMapId:int = int(this.§_-9A§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","diffuseMapId",value_diffuseMapId); + var value_glossinessMapId:int = int(this.§_-hw§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","glossinessMapId",value_glossinessMapId); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","id",value_id); + var value_lightMapId:int = int(this.§_-Hu§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","lightMapId",value_lightMapId); + var value_normalMapId:int = int(this.§_-GK§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","normalMapId",value_normalMapId); + var value_opacityMapId:int = int(this.§_-LZ§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","opacityMapId",value_opacityMapId); + var value_reflectionCubeMapId:int = int(this.§_-bz§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","reflectionCubeMapId",value_reflectionCubeMapId); + var value_specularMapId:int = int(this.§_-FU§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","specularMapId",value_specularMapId); + return new A3D2Material(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_reflectionCubeMapId,value_specularMapId); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Material = A3D2Material(object); + this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId); + this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-Hu§.encode(protocolBuffer,struct.lightMapId); + this.§_-GK§.encode(protocolBuffer,struct.normalMapId); + this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId); + this.§_-bz§.encode(protocolBuffer,struct.reflectionCubeMapId); + this.§_-FU§.encode(protocolBuffer,struct.specularMapId); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as new file mode 100644 index 0000000..16bcc97 --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2CubeMap; + + public class VectorCodecA3D2CubeMapLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2CubeMapLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2CubeMap,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2CubeMap(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_58/VectorCodecA3D2CubeMapLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as similarity index 50% rename from src/package_58/VectorCodecA3D2CubeMapLevel2.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as index a8b499b..f9ea1fa 100644 --- a/src/package_58/VectorCodecA3D2CubeMapLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2CubeMap; + 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 versions.version2.a3d.materials.A3D2CubeMap; - public class VectorCodecA3D2CubeMapLevel2 implements name_152 + public class VectorCodecA3D2CubeMapLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2CubeMap,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2CubeMap,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2CubeMap(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2CubeMap(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_58 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_58/VectorCodecA3D2CubeMapLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as similarity index 58% rename from src/package_58/VectorCodecA3D2CubeMapLevel3.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as index 91c2a04..9a4a02f 100644 --- a/src/package_58/VectorCodecA3D2CubeMapLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2CubeMap; + 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 versions.version2.a3d.materials.A3D2CubeMap; - public class VectorCodecA3D2CubeMapLevel3 implements name_152 + public class VectorCodecA3D2CubeMapLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2CubeMap,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2CubeMap,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_58 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2CubeMap(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2CubeMap(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_58 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as new file mode 100644 index 0000000..1ca0fca --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2Image; + + public class VectorCodecA3D2ImageLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2ImageLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Image,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Image(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_58/VectorCodecA3D2ImageLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as similarity index 50% rename from src/package_58/VectorCodecA3D2ImageLevel2.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as index 176a869..197f42f 100644 --- a/src/package_58/VectorCodecA3D2ImageLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Image; + 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 versions.version2.a3d.materials.A3D2Image; - public class VectorCodecA3D2ImageLevel2 implements name_152 + public class VectorCodecA3D2ImageLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Image,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Image,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Image(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Image(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_58 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_58/VectorCodecA3D2ImageLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as similarity index 58% rename from src/package_58/VectorCodecA3D2ImageLevel3.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as index 80a88e2..b496b29 100644 --- a/src/package_58/VectorCodecA3D2ImageLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Image; + 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 versions.version2.a3d.materials.A3D2Image; - public class VectorCodecA3D2ImageLevel3 implements name_152 + public class VectorCodecA3D2ImageLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Image,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Image,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_58 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Image(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Image(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_58 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as new file mode 100644 index 0000000..998f95a --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2Map; + + public class VectorCodecA3D2MapLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2MapLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Map,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Map(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_58/VectorCodecA3D2MapLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as similarity index 50% rename from src/package_58/VectorCodecA3D2MapLevel2.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as index c06cf6a..6b5a875 100644 --- a/src/package_58/VectorCodecA3D2MapLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Map; + 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 versions.version2.a3d.materials.A3D2Map; - public class VectorCodecA3D2MapLevel2 implements name_152 + public class VectorCodecA3D2MapLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Map,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Map,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Map(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Map(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_58 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_58/VectorCodecA3D2MapLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as similarity index 56% rename from src/package_58/VectorCodecA3D2MapLevel3.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as index ce61607..e81c72f 100644 --- a/src/package_58/VectorCodecA3D2MapLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Map; + 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 versions.version2.a3d.materials.A3D2Map; - public class VectorCodecA3D2MapLevel3 implements name_152 + public class VectorCodecA3D2MapLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Map,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Map,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_58 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Map(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Map(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_58 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as new file mode 100644 index 0000000..b05c3c1 --- /dev/null +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.materials +{ + 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 versions.version2.a3d.materials.A3D2Material; + + public class VectorCodecA3D2MaterialLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2MaterialLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Material,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Material(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_58/VectorCodecA3D2MaterialLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as similarity index 50% rename from src/package_58/VectorCodecA3D2MaterialLevel2.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as index e00b6c5..307c83d 100644 --- a/src/package_58/VectorCodecA3D2MaterialLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Material; + 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 versions.version2.a3d.materials.A3D2Material; - public class VectorCodecA3D2MaterialLevel2 implements name_152 + public class VectorCodecA3D2MaterialLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Material,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Material,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Material(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Material(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_58 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_58/VectorCodecA3D2MaterialLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as similarity index 58% rename from src/package_58/VectorCodecA3D2MaterialLevel3.as rename to src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as index 71b10b9..4a9fa33 100644 --- a/src/package_58/VectorCodecA3D2MaterialLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as @@ -1,16 +1,16 @@ -package package_58 +package _codec.versions.version2.a3d.materials { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Material; + 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 versions.version2.a3d.materials.A3D2Material; - public class VectorCodecA3D2MaterialLevel3 implements name_152 + public class VectorCodecA3D2MaterialLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_58 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Material,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Material,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_58 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Material(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Material(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_58 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_58 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as new file mode 100644 index 0000000..39670fc --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as @@ -0,0 +1,91 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.Long; + import versions.version2.a3d.objects.A3D2AmbientLight; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2AmbientLight implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-Po§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-JX§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2AmbientLight() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","boundBoxId",value_boundBoxId); + var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","color",value_color); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","id",value_id); + var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","intensity",value_intensity); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","parentId",value_parentId); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","visible",value_visible); + return new A3D2AmbientLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2AmbientLight = A3D2AmbientLight(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-Po§.encode(protocolBuffer,struct.color); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-JX§.encode(protocolBuffer,struct.intensity); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as new file mode 100644 index 0000000..a6259d1 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as @@ -0,0 +1,54 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import versions.version2.a3d.objects.A3D2Box; + + public class CodecA3D2Box implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-pM§:ICodec; + + private var §_-2o§:ICodec; + + public function CodecA3D2Box() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-pM§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_box:Vector. = this.§_-pM§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","box",value_box); + var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","id",value_id); + return new A3D2Box(value_box,value_id); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Box = A3D2Box(object); + this.§_-pM§.encode(protocolBuffer,struct.box); + this.§_-2o§.encode(protocolBuffer,struct.id); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as new file mode 100644 index 0000000..1ffe631 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as @@ -0,0 +1,105 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.Long; + import versions.version2.a3d.objects.A3D2Decal; + import versions.version2.a3d.objects.A3D2Surface; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Decal implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-PO§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-Zb§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-Qr§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-U9§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2Decal() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-Zb§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","boundBoxId",value_boundBoxId); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","id",value_id); + var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","indexBufferId",value_indexBufferId); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","name",value_name); + var value_offset:Number = Number(this.§_-Zb§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","offset",value_offset); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","parentId",value_parentId); + var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","surfaces",value_surfaces); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","transform",value_transform); + var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","vertexBuffers",value_vertexBuffers); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","visible",value_visible); + return new A3D2Decal(value_boundBoxId,value_id,value_indexBufferId,value_name,value_offset,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Decal = A3D2Decal(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-PO§.encode(protocolBuffer,struct.indexBufferId); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-Zb§.encode(protocolBuffer,struct.offset); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-Qr§.encode(protocolBuffer,struct.surfaces); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as new file mode 100644 index 0000000..1ddae6b --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as @@ -0,0 +1,91 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.Long; + import versions.version2.a3d.objects.A3D2DirectionalLight; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2DirectionalLight implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-Po§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-JX§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2DirectionalLight() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","boundBoxId",value_boundBoxId); + var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","color",value_color); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","id",value_id); + var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","intensity",value_intensity); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","parentId",value_parentId); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","visible",value_visible); + return new A3D2DirectionalLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2DirectionalLight = A3D2DirectionalLight(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-Po§.encode(protocolBuffer,struct.color); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-JX§.encode(protocolBuffer,struct.intensity); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as new file mode 100644 index 0000000..079f912 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as @@ -0,0 +1,78 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Joint; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Joint implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2Joint() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","boundBoxId",value_boundBoxId); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","id",value_id); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","parentId",value_parentId); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","visible",value_visible); + return new A3D2Joint(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Joint = A3D2Joint(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as new file mode 100644 index 0000000..e918da7 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as @@ -0,0 +1,54 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2JointBindTransform; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2JointBindTransform implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Ov§:ICodec; + + private var §_-2o§:ICodec; + + public function CodecA3D2JointBindTransform() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Ov§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_bindPoseTransform:A3D2Transform = this.§_-Ov§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","bindPoseTransform",value_bindPoseTransform); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","id",value_id); + return new A3D2JointBindTransform(value_bindPoseTransform,value_id); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2JointBindTransform = A3D2JointBindTransform(object); + this.§_-Ov§.encode(protocolBuffer,struct.bindPoseTransform); + this.§_-2o§.encode(protocolBuffer,struct.id); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as new file mode 100644 index 0000000..fd477bd --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as @@ -0,0 +1,98 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Long; + import versions.version2.a3d.objects.A3D2Mesh; + import versions.version2.a3d.objects.A3D2Surface; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Mesh implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-PO§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-Qr§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-U9§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2Mesh() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","boundBoxId",value_boundBoxId); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","id",value_id); + var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","indexBufferId",value_indexBufferId); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","parentId",value_parentId); + var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","surfaces",value_surfaces); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","transform",value_transform); + var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","vertexBuffers",value_vertexBuffers); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","visible",value_visible); + return new A3D2Mesh(value_boundBoxId,value_id,value_indexBufferId,value_name,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Mesh = A3D2Mesh(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-PO§.encode(protocolBuffer,struct.indexBufferId); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-Qr§.encode(protocolBuffer,struct.surfaces); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as new file mode 100644 index 0000000..2914a4d --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as @@ -0,0 +1,78 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Object; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Object implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2Object() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","boundBoxId",value_boundBoxId); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","id",value_id); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","parentId",value_parentId); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","visible",value_visible); + return new A3D2Object(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Object = A3D2Object(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as new file mode 100644 index 0000000..69a30ad --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as @@ -0,0 +1,103 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.Long; + import versions.version2.a3d.objects.A3D2OmniLight; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2OmniLight implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-KK§:ICodec; + + private var §_-H3§:ICodec; + + private var §_-Dh§:ICodec; + + private var §_-Po§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-JX§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2OmniLight() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-KK§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-H3§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationBegin",value_attenuationBegin); + var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationEnd",value_attenuationEnd); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","boundBoxId",value_boundBoxId); + var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","color",value_color); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","id",value_id); + var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","intensity",value_intensity); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","parentId",value_parentId); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","visible",value_visible); + return new A3D2OmniLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2OmniLight = A3D2OmniLight(object); + this.§_-KK§.encode(protocolBuffer,struct.attenuationBegin); + this.§_-H3§.encode(protocolBuffer,struct.attenuationEnd); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-Po§.encode(protocolBuffer,struct.color); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-JX§.encode(protocolBuffer,struct.intensity); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as new file mode 100644 index 0000000..387acc3 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as @@ -0,0 +1,118 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Long; + import alternativa.types.UShort; + import versions.version2.a3d.objects.A3D2JointBindTransform; + import versions.version2.a3d.objects.A3D2Skin; + import versions.version2.a3d.objects.A3D2Surface; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Skin implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-Dh§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-PO§:ICodec; + + private var §_-dR§:ICodec; + + private var §_-3f§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-Mx§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-Qr§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-U9§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2Skin() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-dR§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1)); + this.§_-3f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-Mx§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","boundBoxId",value_boundBoxId); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","id",value_id); + var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","indexBufferId",value_indexBufferId); + var value_jointBindTransforms:Vector. = this.§_-dR§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","jointBindTransforms",value_jointBindTransforms); + var value_joints:Vector. = this.§_-3f§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","joints",value_joints); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","name",value_name); + var value_numJoints:Vector. = this.§_-Mx§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","numJoints",value_numJoints); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","parentId",value_parentId); + var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","surfaces",value_surfaces); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","transform",value_transform); + var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","vertexBuffers",value_vertexBuffers); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","visible",value_visible); + return new A3D2Skin(value_boundBoxId,value_id,value_indexBufferId,value_jointBindTransforms,value_joints,value_name,value_numJoints,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Skin = A3D2Skin(object); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-PO§.encode(protocolBuffer,struct.indexBufferId); + this.§_-dR§.encode(protocolBuffer,struct.jointBindTransforms); + this.§_-3f§.encode(protocolBuffer,struct.joints); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-Mx§.encode(protocolBuffer,struct.numJoints); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-Qr§.encode(protocolBuffer,struct.surfaces); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as new file mode 100644 index 0000000..5bba2f4 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as @@ -0,0 +1,115 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.Long; + import versions.version2.a3d.objects.A3D2SpotLight; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2SpotLight implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-KK§:ICodec; + + private var §_-H3§:ICodec; + + private var §_-Dh§:ICodec; + + private var §_-Po§:ICodec; + + private var §_-GX§:ICodec; + + private var §_-YW§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-JX§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + public function CodecA3D2SpotLight() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-KK§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-H3§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.§_-GX§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-YW§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationBegin",value_attenuationBegin); + var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationEnd",value_attenuationEnd); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","boundBoxId",value_boundBoxId); + var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","color",value_color); + var value_falloff:Number = Number(this.§_-GX§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","falloff",value_falloff); + var value_hotspot:Number = Number(this.§_-YW§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","hotspot",value_hotspot); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","id",value_id); + var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","intensity",value_intensity); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","name",value_name); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","parentId",value_parentId); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","visible",value_visible); + return new A3D2SpotLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_falloff,value_hotspot,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2SpotLight = A3D2SpotLight(object); + this.§_-KK§.encode(protocolBuffer,struct.attenuationBegin); + this.§_-H3§.encode(protocolBuffer,struct.attenuationEnd); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-Po§.encode(protocolBuffer,struct.color); + this.§_-GX§.encode(protocolBuffer,struct.falloff); + this.§_-YW§.encode(protocolBuffer,struct.hotspot); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-JX§.encode(protocolBuffer,struct.intensity); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as new file mode 100644 index 0000000..943204a --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as @@ -0,0 +1,128 @@ +package _codec.versions.version2.a3d.objects +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Float; + import alternativa.types.Long; + import commons.Id; + import versions.version2.a3d.objects.A3D2Sprite; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Sprite implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-XZ§:ICodec; + + private var §_-Dh§:ICodec; + + private var §_-X§:ICodec; + + private var §_-2o§:ICodec; + + private var §_-Av§:ICodec; + + private var §_-XW§:ICodec; + + private var §_-Pk§:ICodec; + + private var §_-j1§:ICodec; + + private var §_-jk§:ICodec; + + private var §_-Yz§:ICodec; + + private var §_-SJ§:ICodec; + + private var §_-S2§:ICodec; + + private var §_-h9§:ICodec; + + private var §_-pD§:ICodec; + + public function CodecA3D2Sprite() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-XZ§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-X§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(Id,false)); + this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.§_-Pk§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-j1§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.§_-Yz§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.§_-SJ§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.§_-pD§ = protocol.getCodec(new TypeCodecInfo(Float,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_alwaysOnTop:Boolean = Boolean(this.§_-XZ§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","alwaysOnTop",value_alwaysOnTop); + var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","boundBoxId",value_boundBoxId); + var value_height:Number = Number(this.§_-X§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","height",value_height); + var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","id",value_id); + var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","materialId",value_materialId); + var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","name",value_name); + var value_originX:Number = Number(this.§_-Pk§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originX",value_originX); + var value_originY:Number = Number(this.§_-j1§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originY",value_originY); + var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","parentId",value_parentId); + var value_perspectiveScale:Boolean = Boolean(this.§_-Yz§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","perspectiveScale",value_perspectiveScale); + var value_rotation:Number = Number(this.§_-SJ§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","rotation",value_rotation); + var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","transform",value_transform); + var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","visible",value_visible); + var value_width:Number = Number(this.§_-pD§.decode(protocolBuffer) as Number); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","width",value_width); + return new A3D2Sprite(value_alwaysOnTop,value_boundBoxId,value_height,value_id,value_materialId,value_name,value_originX,value_originY,value_parentId,value_perspectiveScale,value_rotation,value_transform,value_visible,value_width); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Sprite = A3D2Sprite(object); + this.§_-XZ§.encode(protocolBuffer,struct.alwaysOnTop); + this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId); + this.§_-X§.encode(protocolBuffer,struct.height); + this.§_-2o§.encode(protocolBuffer,struct.id); + this.§_-Av§.encode(protocolBuffer,struct.materialId); + this.§_-XW§.encode(protocolBuffer,struct.name); + this.§_-Pk§.encode(protocolBuffer,struct.originX); + this.§_-j1§.encode(protocolBuffer,struct.originY); + this.§_-jk§.encode(protocolBuffer,struct.parentId); + this.§_-Yz§.encode(protocolBuffer,struct.perspectiveScale); + this.§_-SJ§.encode(protocolBuffer,struct.rotation); + this.§_-S2§.encode(protocolBuffer,struct.transform); + this.§_-h9§.encode(protocolBuffer,struct.visible); + this.§_-pD§.encode(protocolBuffer,struct.width); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as new file mode 100644 index 0000000..8b2b989 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as @@ -0,0 +1,58 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Surface; + + public class CodecA3D2Surface implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-AL§:ICodec; + + private var §_-Av§:ICodec; + + private var §_-pJ§:ICodec; + + public function CodecA3D2Surface() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-AL§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.§_-pJ§ = protocol.getCodec(new TypeCodecInfo(int,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","indexBegin",value_indexBegin); + var value_materialId:int = int(this.§_-Av§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","materialId",value_materialId); + var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int); + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","numTriangles",value_numTriangles); + return new A3D2Surface(value_indexBegin,value_materialId,value_numTriangles); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Surface = A3D2Surface(object); + this.§_-AL§.encode(protocolBuffer,struct.indexBegin); + this.§_-Av§.encode(protocolBuffer,struct.materialId); + this.§_-pJ§.encode(protocolBuffer,struct.numTriangles); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as new file mode 100644 index 0000000..4748a3a --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as @@ -0,0 +1,47 @@ +package _codec.versions.version2.a3d.objects +{ + 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 commons.A3DMatrix; + import versions.version2.a3d.objects.A3D2Transform; + + public class CodecA3D2Transform implements ICodec + { + public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); + + private var §_-dG§:ICodec; + + public function CodecA3D2Transform() + { + super(); + } + + public function init(protocol:IProtocol) : void + { + this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + log = IClientLog(OSGi.getInstance().getService(IClientLog)); + var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix; + log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Transform","matrix",value_matrix); + return new A3D2Transform(value_matrix); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var struct:A3D2Transform = A3D2Transform(object); + this.§_-dG§.encode(protocolBuffer,struct.matrix); + } + } +} + diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as new file mode 100644 index 0000000..a830f36 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2AmbientLight; + + public class VectorCodecA3D2AmbientLightLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2AmbientLightLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AmbientLight,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2AmbientLight(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2AmbientLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as similarity index 52% rename from src/package_49/VectorCodecA3D2AmbientLightLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as index 120ed43..584a20e 100644 --- a/src/package_49/VectorCodecA3D2AmbientLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2AmbientLight; + 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 versions.version2.a3d.objects.A3D2AmbientLight; - public class VectorCodecA3D2AmbientLightLevel2 implements name_152 + public class VectorCodecA3D2AmbientLightLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2AmbientLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AmbientLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2AmbientLight(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2AmbientLight(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2AmbientLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2AmbientLightLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as index e9b130e..dd0c094 100644 --- a/src/package_49/VectorCodecA3D2AmbientLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2AmbientLight; + 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 versions.version2.a3d.objects.A3D2AmbientLight; - public class VectorCodecA3D2AmbientLightLevel3 implements name_152 + public class VectorCodecA3D2AmbientLightLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2AmbientLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AmbientLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2AmbientLight(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2AmbientLight(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as new file mode 100644 index 0000000..984781b --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Box; + + public class VectorCodecA3D2BoxLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2BoxLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Box,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Box(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2BoxLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2BoxLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as index 588ead8..262ca23 100644 --- a/src/package_49/VectorCodecA3D2BoxLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Box; + 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 versions.version2.a3d.objects.A3D2Box; - public class VectorCodecA3D2BoxLevel2 implements name_152 + public class VectorCodecA3D2BoxLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Box,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Box,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Box(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Box(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2BoxLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as similarity index 56% rename from src/package_49/VectorCodecA3D2BoxLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as index 6d52810..8c783d2 100644 --- a/src/package_49/VectorCodecA3D2BoxLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Box; + 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 versions.version2.a3d.objects.A3D2Box; - public class VectorCodecA3D2BoxLevel3 implements name_152 + public class VectorCodecA3D2BoxLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Box,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Box,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Box(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Box(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as new file mode 100644 index 0000000..ea26c02 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Decal; + + public class VectorCodecA3D2DecalLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2DecalLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Decal,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Decal(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2DecalLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2DecalLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as index 222619a..4e7c754 100644 --- a/src/package_49/VectorCodecA3D2DecalLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Decal; + 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 versions.version2.a3d.objects.A3D2Decal; - public class VectorCodecA3D2DecalLevel2 implements name_152 + public class VectorCodecA3D2DecalLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Decal,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Decal,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Decal(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Decal(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2DecalLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2DecalLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as index 8b386ae..5ed602c 100644 --- a/src/package_49/VectorCodecA3D2DecalLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Decal; + 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 versions.version2.a3d.objects.A3D2Decal; - public class VectorCodecA3D2DecalLevel3 implements name_152 + public class VectorCodecA3D2DecalLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Decal,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Decal,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Decal(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Decal(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as new file mode 100644 index 0000000..47f7d00 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2DirectionalLight; + + public class VectorCodecA3D2DirectionalLightLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2DirectionalLightLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2DirectionalLight,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2DirectionalLight(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2DirectionalLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as similarity index 54% rename from src/package_49/VectorCodecA3D2DirectionalLightLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as index eda8c4e..675f957 100644 --- a/src/package_49/VectorCodecA3D2DirectionalLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2DirectionalLight; + 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 versions.version2.a3d.objects.A3D2DirectionalLight; - public class VectorCodecA3D2DirectionalLightLevel2 implements name_152 + public class VectorCodecA3D2DirectionalLightLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2DirectionalLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2DirectionalLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2DirectionalLight(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2DirectionalLight(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2DirectionalLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as similarity index 60% rename from src/package_49/VectorCodecA3D2DirectionalLightLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as index 42ef410..d6fe234 100644 --- a/src/package_49/VectorCodecA3D2DirectionalLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2DirectionalLight; + 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 versions.version2.a3d.objects.A3D2DirectionalLight; - public class VectorCodecA3D2DirectionalLightLevel3 implements name_152 + public class VectorCodecA3D2DirectionalLightLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2DirectionalLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2DirectionalLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2DirectionalLight(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2DirectionalLight(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as new file mode 100644 index 0000000..5dbd870 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2JointBindTransform; + + public class VectorCodecA3D2JointBindTransformLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2JointBindTransformLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2JointBindTransform,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2JointBindTransform(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2JointBindTransformLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as similarity index 54% rename from src/package_49/VectorCodecA3D2JointBindTransformLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as index ae3072a..c6d0837 100644 --- a/src/package_49/VectorCodecA3D2JointBindTransformLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2JointBindTransform; + 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 versions.version2.a3d.objects.A3D2JointBindTransform; - public class VectorCodecA3D2JointBindTransformLevel2 implements name_152 + public class VectorCodecA3D2JointBindTransformLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2JointBindTransform,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2JointBindTransform,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2JointBindTransform(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2JointBindTransform(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2JointBindTransformLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as similarity index 60% rename from src/package_49/VectorCodecA3D2JointBindTransformLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as index 73707ff..1c17218 100644 --- a/src/package_49/VectorCodecA3D2JointBindTransformLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2JointBindTransform; + 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 versions.version2.a3d.objects.A3D2JointBindTransform; - public class VectorCodecA3D2JointBindTransformLevel3 implements name_152 + public class VectorCodecA3D2JointBindTransformLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2JointBindTransform,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2JointBindTransform,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2JointBindTransform(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2JointBindTransform(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as new file mode 100644 index 0000000..93acac6 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Joint; + + public class VectorCodecA3D2JointLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2JointLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Joint,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Joint(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2JointLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2JointLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as index d822317..fedf812 100644 --- a/src/package_49/VectorCodecA3D2JointLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Joint; + 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 versions.version2.a3d.objects.A3D2Joint; - public class VectorCodecA3D2JointLevel2 implements name_152 + public class VectorCodecA3D2JointLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Joint,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Joint,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Joint(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Joint(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2JointLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2JointLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as index f682063..b08a55d 100644 --- a/src/package_49/VectorCodecA3D2JointLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Joint; + 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 versions.version2.a3d.objects.A3D2Joint; - public class VectorCodecA3D2JointLevel3 implements name_152 + public class VectorCodecA3D2JointLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Joint,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Joint,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Joint(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Joint(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as new file mode 100644 index 0000000..296855d --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Mesh; + + public class VectorCodecA3D2MeshLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2MeshLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Mesh,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Mesh(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2MeshLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2MeshLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as index 0b23661..ae36a59 100644 --- a/src/package_49/VectorCodecA3D2MeshLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Mesh; + 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 versions.version2.a3d.objects.A3D2Mesh; - public class VectorCodecA3D2MeshLevel2 implements name_152 + public class VectorCodecA3D2MeshLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Mesh,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Mesh,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Mesh(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Mesh(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2MeshLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2MeshLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as index 75a36df..c929261 100644 --- a/src/package_49/VectorCodecA3D2MeshLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Mesh; + 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 versions.version2.a3d.objects.A3D2Mesh; - public class VectorCodecA3D2MeshLevel3 implements name_152 + public class VectorCodecA3D2MeshLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Mesh,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Mesh,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Mesh(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Mesh(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as new file mode 100644 index 0000000..67ff780 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Object; + + public class VectorCodecA3D2ObjectLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2ObjectLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Object,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Object(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2ObjectLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2ObjectLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as index adae023..df5fa86 100644 --- a/src/package_49/VectorCodecA3D2ObjectLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Object; + 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 versions.version2.a3d.objects.A3D2Object; - public class VectorCodecA3D2ObjectLevel2 implements name_152 + public class VectorCodecA3D2ObjectLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Object,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Object,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Object(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Object(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2ObjectLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2ObjectLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as index b601520..b9f146a 100644 --- a/src/package_49/VectorCodecA3D2ObjectLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Object; + 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 versions.version2.a3d.objects.A3D2Object; - public class VectorCodecA3D2ObjectLevel3 implements name_152 + public class VectorCodecA3D2ObjectLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Object,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Object,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Object(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Object(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as new file mode 100644 index 0000000..3b48de0 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2OmniLight; + + public class VectorCodecA3D2OmniLightLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2OmniLightLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2OmniLight,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2OmniLight(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2OmniLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2OmniLightLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as index 4f1fa69..4b44965 100644 --- a/src/package_49/VectorCodecA3D2OmniLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2OmniLight; + 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 versions.version2.a3d.objects.A3D2OmniLight; - public class VectorCodecA3D2OmniLightLevel2 implements name_152 + public class VectorCodecA3D2OmniLightLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2OmniLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2OmniLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2OmniLight(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2OmniLight(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2OmniLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2OmniLightLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as index e4ac61e..af65c68 100644 --- a/src/package_49/VectorCodecA3D2OmniLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2OmniLight; + 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 versions.version2.a3d.objects.A3D2OmniLight; - public class VectorCodecA3D2OmniLightLevel3 implements name_152 + public class VectorCodecA3D2OmniLightLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2OmniLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2OmniLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2OmniLight(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2OmniLight(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as new file mode 100644 index 0000000..b144c4a --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Skin; + + public class VectorCodecA3D2SkinLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2SkinLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Skin,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Skin(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2SkinLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2SkinLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as index 571c7a2..d3f9789 100644 --- a/src/package_49/VectorCodecA3D2SkinLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Skin; + 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 versions.version2.a3d.objects.A3D2Skin; - public class VectorCodecA3D2SkinLevel2 implements name_152 + public class VectorCodecA3D2SkinLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Skin,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Skin,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Skin(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Skin(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2SkinLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2SkinLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as index aa90c50..4f2bf13 100644 --- a/src/package_49/VectorCodecA3D2SkinLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Skin; + 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 versions.version2.a3d.objects.A3D2Skin; - public class VectorCodecA3D2SkinLevel3 implements name_152 + public class VectorCodecA3D2SkinLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Skin,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Skin,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Skin(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Skin(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as new file mode 100644 index 0000000..e036438 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2SpotLight; + + public class VectorCodecA3D2SpotLightLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2SpotLightLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2SpotLight,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2SpotLight(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2SpotLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2SpotLightLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as index 8540f42..3f4a7c5 100644 --- a/src/package_49/VectorCodecA3D2SpotLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2SpotLight; + 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 versions.version2.a3d.objects.A3D2SpotLight; - public class VectorCodecA3D2SpotLightLevel2 implements name_152 + public class VectorCodecA3D2SpotLightLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2SpotLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2SpotLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2SpotLight(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2SpotLight(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2SpotLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2SpotLightLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as index 8267434..d80dd7d 100644 --- a/src/package_49/VectorCodecA3D2SpotLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2SpotLight; + 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 versions.version2.a3d.objects.A3D2SpotLight; - public class VectorCodecA3D2SpotLightLevel3 implements name_152 + public class VectorCodecA3D2SpotLightLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2SpotLight,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2SpotLight,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2SpotLight(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2SpotLight(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as new file mode 100644 index 0000000..6bd77d5 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Sprite; + + public class VectorCodecA3D2SpriteLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2SpriteLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Sprite,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Sprite(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2SpriteLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2SpriteLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as index b287484..a5b57b1 100644 --- a/src/package_49/VectorCodecA3D2SpriteLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Sprite; + 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 versions.version2.a3d.objects.A3D2Sprite; - public class VectorCodecA3D2SpriteLevel2 implements name_152 + public class VectorCodecA3D2SpriteLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Sprite,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Sprite,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Sprite(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Sprite(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2SpriteLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2SpriteLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as index 73e7a5a..5d24ce1 100644 --- a/src/package_49/VectorCodecA3D2SpriteLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Sprite; + 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 versions.version2.a3d.objects.A3D2Sprite; - public class VectorCodecA3D2SpriteLevel3 implements name_152 + public class VectorCodecA3D2SpriteLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Sprite,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Sprite,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Sprite(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Sprite(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as new file mode 100644 index 0000000..21383e3 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Surface; + + public class VectorCodecA3D2SurfaceLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2SurfaceLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Surface,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Surface(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2SurfaceLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2SurfaceLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as index a833221..f635f10 100644 --- a/src/package_49/VectorCodecA3D2SurfaceLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Surface; + 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 versions.version2.a3d.objects.A3D2Surface; - public class VectorCodecA3D2SurfaceLevel2 implements name_152 + public class VectorCodecA3D2SurfaceLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Surface,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Surface,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Surface(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Surface(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2SurfaceLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2SurfaceLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as index 4ebbdb5..e454d02 100644 --- a/src/package_49/VectorCodecA3D2SurfaceLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Surface; + 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 versions.version2.a3d.objects.A3D2Surface; - public class VectorCodecA3D2SurfaceLevel3 implements name_152 + public class VectorCodecA3D2SurfaceLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Surface,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Surface,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Surface(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Surface(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as new file mode 100644 index 0000000..23fe8e5 --- /dev/null +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as @@ -0,0 +1,59 @@ +package _codec.versions.version2.a3d.objects +{ + 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 versions.version2.a3d.objects.A3D2Transform; + + public class VectorCodecA3D2TransformLevel1 implements ICodec + { + private var elementCodec:ICodec; + + private var optionalElement:Boolean; + + public function VectorCodecA3D2TransformLevel1(optionalElement:Boolean) + { + super(); + this.optionalElement = optionalElement; + } + + public function init(protocol:IProtocol) : void + { + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); + if(this.optionalElement) + { + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + var result:Vector. = new Vector.(length,true); + for(var i:int = 0; i < length; i++) + { + result[i] = A3D2Transform(this.elementCodec.decode(protocolBuffer)); + } + return result; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == null) + { + throw new Error("Object is null. Use @ProtocolOptional annotation."); + } + var data:Vector. = Vector.(object); + var length:int = int(data.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + for(var i:int = 0; i < length; i++) + { + this.elementCodec.encode(protocolBuffer,data[i]); + } + } + } +} + diff --git a/src/package_49/VectorCodecA3D2TransformLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as similarity index 50% rename from src/package_49/VectorCodecA3D2TransformLevel2.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as index c824f1b..23d5b6c 100644 --- a/src/package_49/VectorCodecA3D2TransformLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Transform; + 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 versions.version2.a3d.objects.A3D2Transform; - public class VectorCodecA3D2TransformLevel2 implements name_152 + public class VectorCodecA3D2TransformLevel2 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,32 +20,32 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Transform,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector. = null; var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; i2++) { - items2[i2] = A3D2Transform(this.elementCodec.method_296(protocolBuffer)); + items2[i2] = A3D2Transform(this.elementCodec.decode(protocolBuffer)); } } i1++; @@ -53,7 +53,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector. = null; var length2:int = 0; @@ -64,23 +64,23 @@ package package_49 } var data:Vector.> = Vector.>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { - this.elementCodec.method_295(protocolBuffer,items2[i2]); + this.elementCodec.encode(protocolBuffer,items2[i2]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/package_49/VectorCodecA3D2TransformLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as similarity index 58% rename from src/package_49/VectorCodecA3D2TransformLevel3.as rename to src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as index 1e816af..2fe30c2 100644 --- a/src/package_49/VectorCodecA3D2TransformLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as @@ -1,16 +1,16 @@ -package package_49 +package _codec.versions.version2.a3d.objects { - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Transform; + 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 versions.version2.a3d.objects.A3D2Transform; - public class VectorCodecA3D2TransformLevel3 implements name_152 + public class VectorCodecA3D2TransformLevel3 implements ICodec { - private var elementCodec:name_152; + private var elementCodec:ICodec; private var optionalElement:Boolean; @@ -20,16 +20,16 @@ package package_49 this.optionalElement = optionalElement; } - public function init(protocol:name_163) : void + public function init(protocol:IProtocol) : void { - this.elementCodec = protocol.name_448(new name_148(A3D2Transform,false)); + this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); if(this.optionalElement) { - this.elementCodec = new name_150(this.elementCodec); + this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } - public function method_296(protocolBuffer:name_442) : Object + public function decode(protocolBuffer:ProtocolBuffer) : Object { var length2:int = 0; var items2:Vector.> = null; @@ -37,25 +37,25 @@ package package_49 var length3:int = 0; var items3:Vector. = null; var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); + var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length2 = name_443.name_445(protocolBuffer); + length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.name_447()) + if(!protocolBuffer.optionalMap.OptionalMap()) { - length3 = name_443.name_445(protocolBuffer); + length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); items2[i2] = items3; for(i3 = 0; i3 < length3; i3++) { - items3[i3] = A3D2Transform(this.elementCodec.method_296(protocolBuffer)); + items3[i3] = A3D2Transform(this.elementCodec.decode(protocolBuffer)); } } i2++; @@ -66,7 +66,7 @@ package package_49 return result; } - public function method_295(protocolBuffer:name_442, object:Object) : void + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { var items2:Vector.> = null; var length2:int = 0; @@ -80,37 +80,37 @@ package package_49 } var data:Vector.>> = Vector.>>(object); var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); + LengthCodecHelper.encodeLength(protocolBuffer,length1); for(var i1:int = 0; i1 < length1; i1++) { items2 = data[i1]; if(items2 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); + LengthCodecHelper.encodeLength(protocolBuffer,length2); for(i2 = 0; i2 < length2; i2++) { items3 = items2[i1]; if(items3 != null) { - protocolBuffer.optionalMap.name_444(false); + protocolBuffer.optionalMap.addBit(false); length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); + LengthCodecHelper.encodeLength(protocolBuffer,length3); for(i3 = 0; i3 < length3; i3++) { - this.elementCodec.method_295(protocolBuffer,items3[i3]); + this.elementCodec.encode(protocolBuffer,items3[i3]); } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } else { - protocolBuffer.optionalMap.name_444(true); + protocolBuffer.optionalMap.addBit(true); } } } diff --git a/src/alternativa/ClientConfigurator.as b/src/alternativa/ClientConfigurator.as deleted file mode 100644 index 2d86603..0000000 --- a/src/alternativa/ClientConfigurator.as +++ /dev/null @@ -1,209 +0,0 @@ -package alternativa -{ - import flash.display.DisplayObjectContainer; - import flash.display.Stage; - import flash.events.KeyboardEvent; - import flash.ui.Keyboard; - import package_102.name_355; - import package_102.name_359; - import package_103.name_361; - import package_103.name_365; - import package_104.name_358; - import package_104.name_370; - import package_105.name_363; - import package_105.name_364; - import package_106.name_357; - import package_106.name_367; - import package_107.name_362; - import package_107.name_369; - import alternativa.utils.Properties; - import package_31.name_366; - import package_39.name_160; - import package_39.name_368; - import alternativa.osgi.OSGi; - import alternativa.osgi.service.console.Console; - import alternativa.osgi.service.console.ClientLogConnector; - import alternativa.osgi.service.console.IConsole; - import alternativa.startup.IClientConfigurator; - import alternativa.startup.LibraryInfo; - import alternativa.startup.ConnectionParameters; - - public class ClientConfigurator implements IClientConfigurator - { - private var osgi:OSGi; - - private var clientLog:name_160; - - private var console:Console; - - private var var_83:KeyboardShortcut; - - private var var_84:KeyboardShortcut; - - public function ClientConfigurator() - { - super(); - } - - public function start(rootContainer:DisplayObjectContainer, urlParams:Properties, libraryInfos:Vector., connectionParameters:ConnectionParameters, startupLogStrings:Vector.) : void - { - var libraryInfo:LibraryInfo = null; - this.osgi = OSGi.name_8(); - this.initClientLog(urlParams,startupLogStrings); - this.initConsole(rootContainer.stage,urlParams); - this.osgi.method_116(name_365,new name_361(urlParams,libraryInfos)); - this.osgi.method_116(name_363,new name_364(rootContainer)); - this.osgi.method_116(name_362,new name_369(connectionParameters.serverAddress,connectionParameters.serverPorts,connectionParameters.resourcesRootURL)); - var language:String = urlParams.method_25("lang","ru"); - this.osgi.method_116(name_358,new name_370(language,"en")); - var dumpService:name_355 = new name_359(this.osgi); - this.osgi.method_116(name_355,dumpService); - dumpService.name_360(new name_367(this.osgi)); - dumpService.name_360(new name_357(this.osgi)); - for each(libraryInfo in libraryInfos) - { - this.osgi.method_121(new name_366(libraryInfo.manifestProperties)); - } - } - - private function initClientLog(urlParams:Properties, startupLogStrings:Vector.) : void - { - var s:String = null; - var logChannelBufferSize:int = int(int(urlParams.method_25("log_channel_buffer_size","1000"))); - this.clientLog = new name_368(logChannelBufferSize); - OSGi.clientLog = this.clientLog; - this.osgi.method_116(name_160,this.clientLog); - for each(s in startupLogStrings) - { - this.clientLog.log("startup",s); - } - } - - private function initConsole(stage:Stage, urlParams:Properties) : void - { - var channelName:String = null; - this.console = new Console(stage,50,100,1,1); - this.osgi.method_116(IConsole,this.console); - var consoleParams:String = urlParams.method_24("console"); - if(Boolean(consoleParams)) - { - this.configureConsole(stage,this.console,consoleParams); - } - var clientLogConnector:ClientLogConnector = new ClientLogConnector(this.clientLog,this.console); - this.console.name_45("log",clientLogConnector.name_371); - var logChannels:String = urlParams.method_24("showlog"); - if(Boolean(logChannels)) - { - if(logChannels == "all") - { - this.clientLog.addLogListener(clientLogConnector); - } - else - { - for each(channelName in logChannels.split(",")) - { - this.clientLog.addLogChannelListener(channelName,clientLogConnector); - } - } - } - } - - private function configureConsole(stage:Stage, console:Console, consoleParams:String) : void - { - var pair:String = null; - var parts:Array = null; - var pairs:Array = consoleParams.split(","); - var params:Object = {}; - for each(pair in pairs) - { - parts = pair.split(":"); - params[parts[0]] = parts[1]; - } - if(params["show"] != null) - { - console.show(); - } - if(params["ha"] != null) - { - console.method_138 = int(params["ha"]); - } - if(params["va"] != null) - { - console.method_137 = int(params["va"]); - } - if(params["w"] != null) - { - console.width = int(params["w"]); - } - if(params["h"] != null) - { - console.height = int(params["h"]); - } - if(params["alpha"] != null) - { - console.method_139("con_alpha " + params["alpha"]); - } - this.var_83 = this.parseShortcut(params["hsw"],Keyboard.LEFT,false,true,true); - this.var_84 = this.parseShortcut(params["vsw"],Keyboard.UP,false,true,true); - stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKey,true); - } - - private function parseShortcut(s:String, defKey:int, defAlt:Boolean, defCtrl:Boolean, defShift:Boolean) : KeyboardShortcut - { - if(s == null) - { - return new KeyboardShortcut(defKey,defAlt,defCtrl,defShift); - } - return new KeyboardShortcut(parseInt(s),s.indexOf("a") > -1,s.indexOf("c") > -1,s.indexOf("s") > -1); - } - - private function onKey(e:KeyboardEvent) : void - { - switch(e.keyCode) - { - case this.var_83.keyCode: - if(this.var_83.altKey == e.altKey && this.var_83.shiftKey == e.shiftKey && this.var_83.ctrlKey == e.ctrlKey) - { - if(this.console.method_138 == 1) - { - this.console.method_138 = 2; - break; - } - this.console.method_138 = 1; - } - break; - case this.var_84.keyCode: - if(this.var_84.altKey == e.altKey && this.var_84.shiftKey == e.shiftKey && this.var_84.ctrlKey == e.ctrlKey) - { - if(this.console.method_137 == 1) - { - this.console.method_137 = 2; - break; - } - this.console.method_137 = 1; - break; - } - } - } - } -} - -class KeyboardShortcut -{ - public var keyCode:int; - - public var altKey:Boolean; - - public var ctrlKey:Boolean; - - public var shiftKey:Boolean; - - public function KeyboardShortcut(keyCode:int, altKey:Boolean, ctrlKey:Boolean, shiftKey:Boolean) - { - super(); - this.keyCode = keyCode; - this.altKey = altKey; - this.ctrlKey = ctrlKey; - this.shiftKey = shiftKey; - } -} diff --git a/src/alternativa/engine3d/animation/AnimationController.as b/src/alternativa/engine3d/animation/AnimationController.as new file mode 100644 index 0000000..27b80b8 --- /dev/null +++ b/src/alternativa/engine3d/animation/AnimationController.as @@ -0,0 +1,182 @@ +package alternativa.engine3d.animation +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.animation.events.NotifyEvent; + import alternativa.engine3d.core.Object3D; + import flash.utils.Dictionary; + import flash.utils.getTimer; + + use namespace alternativa3d; + + public class AnimationController + { + private var §_-cn§:AnimationNode; + + private var §_-Kq§:Vector.; + + private var §_-62§:Vector. = new Vector.(); + + private var §_-oX§:Dictionary = new Dictionary(); + + private var §_-eB§:Object = new Object(); + + private var §_-Jl§:int = -1; + + alternativa3d var nearestNotifyers:AnimationNotify; + + public function AnimationController() + { + super(); + } + + public function get root() : AnimationNode + { + return this.§_-cn§; + } + + public function set root(value:AnimationNode) : void + { + if(this.§_-cn§ != value) + { + if(this.§_-cn§ != null) + { + this.§_-cn§.alternativa3d::setController(null); + this.§_-cn§.alternativa3d::_-Eo = false; + } + if(value != null) + { + value.alternativa3d::setController(this); + value.alternativa3d::_-Eo = true; + } + this.§_-cn§ = value; + } + } + + public function update() : void + { + var interval:Number = NaN; + var data:AnimationState = null; + var i:int = 0; + var count:int = 0; + var _loc6_:int = 0; + var object:Object3D = null; + if(this.§_-Jl§ < 0) + { + this.§_-Jl§ = getTimer(); + interval = 0; + } + else + { + _loc6_ = int(getTimer()); + interval = 0.001 * (_loc6_ - this.§_-Jl§); + this.§_-Jl§ = _loc6_; + } + if(this.§_-cn§ == null) + { + return; + } + for each(data in this.§_-eB§) + { + data.reset(); + } + this.§_-cn§.alternativa3d::update(interval,1); + for(i = 0,count = int(this.§_-62§.length); i < count; ) + { + object = this.§_-62§[i]; + data = this.§_-eB§[object.name]; + if(data != null) + { + data.apply(object); + } + i++; + } + for(var notify:AnimationNotify = this.alternativa3d::nearestNotifyers; notify != null; ) + { + if(notify.willTrigger(NotifyEvent.NOTIFY)) + { + notify.dispatchEvent(new NotifyEvent(notify)); + } + notify = notify.alternativa3d::_-XY; + } + this.alternativa3d::nearestNotifyers = null; + } + + alternativa3d function addObject(object:Object) : void + { + if(object in this.§_-oX§) + { + ++this.§_-oX§[object]; + } + else + { + if(object is Object3D) + { + this.§_-62§.push(object); + } + else + { + this.§_-Kq§.push(object); + } + this.§_-oX§[object] = 1; + } + } + + alternativa3d function removeObject(object:Object) : void + { + var index:int = 0; + var j:int = 0; + var count:int = 0; + var used:int = int(this.§_-oX§[object]); + used--; + if(used <= 0) + { + if(object is Object3D) + { + index = int(this.§_-62§.indexOf(object)); + count = this.§_-62§.length - 1; + for(j = index + 1; index < count; ) + { + this.§_-62§[index] = this.§_-62§[j]; + index++; + j++; + } + this.§_-62§.length = count; + } + else + { + index = int(this.§_-Kq§.indexOf(object)); + count = this.§_-Kq§.length - 1; + for(j = index + 1; index < count; ) + { + this.§_-Kq§[index] = this.§_-Kq§[j]; + index++; + j++; + } + this.§_-Kq§.length = count; + } + delete this.§_-oX§[object]; + } + else + { + this.§_-oX§[object] = used; + } + } + + alternativa3d function getState(name:String) : AnimationState + { + var state:AnimationState = this.§_-eB§[name]; + if(state == null) + { + state = new AnimationState(); + this.§_-eB§[name] = state; + } + return state; + } + + public function freeze() : void + { + this.§_-Jl§ = -1; + } + } +} + diff --git a/src/package_124/class_42.as b/src/alternativa/engine3d/animation/AnimationNode.as similarity index 51% rename from src/package_124/class_42.as rename to src/alternativa/engine3d/animation/AnimationNode.as index 2d27d4e..d912ecd 100644 --- a/src/package_124/class_42.as +++ b/src/alternativa/engine3d/animation/AnimationNode.as @@ -1,30 +1,30 @@ -package package_124 +package alternativa.engine3d.animation { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; - public class class_42 + public class AnimationNode { - alternativa3d var var_694:Boolean = false; + alternativa3d var §_-Eo§:Boolean = false; - alternativa3d var _parent:class_42; + alternativa3d var _parent:AnimationNode; - alternativa3d var controller:name_750; + alternativa3d var controller:AnimationController; public var speed:Number = 1; - public function class_42() + public function AnimationNode() { super(); } public function get isActive() : Boolean { - return this.alternativa3d::var_694 && this.alternativa3d::controller != null; + return this.alternativa3d::_-Eo && this.alternativa3d::controller != null; } - public function get parent() : class_42 + public function get parent() : AnimationNode { return this.alternativa3d::_parent; } @@ -33,25 +33,25 @@ package package_124 { } - alternativa3d function setController(value:name_750) : void + alternativa3d function setController(value:AnimationController) : void { this.alternativa3d::controller = value; } - alternativa3d function method_853(node:class_42) : void + alternativa3d function addNode(node:AnimationNode) : void { if(node.alternativa3d::_parent != null) { - node.alternativa3d::_parent.alternativa3d::method_852(node); + node.alternativa3d::_parent.alternativa3d::removeNode(node); } node.alternativa3d::_parent = this; node.alternativa3d::setController(this.alternativa3d::controller); } - alternativa3d function method_852(node:class_42) : void + alternativa3d function removeNode(node:AnimationNode) : void { node.alternativa3d::setController(null); - node.alternativa3d::var_694 = false; + node.alternativa3d::_-Eo = false; node.alternativa3d::_parent = null; } } diff --git a/src/alternativa/engine3d/animation/AnimationNotify.as b/src/alternativa/engine3d/animation/AnimationNotify.as new file mode 100644 index 0000000..22c9dbb --- /dev/null +++ b/src/alternativa/engine3d/animation/AnimationNotify.as @@ -0,0 +1,32 @@ +package alternativa.engine3d.animation +{ + import alternativa.engine3d.alternativa3d; + import flash.events.EventDispatcher; + + use namespace alternativa3d; + + public class AnimationNotify extends EventDispatcher + { + public var name:String; + + alternativa3d var §_-qC§:Number = 0; + + alternativa3d var next:AnimationNotify; + + alternativa3d var §_-1n§:Number; + + alternativa3d var §_-XY§:AnimationNotify; + + public function AnimationNotify(name:String) + { + super(); + this.name = name; + } + + public function get time() : Number + { + return this.alternativa3d::_-qC; + } + } +} + diff --git a/src/package_124/name_749.as b/src/alternativa/engine3d/animation/AnimationState.as similarity index 66% rename from src/package_124/name_749.as rename to src/alternativa/engine3d/animation/AnimationState.as index 024b983..49f72a2 100644 --- a/src/package_124/name_749.as +++ b/src/alternativa/engine3d/animation/AnimationState.as @@ -1,25 +1,25 @@ -package package_124 +package alternativa.engine3d.animation { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.animation.keys.TransformKey; + import alternativa.engine3d.core.Object3D; import flash.geom.Vector3D; - import package_125.name_787; - import package_21.name_78; use namespace alternativa3d; - public class name_749 + public class AnimationState { - public var var_732:int = 0; + public var §_-6V§:int = 0; - public var transform:name_787 = new name_787(); + public var transform:TransformKey = new TransformKey(); - public var var_730:Number = 0; + public var §_-H1§:Number = 0; public var numbers:Object = new Object(); - public var var_731:Object = new Object(); + public var §_-NT§:Object = new Object(); - public function name_749() + public function AnimationState() { super(); } @@ -27,50 +27,50 @@ package package_124 public function reset() : void { var key:String = null; - this.var_730 = 0; + this.§_-H1§ = 0; for(key in this.numbers) { delete this.numbers[key]; - delete this.var_731[key]; + delete this.§_-NT§[key]; } } - public function method_920(key:name_787, weight:Number) : void + public function addWeightedTransform(key:TransformKey, weight:Number) : void { - this.var_730 += weight; - this.transform.interpolate(this.transform,key,weight / this.var_730); + this.§_-H1§ += weight; + this.transform.interpolate(this.transform,key,weight / this.§_-H1§); } - public function method_919(property:String, value:Number, weight:Number) : void + public function addWeightedNumber(property:String, value:Number, weight:Number) : void { var current:Number = NaN; - var sum:Number = Number(this.var_731[property]); + var sum:Number = Number(this.§_-NT§[property]); if(sum == sum) { sum += weight; weight /= sum; current = Number(this.numbers[property]); this.numbers[property] = (1 - weight) * current + weight * value; - this.var_731[property] = sum; + this.§_-NT§[property] = sum; } else { this.numbers[property] = value; - this.var_731[property] = weight; + this.§_-NT§[property] = weight; } } - public function name_683(object:name_78) : void + public function apply(object:Object3D) : void { var sum:Number = NaN; var weight:Number = NaN; var key:String = null; - if(this.var_730 > 0) + if(this.§_-H1§ > 0) { object.x = this.transform.alternativa3d::x; object.y = this.transform.alternativa3d::y; object.z = this.transform.alternativa3d::z; - this.method_917(this.transform.alternativa3d::rotation,object); + this.setEulerAngles(this.transform.alternativa3d::rotation,object); object.scaleX = this.transform.alternativa3d::scaleX; object.scaleY = this.transform.alternativa3d::scaleY; object.scaleZ = this.transform.alternativa3d::scaleZ; @@ -80,48 +80,48 @@ package package_124 switch(key) { case "x": - sum = Number(this.var_731["x"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["x"]); + weight = sum / (sum + this.§_-H1§); object.x = (1 - weight) * object.x + weight * this.numbers["x"]; break; case "y": - sum = Number(this.var_731["y"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["y"]); + weight = sum / (sum + this.§_-H1§); object.y = (1 - weight) * object.y + weight * this.numbers["y"]; break; case "z": - sum = Number(this.var_731["z"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["z"]); + weight = sum / (sum + this.§_-H1§); object.z = (1 - weight) * object.z + weight * this.numbers["z"]; break; case "rotationX": - sum = Number(this.var_731["rotationX"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["rotationX"]); + weight = sum / (sum + this.§_-H1§); object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"]; break; case "rotationY": - sum = Number(this.var_731["rotationY"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["rotationY"]); + weight = sum / (sum + this.§_-H1§); object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"]; break; case "rotationZ": - sum = Number(this.var_731["rotationZ"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["rotationZ"]); + weight = sum / (sum + this.§_-H1§); object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"]; break; case "scaleX": - sum = Number(this.var_731["scaleX"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["scaleX"]); + weight = sum / (sum + this.§_-H1§); object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"]; break; case "scaleY": - sum = Number(this.var_731["scaleY"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["scaleY"]); + weight = sum / (sum + this.§_-H1§); object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"]; break; case "scaleZ": - sum = Number(this.var_731["scaleZ"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["scaleZ"]); + weight = sum / (sum + this.§_-H1§); object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"]; break; default: @@ -131,17 +131,17 @@ package package_124 } } - public function method_921(object:Object) : void + public function applyObject(object:Object) : void { var sum:Number = NaN; var weight:Number = NaN; var key:String = null; - if(this.var_730 > 0) + if(this.§_-H1§ > 0) { object.x = this.transform.alternativa3d::x; object.y = this.transform.alternativa3d::y; object.z = this.transform.alternativa3d::z; - this.method_918(this.transform.alternativa3d::rotation,object); + this.setEulerAnglesObject(this.transform.alternativa3d::rotation,object); object.scaleX = this.transform.alternativa3d::scaleX; object.scaleY = this.transform.alternativa3d::scaleY; object.scaleZ = this.transform.alternativa3d::scaleZ; @@ -151,48 +151,48 @@ package package_124 switch(key) { case "x": - sum = Number(this.var_731["x"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["x"]); + weight = sum / (sum + this.§_-H1§); object.x = (1 - weight) * object.x + weight * this.numbers["x"]; break; case "y": - sum = Number(this.var_731["y"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["y"]); + weight = sum / (sum + this.§_-H1§); object.y = (1 - weight) * object.y + weight * this.numbers["y"]; break; case "z": - sum = Number(this.var_731["z"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["z"]); + weight = sum / (sum + this.§_-H1§); object.z = (1 - weight) * object.z + weight * this.numbers["z"]; break; case "rotationX": - sum = Number(this.var_731["rotationX"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["rotationX"]); + weight = sum / (sum + this.§_-H1§); object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"]; break; case "rotationY": - sum = Number(this.var_731["rotationY"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["rotationY"]); + weight = sum / (sum + this.§_-H1§); object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"]; break; case "rotationZ": - sum = Number(this.var_731["rotationZ"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["rotationZ"]); + weight = sum / (sum + this.§_-H1§); object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"]; break; case "scaleX": - sum = Number(this.var_731["scaleX"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["scaleX"]); + weight = sum / (sum + this.§_-H1§); object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"]; break; case "scaleY": - sum = Number(this.var_731["scaleY"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["scaleY"]); + weight = sum / (sum + this.§_-H1§); object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"]; break; case "scaleZ": - sum = Number(this.var_731["scaleZ"]); - weight = sum / (sum + this.var_730); + sum = Number(this.§_-NT§["scaleZ"]); + weight = sum / (sum + this.§_-H1§); object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"]; break; default: @@ -202,7 +202,7 @@ package package_124 } } - private function method_917(quat:Vector3D, object:name_78) : void + private function setEulerAngles(quat:Vector3D, object:Object3D) : void { var qi2:Number = 2 * quat.x * quat.x; var qj2:Number = 2 * quat.y * quat.y; @@ -235,7 +235,7 @@ package package_124 } } - private function method_918(quat:Vector3D, object:Object) : void + private function setEulerAnglesObject(quat:Vector3D, object:Object) : void { var qi2:Number = 2 * quat.x * quat.x; var qj2:Number = 2 * quat.y * quat.y; diff --git a/src/alternativa/engine3d/animation/events/NotifyEvent.as b/src/alternativa/engine3d/animation/events/NotifyEvent.as new file mode 100644 index 0000000..571da87 --- /dev/null +++ b/src/alternativa/engine3d/animation/events/NotifyEvent.as @@ -0,0 +1,21 @@ +package alternativa.engine3d.animation.events +{ + import alternativa.engine3d.animation.AnimationNotify; + import flash.events.Event; + + public class NotifyEvent extends Event + { + public static const NOTIFY:String = "notify"; + + public function NotifyEvent(notify:AnimationNotify) + { + super(NOTIFY); + } + + public function get notify() : AnimationNotify + { + return AnimationNotify(target); + } + } +} + diff --git a/src/package_125/name_748.as b/src/alternativa/engine3d/animation/keys/Keyframe.as similarity index 52% rename from src/package_125/name_748.as rename to src/alternativa/engine3d/animation/keys/Keyframe.as index a087374..d9dbb98 100644 --- a/src/package_125/name_748.as +++ b/src/alternativa/engine3d/animation/keys/Keyframe.as @@ -1,21 +1,21 @@ -package package_125 +package alternativa.engine3d.animation.keys { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; - public class name_748 + public class Keyframe { - alternativa3d var var_420:Number = 0; + alternativa3d var §_-qC§:Number = 0; - public function name_748() + public function Keyframe() { super(); } public function get time() : Number { - return this.alternativa3d::var_420; + return this.alternativa3d::_-qC; } public function get value() : Object @@ -27,18 +27,18 @@ package package_125 { } - alternativa3d function get nextKeyFrame() : name_748 + alternativa3d function get nextKeyFrame() : Keyframe { return null; } - alternativa3d function set nextKeyFrame(value:name_748) : void + alternativa3d function set nextKeyFrame(value:Keyframe) : void { } public function toString() : String { - return "[Keyframe time = " + this.alternativa3d::var_420.toFixed(2) + " value = " + this.value + "]"; + return "[Keyframe time = " + this.alternativa3d::_-qC.toFixed(2) + " value = " + this.value + "]"; } } } diff --git a/src/alternativa/engine3d/animation/keys/NumberKey.as b/src/alternativa/engine3d/animation/keys/NumberKey.as new file mode 100644 index 0000000..d46c6e2 --- /dev/null +++ b/src/alternativa/engine3d/animation/keys/NumberKey.as @@ -0,0 +1,44 @@ +package alternativa.engine3d.animation.keys +{ + import alternativa.engine3d.alternativa3d; + + use namespace alternativa3d; + + public class NumberKey extends Keyframe + { + alternativa3d var §_-4O§:Number = 0; + + alternativa3d var next:NumberKey; + + public function NumberKey() + { + super(); + } + + public function interpolate(a:NumberKey, b:NumberKey, c:Number) : void + { + this.alternativa3d::_-4O = (1 - c) * a.alternativa3d::_-4O + c * b.alternativa3d::_-4O; + } + + override public function get value() : Object + { + return this.alternativa3d::_-4O; + } + + override public function set value(v:Object) : void + { + this.alternativa3d::_-4O = Number(v); + } + + override alternativa3d function get nextKeyFrame() : Keyframe + { + return this.alternativa3d::next; + } + + override alternativa3d function set nextKeyFrame(value:Keyframe) : void + { + this.alternativa3d::next = NumberKey(value); + } + } +} + diff --git a/src/package_125/name_787.as b/src/alternativa/engine3d/animation/keys/TransformKey.as similarity index 70% rename from src/package_125/name_787.as rename to src/alternativa/engine3d/animation/keys/TransformKey.as index bb932ec..8238772 100644 --- a/src/package_125/name_787.as +++ b/src/alternativa/engine3d/animation/keys/TransformKey.as @@ -1,4 +1,4 @@ -package package_125 +package alternativa.engine3d.animation.keys { import alternativa.engine3d.alternativa3d; import flash.geom.Matrix3D; @@ -7,7 +7,7 @@ package package_125 use namespace alternativa3d; - public class name_787 extends name_748 + public class TransformKey extends Keyframe { alternativa3d var x:Number = 0; @@ -23,9 +23,9 @@ package package_125 alternativa3d var scaleZ:Number = 1; - alternativa3d var next:name_787; + alternativa3d var next:TransformKey; - public function name_787() + public function TransformKey() { super(); } @@ -50,27 +50,27 @@ package package_125 this.alternativa3d::scaleZ = components[2].z; } - public function interpolate(a:name_787, b:name_787, c:Number) : void + public function interpolate(a:TransformKey, b:TransformKey, c:Number) : void { var c2:Number = 1 - c; this.alternativa3d::x = c2 * a.alternativa3d::x + c * b.alternativa3d::x; this.alternativa3d::y = c2 * a.alternativa3d::y + c * b.alternativa3d::y; this.alternativa3d::z = c2 * a.alternativa3d::z + c * b.alternativa3d::z; - this.name_602(a.alternativa3d::rotation,b.alternativa3d::rotation,c,this.alternativa3d::rotation); + this.slerp(a.alternativa3d::rotation,b.alternativa3d::rotation,c,this.alternativa3d::rotation); this.alternativa3d::scaleX = c2 * a.alternativa3d::scaleX + c * b.alternativa3d::scaleX; this.alternativa3d::scaleY = c2 * a.alternativa3d::scaleY + c * b.alternativa3d::scaleY; this.alternativa3d::scaleZ = c2 * a.alternativa3d::scaleZ + c * b.alternativa3d::scaleZ; } - private function name_602(a:Vector3D, b:Vector3D, t:Number, result:Vector3D) : void + private function slerp(a:Vector3D, b:Vector3D, t:Number, result:Vector3D) : void { var k1:Number = NaN; var k2:Number = NaN; var d:Number = NaN; - var theta:Number = NaN; - var sine:Number = NaN; - var beta:Number = NaN; - var alpha:Number = NaN; + var _loc10_:Number = NaN; + var _loc11_:Number = NaN; + var _loc12_:Number = NaN; + var _loc13_:Number = NaN; var flip:Number = 1; var cosine:Number = a.w * b.w + a.x * b.x + a.y * b.y + a.z * b.z; if(cosine < 0) @@ -98,25 +98,25 @@ package package_125 } else { - theta = Number(Math.acos(cosine)); - sine = Number(Math.sin(theta)); - beta = Math.sin((1 - t) * theta) / sine; - alpha = Math.sin(t * theta) / sine * flip; - result.w = a.w * beta + b.w * alpha; - result.x = a.x * beta + b.x * alpha; - result.y = a.y * beta + b.y * alpha; - result.z = a.z * beta + b.z * alpha; + _loc10_ = Number(Math.acos(cosine)); + _loc11_ = Number(Math.sin(_loc10_)); + _loc12_ = Math.sin((1 - t) * _loc10_) / _loc11_; + _loc13_ = Math.sin(t * _loc10_) / _loc11_ * flip; + result.w = a.w * _loc12_ + b.w * _loc13_; + result.x = a.x * _loc12_ + b.x * _loc13_; + result.y = a.y * _loc12_ + b.y * _loc13_; + result.z = a.z * _loc12_ + b.z * _loc13_; } } - override alternativa3d function get nextKeyFrame() : name_748 + override alternativa3d function get nextKeyFrame() : Keyframe { return this.alternativa3d::next; } - override alternativa3d function set nextKeyFrame(value:name_748) : void + override alternativa3d function set nextKeyFrame(value:Keyframe) : void { - this.alternativa3d::next = name_787(value); + this.alternativa3d::next = TransformKey(value); } } } diff --git a/src/package_110/name_389.as b/src/alternativa/engine3d/collisions/EllipsoidCollider.as similarity index 65% rename from src/package_110/name_389.as rename to src/alternativa/engine3d/collisions/EllipsoidCollider.as index 4196f60..2c67f1d 100644 --- a/src/package_110/name_389.as +++ b/src/alternativa/engine3d/collisions/EllipsoidCollider.as @@ -1,15 +1,15 @@ -package package_110 +package alternativa.engine3d.collisions { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.*; + import alternativa.engine3d.resources.Geometry; import flash.geom.Vector3D; import flash.utils.ByteArray; import flash.utils.Dictionary; - import package_21.*; - import package_28.name_119; use namespace alternativa3d; - public class name_389 + public class EllipsoidCollider { public var radiusX:Number; @@ -19,17 +19,17 @@ package package_110 public var threshold:Number = 0.001; - private var matrix:name_139 = new name_139(); + private var matrix:Transform3D = new Transform3D(); - private var var_576:name_139 = new name_139(); + private var §_-jX§:Transform3D = new Transform3D(); - alternativa3d var geometries:Vector. = new Vector.(); + alternativa3d var geometries:Vector. = new Vector.(); - alternativa3d var name_400:Vector. = new Vector.(); + alternativa3d var §_-QK§:Vector. = new Vector.(); private var vertices:Vector. = new Vector.(); - private var var_581:Vector. = new Vector.(); + private var §_-g0§:Vector. = new Vector.(); private var indices:Vector. = new Vector.(); @@ -39,25 +39,25 @@ package package_110 private var src:Vector3D = new Vector3D(); - private var var_574:Vector3D = new Vector3D(); + private var §_-o5§:Vector3D = new Vector3D(); private var dest:Vector3D = new Vector3D(); - private var var_575:Vector3D = new Vector3D(); + private var §_-SE§:Vector3D = new Vector3D(); - private var var_573:Vector3D = new Vector3D(); + private var §_-pU§:Vector3D = new Vector3D(); alternativa3d var sphere:Vector3D = new Vector3D(); - private var var_577:Vector3D = new Vector3D(); + private var §_-SZ§:Vector3D = new Vector3D(); - private var var_579:Vector3D = new Vector3D(); + private var §_-1v§:Vector3D = new Vector3D(); - private var var_580:Vector3D = new Vector3D(); + private var §_-L9§:Vector3D = new Vector3D(); - private var var_578:Vector3D = new Vector3D(); + private var §_-8B§:Vector3D = new Vector3D(); - public function name_389(radiusX:Number, radiusY:Number, radiusZ:Number) + public function EllipsoidCollider(radiusX:Number, radiusY:Number, radiusZ:Number) { super(); this.radiusX = radiusX; @@ -65,23 +65,23 @@ package package_110 this.radiusZ = radiusZ; } - alternativa3d function name_396(transform:name_139) : void + alternativa3d function calculateSphere(transform:Transform3D) : void { this.alternativa3d::sphere.x = transform.d; this.alternativa3d::sphere.y = transform.h; this.alternativa3d::sphere.z = transform.l; - var sax:Number = transform.a * this.var_577.x + transform.b * this.var_577.y + transform.c * this.var_577.z + transform.d; - var say:Number = transform.e * this.var_577.x + transform.f * this.var_577.y + transform.g * this.var_577.z + transform.h; - var saz:Number = transform.i * this.var_577.x + transform.j * this.var_577.y + transform.k * this.var_577.z + transform.l; - var sbx:Number = transform.a * this.var_579.x + transform.b * this.var_579.y + transform.c * this.var_579.z + transform.d; - var sby:Number = transform.e * this.var_579.x + transform.f * this.var_579.y + transform.g * this.var_579.z + transform.h; - var sbz:Number = transform.i * this.var_579.x + transform.j * this.var_579.y + transform.k * this.var_579.z + transform.l; - var scx:Number = transform.a * this.var_580.x + transform.b * this.var_580.y + transform.c * this.var_580.z + transform.d; - var scy:Number = transform.e * this.var_580.x + transform.f * this.var_580.y + transform.g * this.var_580.z + transform.h; - var scz:Number = transform.i * this.var_580.x + transform.j * this.var_580.y + transform.k * this.var_580.z + transform.l; - var sdx:Number = transform.a * this.var_578.x + transform.b * this.var_578.y + transform.c * this.var_578.z + transform.d; - var sdy:Number = transform.e * this.var_578.x + transform.f * this.var_578.y + transform.g * this.var_578.z + transform.h; - var sdz:Number = transform.i * this.var_578.x + transform.j * this.var_578.y + transform.k * this.var_578.z + transform.l; + var sax:Number = transform.a * this.§_-SZ§.x + transform.b * this.§_-SZ§.y + transform.c * this.§_-SZ§.z + transform.d; + var say:Number = transform.e * this.§_-SZ§.x + transform.f * this.§_-SZ§.y + transform.g * this.§_-SZ§.z + transform.h; + var saz:Number = transform.i * this.§_-SZ§.x + transform.j * this.§_-SZ§.y + transform.k * this.§_-SZ§.z + transform.l; + var sbx:Number = transform.a * this.§_-1v§.x + transform.b * this.§_-1v§.y + transform.c * this.§_-1v§.z + transform.d; + var sby:Number = transform.e * this.§_-1v§.x + transform.f * this.§_-1v§.y + transform.g * this.§_-1v§.z + transform.h; + var sbz:Number = transform.i * this.§_-1v§.x + transform.j * this.§_-1v§.y + transform.k * this.§_-1v§.z + transform.l; + var scx:Number = transform.a * this.§_-L9§.x + transform.b * this.§_-L9§.y + transform.c * this.§_-L9§.z + transform.d; + var scy:Number = transform.e * this.§_-L9§.x + transform.f * this.§_-L9§.y + transform.g * this.§_-L9§.z + transform.h; + var scz:Number = transform.i * this.§_-L9§.x + transform.j * this.§_-L9§.y + transform.k * this.§_-L9§.z + transform.l; + var sdx:Number = transform.a * this.§_-8B§.x + transform.b * this.§_-8B§.y + transform.c * this.§_-8B§.z + transform.d; + var sdy:Number = transform.e * this.§_-8B§.x + transform.f * this.§_-8B§.y + transform.g * this.§_-8B§.z + transform.h; + var sdz:Number = transform.i * this.§_-8B§.x + transform.j * this.§_-8B§.y + transform.k * this.§_-8B§.z + transform.l; var dx:Number = sax - this.alternativa3d::sphere.x; var dy:Number = say - this.alternativa3d::sphere.y; var dz:Number = saz - this.alternativa3d::sphere.z; @@ -113,14 +113,14 @@ package package_110 this.alternativa3d::sphere.w = Math.sqrt(this.alternativa3d::sphere.w); } - private function method_639(source:Vector3D, displacement:Vector3D, object:name_78, excludedObjects:Dictionary) : void + private function prepare(source:Vector3D, displacement:Vector3D, object:Object3D, excludedObjects:Dictionary) : void { var j:int = 0; var intersects:Boolean = false; - var geometry:name_119 = null; - var transform:name_139 = null; + var geometry:Geometry = null; + var transform:Transform3D = null; var geometryIndicesLength:int = 0; - var vBuffer:name_432 = null; + var vBuffer:VertexStream = null; var geometryIndices:Vector. = null; var attributesOffset:int = 0; var numMappings:int = 0; @@ -162,30 +162,30 @@ package package_110 this.radius = this.radiusZ; } this.matrix.compose(source.x,source.y,source.z,0,0,0,this.radiusX / this.radius,this.radiusY / this.radius,this.radiusZ / this.radius); - this.var_576.copy(this.matrix); - this.var_576.invert(); + this.§_-jX§.copy(this.matrix); + this.§_-jX§.invert(); this.src.x = 0; this.src.y = 0; this.src.z = 0; - this.var_574.x = this.var_576.a * displacement.x + this.var_576.b * displacement.y + this.var_576.c * displacement.z; - this.var_574.y = this.var_576.e * displacement.x + this.var_576.f * displacement.y + this.var_576.g * displacement.z; - this.var_574.z = this.var_576.i * displacement.x + this.var_576.j * displacement.y + this.var_576.k * displacement.z; - this.dest.x = this.src.x + this.var_574.x; - this.dest.y = this.src.y + this.var_574.y; - this.dest.z = this.src.z + this.var_574.z; - var rad:Number = this.radius + this.var_574.length; - this.var_577.x = -rad; - this.var_577.y = -rad; - this.var_577.z = -rad; - this.var_579.x = rad; - this.var_579.y = -rad; - this.var_579.z = -rad; - this.var_580.x = rad; - this.var_580.y = rad; - this.var_580.z = -rad; - this.var_578.x = -rad; - this.var_578.y = rad; - this.var_578.z = -rad; + this.§_-o5§.x = this.§_-jX§.a * displacement.x + this.§_-jX§.b * displacement.y + this.§_-jX§.c * displacement.z; + this.§_-o5§.y = this.§_-jX§.e * displacement.x + this.§_-jX§.f * displacement.y + this.§_-jX§.g * displacement.z; + this.§_-o5§.z = this.§_-jX§.i * displacement.x + this.§_-jX§.j * displacement.y + this.§_-jX§.k * displacement.z; + this.dest.x = this.src.x + this.§_-o5§.x; + this.dest.y = this.src.y + this.§_-o5§.y; + this.dest.z = this.src.z + this.§_-o5§.z; + var rad:Number = this.radius + this.§_-o5§.length; + this.§_-SZ§.x = -rad; + this.§_-SZ§.y = -rad; + this.§_-SZ§.z = -rad; + this.§_-1v§.x = rad; + this.§_-1v§.y = -rad; + this.§_-1v§.z = -rad; + this.§_-L9§.x = rad; + this.§_-L9§.y = rad; + this.§_-L9§.z = -rad; + this.§_-8B§.x = -rad; + this.§_-8B§.y = rad; + this.§_-8B§.z = -rad; if(excludedObjects == null || !excludedObjects[object]) { if(object.alternativa3d::transformChanged) @@ -196,12 +196,12 @@ package package_110 intersects = true; if(object.boundBox != null) { - this.alternativa3d::name_396(object.alternativa3d::globalToLocalTransform); - intersects = Boolean(object.boundBox.alternativa3d::name_395(this.alternativa3d::sphere)); + this.alternativa3d::calculateSphere(object.alternativa3d::globalToLocalTransform); + intersects = object.boundBox.alternativa3d::checkSphere(this.alternativa3d::sphere); } if(intersects) { - object.alternativa3d::localToGlobalTransform.combine(this.var_576,object.alternativa3d::transform); + object.alternativa3d::localToGlobalTransform.combine(this.§_-jX§,object.alternativa3d::transform); object.alternativa3d::collectGeometry(this,excludedObjects); } if(object.alternativa3d::childrenList != null) @@ -218,14 +218,14 @@ package package_110 for(var i:int = 0; i < geometriesLength; i++) { geometry = this.alternativa3d::geometries[i]; - transform = this.alternativa3d::name_400[i]; + transform = this.alternativa3d::_-QK[i]; geometryIndicesLength = int(geometry.alternativa3d::_indices.length); if(!(geometry.alternativa3d::_numVertices == 0 || geometryIndicesLength == 0)) { - vBuffer = name_126.POSITION < geometry.alternativa3d::var_170.length ? geometry.alternativa3d::var_170[name_126.POSITION] : null; + vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::_-GM.length ? geometry.alternativa3d::_-GM[VertexAttributes.POSITION] : null; if(vBuffer != null) { - attributesOffset = int(geometry.alternativa3d::_attributesOffsets[name_126.POSITION]); + attributesOffset = int(geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION]); numMappings = int(vBuffer.attributes.length); data = vBuffer.data; for(j = 0; j < geometry.alternativa3d::_numVertices; j++) @@ -300,13 +300,13 @@ package package_110 indicesLength++; this.indices[indicesLength] = c; indicesLength++; - this.var_581[normalsLength] = normalX; + this.§_-g0§[normalsLength] = normalX; normalsLength++; - this.var_581[normalsLength] = normalY; + this.§_-g0§[normalsLength] = normalY; normalsLength++; - this.var_581[normalsLength] = normalZ; + this.§_-g0§[normalsLength] = normalZ; normalsLength++; - this.var_581[normalsLength] = offset; + this.§_-g0§[normalsLength] = offset; normalsLength++; ++this.numTriangles; } @@ -319,10 +319,10 @@ package package_110 } } this.alternativa3d::geometries.length = 0; - this.alternativa3d::name_400.length = 0; + this.alternativa3d::_-QK.length = 0; } - public function method_642(source:Vector3D, displacement:Vector3D, object:name_78, excludedObjects:Dictionary = null) : Vector3D + public function calculateDestination(source:Vector3D, displacement:Vector3D, object:Object3D, excludedObjects:Dictionary = null) : Vector3D { var limit:int = 0; var i:int = 0; @@ -331,27 +331,27 @@ package package_110 { return source.clone(); } - this.method_639(source,displacement,object,excludedObjects); + this.prepare(source,displacement,object,excludedObjects); if(this.numTriangles > 0) { limit = 50; for(i = 0; i < limit; ) { - if(!this.method_640()) + if(!this.checkCollision()) { break; } - offset = this.radius + this.threshold + this.var_573.w - this.dest.x * this.var_573.x - this.dest.y * this.var_573.y - this.dest.z * this.var_573.z; - this.dest.x += this.var_573.x * offset; - this.dest.y += this.var_573.y * offset; - this.dest.z += this.var_573.z * offset; - this.src.x = this.var_575.x + this.var_573.x * (this.radius + this.threshold); - this.src.y = this.var_575.y + this.var_573.y * (this.radius + this.threshold); - this.src.z = this.var_575.z + this.var_573.z * (this.radius + this.threshold); - this.var_574.x = this.dest.x - this.src.x; - this.var_574.y = this.dest.y - this.src.y; - this.var_574.z = this.dest.z - this.src.z; - if(this.var_574.length < this.threshold) + offset = this.radius + this.threshold + this.§_-pU§.w - this.dest.x * this.§_-pU§.x - this.dest.y * this.§_-pU§.y - this.dest.z * this.§_-pU§.z; + this.dest.x += this.§_-pU§.x * offset; + this.dest.y += this.§_-pU§.y * offset; + this.dest.z += this.§_-pU§.z * offset; + this.src.x = this.§_-SE§.x + this.§_-pU§.x * (this.radius + this.threshold); + this.src.y = this.§_-SE§.y + this.§_-pU§.y * (this.radius + this.threshold); + this.src.z = this.§_-SE§.z + this.§_-pU§.z * (this.radius + this.threshold); + this.§_-o5§.x = this.dest.x - this.src.x; + this.§_-o5§.y = this.dest.y - this.src.y; + this.§_-o5§.z = this.dest.z - this.src.z; + if(this.§_-o5§.length < this.threshold) { break; } @@ -362,7 +362,7 @@ package package_110 return new Vector3D(source.x + displacement.x,source.y + displacement.y,source.z + displacement.z); } - public function method_641(source:Vector3D, displacement:Vector3D, resCollisionPoint:Vector3D, resCollisionPlane:Vector3D, object:name_78, excludedObjects:Dictionary = null) : Boolean + public function getCollision(source:Vector3D, displacement:Vector3D, resCollisionPoint:Vector3D, resCollisionPlane:Vector3D, object:Object3D, excludedObjects:Dictionary = null) : Boolean { var abx:Number = NaN; var aby:Number = NaN; @@ -380,44 +380,44 @@ package package_110 { return false; } - this.method_639(source,displacement,object,excludedObjects); + this.prepare(source,displacement,object,excludedObjects); if(this.numTriangles > 0) { - if(this.method_640()) + if(this.checkCollision()) { - resCollisionPoint.x = this.matrix.a * this.var_575.x + this.matrix.b * this.var_575.y + this.matrix.c * this.var_575.z + this.matrix.d; - resCollisionPoint.y = this.matrix.e * this.var_575.x + this.matrix.f * this.var_575.y + this.matrix.g * this.var_575.z + this.matrix.h; - resCollisionPoint.z = this.matrix.i * this.var_575.x + this.matrix.j * this.var_575.y + this.matrix.k * this.var_575.z + this.matrix.l; - if(this.var_573.x < this.var_573.y) + resCollisionPoint.x = this.matrix.a * this.§_-SE§.x + this.matrix.b * this.§_-SE§.y + this.matrix.c * this.§_-SE§.z + this.matrix.d; + resCollisionPoint.y = this.matrix.e * this.§_-SE§.x + this.matrix.f * this.§_-SE§.y + this.matrix.g * this.§_-SE§.z + this.matrix.h; + resCollisionPoint.z = this.matrix.i * this.§_-SE§.x + this.matrix.j * this.§_-SE§.y + this.matrix.k * this.§_-SE§.z + this.matrix.l; + if(this.§_-pU§.x < this.§_-pU§.y) { - if(this.var_573.x < this.var_573.z) + if(this.§_-pU§.x < this.§_-pU§.z) { abx = 0; - aby = -this.var_573.z; - abz = Number(this.var_573.y); + aby = -this.§_-pU§.z; + abz = Number(this.§_-pU§.y); } else { - abx = -this.var_573.y; - aby = Number(this.var_573.x); + abx = -this.§_-pU§.y; + aby = Number(this.§_-pU§.x); abz = 0; } } - else if(this.var_573.y < this.var_573.z) + else if(this.§_-pU§.y < this.§_-pU§.z) { - abx = Number(this.var_573.z); + abx = Number(this.§_-pU§.z); aby = 0; - abz = -this.var_573.x; + abz = -this.§_-pU§.x; } else { - abx = -this.var_573.y; - aby = Number(this.var_573.x); + abx = -this.§_-pU§.y; + aby = Number(this.§_-pU§.x); abz = 0; } - acx = this.var_573.z * aby - this.var_573.y * abz; - acy = this.var_573.x * abz - this.var_573.z * abx; - acz = this.var_573.y * abx - this.var_573.x * aby; + acx = this.§_-pU§.z * aby - this.§_-pU§.y * abz; + acy = this.§_-pU§.x * abz - this.§_-pU§.z * abx; + acz = this.§_-pU§.y * abx - this.§_-pU§.x * aby; abx2 = this.matrix.a * abx + this.matrix.b * aby + this.matrix.c * abz; aby2 = this.matrix.e * abx + this.matrix.f * aby + this.matrix.g * abz; abz2 = this.matrix.i * abx + this.matrix.j * aby + this.matrix.k * abz; @@ -436,7 +436,7 @@ package package_110 return false; } - private function method_640() : Boolean + private function checkCollision() : Boolean { var index:int = 0; var ax:Number = NaN; @@ -465,7 +465,7 @@ package package_110 var deltaX:Number = NaN; var deltaY:Number = NaN; var deltaZ:Number = NaN; - var t:Number = NaN; + var _loc33_:Number = NaN; var p1x:Number = NaN; var p1y:Number = NaN; var p1z:Number = NaN; @@ -492,7 +492,7 @@ package package_110 var projectionInsideLength:Number = NaN; var time:Number = NaN; var minTime:Number = 1; - var displacementLength:Number = Number(this.var_574.length); + var displacementLength:Number = Number(this.§_-o5§.length); var indicesLength:int = this.numTriangles * 3; for(var i:int = 0,var j:int = 0; i < indicesLength; ) { @@ -517,13 +517,13 @@ package package_110 cy = this.vertices[index]; index++; cz = this.vertices[index]; - normalX = this.var_581[j]; + normalX = this.§_-g0§[j]; j++; - normalY = this.var_581[j]; + normalY = this.§_-g0§[j]; j++; - normalZ = this.var_581[j]; + normalZ = this.§_-g0§[j]; j++; - offset = this.var_581[j]; + offset = this.§_-g0§[j]; j++; distance = this.src.x * normalX + this.src.y * normalY + this.src.z * normalZ - offset; if(distance < this.radius) @@ -534,10 +534,10 @@ package package_110 } else { - t = (distance - this.radius) / (distance - this.dest.x * normalX - this.dest.y * normalY - this.dest.z * normalZ + offset); - pointX = this.src.x + this.var_574.x * t - normalX * this.radius; - pointY = this.src.y + this.var_574.y * t - normalY * this.radius; - pointZ = this.src.z + this.var_574.z * t - normalZ * this.radius; + _loc33_ = (distance - this.radius) / (distance - this.dest.x * normalX - this.dest.y * normalY - this.dest.z * normalZ + offset); + pointX = this.src.x + this.§_-o5§.x * _loc33_ - normalX * this.radius; + pointY = this.src.y + this.§_-o5§.y * _loc33_ - normalY * this.radius; + pointZ = this.src.z + this.§_-o5§.z * _loc33_ - normalZ * this.radius; } min = 1e+22; inside = true; @@ -589,8 +589,8 @@ package package_110 abx /= edgeLength; aby /= edgeLength; abz /= edgeLength; - t = abx * acx + aby * acy + abz * acz; - if(t < 0) + _loc33_ = abx * acx + aby * acy + abz * acz; + if(_loc33_ < 0) { acLen = acx * acx + acy * acy + acz * acz; if(acLen < min) @@ -601,7 +601,7 @@ package package_110 faceZ = p1z; } } - else if(t > edgeLength) + else if(_loc33_ > edgeLength) { acx = pointX - p2x; acy = pointY - p2y; @@ -618,9 +618,9 @@ package package_110 else { min = edgeDistanceSqr; - faceX = p1x + abx * t; - faceY = p1y + aby * t; - faceZ = p1z + abz * t; + faceX = p1x + abx * _loc33_; + faceY = p1y + aby * _loc33_; + faceZ = p1z + abz * _loc33_; } } inside = false; @@ -636,11 +636,11 @@ package package_110 deltaX = this.src.x - faceX; deltaY = this.src.y - faceY; deltaZ = this.src.z - faceZ; - if(deltaX * this.var_574.x + deltaY * this.var_574.y + deltaZ * this.var_574.z <= 0) + if(deltaX * this.§_-o5§.x + deltaY * this.§_-o5§.y + deltaZ * this.§_-o5§.z <= 0) { - backX = -this.var_574.x / displacementLength; - backY = -this.var_574.y / displacementLength; - backZ = -this.var_574.z / displacementLength; + backX = -this.§_-o5§.x / displacementLength; + backY = -this.§_-o5§.y / displacementLength; + backZ = -this.§_-o5§.z / displacementLength; deltaLength = deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ; projectionLength = deltaX * backX + deltaY * backY + deltaZ * backZ; projectionInsideLength = this.radius * this.radius - deltaLength + projectionLength * projectionLength; @@ -650,23 +650,23 @@ package package_110 if(time < minTime) { minTime = time; - this.var_575.x = faceX; - this.var_575.y = faceY; - this.var_575.z = faceZ; + this.§_-SE§.x = faceX; + this.§_-SE§.y = faceY; + this.§_-SE§.z = faceZ; if(inside) { - this.var_573.x = normalX; - this.var_573.y = normalY; - this.var_573.z = normalZ; - this.var_573.w = offset; + this.§_-pU§.x = normalX; + this.§_-pU§.y = normalY; + this.§_-pU§.z = normalZ; + this.§_-pU§.w = offset; } else { deltaLength = Number(Math.sqrt(deltaLength)); - this.var_573.x = deltaX / deltaLength; - this.var_573.y = deltaY / deltaLength; - this.var_573.z = deltaZ / deltaLength; - this.var_573.w = this.var_575.x * this.var_573.x + this.var_575.y * this.var_573.y + this.var_575.z * this.var_573.z; + this.§_-pU§.x = deltaX / deltaLength; + this.§_-pU§.y = deltaY / deltaLength; + this.§_-pU§.z = deltaZ / deltaLength; + this.§_-pU§.w = this.§_-SE§.x * this.§_-pU§.x + this.§_-SE§.y * this.§_-pU§.y + this.§_-SE§.z * this.§_-pU§.z; } } } diff --git a/src/package_21/name_386.as b/src/alternativa/engine3d/core/BoundBox.as similarity index 91% rename from src/package_21/name_386.as rename to src/alternativa/engine3d/core/BoundBox.as index bd1b9bb..6c84215 100644 --- a/src/package_21/name_386.as +++ b/src/alternativa/engine3d/core/BoundBox.as @@ -1,11 +1,11 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; import flash.geom.Vector3D; use namespace alternativa3d; - public class name_386 + public class BoundBox { public var minX:Number = 1e+22; @@ -19,7 +19,7 @@ package package_21 public var maxZ:Number = -1e+22; - public function name_386() + public function BoundBox() { super(); } @@ -34,10 +34,10 @@ package package_21 this.maxZ = -1e+22; } - alternativa3d function name_393(frustum:name_429, culling:int) : int + alternativa3d function checkFrustumCulling(frustum:CullingPlane, culling:int) : int { var side:int = 1; - for(var plane:name_429 = frustum; plane != null; plane = plane.next) + for(var plane:CullingPlane = frustum; plane != null; plane = plane.next) { if(Boolean(culling & side)) { @@ -144,12 +144,12 @@ package package_21 return culling; } - alternativa3d function name_392(camera:name_124, object:name_78, occlusion:name_429 = null) : Boolean + alternativa3d function checkOcclusionCulling(camera:Camera3D, object:Object3D, occlusion:CullingPlane = null) : Boolean { return true; } - alternativa3d function name_391(origins:Vector., directions:Vector., raysLength:int) : Boolean + alternativa3d function checkRays(origins:Vector., directions:Vector., raysLength:int) : Boolean { var origin:Vector3D = null; var direction:Vector3D = null; @@ -242,7 +242,7 @@ package package_21 return false; } - alternativa3d function name_395(sphere:Vector3D) : Boolean + alternativa3d function checkSphere(sphere:Vector3D) : Boolean { return sphere.x + sphere.w > this.minX && sphere.x - sphere.w < this.maxX && sphere.y + sphere.w > this.minY && sphere.y - sphere.w < this.maxY && sphere.z + sphere.w > this.minZ && sphere.z - sphere.w < this.maxZ; } @@ -352,9 +352,9 @@ package package_21 return true; } - public function clone() : name_386 + public function clone() : BoundBox { - var res:name_386 = new name_386(); + var res:BoundBox = new BoundBox(); res.minX = this.minX; res.minY = this.minY; res.minZ = this.minZ; diff --git a/src/package_21/name_429.as b/src/alternativa/engine3d/core/CullingPlane.as similarity index 55% rename from src/package_21/name_429.as rename to src/alternativa/engine3d/core/CullingPlane.as index 44f2420..9c0604b 100644 --- a/src/package_21/name_429.as +++ b/src/alternativa/engine3d/core/CullingPlane.as @@ -1,8 +1,8 @@ -package package_21 +package alternativa.engine3d.core { - public class name_429 + public class CullingPlane { - public static var collector:name_429; + public static var collector:CullingPlane; public var x:Number; @@ -12,16 +12,16 @@ package package_21 public var offset:Number; - public var next:name_429; + public var next:CullingPlane; - public function name_429() + public function CullingPlane() { super(); } - public static function create() : name_429 + public static function create() : CullingPlane { - var res:name_429 = null; + var res:CullingPlane = null; if(collector != null) { res = collector; @@ -29,12 +29,12 @@ package package_21 res.next = null; return res; } - return new name_429(); + return new CullingPlane(); } - public function create() : name_429 + public function create() : CullingPlane { - var res:name_429 = null; + var res:CullingPlane = null; if(collector != null) { res = collector; @@ -42,7 +42,7 @@ package package_21 res.next = null; return res; } - return new name_429(); + return new CullingPlane(); } } } diff --git a/src/alternativa/engine3d/core/Debug.as b/src/alternativa/engine3d/core/Debug.as new file mode 100644 index 0000000..ced8609 --- /dev/null +++ b/src/alternativa/engine3d/core/Debug.as @@ -0,0 +1,55 @@ +package alternativa.engine3d.core +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.objects.WireFrame; + import flash.utils.Dictionary; + + use namespace alternativa3d; + + public class Debug + { + public static const BOUNDS:int = 8; + + private static var boundWires:Dictionary = new Dictionary(); + + public function Debug() + { + super(); + } + + private static function createBoundWire() : WireFrame + { + var res:WireFrame = new WireFrame(); + res.alternativa3d::geometry.alternativa3d::addLine(-0.5,-0.5,-0.5,0.5,-0.5,-0.5); + res.alternativa3d::geometry.alternativa3d::addLine(0.5,-0.5,-0.5,0.5,0.5,-0.5); + res.alternativa3d::geometry.alternativa3d::addLine(0.5,0.5,-0.5,-0.5,0.5,-0.5); + res.alternativa3d::geometry.alternativa3d::addLine(-0.5,0.5,-0.5,-0.5,-0.5,-0.5); + res.alternativa3d::geometry.alternativa3d::addLine(-0.5,-0.5,0.5,0.5,-0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(0.5,-0.5,0.5,0.5,0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(0.5,0.5,0.5,-0.5,0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(-0.5,0.5,0.5,-0.5,-0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(-0.5,-0.5,-0.5,-0.5,-0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(0.5,-0.5,-0.5,0.5,-0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(0.5,0.5,-0.5,0.5,0.5,0.5); + res.alternativa3d::geometry.alternativa3d::addLine(-0.5,0.5,-0.5,-0.5,0.5,0.5); + return res; + } + + alternativa3d static function drawBoundBox(camera:Camera3D, boundBox:BoundBox, transform:Transform3D, color:int = -1) : void + { + var boundWire:WireFrame = boundWires[camera.alternativa3d::context3D]; + if(boundWire == null) + { + boundWire = createBoundWire(); + boundWires[camera.alternativa3d::context3D] = boundWire; + boundWire.alternativa3d::geometry.upload(camera.alternativa3d::context3D); + } + boundWire.color = color >= 0 ? uint(color) : 10092288; + boundWire.thickness = 1; + boundWire.alternativa3d::transform.compose((boundBox.minX + boundBox.maxX) * 0.5,(boundBox.minY + boundBox.maxY) * 0.5,(boundBox.minZ + boundBox.maxZ) * 0.5,0,0,0,boundBox.maxX - boundBox.minX,boundBox.maxY - boundBox.minY,boundBox.maxZ - boundBox.minZ); + boundWire.alternativa3d::localToCameraTransform.combine(transform,boundWire.alternativa3d::transform); + boundWire.alternativa3d::collectDraws(camera,null,0); + } + } +} + diff --git a/src/alternativa/engine3d/core/DrawUnit.as b/src/alternativa/engine3d/core/DrawUnit.as new file mode 100644 index 0000000..0c4844f --- /dev/null +++ b/src/alternativa/engine3d/core/DrawUnit.as @@ -0,0 +1,368 @@ +package alternativa.engine3d.core +{ + import alternativa.engine3d.alternativa3d; + import flash.display3D.Context3DBlendFactor; + import flash.display3D.Context3DTriangleFace; + import flash.display3D.IndexBuffer3D; + import flash.display3D.Program3D; + import flash.display3D.VertexBuffer3D; + import flash.display3D.textures.TextureBase; + + use namespace alternativa3d; + + public class DrawUnit + { + alternativa3d var next:DrawUnit; + + alternativa3d var object:Object3D; + + alternativa3d var program:Program3D; + + alternativa3d var indexBuffer:IndexBuffer3D; + + alternativa3d var firstIndex:int; + + alternativa3d var numTriangles:int; + + alternativa3d var blendSource:String = "one"; + + alternativa3d var blendDestination:String = "zero"; + + alternativa3d var culling:String = "front"; + + alternativa3d var textures:Vector. = new Vector.(); + + alternativa3d var §_-kR§:Vector. = new Vector.(); + + alternativa3d var §_-Oq§:int = 0; + + alternativa3d var vertexBuffers:Vector. = new Vector.(); + + alternativa3d var §else §:Vector. = new Vector.(); + + alternativa3d var §_-nw§:Vector. = new Vector.(); + + alternativa3d var §_-EL§:Vector. = new Vector.(); + + alternativa3d var §_-3G§:int = 0; + + alternativa3d var §_-Aq§:Vector. = new Vector.(); + + alternativa3d var §_-9X§:int = 0; + + alternativa3d var §_-Cl§:Vector. = new Vector.(28 * 4,true); + + alternativa3d var §_-Kv§:int = 0; + + public function DrawUnit() + { + super(); + } + + alternativa3d function clear() : void + { + this.alternativa3d::object = null; + this.alternativa3d::program = null; + this.alternativa3d::indexBuffer = null; + this.alternativa3d::blendSource = Context3DBlendFactor.ONE; + this.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; + this.alternativa3d::culling = Context3DTriangleFace.FRONT; + this.alternativa3d::textures.length = 0; + this.alternativa3d::_-Oq = 0; + this.alternativa3d::vertexBuffers.length = 0; + this.alternativa3d::_-3G = 0; + this.alternativa3d::_-9X = 0; + this.alternativa3d::_-Kv = 0; + } + + alternativa3d function setTextureAt(sampler:int, texture:TextureBase) : void + { + if(uint(sampler) > 8) + { + throw new Error("Sampler index " + sampler + " is out of bounds."); + } + if(texture == null) + { + throw new Error("Texture is null"); + } + this.alternativa3d::_-kR[this.alternativa3d::_-Oq] = sampler; + this.alternativa3d::textures[this.alternativa3d::_-Oq] = texture; + ++this.alternativa3d::_-Oq; + } + + alternativa3d function setVertexBufferAt(index:int, buffer:VertexBuffer3D, bufferOffset:int, format:String) : void + { + if(uint(index) > 8) + { + throw new Error("VertexBuffer index " + index + " is out of bounds."); + } + if(buffer == null) + { + throw new Error("Buffer is null"); + } + this.alternativa3d::else [this.alternativa3d::_-3G] = index; + this.alternativa3d::vertexBuffers[this.alternativa3d::_-3G] = buffer; + this.alternativa3d::_-nw[this.alternativa3d::_-3G] = bufferOffset; + this.alternativa3d::_-EL[this.alternativa3d::_-3G] = format; + ++this.alternativa3d::_-3G; + } + + alternativa3d function setVertexConstantsFromVector(firstRegister:int, data:Vector., numRegisters:int) : void + { + if(uint(firstRegister + numRegisters) > 128) + { + throw new Error("Register index " + firstRegister + " is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + numRegisters > this.alternativa3d::_-9X) + { + this.alternativa3d::_-9X = firstRegister + numRegisters; + this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + } + for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) + { + this.alternativa3d::_-Aq[offset] = data[i]; + offset++; + i++; + } + } + + alternativa3d function setVertexConstantsFromNumbers(firstRegister:int, x:Number, y:Number, z:Number, w:Number = 1) : void + { + if(uint(firstRegister + 1) > 128) + { + throw new Error("Register index " + firstRegister + " is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + 1 > this.alternativa3d::_-9X) + { + this.alternativa3d::_-9X = firstRegister + 1; + this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + } + this.alternativa3d::_-Aq[offset] = x; + offset++; + this.alternativa3d::_-Aq[offset] = y; + offset++; + this.alternativa3d::_-Aq[offset] = z; + offset++; + this.alternativa3d::_-Aq[offset] = w; + } + + alternativa3d function setVertexConstantsFromTransform(firstRegister:int, transform:Transform3D) : void + { + if(uint(firstRegister + 3) > 128) + { + throw new Error("Register index " + firstRegister + " is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + 3 > this.alternativa3d::_-9X) + { + this.alternativa3d::_-9X = firstRegister + 3; + this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + } + this.alternativa3d::_-Aq[offset] = transform.a; + offset++; + this.alternativa3d::_-Aq[offset] = transform.b; + offset++; + this.alternativa3d::_-Aq[offset] = transform.c; + offset++; + this.alternativa3d::_-Aq[offset] = transform.d; + offset++; + this.alternativa3d::_-Aq[offset] = transform.e; + offset++; + this.alternativa3d::_-Aq[offset] = transform.f; + offset++; + this.alternativa3d::_-Aq[offset] = transform.g; + offset++; + this.alternativa3d::_-Aq[offset] = transform.h; + offset++; + this.alternativa3d::_-Aq[offset] = transform.i; + offset++; + this.alternativa3d::_-Aq[offset] = transform.j; + offset++; + this.alternativa3d::_-Aq[offset] = transform.k; + offset++; + this.alternativa3d::_-Aq[offset] = transform.l; + } + + alternativa3d function setProjectionConstants(camera:Camera3D, firstRegister:int, transform:Transform3D = null) : void + { + if(uint(firstRegister + 4) > 128) + { + throw new Error("Register index is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + 4 > this.alternativa3d::_-9X) + { + this.alternativa3d::_-9X = firstRegister + 4; + this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + } + if(transform != null) + { + this.alternativa3d::_-Aq[offset] = transform.a * camera.alternativa3d::m0; + offset++; + this.alternativa3d::_-Aq[offset] = transform.b * camera.alternativa3d::m0; + offset++; + this.alternativa3d::_-Aq[offset] = transform.c * camera.alternativa3d::m0; + offset++; + this.alternativa3d::_-Aq[offset] = transform.d * camera.alternativa3d::m0; + offset++; + this.alternativa3d::_-Aq[offset] = transform.e * camera.alternativa3d::m5; + offset++; + this.alternativa3d::_-Aq[offset] = transform.f * camera.alternativa3d::m5; + offset++; + this.alternativa3d::_-Aq[offset] = transform.g * camera.alternativa3d::m5; + offset++; + this.alternativa3d::_-Aq[offset] = transform.h * camera.alternativa3d::m5; + offset++; + this.alternativa3d::_-Aq[offset] = transform.i * camera.alternativa3d::m10; + offset++; + this.alternativa3d::_-Aq[offset] = transform.j * camera.alternativa3d::m10; + offset++; + this.alternativa3d::_-Aq[offset] = transform.k * camera.alternativa3d::m10; + offset++; + this.alternativa3d::_-Aq[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14; + offset++; + if(!camera.orthographic) + { + this.alternativa3d::_-Aq[offset] = transform.i; + offset++; + this.alternativa3d::_-Aq[offset] = transform.j; + offset++; + this.alternativa3d::_-Aq[offset] = transform.k; + offset++; + this.alternativa3d::_-Aq[offset] = transform.l; + } + else + { + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 1; + } + } + else + { + this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m5; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m10; + offset++; + this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m14; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + offset++; + if(!camera.orthographic) + { + this.alternativa3d::_-Aq[offset] = 1; + offset++; + this.alternativa3d::_-Aq[offset] = 0; + } + else + { + this.alternativa3d::_-Aq[offset] = 0; + offset++; + this.alternativa3d::_-Aq[offset] = 1; + } + } + } + + alternativa3d function setFragmentConstantsFromVector(firstRegister:int, data:Vector., numRegisters:int) : void + { + if(uint(firstRegister + numRegisters) > 28) + { + throw new Error("Register index " + firstRegister + " is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + numRegisters > this.alternativa3d::_-Kv) + { + this.alternativa3d::_-Kv = firstRegister + numRegisters; + } + for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) + { + this.alternativa3d::_-Cl[offset] = data[i]; + offset++; + i++; + } + } + + alternativa3d function setFragmentConstantsFromNumbers(firstRegister:int, x:Number, y:Number, z:Number, w:Number = 1) : void + { + if(uint(firstRegister + 1) > 28) + { + throw new Error("Register index " + firstRegister + " is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + 1 > this.alternativa3d::_-Kv) + { + this.alternativa3d::_-Kv = firstRegister + 1; + } + this.alternativa3d::_-Cl[offset] = x; + offset++; + this.alternativa3d::_-Cl[offset] = y; + offset++; + this.alternativa3d::_-Cl[offset] = z; + offset++; + this.alternativa3d::_-Cl[offset] = w; + } + + alternativa3d function setFragmentConstantsFromTransform(firstRegister:int, transform:Transform3D) : void + { + if(uint(firstRegister + 3) > 28) + { + throw new Error("Register index " + firstRegister + " is out of bounds."); + } + var offset:int = firstRegister << 2; + if(firstRegister + 3 > this.alternativa3d::_-Kv) + { + this.alternativa3d::_-Kv = firstRegister + 3; + } + this.alternativa3d::_-Cl[offset] = transform.a; + offset++; + this.alternativa3d::_-Cl[offset] = transform.b; + offset++; + this.alternativa3d::_-Cl[offset] = transform.c; + offset++; + this.alternativa3d::_-Cl[offset] = transform.d; + offset++; + this.alternativa3d::_-Cl[offset] = transform.e; + offset++; + this.alternativa3d::_-Cl[offset] = transform.f; + offset++; + this.alternativa3d::_-Cl[offset] = transform.g; + offset++; + this.alternativa3d::_-Cl[offset] = transform.h; + offset++; + this.alternativa3d::_-Cl[offset] = transform.i; + offset++; + this.alternativa3d::_-Cl[offset] = transform.j; + offset++; + this.alternativa3d::_-Cl[offset] = transform.k; + offset++; + this.alternativa3d::_-Cl[offset] = transform.l; + } + } +} + diff --git a/src/package_21/name_116.as b/src/alternativa/engine3d/core/Light3D.as similarity index 61% rename from src/package_21/name_116.as rename to src/alternativa/engine3d/core/Light3D.as index eb69077..6cbb8c5 100644 --- a/src/package_21/name_116.as +++ b/src/alternativa/engine3d/core/Light3D.as @@ -1,10 +1,10 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; - public class name_116 extends name_78 + public class Light3D extends Object3D { private static var lastLightNumber:uint = 0; @@ -12,9 +12,9 @@ package package_21 public var intensity:Number = 1; - alternativa3d var name_141:name_139 = new name_139(); + alternativa3d var §_-cl§:Transform3D = new Transform3D(); - alternativa3d var name_138:String; + alternativa3d var §_-oG§:String; alternativa3d var red:Number; @@ -22,14 +22,14 @@ package package_21 alternativa3d var blue:Number; - public function name_116() + public function Light3D() { super(); - this.alternativa3d::name_138 = "l" + lastLightNumber.toString(16); + this.alternativa3d::_-oG = "l" + lastLightNumber.toString(16); name = "L" + (lastLightNumber++).toString(); } - override alternativa3d function calculateVisibility(camera:name_124) : void + override alternativa3d function calculateVisibility(camera:Camera3D) : void { if(this.intensity != 0 && this.color > 0) { @@ -38,22 +38,22 @@ package package_21 } } - alternativa3d function checkBound(targetObject:name_78) : Boolean + alternativa3d function checkBound(targetObject:Object3D) : Boolean { return true; } - override public function clone() : name_78 + override public function clone() : Object3D { - var res:name_116 = new name_116(); + var res:Light3D = new Light3D(); res.clonePropertiesFrom(this); return res; } - override protected function clonePropertiesFrom(source:name_78) : void + override protected function clonePropertiesFrom(source:Object3D) : void { super.clonePropertiesFrom(source); - var src:name_116 = source as name_116; + var src:Light3D = source as Light3D; this.color = src.color; this.intensity = src.intensity; } diff --git a/src/package_21/name_78.as b/src/alternativa/engine3d/core/Object3D.as similarity index 82% rename from src/package_21/name_78.as rename to src/alternativa/engine3d/core/Object3D.as index a3bb849..09b2587 100644 --- a/src/package_21/name_78.as +++ b/src/alternativa/engine3d/core/Object3D.as @@ -1,6 +1,12 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.collisions.EllipsoidCollider; + import alternativa.engine3d.core.events.Event3D; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.shadows.ShadowRenderer; import flash.events.Event; import flash.events.EventPhase; import flash.events.IEventDispatcher; @@ -8,12 +14,6 @@ package package_21 import flash.geom.Vector3D; import flash.utils.Dictionary; import flash.utils.getQualifiedClassName; - import package_110.name_389; - import package_19.name_117; - import package_23.name_103; - import package_29.Event3D; - import package_30.name_114; - import package_30.name_121; use namespace alternativa3d; @@ -29,9 +29,9 @@ package package_21 [Event(name="click",type="alternativa.engine3d.core.events.MouseEvent3D")] [Event(name="removed",type="alternativa.engine3d.core.events.Event3D")] [Event(name="added",type="alternativa.engine3d.core.events.Event3D")] - public class name_78 implements IEventDispatcher + public class Object3D implements IEventDispatcher { - protected static const trm:name_139 = new name_139(); + protected static const trm:Transform3D = new Transform3D(); public var data:Object; @@ -49,7 +49,7 @@ package package_21 public var useHandCursor:Boolean = false; - public var boundBox:name_386; + public var boundBox:BoundBox; alternativa3d var _x:Number = 0; @@ -69,25 +69,25 @@ package package_21 alternativa3d var _scaleZ:Number = 1; - alternativa3d var _parent:name_78; + alternativa3d var _parent:Object3D; - alternativa3d var childrenList:name_78; + alternativa3d var childrenList:Object3D; - alternativa3d var next:name_78; + alternativa3d var next:Object3D; - alternativa3d var transform:name_139 = new name_139(); + alternativa3d var transform:Transform3D = new Transform3D(); - alternativa3d var inverseTransform:name_139 = new name_139(); + alternativa3d var inverseTransform:Transform3D = new Transform3D(); alternativa3d var transformChanged:Boolean = true; - alternativa3d var cameraToLocalTransform:name_139 = new name_139(); + alternativa3d var cameraToLocalTransform:Transform3D = new Transform3D(); - alternativa3d var localToCameraTransform:name_139 = new name_139(); + alternativa3d var localToCameraTransform:Transform3D = new Transform3D(); - alternativa3d var localToGlobalTransform:name_139 = new name_139(); + alternativa3d var localToGlobalTransform:Transform3D = new Transform3D(); - alternativa3d var globalToLocalTransform:name_139 = new name_139(); + alternativa3d var globalToLocalTransform:Transform3D = new Transform3D(); alternativa3d var culling:int; @@ -97,15 +97,15 @@ package package_21 alternativa3d var captureListeners:Object; - alternativa3d var transformProcedure:name_114; + alternativa3d var transformProcedure:Procedure; - alternativa3d var deltaTransformProcedure:name_114; + alternativa3d var deltaTransformProcedure:Procedure; - alternativa3d var shadowRenderers:Vector.; + alternativa3d var shadowRenderers:Vector.; alternativa3d var numShadowRenderers:int; - public function name_78() + public function Object3D() { super(); } @@ -263,16 +263,16 @@ package package_21 this.alternativa3d::transformChanged = true; } - public function intersectRay(origin:Vector3D, direction:Vector3D) : name_387 + public function intersectRay(origin:Vector3D, direction:Vector3D) : RayIntersectionData { return this.alternativa3d::intersectRayChildren(origin,direction); } - alternativa3d function intersectRayChildren(origin:Vector3D, direction:Vector3D) : name_387 + alternativa3d function intersectRayChildren(origin:Vector3D, direction:Vector3D) : RayIntersectionData { var childOrigin:Vector3D = null; var childDirection:Vector3D = null; - var childTransform:name_139 = null; + var childTransform:Transform3D = null; var ma:Number = NaN; var mb:Number = NaN; var mc:Number = NaN; @@ -285,10 +285,10 @@ package package_21 var mj:Number = NaN; var mk:Number = NaN; var ml:Number = NaN; - var data:name_387 = null; + var data:RayIntersectionData = null; var minTime:Number = 1e+22; - var minData:name_387 = null; - for(var child:name_78 = this.alternativa3d::childrenList; child != null; ) + var minData:RayIntersectionData = null; + for(var child:Object3D = this.alternativa3d::childrenList; child != null; ) { if(childOrigin == null) { @@ -332,7 +332,7 @@ package package_21 this.alternativa3d::composeTransforms(); } trm.copy(this.alternativa3d::transform); - for(var root:name_78 = this; root.parent != null; ) + for(var root:Object3D = this; root.parent != null; ) { root = root.parent; if(root.alternativa3d::transformChanged) @@ -351,7 +351,7 @@ package package_21 this.alternativa3d::composeTransforms(); } trm.copy(this.alternativa3d::transform); - for(var root:name_78 = this; root.parent != null; ) + for(var root:Object3D = this; root.parent != null; ) { root = root.parent; if(root.alternativa3d::transformChanged) @@ -374,7 +374,7 @@ package package_21 this.alternativa3d::composeTransforms(); } trm.copy(this.alternativa3d::inverseTransform); - for(var root:name_78 = this; root.parent != null; ) + for(var root:Object3D = this; root.parent != null; ) { root = root.parent; if(root.alternativa3d::transformChanged) @@ -403,14 +403,14 @@ package package_21 } else { - this.boundBox = new name_386(); + this.boundBox = new BoundBox(); } this.alternativa3d::updateBoundBox(this.boundBox,false,null); } - alternativa3d function updateBoundBox(boundBox:name_386, hierarchy:Boolean, transform:name_139 = null) : void + alternativa3d function updateBoundBox(boundBox:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void { - var child:name_78 = null; + var child:Object3D = null; if(hierarchy) { for(child = this.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) @@ -470,7 +470,7 @@ package package_21 var i:int = 0; var length:int = 0; var j:int = 0; - var key:* = undefined; + var _loc9_:* = undefined; if(listener == null) { throw new TypeError("Parameter listener must be non-null."); @@ -498,10 +498,10 @@ package package_21 delete listeners[type]; var _loc10_:int = 0; var _loc11_:* = listeners; - for(key in _loc11_) + for(_loc9_ in _loc11_) { } - if(!key) + if(!_loc9_) { if(listeners == this.alternativa3d::captureListeners) { @@ -525,7 +525,7 @@ package package_21 public function willTrigger(type:String) : Boolean { - for(var object:name_78 = this; object != null; ) + for(var object:Object3D = this; object != null; ) { if(object.alternativa3d::captureListeners != null && object.alternativa3d::captureListeners[type] || object.alternativa3d::bubbleListeners != null && object.alternativa3d::bubbleListeners[type]) { @@ -538,7 +538,7 @@ package package_21 public function dispatchEvent(event:Event) : Boolean { - var object:name_78 = null; + var object:Object3D = null; var i:int = 0; var j:int = 0; var length:int = 0; @@ -551,9 +551,9 @@ package package_21 var event3D:Event3D = event as Event3D; if(event3D != null) { - event3D.alternativa3d::name_394 = this; + event3D.alternativa3d::_-5E = this; } - var branch:Vector. = new Vector.(); + var branch:Vector. = new Vector.(); var branchLength:int = 0; for(object = this; object != null; object = object.alternativa3d::_parent) { @@ -565,8 +565,8 @@ package package_21 object = branch[i]; if(event3D != null) { - event3D.alternativa3d::name_390 = object; - event3D.alternativa3d::name_388 = EventPhase.CAPTURING_PHASE; + event3D.alternativa3d::_-Kh = object; + event3D.alternativa3d::_-VE = EventPhase.CAPTURING_PHASE; } if(object.alternativa3d::captureListeners != null) { @@ -587,17 +587,17 @@ package package_21 } if(event3D != null) { - event3D.alternativa3d::name_388 = EventPhase.AT_TARGET; + event3D.alternativa3d::_-VE = EventPhase.AT_TARGET; } for(i = 0; i < branchLength; ) { object = branch[i]; if(event3D != null) { - event3D.alternativa3d::name_390 = object; + event3D.alternativa3d::_-Kh = object; if(i > 0) { - event3D.alternativa3d::name_388 = EventPhase.BUBBLING_PHASE; + event3D.alternativa3d::_-VE = EventPhase.BUBBLING_PHASE; } } if(object.alternativa3d::bubbleListeners != null) @@ -624,7 +624,7 @@ package package_21 return true; } - public function get parent() : name_78 + public function get parent() : Object3D { return this.alternativa3d::_parent; } @@ -637,7 +637,7 @@ package package_21 } } - public function addChild(child:name_78) : name_78 + public function addChild(child:Object3D) : Object3D { if(child == null) { @@ -647,7 +647,7 @@ package package_21 { throw new ArgumentError("An object cannot be added as a child of itself."); } - for(var container:name_78 = this.alternativa3d::_parent; container != null; ) + for(var container:Object3D = this.alternativa3d::_parent; container != null; ) { if(container == child) { @@ -667,7 +667,7 @@ package package_21 return child; } - public function removeChild(child:name_78) : name_78 + public function removeChild(child:Object3D) : Object3D { if(child == null) { @@ -681,7 +681,7 @@ package package_21 { child.dispatchEvent(new Event3D(Event3D.REMOVED,true)); } - var result:name_78 = this.removeFromList(child); + var result:Object3D = this.removeFromList(child); if(result == null) { throw new ArgumentError("Cannot remove child."); @@ -689,10 +689,10 @@ package package_21 return result; } - private function removeFromList(child:name_78) : name_78 + private function removeFromList(child:Object3D) : Object3D { - var prev:name_78 = null; - var current:name_78 = null; + var prev:Object3D = null; + var current:Object3D = null; for(current = this.alternativa3d::childrenList; current != null; current = current.alternativa3d::next) { if(current == child) @@ -714,7 +714,7 @@ package package_21 return null; } - public function addChildAt(child:name_78, index:int) : name_78 + public function addChildAt(child:Object3D, index:int) : Object3D { if(child == null) { @@ -728,7 +728,7 @@ package package_21 { throw new RangeError("The supplied index is out of bounds."); } - for(var container:name_78 = this.alternativa3d::_parent; container != null; ) + for(var container:Object3D = this.alternativa3d::_parent; container != null; ) { if(container == child) { @@ -736,7 +736,7 @@ package package_21 } container = container.alternativa3d::_parent; } - var current:name_78 = this.alternativa3d::childrenList; + var current:Object3D = this.alternativa3d::childrenList; for(var i:int = 0; i < index; i++) { if(current == null) @@ -757,13 +757,13 @@ package package_21 return child; } - public function removeChildAt(index:int) : name_78 + public function removeChildAt(index:int) : Object3D { if(index < 0) { throw new RangeError("The supplied index is out of bounds."); } - var current:name_78 = this.alternativa3d::childrenList; + var current:Object3D = this.alternativa3d::childrenList; for(var i:int = 0; i < index; i++) { if(current == null) @@ -780,13 +780,13 @@ package package_21 return current; } - public function getChildAt(index:int) : name_78 + public function getChildAt(index:int) : Object3D { if(index < 0) { throw new RangeError("The supplied index is out of bounds."); } - var current:name_78 = this.alternativa3d::childrenList; + var current:Object3D = this.alternativa3d::childrenList; for(var i:int = 0; i < index; i++) { if(current == null) @@ -802,7 +802,7 @@ package package_21 return current; } - public function getChildIndex(child:name_78) : int + public function getChildIndex(child:Object3D) : int { if(child == null) { @@ -813,7 +813,7 @@ package package_21 throw new ArgumentError("The supplied Object3D must be a child of the caller."); } var index:int = 0; - for(var current:name_78 = this.alternativa3d::childrenList; current != null; current = current.alternativa3d::next) + for(var current:Object3D = this.alternativa3d::childrenList; current != null; current = current.alternativa3d::next) { if(current == child) { @@ -824,7 +824,7 @@ package package_21 throw new ArgumentError("Cannot get child index."); } - public function setChildIndex(child:name_78, index:int) : void + public function setChildIndex(child:Object3D, index:int) : void { if(child == null) { @@ -838,7 +838,7 @@ package package_21 { throw new RangeError("The supplied index is out of bounds."); } - var current:name_78 = this.alternativa3d::childrenList; + var current:Object3D = this.alternativa3d::childrenList; for(var i:int = 0; i < index; i++) { if(current == null) @@ -851,9 +851,9 @@ package package_21 this.addToList(child,current); } - public function swapChildren(child1:name_78, child2:name_78) : void + public function swapChildren(child1:Object3D, child2:Object3D) : void { - var nxt:name_78 = null; + var _loc3_:Object3D = null; if(child1 == null || child2 == null) { throw new TypeError("Parameter child must be non-null."); @@ -876,11 +876,11 @@ package package_21 } else { - nxt = child1.alternativa3d::next; + _loc3_ = child1.alternativa3d::next; this.removeFromList(child1); this.addToList(child1,child2); this.removeFromList(child2); - this.addToList(child2,nxt); + this.addToList(child2,_loc3_); } } } @@ -888,9 +888,9 @@ package package_21 public function swapChildrenAt(index1:int, index2:int) : void { var i:int = 0; - var child1:name_78 = null; - var child2:name_78 = null; - var nxt:name_78 = null; + var child1:Object3D = null; + var child2:Object3D = null; + var _loc6_:Object3D = null; if(index1 < 0 || index2 < 0) { throw new RangeError("The supplied index is out of bounds."); @@ -937,23 +937,23 @@ package package_21 } else { - nxt = child1.alternativa3d::next; + _loc6_ = child1.alternativa3d::next; this.removeFromList(child1); this.addToList(child1,child2); this.removeFromList(child2); - this.addToList(child2,nxt); + this.addToList(child2,_loc6_); } } } } - public function getChildByName(name:String) : name_78 + public function getChildByName(name:String) : Object3D { if(name == null) { throw new TypeError("Parameter name must be non-null."); } - for(var child:name_78 = this.alternativa3d::childrenList; child != null; ) + for(var child:Object3D = this.alternativa3d::childrenList; child != null; ) { if(child.name == name) { @@ -964,7 +964,7 @@ package package_21 return null; } - public function contains(child:name_78) : Boolean + public function contains(child:Object3D) : Boolean { if(child == null) { @@ -974,7 +974,7 @@ package package_21 { return true; } - for(var object:name_78 = this.alternativa3d::childrenList; object != null; ) + for(var object:Object3D = this.alternativa3d::childrenList; object != null; ) { if(object.contains(child)) { @@ -988,15 +988,15 @@ package package_21 public function get numChildren() : int { var num:int = 0; - for(var current:name_78 = this.alternativa3d::childrenList; current != null; num++,current = current.alternativa3d::next) + for(var current:Object3D = this.alternativa3d::childrenList; current != null; num++,current = current.alternativa3d::next) { } return num; } - private function addToList(child:name_78, item:name_78 = null) : void + private function addToList(child:Object3D, item:Object3D = null) : void { - var current:name_78 = null; + var _loc3_:Object3D = null; child.alternativa3d::next = item; child.alternativa3d::_parent = this; if(item == this.alternativa3d::childrenList) @@ -1005,36 +1005,36 @@ package package_21 } else { - for(current = this.alternativa3d::childrenList; current != null; ) + for(_loc3_ = this.alternativa3d::childrenList; _loc3_ != null; ) { - if(current.alternativa3d::next == item) + if(_loc3_.alternativa3d::next == item) { - current.alternativa3d::next = child; + _loc3_.alternativa3d::next = child; break; } - current = current.alternativa3d::next; + _loc3_ = _loc3_.alternativa3d::next; } } } - public function getResources(hierarchy:Boolean = false, resourceType:Class = null) : Vector. + public function getResources(hierarchy:Boolean = false, resourceType:Class = null) : Vector. { var key:* = undefined; - var res:Vector. = new Vector.(); + var res:Vector. = new Vector.(); var dict:Dictionary = new Dictionary(); var count:int = 0; this.alternativa3d::fillResources(dict,hierarchy,resourceType); for(key in dict) { var _loc9_:* = count++; - res[_loc9_] = key as name_77; + res[_loc9_] = key as Resource; } return res; } alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void { - var child:name_78 = null; + var child:Object3D = null; if(hierarchy) { for(child = this.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) @@ -1097,13 +1097,13 @@ package package_21 this.alternativa3d::transformChanged = false; } - alternativa3d function calculateVisibility(camera:name_124) : void + alternativa3d function calculateVisibility(camera:Camera3D) : void { } - alternativa3d function calculateChildrenVisibility(camera:name_124) : void + alternativa3d function calculateChildrenVisibility(camera:Camera3D) : void { - for(var child:name_78 = this.alternativa3d::childrenList; child != null; ) + for(var child:Object3D = this.alternativa3d::childrenList; child != null; ) { if(child.visible) { @@ -1116,7 +1116,7 @@ package package_21 if(child.boundBox != null) { camera.alternativa3d::calculateFrustum(child.alternativa3d::cameraToLocalTransform); - child.alternativa3d::culling = child.boundBox.alternativa3d::name_393(camera.alternativa3d::frustum,63); + child.alternativa3d::culling = child.boundBox.alternativa3d::checkFrustumCulling(camera.alternativa3d::frustum,63); } else { @@ -1135,26 +1135,26 @@ package package_21 } } - alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { } - alternativa3d function collectChildrenDraws(camera:name_124, lights:Vector., lightsLength:int) : void + alternativa3d function collectChildrenDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { var i:int = 0; - var light:name_116 = null; + var light:Light3D = null; var childLightsLength:int = 0; - for(var child:name_78 = this.alternativa3d::childrenList; child != null; ) + for(var child:Object3D = this.alternativa3d::childrenList; child != null; ) { if(child.visible) { child.alternativa3d::localToCameraTransform.combine(this.alternativa3d::localToCameraTransform,child.alternativa3d::transform); - if(child.alternativa3d::culling >= 0 && (child.boundBox == null || camera.alternativa3d::occludersLength == 0 || Boolean(child.boundBox.alternativa3d::name_392(camera,child)))) + if(child.alternativa3d::culling >= 0 && (child.boundBox == null || camera.alternativa3d::occludersLength == 0 || Boolean(child.boundBox.alternativa3d::checkOcclusionCulling(camera,child)))) { if(child.alternativa3d::listening && child.boundBox != null) { camera.alternativa3d::calculateRays(child.alternativa3d::cameraToLocalTransform); - child.alternativa3d::listening = child.boundBox.alternativa3d::name_391(camera.alternativa3d::origins,camera.alternativa3d::directions,camera.alternativa3d::raysLength); + child.alternativa3d::listening = child.boundBox.alternativa3d::checkRays(camera.alternativa3d::origins,camera.alternativa3d::directions,camera.alternativa3d::raysLength); } if(lightsLength > 0 && child.alternativa3d::useLights) { @@ -1164,8 +1164,8 @@ package package_21 for(i = 0; i < lightsLength; ) { light = lights[i]; - light.alternativa3d::name_141.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); - if(light.boundBox == null || Boolean(light.alternativa3d::checkBound(child))) + light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + if(light.boundBox == null || light.alternativa3d::checkBound(child)) { camera.alternativa3d::childLights[childLightsLength] = light; childLightsLength++; @@ -1179,7 +1179,7 @@ package package_21 for(i = 0; i < lightsLength; ) { light = lights[i]; - light.alternativa3d::name_141.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); i++; } child.alternativa3d::collectDraws(camera,lights,lightsLength); @@ -1199,14 +1199,14 @@ package package_21 } } - alternativa3d function collectGeometry(collider:name_389, excludedObjects:Dictionary) : void + alternativa3d function collectGeometry(collider:EllipsoidCollider, excludedObjects:Dictionary) : void { } - alternativa3d function collectChildrenGeometry(collider:name_389, excludedObjects:Dictionary) : void + alternativa3d function collectChildrenGeometry(collider:EllipsoidCollider, excludedObjects:Dictionary) : void { var intersects:Boolean = false; - for(var child:name_78 = this.alternativa3d::childrenList; child != null; ) + for(var child:Object3D = this.alternativa3d::childrenList; child != null; ) { if(excludedObjects == null || !excludedObjects[child]) { @@ -1218,8 +1218,8 @@ package package_21 intersects = true; if(child.boundBox != null) { - collider.alternativa3d::name_396(child.alternativa3d::globalToLocalTransform); - intersects = Boolean(child.boundBox.alternativa3d::name_395(collider.alternativa3d::sphere)); + collider.alternativa3d::calculateSphere(child.alternativa3d::globalToLocalTransform); + intersects = Boolean(child.boundBox.alternativa3d::checkSphere(collider.alternativa3d::sphere)); } if(intersects) { @@ -1235,21 +1235,21 @@ package package_21 } } - alternativa3d function setTransformConstants(drawUnit:name_135, surface:name_117, vertexShader:name_121, camera:name_124) : void + alternativa3d function setTransformConstants(drawUnit:DrawUnit, surface:Surface, vertexShader:Linker, camera:Camera3D) : void { } - public function clone() : name_78 + public function clone() : Object3D { - var res:name_78 = new name_78(); + var res:Object3D = new Object3D(); res.clonePropertiesFrom(this); return res; } - protected function clonePropertiesFrom(source:name_78) : void + protected function clonePropertiesFrom(source:Object3D) : void { - var lastChild:name_78 = null; - var newChild:name_78 = null; + var lastChild:Object3D = null; + var newChild:Object3D = null; this.name = source.name; this.visible = source.visible; this.mouseEnabled = source.mouseEnabled; @@ -1266,7 +1266,7 @@ package package_21 this.alternativa3d::_scaleX = source.alternativa3d::_scaleX; this.alternativa3d::_scaleY = source.alternativa3d::_scaleY; this.alternativa3d::_scaleZ = source.alternativa3d::_scaleZ; - for(var child:name_78 = source.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) + for(var child:Object3D = source.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) { newChild = child.clone(); if(this.alternativa3d::childrenList != null) diff --git a/src/package_21/name_431.as b/src/alternativa/engine3d/core/Occluder.as similarity index 70% rename from src/package_21/name_431.as rename to src/alternativa/engine3d/core/Occluder.as index f44f422..afad26b 100644 --- a/src/package_21/name_431.as +++ b/src/alternativa/engine3d/core/Occluder.as @@ -1,17 +1,17 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; - public class name_431 extends name_78 + public class Occluder extends Object3D { - public function name_431() + public function Occluder() { super(); } - override alternativa3d function calculateVisibility(camera:name_124) : void + override alternativa3d function calculateVisibility(camera:Camera3D) : void { camera.alternativa3d::occluders[camera.alternativa3d::occludersLength] = this; ++camera.alternativa3d::occludersLength; diff --git a/src/package_21/name_387.as b/src/alternativa/engine3d/core/RayIntersectionData.as similarity index 61% rename from src/package_21/name_387.as rename to src/alternativa/engine3d/core/RayIntersectionData.as index 53b39f1..28b8045 100644 --- a/src/package_21/name_387.as +++ b/src/alternativa/engine3d/core/RayIntersectionData.as @@ -1,22 +1,22 @@ -package package_21 +package alternativa.engine3d.core { + import alternativa.engine3d.objects.Surface; import flash.geom.Point; import flash.geom.Vector3D; - import package_19.name_117; - public class name_387 + public class RayIntersectionData { - public var object:name_78; + public var object:Object3D; public var point:Vector3D; - public var surface:name_117; + public var surface:Surface; public var time:Number; public var uv:Point; - public function name_387() + public function RayIntersectionData() { super(); } diff --git a/src/package_21/name_128.as b/src/alternativa/engine3d/core/RenderPriority.as similarity index 83% rename from src/package_21/name_128.as rename to src/alternativa/engine3d/core/RenderPriority.as index bfc845a..6e03cdd 100644 --- a/src/package_21/name_128.as +++ b/src/alternativa/engine3d/core/RenderPriority.as @@ -1,6 +1,6 @@ -package package_21 +package alternativa.engine3d.core { - public class name_128 + public class RenderPriority { public static const SKY:int = 0; @@ -28,7 +28,7 @@ package package_21 public static const EFFECTS:int = 12; - public function name_128() + public function RenderPriority() { super(); } diff --git a/src/package_21/name_430.as b/src/alternativa/engine3d/core/Renderer.as similarity index 69% rename from src/package_21/name_430.as rename to src/alternativa/engine3d/core/Renderer.as index 88abd63..0c7b11b 100644 --- a/src/package_21/name_430.as +++ b/src/alternativa/engine3d/core/Renderer.as @@ -1,88 +1,88 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.materials.ShaderProgram; import flash.display3D.Context3D; import flash.display3D.Context3DCompareMode; import flash.display3D.Context3DProgramType; import flash.display3D.IndexBuffer3D; import flash.display3D.Program3D; - import package_4.name_127; use namespace alternativa3d; - public class name_430 + public class Renderer { - protected static var collector:name_135; + protected static var collector:DrawUnit; private static var _usedBuffers:uint = 0; private static var _usedTextures:uint = 0; - alternativa3d var camera:name_124; + alternativa3d var camera:Camera3D; - alternativa3d var var_585:Vector. = new Vector.(); + alternativa3d var §_-T5§:Vector. = new Vector.(); - public function name_430() + public function Renderer() { super(); } alternativa3d function render(context:Context3D) : void { - var list:name_135 = null; - var next:name_135 = null; - var drawUnitsLength:int = int(this.alternativa3d::var_585.length); + var list:DrawUnit = null; + var next:DrawUnit = null; + var drawUnitsLength:int = int(this.alternativa3d::_-T5.length); for(var i:int = 0; i < drawUnitsLength; ) { - list = this.alternativa3d::var_585[i]; + list = this.alternativa3d::_-T5[i]; if(list != null) { switch(i) { - case name_128.SKY: + case RenderPriority.SKY: context.setDepthTest(false,Context3DCompareMode.ALWAYS); break; - case name_128.OPAQUE_SORT: + case RenderPriority.OPAQUE_SORT: context.setDepthTest(true,Context3DCompareMode.LESS); break; - case name_128.OPAQUE: + case RenderPriority.OPAQUE: context.setDepthTest(true,Context3DCompareMode.LESS); break; - case name_128.TANK_SHADOW: + case RenderPriority.TANK_SHADOW: context.setDepthTest(false,Context3DCompareMode.LESS_EQUAL); break; - case name_128.TANK_OPAQUE: + case RenderPriority.TANK_OPAQUE: context.setDepthTest(true,Context3DCompareMode.LESS); break; - case name_128.DECALS: + case RenderPriority.DECALS: context.setDepthTest(false,Context3DCompareMode.LESS_EQUAL); break; - case name_128.SHADOWS: + case RenderPriority.SHADOWS: context.setDepthTest(false,Context3DCompareMode.EQUAL); break; - case name_128.SHADOWED_LIGHTS: + case RenderPriority.SHADOWED_LIGHTS: context.setDepthTest(false,Context3DCompareMode.EQUAL); break; - case name_128.LIGHTS: + case RenderPriority.LIGHTS: context.setDepthTest(false,Context3DCompareMode.EQUAL); break; - case name_128.FOG: + case RenderPriority.FOG: context.setDepthTest(false,Context3DCompareMode.EQUAL); break; - case name_128.TRANSPARENT_SORT: + case RenderPriority.TRANSPARENT_SORT: if(list.alternativa3d::next != null) { - list = this.alternativa3d::method_646(list); + list = this.alternativa3d::sortByAverageZ(list); } context.setDepthTest(false,Context3DCompareMode.LESS); break; - case name_128.NEXT_LAYER: + case RenderPriority.NEXT_LAYER: context.setDepthTest(false,Context3DCompareMode.ALWAYS); break; - case name_128.EFFECTS: + case RenderPriority.EFFECTS: if(list.alternativa3d::next != null) { - list = this.alternativa3d::method_646(list); + list = this.alternativa3d::sortByAverageZ(list); } context.setDepthTest(false,Context3DCompareMode.LESS); } @@ -90,12 +90,12 @@ package package_21 } i++; } - this.alternativa3d::var_585.length = 0; + this.alternativa3d::_-T5.length = 0; } - alternativa3d function name_137(object:name_78, program:Program3D, indexBuffer:IndexBuffer3D, firstIndex:int, numTriangles:int, debugShader:name_127 = null) : name_135 + alternativa3d function createDrawUnit(object:Object3D, program:Program3D, indexBuffer:IndexBuffer3D, firstIndex:int, numTriangles:int, debugShader:ShaderProgram = null) : DrawUnit { - var res:name_135 = null; + var res:DrawUnit = null; if(collector != null) { res = collector; @@ -104,7 +104,7 @@ package package_21 } else { - res = new name_135(); + res = new DrawUnit(); } res.alternativa3d::object = object; res.alternativa3d::program = program; @@ -114,17 +114,17 @@ package package_21 return res; } - alternativa3d function name_130(drawUnit:name_135, renderPriority:int) : void + alternativa3d function addDrawUnit(drawUnit:DrawUnit, renderPriority:int) : void { - if(renderPriority >= this.alternativa3d::var_585.length) + if(renderPriority >= this.alternativa3d::_-T5.length) { - this.alternativa3d::var_585.length = renderPriority + 1; + this.alternativa3d::_-T5.length = renderPriority + 1; } - drawUnit.alternativa3d::next = this.alternativa3d::var_585[renderPriority]; - this.alternativa3d::var_585[renderPriority] = drawUnit; + drawUnit.alternativa3d::next = this.alternativa3d::_-T5[renderPriority]; + this.alternativa3d::_-T5[renderPriority] = drawUnit; } - protected function method_647(drawUnit:name_135, context:Context3D, camera:name_124) : void + protected function renderDrawUnit(drawUnit:DrawUnit, context:Context3D, camera:Camera3D) : void { var bufferIndex:int = 0; var bufferBit:int = 0; @@ -134,25 +134,25 @@ package package_21 var currentTextures:int = 0; context.setBlendFactors(drawUnit.alternativa3d::blendSource,drawUnit.alternativa3d::blendDestination); context.setCulling(drawUnit.alternativa3d::culling); - for(var i:int = 0; i < drawUnit.alternativa3d::name_403; i++) + for(var i:int = 0; i < drawUnit.alternativa3d::_-3G; i++) { - bufferIndex = drawUnit.alternativa3d::name_405[i]; + bufferIndex = int(drawUnit.alternativa3d::else [i]); bufferBit = 1 << bufferIndex; currentBuffers |= bufferBit; _usedBuffers &= ~bufferBit; - context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::name_411[i],drawUnit.alternativa3d::name_409[i]); + context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]); } - if(drawUnit.alternativa3d::name_404 > 0) + if(drawUnit.alternativa3d::_-9X > 0) { - context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::name_410,drawUnit.alternativa3d::name_404); + context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::_-Aq,drawUnit.alternativa3d::_-9X); } - if(drawUnit.alternativa3d::name_407 > 0) + if(drawUnit.alternativa3d::_-Kv > 0) { - context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::name_408,drawUnit.alternativa3d::name_407); + context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::_-Cl,drawUnit.alternativa3d::_-Kv); } - for(i = 0; i < drawUnit.alternativa3d::var_182; ) + for(i = 0; i < drawUnit.alternativa3d::_-Oq; ) { - textureSampler = drawUnit.alternativa3d::var_183[i]; + textureSampler = int(drawUnit.alternativa3d::_-kR[i]); textureBit = 1 << textureSampler; currentTextures |= textureBit; _usedTextures &= ~textureBit; @@ -187,10 +187,10 @@ package package_21 camera.alternativa3d::numTriangles += drawUnit.alternativa3d::numTriangles; } - alternativa3d function method_646(list:name_135, direction:Boolean = true) : name_135 + alternativa3d function sortByAverageZ(list:DrawUnit, direction:Boolean = true) : DrawUnit { - var left:name_135 = list; - var right:name_135 = list.alternativa3d::next; + var left:DrawUnit = list; + var right:DrawUnit = list.alternativa3d::next; while(right != null && right.alternativa3d::next != null) { list = list.alternativa3d::next; @@ -200,11 +200,11 @@ package package_21 list.alternativa3d::next = null; if(left.alternativa3d::next != null) { - left = this.alternativa3d::method_646(left,direction); + left = this.alternativa3d::sortByAverageZ(left,direction); } if(right.alternativa3d::next != null) { - right = this.alternativa3d::method_646(right,direction); + right = this.alternativa3d::sortByAverageZ(right,direction); } var flag:Boolean = direction ? left.alternativa3d::object.alternativa3d::localToCameraTransform.l > right.alternativa3d::object.alternativa3d::localToCameraTransform.l : left.alternativa3d::object.alternativa3d::localToCameraTransform.l < right.alternativa3d::object.alternativa3d::localToCameraTransform.l; if(flag) @@ -217,7 +217,7 @@ package package_21 list = right; right = right.alternativa3d::next; } - var last:name_135 = list; + var last:DrawUnit = list; while(left != null) { if(right == null) diff --git a/src/package_21/name_77.as b/src/alternativa/engine3d/core/Resource.as similarity index 76% rename from src/package_21/name_77.as rename to src/alternativa/engine3d/core/Resource.as index f861702..158e3a2 100644 --- a/src/package_21/name_77.as +++ b/src/alternativa/engine3d/core/Resource.as @@ -1,10 +1,10 @@ -package package_21 +package alternativa.engine3d.core { import flash.display3D.Context3D; - public class name_77 + public class Resource { - public function name_77() + public function Resource() { super(); } diff --git a/src/package_21/name_139.as b/src/alternativa/engine3d/core/Transform3D.as similarity index 91% rename from src/package_21/name_139.as rename to src/alternativa/engine3d/core/Transform3D.as index 34f23e1..ed7a460 100644 --- a/src/package_21/name_139.as +++ b/src/alternativa/engine3d/core/Transform3D.as @@ -1,10 +1,10 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; - public class name_139 + public class Transform3D { public var a:Number = 1; @@ -30,12 +30,12 @@ package package_21 public var l:Number = 0; - public function name_139() + public function Transform3D() { super(); } - public function method_293() : void + public function identity() : void { this.a = 1; this.b = 0; @@ -80,7 +80,7 @@ package package_21 this.l = z; } - public function method_292(x:Number, y:Number, z:Number, rotationX:Number, rotationY:Number, rotationZ:Number, scaleX:Number, scaleY:Number, scaleZ:Number) : void + public function composeInverse(x:Number, y:Number, z:Number, rotationX:Number, rotationY:Number, rotationZ:Number, scaleX:Number, scaleY:Number, scaleZ:Number) : void { var cosX:Number = Number(Math.cos(rotationX)); var sinX:Number = Number(Math.sin(-rotationX)); @@ -136,7 +136,7 @@ package package_21 this.l = (td * tf * ti - tb * th * ti - td * te * tj + ta * th * tj + tb * te * tl - ta * tf * tl) * det; } - public function method_294(vector:Vector.) : void + public function initFromVector(vector:Vector.) : void { this.a = vector[0]; this.b = vector[1]; @@ -152,7 +152,7 @@ package package_21 this.l = vector[11]; } - public function append(transform:name_139) : void + public function append(transform:Transform3D) : void { var ta:Number = this.a; var tb:Number = this.b; @@ -180,7 +180,7 @@ package package_21 this.l = transform.i * td + transform.j * th + transform.k * tl + transform.l; } - public function prepend(transform:name_139) : void + public function prepend(transform:Transform3D) : void { var ta:Number = this.a; var tb:Number = this.b; @@ -208,7 +208,7 @@ package package_21 this.l = ti * transform.d + tj * transform.h + tk * transform.l + tl; } - public function combine(transformA:name_139, transformB:name_139) : void + public function combine(transformA:Transform3D, transformB:Transform3D) : void { this.a = transformA.a * transformB.a + transformA.b * transformB.e + transformA.c * transformB.i; this.b = transformA.a * transformB.b + transformA.b * transformB.f + transformA.c * transformB.j; @@ -224,7 +224,7 @@ package package_21 this.l = transformA.i * transformB.d + transformA.j * transformB.h + transformA.k * transformB.l + transformA.l; } - public function calculateInversion(source:name_139) : void + public function calculateInversion(source:Transform3D) : void { var ta:Number = source.a; var tb:Number = source.b; @@ -253,7 +253,7 @@ package package_21 this.l = (td * tf * ti - tb * th * ti - td * te * tj + ta * th * tj + tb * te * tl - ta * tf * tl) * det; } - public function copy(source:name_139) : void + public function copy(source:Transform3D) : void { this.a = source.a; this.b = source.b; diff --git a/src/package_21/name_126.as b/src/alternativa/engine3d/core/VertexAttributes.as similarity index 87% rename from src/package_21/name_126.as rename to src/alternativa/engine3d/core/VertexAttributes.as index 6f95eeb..c8d14fa 100644 --- a/src/package_21/name_126.as +++ b/src/alternativa/engine3d/core/VertexAttributes.as @@ -1,11 +1,11 @@ -package package_21 +package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; import flash.display3D.Context3DVertexBufferFormat; use namespace alternativa3d; - public class name_126 + public class VertexAttributes { public static const POSITION:uint = 1; @@ -19,12 +19,12 @@ package package_21 alternativa3d static const FORMATS:Array = [Context3DVertexBufferFormat.FLOAT_1,Context3DVertexBufferFormat.FLOAT_3,Context3DVertexBufferFormat.FLOAT_3,Context3DVertexBufferFormat.FLOAT_4,Context3DVertexBufferFormat.FLOAT_4,Context3DVertexBufferFormat.FLOAT_4,Context3DVertexBufferFormat.FLOAT_4,Context3DVertexBufferFormat.FLOAT_4,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2,Context3DVertexBufferFormat.FLOAT_2]; - public function name_126() + public function VertexAttributes() { super(); } - public static function name_433(attribute:int) : int + public static function getAttributeStride(attribute:int) : int { switch(alternativa3d::FORMATS[attribute]) { diff --git a/src/package_21/name_432.as b/src/alternativa/engine3d/core/VertexStream.as similarity index 68% rename from src/package_21/name_432.as rename to src/alternativa/engine3d/core/VertexStream.as index 3bb4c67..7ac00fc 100644 --- a/src/package_21/name_432.as +++ b/src/alternativa/engine3d/core/VertexStream.as @@ -1,9 +1,9 @@ -package package_21 +package alternativa.engine3d.core { import flash.display3D.VertexBuffer3D; import flash.utils.ByteArray; - public class name_432 + public class VertexStream { public var buffer:VertexBuffer3D; @@ -11,7 +11,7 @@ package package_21 public var data:ByteArray; - public function name_432() + public function VertexStream() { super(); } diff --git a/src/package_29/Event3D.as b/src/alternativa/engine3d/core/events/Event3D.as similarity index 60% rename from src/package_29/Event3D.as rename to src/alternativa/engine3d/core/events/Event3D.as index cb90c3d..0a3965f 100644 --- a/src/package_29/Event3D.as +++ b/src/alternativa/engine3d/core/events/Event3D.as @@ -1,8 +1,8 @@ -package package_29 +package alternativa.engine3d.core.events { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Object3D; import flash.events.Event; - import package_21.name_78; use namespace alternativa3d; @@ -12,42 +12,42 @@ package package_29 public static const REMOVED:String = "removed3D"; - alternativa3d var name_394:name_78; + alternativa3d var §_-5E§:Object3D; - alternativa3d var name_390:name_78; + alternativa3d var §_-Kh§:Object3D; - alternativa3d var var_107:Boolean; + alternativa3d var §_-iJ§:Boolean; - alternativa3d var name_388:uint = 3; + alternativa3d var §_-VE§:uint = 3; alternativa3d var stop:Boolean = false; - alternativa3d var var_108:Boolean = false; + alternativa3d var §_-XD§:Boolean = false; public function Event3D(type:String, bubbles:Boolean = true) { super(type,bubbles); - this.alternativa3d::var_107 = bubbles; + this.alternativa3d::_-iJ = bubbles; } override public function get bubbles() : Boolean { - return this.alternativa3d::var_107; + return this.alternativa3d::_-iJ; } override public function get eventPhase() : uint { - return this.alternativa3d::name_388; + return this.alternativa3d::_-VE; } override public function get target() : Object { - return this.alternativa3d::name_394; + return this.alternativa3d::_-5E; } override public function get currentTarget() : Object { - return this.alternativa3d::name_390; + return this.alternativa3d::_-Kh; } override public function stopPropagation() : void @@ -57,15 +57,15 @@ package package_29 override public function stopImmediatePropagation() : void { - this.alternativa3d::var_108 = true; + this.alternativa3d::_-XD = true; } override public function clone() : Event { - var result:Event3D = new Event3D(type,this.alternativa3d::var_107); - result.alternativa3d::name_394 = this.alternativa3d::name_394; - result.alternativa3d::name_390 = this.alternativa3d::name_390; - result.alternativa3d::name_388 = this.alternativa3d::name_388; + var result:Event3D = new Event3D(type,this.alternativa3d::_-iJ); + result.alternativa3d::_-5E = this.alternativa3d::_-5E; + result.alternativa3d::_-Kh = this.alternativa3d::_-Kh; + result.alternativa3d::_-VE = this.alternativa3d::_-VE; return result; } diff --git a/src/package_29/MouseEvent3D.as b/src/alternativa/engine3d/core/events/MouseEvent3D.as similarity index 73% rename from src/package_29/MouseEvent3D.as rename to src/alternativa/engine3d/core/events/MouseEvent3D.as index 42c516a..081c08e 100644 --- a/src/package_29/MouseEvent3D.as +++ b/src/alternativa/engine3d/core/events/MouseEvent3D.as @@ -1,9 +1,9 @@ -package package_29 +package alternativa.engine3d.core.events { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.objects.Surface; import flash.events.Event; - import package_19.name_117; - import package_21.name_78; use namespace alternativa3d; @@ -39,7 +39,7 @@ package package_29 public var delta:int; - public var relatedObject:name_78; + public var relatedObject:Object3D; public var localX:Number; @@ -47,9 +47,9 @@ package package_29 public var localZ:Number; - alternativa3d var var_109:name_117; + alternativa3d var §_-BX§:Surface; - public function MouseEvent3D(type:String, bubbles:Boolean = true, localX:Number = NaN, localY:Number = NaN, localZ:Number = NaN, relatedObject:name_78 = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0) + public function MouseEvent3D(type:String, bubbles:Boolean = true, localX:Number = NaN, localY:Number = NaN, localZ:Number = NaN, relatedObject:Object3D = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0) { super(type,bubbles); this.localX = localX; @@ -63,14 +63,14 @@ package package_29 this.delta = delta; } - public function get surface() : name_117 + public function get surface() : Surface { - return this.alternativa3d::var_109; + return this.alternativa3d::_-BX; } override public function clone() : Event { - return new MouseEvent3D(type,alternativa3d::var_107,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta); + return new MouseEvent3D(type,alternativa3d::_-iJ,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta); } override public function toString() : String diff --git a/src/package_25/Particle.as b/src/alternativa/engine3d/effects/Particle.as similarity index 83% rename from src/package_25/Particle.as rename to src/alternativa/engine3d/effects/Particle.as index 90b8ec7..498d5f3 100644 --- a/src/package_25/Particle.as +++ b/src/alternativa/engine3d/effects/Particle.as @@ -1,4 +1,4 @@ -package package_25 +package alternativa.engine3d.effects { import flash.display3D.textures.TextureBase; @@ -30,13 +30,13 @@ package package_25 public var originY:Number; - public var name_420:Number; + public var §_-q§:Number; - public var name_419:Number; + public var §_-Ts§:Number; - public var name_417:Number; + public var §_-ej§:Number; - public var name_416:Number; + public var §_-W5§:Number; public var red:Number; diff --git a/src/package_25/name_626.as b/src/alternativa/engine3d/effects/ParticlePrototype.as similarity index 51% rename from src/package_25/name_626.as rename to src/alternativa/engine3d/effects/ParticlePrototype.as index 0d64a11..07eafe0 100644 --- a/src/package_25/name_626.as +++ b/src/alternativa/engine3d/effects/ParticlePrototype.as @@ -1,15 +1,15 @@ -package package_25 +package alternativa.engine3d.effects { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Transform3D; import flash.display3D.textures.TextureBase; import flash.geom.Vector3D; - import package_21.name_139; use namespace alternativa3d; - public class name_626 + public class ParticlePrototype { - public var atlas:name_250; + public var atlas:TextureAtlas; private var blendSource:String; @@ -21,25 +21,25 @@ package package_25 private var height:Number; - private var var_151:Vector. = new Vector.(); + private var §_-gV§:Vector. = new Vector.(); - private var var_660:Vector. = new Vector.(); + private var §_-0r§:Vector. = new Vector.(); - private var var_662:Vector. = new Vector.(); + private var §_-4e§:Vector. = new Vector.(); - private var var_656:Vector. = new Vector.(); + private var §_-Oj§:Vector. = new Vector.(); - private var var_657:Vector. = new Vector.(); + private var §_-07§:Vector. = new Vector.(); - private var var_661:Vector. = new Vector.(); + private var §_-3l§:Vector. = new Vector.(); - private var var_659:Vector. = new Vector.(); + private var §_-7S§:Vector. = new Vector.(); - private var var_658:Vector. = new Vector.(); + private var §_-Ch§:Vector. = new Vector.(); - private var var_148:int = 0; + private var §_-kf§:int = 0; - public function name_626(width:Number, height:Number, atlas:name_250, animated:Boolean = false, blendSource:String = "sourceAlpha", blendDestination:String = "oneMinusSourceAlpha") + public function ParticlePrototype(width:Number, height:Number, atlas:TextureAtlas, animated:Boolean = false, blendSource:String = "sourceAlpha", blendDestination:String = "oneMinusSourceAlpha") { super(); this.width = width; @@ -50,29 +50,29 @@ package package_25 this.blendDestination = blendDestination; } - public function method_257(time:Number, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, red:Number = 1, green:Number = 1, blue:Number = 1, alpha:Number = 1) : void + public function addKey(time:Number, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, red:Number = 1, green:Number = 1, blue:Number = 1, alpha:Number = 1) : void { - var lastIndex:int = this.var_148 - 1; - if(this.var_148 > 0 && time <= this.var_151[lastIndex]) + var lastIndex:int = this.§_-kf§ - 1; + if(this.§_-kf§ > 0 && time <= this.§_-gV§[lastIndex]) { throw new Error("Keys must be successively."); } - this.var_151[this.var_148] = time; - this.var_660[this.var_148] = rotation; - this.var_662[this.var_148] = scaleX; - this.var_656[this.var_148] = scaleY; - this.var_657[this.var_148] = red; - this.var_661[this.var_148] = green; - this.var_659[this.var_148] = blue; - this.var_658[this.var_148] = alpha; - ++this.var_148; + this.§_-gV§[this.§_-kf§] = time; + this.§_-0r§[this.§_-kf§] = rotation; + this.§_-4e§[this.§_-kf§] = scaleX; + this.§_-Oj§[this.§_-kf§] = scaleY; + this.§_-07§[this.§_-kf§] = red; + this.§_-3l§[this.§_-kf§] = green; + this.§_-7S§[this.§_-kf§] = blue; + this.§_-Ch§[this.§_-kf§] = alpha; + ++this.§_-kf§; } - public function name_627(effect:name_113, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void + public function createParticle(effect:§_-SG§, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void { var systemScale:Number = NaN; var effectScale:Number = NaN; - var transform:name_139 = null; + var transform:Transform3D = null; var wind:Vector3D = null; var gravity:Vector3D = null; var a:int = 0; @@ -85,20 +85,20 @@ package package_25 var cy:Number = NaN; var cz:Number = NaN; var rot:Number = NaN; - var b:int = this.var_148 - 1; - if(this.atlas.diffuse.alternativa3d::_texture != null && this.var_148 > 1 && time >= this.var_151[0] && time < this.var_151[b]) + var b:int = this.§_-kf§ - 1; + if(this.atlas.diffuse.alternativa3d::_texture != null && this.§_-kf§ > 1 && time >= this.§_-gV§[0] && time < this.§_-gV§[b]) { - for(b = 1; b < this.var_148; ) + for(b = 1; b < this.§_-kf§; ) { - if(time < this.var_151[b]) + if(time < this.§_-gV§[b]) { systemScale = Number(effect.alternativa3d::system.alternativa3d::scale); - effectScale = effect.scale; + effectScale = Number(effect.scale); transform = effect.alternativa3d::system.alternativa3d::localToCameraTransform; wind = effect.alternativa3d::system.wind; gravity = effect.alternativa3d::system.gravity; a = b - 1; - t = (time - this.var_151[a]) / (this.var_151[b] - this.var_151[a]); + t = (time - this.§_-gV§[a]) / (this.§_-gV§[b] - this.§_-gV§[a]); pos = firstFrame + (this.animated ? time * this.atlas.fps : 0); if(this.atlas.loop) { @@ -127,26 +127,26 @@ package package_25 particle.opacity = this.atlas.opacity != null ? this.atlas.opacity.alternativa3d::_texture : null; particle.blendSource = this.blendSource; particle.blendDestination = this.blendDestination; - cx = effect.alternativa3d::var_157.x + position.x * effectScale; - cy = effect.alternativa3d::var_157.y + position.y * effectScale; - cz = effect.alternativa3d::var_157.z + position.z * effectScale; + cx = effect.alternativa3d::_-M7.x + position.x * effectScale; + cy = effect.alternativa3d::_-M7.y + position.y * effectScale; + cz = effect.alternativa3d::_-M7.z + position.z * effectScale; particle.x = cx * transform.a + cy * transform.b + cz * transform.c + transform.d; particle.y = cx * transform.e + cy * transform.f + cz * transform.g + transform.h; particle.z = cx * transform.i + cy * transform.j + cz * transform.k + transform.l; - rot = this.var_660[a] + (this.var_660[b] - this.var_660[a]) * t; + rot = this.§_-0r§[a] + (this.§_-0r§[b] - this.§_-0r§[a]) * t; particle.rotation = scaleX * scaleY > 0 ? rotation + rot : rotation - rot; - particle.width = systemScale * effectScale * scaleX * this.width * (this.var_662[a] + (this.var_662[b] - this.var_662[a]) * t); - particle.height = systemScale * effectScale * scaleY * this.height * (this.var_656[a] + (this.var_656[b] - this.var_656[a]) * t); + particle.width = systemScale * effectScale * scaleX * this.width * (this.§_-4e§[a] + (this.§_-4e§[b] - this.§_-4e§[a]) * t); + particle.height = systemScale * effectScale * scaleY * this.height * (this.§_-Oj§[a] + (this.§_-Oj§[b] - this.§_-Oj§[a]) * t); particle.originX = this.atlas.originX; particle.originY = this.atlas.originY; - particle.name_420 = 1 / this.atlas.columnsCount; - particle.name_419 = 1 / this.atlas.rowsCount; - particle.name_417 = col / this.atlas.columnsCount; - particle.name_416 = row / this.atlas.rowsCount; - particle.red = this.var_657[a] + (this.var_657[b] - this.var_657[a]) * t; - particle.green = this.var_661[a] + (this.var_661[b] - this.var_661[a]) * t; - particle.blue = this.var_659[a] + (this.var_659[b] - this.var_659[a]) * t; - particle.alpha = alpha * (this.var_658[a] + (this.var_658[b] - this.var_658[a]) * t); + particle.§_-q§ = 1 / this.atlas.columnsCount; + particle.§_-Ts§ = 1 / this.atlas.rowsCount; + particle.§_-ej§ = col / this.atlas.columnsCount; + particle.§_-W5§ = row / this.atlas.rowsCount; + particle.red = this.§_-07§[a] + (this.§_-07§[b] - this.§_-07§[a]) * t; + particle.green = this.§_-3l§[a] + (this.§_-3l§[b] - this.§_-3l§[a]) * t; + particle.blue = this.§_-7S§[a] + (this.§_-7S§[b] - this.§_-7S§[a]) * t; + particle.alpha = alpha * (this.§_-Ch§[a] + (this.§_-Ch§[b] - this.§_-Ch§[a]) * t); particle.next = effect.alternativa3d::particleList; effect.alternativa3d::particleList = particle; break; @@ -158,8 +158,8 @@ package package_25 public function get lifeTime() : Number { - var lastIndex:int = this.var_148 - 1; - return this.var_151[lastIndex]; + var lastIndex:int = this.§_-kf§ - 1; + return this.§_-gV§[lastIndex]; } } } diff --git a/src/package_25/name_98.as b/src/alternativa/engine3d/effects/ParticleSystem.as similarity index 65% rename from src/package_25/name_98.as rename to src/alternativa/engine3d/effects/ParticleSystem.as index 5393fa5..9109f82 100644 --- a/src/package_25/name_98.as +++ b/src/alternativa/engine3d/effects/ParticleSystem.as @@ -1,6 +1,12 @@ -package package_25 +package alternativa.engine3d.effects { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; import flash.display3D.Context3D; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DProgramType; @@ -13,16 +19,10 @@ package package_25 import flash.geom.Vector3D; import flash.utils.ByteArray; import flash.utils.getTimer; - import package_21.name_116; - import package_21.name_124; - import package_21.name_128; - import package_21.name_135; - import package_21.name_397; - import package_21.name_78; use namespace alternativa3d; - public class name_98 extends name_78 + public class ParticleSystem extends Object3D { private static var vertexBuffer:VertexBuffer3D; @@ -38,13 +38,13 @@ package package_25 private static const limit:int = 31; - public var var_141:Boolean = true; + public var §_-jW§:Boolean = true; public var gravity:Vector3D = new Vector3D(0,0,-1); public var wind:Vector3D = new Vector3D(); - public var name_107:int = 0; + public var §_-IN§:int = 0; public var fogMaxDensity:Number = 0; @@ -54,9 +54,9 @@ package package_25 alternativa3d var scale:Number = 1; - alternativa3d var effectList:name_113; + alternativa3d var effectList:§_-SG§; - private var drawUnit:name_135 = null; + private var drawUnit:DrawUnit = null; private var diffuse:TextureBase = null; @@ -68,95 +68,95 @@ package package_25 private var counter:int; - private var var_139:Number; + private var §_-La§:Number; - private var var_140:Number; + private var §_-p3§:Number; - private var var_137:Vector. = new Vector.(); + private var §_-ZN§:Vector. = new Vector.(); - private var var_136:int = 0; + private var §_-hr§:int = 0; - private var method_21:Boolean = false; + private var pause:Boolean = false; - private var var_135:Number; + private var §_-pK§:Number; - private var var_138:Number = 0; + private var §_-L5§:Number = 0; - public function name_98() + public function ParticleSystem() { super(); } public function stop() : void { - if(!this.method_21) + if(!this.pause) { - this.var_135 = getTimer() * 0.001; - this.method_21 = true; + this.§_-pK§ = getTimer() * 0.001; + this.pause = true; } } public function play() : void { - if(this.method_21) + if(this.pause) { - this.var_138 += getTimer() * 0.001 - this.var_135; - this.method_21 = false; + this.§_-L5§ += getTimer() * 0.001 - this.§_-pK§; + this.pause = false; } } - public function method_251() : void + public function prevFrame() : void { - this.var_135 -= 0.001; + this.§_-pK§ -= 0.001; } - public function method_253() : void + public function nextFrame() : void { - this.var_135 += 0.001; + this.§_-pK§ += 0.001; } - public function method_37(effect:name_113) : name_113 + public function each(effect:§_-SG§) : §_-SG§ { if(effect.alternativa3d::system != null) { throw new Error("Cannot add the same effect twice."); } - effect.alternativa3d::startTime = this.alternativa3d::method_247(); + effect.alternativa3d::startTime = this.alternativa3d::getTime(); effect.alternativa3d::system = this; - effect.alternativa3d::name_421(0); - effect.alternativa3d::name_415(0); - effect.alternativa3d::name_413 = this.alternativa3d::effectList; + effect.alternativa3d::_-is(0); + effect.alternativa3d::_-Af(0); + effect.alternativa3d::implements = this.alternativa3d::effectList; this.alternativa3d::effectList = effect; return effect; } - public function method_252(name:String) : name_113 + public function getEffectByName(name:String) : §_-SG§ { - for(var effect:name_113 = this.alternativa3d::effectList; effect != null; ) + for(var effect:§_-SG§ = this.alternativa3d::effectList; effect != null; ) { if(effect.name == name) { return effect; } - effect = effect.alternativa3d::name_413; + effect = effect.alternativa3d::implements; } return null; } - alternativa3d function method_247() : Number + alternativa3d function getTime() : Number { - return this.method_21 ? this.var_135 - this.var_138 : getTimer() * 0.001 - this.var_138; + return this.pause ? this.§_-pK§ - this.§_-L5§ : getTimer() * 0.001 - this.§_-L5§; } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { - var visibleEffectList:name_113 = null; + var visibleEffectList:§_-SG§ = null; var effectTime:Number = NaN; var culling:int = 0; var debug:int = 0; if(vertexBuffer == null) { - this.method_249(camera.alternativa3d::context3D); + this.createAndUpload(camera.alternativa3d::context3D); } this.alternativa3d::scale = Math.sqrt(alternativa3d::localToCameraTransform.a * alternativa3d::localToCameraTransform.a + alternativa3d::localToCameraTransform.e * alternativa3d::localToCameraTransform.e + alternativa3d::localToCameraTransform.i * alternativa3d::localToCameraTransform.i); this.alternativa3d::scale += Math.sqrt(alternativa3d::localToCameraTransform.b * alternativa3d::localToCameraTransform.b + alternativa3d::localToCameraTransform.f * alternativa3d::localToCameraTransform.f + alternativa3d::localToCameraTransform.j * alternativa3d::localToCameraTransform.j); @@ -164,8 +164,8 @@ package package_25 this.alternativa3d::scale /= 3; camera.alternativa3d::calculateFrustum(alternativa3d::cameraToLocalTransform); var conflictAnyway:Boolean = false; - var time:Number = this.alternativa3d::method_247(); - for(var effect:name_113 = this.alternativa3d::effectList,var prev:name_113 = null; effect != null; ) + var time:Number = this.alternativa3d::getTime(); + for(var effect:§_-SG§ = this.alternativa3d::effectList,var prev:§_-SG§ = null; effect != null; ) { effectTime = time - effect.alternativa3d::startTime; if(effectTime <= effect.alternativa3d::lifeTime) @@ -174,11 +174,11 @@ package package_25 if(effect.boundBox != null) { effect.alternativa3d::calculateAABB(); - culling = int(effect.alternativa3d::aabb.alternativa3d::name_393(camera.alternativa3d::frustum,63)); + culling = int(effect.alternativa3d::aabb.alternativa3d::checkFrustumCulling(camera.alternativa3d::frustum,63)); } if(culling >= 0) { - if(effect.alternativa3d::name_418(effectTime)) + if(effect.alternativa3d::_-Xj(effectTime)) { if(effect.alternativa3d::particleList != null) { @@ -187,33 +187,33 @@ package package_25 conflictAnyway ||= effect.boundBox == null; } prev = effect; - effect = effect.alternativa3d::name_413; + effect = effect.alternativa3d::implements; } else if(prev != null) { - prev.alternativa3d::name_413 = effect.alternativa3d::name_413; - effect = prev.alternativa3d::name_413; + prev.alternativa3d::implements = effect.alternativa3d::implements; + effect = prev.alternativa3d::implements; } else { - this.alternativa3d::effectList = effect.alternativa3d::name_413; + this.alternativa3d::effectList = effect.alternativa3d::implements; effect = this.alternativa3d::effectList; } } else { prev = effect; - effect = effect.alternativa3d::name_413; + effect = effect.alternativa3d::implements; } } else if(prev != null) { - prev.alternativa3d::name_413 = effect.alternativa3d::name_413; - effect = prev.alternativa3d::name_413; + prev.alternativa3d::implements = effect.alternativa3d::implements; + effect = prev.alternativa3d::implements; } else { - this.alternativa3d::effectList = effect.alternativa3d::name_413; + this.alternativa3d::effectList = effect.alternativa3d::implements; effect = this.alternativa3d::effectList; } } @@ -221,15 +221,15 @@ package package_25 { if(visibleEffectList.alternativa3d::next != null) { - this.method_250(camera,visibleEffectList); + this.drawConflictEffects(camera,visibleEffectList); } else { - this.method_248(camera,visibleEffectList.alternativa3d::particleList); + this.drawParticleList(camera,visibleEffectList.alternativa3d::particleList); visibleEffectList.alternativa3d::particleList = null; - if(camera.debug && visibleEffectList.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & name_397.BOUNDS)) + if(Boolean(camera.debug) && visibleEffectList.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & Debug.BOUNDS)) { - name_397.alternativa3d::name_399(camera,visibleEffectList.alternativa3d::aabb,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,visibleEffectList.alternativa3d::aabb,alternativa3d::localToCameraTransform); } } this.flush(camera); @@ -238,19 +238,19 @@ package package_25 this.opacity = null; this.blendSource = null; this.blendDestination = null; - this.var_136 = 0; + this.§_-hr§ = 0; } if(camera.debug) { - debug = camera.alternativa3d::checkInDebug(this); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + debug = int(camera.alternativa3d::checkInDebug(this)); + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - private function method_249(context:Context3D) : void + private function createAndUpload(context:Context3D) : void { var vertices:Vector. = new Vector.(); var indices:Vector. = new Vector.(); @@ -272,14 +272,14 @@ package package_25 opacityProgram = context.createProgram(); diffuseBlendProgram = context.createProgram(); opacityBlendProgram = context.createProgram(); - var compiledVertexProgram:ByteArray = this.method_245(Context3DProgramType.VERTEX,vertexProgram); - diffuseProgram.upload(compiledVertexProgram,this.method_245(Context3DProgramType.FRAGMENT,fragmentDiffuseProgram)); - opacityProgram.upload(compiledVertexProgram,this.method_245(Context3DProgramType.FRAGMENT,fragmentOpacityProgram)); - diffuseBlendProgram.upload(compiledVertexProgram,this.method_245(Context3DProgramType.FRAGMENT,fragmentDiffuseBlendProgram)); - opacityBlendProgram.upload(compiledVertexProgram,this.method_245(Context3DProgramType.FRAGMENT,fragmentOpacityBlendProgram)); + var compiledVertexProgram:ByteArray = this.compileProgram(Context3DProgramType.VERTEX,vertexProgram); + diffuseProgram.upload(compiledVertexProgram,this.compileProgram(Context3DProgramType.FRAGMENT,fragmentDiffuseProgram)); + opacityProgram.upload(compiledVertexProgram,this.compileProgram(Context3DProgramType.FRAGMENT,fragmentOpacityProgram)); + diffuseBlendProgram.upload(compiledVertexProgram,this.compileProgram(Context3DProgramType.FRAGMENT,fragmentDiffuseBlendProgram)); + opacityBlendProgram.upload(compiledVertexProgram,this.compileProgram(Context3DProgramType.FRAGMENT,fragmentOpacityBlendProgram)); } - private function method_245(mode:String, program:Array) : ByteArray + private function compileProgram(mode:String, program:Array) : ByteArray { var line:String = null; var string:String = ""; @@ -289,18 +289,18 @@ package package_25 line = program[i]; string += line + (i < length - 1 ? " \n" : ""); } - return new name_414().assemble(mode,string,false); + return new AGALMiniAssembler().assemble(mode,string,false); } - private function flush(camera:name_124) : void + private function flush(camera:Camera3D) : void { - if(this.var_136 == this.var_137.length) + if(this.§_-hr§ == this.§_-ZN§.length) { - this.var_137[this.var_136] = new name_78(); + this.§_-ZN§[this.§_-hr§] = new Object3D(); } - var object:name_78 = this.var_137[this.var_136]; - ++this.var_136; - object.alternativa3d::localToCameraTransform.l = (this.var_139 + this.var_140) / 2; + var object:Object3D = this.§_-ZN§[this.§_-hr§]; + ++this.§_-hr§; + object.alternativa3d::localToCameraTransform.l = (this.§_-La§ + this.§_-p3§) / 2; this.drawUnit.alternativa3d::object = object; this.drawUnit.alternativa3d::numTriangles = this.counter << 1; if(this.blendDestination == Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA) @@ -313,9 +313,9 @@ package package_25 } this.drawUnit.alternativa3d::setVertexBufferAt(0,vertexBuffer,0,Context3DVertexBufferFormat.FLOAT_3); this.drawUnit.alternativa3d::setVertexBufferAt(1,vertexBuffer,3,Context3DVertexBufferFormat.FLOAT_3); - this.drawUnit.alternativa3d::name_136(camera,124); - this.drawUnit.alternativa3d::name_134(0,(this.name_107 >> 16 & 0xFF) / 255,(this.name_107 >> 8 & 0xFF) / 255,(this.name_107 & 0xFF) / 255,this.fogMaxDensity); - this.drawUnit.alternativa3d::name_134(1,this.fogNear,this.fogFar - this.fogNear,0,1); + this.drawUnit.alternativa3d::setProjectionConstants(camera,124); + this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,(this.§_-IN§ >> 16 & 0xFF) / 255,(this.§_-IN§ >> 8 & 0xFF) / 255,(this.§_-IN§ & 0xFF) / 255,this.fogMaxDensity); + this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(1,this.fogNear,this.fogFar - this.fogNear,0,1); this.drawUnit.alternativa3d::setTextureAt(0,this.diffuse); if(this.opacity != null) { @@ -324,16 +324,16 @@ package package_25 this.drawUnit.alternativa3d::blendSource = this.blendSource; this.drawUnit.alternativa3d::blendDestination = this.blendDestination; this.drawUnit.alternativa3d::culling = Context3DTriangleFace.NONE; - camera.alternativa3d::renderer.alternativa3d::name_130(this.drawUnit,name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(this.drawUnit,RenderPriority.TRANSPARENT_SORT); } - private function method_248(camera:name_124, list:Particle) : void + private function drawParticleList(camera:Camera3D, list:Particle) : void { var last:Particle = null; var offset:int = 0; if(list.next != null) { - list = this.method_246(list); + list = this.sortParticleList(list); } for(var particle:Particle = list; particle != null; ) { @@ -343,21 +343,21 @@ package package_25 { this.flush(camera); } - this.drawUnit = camera.alternativa3d::renderer.alternativa3d::name_137(null,null,indexBuffer,0,0); + this.drawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(null,null,indexBuffer,0,0); this.diffuse = particle.diffuse; this.opacity = particle.opacity; this.blendSource = particle.blendSource; this.blendDestination = particle.blendDestination; this.counter = 0; - this.var_139 = particle.z; + this.§_-La§ = particle.z; } offset = this.counter << 2; - this.drawUnit.alternativa3d::name_144(offset++,particle.originX,particle.originY,particle.width,particle.height); - this.drawUnit.alternativa3d::name_144(offset++,particle.x,particle.y,particle.z,particle.rotation); - this.drawUnit.alternativa3d::name_144(offset++,particle.name_420,particle.name_419,particle.name_417,particle.name_416); - this.drawUnit.alternativa3d::name_144(offset++,particle.red,particle.green,particle.blue,particle.alpha); + this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.originX,particle.originY,particle.width,particle.height); + this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.x,particle.y,particle.z,particle.rotation); + this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.§_-q§,particle.§_-Ts§,particle.§_-ej§,particle.§_-W5§); + this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.red,particle.green,particle.blue,particle.alpha); ++this.counter; - this.var_140 = particle.z; + this.§_-p3§ = particle.z; last = particle; particle = particle.next; } @@ -365,7 +365,7 @@ package package_25 Particle.collector = list; } - private function method_246(list:Particle) : Particle + private function sortParticleList(list:Particle) : Particle { var left:Particle = list; var right:Particle = list.next; @@ -378,11 +378,11 @@ package package_25 list.next = null; if(left.next != null) { - left = this.method_246(left); + left = this.sortParticleList(left); } if(right.next != null) { - right = this.method_246(right); + right = this.sortParticleList(right); } var flag:Boolean = left.z > right.z; if(flag) @@ -435,12 +435,12 @@ package package_25 return list; } - private function method_250(camera:name_124, effectList:name_113) : void + private function drawConflictEffects(camera:Camera3D, effectList:§_-SG§) : void { var particleList:Particle = null; - var next:name_113 = null; + var next:§_-SG§ = null; var last:Particle = null; - for(var effect:name_113 = effectList; effect != null; ) + for(var effect:§_-SG§ = effectList; effect != null; ) { next = effect.alternativa3d::next; effect.alternativa3d::next = null; @@ -451,13 +451,13 @@ package package_25 last.next = particleList; particleList = effect.alternativa3d::particleList; effect.alternativa3d::particleList = null; - if(camera.debug && effect.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & name_397.BOUNDS)) + if(Boolean(camera.debug) && effect.boundBox != null && Boolean(camera.alternativa3d::checkInDebug(this) & Debug.BOUNDS)) { - name_397.alternativa3d::name_399(camera,effect.alternativa3d::aabb,alternativa3d::localToCameraTransform,16711680); + Debug.alternativa3d::drawBoundBox(camera,effect.alternativa3d::aabb,alternativa3d::localToCameraTransform,16711680); } effect = next; } - this.method_248(camera,particleList); + this.drawParticleList(camera,particleList); } } } diff --git a/src/package_25/name_250.as b/src/alternativa/engine3d/effects/TextureAtlas.as similarity index 58% rename from src/package_25/name_250.as rename to src/alternativa/engine3d/effects/TextureAtlas.as index 6309792..03a6019 100644 --- a/src/package_25/name_250.as +++ b/src/alternativa/engine3d/effects/TextureAtlas.as @@ -1,12 +1,12 @@ -package package_25 +package alternativa.engine3d.effects { - import package_28.name_129; + import alternativa.engine3d.resources.TextureResource; - public class name_250 + public class TextureAtlas { - public var diffuse:name_129; + public var diffuse:TextureResource; - public var opacity:name_129; + public var opacity:TextureResource; public var columnsCount:int; @@ -24,7 +24,7 @@ package package_25 public var originY:Number; - public function name_250(diffuse:name_129, opacity:name_129 = null, columnsCount:int = 1, rowsCount:int = 1, rangeBegin:int = 0, rangeLength:int = 1, fps:int = 30, loop:Boolean = false, originX:Number = 0.5, originY:Number = 0.5) + public function TextureAtlas(diffuse:TextureResource, opacity:TextureResource = null, columnsCount:int = 1, rowsCount:int = 1, rangeBegin:int = 0, rangeLength:int = 1, fps:int = 30, loop:Boolean = false, originX:Number = 0.5, originY:Number = 0.5) { super(); this.diffuse = diffuse; diff --git a/src/package_24/name_376.as b/src/alternativa/engine3d/lights/AmbientLight.as similarity index 50% rename from src/package_24/name_376.as rename to src/alternativa/engine3d/lights/AmbientLight.as index 79ab593..a1d73b9 100644 --- a/src/package_24/name_376.as +++ b/src/alternativa/engine3d/lights/AmbientLight.as @@ -1,44 +1,44 @@ -package package_24 +package alternativa.engine3d.lights { import alternativa.engine3d.alternativa3d; - import package_21.name_116; - import package_21.name_124; - import package_21.name_397; - import package_21.name_78; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; use namespace alternativa3d; - public class name_376 extends name_116 + public class AmbientLight extends Light3D { - public function name_376(color:uint) + public function AmbientLight(color:uint) { super(); this.color = color; } - override alternativa3d function calculateVisibility(camera:name_124) : void + override alternativa3d function calculateVisibility(camera:Camera3D) : void { camera.alternativa3d::ambient[0] += (color >> 16 & 0xFF) * intensity / 255; camera.alternativa3d::ambient[1] += (color >> 8 & 0xFF) * intensity / 255; camera.alternativa3d::ambient[2] += (color & 0xFF) * intensity / 255; } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { var debug:int = 0; if(camera.debug) { debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - override public function clone() : name_78 + override public function clone() : Object3D { - var res:name_376 = new name_376(color); + var res:AmbientLight = new AmbientLight(color); res.clonePropertiesFrom(this); return res; } diff --git a/src/package_24/DirectionalLight.as b/src/alternativa/engine3d/lights/DirectionalLight.as similarity index 54% rename from src/package_24/DirectionalLight.as rename to src/alternativa/engine3d/lights/DirectionalLight.as index c18cfe6..3f94e1a 100644 --- a/src/package_24/DirectionalLight.as +++ b/src/alternativa/engine3d/lights/DirectionalLight.as @@ -1,17 +1,17 @@ -package package_24 +package alternativa.engine3d.lights { import alternativa.engine3d.alternativa3d; - import package_21.name_116; - import package_21.name_124; - import package_21.name_397; - import package_21.name_78; - import package_23.name_103; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.shadows.ShadowRenderer; use namespace alternativa3d; - public class DirectionalLight extends name_116 + public class DirectionalLight extends Light3D { - public var shadow:name_103; + public var shadow:ShadowRenderer; public function DirectionalLight(color:uint) { @@ -29,20 +29,20 @@ package package_24 rotationZ = -Math.atan2(dx,dy); } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { var debug:int = 0; if(camera.debug) { debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - override public function clone() : name_78 + override public function clone() : Object3D { var res:DirectionalLight = new DirectionalLight(color); res.clonePropertiesFrom(this); diff --git a/src/package_24/OmniLight.as b/src/alternativa/engine3d/lights/OmniLight.as similarity index 79% rename from src/package_24/OmniLight.as rename to src/alternativa/engine3d/lights/OmniLight.as index 8eb4647..75d1cb5 100644 --- a/src/package_24/OmniLight.as +++ b/src/alternativa/engine3d/lights/OmniLight.as @@ -1,16 +1,16 @@ -package package_24 +package alternativa.engine3d.lights { import alternativa.engine3d.alternativa3d; - import package_21.name_116; - import package_21.name_124; - import package_21.name_139; - import package_21.name_386; - import package_21.name_397; - import package_21.name_78; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Transform3D; use namespace alternativa3d; - public class OmniLight extends name_116 + public class OmniLight extends Light3D { public var attenuationBegin:Number; @@ -25,7 +25,7 @@ package package_24 calculateBoundBox(); } - override alternativa3d function updateBoundBox(boundBox:name_386, hierarchy:Boolean, transform:name_139 = null) : void + override alternativa3d function updateBoundBox(boundBox:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void { super.alternativa3d::updateBoundBox(boundBox,hierarchy,transform); if(transform == null) @@ -57,36 +57,36 @@ package package_24 } } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { var debug:int = 0; if(camera.debug) { debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - override alternativa3d function checkBound(targetObject:name_78) : Boolean + override alternativa3d function checkBound(targetObject:Object3D) : Boolean { - var rScale:Number = Number(Math.sqrt(alternativa3d::name_141.a * alternativa3d::name_141.a + alternativa3d::name_141.e * alternativa3d::name_141.e + alternativa3d::name_141.i * alternativa3d::name_141.i)); - rScale += Math.sqrt(alternativa3d::name_141.b * alternativa3d::name_141.b + alternativa3d::name_141.f * alternativa3d::name_141.f + alternativa3d::name_141.j * alternativa3d::name_141.j); - rScale += Math.sqrt(alternativa3d::name_141.c * alternativa3d::name_141.c + alternativa3d::name_141.g * alternativa3d::name_141.g + alternativa3d::name_141.k * alternativa3d::name_141.k); + var rScale:Number = Number(Math.sqrt(alternativa3d::_-cl.a * alternativa3d::_-cl.a + alternativa3d::_-cl.e * alternativa3d::_-cl.e + alternativa3d::_-cl.i * alternativa3d::_-cl.i)); + rScale += Math.sqrt(alternativa3d::_-cl.b * alternativa3d::_-cl.b + alternativa3d::_-cl.f * alternativa3d::_-cl.f + alternativa3d::_-cl.j * alternativa3d::_-cl.j); + rScale += Math.sqrt(alternativa3d::_-cl.c * alternativa3d::_-cl.c + alternativa3d::_-cl.g * alternativa3d::_-cl.g + alternativa3d::_-cl.k * alternativa3d::_-cl.k); rScale /= 3; rScale *= this.attenuationEnd; rScale *= rScale; var len:Number = 0; - var bb:name_386 = targetObject.boundBox; + var bb:BoundBox = targetObject.boundBox; var minX:Number = bb.minX; var minY:Number = bb.minY; var minZ:Number = bb.minZ; var maxX:Number = bb.maxX; - var px:Number = Number(alternativa3d::name_141.d); - var py:Number = Number(alternativa3d::name_141.h); - var pz:Number = Number(alternativa3d::name_141.l); + var px:Number = Number(alternativa3d::_-cl.d); + var py:Number = Number(alternativa3d::_-cl.h); + var pz:Number = Number(alternativa3d::_-cl.l); var maxY:Number = bb.maxY; var maxZ:Number = bb.maxZ; if(px < minX) @@ -262,7 +262,7 @@ package package_24 return true; } - override public function clone() : name_78 + override public function clone() : Object3D { var res:OmniLight = new OmniLight(color,this.attenuationBegin,this.attenuationEnd); res.clonePropertiesFrom(this); diff --git a/src/package_24/SpotLight.as b/src/alternativa/engine3d/lights/SpotLight.as similarity index 56% rename from src/package_24/SpotLight.as rename to src/alternativa/engine3d/lights/SpotLight.as index 8399d36..0dc1963 100644 --- a/src/package_24/SpotLight.as +++ b/src/alternativa/engine3d/lights/SpotLight.as @@ -1,16 +1,16 @@ -package package_24 +package alternativa.engine3d.lights { import alternativa.engine3d.alternativa3d; - import package_21.name_116; - import package_21.name_124; - import package_21.name_139; - import package_21.name_386; - import package_21.name_397; - import package_21.name_78; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Transform3D; use namespace alternativa3d; - public class SpotLight extends name_116 + public class SpotLight extends Light3D { public var attenuationBegin:Number; @@ -31,7 +31,7 @@ package package_24 calculateBoundBox(); } - override alternativa3d function updateBoundBox(boundBox:name_386, hierarchy:Boolean, transform:name_139 = null) : void + override alternativa3d function updateBoundBox(boundBox:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void { var bottom:Number = NaN; var r:Number = this.falloff < Math.PI ? Math.sin(this.falloff * 0.5) * this.attenuationEnd : this.attenuationEnd; @@ -54,20 +54,20 @@ package package_24 rotationZ = -Math.atan2(dx,dy); } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { var debug:int = 0; if(camera.debug) { debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - override alternativa3d function checkBound(targetObject:name_78) : Boolean + override alternativa3d function checkBound(targetObject:Object3D) : Boolean { var sum:Number = NaN; var pro:Number = NaN; @@ -80,22 +80,22 @@ package package_24 var w:Number = (maxX - minX) * 0.5; var l:Number = (maxY - minY) * 0.5; var h:Number = (maxZ - minZ) * 0.5; - var ax:Number = alternativa3d::name_141.a * w; - var ay:Number = alternativa3d::name_141.e * w; - var az:Number = alternativa3d::name_141.i * w; - var bx:Number = alternativa3d::name_141.b * l; - var by:Number = alternativa3d::name_141.f * l; - var bz:Number = alternativa3d::name_141.j * l; - var cx:Number = alternativa3d::name_141.c * h; - var cy:Number = alternativa3d::name_141.g * h; - var cz:Number = alternativa3d::name_141.k * h; - var objectBB:name_386 = targetObject.boundBox; + var ax:Number = alternativa3d::_-cl.a * w; + var ay:Number = alternativa3d::_-cl.e * w; + var az:Number = alternativa3d::_-cl.i * w; + var bx:Number = alternativa3d::_-cl.b * l; + var by:Number = alternativa3d::_-cl.f * l; + var bz:Number = alternativa3d::_-cl.j * l; + var cx:Number = alternativa3d::_-cl.c * h; + var cy:Number = alternativa3d::_-cl.g * h; + var cz:Number = alternativa3d::_-cl.k * h; + var objectBB:BoundBox = targetObject.boundBox; var hw:Number = (objectBB.maxX - objectBB.minX) * 0.5; var hl:Number = (objectBB.maxY - objectBB.minY) * 0.5; var hh:Number = (objectBB.maxZ - objectBB.minZ) * 0.5; - var dx:Number = alternativa3d::name_141.a * (minX + w) + alternativa3d::name_141.b * (minY + l) + alternativa3d::name_141.c * (minZ + h) + alternativa3d::name_141.d - objectBB.minX - hw; - var dy:Number = alternativa3d::name_141.e * (minX + w) + alternativa3d::name_141.f * (minY + l) + alternativa3d::name_141.g * (minZ + h) + alternativa3d::name_141.h - objectBB.minY - hl; - var dz:Number = alternativa3d::name_141.i * (minX + w) + alternativa3d::name_141.j * (minY + l) + alternativa3d::name_141.k * (minZ + h) + alternativa3d::name_141.l - objectBB.minZ - hh; + var dx:Number = alternativa3d::_-cl.a * (minX + w) + alternativa3d::_-cl.b * (minY + l) + alternativa3d::_-cl.c * (minZ + h) + alternativa3d::_-cl.d - objectBB.minX - hw; + var dy:Number = alternativa3d::_-cl.e * (minX + w) + alternativa3d::_-cl.f * (minY + l) + alternativa3d::_-cl.g * (minZ + h) + alternativa3d::_-cl.h - objectBB.minY - hl; + var dz:Number = alternativa3d::_-cl.i * (minX + w) + alternativa3d::_-cl.j * (minY + l) + alternativa3d::_-cl.k * (minZ + h) + alternativa3d::_-cl.l - objectBB.minZ - hh; sum = 0; if(ax >= 0) { @@ -208,7 +208,7 @@ package package_24 return false; } sum = 0; - pro = alternativa3d::name_141.a * ax + alternativa3d::name_141.e * ay + alternativa3d::name_141.i * az; + pro = alternativa3d::_-cl.a * ax + alternativa3d::_-cl.e * ay + alternativa3d::_-cl.i * az; if(pro >= 0) { sum += pro; @@ -217,7 +217,7 @@ package package_24 { sum -= pro; } - pro = alternativa3d::name_141.a * bx + alternativa3d::name_141.e * by + alternativa3d::name_141.i * bz; + pro = alternativa3d::_-cl.a * bx + alternativa3d::_-cl.e * by + alternativa3d::_-cl.i * bz; if(pro >= 0) { sum += pro; @@ -226,7 +226,7 @@ package package_24 { sum -= pro; } - pro = alternativa3d::name_141.a * cx + alternativa3d::name_141.e * cy + alternativa3d::name_141.i * cz; + pro = alternativa3d::_-cl.a * cx + alternativa3d::_-cl.e * cy + alternativa3d::_-cl.i * cz; if(pro >= 0) { sum += pro; @@ -235,31 +235,31 @@ package package_24 { sum -= pro; } - if(alternativa3d::name_141.a >= 0) + if(alternativa3d::_-cl.a >= 0) { - sum += alternativa3d::name_141.a * hw; + sum += alternativa3d::_-cl.a * hw; } else { - sum -= alternativa3d::name_141.a * hw; + sum -= alternativa3d::_-cl.a * hw; } - if(alternativa3d::name_141.e >= 0) + if(alternativa3d::_-cl.e >= 0) { - sum += alternativa3d::name_141.e * hl; + sum += alternativa3d::_-cl.e * hl; } else { - sum -= alternativa3d::name_141.e * hl; + sum -= alternativa3d::_-cl.e * hl; } - if(alternativa3d::name_141.i >= 0) + if(alternativa3d::_-cl.i >= 0) { - sum += alternativa3d::name_141.i * hh; + sum += alternativa3d::_-cl.i * hh; } else { - sum -= alternativa3d::name_141.i * hh; + sum -= alternativa3d::_-cl.i * hh; } - pro = alternativa3d::name_141.a * dx + alternativa3d::name_141.e * dy + alternativa3d::name_141.i * dz; + pro = alternativa3d::_-cl.a * dx + alternativa3d::_-cl.e * dy + alternativa3d::_-cl.i * dz; if(pro >= 0) { sum -= pro; @@ -273,7 +273,7 @@ package package_24 return false; } sum = 0; - pro = alternativa3d::name_141.b * ax + alternativa3d::name_141.f * ay + alternativa3d::name_141.j * az; + pro = alternativa3d::_-cl.b * ax + alternativa3d::_-cl.f * ay + alternativa3d::_-cl.j * az; if(pro >= 0) { sum += pro; @@ -282,7 +282,7 @@ package package_24 { sum -= pro; } - pro = alternativa3d::name_141.b * bx + alternativa3d::name_141.f * by + alternativa3d::name_141.j * bz; + pro = alternativa3d::_-cl.b * bx + alternativa3d::_-cl.f * by + alternativa3d::_-cl.j * bz; if(pro >= 0) { sum += pro; @@ -291,7 +291,7 @@ package package_24 { sum -= pro; } - pro = alternativa3d::name_141.b * cx + alternativa3d::name_141.f * cy + alternativa3d::name_141.j * cz; + pro = alternativa3d::_-cl.b * cx + alternativa3d::_-cl.f * cy + alternativa3d::_-cl.j * cz; if(pro >= 0) { sum += pro; @@ -300,31 +300,31 @@ package package_24 { sum -= pro; } - if(alternativa3d::name_141.b >= 0) + if(alternativa3d::_-cl.b >= 0) { - sum += alternativa3d::name_141.b * hw; + sum += alternativa3d::_-cl.b * hw; } else { - sum -= alternativa3d::name_141.b * hw; + sum -= alternativa3d::_-cl.b * hw; } - if(alternativa3d::name_141.f >= 0) + if(alternativa3d::_-cl.f >= 0) { - sum += alternativa3d::name_141.f * hl; + sum += alternativa3d::_-cl.f * hl; } else { - sum -= alternativa3d::name_141.f * hl; + sum -= alternativa3d::_-cl.f * hl; } - if(alternativa3d::name_141.j >= 0) + if(alternativa3d::_-cl.j >= 0) { - sum += alternativa3d::name_141.j * hh; + sum += alternativa3d::_-cl.j * hh; } else { - sum -= alternativa3d::name_141.j * hh; + sum -= alternativa3d::_-cl.j * hh; } - pro = alternativa3d::name_141.b * dx + alternativa3d::name_141.f * dy + alternativa3d::name_141.j * dz; + pro = alternativa3d::_-cl.b * dx + alternativa3d::_-cl.f * dy + alternativa3d::_-cl.j * dz; if(pro >= 0) { sum -= pro; @@ -335,7 +335,7 @@ package package_24 return false; } sum = 0; - pro = alternativa3d::name_141.c * ax + alternativa3d::name_141.g * ay + alternativa3d::name_141.k * az; + pro = alternativa3d::_-cl.c * ax + alternativa3d::_-cl.g * ay + alternativa3d::_-cl.k * az; if(pro >= 0) { sum += pro; @@ -344,7 +344,7 @@ package package_24 { sum -= pro; } - pro = alternativa3d::name_141.c * bx + alternativa3d::name_141.g * by + alternativa3d::name_141.k * bz; + pro = alternativa3d::_-cl.c * bx + alternativa3d::_-cl.g * by + alternativa3d::_-cl.k * bz; if(pro >= 0) { sum += pro; @@ -353,7 +353,7 @@ package package_24 { sum -= pro; } - pro = alternativa3d::name_141.c * cx + alternativa3d::name_141.g * cy + alternativa3d::name_141.k * cz; + pro = alternativa3d::_-cl.c * cx + alternativa3d::_-cl.g * cy + alternativa3d::_-cl.k * cz; if(pro >= 0) { sum += pro; @@ -362,31 +362,31 @@ package package_24 { sum -= pro; } - if(alternativa3d::name_141.c >= 0) + if(alternativa3d::_-cl.c >= 0) { - sum += alternativa3d::name_141.c * hw; + sum += alternativa3d::_-cl.c * hw; } else { - sum -= alternativa3d::name_141.c * hw; + sum -= alternativa3d::_-cl.c * hw; } - if(alternativa3d::name_141.g >= 0) + if(alternativa3d::_-cl.g >= 0) { - sum += alternativa3d::name_141.g * hl; + sum += alternativa3d::_-cl.g * hl; } else { - sum -= alternativa3d::name_141.g * hl; + sum -= alternativa3d::_-cl.g * hl; } - if(alternativa3d::name_141.k >= 0) + if(alternativa3d::_-cl.k >= 0) { - sum += alternativa3d::name_141.k * hh; + sum += alternativa3d::_-cl.k * hh; } else { - sum -= alternativa3d::name_141.k * hh; + sum -= alternativa3d::_-cl.k * hh; } - pro = alternativa3d::name_141.c * dx + alternativa3d::name_141.g * dy + alternativa3d::name_141.k * dz; + pro = alternativa3d::_-cl.c * dx + alternativa3d::_-cl.g * dy + alternativa3d::_-cl.k * dz; if(pro >= 0) { sum -= pro; @@ -402,7 +402,7 @@ package package_24 return true; } - override public function clone() : name_78 + override public function clone() : Object3D { var res:SpotLight = new SpotLight(color,this.attenuationBegin,this.attenuationEnd,this.hotspot,this.falloff); res.clonePropertiesFrom(this); diff --git a/src/package_116/name_530.as b/src/alternativa/engine3d/loaders/ParserCollada.as similarity index 57% rename from src/package_116/name_530.as rename to src/alternativa/engine3d/loaders/ParserCollada.as index 9a8c01d..8e402bd 100644 --- a/src/package_116/name_530.as +++ b/src/alternativa/engine3d/loaders/ParserCollada.as @@ -1,109 +1,109 @@ -package package_116 +package alternativa.engine3d.loaders { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.animation.§_-FA§; + import alternativa.engine3d.animation.keys.§_-Np§; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.loaders.collada.DaeDocument; + import alternativa.engine3d.loaders.collada.DaeMaterial; + import alternativa.engine3d.loaders.collada.DaeNode; + import alternativa.engine3d.loaders.collada.DaeObject; + import alternativa.engine3d.resources.ExternalTextureResource; import flash.utils.Dictionary; - import package_123.name_706; - import package_123.name_707; - import package_123.name_711; - import package_123.name_713; - import package_124.name_705; - import package_125.name_709; - import package_21.name_116; - import package_21.name_78; - import package_28.name_167; use namespace alternativa3d; - public class name_530 + public class ParserCollada { - public var hierarchy:Vector.; + public var hierarchy:Vector.; - public var objects:Vector.; + public var objects:Vector.; - public var lights:Vector.; + public var lights:Vector.; - public var materials:Vector.; + public var materials:Vector.; - public var var_635:Vector.; + public var §_-eL§:Vector.<§_-FA§>; - private var var_634:Dictionary; + private var §_-W6§:Dictionary; - public function name_530() + public function ParserCollada() { super(); } - public static function method_747(data:XML) : name_705 + public static function parseAnimation(data:XML) : §_-FA§ { - var document:name_707 = new name_707(data,0); - var clip:name_705 = new name_705(); - method_742(clip,document.scene.nodes); + var document:DaeDocument = new DaeDocument(data,0); + var clip:§_-FA§ = new §_-FA§(); + collectAnimation(clip,document.scene.nodes); return clip.numTracks > 0 ? clip : null; } - private static function method_742(clip:name_705, nodes:Vector.) : void + private static function collectAnimation(clip:§_-FA§, nodes:Vector.) : void { - var node:name_706 = null; - var animation:name_705 = null; + var node:DaeNode = null; + var animation:§_-FA§ = null; var t:int = 0; var numTracks:int = 0; - var track:name_709 = null; + var track:§_-Np§ = null; for(var i:int = 0,var count:int = int(nodes.length); i < count; i++) { node = nodes[i]; - animation = node.method_747(); + animation = node.parseAnimation(); if(animation != null) { - for(t = 0,numTracks = animation.numTracks; t < numTracks; t++) + for(t = 0,numTracks = int(animation.numTracks); t < numTracks; t++) { - track = animation.name_716(t); - clip.name_712(track); + track = animation.§_-QA§(t); + clip.§_-nn§(track); } } else { - clip.name_712(node.name_715()); + clip.§_-nn§(node.createStaticTransformTrack()); } - method_742(clip,node.nodes); + collectAnimation(clip,node.nodes); } } - public function method_750() : void + public function clean() : void { this.objects = null; this.hierarchy = null; this.lights = null; - this.var_635 = null; + this.§_-eL§ = null; this.materials = null; - this.var_634 = null; + this.§_-W6§ = null; } - public function method_752(object:name_78) : String + public function getObjectLayer(object:Object3D) : String { - return this.var_634[object]; + return this.§_-W6§[object]; } - private function init(data:XML, units:Number) : name_707 + private function init(data:XML, units:Number) : DaeDocument { - this.method_750(); - this.objects = new Vector.(); - this.hierarchy = new Vector.(); - this.lights = new Vector.(); - this.var_635 = new Vector.(); - this.materials = new Vector.(); - this.var_634 = new Dictionary(true); - return new name_707(data,units); + this.clean(); + this.objects = new Vector.(); + this.hierarchy = new Vector.(); + this.lights = new Vector.(); + this.§_-eL§ = new Vector.<§_-FA§>(); + this.materials = new Vector.(); + this.§_-W6§ = new Dictionary(true); + return new DaeDocument(data,units); } - public function method_314(data:XML, baseURL:String = null, trimPaths:Boolean = false) : void + public function parse(data:XML, baseURL:String = null, trimPaths:Boolean = false) : void { var i:int = 0; var count:int = 0; - var document:name_707 = this.init(data,0); + var document:DaeDocument = this.init(data,0); if(document.scene != null) { - this.method_743(document.scene.nodes,null,false); - this.method_748(document.materials,baseURL,trimPaths); + this.parseNodes(document.scene.nodes,null,false); + this.parseMaterials(document.materials,baseURL,trimPaths); for(i = 0,count = int(this.hierarchy.length); i < count; i++) { this.hierarchy[i].calculateBoundBox(); @@ -111,9 +111,9 @@ package package_116 } } - private function addObject(animatedObject:name_711, parent:name_78, layer:String) : name_78 + private function addObject(animatedObject:DaeObject, parent:Object3D, layer:String) : Object3D { - var object:name_78 = name_78(animatedObject.object); + var object:Object3D = Object3D(animatedObject.object); this.objects.push(object); if(parent == null) { @@ -123,24 +123,24 @@ package package_116 { parent.addChild(object); } - if(object is name_116) + if(object is Light3D) { - this.lights.push(name_116(object)); + this.lights.push(Light3D(object)); } if(animatedObject.animation != null) { - this.var_635.push(animatedObject.animation); + this.§_-eL§.push(animatedObject.animation); } if(Boolean(layer)) { - this.var_634[object] = layer; + this.§_-W6§[object] = layer; } return object; } - private function method_745(animatedObjects:Vector., parent:name_78, layer:String) : name_78 + private function addObjects(animatedObjects:Vector., parent:Object3D, layer:String) : Object3D { - var first:name_78 = this.addObject(animatedObjects[0],parent,layer); + var first:Object3D = this.addObject(animatedObjects[0],parent,layer); for(var i:int = 1,var count:int = int(animatedObjects.length); i < count; i++) { this.addObject(animatedObjects[i],parent,layer); @@ -148,19 +148,19 @@ package package_116 return first; } - private function method_746(node:name_706) : Boolean + private function hasSkinsInChildren(node:DaeNode) : Boolean { - var child:name_706 = null; - var nodes:Vector. = node.nodes; + var child:DaeNode = null; + var nodes:Vector. = node.nodes; for(var i:int = 0,var count:int = int(nodes.length); i < count; ) { child = nodes[i]; - child.method_314(); + child.parse(); if(child.skins != null) { return true; } - if(this.method_746(child)) + if(this.hasSkinsInChildren(child)) { return true; } @@ -169,65 +169,65 @@ package package_116 return false; } - private function method_743(nodes:Vector., parent:name_78, skinsOnly:Boolean = false) : void + private function parseNodes(nodes:Vector., parent:Object3D, skinsOnly:Boolean = false) : void { - var node:name_706 = null; - var container:name_78 = null; + var node:DaeNode = null; + var container:Object3D = null; for(var i:int = 0,var count:int = int(nodes.length); i < count; ) { node = nodes[i]; - node.method_314(); + node.parse(); container = null; if(node.skins != null) { - container = this.method_745(node.skins,parent,node.layer); + container = this.addObjects(node.skins,parent,node.layer); } else if(!skinsOnly && !node.skinOrTopmostJoint) { if(node.objects != null) { - container = this.method_745(node.objects,parent,node.layer); + container = this.addObjects(node.objects,parent,node.layer); } else { - container = new name_78(); - container.name = node.name_708(node.name); - this.addObject(node.name_714(node.name_710(container)),parent,node.layer); + container = new Object3D(); + container.name = node.cloneString(node.name); + this.addObject(node.applyAnimation(node.applyTransformations(container)),parent,node.layer); } } - else if(this.method_746(node)) + else if(this.hasSkinsInChildren(node)) { - container = new name_78(); - container.name = node.name_708(node.name); - this.addObject(node.name_714(node.name_710(container)),parent,node.layer); - this.method_743(node.nodes,container,skinsOnly || node.skinOrTopmostJoint); + container = new Object3D(); + container.name = node.cloneString(node.name); + this.addObject(node.applyAnimation(node.applyTransformations(container)),parent,node.layer); + this.parseNodes(node.nodes,container,skinsOnly || node.skinOrTopmostJoint); } if(container != null) { - this.method_743(node.nodes,container,skinsOnly || node.skinOrTopmostJoint); + this.parseNodes(node.nodes,container,skinsOnly || node.skinOrTopmostJoint); } i++; } } - private function method_749(path:String) : String + private function trimPath(path:String) : String { var index:int = int(path.lastIndexOf("/")); return index < 0 ? path : path.substr(index + 1); } - private function method_748(materials:Object, baseURL:String, trimPaths:Boolean) : void + private function parseMaterials(materials:Object, baseURL:String, trimPaths:Boolean) : void { - var tmaterial:name_641 = null; - var material:name_713 = null; - var resource:name_167 = null; + var tmaterial:ParserMaterial = null; + var material:DaeMaterial = null; + var resource:ExternalTextureResource = null; var base:String = null; var end:int = 0; for each(material in materials) { if(material.used) { - material.method_314(); + material.parse(); this.materials.push(material.material); } } @@ -239,7 +239,7 @@ package package_116 { if(resource != null && resource.url != null) { - resource.url = this.method_749(this.method_744(resource.url)); + resource.url = this.trimPath(this.fixURL(resource.url)); } } } @@ -252,14 +252,14 @@ package package_116 { if(resource != null && resource.url != null) { - resource.url = this.method_744(resource.url); + resource.url = this.fixURL(resource.url); } } } } if(baseURL != null) { - baseURL = this.method_744(baseURL); + baseURL = this.fixURL(baseURL); end = int(baseURL.lastIndexOf("/")); base = end < 0 ? "" : baseURL.substr(0,end); for each(tmaterial in this.materials) @@ -268,14 +268,14 @@ package package_116 { if(resource != null && resource.url != null) { - resource.url = this.method_751(resource.url,base); + resource.url = this.resolveURL(resource.url,base); } } } } } - private function method_744(url:String) : String + private function fixURL(url:String) : String { var pathStart:int = int(url.indexOf("://")); pathStart = pathStart < 0 ? 0 : pathStart + 3; @@ -295,7 +295,7 @@ package package_116 return url.substring(0,pathStart) + path + (pathEnd >= 0 ? url.substring(pathEnd) : ""); } - private function method_741(path:String, base:String, relative:Boolean = false) : String + private function mergePath(path:String, base:String, relative:Boolean = false) : String { var part:String = null; var basePart:String = null; @@ -331,7 +331,7 @@ package package_116 return baseParts.join("/"); } - private function method_751(url:String, base:String) : String + private function resolveURL(url:String, base:String) : String { var queryAndFragmentIndex:int = 0; var path:String = null; @@ -341,7 +341,7 @@ package package_116 var bShemeIndex:int = 0; var bAuthorityIndex:int = 0; var bSheme:String = null; - var bAuthority:String = null; + var _loc13_:String = null; if(base == "") { return url; @@ -379,25 +379,25 @@ package package_116 bPath = base.substring(bShemeIndex + 1); if(bPath.charAt(0) == "/") { - return bSheme + "/" + this.method_741(path,bPath.substring(1),false) + queryAndFragment; + return bSheme + "/" + this.mergePath(path,bPath.substring(1),false) + queryAndFragment; } - return bSheme + this.method_741(path,bPath,false) + queryAndFragment; + return bSheme + this.mergePath(path,bPath,false) + queryAndFragment; } if(base.charAt(0) == "/") { - return "/" + this.method_741(path,base.substring(1),false) + queryAndFragment; + return "/" + this.mergePath(path,base.substring(1),false) + queryAndFragment; } - return this.method_741(path,base,true) + queryAndFragment; + return this.mergePath(path,base,true) + queryAndFragment; } bSlashIndex = int(base.indexOf("/",bAuthorityIndex + 2)); if(bSlashIndex >= 0) { - bAuthority = base.substring(0,bSlashIndex + 1); + _loc13_ = base.substring(0,bSlashIndex + 1); bPath = base.substring(bSlashIndex + 1); - return bAuthority + this.method_741(path,bPath,false) + queryAndFragment; + return _loc13_ + this.mergePath(path,bPath,false) + queryAndFragment; } - bAuthority = base; - return bAuthority + "/" + this.method_741(path,"",false); + _loc13_ = base; + return _loc13_ + "/" + this.mergePath(path,"",false); } var shemeIndex:int = int(url.indexOf(":")); var slashIndex:int = int(url.indexOf("/")); @@ -408,9 +408,9 @@ package package_116 return base + "/" + url; } - public function method_729(name:String) : name_78 + public function getObjectByName(name:String) : Object3D { - var object:name_78 = null; + var object:Object3D = null; for each(object in this.objects) { if(object.name == name) @@ -421,13 +421,13 @@ package package_116 return null; } - public function method_753(object:Object) : name_705 + public function getAnimationByObject(object:Object) : §_-FA§ { - var animation:name_705 = null; + var animation:§_-FA§ = null; var objects:Array = null; - for each(animation in this.var_635) + for each(animation in this.§_-eL§) { - objects = animation.alternativa3d::var_346; + objects = animation.alternativa3d::_-Kq; if(objects.indexOf(object) >= 0) { return animation; diff --git a/src/alternativa/engine3d/loaders/ParserMaterial.as b/src/alternativa/engine3d/loaders/ParserMaterial.as new file mode 100644 index 0000000..cac400d --- /dev/null +++ b/src/alternativa/engine3d/loaders/ParserMaterial.as @@ -0,0 +1,86 @@ +package alternativa.engine3d.loaders +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.materials.*; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.ExternalTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; + import avmplus.getQualifiedClassName; + import flash.utils.Dictionary; + import flash.utils.getDefinitionByName; + + use namespace alternativa3d; + + public class ParserMaterial extends Material + { + public var colors:Object; + + public var textures:Object; + + public var transparency:Number = 0; + + public var §_-3m§:String = "diffuse"; + + private var textureMaterial:TextureMaterial; + + private var §_-h7§:FillMaterial; + + public function ParserMaterial() + { + super(); + this.textures = new Object(); + this.colors = new Object(); + } + + override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void + { + var texture:TextureResource = null; + super.alternativa3d::fillResources(resources,resourceType); + for each(texture in this.textures) + { + if(texture != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(texture)) as Class,resourceType))) + { + resources[texture] = true; + } + } + } + + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + { + var map:ExternalTextureResource = null; + var colorO:Object = this.colors[this.§_-3m§]; + if(colorO != null) + { + if(this.§_-h7§ == null) + { + this.§_-h7§ = new FillMaterial(int(colorO)); + } + else + { + this.§_-h7§.color = int(colorO); + } + this.§_-h7§.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); + } + else + { + map = this.textures[this.§_-3m§]; + if(map != null) + { + if(this.textureMaterial == null) + { + this.textureMaterial = new TextureMaterial(map); + } + else + { + this.textureMaterial.diffuseMap = map; + } + this.textureMaterial.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); + } + } + } + } +} + diff --git a/src/package_123/name_746.as b/src/alternativa/engine3d/loaders/collada/DaeArray.as similarity index 76% rename from src/package_123/name_746.as rename to src/alternativa/engine3d/loaders/collada/DaeArray.as index ec272fe..7040c12 100644 --- a/src/package_123/name_746.as +++ b/src/alternativa/engine3d/loaders/collada/DaeArray.as @@ -1,12 +1,12 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_746 extends class_43 + public class DaeArray extends DaeElement { public var array:Array; - public function name_746(data:XML, document:name_707) + public function DaeArray(data:XML, document:DaeDocument) { super(data,document); } @@ -19,7 +19,7 @@ package package_123 override protected function parseImplementation() : Boolean { var count:int = 0; - this.array = name_565(data); + this.array = parseStringArray(data); var countXML:XML = data.@count[0]; if(countXML != null) { diff --git a/src/package_123/name_742.as b/src/alternativa/engine3d/loaders/collada/DaeChannel.as similarity index 61% rename from src/package_123/name_742.as rename to src/alternativa/engine3d/loaders/collada/DaeChannel.as index e46285a..0444b3e 100644 --- a/src/package_123/name_742.as +++ b/src/alternativa/engine3d/loaders/collada/DaeChannel.as @@ -1,13 +1,13 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; - import package_125.name_709; - import package_125.name_760; - import package_125.name_778; + import alternativa.engine3d.animation.keys.NumberKey; + import alternativa.engine3d.animation.keys.§_-Np§; + import alternativa.engine3d.animation.keys.§_-kB§; use namespace alternativa3d; - public class name_742 extends class_43 + public class DaeChannel extends DaeElement { public static const PARAM_UNDEFINED:String = "undefined"; @@ -35,21 +35,21 @@ package package_123 public static const PARAM_MATRIX:String = "matrix"; - public var tracks:Vector.; + public var tracks:Vector.<§_-Np§>; - public var name_756:String = "undefined"; + public var §_-dS§:String = "undefined"; - public var method_872:String; + public var animName:String; - public function name_742(data:XML, document:name_707) + public function DaeChannel(data:XML, document:DaeDocument) { super(data,document); } - public function get node() : name_706 + public function get node() : DaeNode { var targetParts:Array = null; - var node:name_706 = null; + var node:DaeNode = null; var i:int = 0; var count:int = 0; var sid:String = null; @@ -79,12 +79,12 @@ package package_123 override protected function parseImplementation() : Boolean { - this.method_895(); - this.method_894(); + this.parseTransformationType(); + this.parseSampler(); return true; } - private function method_895() : void + private function parseTransformationType() : void { var transformationXML:XML = null; var child:XML = null; @@ -100,12 +100,12 @@ package package_123 var sid:String = targetParts.pop(); var sidParts:Array = sid.split("."); var sidPartsCount:int = int(sidParts.length); - var node:name_706 = this.node; + var node:DaeNode = this.node; if(node == null) { return; } - this.method_872 = node.method_872; + this.animName = node.animName; var children:XMLList = node.data.children(); for(var i:int = 0,var count:int = int(children.length()); i < count; ) { @@ -129,40 +129,40 @@ package package_123 switch(componentName) { case "X": - this.name_756 = PARAM_TRANSLATE_X; + this.§_-dS§ = PARAM_TRANSLATE_X; break loop1; case "Y": - this.name_756 = PARAM_TRANSLATE_Y; + this.§_-dS§ = PARAM_TRANSLATE_Y; break loop1; case "Z": - this.name_756 = PARAM_TRANSLATE_Z; + this.§_-dS§ = PARAM_TRANSLATE_Z; } break; case "rotate": - axis = method_866(transformationXML); + axis = parseNumbersArray(transformationXML); switch(axis.indexOf(1)) { case 0: - this.name_756 = PARAM_ROTATION_X; + this.§_-dS§ = PARAM_ROTATION_X; break loop1; case 1: - this.name_756 = PARAM_ROTATION_Y; + this.§_-dS§ = PARAM_ROTATION_Y; break loop1; case 2: - this.name_756 = PARAM_ROTATION_Z; + this.§_-dS§ = PARAM_ROTATION_Z; } break; case "scale": switch(componentName) { case "X": - this.name_756 = PARAM_SCALE_X; + this.§_-dS§ = PARAM_SCALE_X; break loop1; case "Y": - this.name_756 = PARAM_SCALE_Y; + this.§_-dS§ = PARAM_SCALE_Y; break loop1; case "Z": - this.name_756 = PARAM_SCALE_Z; + this.§_-dS§ = PARAM_SCALE_Z; } } } @@ -171,55 +171,55 @@ package package_123 switch(transformationName) { case "translate": - this.name_756 = PARAM_TRANSLATE; + this.§_-dS§ = PARAM_TRANSLATE; break; case "scale": - this.name_756 = PARAM_SCALE; + this.§_-dS§ = PARAM_SCALE; break; case "matrix": - this.name_756 = PARAM_MATRIX; + this.§_-dS§ = PARAM_MATRIX; } } } - private function method_894() : void + private function parseSampler() : void { - var track:name_760 = null; + var track:§_-kB§ = null; var toRad:Number = NaN; - var key:name_778 = null; - var sampler:name_739 = document.findSampler(data.@source[0]); + var key:NumberKey = null; + var sampler:DaeSampler = document.findSampler(data.@source[0]); if(sampler != null) { - sampler.method_314(); - if(this.name_756 == PARAM_MATRIX) + sampler.parse(); + if(this.§_-dS§ == PARAM_MATRIX) { - this.tracks = Vector.([sampler.name_782(this.method_872)]); + this.tracks = Vector.<§_-Np§>([sampler.parseTransformationTrack(this.animName)]); return; } - if(this.name_756 == PARAM_TRANSLATE) + if(this.§_-dS§ == PARAM_TRANSLATE) { - this.tracks = sampler.name_779(this.method_872,"x","y","z"); + this.tracks = sampler.parsePointsTracks(this.animName,"x","y","z"); return; } - if(this.name_756 == PARAM_SCALE) + if(this.§_-dS§ == PARAM_SCALE) { - this.tracks = sampler.name_779(this.method_872,"scaleX","scaleY","scaleZ"); + this.tracks = sampler.parsePointsTracks(this.animName,"scaleX","scaleY","scaleZ"); return; } - if(this.name_756 == PARAM_ROTATION_X || this.name_756 == PARAM_ROTATION_Y || this.name_756 == PARAM_ROTATION_Z) + if(this.§_-dS§ == PARAM_ROTATION_X || this.§_-dS§ == PARAM_ROTATION_Y || this.§_-dS§ == PARAM_ROTATION_Z) { - track = sampler.name_780(this.method_872,this.name_756); + track = sampler.parseNumbersTrack(this.animName,this.§_-dS§); toRad = Math.PI / 180; - for(key = track.alternativa3d::name_783; key != null; key = key.alternativa3d::next) + for(key = track.alternativa3d::_-ku; key != null; key = key.alternativa3d::next) { - key.alternativa3d::name_781 *= toRad; + key.alternativa3d::_-4O *= toRad; } - this.tracks = Vector.([track]); + this.tracks = Vector.<§_-Np§>([track]); return; } - if(this.name_756 == PARAM_TRANSLATE_X || this.name_756 == PARAM_TRANSLATE_Y || this.name_756 == PARAM_TRANSLATE_Z || this.name_756 == PARAM_SCALE_X || this.name_756 == PARAM_SCALE_Y || this.name_756 == PARAM_SCALE_Z) + if(this.§_-dS§ == PARAM_TRANSLATE_X || this.§_-dS§ == PARAM_TRANSLATE_Y || this.§_-dS§ == PARAM_TRANSLATE_Z || this.§_-dS§ == PARAM_SCALE_X || this.§_-dS§ == PARAM_SCALE_Y || this.§_-dS§ == PARAM_SCALE_Z) { - this.tracks = Vector.([sampler.name_780(this.method_872,this.name_756)]); + this.tracks = Vector.<§_-Np§>([sampler.parseNumbersTrack(this.animName,this.§_-dS§)]); } } else diff --git a/src/package_123/name_735.as b/src/alternativa/engine3d/loaders/collada/DaeController.as similarity index 59% rename from src/package_123/name_735.as rename to src/alternativa/engine3d/loaders/collada/DaeController.as index 2560375..4285d52 100644 --- a/src/package_123/name_735.as +++ b/src/alternativa/engine3d/loaders/collada/DaeController.as @@ -1,50 +1,50 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import alternativa.engine3d.*; + import alternativa.engine3d.animation.§_-FA§; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.loaders.ParserMaterial; + import alternativa.engine3d.objects.Joint; + import alternativa.engine3d.objects.Skin; + import alternativa.engine3d.resources.Geometry; import flash.utils.ByteArray; import flash.utils.Dictionary; import flash.utils.Endian; - import package_116.name_641; - import package_124.name_705; - import package_19.name_528; - import package_19.name_700; - import package_21.name_126; - import package_21.name_78; - import package_28.name_119; use namespace collada; use namespace alternativa3d; - public class name_735 extends class_43 + public class DaeController extends DaeElement { - private var var_726:Vector.>; + private var §_-A6§:Vector.>; - private var var_725:Array; + private var §_-2j§:Array; private var indices:Array; - private var var_728:name_784; + private var §_-4h§:DaeInput; - private var var_727:name_784; + private var §_-NK§:DaeInput; - private var var_729:int; + private var §_-5O§:int; - private var geometry:name_119; + private var geometry:Geometry; - private var primitives:Vector.; + private var primitives:Vector.; - private var var_724:int = 0; + private var §_-1U§:int = 0; - private var var_723:Vector.; + private var §_-I§:Vector.; - public function name_735(data:XML, document:name_707) + public function DaeController(data:XML, document:DaeDocument) { super(data,document); } - private function get method_912() : name_736 + private function get daeGeometry() : DaeGeometry { - var geom:name_736 = document.findGeometry(data.skin.@source[0]); + var geom:DaeGeometry = document.findGeometry(data.skin.@source[0]); if(geom == null) { document.logger.logNotFoundError(data.@source[0]); @@ -57,8 +57,8 @@ package package_123 var i:int = 0; var j:int = 0; var count:int = 0; - var vertices:Vector. = null; - var source:name_119 = null; + var vertices:Vector. = null; + var source:Geometry = null; var localMaxJointsPerVertex:int = 0; var attributes:Array = null; var numSourceAttributes:int = 0; @@ -78,40 +78,40 @@ package package_123 { return false; } - this.var_725 = method_867(vcountsXML); + this.§_-2j§ = parseIntsArray(vcountsXML); var indicesXML:XML = vertexWeightsXML.v[0]; if(indicesXML == null) { return false; } - this.indices = method_867(indicesXML); - this.method_909(); - this.method_906(); - for(i = 0; i < this.var_725.length; ) + this.indices = parseIntsArray(indicesXML); + this.parseInputs(); + this.parseJointsBindMatrices(); + for(i = 0; i < this.§_-2j§.length; ) { - count = int(this.var_725[i]); - if(this.var_724 < count) + count = int(this.§_-2j§[i]); + if(this.§_-1U§ < count) { - this.var_724 = count; + this.§_-1U§ = count; } i++; } - var geom:name_736 = this.method_912; - this.var_723 = this.method_904(); + var geom:DaeGeometry = this.daeGeometry; + this.§_-I§ = this.getBindShapeMatrix(); if(geom != null) { - geom.method_314(); - vertices = geom.var_716; + geom.parse(); + vertices = geom.§_-FV§; source = geom.geometry; - localMaxJointsPerVertex = this.var_724 % 2 != 0 ? this.var_724 + 1 : this.var_724; - this.geometry = new name_119(); + localMaxJointsPerVertex = this.§_-1U§ % 2 != 0 ? this.§_-1U§ + 1 : this.§_-1U§; + this.geometry = new Geometry(); this.geometry.alternativa3d::_indices = source.alternativa3d::_indices.slice(); - attributes = source.method_279(0); + attributes = source.getVertexStreamAttributes(0); numSourceAttributes = int(attributes.length); index = numSourceAttributes; for(i = 0; i < localMaxJointsPerVertex; i += 2) { - attribute = int(name_126.JOINTS[int(i / 2)]); + attribute = int(VertexAttributes.JOINTS[int(i / 2)]); attributes[int(index++)] = attribute; attributes[int(index++)] = attribute; attributes[int(index++)] = attribute; @@ -145,13 +145,13 @@ package package_123 this.geometry.addVertexStream(attributes); this.geometry.alternativa3d::_vertexStreams[0].data = data; this.geometry.alternativa3d::_numVertices = source.alternativa3d::_numVertices; - this.method_908(this.geometry); + this.transformVertices(this.geometry); this.primitives = geom.primitives; } return true; } - private function method_908(geometry:name_119) : void + private function transformVertices(geometry:Geometry) : void { var x:Number = NaN; var y:Number = NaN; @@ -165,18 +165,18 @@ package package_123 y = Number(data.readFloat()); z = Number(data.readFloat()); data.position -= 12; - data.writeFloat(x * this.var_723[0] + y * this.var_723[1] + z * this.var_723[2] + this.var_723[3]); - data.writeFloat(x * this.var_723[4] + y * this.var_723[5] + z * this.var_723[6] + this.var_723[7]); - data.writeFloat(x * this.var_723[8] + y * this.var_723[9] + z * this.var_723[10] + this.var_723[11]); + data.writeFloat(x * this.§_-I§[0] + y * this.§_-I§[1] + z * this.§_-I§[2] + this.§_-I§[3]); + data.writeFloat(x * this.§_-I§[4] + y * this.§_-I§[5] + z * this.§_-I§[6] + this.§_-I§[7]); + data.writeFloat(x * this.§_-I§[8] + y * this.§_-I§[9] + z * this.§_-I§[10] + this.§_-I§[11]); } } - private function createVertexBuffer(vertices:Vector., localMaxJointsPerVertex:int) : ByteArray + private function createVertexBuffer(vertices:Vector., localMaxJointsPerVertex:int) : ByteArray { var i:int = 0; var count:int = 0; var vertexOutIndices:Vector. = null; - var vertex:name_770 = null; + var vertex:DaeVertex = null; var vec:Vector. = null; var jointsPerVertex:int = 0; var j:int = 0; @@ -184,9 +184,9 @@ package package_123 var index:int = 0; var jointIndex:int = 0; var weightIndex:int = 0; - var jointsOffset:int = this.var_728.offset; - var weightsOffset:int = this.var_727.offset; - var weightsSource:name_740 = this.var_727.prepareSource(1); + var jointsOffset:int = this.§_-4h§.offset; + var weightsOffset:int = this.§_-NK§.offset; + var weightsSource:DaeSource = this.§_-NK§.prepareSource(1); var weights:Vector. = weightsSource.numbers; var weightsStride:int = weightsSource.stride; var verticesDict:Dictionary = new Dictionary(); @@ -198,25 +198,25 @@ package package_123 vertex = vertices[i]; if(vertex != null) { - vec = verticesDict[vertex.name_785]; + vec = verticesDict[vertex.§_-Eq§]; if(vec == null) { - vec = verticesDict[vertex.name_785] = new Vector.(); + vec = verticesDict[vertex.§_-Eq§] = new Vector.(); } - vec.push(vertex.name_786); + vec.push(vertex.§_-AR§); } } var vertexIndex:int = 0; - for(i = 0,count = int(this.var_725.length); i < count; i++) + for(i = 0,count = int(this.§_-2j§.length); i < count; i++) { - jointsPerVertex = int(this.var_725[i]); + jointsPerVertex = int(this.§_-2j§[i]); vertexOutIndices = verticesDict[i]; for(j = 0; j < vertexOutIndices.length; j++) { byteArray.position = vertexOutIndices[j] * localMaxJointsPerVertex * 8; for(k = 0; k < jointsPerVertex; k++) { - index = this.var_729 * (vertexIndex + k); + index = this.§_-5O§ * (vertexIndex + k); jointIndex = int(this.indices[int(index + jointsOffset)]); if(jointIndex >= 0) { @@ -236,16 +236,16 @@ package package_123 return byteArray; } - private function method_909() : void + private function parseInputs() : void { - var input:name_784 = null; + var input:DaeInput = null; var semantic:String = null; var offset:int = 0; var inputsList:XMLList = data.skin.vertex_weights.input; var maxInputOffset:int = 0; for(var i:int = 0,var count:int = int(inputsList.length()); i < count; offset = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) { - input = new name_784(inputsList[i],document); + input = new DaeInput(inputsList[i],document); semantic = input.semantic; if(semantic == null) { @@ -254,26 +254,26 @@ package package_123 switch(semantic) { case "JOINT": - if(this.var_728 == null) + if(this.§_-4h§ == null) { - this.var_728 = input; + this.§_-4h§ = input; } break; case "WEIGHT": - if(this.var_727 == null) + if(this.§_-NK§ == null) { - this.var_727 = input; + this.§_-NK§ = input; } break; } } - this.var_729 = maxInputOffset + 1; + this.§_-5O§ = maxInputOffset + 1; } - private function method_906() : void + private function parseJointsBindMatrices() : void { var jointsXML:XML = null; - var jointsSource:name_740 = null; + var jointsSource:DaeSource = null; var stride:int = 0; var count:int = 0; var i:int = 0; @@ -286,16 +286,16 @@ package package_123 jointsSource = document.findSource(jointsXML.@source[0]); if(jointsSource != null) { - if(jointsSource.method_314() && jointsSource.numbers != null && jointsSource.stride >= 16) + if(jointsSource.parse() && jointsSource.numbers != null && jointsSource.stride >= 16) { stride = jointsSource.stride; count = jointsSource.numbers.length / stride; - this.var_726 = new Vector.>(count); + this.§_-A6§ = new Vector.>(count); for(i = 0; i < count; i++) { index = stride * i; matrix = new Vector.(16); - this.var_726[i] = matrix; + this.§_-A6§[i] = matrix; for(j = 0; j < 16; j++) { matrix[j] = jointsSource.numbers[int(index + j)]; @@ -310,38 +310,38 @@ package package_123 } } - public function method_429(materials:Object, topmostJoints:Vector., skeletons:Vector.) : name_711 + public function parseSkin(materials:Object, topmostJoints:Vector., skeletons:Vector.) : DaeObject { var numJoints:int = 0; - var skin:name_528 = null; - var joints:Vector. = null; + var skin:Skin = null; + var joints:Vector. = null; var i:int = 0; - var p:name_768 = null; - var instanceMaterial:name_758 = null; - var material:name_641 = null; - var daeMaterial:name_713 = null; + var p:DaePrimitive = null; + var instanceMaterial:DaeInstanceMaterial = null; + var material:ParserMaterial = null; + var daeMaterial:DaeMaterial = null; var skinXML:XML = data.skin[0]; if(skinXML != null) { - this.var_723 = this.method_904(); - numJoints = int(this.var_726.length); - skin = new name_528(this.var_724,numJoints); + this.§_-I§ = this.getBindShapeMatrix(); + numJoints = int(this.§_-A6§.length); + skin = new Skin(this.§_-1U§,numJoints); skin.geometry = this.geometry; - joints = this.method_915(skin,topmostJoints,this.method_902(skeletons)); - this.method_910(joints); - skin.var_631 = this.method_905(joints,numJoints); + joints = this.addJointsToSkin(skin,topmostJoints,this.findNodes(skeletons)); + this.setJointsBindMatrices(joints); + skin.§_-WA§ = this.collectRenderedJoints(joints,numJoints); if(this.primitives != null) { for(i = 0; i < this.primitives.length; i++) { p = this.primitives[i]; - instanceMaterial = materials[p.name_774]; + instanceMaterial = materials[p.materialSymbol]; if(instanceMaterial != null) { daeMaterial = instanceMaterial.material; if(daeMaterial != null) { - daeMaterial.method_314(); + daeMaterial.parse(); material = daeMaterial.material; daeMaterial.used = true; } @@ -349,32 +349,32 @@ package package_123 skin.addSurface(material,p.indexBegin,p.numTriangles); } } - return new name_711(skin,this.method_913(skin,joints)); + return new DaeObject(skin,this.mergeJointsClips(skin,joints)); } return null; } - private function method_905(joints:Vector., numJoints:int) : Vector. + private function collectRenderedJoints(joints:Vector., numJoints:int) : Vector. { - var result:Vector. = new Vector.(); + var result:Vector. = new Vector.(); for(var i:int = 0; i < numJoints; i++) { - result[i] = name_700(joints[i].object); + result[i] = Joint(joints[i].object); } return result; } - private function method_913(skin:name_528, joints:Vector.) : name_705 + private function mergeJointsClips(skin:Skin, joints:Vector.) : §_-FA§ { - var animatedObject:name_711 = null; - var clip:name_705 = null; - var object:name_78 = null; + var animatedObject:DaeObject = null; + var clip:§_-FA§ = null; + var object:Object3D = null; var t:int = 0; - if(!this.method_911(joints)) + if(!this.hasJointsAnimation(joints)) { return null; } - var result:name_705 = new name_705(); + var result:§_-FA§ = new §_-FA§(); var resultObjects:Array = [skin]; for(var i:int = 0,var count:int = int(joints.length); i < count; i++) { @@ -384,24 +384,24 @@ package package_123 { for(t = 0; t < clip.numTracks; t++) { - result.name_712(clip.name_716(t)); + result.§_-nn§(clip.§_-QA§(t)); } } else { - result.name_712(animatedObject.jointNode.name_715()); + result.§_-nn§(animatedObject.jointNode.createStaticTransformTrack()); } object = animatedObject.object; - object.name = animatedObject.jointNode.method_872; + object.name = animatedObject.jointNode.animName; resultObjects.push(object); } - result.alternativa3d::var_346 = resultObjects; + result.alternativa3d::_-Kq = resultObjects; return result; } - private function method_911(joints:Vector.) : Boolean + private function hasJointsAnimation(joints:Vector.) : Boolean { - var object:name_711 = null; + var object:DaeObject = null; for(var i:int = 0,var count:int = int(joints.length); i < count; ) { object = joints[i]; @@ -414,46 +414,46 @@ package package_123 return false; } - private function method_910(animatedJoints:Vector.) : void + private function setJointsBindMatrices(animatedJoints:Vector.) : void { - var animatedJoint:name_711 = null; + var animatedJoint:DaeObject = null; var bindMatrix:Vector. = null; - for(var i:int = 0,var count:int = int(this.var_726.length); i < count; i++) + for(var i:int = 0,var count:int = int(this.§_-A6§.length); i < count; i++) { animatedJoint = animatedJoints[i]; - bindMatrix = this.var_726[i]; - name_700(animatedJoint.object).alternativa3d::name_701(bindMatrix); + bindMatrix = this.§_-A6§[i]; + Joint(animatedJoint.object).alternativa3d::setBindPoseMatrix(bindMatrix); } } - private function method_915(skin:name_528, topmostJoints:Vector., nodes:Vector.) : Vector. + private function addJointsToSkin(skin:Skin, topmostJoints:Vector., nodes:Vector.) : Vector. { var i:int = 0; - var topmostJoint:name_706 = null; - var animatedJoint:name_711 = null; + var topmostJoint:DaeNode = null; + var animatedJoint:DaeObject = null; var nodesDictionary:Dictionary = new Dictionary(); var count:int = int(nodes.length); for(i = 0; i < count; i++) { nodesDictionary[nodes[i]] = i; } - var animatedJoints:Vector. = new Vector.(count); + var animatedJoints:Vector. = new Vector.(count); var numTopmostJoints:int = int(topmostJoints.length); for(i = 0; i < numTopmostJoints; i++) { topmostJoint = topmostJoints[i]; - animatedJoint = this.method_914(skin,topmostJoint,animatedJoints,nodesDictionary); - this.method_901(name_700(animatedJoint.object),animatedJoints,topmostJoint,nodesDictionary); + animatedJoint = this.addRootJointToSkin(skin,topmostJoint,animatedJoints,nodesDictionary); + this.addJointChildren(Joint(animatedJoint.object),animatedJoints,topmostJoint,nodesDictionary); } return animatedJoints; } - private function method_914(skin:name_528, node:name_706, animatedJoints:Vector., nodes:Dictionary) : name_711 + private function addRootJointToSkin(skin:Skin, node:DaeNode, animatedJoints:Vector., nodes:Dictionary) : DaeObject { - var joint:name_700 = new name_700(); - joint.name = name_708(node.name); + var joint:Joint = new Joint(); + joint.name = cloneString(node.name); skin.addChild(joint); - var animatedJoint:name_711 = node.name_714(node.name_710(joint)); + var animatedJoint:DaeObject = node.applyAnimation(node.applyTransformations(joint)); animatedJoint.jointNode = node; if(node in nodes) { @@ -466,47 +466,47 @@ package package_123 return animatedJoint; } - private function method_901(parent:name_700, animatedJoints:Vector., parentNode:name_706, nodes:Dictionary) : void + private function addJointChildren(parent:Joint, animatedJoints:Vector., parentNode:DaeNode, nodes:Dictionary) : void { - var object:name_711 = null; - var child:name_706 = null; - var joint:name_700 = null; - var children:Vector. = parentNode.nodes; + var object:DaeObject = null; + var child:DaeNode = null; + var joint:Joint = null; + var children:Vector. = parentNode.nodes; for(var i:int = 0,var count:int = int(children.length); i < count; ) { child = children[i]; if(child in nodes) { - joint = new name_700(); - joint.name = name_708(child.name); - object = child.name_714(child.name_710(joint)); + joint = new Joint(); + joint.name = cloneString(child.name); + object = child.applyAnimation(child.applyTransformations(joint)); object.jointNode = child; animatedJoints[nodes[child]] = object; parent.addChild(joint); - this.method_901(joint,animatedJoints,child,nodes); + this.addJointChildren(joint,animatedJoints,child,nodes); } - else if(this.method_903(child,nodes)) + else if(this.hasJointInDescendants(child,nodes)) { - joint = new name_700(); - joint.name = name_708(child.name); - object = child.name_714(child.name_710(joint)); + joint = new Joint(); + joint.name = cloneString(child.name); + object = child.applyAnimation(child.applyTransformations(joint)); object.jointNode = child; animatedJoints.push(object); parent.addChild(joint); - this.method_901(joint,animatedJoints,child,nodes); + this.addJointChildren(joint,animatedJoints,child,nodes); } i++; } } - private function method_903(parentNode:name_706, nodes:Dictionary) : Boolean + private function hasJointInDescendants(parentNode:DaeNode, nodes:Dictionary) : Boolean { - var child:name_706 = null; - var children:Vector. = parentNode.nodes; + var child:DaeNode = null; + var children:Vector. = parentNode.nodes; for(var i:int = 0,var count:int = int(children.length); i < count; ) { child = children[i]; - if(child in nodes || this.method_903(child,nodes)) + if(child in nodes || this.hasJointInDescendants(child,nodes)) { return true; } @@ -515,7 +515,7 @@ package package_123 return false; } - private function method_904() : Vector. + private function getBindShapeMatrix() : Vector. { var matrix:Array = null; var i:int = 0; @@ -523,7 +523,7 @@ package package_123 var res:Vector. = new Vector.(16,true); if(matrixXML != null) { - matrix = name_565(matrixXML); + matrix = parseStringArray(matrixXML); for(i = 0; i < matrix.length; i++) { res[i] = Number(matrix[i]); @@ -532,9 +532,9 @@ package package_123 return res; } - private function method_907(node:name_706, nodes:Dictionary) : Boolean + private function isRootJointNode(node:DaeNode, nodes:Dictionary) : Boolean { - for(var parent:name_706 = node.parent; parent != null; ) + for(var parent:DaeNode = node.parent; parent != null; ) { if(parent in nodes) { @@ -545,12 +545,12 @@ package package_123 return true; } - public function method_916(skeletons:Vector.) : Vector. + public function findRootJointNodes(skeletons:Vector.) : Vector. { var nodesDictionary:Dictionary = null; - var rootNodes:Vector. = null; - var node:name_706 = null; - var nodes:Vector. = this.method_902(skeletons); + var rootNodes:Vector. = null; + var node:DaeNode = null; + var nodes:Vector. = this.findNodes(skeletons); var i:int = 0; var count:int = int(nodes.length); if(count > 0) @@ -560,11 +560,11 @@ package package_123 { nodesDictionary[nodes[i]] = i; } - rootNodes = new Vector.(); + rootNodes = new Vector.(); for(i = 0; i < count; ) { node = nodes[i]; - if(this.method_907(node,nodesDictionary)) + if(this.isRootJointNode(node,nodesDictionary)) { rootNodes.push(node); } @@ -575,9 +575,9 @@ package package_123 return null; } - private function findNode(nodeName:String, skeletons:Vector.) : name_706 + private function findNode(nodeName:String, skeletons:Vector.) : DaeNode { - var node:name_706 = null; + var node:DaeNode = null; var count:int = int(skeletons.length); for(var i:int = 0; i < count; ) { @@ -591,26 +591,26 @@ package package_123 return null; } - private function method_902(skeletons:Vector.) : Vector. + private function findNodes(skeletons:Vector.) : Vector. { var jointsXML:XML = null; - var jointsSource:name_740 = null; + var jointsSource:DaeSource = null; var stride:int = 0; var count:int = 0; - var nodes:Vector. = null; + var nodes:Vector. = null; var i:int = 0; - var node:name_706 = null; + var node:DaeNode = null; jointsXML = data.skin.joints.input.(@semantic == "JOINT")[0]; if(jointsXML != null) { jointsSource = document.findSource(jointsXML.@source[0]); if(jointsSource != null) { - if(jointsSource.method_314() && jointsSource.names != null) + if(jointsSource.parse() && jointsSource.names != null) { stride = jointsSource.stride; count = jointsSource.names.length / stride; - nodes = new Vector.(count); + nodes = new Vector.(count); for(i = 0; i < count; i++) { node = this.findNode(jointsSource.names[int(stride * i)],skeletons); diff --git a/src/package_123/name_707.as b/src/alternativa/engine3d/loaders/collada/DaeDocument.as similarity index 56% rename from src/package_123/name_707.as rename to src/alternativa/engine3d/loaders/collada/DaeDocument.as index 6b86c72..c99aa64 100644 --- a/src/package_123/name_707.as +++ b/src/alternativa/engine3d/loaders/collada/DaeDocument.as @@ -1,14 +1,14 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_707 + public class DaeDocument { - public var scene:name_737; + public var scene:DaeVisualScene; private var data:XML; - internal var var_690:Object; + internal var §_-DR§:Object; internal var arrays:Object; @@ -24,13 +24,13 @@ package package_123 internal var effects:Object; - internal var var_692:Object; + internal var §_-DW§:Object; - internal var var_691:Object; + internal var §_-GB§:Object; public var materials:Object; - internal var logger:name_743; + internal var logger:DaeLogger; public var versionMajor:uint; @@ -38,7 +38,7 @@ package package_123 public var unitScaleFactor:Number = 1; - public function name_707(document:XML, units:Number) + public function DaeDocument(document:XML, units:Number) { super(); this.data = document; @@ -54,49 +54,49 @@ package package_123 { this.unitScaleFactor = 1; } - this.logger = new name_743(); - this.method_848(); - this.method_847(); + this.logger = new DaeLogger(); + this.constructStructures(); + this.constructScenes(); this.registerInstanceControllers(); - this.method_846(); + this.constructAnimations(); } - private function method_845(url:XML) : String + private function getLocalID(url:XML) : String { var path:String = url.toString(); if(path.charAt(0) == "#") { return path.substr(1); } - this.logger.name_745(url); + this.logger.logExternalError(url); return null; } - private function method_848() : void + private function constructStructures() : void { var element:XML = null; - var source:name_740 = null; - var light:name_741 = null; - var image:name_734 = null; - var effect:name_738 = null; - var material:name_713 = null; - var geom:name_736 = null; - var controller:name_735 = null; - var node:name_706 = null; - this.var_690 = new Object(); + var source:DaeSource = null; + var light:DaeLight = null; + var image:DaeImage = null; + var effect:DaeEffect = null; + var material:DaeMaterial = null; + var geom:DaeGeometry = null; + var controller:DaeController = null; + var node:DaeNode = null; + this.§_-DR§ = new Object(); this.arrays = new Object(); for each(element in this.data..source) { - source = new name_740(element,this); + source = new DaeSource(element,this); if(source.id != null) { - this.var_690[source.id] = source; + this.§_-DR§[source.id] = source; } } this.lights = new Object(); for each(element in this.data.library_lights.light) { - light = new name_741(element,this); + light = new DaeLight(element,this); if(light.id != null) { this.lights[light.id] = light; @@ -105,7 +105,7 @@ package package_123 this.images = new Object(); for each(element in this.data.library_images.image) { - image = new name_734(element,this); + image = new DaeImage(element,this); if(image.id != null) { this.images[image.id] = image; @@ -114,7 +114,7 @@ package package_123 this.effects = new Object(); for each(element in this.data.library_effects.effect) { - effect = new name_738(element,this); + effect = new DaeEffect(element,this); if(effect.id != null) { this.effects[effect.id] = effect; @@ -123,7 +123,7 @@ package package_123 this.materials = new Object(); for each(element in this.data.library_materials.material) { - material = new name_713(element,this); + material = new DaeMaterial(element,this); if(material.id != null) { this.materials[material.id] = material; @@ -133,25 +133,25 @@ package package_123 this.vertices = new Object(); for each(element in this.data.library_geometries.geometry) { - geom = new name_736(element,this); + geom = new DaeGeometry(element,this); if(geom.id != null) { this.geometries[geom.id] = geom; } } - this.var_692 = new Object(); + this.§_-DW§ = new Object(); for each(element in this.data.library_controllers.controller) { - controller = new name_735(element,this); + controller = new DaeController(element,this); if(controller.id != null) { - this.var_692[controller.id] = controller; + this.§_-DW§[controller.id] = controller; } } this.nodes = new Object(); for each(element in this.data.library_nodes.node) { - node = new name_706(element,this); + node = new DaeNode(element,this); if(node.id != null) { this.nodes[node.id] = node; @@ -159,15 +159,15 @@ package package_123 } } - private function method_847() : void + private function constructScenes() : void { var element:XML = null; - var vscene:name_737 = null; + var vscene:DaeVisualScene = null; var vsceneURL:XML = this.data.scene.instance_visual_scene.@url[0]; - var vsceneID:String = this.method_845(vsceneURL); + var vsceneID:String = this.getLocalID(vsceneURL); for each(element in this.data.library_visual_scenes.visual_scene) { - vscene = new name_737(element,this); + vscene = new DaeVisualScene(element,this); if(vscene.id == vsceneID) { this.scene = vscene; @@ -192,95 +192,95 @@ package package_123 } } - private function method_846() : void + private function constructAnimations() : void { var element:XML = null; - var sampler:name_739 = null; - var channel:name_742 = null; - var node:name_706 = null; - this.var_691 = new Object(); + var sampler:DaeSampler = null; + var channel:DaeChannel = null; + var node:DaeNode = null; + this.§_-GB§ = new Object(); for each(element in this.data.library_animations..sampler) { - sampler = new name_739(element,this); + sampler = new DaeSampler(element,this); if(sampler.id != null) { - this.var_691[sampler.id] = sampler; + this.§_-GB§[sampler.id] = sampler; } } for each(element in this.data.library_animations..channel) { - channel = new name_742(element,this); + channel = new DaeChannel(element,this); node = channel.node; if(node != null) { - node.name_747(channel); + node.addChannel(channel); } } } - public function findArray(url:XML) : name_746 + public function findArray(url:XML) : DaeArray { - return this.arrays[this.method_845(url)]; + return this.arrays[this.getLocalID(url)]; } - public function findSource(url:XML) : name_740 + public function findSource(url:XML) : DaeSource { - return this.var_690[this.method_845(url)]; + return this.§_-DR§[this.getLocalID(url)]; } - public function findLight(url:XML) : name_741 + public function findLight(url:XML) : DaeLight { - return this.lights[this.method_845(url)]; + return this.lights[this.getLocalID(url)]; } - public function findImage(url:XML) : name_734 + public function findImage(url:XML) : DaeImage { - return this.images[this.method_845(url)]; + return this.images[this.getLocalID(url)]; } - public function findImageByID(id:String) : name_734 + public function findImageByID(id:String) : DaeImage { return this.images[id]; } - public function findEffect(url:XML) : name_738 + public function findEffect(url:XML) : DaeEffect { - return this.effects[this.method_845(url)]; + return this.effects[this.getLocalID(url)]; } - public function findMaterial(url:XML) : name_713 + public function findMaterial(url:XML) : DaeMaterial { - return this.materials[this.method_845(url)]; + return this.materials[this.getLocalID(url)]; } - public function findVertices(url:XML) : name_744 + public function findVertices(url:XML) : DaeVertices { - return this.vertices[this.method_845(url)]; + return this.vertices[this.getLocalID(url)]; } - public function findGeometry(url:XML) : name_736 + public function findGeometry(url:XML) : DaeGeometry { - return this.geometries[this.method_845(url)]; + return this.geometries[this.getLocalID(url)]; } - public function findNode(url:XML) : name_706 + public function findNode(url:XML) : DaeNode { - return this.nodes[this.method_845(url)]; + return this.nodes[this.getLocalID(url)]; } - public function findNodeByID(id:String) : name_706 + public function findNodeByID(id:String) : DaeNode { return this.nodes[id]; } - public function findController(url:XML) : name_735 + public function findController(url:XML) : DaeController { - return this.var_692[this.method_845(url)]; + return this.§_-DW§[this.getLocalID(url)]; } - public function findSampler(url:XML) : name_739 + public function findSampler(url:XML) : DaeSampler { - return this.var_691[this.method_845(url)]; + return this.§_-GB§[this.getLocalID(url)]; } } } diff --git a/src/package_123/name_738.as b/src/alternativa/engine3d/loaders/collada/DaeEffect.as similarity index 54% rename from src/package_123/name_738.as rename to src/alternativa/engine3d/loaders/collada/DaeEffect.as index dd9342f..0e2965f 100644 --- a/src/package_123/name_738.as +++ b/src/alternativa/engine3d/loaders/collada/DaeEffect.as @@ -1,50 +1,50 @@ -package package_123 +package alternativa.engine3d.loaders.collada { - import package_116.name_641; - import package_28.name_167; + import alternativa.engine3d.loaders.ParserMaterial; + import alternativa.engine3d.resources.ExternalTextureResource; use namespace collada; - public class name_738 extends class_43 + public class DaeEffect extends DaeElement { public static var commonAlways:Boolean = false; - private var var_717:Object; + private var §_-3x§:Object; - private var var_718:Object; + private var §_-El§:Object; - private var var_719:Object; + private var §_-3H§:Object; - private var diffuse:name_775; + private var diffuse:DaeEffectParam; - private var ambient:name_775; + private var ambient:DaeEffectParam; - private var transparent:name_775; + private var transparent:DaeEffectParam; - private var transparency:name_775; + private var transparency:DaeEffectParam; - private var bump:name_775; + private var bump:DaeEffectParam; - private var reflective:name_775; + private var reflective:DaeEffectParam; - private var emission:name_775; + private var emission:DaeEffectParam; - private var specular:name_775; + private var specular:DaeEffectParam; - public function name_738(data:XML, document:name_707) + public function DaeEffect(data:XML, document:DaeDocument) { super(data,document); - this.method_891(); + this.constructImages(); } - private function method_891() : void + private function constructImages() : void { var element:XML = null; - var image:name_734 = null; + var image:DaeImage = null; var list:XMLList = data..image; for each(element in list) { - image = new name_734(element,document); + image = new DaeImage(element,document); if(image.id != null) { document.images[image.id] = image; @@ -56,7 +56,7 @@ package package_123 { var shader:XML; var element:XML = null; - var param:name_754 = null; + var param:DaeParam = null; var technique:XML = null; var bumpXML:XML = null; var diffuseXML:XML = null; @@ -66,26 +66,26 @@ package package_123 var reflectiveXML:XML = null; var emissionXML:XML = null; var specularXML:XML = null; - this.var_717 = new Object(); + this.§_-3x§ = new Object(); for each(element in data.newparam) { - param = new name_754(element,document); - this.var_717[param.sid] = param; + param = new DaeParam(element,document); + this.§_-3x§[param.sid] = param; } - this.var_718 = new Object(); + this.§_-El§ = new Object(); for each(element in data.profile_COMMON.newparam) { - param = new name_754(element,document); - this.var_718[param.sid] = param; + param = new DaeParam(element,document); + this.§_-El§[param.sid] = param; } - this.var_719 = new Object(); + this.§_-3H§ = new Object(); technique = data.profile_COMMON.technique[0]; if(technique != null) { for each(element in technique.newparam) { - param = new name_754(element,document); - this.var_719[param.sid] = param; + param = new DaeParam(element,document); + this.§_-3H§[param.sid] = param; } } shader = data.profile_COMMON.technique.*.(localName() == "constant" || localName() == "lambert" || localName() == "phong" || localName() == "blinn")[0]; @@ -102,71 +102,71 @@ package package_123 emissionXML = shader.emission[0]; if(emissionXML != null) { - this.emission = new name_775(emissionXML,this); + this.emission = new DaeEffectParam(emissionXML,this); } } if(diffuseXML != null) { - this.diffuse = new name_775(diffuseXML,this); + this.diffuse = new DaeEffectParam(diffuseXML,this); } if(shader.localName() == "phong" || shader.localName() == "blinn") { specularXML = shader.specular[0]; if(specularXML != null) { - this.specular = new name_775(specularXML,this); + this.specular = new DaeEffectParam(specularXML,this); } } transparentXML = shader.transparent[0]; if(transparentXML != null) { - this.transparent = new name_775(transparentXML,this); + this.transparent = new DaeEffectParam(transparentXML,this); } transparencyXML = shader.transparency[0]; if(transparencyXML != null) { - this.transparency = new name_775(transparencyXML,this); + this.transparency = new DaeEffectParam(transparencyXML,this); } ambientXML = shader.ambient[0]; if(ambientXML != null) { - this.ambient = new name_775(ambientXML,this); + this.ambient = new DaeEffectParam(ambientXML,this); } reflectiveXML = shader.reflective[0]; if(reflectiveXML != null) { - this.reflective = new name_775(reflectiveXML,this); + this.reflective = new DaeEffectParam(reflectiveXML,this); } } bumpXML = data.profile_COMMON.technique.extra.technique.(Boolean(hasOwnProperty("@profile")) && @profile == "OpenCOLLADA3dsMax").bump[0]; if(bumpXML != null) { - this.bump = new name_775(bumpXML,this); + this.bump = new DaeEffectParam(bumpXML,this); } return true; } - internal function method_893(name:String, setparams:Object) : name_754 + internal function getParam(name:String, setparams:Object) : DaeParam { - var param:name_754 = setparams[name]; + var param:DaeParam = setparams[name]; if(param != null) { return param; } - param = this.var_719[name]; + param = this.§_-3H§[name]; if(param != null) { return param; } - param = this.var_718[name]; + param = this.§_-El§[name]; if(param != null) { return param; } - return this.var_717[name]; + return this.§_-3x§[name]; } - private function method_892(value:Array, alpha:Boolean = true) : uint + private function float4ToUint(value:Array, alpha:Boolean = true) : uint { var a:uint = 0; var r:uint = value[0] * 255; @@ -180,75 +180,75 @@ package package_123 return r << 16 | g << 8 | b; } - public function name_755(setparams:Object) : name_641 + public function getMaterial(setparams:Object) : ParserMaterial { - var material:name_641 = null; + var material:ParserMaterial = null; if(this.diffuse != null) { - material = new name_641(); + material = new ParserMaterial(); if(Boolean(this.diffuse)) { - this.method_890(material,this.diffuse,setparams); + this.pushMap(material,this.diffuse,setparams); } if(this.specular != null) { - this.method_890(material,this.specular,setparams); + this.pushMap(material,this.specular,setparams); } if(this.emission != null) { - this.method_890(material,this.emission,setparams); + this.pushMap(material,this.emission,setparams); } if(this.transparency != null) { - material.transparency = this.transparency.name_777(setparams); + material.transparency = this.transparency.getFloat(setparams); } if(this.transparent != null) { - this.method_890(material,this.transparent,setparams); + this.pushMap(material,this.transparent,setparams); } if(this.bump != null) { - this.method_890(material,this.bump,setparams); + this.pushMap(material,this.bump,setparams); } if(Boolean(this.ambient)) { - this.method_890(material,this.ambient,setparams); + this.pushMap(material,this.ambient,setparams); } if(Boolean(this.reflective)) { - this.method_890(material,this.reflective,setparams); + this.pushMap(material,this.reflective,setparams); } return material; } return null; } - private function method_890(material:name_641, param:name_775, setparams:Object) : void + private function pushMap(material:ParserMaterial, param:DaeEffectParam, setparams:Object) : void { - var image:name_734 = null; - var color:Array = param.method_273(setparams); + var _loc5_:DaeImage = null; + var color:Array = param.getColor(setparams); if(color != null) { - material.colors[name_708(param.data.localName())] = this.method_892(color,true); + material.colors[cloneString(param.data.localName())] = this.float4ToUint(color,true); } else { - image = param.method_604(setparams); - if(image != null) + _loc5_ = param.getImage(setparams); + if(_loc5_ != null) { - material.textures[name_708(param.data.localName())] = new name_167(name_708(image.init_from)); + material.textures[cloneString(param.data.localName())] = new ExternalTextureResource(cloneString(_loc5_.init_from)); } } } - public function get var_698() : String + public function get mainTexCoords() : String { var channel:String = null; - channel = channel == null && this.diffuse != null ? this.diffuse.name_776 : channel; - channel = channel == null && this.transparent != null ? this.transparent.name_776 : channel; - channel = channel == null && this.bump != null ? this.bump.name_776 : channel; - channel = channel == null && this.emission != null ? this.emission.name_776 : channel; - return channel == null && this.specular != null ? this.specular.name_776 : channel; + channel = channel == null && this.diffuse != null ? this.diffuse.texCoord : channel; + channel = channel == null && this.transparent != null ? this.transparent.texCoord : channel; + channel = channel == null && this.bump != null ? this.bump.texCoord : channel; + channel = channel == null && this.emission != null ? this.emission.texCoord : channel; + return channel == null && this.specular != null ? this.specular.texCoord : channel; } } } diff --git a/src/package_123/name_775.as b/src/alternativa/engine3d/loaders/collada/DaeEffectParam.as similarity index 58% rename from src/package_123/name_775.as rename to src/alternativa/engine3d/loaders/collada/DaeEffectParam.as index 205ac11..0562b91 100644 --- a/src/package_123/name_775.as +++ b/src/alternativa/engine3d/loaders/collada/DaeEffectParam.as @@ -1,49 +1,49 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_775 extends class_43 + public class DaeEffectParam extends DaeElement { - private var effect:name_738; + private var effect:DaeEffect; - public function name_775(data:XML, effect:name_738) + public function DaeEffectParam(data:XML, effect:DaeEffect) { super(data,effect.document); this.effect = effect; } - public function name_777(setparams:Object) : Number + public function getFloat(setparams:Object) : Number { - var param:name_754 = null; + var param:DaeParam = null; var floatXML:XML = data.float[0]; if(floatXML != null) { - return method_761(floatXML); + return parseNumber(floatXML); } var paramRef:XML = data.param.@ref[0]; if(paramRef != null) { - param = this.effect.method_893(paramRef.toString(),setparams); + param = this.effect.getParam(paramRef.toString(),setparams); if(param != null) { - return param.name_777(); + return param.getFloat(); } } return NaN; } - public function method_273(setparams:Object) : Array + public function getColor(setparams:Object) : Array { - var param:name_754 = null; + var param:DaeParam = null; var colorXML:XML = data.color[0]; if(colorXML != null) { - return method_866(colorXML); + return parseNumbersArray(colorXML); } var paramRef:XML = data.param.@ref[0]; if(paramRef != null) { - param = this.effect.method_893(paramRef.toString(),setparams); + param = this.effect.getParam(paramRef.toString(),setparams); if(param != null) { return param.getFloat4(); @@ -58,27 +58,27 @@ package package_123 return attr == null ? null : attr.toString(); } - public function method_941(setparams:Object) : name_754 + public function getSampler(setparams:Object) : DaeParam { var sid:String = this.texture; if(sid != null) { - return this.effect.method_893(sid,setparams); + return this.effect.getParam(sid,setparams); } return null; } - public function method_604(setparams:Object) : name_734 + public function getImage(setparams:Object) : DaeImage { var surfaceSID:String = null; - var surface:name_754 = null; - var sampler:name_754 = this.method_941(setparams); + var surface:DaeParam = null; + var sampler:DaeParam = this.getSampler(setparams); if(sampler != null) { surfaceSID = sampler.surfaceSID; if(surfaceSID != null) { - surface = this.effect.method_893(surfaceSID,setparams); + surface = this.effect.getParam(surfaceSID,setparams); if(surface != null) { return surface.image; @@ -90,7 +90,7 @@ package package_123 return document.findImageByID(this.texture); } - public function get name_776() : String + public function get texCoord() : String { var attr:XML = data.texture.@texcoord[0]; return attr == null ? null : attr.toString(); diff --git a/src/package_123/class_43.as b/src/alternativa/engine3d/loaders/collada/DaeElement.as similarity index 72% rename from src/package_123/class_43.as rename to src/alternativa/engine3d/loaders/collada/DaeElement.as index a55ce71..78cb00b 100644 --- a/src/package_123/class_43.as +++ b/src/alternativa/engine3d/loaders/collada/DaeElement.as @@ -1,27 +1,27 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import flash.utils.ByteArray; use namespace collada; - public class class_43 + public class DaeElement { private static var _byteArray:ByteArray = new ByteArray(); - public var document:name_707; + public var document:DaeDocument; public var data:XML; - private var var_697:int = -1; + private var §_-Ba§:int = -1; - public function class_43(data:XML, document:name_707) + public function DaeElement(data:XML, document:DaeDocument) { super(); this.document = document; this.data = data; } - public function name_708(str:String) : String + public function cloneString(str:String) : String { if(str == null) { @@ -33,14 +33,14 @@ package package_123 return _byteArray.readUTF(); } - public function method_314() : Boolean + public function parse() : Boolean { - if(this.var_697 < 0) + if(this.§_-Ba§ < 0) { - this.var_697 = this.parseImplementation() ? 1 : 0; - return this.var_697 != 0; + this.§_-Ba§ = this.parseImplementation() ? 1 : 0; + return this.§_-Ba§ != 0; } - return this.var_697 != 0; + return this.§_-Ba§ != 0; } protected function parseImplementation() : Boolean @@ -48,12 +48,12 @@ package package_123 return true; } - protected function name_565(element:XML) : Array + protected function parseStringArray(element:XML) : Array { return element.text().toString().split(/\s+/); } - protected function method_866(element:XML) : Array + protected function parseNumbersArray(element:XML) : Array { var value:String = null; var arr:Array = element.text().toString().split(/\s+/); @@ -69,7 +69,7 @@ package package_123 return arr; } - protected function method_867(element:XML) : Array + protected function parseIntsArray(element:XML) : Array { var value:String = null; var arr:Array = element.text().toString().split(/\s+/); @@ -81,7 +81,7 @@ package package_123 return arr; } - protected function method_761(element:XML) : Number + protected function parseNumber(element:XML) : Number { var value:String = element.toString().replace(/,/,"."); return parseFloat(value); diff --git a/src/package_123/name_736.as b/src/alternativa/engine3d/loaders/collada/DaeGeometry.as similarity index 54% rename from src/package_123/name_736.as rename to src/alternativa/engine3d/loaders/collada/DaeGeometry.as index 0686a78..fba812d 100644 --- a/src/package_123/name_736.as +++ b/src/alternativa/engine3d/loaders/collada/DaeGeometry.as @@ -1,38 +1,38 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.loaders.ParserMaterial; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.resources.Geometry; import flash.utils.ByteArray; import flash.utils.Endian; - import package_116.name_641; - import package_19.name_380; - import package_21.name_126; - import package_28.name_119; use namespace collada; use namespace alternativa3d; - public class name_736 extends class_43 + public class DaeGeometry extends DaeElement { - internal var var_716:Vector.; + internal var §_-FV§:Vector.; - internal var primitives:Vector.; + internal var primitives:Vector.; - internal var geometry:name_119; + internal var geometry:Geometry; - private var vertices:name_744; + private var vertices:DaeVertices; - public function name_736(data:XML, document:name_707) + public function DaeGeometry(data:XML, document:DaeDocument) { super(data,document); - this.method_888(); + this.constructVertices(); } - private function method_888() : void + private function constructVertices() : void { var verticesXML:XML = data.mesh.vertices[0]; if(verticesXML != null) { - this.vertices = new name_744(verticesXML,document); + this.vertices = new DaeVertices(verticesXML,document); document.vertices[this.vertices.id] = this.vertices; } } @@ -41,78 +41,78 @@ package package_123 { var numVertices:int = 0; var i:int = 0; - var p:name_768 = null; + var p:DaePrimitive = null; var channels:uint = 0; var attributes:Array = null; var index:int = 0; var data:ByteArray = null; var numMappings:int = 0; - var vertex:name_770 = null; + var vertex:DaeVertex = null; var j:int = 0; if(this.vertices != null) { - this.method_889(); - this.vertices.method_314(); - numVertices = this.vertices.name_771.numbers.length / this.vertices.name_771.stride; - this.geometry = new name_119(); - this.var_716 = new Vector.(numVertices); + this.parsePrimitives(); + this.vertices.parse(); + numVertices = this.vertices.§_-E6§.numbers.length / this.vertices.§_-E6§.stride; + this.geometry = new Geometry(); + this.§_-FV§ = new Vector.(numVertices); channels = 0; for(i = 0; i < this.primitives.length; ) { p = this.primitives[i]; - p.method_314(); - if(p.name_772(this.vertices)) + p.parse(); + if(p.verticesEquals(this.vertices)) { - numVertices = int(this.var_716.length); - channels |= p.name_773(this.geometry,this.var_716); + numVertices = int(this.§_-FV§.length); + channels |= p.fillGeometry(this.geometry,this.§_-FV§); } i++; } attributes = new Array(3); - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; + attributes[0] = VertexAttributes.POSITION; + attributes[1] = VertexAttributes.POSITION; + attributes[2] = VertexAttributes.POSITION; index = 3; - if(Boolean(channels & name_768.NORMALS)) + if(Boolean(channels & DaePrimitive.NORMALS)) { var _loc11_:* = index++; - attributes[_loc11_] = name_126.NORMAL; + attributes[_loc11_] = VertexAttributes.NORMAL; var _loc12_:* = index++; - attributes[_loc12_] = name_126.NORMAL; + attributes[_loc12_] = VertexAttributes.NORMAL; var _loc13_:* = index++; - attributes[_loc13_] = name_126.NORMAL; + attributes[_loc13_] = VertexAttributes.NORMAL; } - if(Boolean(channels & name_768.TANGENT4)) + if(Boolean(channels & DaePrimitive.TANGENT4)) { _loc11_ = index++; - attributes[_loc11_] = name_126.TANGENT4; + attributes[_loc11_] = VertexAttributes.TANGENT4; _loc12_ = index++; - attributes[_loc12_] = name_126.TANGENT4; + attributes[_loc12_] = VertexAttributes.TANGENT4; _loc13_ = index++; - attributes[_loc13_] = name_126.TANGENT4; + attributes[_loc13_] = VertexAttributes.TANGENT4; var _loc14_:* = index++; - attributes[_loc14_] = name_126.TANGENT4; + attributes[_loc14_] = VertexAttributes.TANGENT4; } for(i = 0; i < 8; ) { - if(Boolean(channels & name_768.TEXCOORDS[i])) + if(Boolean(channels & DaePrimitive.TEXCOORDS[i])) { _loc11_ = index++; - attributes[_loc11_] = name_126.TEXCOORDS[i]; + attributes[_loc11_] = VertexAttributes.TEXCOORDS[i]; _loc12_ = index++; - attributes[_loc12_] = name_126.TEXCOORDS[i]; + attributes[_loc12_] = VertexAttributes.TEXCOORDS[i]; } i++; } this.geometry.addVertexStream(attributes); - numVertices = int(this.var_716.length); + numVertices = int(this.§_-FV§.length); data = new ByteArray(); data.endian = Endian.LITTLE_ENDIAN; numMappings = int(attributes.length); data.length = 4 * numMappings * numVertices; for(i = 0; i < numVertices; ) { - vertex = this.var_716[i]; + vertex = this.§_-FV§[i]; if(vertex != null) { data.position = 4 * numMappings * i; @@ -125,12 +125,12 @@ package package_123 data.writeFloat(vertex.normal.y); data.writeFloat(vertex.normal.z); } - if(vertex.name_769 != null) + if(vertex.§_-hC§ != null) { - data.writeFloat(vertex.name_769.x); - data.writeFloat(vertex.name_769.y); - data.writeFloat(vertex.name_769.z); - data.writeFloat(vertex.name_769.w); + data.writeFloat(vertex.§_-hC§.x); + data.writeFloat(vertex.§_-hC§.y); + data.writeFloat(vertex.§_-hC§.z); + data.writeFloat(vertex.§_-hC§.w); } for(j = 0; j < vertex.uvs.length; ) { @@ -147,11 +147,11 @@ package package_123 return false; } - private function method_889() : void + private function parsePrimitives() : void { var child:XML = null; - var p:name_768 = null; - this.primitives = new Vector.(); + var _loc5_:DaePrimitive = null; + this.primitives = new Vector.(); var children:XMLList = data.mesh.children(); for(var i:int = 0,var count:int = int(children.length()); i < count; ) { @@ -163,36 +163,36 @@ package package_123 case "triangles": case "trifans": case "tristrips": - p = new name_768(child,document); - this.primitives.push(p); + _loc5_ = new DaePrimitive(child,document); + this.primitives.push(_loc5_); break; } i++; } } - public function method_727(materials:Object) : name_380 + public function parseMesh(materials:Object) : Mesh { - var mesh:name_380 = null; + var mesh:Mesh = null; var i:int = 0; - var p:name_768 = null; - var instanceMaterial:name_758 = null; - var material:name_641 = null; - var daeMaterial:name_713 = null; + var p:DaePrimitive = null; + var instanceMaterial:DaeInstanceMaterial = null; + var material:ParserMaterial = null; + var daeMaterial:DaeMaterial = null; if(data.mesh.length() > 0) { - mesh = new name_380(); + mesh = new Mesh(); mesh.geometry = this.geometry; for(i = 0; i < this.primitives.length; i++) { p = this.primitives[i]; - instanceMaterial = materials[p.name_774]; + instanceMaterial = materials[p.materialSymbol]; if(instanceMaterial != null) { daeMaterial = instanceMaterial.material; if(daeMaterial != null) { - daeMaterial.method_314(); + daeMaterial.parse(); material = daeMaterial.material; daeMaterial.used = true; } diff --git a/src/package_123/name_734.as b/src/alternativa/engine3d/loaders/collada/DaeImage.as similarity index 74% rename from src/package_123/name_734.as rename to src/alternativa/engine3d/loaders/collada/DaeImage.as index 1733805..ef44834 100644 --- a/src/package_123/name_734.as +++ b/src/alternativa/engine3d/loaders/collada/DaeImage.as @@ -1,10 +1,10 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_734 extends class_43 + public class DaeImage extends DaeElement { - public function name_734(data:XML, document:name_707) + public function DaeImage(data:XML, document:DaeDocument) { super(data,document); } diff --git a/src/package_123/name_784.as b/src/alternativa/engine3d/loaders/collada/DaeInput.as similarity index 71% rename from src/package_123/name_784.as rename to src/alternativa/engine3d/loaders/collada/DaeInput.as index fa36072..a9cfd67 100644 --- a/src/package_123/name_784.as +++ b/src/alternativa/engine3d/loaders/collada/DaeInput.as @@ -1,10 +1,10 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_784 extends class_43 + public class DaeInput extends DaeElement { - public function name_784(data:XML, document:name_707) + public function DaeInput(data:XML, document:DaeDocument) { super(data,document); } @@ -28,16 +28,16 @@ package package_123 public function get setNum() : int { - var attr:XML = data.@name_789[0]; + var attr:XML = data.@set[0]; return attr == null ? 0 : int(parseInt(attr.toString(),10)); } - public function prepareSource(minComponents:int) : name_740 + public function prepareSource(minComponents:int) : DaeSource { - var source:name_740 = document.findSource(this.source); + var source:DaeSource = document.findSource(this.source); if(source != null) { - source.method_314(); + source.parse(); if(source.numbers != null && source.stride >= minComponents) { return source; diff --git a/src/package_123/name_757.as b/src/alternativa/engine3d/loaders/collada/DaeInstanceController.as similarity index 64% rename from src/package_123/name_757.as rename to src/alternativa/engine3d/loaders/collada/DaeInstanceController.as index a28e361..c642863 100644 --- a/src/package_123/name_757.as +++ b/src/alternativa/engine3d/loaders/collada/DaeInstanceController.as @@ -1,16 +1,16 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import flash.utils.Dictionary; use namespace collada; - public class name_757 extends class_43 + public class DaeInstanceController extends DaeElement { - public var node:name_706; + public var node:DaeNode; - public var topmostJoints:Vector.; + public var topmostJoints:Vector.; - public function name_757(data:XML, document:name_707, node:name_706) + public function DaeInstanceController(data:XML, document:DaeDocument, node:DaeNode) { super(data,document); this.node = node; @@ -18,23 +18,23 @@ package package_123 override protected function parseImplementation() : Boolean { - var controller:name_735 = this.controller; + var controller:DaeController = this.controller; if(controller != null) { - this.topmostJoints = controller.method_916(this.skeletons); + this.topmostJoints = controller.findRootJointNodes(this.skeletons); if(this.topmostJoints != null && this.topmostJoints.length > 1) { - this.method_923(this.topmostJoints); + this.replaceNodesByTopmost(this.topmostJoints); } } return this.topmostJoints != null; } - private function method_923(nodes:Vector.) : void + private function replaceNodesByTopmost(nodes:Vector.) : void { var i:int = 0; - var node:name_706 = null; - var parent:name_706 = null; + var node:DaeNode = null; + var parent:DaeNode = null; var numNodes:int = int(nodes.length); var parents:Dictionary = new Dictionary(); for(i = 0; i < numNodes; i++) @@ -68,9 +68,9 @@ package package_123 } } - private function get controller() : name_735 + private function get controller() : DaeController { - var controller:name_735 = document.findController(data.@url[0]); + var controller:DaeController = document.findController(data.@url[0]); if(controller == null) { document.logger.logNotFoundError(data.@url[0]); @@ -78,17 +78,17 @@ package package_123 return controller; } - private function get skeletons() : Vector. + private function get skeletons() : Vector. { - var skeletons:Vector. = null; + var skeletons:Vector. = null; var i:int = 0; var count:int = 0; var skeletonXML:XML = null; - var skel:name_706 = null; + var skel:DaeNode = null; var list:XMLList = data.skeleton; if(list.length() > 0) { - skeletons = new Vector.(); + skeletons = new Vector.(); for(i = 0,count = int(list.length()); i < count; i++) { skeletonXML = list[i]; @@ -107,13 +107,13 @@ package package_123 return null; } - public function method_429(materials:Object) : name_711 + public function parseSkin(materials:Object) : DaeObject { - var controller:name_735 = this.controller; + var controller:DaeController = this.controller; if(controller != null) { - controller.method_314(); - return controller.method_429(materials,this.topmostJoints,this.skeletons); + controller.parse(); + return controller.parseSkin(materials,this.topmostJoints,this.skeletons); } return null; } diff --git a/src/package_123/name_758.as b/src/alternativa/engine3d/loaders/collada/DaeInstanceMaterial.as similarity index 69% rename from src/package_123/name_758.as rename to src/alternativa/engine3d/loaders/collada/DaeInstanceMaterial.as index aafe6c3..f38d90d 100644 --- a/src/package_123/name_758.as +++ b/src/alternativa/engine3d/loaders/collada/DaeInstanceMaterial.as @@ -1,10 +1,10 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_758 extends class_43 + public class DaeInstanceMaterial extends DaeElement { - public function name_758(data:XML, document:name_707) + public function DaeInstanceMaterial(data:XML, document:DaeDocument) { super(data,document); } @@ -20,9 +20,9 @@ package package_123 return data.@target[0]; } - public function get material() : name_713 + public function get material() : DaeMaterial { - var mat:name_713 = document.findMaterial(this.target); + var mat:DaeMaterial = document.findMaterial(this.target); if(mat == null) { document.logger.logNotFoundError(this.target); @@ -30,7 +30,7 @@ package package_123 return mat; } - public function method_924(semantic:String) : int + public function getBindVertexInputSetNum(semantic:String) : int { var bindVertexInputXML:XML = null; var setNumXML:XML = null; diff --git a/src/package_123/name_741.as b/src/alternativa/engine3d/loaders/collada/DaeLight.as similarity index 68% rename from src/package_123/name_741.as rename to src/alternativa/engine3d/loaders/collada/DaeLight.as index c51d918..9946bce 100644 --- a/src/package_123/name_741.as +++ b/src/alternativa/engine3d/loaders/collada/DaeLight.as @@ -1,21 +1,21 @@ -package package_123 +package alternativa.engine3d.loaders.collada { - import package_21.name_116; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_24.SpotLight; - import package_24.name_376; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.lights.AmbientLight; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.lights.OmniLight; + import alternativa.engine3d.lights.SpotLight; use namespace collada; - public class name_741 extends class_43 + public class DaeLight extends DaeElement { - public function name_741(data:XML, document:name_707) + public function DaeLight(data:XML, document:DaeDocument) { super(data,document); } - private function method_892(value:Array) : uint + private function float4ToUint(value:Array) : uint { var r:uint = value[0] * 255; var g:uint = value[1] * 255; @@ -23,17 +23,17 @@ package package_123 return r << 16 | g << 8 | b | 4278190080; } - public function get name_761() : Boolean + public function get revertDirection() : Boolean { var info:XML = data.technique_common.children()[0]; return info == null ? false : info.localName() == "directional" || info.localName() == "spot"; } - public function name_762() : name_116 + public function parseLight() : Light3D { var info:XML = null; var extra:XML = null; - var light:name_116 = null; + var light:Light3D = null; var color:uint = 0; var constantAttenuationXML:XML = null; var linearAttenuationXML:XML = null; @@ -51,14 +51,14 @@ package package_123 light = null; if(info != null) { - color = this.method_892(method_866(info.color[0])); + color = this.float4ToUint(parseNumbersArray(info.color[0])); linearAttenuation = 0; attenuationStart = 0; attenuationEnd = 1; switch(info.localName()) { case "ambient": - light = new name_376(color); + light = new AmbientLight(color); break; case "directional": dLight = new DirectionalLight(color); @@ -67,8 +67,8 @@ package package_123 case "point": if(extra != null) { - attenuationStart = method_761(extra.attenuation_far_start[0]); - attenuationEnd = method_761(extra.attenuation_far_end[0]); + attenuationStart = parseNumber(extra.attenuation_far_start[0]); + attenuationEnd = parseNumber(extra.attenuation_far_end[0]); } else { @@ -76,11 +76,11 @@ package package_123 linearAttenuationXML = info.linear_attenuation[0]; if(constantAttenuationXML != null) { - attenuationStart = -method_761(constantAttenuationXML); + attenuationStart = -parseNumber(constantAttenuationXML); } if(linearAttenuationXML != null) { - linearAttenuation = method_761(linearAttenuationXML); + linearAttenuation = parseNumber(linearAttenuationXML); } if(linearAttenuation > 0) { @@ -100,10 +100,10 @@ package package_123 DEG2RAD = Math.PI / 180; if(extra != null) { - attenuationStart = method_761(extra.attenuation_far_start[0]); - attenuationEnd = method_761(extra.attenuation_far_end[0]); - hotspot = DEG2RAD * method_761(extra.hotspot_beam[0]); - fallof = DEG2RAD * method_761(extra.falloff[0]); + attenuationStart = parseNumber(extra.attenuation_far_start[0]); + attenuationEnd = parseNumber(extra.attenuation_far_end[0]); + hotspot = DEG2RAD * parseNumber(extra.hotspot_beam[0]); + fallof = DEG2RAD * parseNumber(extra.falloff[0]); } else { @@ -111,11 +111,11 @@ package package_123 linearAttenuationXML = info.linear_attenuation[0]; if(constantAttenuationXML != null) { - attenuationStart = -method_761(constantAttenuationXML); + attenuationStart = -parseNumber(constantAttenuationXML); } if(linearAttenuationXML != null) { - linearAttenuation = method_761(linearAttenuationXML); + linearAttenuation = parseNumber(linearAttenuationXML); } if(linearAttenuation > 0) { diff --git a/src/package_123/name_743.as b/src/alternativa/engine3d/loaders/collada/DaeLogger.as similarity index 76% rename from src/package_123/name_743.as rename to src/alternativa/engine3d/loaders/collada/DaeLogger.as index e306097..86af6d5 100644 --- a/src/package_123/name_743.as +++ b/src/alternativa/engine3d/loaders/collada/DaeLogger.as @@ -1,13 +1,13 @@ -package package_123 +package alternativa.engine3d.loaders.collada { - public class name_743 + public class DaeLogger { - public function name_743() + public function DaeLogger() { super(); } - private function method_896(message:String, element:XML) : void + private function logMessage(message:String, element:XML) : void { var name:String = element.nodeKind() == "attribute" ? "@" + element.localName() : element.localName() + ""; for(var parent:* = element.parent(); parent != null; ) @@ -20,10 +20,10 @@ package package_123 private function logError(message:String, element:XML) : void { - this.method_896("[ERROR] " + message,element); + this.logMessage("[ERROR] " + message,element); } - public function name_745(element:XML) : void + public function logExternalError(element:XML) : void { this.logError("External urls don\'t supported",element); } @@ -33,7 +33,7 @@ package package_123 this.logError(" don\'t supported",element); } - public function method_897(element:XML) : void + public function logJointInAnotherSceneError(element:XML) : void { this.logError("Joints in different scenes don\'t supported",element); } diff --git a/src/alternativa/engine3d/loaders/collada/DaeMaterial.as b/src/alternativa/engine3d/loaders/collada/DaeMaterial.as new file mode 100644 index 0000000..5bc48fb --- /dev/null +++ b/src/alternativa/engine3d/loaders/collada/DaeMaterial.as @@ -0,0 +1,57 @@ +package alternativa.engine3d.loaders.collada +{ + import alternativa.engine3d.loaders.ParserMaterial; + + use namespace collada; + + public class DaeMaterial extends DaeElement + { + public var material:ParserMaterial; + + public var mainTexCoords:String; + + public var used:Boolean = false; + + public function DaeMaterial(data:XML, document:DaeDocument) + { + super(data,document); + } + + private function parseSetParams() : Object + { + var element:XML = null; + var param:DaeParam = null; + var params:Object = new Object(); + var list:XMLList = data.instance_effect.setparam; + for each(element in list) + { + param = new DaeParam(element,document); + params[param.ref] = param; + } + return params; + } + + private function get effectURL() : XML + { + return data.instance_effect.@url[0]; + } + + override protected function parseImplementation() : Boolean + { + var effect:DaeEffect = document.findEffect(this.effectURL); + if(effect != null) + { + effect.parse(); + this.material = effect.getMaterial(this.parseSetParams()); + this.mainTexCoords = effect.mainTexCoords; + if(this.material != null) + { + this.material.name = cloneString(name); + } + return true; + } + return false; + } + } +} + diff --git a/src/alternativa/engine3d/loaders/collada/DaeNode.as b/src/alternativa/engine3d/loaders/collada/DaeNode.as new file mode 100644 index 0000000..dcf330f --- /dev/null +++ b/src/alternativa/engine3d/loaders/collada/DaeNode.as @@ -0,0 +1,567 @@ +package alternativa.engine3d.loaders.collada +{ + import alternativa.engine3d.animation.§_-FA§; + import alternativa.engine3d.animation.keys.§_-Np§; + import alternativa.engine3d.animation.keys.§_-ew§; + import alternativa.engine3d.animation.keys.§_-kB§; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.Skin; + import flash.geom.Matrix3D; + import flash.geom.Vector3D; + + use namespace collada; + + public class DaeNode extends DaeElement + { + public var scene:DaeVisualScene; + + public var parent:DaeNode; + + public var skinOrTopmostJoint:Boolean = false; + + private var channels:Vector.; + + private var §_-DE§:Vector.; + + public var nodes:Vector.; + + public var objects:Vector.; + + public var skins:Vector.; + + public function DaeNode(data:XML, document:DaeDocument, scene:DaeVisualScene = null, parent:DaeNode = null) + { + super(data,document); + this.scene = scene; + this.parent = parent; + this.constructNodes(); + } + + public function get animName() : String + { + var n:String = this.name; + return n == null ? this.id : n; + } + + private function constructNodes() : void + { + var node:DaeNode = null; + var nodesList:XMLList = data.node; + var count:int = int(nodesList.length()); + this.nodes = new Vector.(count); + for(var i:int = 0; i < count; i++) + { + node = new DaeNode(nodesList[i],document,this.scene,this); + if(node.id != null) + { + document.nodes[node.id] = node; + } + this.nodes[i] = node; + } + } + + internal function registerInstanceControllers() : void + { + var i:int = 0; + var instanceControllerXML:XML = null; + var instanceController:DaeInstanceController = null; + var jointNodes:Vector. = null; + var numNodes:int = 0; + var jointNode:DaeNode = null; + var j:int = 0; + var instanceControllerXMLs:XMLList = data.instance_controller; + var count:int = int(instanceControllerXMLs.length()); + for(i = 0; i < count; ) + { + this.skinOrTopmostJoint = true; + instanceControllerXML = instanceControllerXMLs[i]; + instanceController = new DaeInstanceController(instanceControllerXML,document,this); + if(instanceController.parse()) + { + jointNodes = instanceController.topmostJoints; + numNodes = int(jointNodes.length); + if(numNodes > 0) + { + jointNode = jointNodes[0]; + jointNode.addInstanceController(instanceController); + for(j = 0; j < numNodes; j++) + { + jointNodes[j].skinOrTopmostJoint = true; + } + } + } + i++; + } + count = int(this.nodes.length); + for(i = 0; i < count; i++) + { + this.nodes[i].registerInstanceControllers(); + } + } + + public function addChannel(channel:DaeChannel) : void + { + if(this.channels == null) + { + this.channels = new Vector.(); + } + this.channels.push(channel); + } + + public function addInstanceController(controller:DaeInstanceController) : void + { + if(this.§_-DE§ == null) + { + this.§_-DE§ = new Vector.(); + } + this.§_-DE§.push(controller); + } + + override protected function parseImplementation() : Boolean + { + this.skins = this.parseSkins(); + this.objects = this.parseObjects(); + return true; + } + + private function parseInstanceMaterials(geometry:XML) : Object + { + var instance:DaeInstanceMaterial = null; + var instances:Object = new Object(); + var list:XMLList = geometry.bind_material.technique_common.instance_material; + for(var i:int = 0,var count:int = int(list.length()); i < count; i++) + { + instance = new DaeInstanceMaterial(list[i],document); + instances[instance.symbol] = instance; + } + return instances; + } + + public function getNodeBySid(sid:String) : DaeNode + { + var i:int = 0; + var temp:Vector.> = null; + var children:Vector. = null; + var count:int = 0; + var j:int = 0; + var node:DaeNode = null; + if(sid == this.sid) + { + return this; + } + var levelNodes:Vector.> = new Vector.>(); + var levelNodes2:Vector.> = new Vector.>(); + levelNodes.push(this.nodes); + for(var len:int = int(levelNodes.length); len > 0; ) + { + for(i = 0; i < len; i++) + { + children = levelNodes[i]; + count = int(children.length); + for(j = 0; j < count; ) + { + node = children[j]; + if(node.sid == sid) + { + return node; + } + if(node.nodes.length > 0) + { + levelNodes2.push(node.nodes); + } + j++; + } + } + temp = levelNodes; + levelNodes = levelNodes2; + levelNodes2 = temp; + levelNodes2.length = 0; + len = int(levelNodes.length); + } + return null; + } + + public function parseSkins() : Vector. + { + var instanceController:DaeInstanceController = null; + var skinAndAnimatedJoints:DaeObject = null; + var skin:Skin = null; + if(this.§_-DE§ == null) + { + return null; + } + var skins:Vector. = new Vector.(); + for(var i:int = 0,var count:int = int(this.§_-DE§.length); i < count; ) + { + instanceController = this.§_-DE§[i]; + instanceController.parse(); + skinAndAnimatedJoints = instanceController.parseSkin(this.parseInstanceMaterials(instanceController.data)); + if(skinAndAnimatedJoints != null) + { + skin = Skin(skinAndAnimatedJoints.object); + skin.name = cloneString(instanceController.node.name); + skins.push(skinAndAnimatedJoints); + } + i++; + } + return skins.length > 0 ? skins : null; + } + + public function parseObjects() : Vector. + { + var i:int = 0; + var count:int = 0; + var child:XML = null; + var _loc6_:DaeLight = null; + var _loc7_:DaeGeometry = null; + var light:Light3D = null; + var rotXMatrix:Matrix3D = null; + var mesh:Mesh = null; + var objects:Vector. = new Vector.(); + var children:XMLList = data.children(); + for(i = 0,count = int(children.length()); i < count; ) + { + child = children[i]; + switch(child.localName()) + { + case "instance_light": + _loc6_ = document.findLight(child.@url[0]); + if(_loc6_ != null) + { + light = _loc6_.parseLight(); + if(light != null) + { + light.name = cloneString(name); + if(_loc6_.revertDirection) + { + rotXMatrix = new Matrix3D(); + rotXMatrix.appendRotation(180,Vector3D.X_AXIS); + objects.push(new DaeObject(this.applyTransformations(light,rotXMatrix))); + } + else + { + objects.push(this.applyAnimation(this.applyTransformations(light))); + } + } + } + else + { + document.logger.logNotFoundError(child.@url[0]); + } + break; + case "instance_geometry": + _loc7_ = document.findGeometry(child.@url[0]); + if(_loc7_ != null) + { + _loc7_.parse(); + mesh = _loc7_.parseMesh(this.parseInstanceMaterials(child)); + if(mesh != null) + { + mesh.name = cloneString(name); + objects.push(this.applyAnimation(this.applyTransformations(mesh))); + } + } + else + { + document.logger.logNotFoundError(child.@url[0]); + } + break; + case "instance_node": + document.logger.logInstanceNodeError(child); + break; + } + i++; + } + return objects.length > 0 ? objects : null; + } + + private function getMatrix(initialMatrix:Matrix3D = null) : Matrix3D + { + var components:Array = null; + var child:XML = null; + var sid:XML = null; + var matrix:Matrix3D = initialMatrix == null ? new Matrix3D() : initialMatrix; + var children:XMLList = data.children(); + for(var i:int = children.length() - 1; i >= 0; i--) + { + child = children[i]; + sid = child.@sid[0]; + if(sid != null && sid.toString() == "post-rotationY") + { + continue; + } + switch(child.localName()) + { + case "scale": + components = parseNumbersArray(child); + matrix.appendScale(components[0],components[1],components[2]); + break; + case "rotate": + components = parseNumbersArray(child); + matrix.appendRotation(components[3],new Vector3D(components[0],components[1],components[2])); + break; + case "translate": + components = parseNumbersArray(child); + matrix.appendTranslation(components[0] * document.unitScaleFactor,components[1] * document.unitScaleFactor,components[2] * document.unitScaleFactor); + break; + case "matrix": + components = parseNumbersArray(child); + matrix.append(new Matrix3D(Vector.([components[0],components[4],components[8],components[12],components[1],components[5],components[9],components[13],components[2],components[6],components[10],components[14],components[3] * document.unitScaleFactor,components[7] * document.unitScaleFactor,components[11] * document.unitScaleFactor,components[15]]))); + break; + case "lookat": + break; + case "skew": + document.logger.logSkewError(child); + break; + } + } + return matrix; + } + + public function applyTransformations(object:Object3D, prepend:Matrix3D = null, append:Matrix3D = null) : Object3D + { + var matrix:Matrix3D = this.getMatrix(prepend); + if(append != null) + { + matrix.append(append); + } + var vs:Vector. = matrix.decompose(); + var t:Vector3D = vs[0]; + var r:Vector3D = vs[1]; + var s:Vector3D = vs[2]; + object.x = t.x; + object.y = t.y; + object.z = t.z; + object.rotationX = r.x; + object.rotationY = r.y; + object.rotationZ = r.z; + object.scaleX = s.x; + object.scaleY = s.y; + object.scaleZ = s.z; + return object; + } + + public function applyAnimation(object:Object3D) : DaeObject + { + var animation:§_-FA§ = this.parseAnimation(object); + if(animation == null) + { + return new DaeObject(object); + } + object.name = this.animName; + animation.§_-L6§(object,false); + return new DaeObject(object,animation); + } + + public function parseAnimation(object:Object3D = null) : §_-FA§ + { + if(this.channels == null || !this.hasTransformationAnimation()) + { + return null; + } + var channel:DaeChannel = this.getChannel(DaeChannel.PARAM_MATRIX); + if(channel != null) + { + return this.createClip(channel.tracks); + } + var clip:§_-FA§ = new §_-FA§(); + var components:Vector. = object != null ? null : this.getMatrix().decompose(); + channel = this.getChannel(DaeChannel.PARAM_TRANSLATE); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_X); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x)); + } + channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Y); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y)); + } + channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Z); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z)); + } + } + channel = this.getChannel(DaeChannel.PARAM_ROTATION_X); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX)); + } + channel = this.getChannel(DaeChannel.PARAM_ROTATION_Y); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY)); + } + channel = this.getChannel(DaeChannel.PARAM_ROTATION_Z); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ)); + } + channel = this.getChannel(DaeChannel.PARAM_SCALE); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + channel = this.getChannel(DaeChannel.PARAM_SCALE_X); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX)); + } + channel = this.getChannel(DaeChannel.PARAM_SCALE_Y); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY)); + } + channel = this.getChannel(DaeChannel.PARAM_SCALE_Z); + if(channel != null) + { + this.addTracksToClip(clip,channel.tracks); + } + else + { + clip.§_-nn§(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ)); + } + } + if(clip.numTracks > 0) + { + return clip; + } + return null; + } + + private function createClip(tracks:Vector.<§_-Np§>) : §_-FA§ + { + var clip:§_-FA§ = new §_-FA§(); + for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) + { + clip.§_-nn§(tracks[i]); + } + return clip; + } + + private function addTracksToClip(clip:§_-FA§, tracks:Vector.<§_-Np§>) : void + { + for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) + { + clip.§_-nn§(tracks[i]); + } + } + + private function hasTransformationAnimation() : Boolean + { + var channel:DaeChannel = null; + var result:Boolean = false; + for(var i:int = 0,var count:int = int(this.channels.length); i < count; ) + { + channel = this.channels[i]; + channel.parse(); + result = channel.§_-dS§ == DaeChannel.PARAM_MATRIX; + result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE; + result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_X; + result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Y; + result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Z; + result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_X; + result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Y; + result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Z; + result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE; + result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_X; + result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Y; + result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Z; + if(result) + { + return true; + } + i++; + } + return false; + } + + private function getChannel(param:String) : DaeChannel + { + var channel:DaeChannel = null; + for(var i:int = 0,var count:int = int(this.channels.length); i < count; ) + { + channel = this.channels[i]; + channel.parse(); + if(channel.§_-dS§ == param) + { + return channel; + } + i++; + } + return null; + } + + private function concatTracks(source:Vector.<§_-Np§>, dest:Vector.<§_-Np§>) : void + { + for(var i:int = 0,var count:int = int(source.length); i < count; i++) + { + dest.push(source[i]); + } + } + + private function createValueStaticTrack(property:String, value:Number) : §_-Np§ + { + var track:§_-kB§ = new §_-kB§(this.animName,property); + track.addKey(0,value); + return track; + } + + public function createStaticTransformTrack() : §_-ew§ + { + var track:§_-ew§ = new §_-ew§(this.animName); + track.addKey(0,this.getMatrix()); + return track; + } + + public function get layer() : String + { + var layerXML:XML = data.@layer[0]; + return layerXML == null ? null : layerXML.toString(); + } + } +} + diff --git a/src/alternativa/engine3d/loaders/collada/DaeObject.as b/src/alternativa/engine3d/loaders/collada/DaeObject.as new file mode 100644 index 0000000..2b140b6 --- /dev/null +++ b/src/alternativa/engine3d/loaders/collada/DaeObject.as @@ -0,0 +1,22 @@ +package alternativa.engine3d.loaders.collada +{ + import alternativa.engine3d.animation.§_-FA§; + import alternativa.engine3d.core.Object3D; + + public class DaeObject + { + public var object:Object3D; + + public var animation:§_-FA§; + + public var jointNode:DaeNode; + + public function DaeObject(object:Object3D, animation:§_-FA§ = null) + { + super(); + this.object = object; + this.animation = animation; + } + } +} + diff --git a/src/package_123/name_754.as b/src/alternativa/engine3d/loaders/collada/DaeParam.as similarity index 71% rename from src/package_123/name_754.as rename to src/alternativa/engine3d/loaders/collada/DaeParam.as index a9cd91e..f206a6b 100644 --- a/src/package_123/name_754.as +++ b/src/alternativa/engine3d/loaders/collada/DaeParam.as @@ -1,10 +1,10 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_754 extends class_43 + public class DaeParam extends DaeElement { - public function name_754(data:XML, document:name_707) + public function DaeParam(data:XML, document:DaeDocument) { super(data,document); } @@ -15,12 +15,12 @@ package package_123 return attribute == null ? null : attribute.toString(); } - public function name_777() : Number + public function getFloat() : Number { var floatXML:XML = data.float[0]; if(floatXML != null) { - return method_761(floatXML); + return parseNumber(floatXML); } return NaN; } @@ -34,13 +34,13 @@ package package_123 element = data.float3[0]; if(element != null) { - components = method_866(element); + components = parseNumbersArray(element); components[3] = 1; } } else { - components = method_866(element); + components = parseNumbersArray(element); } return components; } @@ -57,11 +57,11 @@ package package_123 return element == null ? null : element.text().toString(); } - public function get image() : name_734 + public function get image() : DaeImage { - var image:name_734 = null; + var image:DaeImage = null; var init_from:XML = null; - var imageIDXML:XML = null; + var _loc4_:XML = null; var surface:XML = data.surface[0]; if(surface != null) { @@ -74,12 +74,12 @@ package package_123 } else { - imageIDXML = data.instance_image.@url[0]; - if(imageIDXML == null) + _loc4_ = data.instance_image.@url[0]; + if(_loc4_ == null) { return null; } - image = document.findImage(imageIDXML); + image = document.findImage(_loc4_); } return image; } diff --git a/src/alternativa/engine3d/loaders/collada/DaeSampler.as b/src/alternativa/engine3d/loaders/collada/DaeSampler.as new file mode 100644 index 0000000..ac099ed --- /dev/null +++ b/src/alternativa/engine3d/loaders/collada/DaeSampler.as @@ -0,0 +1,135 @@ +package alternativa.engine3d.loaders.collada +{ + import alternativa.engine3d.animation.keys.§_-Np§; + import alternativa.engine3d.animation.keys.§_-ew§; + import alternativa.engine3d.animation.keys.§_-kB§; + import flash.geom.Matrix3D; + + use namespace collada; + + public class DaeSampler extends DaeElement + { + private var §_-G6§:Vector.; + + private var values:Vector.; + + private var §_-JC§:int; + + private var §_-7i§:int; + + public function DaeSampler(data:XML, document:DaeDocument) + { + super(data,document); + } + + override protected function parseImplementation() : Boolean + { + var inputSource:DaeSource = null; + var outputSource:DaeSource = null; + var input:DaeInput = null; + var semantic:String = null; + var inputsList:XMLList = data.input; + for(var i:int = 0,var count:int = int(inputsList.length()); i < count; i++) + { + input = new DaeInput(inputsList[i],document); + semantic = input.semantic; + if(semantic == null) + { + continue; + } + switch(semantic) + { + case "INPUT": + inputSource = input.prepareSource(1); + if(inputSource != null) + { + this.§_-G6§ = inputSource.numbers; + this.§_-JC§ = inputSource.stride; + } + break; + case "OUTPUT": + outputSource = input.prepareSource(1); + if(outputSource != null) + { + this.values = outputSource.numbers; + this.§_-7i§ = outputSource.stride; + } + break; + } + } + return true; + } + + public function parseNumbersTrack(objectName:String, property:String) : §_-kB§ + { + var track:§_-kB§ = null; + var count:int = 0; + var i:int = 0; + if(this.§_-G6§ != null && this.values != null && this.§_-JC§ > 0) + { + track = new §_-kB§(objectName,property); + count = this.§_-G6§.length / this.§_-JC§; + for(i = 0; i < count; i++) + { + track.addKey(this.§_-G6§[int(this.§_-JC§ * i)],this.values[int(this.§_-7i§ * i)]); + } + return track; + } + return null; + } + + public function parseTransformationTrack(objectName:String) : §_-Np§ + { + var track:§_-ew§ = null; + var count:int = 0; + var i:int = 0; + var index:int = 0; + var matrix:Matrix3D = null; + if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0) + { + track = new §_-ew§(objectName); + count = this.§_-G6§.length / this.§_-JC§; + for(i = 0; i < count; i++) + { + index = this.§_-7i§ * i; + matrix = new Matrix3D(Vector.([this.values[index],this.values[index + 4],this.values[index + 8],this.values[index + 12],this.values[index + 1],this.values[index + 5],this.values[index + 9],this.values[index + 13],this.values[index + 2],this.values[index + 6],this.values[index + 10],this.values[index + 14],this.values[index + 3],this.values[index + 7],this.values[index + 11],this.values[index + 15]])); + track.addKey(this.§_-G6§[i * this.§_-JC§],matrix); + } + return track; + } + return null; + } + + public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<§_-Np§> + { + var xTrack:§_-kB§ = null; + var yTrack:§_-kB§ = null; + var zTrack:§_-kB§ = null; + var count:int = 0; + var i:int = 0; + var index:int = 0; + var time:Number = NaN; + if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0) + { + xTrack = new §_-kB§(objectName,xProperty); + xTrack.object = objectName; + yTrack = new §_-kB§(objectName,yProperty); + yTrack.object = objectName; + zTrack = new §_-kB§(objectName,zProperty); + zTrack.object = objectName; + count = this.§_-G6§.length / this.§_-JC§; + for(i = 0; i < count; i++) + { + index = i * this.§_-7i§; + time = this.§_-G6§[i * this.§_-JC§]; + xTrack.addKey(time,this.values[index]); + yTrack.addKey(time,this.values[index + 1]); + zTrack.addKey(time,this.values[index + 2]); + } + return Vector.<§_-Np§>([xTrack,yTrack,zTrack]); + } + return null; + } + } +} + diff --git a/src/package_123/name_740.as b/src/alternativa/engine3d/loaders/collada/DaeSource.as similarity index 71% rename from src/package_123/name_740.as rename to src/alternativa/engine3d/loaders/collada/DaeSource.as index 2c8f61b..423ae7f 100644 --- a/src/package_123/name_740.as +++ b/src/alternativa/engine3d/loaders/collada/DaeSource.as @@ -1,46 +1,46 @@ -package package_123 +package alternativa.engine3d.loaders.collada { use namespace collada; - public class name_740 extends class_43 + public class DaeSource extends DaeElement { - private const const_9:String = "float_array"; + private const §_-XM§:String = "float_array"; - private const const_7:String = "int_array"; + private const §_-g6§:String = "int_array"; - private const const_8:String = "Name_array"; + private const §_-ZJ§:String = "Name_array"; public var numbers:Vector.; - public var var_549:Vector.; + public var §_-op§:Vector.; public var names:Vector.; public var stride:int; - public function name_740(data:XML, document:name_707) + public function DaeSource(data:XML, document:DaeDocument) { super(data,document); - this.method_898(); + this.constructArrays(); } - private function method_898() : void + private function constructArrays() : void { var child:XML = null; - var array:name_746 = null; + var _loc5_:DaeArray = null; var children:XMLList = data.children(); for(var i:int = 0,var count:int = int(children.length()); i < count; ) { child = children[i]; switch(child.localName()) { - case this.const_9: - case this.const_7: - case this.const_8: - array = new name_746(child,document); - if(array.id != null) + case this.§_-XM§: + case this.§_-g6§: + case this.§_-ZJ§: + _loc5_ = new DaeArray(child,document); + if(_loc5_.id != null) { - document.arrays[array.id] = array; + document.arrays[_loc5_.id] = _loc5_; } break; } @@ -56,7 +56,7 @@ package package_123 override protected function parseImplementation() : Boolean { var arrayXML:XML = null; - var array:name_746 = null; + var array:DaeArray = null; var countXML:String = null; var count:int = 0; var offsetXML:XML = null; @@ -78,13 +78,13 @@ package package_123 strideXML = accessor.@stride[0]; offset = offsetXML == null ? 0 : int(parseInt(offsetXML.toString(),10)); stride = strideXML == null ? 1 : int(parseInt(strideXML.toString(),10)); - array.method_314(); + array.parse(); if(array.array.length < offset + count * stride) { document.logger.logNotEnoughDataError(accessor); return false; } - this.stride = this.method_900(offset,count,stride,array.array,array.type); + this.stride = this.parseArray(offset,count,stride,array.array,array.type); return true; } } @@ -96,7 +96,7 @@ package package_123 return false; } - private function method_899(params:XMLList) : int + private function numValidParams(params:XMLList) : int { var res:int = 0; for(var i:int = 0,var count:int = int(params.length()); i < count; ) @@ -110,22 +110,22 @@ package package_123 return res; } - private function method_900(offset:int, count:int, stride:int, array:Array, type:String) : int + private function parseArray(offset:int, count:int, stride:int, array:Array, type:String) : int { var param:XML = null; var j:int = 0; var value:String = null; var params:XMLList = this.accessor.param; - var arrStride:int = int(Math.max(this.method_899(params),stride)); + var arrStride:int = int(Math.max(this.numValidParams(params),stride)); switch(type) { - case this.const_9: + case this.§_-XM§: this.numbers = new Vector.(int(arrStride * count)); break; - case this.const_7: - this.var_549 = new Vector.(int(arrStride * count)); + case this.§_-g6§: + this.§_-op§ = new Vector.(int(arrStride * count)); break; - case this.const_8: + case this.§_-ZJ§: this.names = new Vector.(int(arrStride * count)); } var curr:int = 0; @@ -136,7 +136,7 @@ package package_123 { switch(type) { - case this.const_9: + case this.§_-XM§: for(j = 0; j < count; j++) { value = array[int(offset + stride * j + i)]; @@ -147,13 +147,13 @@ package package_123 this.numbers[int(arrStride * j + curr)] = parseFloat(value); } break; - case this.const_7: + case this.§_-g6§: for(j = 0; j < count; j++) { - this.var_549[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10); + this.§_-op§[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10); } break; - case this.const_8: + case this.§_-ZJ§: for(j = 0; j < count; j++) { this.names[int(arrStride * j + curr)] = array[int(offset + stride * j + i)]; diff --git a/src/package_123/name_770.as b/src/alternativa/engine3d/loaders/collada/DaeVertex.as similarity index 59% rename from src/package_123/name_770.as rename to src/alternativa/engine3d/loaders/collada/DaeVertex.as index 3b7065c..678672a 100644 --- a/src/package_123/name_770.as +++ b/src/alternativa/engine3d/loaders/collada/DaeVertex.as @@ -1,12 +1,12 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import flash.geom.Vector3D; - public class name_770 + public class DaeVertex { - public var name_785:int; + public var §_-Eq§:int; - public var name_786:int; + public var §_-AR§:int; public var indices:Vector. = new Vector.(); @@ -20,14 +20,14 @@ package package_123 public var normal:Vector3D; - public var name_769:Vector3D; + public var §_-hC§:Vector3D; - public function name_770() + public function DaeVertex() { super(); } - public function method_933(data:Vector., dataIndex:int, stride:int, unitScaleFactor:Number) : void + public function addPosition(data:Vector., dataIndex:int, stride:int, unitScaleFactor:Number) : void { this.indices.push(dataIndex); var offset:int = stride * dataIndex; @@ -36,7 +36,7 @@ package package_123 this.z = data[int(offset + 2)] * unitScaleFactor; } - public function method_935(data:Vector., dataIndex:int, stride:int) : void + public function addNormal(data:Vector., dataIndex:int, stride:int) : void { this.indices.push(dataIndex); var offset:int = stride * dataIndex; @@ -46,7 +46,7 @@ package package_123 this.normal.z = data[offset]; } - public function method_932(tangentData:Vector., tangentDataIndex:int, tangentStride:int, biNormalData:Vector., biNormalDataIndex:int, biNormalStride:int) : void + public function addTangentBiDirection(tangentData:Vector., tangentDataIndex:int, tangentStride:int, biNormalData:Vector., biNormalDataIndex:int, biNormalStride:int) : void { this.indices.push(tangentDataIndex); this.indices.push(biNormalDataIndex); @@ -55,15 +55,15 @@ package package_123 var biNormalX:Number = biNormalData[int(biNormalOffset++)]; var biNormalY:Number = biNormalData[int(biNormalOffset++)]; var biNormalZ:Number = biNormalData[biNormalOffset]; - this.name_769 = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]); - var crossX:Number = this.normal.y * this.name_769.z - this.normal.z * this.name_769.y; - var crossY:Number = this.normal.z * this.name_769.x - this.normal.x * this.name_769.z; - var crossZ:Number = this.normal.x * this.name_769.y - this.normal.y * this.name_769.x; + this.§_-hC§ = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]); + var crossX:Number = this.normal.y * this.§_-hC§.z - this.normal.z * this.§_-hC§.y; + var crossY:Number = this.normal.z * this.§_-hC§.x - this.normal.x * this.§_-hC§.z; + var crossZ:Number = this.normal.x * this.§_-hC§.y - this.normal.y * this.§_-hC§.x; var dot:Number = crossX * biNormalX + crossY * biNormalY + crossZ * biNormalZ; - this.name_769.w = dot < 0 ? -1 : 1; + this.§_-hC§.w = dot < 0 ? -1 : 1; } - public function method_934(data:Vector., dataIndex:int, stride:int) : void + public function appendUV(data:Vector., dataIndex:int, stride:int) : void { this.indices.push(dataIndex); this.uvs.push(data[int(dataIndex * stride)]); diff --git a/src/package_123/name_744.as b/src/alternativa/engine3d/loaders/collada/DaeVertices.as similarity index 60% rename from src/package_123/name_744.as rename to src/alternativa/engine3d/loaders/collada/DaeVertices.as index 2c337c5..e4a2a0f 100644 --- a/src/package_123/name_744.as +++ b/src/alternativa/engine3d/loaders/collada/DaeVertices.as @@ -1,15 +1,15 @@ -package package_123 +package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; use namespace collada; - public class name_744 extends class_43 + public class DaeVertices extends DaeElement { - public var name_771:name_740; + public var §_-E6§:DaeSource; - public function name_744(data:XML, document:name_707) + public function DaeVertices(data:XML, document:DaeDocument) { super(data,document); } @@ -20,8 +20,8 @@ package package_123 inputXML = data.input.(@semantic == "POSITION")[0]; if(inputXML != null) { - this.name_771 = new name_784(inputXML,document).prepareSource(3); - if(this.name_771 != null) + this.§_-E6§ = new DaeInput(inputXML,document).prepareSource(3); + if(this.§_-E6§ != null) { return true; } diff --git a/src/alternativa/engine3d/loaders/collada/DaeVisualScene.as b/src/alternativa/engine3d/loaders/collada/DaeVisualScene.as new file mode 100644 index 0000000..ba2faa5 --- /dev/null +++ b/src/alternativa/engine3d/loaders/collada/DaeVisualScene.as @@ -0,0 +1,33 @@ +package alternativa.engine3d.loaders.collada +{ + use namespace collada; + + public class DaeVisualScene extends DaeElement + { + public var nodes:Vector.; + + public function DaeVisualScene(data:XML, document:DaeDocument) + { + super(data,document); + this.constructNodes(); + } + + public function constructNodes() : void + { + var node:DaeNode = null; + var nodesList:XMLList = data.node; + var count:int = int(nodesList.length()); + this.nodes = new Vector.(count); + for(var i:int = 0; i < count; i++) + { + node = new DaeNode(nodesList[i],document,this); + if(node.id != null) + { + document.nodes[node.id] = node; + } + this.nodes[i] = node; + } + } + } +} + diff --git a/src/package_123/collada.as b/src/alternativa/engine3d/loaders/collada/collada.as similarity index 62% rename from src/package_123/collada.as rename to src/alternativa/engine3d/loaders/collada/collada.as index ee705c6..dd91939 100644 --- a/src/package_123/collada.as +++ b/src/alternativa/engine3d/loaders/collada/collada.as @@ -1,4 +1,4 @@ -package package_123 +package alternativa.engine3d.loaders.collada { public namespace collada = "http://www.collada.org/2005/11/COLLADASchema"; } diff --git a/src/package_4/name_28.as b/src/alternativa/engine3d/materials/A3DUtils.as similarity index 77% rename from src/package_4/name_28.as rename to src/alternativa/engine3d/materials/A3DUtils.as index 279b120..942fc95 100644 --- a/src/package_4/name_28.as +++ b/src/alternativa/engine3d/materials/A3DUtils.as @@ -1,6 +1,8 @@ -package package_4 +package alternativa.engine3d.materials { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.materials.compiler.CommandType; + import alternativa.engine3d.materials.compiler.VariableType; import avmplus.getQualifiedSuperclassName; import flash.display3D.Context3D; import flash.display3D.Context3DTextureFormat; @@ -12,20 +14,18 @@ package package_4 import flash.utils.Dictionary; import flash.utils.Endian; import flash.utils.getDefinitionByName; - import package_30.name_115; - import package_30.name_168; use namespace alternativa3d; - public class name_28 + public class A3DUtils { private static var twoOperandsCommands:Dictionary; - private static const DXT1:ByteArray = method_88(); + private static const DXT1:ByteArray = getDXT1(); - private static const PVRTC:ByteArray = method_91(); + private static const PVRTC:ByteArray = getPVRTC(); - private static const ETC1:ByteArray = method_87(); + private static const ETC1:ByteArray = getETC1(); private static var programType:Vector. = Vector.(["VERTEX","FRAGMENT"]); @@ -41,33 +41,33 @@ package package_4 private static const O_CODE:uint = "o".charCodeAt(0); - public function name_28() + public function A3DUtils() { super(); } - private static function method_88() : ByteArray + private static function getDXT1() : ByteArray { var DXT1Data:Vector. = Vector.([65,84,70,0,2,71,2,2,2,3,0,0,12,0,0,0,16,0,0,85,105,56,0,0,0,0,0,157,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,1,0,0,0,129,188,4,0,1,0,0,0,2,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,66,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,10,87,77,80,72,79,84,79,0,25,0,192,122,0,0,0,1,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,224,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,16,0,0,85,105,56,0,0,0,0,0,157,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,1,0,0,0,129,188,4,0,1,0,0,0,2,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,66,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,10,87,77,80,72,79,84,79,0,25,0,192,122,0,0,0,1,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,224,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,114,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,12,0,0,0,16,0,0,85,105,56,0,0,0,0,0,157,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,1,0,0,0,129,188,4,0,1,0,0,0,2,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,66,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,10,87,77,80,72,79,84,79,0,25,0,192,122,0,0,0,1,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,224,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,114,0,7,143,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]); - return method_84(DXT1Data); + return getData(DXT1Data); } - private static function method_87() : ByteArray + private static function getETC1() : ByteArray { var ETC1Data:Vector. = Vector.([65,84,70,0,2,104,2,2,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,16,0,0,0,255,252,0,0,0,0,12,0,0,0,16,0,0,127,233,56,0,0,0,0,0,157,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,1,0,0,0,129,188,4,0,1,0,0,0,2,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,66,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,9,87,77,80,72,79,84,79,0,25,0,192,120,0,0,0,1,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,208,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,114,0,7,143,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,16,0,0,0,255,252,0,0,0,0,12,0,0,0,16,0,0,127,233,56,0,0,0,0,0,157,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,1,0,0,0,129,188,4,0,1,0,0,0,2,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,66,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,9,87,77,80,72,79,84,79,0,25,0,192,120,0,0,0,1,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,208 ,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,114,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,16,0,0,0,255,252,0,0,0,0,12,0,0,0,16,0,0,127,233,56,0,0,0,0,0,157,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,1,0,0,0,129,188,4,0,1,0,0,0,2,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,66,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,9,87,77,80,72,79,84,79,0,25,0,192,120,0,0,0,1,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,208,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,114,0,4,0]); - return method_84(ETC1Data); + return getData(ETC1Data); } - private static function method_91() : ByteArray + private static function getPVRTC() : ByteArray { var PVRTCData:Vector. = Vector.([65,84,70,0,2,173,2,2,2,3,0,0,0,0,0,0,0,0,13,0,0,0,16,0,0,0,104,190,153,255,0,0,0,0,15,91,0,0,16,0,0,102,12,228,2,255,225,0,0,0,0,0,223,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,2,0,0,0,129,188,4,0,1,0,0,0,4,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,132,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,9,87,77,80,72,79,84,79,0,25,0,192,120,0,1,0,3,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,165,192,0,7,227,99,186,53,197,40,185,134,182,32,130,98,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,192,120,64,6,16,34,52,192,196,65,132,90,98,68,16,17,68,60,91,8,48,76,35,192,97,132,71,76,33,164,97,1,2,194,12,19,8,240,29,132,24,38,17,224,48,194,35,166,16,210,48,128,128,24,68,121,132,52,204,32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,16,0,0,0,233,56,90,0,0,0,0,12,0,0,0,16,0,0,127,237,210,0,0,0,0,0,155,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,2,0,0,0,129,188,4,0 ,1,0,0,0,4,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,64,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,9,87,77,80,72,79,84,79,0,25,0,192,120,0,1,0,3,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,188,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,16,0,0,0,233,56,90,0,0,0,0,12,0,0,0,16,0,0,127,237,210,0,0,0,0,0,155,73,73,188,1,8,0,0,0,5,0,1,188,1,0,16,0,0,0,74,0,0,0,128,188,4,0,1,0,0,0,2,0,0,0,129,188,4,0,1,0,0,0,4,0,0,0,192,188,4,0,1,0,0,0,90,0,0,0,193,188,4,0,1,0,0,0,64,0,0,0,0,0,0,0,36,195,221,111,3,78,254,75,177,133,61,119,118,141,201,9,87,77,80,72,79,84,79,0,25,0,192,120,0,1,0,3,96,0,160,0,10,0,0,160,0,0,0,4,111,255,0,1,0,0,1,0,188,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,200,0,0,0,0,0,0,0,0,0,0]); - return method_84(PVRTCData); + return getData(PVRTCData); } - private static function method_84(source:Vector.) : ByteArray + private static function getData(source:Vector.) : ByteArray { var result:ByteArray = new ByteArray(); for(var i:int = 0,var length:int = int(source.length); i < length; i++) @@ -77,7 +77,7 @@ package package_4 return result; } - public static function method_96(byteArray:ByteArray, size:Point) : void + public static function getSizeFromATF(byteArray:ByteArray, size:Point) : void { byteArray.position = 7; var w:int = int(byteArray.readByte()); @@ -87,48 +87,48 @@ package package_4 byteArray.position = 0; } - public static function name_35(context3D:Context3D) : String + public static function getSupportedTextureFormat(context3D:Context3D) : String { var testTexture:Texture = context3D.createTexture(4,4,Context3DTextureFormat.COMPRESSED,false); - var result:String = name_6.NONE; + var result:String = TextureFormat.NONE; try { testTexture.uploadCompressedTextureFromByteArray(DXT1,0); - result = name_6.DXT1; + result = TextureFormat.DXT1; } catch(e:Error) { - result = name_6.NONE; + result = TextureFormat.NONE; } - if(result == name_6.NONE) + if(result == TextureFormat.NONE) { try { testTexture.uploadCompressedTextureFromByteArray(PVRTC,0); - result = name_6.PVRTC; + result = TextureFormat.PVRTC; } catch(e:Error) { - result = name_6.NONE; + result = TextureFormat.NONE; } } - if(result == name_6.NONE) + if(result == TextureFormat.NONE) { try { testTexture.uploadCompressedTextureFromByteArray(ETC1,0); - result = name_6.ETC1; + result = TextureFormat.ETC1; } catch(e:Error) { - result = name_6.NONE; + result = TextureFormat.NONE; } } testTexture.dispose(); return result; } - public static function method_92(vector:Vector.) : ByteArray + public static function vectorNumberToByteArray(vector:Vector.) : ByteArray { var result:ByteArray = new ByteArray(); result.endian = Endian.LITTLE_ENDIAN; @@ -140,7 +140,7 @@ package package_4 return result; } - public static function method_99(byteArray:ByteArray) : Vector. + public static function byteArrayToVectorUint(byteArray:ByteArray) : Vector. { var result:Vector. = new Vector.(); var length:uint = 0; @@ -153,7 +153,7 @@ package package_4 return result; } - public static function method_93(context:Context3D, byteArray:ByteArray, numVertices:uint, stride:uint = 3) : VertexBuffer3D + public static function createVertexBufferFromByteArray(context:Context3D, byteArray:ByteArray, numVertices:uint, stride:uint = 3) : VertexBuffer3D { if(context == null) { @@ -164,19 +164,19 @@ package package_4 return buffer; } - public static function method_100(context:Context3D, vector:Vector., numVertices:uint, stride:uint = 3) : VertexBuffer3D + public static function createVertexBufferFromVector(context:Context3D, vector:Vector., numVertices:uint, stride:uint = 3) : VertexBuffer3D { if(context == null) { throw new ReferenceError("context is not set"); } var buffer:VertexBuffer3D = context.createVertexBuffer(numVertices,stride); - var byteArray:ByteArray = name_28.method_92(vector); + var byteArray:ByteArray = A3DUtils.vectorNumberToByteArray(vector); buffer.uploadFromByteArray(byteArray,0,0,numVertices); return buffer; } - public static function method_94(context:Context3D, byteArray:ByteArray, width:Number, height:Number, format:String) : Texture + public static function createTextureFromByteArray(context:Context3D, byteArray:ByteArray, width:Number, height:Number, format:String) : Texture { if(context == null) { @@ -187,7 +187,7 @@ package package_4 return texture; } - public static function method_97(context:Context3D, byteArray:ByteArray, numIndices:uint) : IndexBuffer3D + public static function createIndexBufferFromByteArray(context:Context3D, byteArray:ByteArray, numIndices:uint) : IndexBuffer3D { if(context == null) { @@ -198,7 +198,7 @@ package package_4 return buffer; } - public static function method_95(context:Context3D, vector:Vector., numIndices:int = -1) : IndexBuffer3D + public static function createIndexBufferFromVector(context:Context3D, vector:Vector., numIndices:int = -1) : IndexBuffer3D { if(context == null) { @@ -218,7 +218,7 @@ package package_4 return buffer; } - public static function method_98(byteCode:ByteArray) : String + public static function disassemble(byteCode:ByteArray) : String { if(!twoOperandsCommands) { @@ -254,7 +254,7 @@ package package_4 pType = pType.substring(0,1).toLowerCase(); for(var lineNumber:uint = 1; byteCode.bytesAvailable - 24 >= 0; ) { - res += (lineNumber++).toString() + ": " + method_90(byteCode,pType) + "\n"; + res += (lineNumber++).toString() + ": " + getCommand(byteCode,pType) + "\n"; } if(byteCode.bytesAvailable > 0) { @@ -263,11 +263,11 @@ package package_4 return res; } - private static function method_90(byteCode:ByteArray, programType:String) : String + private static function getCommand(byteCode:ByteArray, programType:String) : String { var result:String = null; var cmd:uint = uint(byteCode.readUnsignedInt()); - var command:String = name_168.COMMAND_NAMES[cmd]; + var command:String = CommandType.COMMAND_NAMES[cmd]; var destNumber:uint = uint(byteCode.readUnsignedShort()); var swizzle:uint = uint(byteCode.readByte()); var s:String = ""; @@ -281,25 +281,25 @@ package package_4 s += (swizzle & 8) > 0 ? "w" : ""; destSwizzle = uint(s.length); } - var destType:String = name_115.TYPE_NAMES[byteCode.readUnsignedByte()].charAt(0); + var destType:String = VariableType.TYPE_NAMES[byteCode.readUnsignedByte()].charAt(0); if(destType.charCodeAt(0) == O_CODE) { - result = command + " " + method_83(destType,programType) + s + ", "; + result = command + " " + attachProgramPrefix(destType,programType) + s + ", "; } else { - result = command + " " + method_83(destType,programType) + destNumber.toString() + s + ", "; + result = command + " " + attachProgramPrefix(destType,programType) + destNumber.toString() + s + ", "; } - result += method_83(method_85(byteCode,destSwizzle),programType); + result += attachProgramPrefix(getSourceVariable(byteCode,destSwizzle),programType); if(Boolean(twoOperandsCommands[cmd])) { if(cmd == 40) { - result += ", " + method_83(method_86(byteCode),programType); + result += ", " + attachProgramPrefix(getSamplerVariable(byteCode),programType); } else { - result += ", " + method_83(method_85(byteCode,destSwizzle),programType); + result += ", " + attachProgramPrefix(getSourceVariable(byteCode,destSwizzle),programType); } } else @@ -309,7 +309,7 @@ package package_4 return result; } - private static function method_83(variable:String, programType:String) : String + private static function attachProgramPrefix(variable:String, programType:String) : String { var char:uint = uint(variable.charCodeAt(0)); if(char == "o".charCodeAt(0)) @@ -323,7 +323,7 @@ package package_4 return variable; } - private static function method_86(byteCode:ByteArray) : String + private static function getSamplerVariable(byteCode:ByteArray) : String { var number:uint = uint(byteCode.readUnsignedInt()); byteCode.readByte(); @@ -333,13 +333,13 @@ package package_4 return "s" + number.toString() + " <" + samplerDimension[dim] + ", " + samplerWraping[wraping] + ", " + samplerFilter[n >> 4 & 0x0F] + ", " + samplerMipmap[n & 0x0F] + ">"; } - private static function method_85(byteCode:ByteArray, destSwizzle:uint) : String + private static function getSourceVariable(byteCode:ByteArray, destSwizzle:uint) : String { var s1Number:uint = uint(byteCode.readUnsignedShort()); var offset:uint = uint(byteCode.readUnsignedByte()); - var s:String = method_89(byteCode.readUnsignedByte(),destSwizzle); - var s1Type:String = name_115.TYPE_NAMES[byteCode.readUnsignedByte()].charAt(0); - var indexType:String = name_115.TYPE_NAMES[byteCode.readUnsignedByte()].charAt(0); + var s:String = getSourceSwizzle(byteCode.readUnsignedByte(),destSwizzle); + var s1Type:String = VariableType.TYPE_NAMES[byteCode.readUnsignedByte()].charAt(0); + var indexType:String = VariableType.TYPE_NAMES[byteCode.readUnsignedByte()].charAt(0); var comp:String = swizzleType[byteCode.readUnsignedByte()]; if(byteCode.readUnsignedByte() > 0) { @@ -348,7 +348,7 @@ package package_4 return s1Type + s1Number.toString() + s; } - private static function method_89(swizzle:uint, destSwizzle:uint) : String + private static function getSourceSwizzle(swizzle:uint, destSwizzle:uint) : String { var s:String = ""; if(swizzle != 228) @@ -363,7 +363,7 @@ package package_4 return s; } - alternativa3d static function name_131(child:Class, parent:Class) : Boolean + alternativa3d static function checkParent(child:Class, parent:Class) : Boolean { var className:String = null; var current:Class = child; diff --git a/src/alternativa/engine3d/materials/FillMaterial.as b/src/alternativa/engine3d/materials/FillMaterial.as new file mode 100644 index 0000000..43de80b --- /dev/null +++ b/src/alternativa/engine3d/materials/FillMaterial.as @@ -0,0 +1,113 @@ +package alternativa.engine3d.materials +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.Geometry; + import flash.display3D.Context3DBlendFactor; + import flash.display3D.Context3DProgramType; + import flash.display3D.VertexBuffer3D; + import flash.utils.Dictionary; + + use namespace alternativa3d; + + public class FillMaterial extends Material + { + private static var outColorProcedure:Procedure = new Procedure(["#c0=cColor","mov o0, c0"],"outColorProcedure"); + + private static var _programs:Dictionary = new Dictionary(); + + public var alpha:Number = 1; + + private var red:Number; + + private var green:Number; + + private var blue:Number; + + public function FillMaterial(color:uint = 8355711, alpha:Number = 1) + { + super(); + this.color = color; + this.alpha = alpha; + alternativa3d::priority = 1; + } + + public function get color() : uint + { + return (this.red * 255 << 16) + (this.green * 255 << 8) + this.blue * 255; + } + + public function set color(value:uint) : void + { + this.red = (value >> 16 & 0xFF) / 255; + this.green = (value >> 8 & 0xFF) / 255; + this.blue = (value & 0xFF) / 255; + } + + private function final(object:Object3D) : ShaderProgram + { + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var positionVar:String = "aPosition"; + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); + fragmentLinker.addProcedure(outColorProcedure); + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); + } + + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + { + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + if(positionBuffer == null) + { + return; + } + var program:ShaderProgram = _programs[object.alternativa3d::transformProcedure]; + if(program == null) + { + program = this.final(object); + program.upload(camera.alternativa3d::context3D); + _programs[object.alternativa3d::transformProcedure] = program; + } + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cColor"),this.red,this.green,this.blue,this.alpha); + if(this.alpha < 1) + { + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT); + } + else + { + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); + } + } + + override public function clone() : Material + { + var res:FillMaterial = new FillMaterial(this.color,this.alpha); + res.clonePropertiesFrom(this); + return res; + } + } +} + diff --git a/src/package_4/name_11.as b/src/alternativa/engine3d/materials/FogMode.as similarity index 64% rename from src/package_4/name_11.as rename to src/alternativa/engine3d/materials/FogMode.as index 56c09b4..8c2e9a3 100644 --- a/src/package_4/name_11.as +++ b/src/alternativa/engine3d/materials/FogMode.as @@ -1,6 +1,6 @@ -package package_4 +package alternativa.engine3d.materials { - public class name_11 + public class FogMode { public static const DISABLED:int = 0; @@ -8,7 +8,7 @@ package package_4 public static const ADVANCED:int = 2; - public function name_11() + public function FogMode() { super(); } diff --git a/src/alternativa/engine3d/materials/Material.as b/src/alternativa/engine3d/materials/Material.as new file mode 100644 index 0000000..0457634 --- /dev/null +++ b/src/alternativa/engine3d/materials/Material.as @@ -0,0 +1,85 @@ +package alternativa.engine3d.materials +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Resource; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.Geometry; + import flash.utils.Dictionary; + + use namespace alternativa3d; + + public class Material + { + alternativa3d static const _projectProcedure:Procedure = getPojectProcedure(); + + public var name:String; + + alternativa3d var priority:int = 0; + + public function Material() + { + super(); + } + + private static function getPojectProcedure() : Procedure + { + var res:Procedure = new Procedure(["m44 o0, i0, c0"],"projectProcedure"); + res.assignVariableName(VariableType.CONSTANT,0,"cProjMatrix",4); + return res; + } + + alternativa3d function get canDrawInShadowMap() : Boolean + { + return true; + } + + alternativa3d function appendPositionTransformProcedure(transformProcedure:Procedure, vertexShader:Linker) : String + { + vertexShader.declareVariable("tTransformedPosition"); + vertexShader.addProcedure(transformProcedure); + vertexShader.setInputParams(transformProcedure,"aPosition"); + vertexShader.setOutputParams(transformProcedure,"tTransformedPosition"); + return "tTransformedPosition"; + } + + public function getResources(resourceType:Class = null) : Vector. + { + var key:* = undefined; + var res:Vector. = new Vector.(); + var dict:Dictionary = new Dictionary(); + var count:int = 0; + this.alternativa3d::fillResources(dict,resourceType); + for(key in dict) + { + var _loc8_:* = count++; + res[_loc8_] = key as Resource; + } + return res; + } + + alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void + { + } + + alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + { + } + + public function clone() : Material + { + var res:Material = new Material(); + res.clonePropertiesFrom(this); + return res; + } + + protected function clonePropertiesFrom(source:Material) : void + { + } + } +} + diff --git a/src/package_4/name_204.as b/src/alternativa/engine3d/materials/NormalMapSpace.as similarity index 63% rename from src/package_4/name_204.as rename to src/alternativa/engine3d/materials/NormalMapSpace.as index 3b448b6..1a868b4 100644 --- a/src/package_4/name_204.as +++ b/src/alternativa/engine3d/materials/NormalMapSpace.as @@ -1,6 +1,6 @@ -package package_4 +package alternativa.engine3d.materials { - public class name_204 + public class NormalMapSpace { public static const TANGENT_RIGHT_HANDED:int = 0; @@ -8,7 +8,7 @@ package package_4 public static const OBJECT:int = 2; - public function name_204() + public function NormalMapSpace() { super(); } diff --git a/src/package_4/name_127.as b/src/alternativa/engine3d/materials/ShaderProgram.as similarity index 65% rename from src/package_4/name_127.as rename to src/alternativa/engine3d/materials/ShaderProgram.as index f78ce32..cdb8786 100644 --- a/src/package_4/name_127.as +++ b/src/alternativa/engine3d/materials/ShaderProgram.as @@ -1,18 +1,18 @@ -package package_4 +package alternativa.engine3d.materials { + import alternativa.engine3d.materials.compiler.Linker; import flash.display3D.Context3D; import flash.display3D.Program3D; - import package_30.name_121; - public class name_127 + public class ShaderProgram { public var program:Program3D; - public var vertexShader:name_121; + public var vertexShader:Linker; - public var fragmentShader:name_121; + public var fragmentShader:Linker; - public function name_127(vertexShader:name_121, fragmentShader:name_121) + public function ShaderProgram(vertexShader:Linker, fragmentShader:Linker) { super(); this.vertexShader = vertexShader; @@ -30,11 +30,11 @@ package package_4 this.program = context3D.createProgram(); try { - this.program.upload(this.vertexShader.name_206(),this.fragmentShader.name_206()); + this.program.upload(this.vertexShader.getByteCode(),this.fragmentShader.getByteCode()); } catch(e:Error) { - trace(name_28.method_98(fragmentShader.name_206())); + trace(A3DUtils.disassemble(fragmentShader.getByteCode())); throw e; } } diff --git a/src/alternativa/engine3d/materials/StandardMaterial.as b/src/alternativa/engine3d/materials/StandardMaterial.as new file mode 100644 index 0000000..ba4a458 --- /dev/null +++ b/src/alternativa/engine3d/materials/StandardMaterial.as @@ -0,0 +1,590 @@ +package alternativa.engine3d.materials +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.lights.OmniLight; + import alternativa.engine3d.lights.SpotLight; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; + import flash.display.BitmapData; + import flash.display3D.Context3DBlendFactor; + import flash.display3D.Context3DProgramType; + import flash.display3D.VertexBuffer3D; + import flash.utils.Dictionary; + import flash.utils.getDefinitionByName; + import flash.utils.getQualifiedClassName; + + use namespace alternativa3d; + + public class StandardMaterial extends TextureMaterial + { + alternativa3d static var fogTexture:TextureResource; + + alternativa3d static const DISABLED:int = 0; + + alternativa3d static const SIMPLE:int = 1; + + alternativa3d static const ADVANCED:int = 2; + + alternativa3d static var fogMode:int = alternativa3d::DISABLED; + + alternativa3d static var fogNear:Number = 1000; + + alternativa3d static var fogFar:Number = 5000; + + alternativa3d static var fogMaxDensity:Number = 1; + + alternativa3d static var fogColorR:Number = 200 / 255; + + alternativa3d static var fogColorG:Number = 162 / 255; + + alternativa3d static var fogColorB:Number = 200 / 255; + + private static const _programs:Dictionary = new Dictionary(); + + private static const _lightFragmentProcedures:Dictionary = new Dictionary(); + + private static const _passVaryingsProcedure:Procedure = new Procedure(["#v0=vPosition","#v1=vViewVector","#c0=cCameraPosition","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"]); + + private static const _passTBNRightProcedure:Procedure = getPassTBNProcedure(true); + + private static const _passTBNLeftProcedure:Procedure = getPassTBNProcedure(false); + + private static const _ambientLightProcedure:Procedure = new Procedure(["#c0=cSurface","mov o0, i0","mov o1, c0.xxxx"],"ambientLightProcedure"); + + private static const _setGlossinessFromConstantProcedure:Procedure = new Procedure(["#c0=cSurface","mov o0.w, c0.y"],"setGlossinessFromConstantProcedure"); + + private static const _setGlossinessFromTextureProcedure:Procedure = new Procedure(["#v0=vUV","#c0=cSurface","#s0=sGlossiness","tex t0, v0, s0 <2d, repeat, linear, miplinear>","mul o0.w, t0.x, c0.y"],"setGlossinessFromTextureProcedure"); + + private static const _getNormalAndViewTangentProcedure:Procedure = new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz","nrm o1.xyz, v4"],"getNormalAndViewTangentProcedure"); + + private static const _getNormalAndViewObjectProcedure:Procedure = new Procedure(["#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm o0.xyz, t0.xyz","nrm o1.xyz, v4"],"getNormalAndViewObjectProcedure"); + + private static const _applySpecularProcedure:Procedure = new Procedure(["#v0=vUV","#s0=sSpecular","tex t0, v0, s0 <2d, repeat,linear,miplinear>","mul o0.xyz, o0.xyz, t0.xyz"],"applySpecularProcedure"); + + private static const _mulLightingProcedure:Procedure = new Procedure(["#s0=sTexture","#v0=vUV","#c0=cSurface","tex t0, v0, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t0.xyz, i0.xyz","mul t1.xyz, i1.xyz, c0.z","add t0.xyz, t0.xyz, t1.xyz","mov o0, t0"],"mulLightingProcedure"); + + private static const passSimpleFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + + private static const outputWithSimpleFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); + + private static const postPassAdvancedFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + + private static const outputWithAdvancedFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); + + alternativa3d var §_-ES§:Boolean = false; + + alternativa3d var outputAlpha:Procedure = new Procedure(["#c0=cSurface","mov i0.w, c0.w","mov o0, i0"],"outputAlpha"); + + alternativa3d var outputDiffuseAlpha:Procedure = new Procedure(["#c0=cSurface","mul i0.w, i0.w, c0.w","mov o0, i0"],"outputDiffuseAlpha"); + + alternativa3d var outputOpacity:Procedure = new Procedure(["#c0=cSurface","#s0=sOpacity","#v0=vUV","tex t0, v0, s0 <2d, repeat,linear,miplinear>","mul i0.w, t0.x, c0.w","mov o0, i0"],"outputOpacity"); + + public var normalMap:TextureResource; + + private var §_-NH§:int = 0; + + public var specularMap:TextureResource; + + public var glossinessMap:TextureResource; + + public var glossiness:Number = 100; + + public var §_-kj§:Number = 1; + + public function StandardMaterial(diffuseMap:TextureResource, normalMap:TextureResource, specularMap:TextureResource = null, glossinessMap:TextureResource = null, opacityMap:TextureResource = null) + { + super(diffuseMap); + this.normalMap = normalMap; + this.specularMap = specularMap; + this.glossinessMap = glossinessMap; + this.opacityMap = opacityMap; + } + + private static function getPassTBNProcedure(right:Boolean) : Procedure + { + var crsInSpace:String = right ? "crs t1.xyz, i0, i1" : "crs t1.xyz, i1, i0"; + return new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure"); + } + + public function get normalMapSpace() : int + { + return this.§_-NH§; + } + + public function set normalMapSpace(value:int) : void + { + if(value != NormalMapSpace.TANGENT_RIGHT_HANDED && value != NormalMapSpace.TANGENT_LEFT_HANDED && value != NormalMapSpace.OBJECT) + { + throw new ArgumentError("Value must be a constant from the NormalMapSpace class"); + } + this.§_-NH§ = value; + } + + alternativa3d function getPassUVProcedure() : Procedure + { + return alternativa3d::_passUVProcedure; + } + + alternativa3d function setPassUVProcedureConstants(destination:DrawUnit, vertexLinker:Linker) : void + { + } + + private function final(object:Object3D, lights:Vector., directional:DirectionalLight, lightsLength:int) : ShaderProgram + { + var i:int = 0; + var outputProcedure:Procedure = null; + var procedure:Procedure = null; + var nrmProcedure:Procedure = null; + var shadowProc:Procedure = null; + var dirMulShadowProcedure:Procedure = null; + var light:Light3D = null; + var lightFragmentProcedure:Procedure = null; + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); + fragmentLinker.declareVariable("tTotalLight"); + fragmentLinker.declareVariable("tTotalHighLight"); + fragmentLinker.declareVariable("tNormal"); + fragmentLinker.declareVariable("cAmbientColor",VariableType.CONSTANT); + fragmentLinker.addProcedure(_ambientLightProcedure); + fragmentLinker.setInputParams(_ambientLightProcedure,"cAmbientColor"); + fragmentLinker.setOutputParams(_ambientLightProcedure,"tTotalLight","tTotalHighLight"); + var positionVar:String = "aPosition"; + var normalVar:String = "aNormal"; + var tangentVar:String = "aTangent"; + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); + vertexLinker.declareVariable(tangentVar,VariableType.ATTRIBUTE); + vertexLinker.declareVariable(normalVar,VariableType.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(this.alternativa3d::getPassUVProcedure()); + if(this.glossinessMap != null) + { + fragmentLinker.addProcedure(_setGlossinessFromTextureProcedure); + fragmentLinker.setOutputParams(_setGlossinessFromTextureProcedure,"tTotalHighLight"); + } + else + { + fragmentLinker.addProcedure(_setGlossinessFromConstantProcedure); + fragmentLinker.setOutputParams(_setGlossinessFromConstantProcedure,"tTotalHighLight"); + } + if(lightsLength > 0) + { + if(object.alternativa3d::deltaTransformProcedure != null) + { + vertexLinker.declareVariable("tTransformedNormal"); + procedure = object.alternativa3d::deltaTransformProcedure.newInstance(); + vertexLinker.addProcedure(procedure); + vertexLinker.setInputParams(procedure,normalVar); + vertexLinker.setOutputParams(procedure,"tTransformedNormal"); + normalVar = "tTransformedNormal"; + vertexLinker.declareVariable("tTransformedTangent"); + procedure = object.alternativa3d::deltaTransformProcedure.newInstance(); + vertexLinker.addProcedure(procedure); + vertexLinker.setInputParams(procedure,tangentVar); + vertexLinker.setOutputParams(procedure,"tTransformedTangent"); + tangentVar = "tTransformedTangent"; + } + vertexLinker.addProcedure(_passVaryingsProcedure); + vertexLinker.setInputParams(_passVaryingsProcedure,positionVar); + fragmentLinker.declareVariable("tViewVector"); + if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + { + nrmProcedure = this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; + vertexLinker.addProcedure(nrmProcedure); + vertexLinker.setInputParams(nrmProcedure,tangentVar,normalVar); + fragmentLinker.addProcedure(_getNormalAndViewTangentProcedure); + fragmentLinker.setOutputParams(_getNormalAndViewTangentProcedure,"tNormal","tViewVector"); + } + else + { + fragmentLinker.addProcedure(_getNormalAndViewObjectProcedure); + fragmentLinker.setOutputParams(_getNormalAndViewObjectProcedure,"tNormal","tViewVector"); + } + if(directional != null) + { + vertexLinker.addProcedure(directional.shadow.getVShader()); + shadowProc = directional.shadow.getFShader(); + fragmentLinker.addProcedure(shadowProc); + fragmentLinker.setOutputParams(shadowProc,"tTotalLight"); + dirMulShadowProcedure = _lightFragmentProcedures[directional.shadow]; + if(dirMulShadowProcedure == null) + { + dirMulShadowProcedure = new Procedure(); + this.formDirectionalProcedure(dirMulShadowProcedure,directional,true); + } + fragmentLinker.addProcedure(dirMulShadowProcedure); + fragmentLinker.setInputParams(dirMulShadowProcedure,"tNormal","tViewVector","tTotalLight","cAmbientColor"); + fragmentLinker.setOutputParams(dirMulShadowProcedure,"tTotalLight","tTotalHighLight"); + } + for(i = 0; i < lightsLength; ) + { + light = lights[i]; + if(light != directional) + { + lightFragmentProcedure = _lightFragmentProcedures[light]; + if(lightFragmentProcedure == null) + { + lightFragmentProcedure = new Procedure(); + lightFragmentProcedure.name = "light" + i.toString(); + if(light is DirectionalLight) + { + this.formDirectionalProcedure(lightFragmentProcedure,light,false); + lightFragmentProcedure.name += "Directional"; + } + else if(light is OmniLight) + { + lightFragmentProcedure.compileFromArray(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, o1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx","mul t1.xyz, t0.xyz, t1.w","add o1.xyz, o1.xyz, t1.xyz","mul t0.xyz, t0.xyz, t0.www","add o0.xyz, o0.xyz, t0.xyz"]); + lightFragmentProcedure.name += "Omni"; + } + else if(light is SpotLight) + { + lightFragmentProcedure.compileFromArray(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#c3=c" + light.alternativa3d::_-oG + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x, t0, i0.xyz","sqt t0.w, t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); + lightFragmentProcedure.name += "Spot"; + } + } + fragmentLinker.addProcedure(lightFragmentProcedure); + fragmentLinker.setInputParams(lightFragmentProcedure,"tNormal","tViewVector"); + fragmentLinker.setOutputParams(lightFragmentProcedure,"tTotalLight","tTotalHighLight"); + } + i++; + } + } + if(this.specularMap != null) + { + fragmentLinker.addProcedure(_applySpecularProcedure); + fragmentLinker.setOutputParams(_applySpecularProcedure,"tTotalHighLight"); + outputProcedure = _applySpecularProcedure; + } + fragmentLinker.declareVariable("outColor"); + fragmentLinker.addProcedure(_mulLightingProcedure); + fragmentLinker.setInputParams(_mulLightingProcedure,"tTotalLight","tTotalHighLight"); + fragmentLinker.setOutputParams(_mulLightingProcedure,"outColor"); + if(§_-L4§) + { + fragmentLinker.addProcedure(this.alternativa3d::outputDiffuseAlpha); + fragmentLinker.setInputParams(this.alternativa3d::outputDiffuseAlpha,"outColor"); + outputProcedure = this.alternativa3d::outputDiffuseAlpha; + } + else if(opacityMap != null) + { + fragmentLinker.addProcedure(this.alternativa3d::outputOpacity); + fragmentLinker.setInputParams(this.alternativa3d::outputOpacity,"outColor"); + outputProcedure = this.alternativa3d::outputOpacity; + } + else + { + fragmentLinker.addProcedure(this.alternativa3d::outputAlpha); + fragmentLinker.setInputParams(this.alternativa3d::outputAlpha,"outColor"); + outputProcedure = this.alternativa3d::outputAlpha; + } + if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED) + { + fragmentLinker.setOutputParams(outputProcedure,"outColor"); + } + if(alternativa3d::fogMode == alternativa3d::SIMPLE) + { + vertexLinker.addProcedure(passSimpleFogConstProcedure); + vertexLinker.setInputParams(passSimpleFogConstProcedure,positionVar); + fragmentLinker.addProcedure(outputWithSimpleFogProcedure); + fragmentLinker.setInputParams(outputWithSimpleFogProcedure,"outColor"); + } + else if(alternativa3d::fogMode == alternativa3d::ADVANCED) + { + vertexLinker.declareVariable("tProjected"); + vertexLinker.setOutputParams(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.addProcedure(postPassAdvancedFogConstProcedure); + vertexLinker.setInputParams(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); + fragmentLinker.addProcedure(outputWithAdvancedFogProcedure); + fragmentLinker.setInputParams(outputWithAdvancedFogProcedure,"outColor"); + } + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); + } + + private function formDirectionalProcedure(procedure:Procedure, light:Light3D, useShadow:Boolean) : void + { + var source:Array = ["#c0=c" + light.alternativa3d::_-oG + "Direction","#c1=c" + light.alternativa3d::_-oG + "Color","add t0.xyz, i1.xyz, c0.xyz","mov t0.w, c0.w","nrm t0.xyz,t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, o1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x"]; + if(useShadow) + { + source.push("mul t0.x, t0.x, i2.x"); + source.push("mul t0.xyz, c1.xyz, t0.xxx"); + source.push("mov o0.xyz, t0.xyz"); + source.push("add o0.xyz, o0.xyz, i3.xyz"); + source.push("mul t0.w, i2.x, t0.w"); + source.push("mul o1.xyz, c1.xyz, t0.www"); + } + else + { + source.push("mul t0.xyz, c1.xyz, t0.xxxx"); + source.push("add o0, o0, t0.xyz"); + source.push("mul t0.xyz, c1.xyz, t0.w"); + source.push("add o1.xyz, o1.xyz, t0.xyz"); + } + procedure.compileFromArray(source); + } + + override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void + { + super.alternativa3d::fillResources(resources,resourceType); + if(this.normalMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + { + resources[this.normalMap] = true; + } + if(opacityMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(opacityMap)) as Class,resourceType))) + { + resources[opacityMap] = true; + } + if(this.glossinessMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.glossinessMap)) as Class,resourceType))) + { + resources[this.glossinessMap] = true; + } + if(this.specularMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.specularMap)) as Class,resourceType))) + { + resources[this.specularMap] = true; + } + } + + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + { + var program:ShaderProgram = null; + var i:int = 0; + var light:Light3D = null; + var directional:DirectionalLight = null; + var camTransform:Transform3D = null; + var transform:Transform3D = null; + var rScale:Number = NaN; + var len:Number = NaN; + var omni:OmniLight = null; + var spot:SpotLight = null; + var falloff:Number = NaN; + var hotspot:Number = NaN; + var lm:Transform3D = null; + var dist:Number = NaN; + var cLocal:Transform3D = null; + var halfW:Number = NaN; + var leftX:Number = NaN; + var leftY:Number = NaN; + var rightX:Number = NaN; + var rightY:Number = NaN; + var angle:Number = NaN; + var dx:Number = NaN; + var dy:Number = NaN; + var lens:Number = NaN; + var uScale:Number = NaN; + var uRight:Number = NaN; + var bmd:BitmapData = null; + if(diffuseMap == null || this.normalMap == null || diffuseMap.alternativa3d::_texture == null || this.normalMap.alternativa3d::_texture == null) + { + return; + } + if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + { + return; + } + if(this.glossinessMap != null && this.glossinessMap.alternativa3d::_texture == null) + { + return; + } + if(this.specularMap != null && this.specularMap.alternativa3d::_texture == null) + { + return; + } + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.NORMAL); + var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TANGENT4); + if(positionBuffer == null || uvBuffer == null) + { + return; + } + var key:String = alternativa3d::fogMode.toString() + this.§_-NH§.toString() + (this.glossinessMap != null ? "G" : "g") + (opacityMap != null ? "O" : "o") + (this.specularMap != null ? "S" : "s") + (§_-L4§ ? "D" : "d"); + for(i = 0; i < lightsLength; i++) + { + light = lights[i]; + if(light is DirectionalLight && directional == null && DirectionalLight(light).shadow != null) + { + directional = DirectionalLight(light); + key += "S"; + } + key += light.alternativa3d::_-oG; + } + var programs:Dictionary = _programs[object.alternativa3d::transformProcedure]; + if(programs == null) + { + programs = new Dictionary(false); + _programs[object.alternativa3d::transformProcedure] = programs; + program = this.final(object,lights,directional,lightsLength); + program.upload(camera.alternativa3d::context3D); + programs[key] = program; + } + else + { + program = programs[key]; + if(program == null) + { + program = this.final(object,lights,directional,lightsLength); + program.upload(camera.alternativa3d::context3D); + programs[key] = program; + } + } + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cAmbientColor"),camera.alternativa3d::ambient,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.§_-kj§,alpha); + if(lightsLength > 0) + { + if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + { + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]); + } + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sBump"),this.normalMap.alternativa3d::_texture); + camTransform = object.alternativa3d::cameraToLocalTransform; + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cCameraPosition"),camTransform.d,camTransform.h,camTransform.l); + for(i = 0; i < lightsLength; ) + { + light = lights[i]; + if(light is DirectionalLight) + { + transform = light.alternativa3d::_-cl; + len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + else if(light is OmniLight) + { + omni = light as OmniLight; + transform = light.alternativa3d::_-cl; + rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); + rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); + rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); + rScale /= 3; + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + else if(light is SpotLight) + { + spot = light as SpotLight; + transform = light.alternativa3d::_-cl; + rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); + rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); + rScale += len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); + rScale /= 3; + falloff = Number(Math.cos(spot.falloff * 0.5)); + hotspot = Number(Math.cos(spot.hotspot * 0.5)); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),spot.attenuationEnd * rScale - spot.attenuationBegin * rScale,spot.attenuationBegin * rScale,hotspot == falloff ? 0.000001 : hotspot - falloff,falloff); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + if(directional != null) + { + directional.shadow.applyShader(drawUnit,program,object,camera); + } + i++; + } + } + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture); + if(!§_-L4§ && opacityMap != null) + { + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture); + } + if(this.glossinessMap != null) + { + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sGlossiness"),this.glossinessMap.alternativa3d::_texture); + } + if(this.specularMap != null) + { + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sSpecular"),this.specularMap.alternativa3d::_texture); + } + this.alternativa3d::setPassUVProcedureConstants(drawUnit,program.vertexShader); + if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED) + { + lm = object.alternativa3d::localToCameraTransform; + dist = alternativa3d::fogFar - alternativa3d::fogNear; + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - alternativa3d::fogNear) / dist); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogRange"),alternativa3d::fogMaxDensity,1,0,1 - alternativa3d::fogMaxDensity); + } + if(alternativa3d::fogMode == alternativa3d::SIMPLE) + { + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB); + } + if(alternativa3d::fogMode == alternativa3d::ADVANCED) + { + if(alternativa3d::fogTexture == null) + { + bmd = new BitmapData(32,1,false,16711680); + for(i = 0; i < 32; i++) + { + bmd.setPixel(i,0,i / 32 * 255 << 16); + } + alternativa3d::fogTexture = new BitmapTextureResource(bmd); + alternativa3d::fogTexture.upload(camera.alternativa3d::context3D); + } + cLocal = camera.alternativa3d::localToGlobalTransform; + halfW = camera.view.width / 2; + leftX = -halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; + leftY = -halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; + rightX = halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; + rightY = halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; + angle = Math.atan2(leftY,leftX) - Math.PI / 2; + if(angle < 0) + { + angle += Math.PI * 2; + } + dx = rightX - leftX; + dy = rightY - leftY; + lens = Number(Math.sqrt(dx * dx + dy * dy)); + leftX /= lens; + leftY /= lens; + rightX /= lens; + rightY /= lens; + uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; + uRight = angle / Math.PI / 2; + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),alternativa3d::fogTexture.alternativa3d::_texture); + } + if(this.alternativa3d::_-ES) + { + if(drawUnit.alternativa3d::object == null) + { + throw new Error(""); + } + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); + } + else if(§_-L4§ || opacityMap != null || alpha < 1) + { + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT); + } + else + { + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); + } + } + } +} + diff --git a/src/package_4/name_6.as b/src/alternativa/engine3d/materials/TextureFormat.as similarity index 69% rename from src/package_4/name_6.as rename to src/alternativa/engine3d/materials/TextureFormat.as index f311c54..41cb01e 100644 --- a/src/package_4/name_6.as +++ b/src/alternativa/engine3d/materials/TextureFormat.as @@ -1,6 +1,6 @@ -package package_4 +package alternativa.engine3d.materials { - public class name_6 + public class TextureFormat { public static const NONE:String = "atf_none"; @@ -10,7 +10,7 @@ package package_4 public static const PVRTC:String = "atf_pvrtc"; - public function name_6() + public function TextureFormat() { super(); } diff --git a/src/alternativa/engine3d/materials/TextureMaterial.as b/src/alternativa/engine3d/materials/TextureMaterial.as new file mode 100644 index 0000000..3c95e1a --- /dev/null +++ b/src/alternativa/engine3d/materials/TextureMaterial.as @@ -0,0 +1,163 @@ +package alternativa.engine3d.materials +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; + import avmplus.getQualifiedClassName; + import flash.display3D.Context3DBlendFactor; + import flash.display3D.Context3DProgramType; + import flash.display3D.VertexBuffer3D; + import flash.utils.Dictionary; + import flash.utils.getDefinitionByName; + + use namespace alternativa3d; + + public class TextureMaterial extends Material + { + alternativa3d static const _samplerSetProcedure:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","mov t0.w, c0.w","mov o0, t0"],"samplerSetProcedure"); + + alternativa3d static const _samplerSetProcedureOpacity:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","tex t1, v0, s1 <2d, linear,repeat, miplinear>","mov t0.w, t1.x","mul t0.w, t0.w, c0.w","mov o0, t0"],"samplerSetProcedureOpacity"); + + alternativa3d static const _samplerSetProcedureDiffuseAlpha:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","mul t0.w, t0.w, c0.w","mov o0, t0"],"samplerSetProcedureDiffuseAlpha"); + + alternativa3d static const _passUVProcedure:Procedure = new Procedure(["#v0=vUV","#a0=aUV","mov v0, a0"],"passUVProcedure"); + + private static var _programs:Dictionary = new Dictionary(); + + public var diffuseMap:TextureResource; + + public var opacityMap:TextureResource; + + public var alpha:Number = 1; + + public var §_-L4§:Boolean = false; + + public function TextureMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1) + { + super(); + this.diffuseMap = diffuseMap; + this.opacityMap = opacityMap; + this.alpha = alpha; + } + + override alternativa3d function get canDrawInShadowMap() : Boolean + { + return !this.§_-L4§ && this.opacityMap == null; + } + + override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void + { + super.alternativa3d::fillResources(resources,resourceType); + if(this.diffuseMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) + { + resources[this.diffuseMap] = true; + } + if(this.opacityMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) + { + resources[this.opacityMap] = true; + } + } + + private function final(object:Object3D) : ShaderProgram + { + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var positionVar:String = "aPosition"; + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(alternativa3d::_passUVProcedure); + var outProcedure:Procedure = this.§_-L4§ ? alternativa3d::_samplerSetProcedureDiffuseAlpha : (this.opacityMap != null ? alternativa3d::_samplerSetProcedureOpacity : alternativa3d::_samplerSetProcedure); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); + fragmentLinker.addProcedure(outProcedure); + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); + } + + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + { + var program:ShaderProgram = null; + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var key:int = this.§_-L4§ ? 2 : (this.opacityMap != null ? 1 : 0); + var optionsPrograms:Vector. = _programs[object.alternativa3d::transformProcedure]; + if(optionsPrograms == null) + { + optionsPrograms = new Vector.(3,true); + _programs[object.alternativa3d::transformProcedure] = optionsPrograms; + program = this.final(object); + program.upload(camera.alternativa3d::context3D); + optionsPrograms[key] = program; + } + else + { + program = optionsPrograms[key]; + if(program == null) + { + program = this.final(object); + program.upload(camera.alternativa3d::context3D); + optionsPrograms[key] = program; + } + } + if(positionBuffer == null || uvBuffer == null || this.diffuseMap == null || this.diffuseMap.alternativa3d::_texture == null) + { + return; + } + if(!this.§_-L4§ && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) + { + return; + } + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAlpha"),0,0,0,this.alpha); + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.diffuseMap.alternativa3d::_texture); + if(!this.§_-L4§ && this.opacityMap != null) + { + drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),this.opacityMap.alternativa3d::_texture); + } + if(this.§_-L4§ || this.opacityMap != null || this.alpha < 1) + { + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT); + } + else + { + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); + } + } + + override public function clone() : Material + { + var res:TextureMaterial = new TextureMaterial(null,null,this.alpha); + res.clonePropertiesFrom(this); + return res; + } + + override protected function clonePropertiesFrom(source:Material) : void + { + super.clonePropertiesFrom(source); + var t:TextureMaterial = source as TextureMaterial; + this.diffuseMap = t.diffuseMap; + this.opacityMap = t.opacityMap; + } + } +} + diff --git a/src/package_30/name_168.as b/src/alternativa/engine3d/materials/compiler/CommandType.as similarity index 90% rename from src/package_30/name_168.as rename to src/alternativa/engine3d/materials/compiler/CommandType.as index 8bd416e..5accef6 100644 --- a/src/package_30/name_168.as +++ b/src/alternativa/engine3d/materials/compiler/CommandType.as @@ -1,6 +1,6 @@ -package package_30 +package alternativa.engine3d.materials.compiler { - public class name_168 + public class CommandType { public static const MOV:uint = 0; @@ -68,7 +68,7 @@ package package_30 public static const COMMAND_NAMES:Vector. = Vector.(["mov","add","sub","mul","div","rcp","min","max","frc","sqt","rsq","pow","log","exp","nrm","sin","cos","crs","dp3","dp4","abs","neg","sat","m33","m44","m34","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","kil","tex","sge","slt"]); - public function name_168() + public function CommandType() { super(); } diff --git a/src/package_30/name_440.as b/src/alternativa/engine3d/materials/compiler/DestinationVariable.as similarity index 76% rename from src/package_30/name_440.as rename to src/alternativa/engine3d/materials/compiler/DestinationVariable.as index a4f8970..0d71fce 100644 --- a/src/package_30/name_440.as +++ b/src/alternativa/engine3d/materials/compiler/DestinationVariable.as @@ -1,10 +1,10 @@ -package package_30 +package alternativa.engine3d.materials.compiler { import flash.utils.ByteArray; - public class name_440 extends name_434 + public class DestinationVariable extends Variable { - public function name_440(source:String) + public function DestinationVariable(source:String) { var regmask:uint = 0; var cv:int = 0; @@ -33,23 +33,23 @@ package package_30 { regmask = 15; } - name_438 = regmask << 16 | index; + §_-0J§ = regmask << 16 | index; switch(strType) { case "t": - name_438 |= 33554432; + §_-0J§ |= 33554432; type = 2; break; case "o": - name_438 |= 50331648; + §_-0J§ |= 50331648; type = 3; break; case "v": - name_438 |= 67108864; + §_-0J§ |= 67108864; type = 4; break; case "i": - name_438 |= 100663296; + §_-0J§ |= 100663296; type = 6; break; default: @@ -60,7 +60,7 @@ package package_30 override public function writeToByteArray(byteCode:ByteArray, newIndex:int, newType:int) : void { byteCode.position = position; - byteCode.writeUnsignedInt(name_438 & ~0x0F00FFFF | newIndex | newType << 24); + byteCode.writeUnsignedInt(§_-0J§ & ~0x0F00FFFF | newIndex | newType << 24); } } } diff --git a/src/package_30/name_121.as b/src/alternativa/engine3d/materials/compiler/Linker.as similarity index 50% rename from src/package_30/name_121.as rename to src/alternativa/engine3d/materials/compiler/Linker.as index 8c03aac..727599c 100644 --- a/src/package_30/name_121.as +++ b/src/alternativa/engine3d/materials/compiler/Linker.as @@ -1,4 +1,4 @@ -package package_30 +package alternativa.engine3d.materials.compiler { import alternativa.engine3d.alternativa3d; import flash.display3D.Context3DProgramType; @@ -8,89 +8,89 @@ package package_30 use namespace alternativa3d; - public class name_121 + public class Linker { - public var var_177:int = 0; + public var §_-RT§:int = 0; - public var var_176:int = 0; + public var §_-A§:int = 0; public var type:String; - private var var_128:Vector. = new Vector.(); + private var §_-2L§:Vector. = new Vector.(); - private var var_174:ByteArray = new ByteArray(); + private var §_-RU§:ByteArray = new ByteArray(); - private var var_175:Boolean; + private var §_-8Z§:Boolean; - alternativa3d var var_173:Object; + alternativa3d var §_-3r§:Object; - private var var_180:Object = new Object(); + private var §_-c§:Object = new Object(); - private var var_178:name_121; + private var §_-T1§:Linker; - private var var_181:Dictionary = new Dictionary(); + private var §_-W8§:Dictionary = new Dictionary(); - private var var_179:Dictionary = new Dictionary(); + private var §_-f-§:Dictionary = new Dictionary(); - private var var_172:Vector. = new Vector.(6,true); + private var §_-Jf§:Vector. = new Vector.(6,true); - public function name_121(programType:String) + public function Linker(programType:String) { super(); - this.var_174.endian = Endian.LITTLE_ENDIAN; + this.§_-RU§.endian = Endian.LITTLE_ENDIAN; this.type = programType; - this.var_174.writeByte(160); - this.var_174.writeUnsignedInt(1); - this.var_174.writeByte(161); - this.var_174.writeByte(programType == Context3DProgramType.FRAGMENT ? 1 : 0); + this.§_-RU§.writeByte(160); + this.§_-RU§.writeUnsignedInt(1); + this.§_-RU§.writeByte(161); + this.§_-RU§.writeByte(programType == Context3DProgramType.FRAGMENT ? 1 : 0); } public function clear() : void { - this.var_174.length = 7; - this.var_172[0] = this.var_172[1] = this.var_172[2] = this.var_172[3] = this.var_172[4] = this.var_172[5] = 0; - this.var_128.length = 0; - this.var_175 = false; - this.var_176 = 0; - this.var_177 = 0; - this.alternativa3d::var_173 = null; - this.var_181 = new Dictionary(); - this.var_179 = new Dictionary(); + this.§_-RU§.length = 7; + this.§_-Jf§[0] = this.§_-Jf§[1] = this.§_-Jf§[2] = this.§_-Jf§[3] = this.§_-Jf§[4] = this.§_-Jf§[5] = 0; + this.§_-2L§.length = 0; + this.§_-8Z§ = false; + this.§_-A§ = 0; + this.§_-RT§ = 0; + this.alternativa3d::_-3r = null; + this.§_-W8§ = new Dictionary(); + this.§_-f-§ = new Dictionary(); } - public function name_123(procedure:name_114) : void + public function addProcedure(procedure:Procedure) : void { - this.var_175 = true; - this.var_128.push(procedure); + this.§_-8Z§ = true; + this.§_-2L§.push(procedure); } - public function name_120(name:String, type:uint = 2) : void + public function declareVariable(name:String, type:uint = 2) : void { - var v:name_434 = null; - v = new name_434(); + var v:Variable = null; + v = new Variable(); v.index = -1; v.type = type; v.name = name; - this.var_180[name] = v; + this.§_-c§[name] = v; } - public function name_118(procedure:name_114, ... args) : void + public function setInputParams(procedure:Procedure, ... args) : void { - this.var_181[procedure] = args; + this.§_-W8§[procedure] = args; } - public function name_125(procedure:name_114, ... args) : void + public function setOutputParams(procedure:Procedure, ... args) : void { - this.var_179[procedure] = args; + this.§_-f-§[procedure] = args; } public function getVariableIndex(name:String) : int { - if(this.var_175) + if(this.§_-8Z§) { - this.name_142(); + this.link(); } - var variable:name_434 = this.alternativa3d::var_173[name]; + var variable:Variable = this.alternativa3d::_-3r[name]; if(variable == null) { throw new Error("Variable \"" + name + "\" not found"); @@ -98,13 +98,13 @@ package package_30 return variable.index; } - public function name_207(name:String) : int + public function findVariable(name:String) : int { - if(this.var_175) + if(this.§_-8Z§) { - this.name_142(); + this.link(); } - var variable:name_434 = this.alternativa3d::var_173[name]; + var variable:Variable = this.alternativa3d::_-3r[name]; if(variable == null) { return -1; @@ -112,66 +112,66 @@ package package_30 return variable.index; } - public function method_286(name:String) : Boolean + public function containsVariable(name:String) : Boolean { - if(this.var_175) + if(this.§_-8Z§) { - this.name_142(); + this.link(); } - return this.alternativa3d::var_173[name] != null; + return this.alternativa3d::_-3r[name] != null; } - public function name_206() : ByteArray + public function getByteCode() : ByteArray { - if(this.var_175) + if(this.§_-8Z§) { - this.name_142(); + this.link(); } - return this.var_174; + return this.§_-RU§; } - public function name_133(linker:name_121) : void + public function setOppositeLinker(linker:Linker) : void { - this.var_178 = linker; - this.var_175 = true; + this.§_-T1§ = linker; + this.§_-8Z§ = true; } - public function name_142() : void + public function link() : void { - var v:name_434 = null; + var v:Variable = null; var j:int = 0; var numParams:int = 0; var i:int = 0; - var p:name_114 = null; + var p:Procedure = null; var input:Array = null; var output:Array = null; var code:ByteArray = null; var param:String = null; - var vars:Vector. = null; - var inParam:name_434 = null; - var outParam:name_434 = null; - if(this.var_175) + var vars:Vector. = null; + var inParam:Variable = null; + var outParam:Variable = null; + if(this.§_-8Z§) { - this.alternativa3d::var_173 = new Object(); - this.var_174.position = 7; - this.var_172[0] = 0; - this.var_172[1] = 0; - this.var_172[3] = 0; - this.var_172[4] = 0; - this.var_172[5] = 0; - this.var_176 = 0; - this.var_177 = 0; - for each(v in this.var_180) + this.alternativa3d::_-3r = new Object(); + this.§_-RU§.position = 7; + this.§_-Jf§[0] = 0; + this.§_-Jf§[1] = 0; + this.§_-Jf§[3] = 0; + this.§_-Jf§[4] = 0; + this.§_-Jf§[5] = 0; + this.§_-A§ = 0; + this.§_-RT§ = 0; + for each(v in this.§_-c§) { - this.alternativa3d::var_173[v.name] = v; + this.alternativa3d::_-3r[v.name] = v; } - for(i = 0; i < this.var_128.length; i++) + for(i = 0; i < this.§_-2L§.length; i++) { - p = this.var_128[i]; - this.var_176 += p.var_176; - this.var_177 += p.var_177; - input = this.var_181[p]; - output = this.var_179[p]; + p = this.§_-2L§[i]; + this.§_-A§ += p.§_-A§; + this.§_-RT§ += p.§_-RT§; + input = this.§_-W8§[p]; + output = this.§_-f-§[p]; code = new ByteArray(); code.endian = Endian.LITTLE_ENDIAN; p.byteCode.position = 0; @@ -182,21 +182,21 @@ package package_30 for(j = 0; j < numParams; ) { param = input[j]; - v = this.alternativa3d::var_173[param]; + v = this.alternativa3d::_-3r[param]; if(v == null) { throw new Error("Input parameter not set. paramName = " + param); } - if(p.name_435[6].length > j) + if(p.§_-d2§[6].length > j) { - inParam = p.name_435[6][j]; + inParam = p.§_-d2§[6][j]; if(inParam == null) { throw new Error("Input parameter set, but not exist in code. paramName = " + param + ", register = i" + j.toString()); } - if(this.var_180[v.name] != null && v.index < 0) + if(this.§_-c§[v.name] != null && v.index < 0) { - v.index = int(this.var_172[v.type]++); + v.index = int(this.§_-Jf§[v.type]++); } while(inParam != null) { @@ -213,25 +213,25 @@ package package_30 for(j = 0; j < numParams; j++) { param = output[j]; - v = this.alternativa3d::var_173[param]; + v = this.alternativa3d::_-3r[param]; if(v == null) { - if(!(j == 0 && i == this.var_128.length - 1)) + if(!(j == 0 && i == this.§_-2L§.length - 1)) { throw new Error("Output parameter have not declared. paramName = " + param); } } else { - if(this.var_180[v.name] != null && v.index < 0) + if(this.§_-c§[v.name] != null && v.index < 0) { if(v.type != 2) { - throw new Error("Wrong output type:" + name_115.TYPE_NAMES[v.type]); + throw new Error("Wrong output type:" + VariableType.TYPE_NAMES[v.type]); } - v.index = int(this.var_172[v.type]++); + v.index = int(this.§_-Jf§[v.type]++); } - outParam = p.name_435[3][j]; + outParam = p.§_-d2§[3][j]; if(outParam == null) { throw new Error("Output parameter set, but not exist in code. paramName = " + param + ", register = i" + j.toString()); @@ -244,7 +244,7 @@ package package_30 } } } - vars = p.name_435[2]; + vars = p.§_-d2§[2]; for(j = 0; j < vars.length; j++) { v = vars[j]; @@ -252,46 +252,46 @@ package package_30 { while(v != null) { - v.writeToByteArray(code,v.index + this.var_172[2],name_115.TEMPORARY); + v.writeToByteArray(code,v.index + this.§_-Jf§[2],VariableType.TEMPORARY); v = v.next; } } } - this.var_172[name_115.CONSTANT] += p.alternativa3d::name_436; - this.method_283(code,p.name_435[0],name_115.ATTRIBUTE); - this.method_283(code,p.name_435[1],name_115.CONSTANT); - this.method_284(code,p.name_435[4]); - this.method_283(code,p.name_435[5],name_115.SAMPLER); - this.var_174.writeBytes(code,0,code.length); + this.§_-Jf§[VariableType.CONSTANT] += p.alternativa3d::_-in; + this.resolveVariablesUsages(code,p.§_-d2§[0],VariableType.ATTRIBUTE); + this.resolveVariablesUsages(code,p.§_-d2§[1],VariableType.CONSTANT); + this.resolveVaryings(code,p.§_-d2§[4]); + this.resolveVariablesUsages(code,p.§_-d2§[5],VariableType.SAMPLER); + this.§_-RU§.writeBytes(code,0,code.length); } - this.var_175 = false; + this.§_-8Z§ = false; } } - private function method_284(code:ByteArray, variableUsages:Vector.) : void + private function resolveVaryings(code:ByteArray, variableUsages:Vector.) : void { - var vUsage:name_434 = null; - var variable:name_434 = null; - var type:uint = name_115.VARYING; - if(this.var_178 != null && this.var_178.var_175) + var vUsage:Variable = null; + var variable:Variable = null; + var type:uint = VariableType.VARYING; + if(this.§_-T1§ != null && this.§_-T1§.§_-8Z§) { - this.var_178.name_142(); + this.§_-T1§.link(); } - var oppositeVariables:Object = this.var_178 != null ? this.var_178.alternativa3d::var_173 : null; + var oppositeVariables:Object = this.§_-T1§ != null ? this.§_-T1§.alternativa3d::_-3r : null; for(var j:uint = 0; j < variableUsages.length; j++) { vUsage = variableUsages[j]; if(vUsage != null) { - variable = this.alternativa3d::var_173[vUsage.name]; + variable = this.alternativa3d::_-3r[vUsage.name]; if(variable == null) { - variable = name_434.create(); + variable = Variable.create(); if(vUsage.name == null) { throw new Error("Varying is not assigned. Use \'assignVariableName\' method. register = " + vUsage.index); } - this.alternativa3d::var_173[vUsage.name] = variable; + this.alternativa3d::_-3r[vUsage.name] = variable; variable.name = vUsage.name; if(oppositeVariables != null) { @@ -299,12 +299,12 @@ package package_30 { throw new Error("Varying with this name is not assigned to opposite linker. name = " + vUsage.name); } - variable.index = name_434(oppositeVariables[vUsage.name]).index; + variable.index = Variable(oppositeVariables[vUsage.name]).index; } else { - variable.index = this.var_172[type]; - this.var_172[type] += vUsage.size; + variable.index = this.§_-Jf§[type]; + this.§_-Jf§[type] += vUsage.size; } variable.type = type; } @@ -317,35 +317,35 @@ package package_30 } } - private function method_283(code:ByteArray, variableUsages:Vector., type:uint) : void + private function resolveVariablesUsages(code:ByteArray, variableUsages:Vector., type:uint) : void { - var vUsage:name_434 = null; - var variable:name_434 = null; + var vUsage:Variable = null; + var variable:Variable = null; for(var j:int = 0; j < variableUsages.length; j++) { vUsage = variableUsages[j]; if(vUsage != null) { - variable = this.alternativa3d::var_173[vUsage.name]; + variable = this.alternativa3d::_-3r[vUsage.name]; if(variable == null) { - variable = name_434.create(); + variable = Variable.create(); if(vUsage.name != null) { - this.alternativa3d::var_173[vUsage.name] = variable; + this.alternativa3d::_-3r[vUsage.name] = variable; } else if(!vUsage.isRelative) { - throw new Error(name_115.TYPE_NAMES[type] + " is not assigned. Use \"assignVariableName\" method. register = " + vUsage.index); + throw new Error(VariableType.TYPE_NAMES[type] + " is not assigned. Use \"assignVariableName\" method. register = " + vUsage.index); } variable.name = vUsage.name; - variable.index = this.var_172[type]; - this.var_172[type] += vUsage.size; + variable.index = this.§_-Jf§[type]; + this.§_-Jf§[type] += vUsage.size; variable.type = type; } else if(variable.index < 0) { - variable.index = int(this.var_172[type]++); + variable.index = int(this.§_-Jf§[type]++); } while(vUsage != null) { @@ -356,17 +356,17 @@ package package_30 } } - public function method_285() : String + public function describeLinkageInfo() : String { var str:String = null; - var p:name_114 = null; + var p:Procedure = null; var args:* = undefined; var result:String = "LINKER:\n"; var totalCodes:uint = 0; var totalCommands:uint = 0; - for(var i:int = 0; i < this.var_128.length; i++) + for(var i:int = 0; i < this.§_-2L§.length; i++) { - p = this.var_128[i]; + p = this.§_-2L§[i]; if(p.name != null) { result += p.name + "("; @@ -375,7 +375,7 @@ package package_30 { result += "#" + i.toString() + "("; } - args = this.var_181[p]; + args = this.§_-W8§[p]; if(args != null) { for each(str in args) @@ -385,7 +385,7 @@ package package_30 result = result.substr(0,result.length - 1); } result += ")"; - args = this.var_179[p]; + args = this.§_-f-§[p]; if(args != null) { result += "->("; @@ -396,9 +396,9 @@ package package_30 result = result.substr(0,result.length - 1); result += ")"; } - result += " [IS:" + p.var_177.toString() + ", CMDS:" + p.var_176.toString() + "]\n"; - totalCodes += p.var_177; - totalCommands += p.var_176; + result += " [IS:" + p.§_-RT§.toString() + ", CMDS:" + p.§_-A§.toString() + "]\n"; + totalCodes += p.§_-RT§; + totalCommands += p.§_-A§; } return result + ("[IS:" + totalCodes.toString() + ", CMDS:" + totalCommands.toString() + "]\n"); } diff --git a/src/alternativa/engine3d/materials/compiler/Procedure.as b/src/alternativa/engine3d/materials/compiler/Procedure.as new file mode 100644 index 0000000..a801839 --- /dev/null +++ b/src/alternativa/engine3d/materials/compiler/Procedure.as @@ -0,0 +1,370 @@ +package alternativa.engine3d.materials.compiler +{ + import alternativa.engine3d.alternativa3d; + import flash.utils.ByteArray; + import flash.utils.Endian; + + use namespace alternativa3d; + + public class Procedure + { + public var name:String; + + public var byteCode:ByteArray = new ByteArray(); + + public var §_-d2§:Vector.> = new Vector.>(); + + public var §_-RT§:int = 0; + + public var §_-A§:int = 0; + + alternativa3d var §_-in§:uint = 0; + + public function Procedure(array:Array = null, name:String = null) + { + super(); + this.byteCode.endian = Endian.LITTLE_ENDIAN; + this.name = name; + if(array != null) + { + this.compileFromArray(array); + } + } + + public static function compileFromArray(source:Array, name:String = null) : Procedure + { + return new Procedure(source,name); + } + + public static function compileFromString(source:String, name:String = null) : Procedure + { + var proc:Procedure = new Procedure(null,name); + proc.compileFromString(source); + return proc; + } + + private function addVariableUsage(v:Variable) : void + { + var vars:Vector. = this.§_-d2§[v.type]; + var index:int = v.index; + if(index >= vars.length) + { + vars.length = index + 1; + } + else + { + v.next = vars[index]; + } + vars[index] = v; + } + + public function assignVariableName(type:uint, index:uint, name:String, size:uint = 1) : void + { + for(var v:Variable = this.§_-d2§[type][index]; v != null; ) + { + v.size = size; + v.name = name; + v = v.next; + } + } + + public function compileFromString(source:String) : void + { + var commands:Array = source.split("\n"); + this.compileFromArray(commands); + } + + public function compileFromArray(source:Array) : void + { + var cmd:String = null; + var declaration:Array = null; + var decArray:Array = null; + var regType:String = null; + var varIndex:int = 0; + var varName:String = null; + for(var i:int = 0; i < 7; i++) + { + this.§_-d2§[i] = new Vector.(); + } + this.byteCode.length = 0; + this.§_-A§ = 0; + this.§_-RT§ = 0; + var declarationStrings:Vector. = new Vector.(); + var count:int = int(source.length); + for(i = 0; i < count; i++) + { + cmd = source[i]; + declaration = cmd.match(/# *[acvs]\d{1,3} *= *[a-zA-Z0-9_]*/i); + if(declaration != null && declaration.length > 0) + { + declarationStrings.push(declaration[0]); + } + else + { + this.writeCommand(cmd); + } + } + for(i = 0,count = int(declarationStrings.length); i < count; ) + { + decArray = declarationStrings[i].split("="); + regType = decArray[0].match(/[acvs]/i); + varIndex = int(int(decArray[0].match(/\d{1,3}/i))); + varName = decArray[1].match(/[a-zA-Z0-9]*/i); + switch(regType.toLowerCase()) + { + case "a": + this.assignVariableName(VariableType.ATTRIBUTE,varIndex,varName); + break; + case "c": + this.assignVariableName(VariableType.CONSTANT,varIndex,varName); + break; + case "v": + this.assignVariableName(VariableType.VARYING,varIndex,varName); + break; + case "s": + this.assignVariableName(VariableType.SAMPLER,varIndex,varName); + break; + } + i++; + } + } + + public function assignConstantsArray(registersCount:uint = 1) : void + { + this.alternativa3d::_-in = registersCount; + } + + private function writeCommand(source:String) : void + { + var destination:Variable = null; + var source1:SourceVariable = null; + var source2:Variable = null; + var type:uint = 0; + var s2v:SourceVariable = null; + var commentIndex:int = int(source.indexOf("//")); + if(commentIndex >= 0) + { + source = source.substr(0,commentIndex); + } + var operands:Array = source.match(/[A-Za-z]+(((\[.+\])|(\d+))(\.[xyzw]{1,4})?(\ *\<.*>)?)?/g); + if(operands.length < 2) + { + return; + } + var opCode:String = operands[0]; + if(opCode == "kil") + { + source1 = new SourceVariable(operands[1]); + } + else + { + destination = new DestinationVariable(operands[1]); + source1 = new SourceVariable(operands[2]); + this.addVariableUsage(destination); + } + this.addVariableUsage(source1); + switch(opCode) + { + case "mov": + type = CommandType.MOV; + ++this.§_-RT§; + break; + case "add": + type = CommandType.ADD; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "sub": + type = CommandType.SUB; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "mul": + type = CommandType.MUL; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "div": + type = CommandType.DIV; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "rcp": + type = CommandType.RCP; + ++this.§_-RT§; + break; + case "min": + type = CommandType.MIN; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "max": + type = CommandType.MAX; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "frc": + type = CommandType.FRC; + ++this.§_-RT§; + break; + case "sqt": + type = CommandType.SQT; + ++this.§_-RT§; + break; + case "rsq": + type = CommandType.RSQ; + ++this.§_-RT§; + break; + case "pow": + type = CommandType.POW; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + this.§_-RT§ += 3; + break; + case "log": + type = CommandType.LOG; + ++this.§_-RT§; + break; + case "exp": + type = CommandType.EXP; + ++this.§_-RT§; + break; + case "nrm": + type = CommandType.NRM; + this.§_-RT§ += 3; + break; + case "sin": + type = CommandType.SIN; + this.§_-RT§ += 8; + break; + case "cos": + type = CommandType.COS; + this.§_-RT§ += 8; + break; + case "crs": + type = CommandType.CRS; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + this.§_-RT§ += 2; + break; + case "dp3": + type = CommandType.DP3; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "dp4": + type = CommandType.DP4; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "abs": + type = CommandType.ABS; + ++this.§_-RT§; + break; + case "neg": + type = CommandType.NEG; + ++this.§_-RT§; + break; + case "sat": + type = CommandType.SAT; + ++this.§_-RT§; + break; + case "m33": + type = CommandType.M33; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + this.§_-RT§ += 3; + break; + case "m44": + type = CommandType.M44; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + this.§_-RT§ += 4; + break; + case "m34": + type = CommandType.M34; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + this.§_-RT§ += 3; + break; + case "kil": + type = CommandType.KIL; + ++this.§_-RT§; + break; + case "tex": + type = CommandType.TEX; + source2 = new SamplerVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "sge": + type = CommandType.SGE; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + break; + case "slt": + type = CommandType.SLT; + source2 = new SourceVariable(operands[3]); + this.addVariableUsage(source2); + ++this.§_-RT§; + } + this.byteCode.writeUnsignedInt(type); + if(destination != null) + { + destination.position = this.byteCode.position; + this.byteCode.writeUnsignedInt(destination.§_-0J§); + } + else + { + this.byteCode.writeUnsignedInt(0); + } + source1.position = this.byteCode.position; + if(source1.relative != null) + { + this.addVariableUsage(source1.relative); + source1.relative.position = this.byteCode.position; + } + this.byteCode.writeUnsignedInt(source1.§_-0J§); + this.byteCode.writeUnsignedInt(source1.§_-oc§); + if(source2 != null) + { + s2v = source2 as SourceVariable; + source2.position = this.byteCode.position; + if(s2v != null && s2v.relative != null) + { + this.addVariableUsage(s2v.relative); + s2v.relative.position = s2v.position; + } + this.byteCode.writeUnsignedInt(source2.§_-0J§); + this.byteCode.writeUnsignedInt(source2.§_-oc§); + } + else + { + this.byteCode.position = this.byteCode.length = this.byteCode.length + 8; + } + ++this.§_-A§; + } + + public function newInstance() : Procedure + { + var res:Procedure = new Procedure(); + res.byteCode = this.byteCode; + res.§_-d2§ = this.§_-d2§; + res.§_-RT§ = this.§_-RT§; + res.alternativa3d::_-in = this.alternativa3d::_-in; + res.§_-A§ = this.§_-A§; + res.name = this.name; + return res; + } + } +} + diff --git a/src/package_30/name_647.as b/src/alternativa/engine3d/materials/compiler/RelativeVariable.as similarity index 71% rename from src/package_30/name_647.as rename to src/alternativa/engine3d/materials/compiler/RelativeVariable.as index 1824700..15c3ac6 100644 --- a/src/package_30/name_647.as +++ b/src/alternativa/engine3d/materials/compiler/RelativeVariable.as @@ -1,10 +1,10 @@ -package package_30 +package alternativa.engine3d.materials.compiler { import flash.utils.ByteArray; - public class name_647 extends name_434 + public class RelativeVariable extends Variable { - public function name_647(source:String) + public function RelativeVariable(source:String) { super(); var relname:Array = source.match(/[A-Za-z]/g); @@ -12,16 +12,16 @@ package package_30 switch(relname[0]) { case "a": - type = name_115.ATTRIBUTE; + type = VariableType.ATTRIBUTE; break; case "c": - type = name_115.CONSTANT; + type = VariableType.CONSTANT; break; case "t": - type = name_115.TEMPORARY; + type = VariableType.TEMPORARY; break; case "i": - type = name_115.INPUT; + type = VariableType.INPUT; } var selmatch:Array = source.match(/(\.[xyzw]{1,1})/); if(selmatch.length == 0) @@ -43,10 +43,10 @@ package package_30 { throw new Error("Error: index offset " + reloffset + " out of bounds. [0..255]"); } - name_438 = reloffset << 16 | index; - name_439 |= type << 8; - name_439 |= relsel << 16; - name_439 |= 1 << 31; + §_-0J§ = reloffset << 16 | index; + §_-oc§ |= type << 8; + §_-oc§ |= relsel << 16; + §_-oc§ |= 1 << 31; } override public function writeToByteArray(byteCode:ByteArray, newIndex:int, newType:int) : void diff --git a/src/package_30/name_441.as b/src/alternativa/engine3d/materials/compiler/SamplerVariable.as similarity index 60% rename from src/package_30/name_441.as rename to src/alternativa/engine3d/materials/compiler/SamplerVariable.as index 6a4465e..c17c9fb 100644 --- a/src/package_30/name_441.as +++ b/src/alternativa/engine3d/materials/compiler/SamplerVariable.as @@ -1,10 +1,10 @@ -package package_30 +package alternativa.engine3d.materials.compiler { import flash.utils.ByteArray; - public class name_441 extends name_434 + public class SamplerVariable extends Variable { - public function name_441(source:String) + public function SamplerVariable(source:String) { var opts:Array = null; var op:String = null; @@ -13,19 +13,19 @@ package package_30 switch(strType) { case "s": - name_439 = name_115.SAMPLER; + §_-oc§ = VariableType.SAMPLER; break; case "i": - name_439 = name_115.INPUT; + §_-oc§ = VariableType.INPUT; } index = parseInt(source.match(/\d+/g)[0],10); - name_438 = index; + §_-0J§ = index; var optsi:int = int(source.search(/<.*>/g)); if(optsi != -1) { opts = source.substring(optsi).match(/(\w+)/g); } - type = name_439; + type = §_-oc§; var optsLength:uint = uint(opts.length); for(var i:int = 0; i < optsLength; ) { @@ -33,51 +33,51 @@ package package_30 switch(op) { case "2d": - name_439 &= ~0xF000; + §_-oc§ &= ~0xF000; break; case "3d": - name_439 &= ~0xF000; - name_439 |= 8192; + §_-oc§ &= ~0xF000; + §_-oc§ |= 8192; break; case "cube": - name_439 &= ~0xF000; - name_439 |= 4096; + §_-oc§ &= ~0xF000; + §_-oc§ |= 4096; break; case "mipnearest": - name_439 &= ~0x0F000000; - name_439 |= 16777216; + §_-oc§ &= ~0x0F000000; + §_-oc§ |= 16777216; break; case "miplinear": - name_439 &= ~0x0F000000; - name_439 |= 33554432; + §_-oc§ &= ~0x0F000000; + §_-oc§ |= 33554432; break; case "mipnone": case "nomip": - name_439 &= ~0x0F000000; + §_-oc§ &= ~0x0F000000; break; case "nearest": - name_439 &= ~4026531840; + §_-oc§ &= ~4026531840; break; case "linear": - name_439 &= ~4026531840; - name_439 |= 268435456; + §_-oc§ &= ~4026531840; + §_-oc§ |= 268435456; break; case "centroid": - name_439 |= 4294967296; + §_-oc§ |= 4294967296; break; case "single": - name_439 |= 8589934592; + §_-oc§ |= 8589934592; break; case "depth": - name_439 |= 17179869184; + §_-oc§ |= 17179869184; break; case "repeat": case "wrap": - name_439 &= ~0xF00000; - name_439 |= 1048576; + §_-oc§ &= ~0xF00000; + §_-oc§ |= 1048576; break; case "clamp": - name_439 &= ~0xF00000; + §_-oc§ &= ~0xF00000; break; } i++; diff --git a/src/package_30/name_437.as b/src/alternativa/engine3d/materials/compiler/SourceVariable.as similarity index 75% rename from src/package_30/name_437.as rename to src/alternativa/engine3d/materials/compiler/SourceVariable.as index c3207d9..54efd81 100644 --- a/src/package_30/name_437.as +++ b/src/alternativa/engine3d/materials/compiler/SourceVariable.as @@ -1,12 +1,12 @@ -package package_30 +package alternativa.engine3d.materials.compiler { import flash.utils.ByteArray; - public class name_437 extends name_434 + public class SourceVariable extends Variable { - public var relative:name_647; + public var relative:RelativeVariable; - public function name_437(source:String) + public function SourceVariable(source:String) { var regmask:uint = 0; var isRel:Boolean = false; @@ -50,36 +50,36 @@ package package_30 { regmask = 228; } - name_438 = regmask << 24 | index; + §_-0J§ = regmask << 24 | index; switch(strType) { case "a": - type = name_115.ATTRIBUTE; + type = VariableType.ATTRIBUTE; break; case "c": - type = name_115.CONSTANT; + type = VariableType.CONSTANT; break; case "t": - type = name_115.TEMPORARY; + type = VariableType.TEMPORARY; break; case "o": - type = name_115.OUTPUT; + type = VariableType.OUTPUT; break; case "v": - type = name_115.VARYING; + type = VariableType.VARYING; break; case "i": - type = name_115.INPUT; + type = VariableType.INPUT; break; default: throw new ArgumentError("Wrong source register type, must be \"a\" or \"c\" or \"t\" or \"o\" or \"v\" or \"i\", var = " + source); } - name_439 = type; + §_-oc§ = type; if(isRel) { - this.relative = new name_647(relreg[0]); - name_438 |= this.relative.name_438; - name_439 |= this.relative.name_439; + this.relative = new RelativeVariable(relreg[0]); + §_-0J§ |= this.relative.§_-0J§; + §_-oc§ |= this.relative.§_-oc§; isRelative = true; } } diff --git a/src/package_30/name_434.as b/src/alternativa/engine3d/materials/compiler/Variable.as similarity index 64% rename from src/package_30/name_434.as rename to src/alternativa/engine3d/materials/compiler/Variable.as index a919cfe..339252d 100644 --- a/src/package_30/name_434.as +++ b/src/alternativa/engine3d/materials/compiler/Variable.as @@ -1,10 +1,10 @@ -package package_30 +package alternativa.engine3d.materials.compiler { import flash.utils.ByteArray; - public class name_434 + public class Variable { - private static var collector:name_434; + private static var collector:Variable; protected static const X_CHAR_CODE:Number = "x".charCodeAt(0); @@ -16,28 +16,28 @@ package package_30 public var position:uint = 0; - public var next:name_434; + public var next:Variable; - public var name_438:uint; + public var §_-0J§:uint; - public var name_439:uint; + public var §_-oc§:uint; public var isRelative:Boolean; - private var var_32:uint = 1; + private var §_-RS§:uint = 1; - public function name_434() + public function Variable() { super(); } - public static function create() : name_434 + public static function create() : Variable { if(collector == null) { - collector = new name_434(); + collector = new Variable(); } - var output:name_434 = collector; + var output:Variable = collector; collector = collector.next; output.next = null; return output; @@ -51,12 +51,12 @@ package package_30 public function get size() : uint { - return this.var_32; + return this.§_-RS§; } public function set size(value:uint) : void { - this.var_32 = value; + this.§_-RS§ = value; } public function writeToByteArray(byteCode:ByteArray, newIndex:int, newType:int) : void diff --git a/src/package_30/name_115.as b/src/alternativa/engine3d/materials/compiler/VariableType.as similarity index 79% rename from src/package_30/name_115.as rename to src/alternativa/engine3d/materials/compiler/VariableType.as index fe3d0d7..3b77843 100644 --- a/src/package_30/name_115.as +++ b/src/alternativa/engine3d/materials/compiler/VariableType.as @@ -1,6 +1,6 @@ -package package_30 +package alternativa.engine3d.materials.compiler { - public class name_115 + public class VariableType { public static const ATTRIBUTE:uint = 0; @@ -18,7 +18,7 @@ package package_30 public static const TYPE_NAMES:Vector. = Vector.(["attribute","constant","temporary","output","varying","sampler","input"]); - public function name_115() + public function VariableType() { super(); } diff --git a/src/alternativa/engine3d/objects/Decal.as b/src/alternativa/engine3d/objects/Decal.as new file mode 100644 index 0000000..bf0d13d --- /dev/null +++ b/src/alternativa/engine3d/objects/Decal.as @@ -0,0 +1,79 @@ +package alternativa.engine3d.objects +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + + use namespace alternativa3d; + + public class Decal extends Mesh + { + private static var transformProcedureStatic:Procedure = new Procedure(["sub t0.xyz, c0.xyz, i0.xyz","dp3 t0.w, t0.xyz, c1.xyz","mul t0.w, t0.w, c0.w","nrm t0.xyz, t0.xyz","mul t0.xyz, t0.xyz, t0.w","add o0.xyz, i0.xyz, t0.xyz","mov o0.w, c1.w","#c0=cPos","#c1=cDir"],"DecalTransformProcedure"); + + public var offset:Number; + + public function Decal(offset:Number) + { + super(); + this.offset = offset; + alternativa3d::transformProcedure = transformProcedureStatic; + } + + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void + { + var surface:Surface = null; + var debug:int = 0; + for(var i:int = 0; i < alternativa3d::_-Oy; ) + { + surface = alternativa3d::_-eW[i]; + if(surface.material != null) + { + surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,RenderPriority.DECALS); + } + if(alternativa3d::listening) + { + camera.view.alternativa3d::addSurfaceToMouseEvents(surface,geometry,alternativa3d::transformProcedure); + } + i++; + } + if(camera.debug) + { + debug = int(camera.alternativa3d::checkInDebug(this)); + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) + { + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); + } + } + } + + override alternativa3d function setTransformConstants(drawUnit:DrawUnit, surface:Surface, vertexShader:Linker, camera:Camera3D) : void + { + var dx:Number = -alternativa3d::cameraToLocalTransform.c; + var dy:Number = -alternativa3d::cameraToLocalTransform.g; + var dz:Number = -alternativa3d::cameraToLocalTransform.k; + var len:Number = this.offset / Math.sqrt(dx * dx + dy * dy + dz * dz) / camera.alternativa3d::focalLength; + drawUnit.alternativa3d::setVertexConstantsFromNumbers(vertexShader.getVariableIndex("cPos"),alternativa3d::cameraToLocalTransform.d,alternativa3d::cameraToLocalTransform.h,alternativa3d::cameraToLocalTransform.l,len); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(vertexShader.getVariableIndex("cDir"),dx,dy,dz,1); + } + + override public function clone() : Object3D + { + var res:Decal = new Decal(this.offset); + res.clonePropertiesFrom(this); + return res; + } + + override protected function clonePropertiesFrom(source:Object3D) : void + { + super.clonePropertiesFrom(source); + this.offset = (source as Decal).offset; + } + } +} + diff --git a/src/package_19/name_700.as b/src/alternativa/engine3d/objects/Joint.as similarity index 60% rename from src/package_19/name_700.as rename to src/alternativa/engine3d/objects/Joint.as index ed0f2ac..db99c64 100644 --- a/src/package_19/name_700.as +++ b/src/alternativa/engine3d/objects/Joint.as @@ -1,49 +1,49 @@ -package package_19 +package alternativa.engine3d.objects { import alternativa.engine3d.alternativa3d; - import package_21.name_139; - import package_21.name_78; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Transform3D; use namespace alternativa3d; - public class name_700 extends name_78 + public class Joint extends Object3D { - alternativa3d var name_704:name_139 = new name_139(); + alternativa3d var §_-Dy§:Transform3D = new Transform3D(); - alternativa3d var bindPoseTransform:name_139 = new name_139(); + alternativa3d var bindPoseTransform:Transform3D = new Transform3D(); - private var var_689:name_139 = new name_139(); + private var §_-ar§:Transform3D = new Transform3D(); - public function name_700() + public function Joint() { super(); } - alternativa3d function name_701(matrix:Vector.) : void + alternativa3d function setBindPoseMatrix(matrix:Vector.) : void { - this.alternativa3d::bindPoseTransform.method_294(matrix); + this.alternativa3d::bindPoseTransform.initFromVector(matrix); } - alternativa3d function name_703() : void + alternativa3d function calculateTransform() : void { if(this.alternativa3d::bindPoseTransform != null) { - this.alternativa3d::name_704.combine(alternativa3d::localToGlobalTransform,this.alternativa3d::bindPoseTransform); + this.alternativa3d::_-Dy.combine(alternativa3d::localToGlobalTransform,this.alternativa3d::bindPoseTransform); } } - override public function clone() : name_78 + override public function clone() : Object3D { - var res:name_700 = new name_700(); + var res:Joint = new Joint(); res.clonePropertiesFrom(this); return res; } - override protected function clonePropertiesFrom(source:name_78) : void + override protected function clonePropertiesFrom(source:Object3D) : void { - var sourceJoint:name_700 = null; + var sourceJoint:Joint = null; super.clonePropertiesFrom(source); - sourceJoint = source as name_700; + sourceJoint = source as Joint; this.alternativa3d::bindPoseTransform.a = sourceJoint.alternativa3d::bindPoseTransform.a; this.alternativa3d::bindPoseTransform.b = sourceJoint.alternativa3d::bindPoseTransform.b; this.alternativa3d::bindPoseTransform.c = sourceJoint.alternativa3d::bindPoseTransform.c; diff --git a/src/package_19/name_380.as b/src/alternativa/engine3d/objects/Mesh.as similarity index 50% rename from src/package_19/name_380.as rename to src/alternativa/engine3d/objects/Mesh.as index c5c6c21..0cd0bd0 100644 --- a/src/package_19/name_380.as +++ b/src/alternativa/engine3d/objects/Mesh.as @@ -1,41 +1,41 @@ -package package_19 +package alternativa.engine3d.objects { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.collisions.EllipsoidCollider; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RayIntersectionData; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.resources.Geometry; import flash.geom.Vector3D; import flash.utils.Dictionary; - import package_110.name_389; - import package_21.name_116; - import package_21.name_124; - import package_21.name_139; - import package_21.name_386; - import package_21.name_387; - import package_21.name_397; - import package_21.name_78; - import package_28.name_119; - import package_4.class_4; use namespace alternativa3d; - public class name_380 extends name_78 + public class Mesh extends Object3D { - public var geometry:name_119; + public var geometry:Geometry; - alternativa3d var var_92:Vector. = new Vector.(); + alternativa3d var §_-eW§:Vector. = new Vector.(); - alternativa3d var var_93:int = 0; + alternativa3d var §_-Oy§:int = 0; - public function name_380() + public function Mesh() { super(); } - override public function intersectRay(origin:Vector3D, direction:Vector3D) : name_387 + override public function intersectRay(origin:Vector3D, direction:Vector3D) : RayIntersectionData { - var contentData:name_387 = null; + var contentData:RayIntersectionData = null; var minTime:Number = NaN; - var s:name_117 = null; - var data:name_387 = null; - var childrenData:name_387 = super.intersectRay(origin,direction); + var s:Surface = null; + var data:RayIntersectionData = null; + var childrenData:RayIntersectionData = super.intersectRay(origin,direction); if(boundBox != null && !boundBox.intersectRay(origin,direction)) { contentData = null; @@ -43,7 +43,7 @@ package package_19 else if(this.geometry != null) { minTime = 1e+22; - for each(s in this.alternativa3d::var_92) + for each(s in this.alternativa3d::_-eW) { data = this.geometry.alternativa3d::intersectRay(origin,direction,s.indexBegin,s.numTriangles); if(data != null && data.time < minTime) @@ -66,33 +66,33 @@ package package_19 return childrenData.time < contentData.time ? childrenData : contentData; } - public function addSurface(material:class_4, indexBegin:uint, numTriangles:uint) : name_117 + public function addSurface(material:Material, indexBegin:uint, numTriangles:uint) : Surface { - var res:name_117 = new name_117(); + var res:Surface = new Surface(); res.alternativa3d::object = this; res.material = material; res.indexBegin = indexBegin; res.numTriangles = numTriangles; - var _loc5_:* = this.alternativa3d::var_93++; - this.alternativa3d::var_92[_loc5_] = res; + var _loc5_:* = this.alternativa3d::_-Oy++; + this.alternativa3d::_-eW[_loc5_] = res; return res; } - public function method_216(index:int) : name_117 + public function getSurface(index:int) : Surface { - return this.alternativa3d::var_92[index]; + return this.alternativa3d::_-eW[index]; } - public function get method_217() : int + public function get numSurfaces() : int { - return this.alternativa3d::var_93; + return this.alternativa3d::_-Oy; } - public function setMaterialToAllSurfaces(material:class_4) : void + public function setMaterialToAllSurfaces(material:Material) : void { - for(var i:int = 0; i < this.alternativa3d::var_92.length; i++) + for(var i:int = 0; i < this.alternativa3d::_-eW.length; i++) { - this.alternativa3d::var_92[i].material = material; + this.alternativa3d::_-eW[i].material = material; } } @@ -101,7 +101,7 @@ package package_19 return true; } - override alternativa3d function updateBoundBox(boundBox:name_386, hierarchy:Boolean, transform:name_139 = null) : void + override alternativa3d function updateBoundBox(boundBox:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void { super.alternativa3d::updateBoundBox(boundBox,hierarchy,transform); if(this.geometry != null) @@ -112,14 +112,14 @@ package package_19 override alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void { - var s:name_117 = null; + var s:Surface = null; if(this.geometry != null && (resourceType == null || this.geometry is resourceType)) { resources[this.geometry] = true; } - for(var i:int = 0; i < this.alternativa3d::var_93; ) + for(var i:int = 0; i < this.alternativa3d::_-Oy; ) { - s = this.alternativa3d::var_92[i]; + s = this.alternativa3d::_-eW[i]; if(s.material != null) { s.material.alternativa3d::fillResources(resources,resourceType); @@ -129,55 +129,55 @@ package package_19 super.alternativa3d::fillResources(resources,hierarchy,resourceType); } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { - var surface:name_117 = null; + var surface:Surface = null; var debug:int = 0; - for(var i:int = 0; i < this.alternativa3d::var_93; ) + for(var i:int = 0; i < this.alternativa3d::_-Oy; ) { - surface = this.alternativa3d::var_92[i]; + surface = this.alternativa3d::_-eW[i]; if(surface.material != null) { surface.material.alternativa3d::collectDraws(camera,surface,this.geometry,lights,lightsLength); } if(alternativa3d::listening) { - camera.view.alternativa3d::name_398(surface,this.geometry,alternativa3d::transformProcedure); + camera.view.alternativa3d::addSurfaceToMouseEvents(surface,this.geometry,alternativa3d::transformProcedure); } i++; } if(camera.debug) { debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - override alternativa3d function collectGeometry(collider:name_389, excludedObjects:Dictionary) : void + override alternativa3d function collectGeometry(collider:EllipsoidCollider, excludedObjects:Dictionary) : void { collider.alternativa3d::geometries.push(this.geometry); - collider.alternativa3d::name_400.push(alternativa3d::localToGlobalTransform); + collider.alternativa3d::_-QK.push(alternativa3d::localToGlobalTransform); } - override public function clone() : name_78 + override public function clone() : Object3D { - var res:name_380 = new name_380(); + var res:Mesh = new Mesh(); res.clonePropertiesFrom(this); return res; } - override protected function clonePropertiesFrom(source:name_78) : void + override protected function clonePropertiesFrom(source:Object3D) : void { - var s:name_117 = null; + var s:Surface = null; super.clonePropertiesFrom(source); - var mesh:name_380 = source as name_380; + var mesh:Mesh = source as Mesh; this.geometry = mesh.geometry; - this.alternativa3d::var_93 = 0; - this.alternativa3d::var_92.length = 0; - for each(s in mesh.alternativa3d::var_92) + this.alternativa3d::_-Oy = 0; + this.alternativa3d::_-eW.length = 0; + for each(s in mesh.alternativa3d::_-eW) { this.addSurface(s.material,s.indexBegin,s.numTriangles); } diff --git a/src/package_19/name_528.as b/src/alternativa/engine3d/objects/Skin.as similarity index 67% rename from src/package_19/name_528.as rename to src/alternativa/engine3d/objects/Skin.as index 43ffc33..4244cd0 100644 --- a/src/package_19/name_528.as +++ b/src/alternativa/engine3d/objects/Skin.as @@ -1,63 +1,63 @@ -package package_19 +package alternativa.engine3d.objects { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.resources.Geometry; import flash.utils.ByteArray; import flash.utils.Dictionary; import flash.utils.Endian; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_135; - import package_21.name_397; - import package_21.name_78; - import package_28.name_119; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; use namespace alternativa3d; - public class name_528 extends name_380 + public class Skin extends Mesh { private static var _transformProcedures:Dictionary = new Dictionary(); private static var _deltaTransformProcedures:Dictionary = new Dictionary(); - public var var_631:Vector.; + public var §_-WA§:Vector.; - alternativa3d var var_630:Vector.>; + alternativa3d var §_-Cq§:Vector.>; - alternativa3d var var_633:Vector.; + alternativa3d var §_-fB§:Vector.; - alternativa3d var var_632:Vector.; + alternativa3d var §do §:Vector.; private var numJoints:int = 0; private var maxInfluences:int = 0; - public function name_528(maxInfluences:int, numJoints:int) + public function Skin(maxInfluences:int, numJoints:int) { super(); this.numJoints = numJoints; this.maxInfluences = maxInfluences; - this.var_631 = new Vector.(); - this.alternativa3d::var_630 = new Vector.>(); - this.alternativa3d::var_633 = new Vector.(); - this.alternativa3d::var_632 = new Vector.(); - alternativa3d::transformProcedure = this.method_732(maxInfluences,numJoints); - alternativa3d::deltaTransformProcedure = this.method_733(maxInfluences,numJoints); + this.§_-WA§ = new Vector.(); + this.alternativa3d::_-Cq = new Vector.>(); + this.alternativa3d::_-fB = new Vector.(); + this.alternativa3d::do = new Vector.(); + alternativa3d::transformProcedure = this.calculateTransformProcedure(maxInfluences,numJoints); + alternativa3d::deltaTransformProcedure = this.calculateDeltaTransformProcedure(maxInfluences,numJoints); } - override public function addSurface(material:class_4, indexBegin:uint, numTriangles:uint) : name_117 + override public function addSurface(material:Material, indexBegin:uint, numTriangles:uint) : Surface { - this.alternativa3d::var_633[alternativa3d::var_93] = alternativa3d::transformProcedure; - this.alternativa3d::var_632[alternativa3d::var_93] = alternativa3d::deltaTransformProcedure; - this.alternativa3d::var_630[alternativa3d::var_93] = this.var_631; + this.alternativa3d::_-fB[alternativa3d::_-Oy] = alternativa3d::transformProcedure; + this.alternativa3d::do [alternativa3d::_-Oy] = alternativa3d::deltaTransformProcedure; + this.alternativa3d::_-Cq[alternativa3d::_-Oy] = this.§_-WA§; return super.addSurface(material,indexBegin,numTriangles); } - private function method_737(limit:uint, iterations:uint, surface:name_117, jointsOffsets:Vector., jointBufferVertexSize:uint, inVertices:ByteArray, outVertices:ByteArray, outIndices:Vector., outSurfaces:Vector., outJointsMaps:Vector.) : uint + private function divideSurface(limit:uint, iterations:uint, surface:Surface, jointsOffsets:Vector., jointBufferVertexSize:uint, inVertices:ByteArray, outVertices:ByteArray, outIndices:Vector., outSurfaces:Vector., outJointsMaps:Vector.) : uint { var i:int = 0; var j:int = 0; @@ -75,7 +75,7 @@ package package_19 var n:int = 0; var faces:Dictionary = null; var locatedIndices:Dictionary = null; - var resSurface:name_117 = null; + var resSurface:Surface = null; var origin:uint = 0; var sumWeight:Number = NaN; var indexBegin:uint = uint(surface.indexBegin); @@ -111,7 +111,7 @@ package package_19 } i += 3; } - var facesGroups:Dictionary = this.method_739(groups,limit,iterations); + var facesGroups:Dictionary = this.optimizeGroups(groups,limit,iterations); var newIndex:uint = 0; for(key in facesGroups) { @@ -175,7 +175,7 @@ package package_19 } } } - resSurface = new name_117(); + resSurface = new Surface(); resSurface.alternativa3d::object = this; resSurface.material = surface.material; resSurface.indexBegin = newIndexBegin; @@ -187,7 +187,7 @@ package package_19 return newIndex; } - private function method_739(groups:Dictionary, limit:uint, iterations:uint = 1) : Dictionary + private function optimizeGroups(groups:Dictionary, limit:uint, iterations:uint = 1) : Dictionary { var key:* = undefined; var inKey:* = undefined; @@ -210,7 +210,7 @@ package package_19 if(key != inKey) { group2 = groups[inKey]; - like = this.method_738(group1,group2,limit); + like = this.calculateLikeFactor(group1,group2,limit); if(like >= minLike) { delete groups[inKey]; @@ -245,7 +245,7 @@ package package_19 return facesGroups; } - private function method_738(group1:Dictionary, group2:Dictionary, limit:uint) : Number + private function calculateLikeFactor(group1:Dictionary, group2:Dictionary, limit:uint) : Number { var key:* = undefined; var unionCount:uint = 0; @@ -276,7 +276,7 @@ package package_19 return intersectCount / unionCount; } - public function method_740(limit:uint, iterations:uint = 1) : void + public function divide(limit:uint, iterations:uint = 1) : void { var key:* = undefined; var outIndices:Vector. = null; @@ -286,23 +286,23 @@ package package_19 var j:int = 0; var count:int = 0; var maxJoints:uint = 0; - var vec:Vector. = null; + var vec:Vector. = null; var joints:Dictionary = null; var index:uint = 0; var attributes:Array = null; - var data:ByteArray = null; - var jointsBuffer:int = geometry.findVertexStreamByAttribute(name_126.JOINTS[0]); + var _loc30_:ByteArray = null; + var jointsBuffer:int = geometry.findVertexStreamByAttribute(VertexAttributes.JOINTS[0]); var jointsOffsets:Vector. = new Vector.(); var jointOffset:int = 0; if(jointsBuffer >= 0) { - jointOffset = geometry.getAttributeOffset(name_126.JOINTS[0]) * 4; + jointOffset = geometry.getAttributeOffset(VertexAttributes.JOINTS[0]) * 4; jointsOffsets.push(jointOffset); jointsOffsets.push(jointOffset + 8); - var jbTest:int = geometry.findVertexStreamByAttribute(name_126.JOINTS[1]); + var jbTest:int = geometry.findVertexStreamByAttribute(VertexAttributes.JOINTS[1]); if(jbTest >= 0) { - jointOffset = geometry.getAttributeOffset(name_126.JOINTS[1]) * 4; + jointOffset = geometry.getAttributeOffset(VertexAttributes.JOINTS[1]) * 4; jointsOffsets.push(jointOffset); jointsOffsets.push(jointOffset + 8); if(jointsBuffer != jbTest) @@ -310,10 +310,10 @@ package package_19 throw new Error("Cannot divide skin, all joinst must be in the same buffer"); } } - jbTest = geometry.findVertexStreamByAttribute(name_126.JOINTS[2]); + jbTest = geometry.findVertexStreamByAttribute(VertexAttributes.JOINTS[2]); if(jbTest >= 0) { - jointOffset = geometry.getAttributeOffset(name_126.JOINTS[2]) * 4; + jointOffset = geometry.getAttributeOffset(VertexAttributes.JOINTS[2]) * 4; jointsOffsets.push(jointOffset); jointsOffsets.push(jointOffset + 8); if(jointsBuffer != jbTest) @@ -321,10 +321,10 @@ package package_19 throw new Error("Cannot divide skin, all joinst must be in the same buffer"); } } - jbTest = geometry.findVertexStreamByAttribute(name_126.JOINTS[3]); + jbTest = geometry.findVertexStreamByAttribute(VertexAttributes.JOINTS[3]); if(jbTest >= 0) { - jointOffset = geometry.getAttributeOffset(name_126.JOINTS[3]) * 4; + jointOffset = geometry.getAttributeOffset(VertexAttributes.JOINTS[3]) * 4; jointsOffsets.push(jointOffset); jointsOffsets.push(jointOffset + 8); if(jointsBuffer != jbTest) @@ -332,7 +332,7 @@ package package_19 throw new Error("Cannot divide skin, all joinst must be in the same buffer"); } } - var outSurfaces:Vector. = new Vector.(); + var outSurfaces:Vector. = new Vector.(); var totalVertices:ByteArray = new ByteArray(); totalVertices.endian = Endian.LITTLE_ENDIAN; var totalIndices:Vector. = new Vector.(); @@ -340,16 +340,16 @@ package package_19 var lastMaxIndex:uint = 0; var lastSurfaceIndex:uint = 0; var lastIndicesCount:uint = 0; - this.alternativa3d::var_630.length = 0; + this.alternativa3d::_-Cq.length = 0; var jointsBufferNumMappings:int = int(geometry.alternativa3d::_vertexStreams[jointsBuffer].attributes.length); var jointsBufferData:ByteArray = geometry.alternativa3d::_vertexStreams[jointsBuffer].data; - for(var i:int = 0; i < alternativa3d::var_93; i++) + for(var i:int = 0; i < alternativa3d::_-Oy; i++) { outIndices = new Vector.(); outVertices = new ByteArray(); outJointsMaps = new Vector.(); outVertices.endian = Endian.LITTLE_ENDIAN; - maxIndex = this.method_737(limit,iterations,alternativa3d::var_92[i],jointsOffsets,jointsBufferNumMappings * 4,jointsBufferData,outVertices,outIndices,outSurfaces,outJointsMaps); + maxIndex = this.divideSurface(limit,iterations,alternativa3d::_-eW[i],jointsOffsets,jointsBufferNumMappings * 4,jointsBufferData,outVertices,outIndices,outSurfaces,outJointsMaps); for(j = 0,count = int(outIndices.length); j < count; j++) { var _loc31_:* = totalIndicesLength++; @@ -358,7 +358,7 @@ package package_19 for(j = 0,count = int(outJointsMaps.length); j < count; j++) { maxJoints = 0; - vec = this.alternativa3d::var_630[j + lastSurfaceIndex] = new Vector.(); + vec = this.alternativa3d::_-Cq[j + lastSurfaceIndex] = new Vector.(); joints = outJointsMaps[j]; for(key in joints) { @@ -367,7 +367,7 @@ package package_19 { vec.length = index + 1; } - vec[index] = this.var_631[uint(key / 3)]; + vec[index] = this.§_-WA§[uint(key / 3)]; maxJoints++; } } @@ -380,16 +380,16 @@ package package_19 totalVertices.writeBytes(outVertices,0,outVertices.length); lastMaxIndex += maxIndex; } - alternativa3d::var_92 = outSurfaces; - alternativa3d::var_93 = outSurfaces.length; - this.alternativa3d::var_633.length = alternativa3d::var_93; - this.alternativa3d::var_632.length = alternativa3d::var_93; - for(i = 0; i < alternativa3d::var_93; i++) + alternativa3d::_-eW = outSurfaces; + alternativa3d::_-Oy = outSurfaces.length; + this.alternativa3d::_-fB.length = alternativa3d::_-Oy; + this.alternativa3d::do .length = alternativa3d::_-Oy; + for(i = 0; i < alternativa3d::_-Oy; i++) { - this.alternativa3d::var_633[i] = this.method_732(this.maxInfluences,this.alternativa3d::var_630[i].length); - this.alternativa3d::var_632[i] = this.method_733(this.maxInfluences,this.alternativa3d::var_630[i].length); + this.alternativa3d::_-fB[i] = this.calculateTransformProcedure(this.maxInfluences,this.alternativa3d::_-Cq[i].length); + this.alternativa3d::do [i] = this.calculateDeltaTransformProcedure(this.maxInfluences,this.alternativa3d::_-Cq[i].length); } - var newGeometry:name_119 = new name_119(); + var newGeometry:Geometry = new Geometry(); newGeometry.alternativa3d::_indices = totalIndices; for(i = 0; i < geometry.alternativa3d::_vertexStreams.length; i++) { @@ -401,10 +401,10 @@ package package_19 } else { - data = new ByteArray(); - data.endian = Endian.LITTLE_ENDIAN; - data.writeBytes(geometry.alternativa3d::_vertexStreams[i].data); - newGeometry.alternativa3d::_vertexStreams[i].data = data; + _loc30_ = new ByteArray(); + _loc30_.endian = Endian.LITTLE_ENDIAN; + _loc30_.writeBytes(geometry.alternativa3d::_vertexStreams[i].data); + newGeometry.alternativa3d::_vertexStreams[i].data = _loc30_; } } newGeometry.alternativa3d::_numVertices = totalVertices.length / (newGeometry.alternativa3d::_vertexStreams[0].attributes.length << 2); @@ -414,99 +414,99 @@ package package_19 throw new Error("Cannot divide skin, joints[0] must be binded"); } - private function method_734(root:name_78) : void + private function calculateJointsTransforms(root:Object3D) : void { - for(var child:name_78 = root.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) + for(var child:Object3D = root.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) { if(child.alternativa3d::transformChanged) { child.alternativa3d::composeTransforms(); } child.alternativa3d::localToGlobalTransform.combine(root.alternativa3d::localToGlobalTransform,child.alternativa3d::transform); - if(child is name_700) + if(child is Joint) { - name_700(child).alternativa3d::name_703(); + Joint(child).alternativa3d::calculateTransform(); } - this.method_734(child); + this.calculateJointsTransforms(child); } } - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { - var surface:name_117 = null; + var surface:Surface = null; var debug:int = 0; if(geometry == null) { return; } - for(var child:name_78 = alternativa3d::childrenList; child != null; ) + for(var child:Object3D = alternativa3d::childrenList; child != null; ) { if(child.alternativa3d::transformChanged) { child.alternativa3d::composeTransforms(); } child.alternativa3d::localToGlobalTransform.copy(child.alternativa3d::transform); - if(child is name_700) + if(child is Joint) { - name_700(child).alternativa3d::name_703(); + Joint(child).alternativa3d::calculateTransform(); } - this.method_734(child); + this.calculateJointsTransforms(child); child = child.alternativa3d::next; } - for(var i:int = 0; i < alternativa3d::var_93; ) + for(var i:int = 0; i < alternativa3d::_-Oy; ) { - surface = alternativa3d::var_92[i]; - alternativa3d::transformProcedure = this.alternativa3d::var_633[i]; - alternativa3d::deltaTransformProcedure = this.alternativa3d::var_632[i]; + surface = alternativa3d::_-eW[i]; + alternativa3d::transformProcedure = this.alternativa3d::_-fB[i]; + alternativa3d::deltaTransformProcedure = this.alternativa3d::do [i]; if(surface.material != null) { surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength); } if(alternativa3d::listening) { - camera.view.alternativa3d::name_398(surface,geometry,alternativa3d::transformProcedure); + camera.view.alternativa3d::addSurfaceToMouseEvents(surface,geometry,alternativa3d::transformProcedure); } i++; } if(camera.debug) { debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); } } } - override alternativa3d function setTransformConstants(drawUnit:name_135, surface:name_117, vertexShader:name_121, camera:name_124) : void + override alternativa3d function setTransformConstants(drawUnit:DrawUnit, surface:Surface, vertexShader:Linker, camera:Camera3D) : void { var i:int = 0; var count:int = 0; var attribute:int = 0; - var joint:name_700 = null; + var joint:Joint = null; for(i = 0; i < this.maxInfluences; i += 2) { - attribute = int(name_126.JOINTS[i >> 1]); - drawUnit.alternativa3d::setVertexBufferAt(vertexShader.getVariableIndex("joint" + i.toString()),geometry.alternativa3d::getVertexBuffer(attribute),geometry.alternativa3d::_attributesOffsets[attribute],name_126.alternativa3d::FORMATS[attribute]); + attribute = int(VertexAttributes.JOINTS[i >> 1]); + drawUnit.alternativa3d::setVertexBufferAt(vertexShader.getVariableIndex("joint" + i.toString()),geometry.alternativa3d::getVertexBuffer(attribute),geometry.alternativa3d::_attributesOffsets[attribute],VertexAttributes.alternativa3d::FORMATS[attribute]); } - var surfaceIndex:int = int(alternativa3d::var_92.indexOf(surface)); - var joints:Vector. = this.alternativa3d::var_630[surfaceIndex]; + var surfaceIndex:int = int(alternativa3d::_-eW.indexOf(surface)); + var joints:Vector. = this.alternativa3d::_-Cq[surfaceIndex]; for(i = 0,count = int(joints.length); i < count; i++) { joint = joints[i]; - drawUnit.alternativa3d::name_412(i * 3,joint.alternativa3d::name_704); + drawUnit.alternativa3d::setVertexConstantsFromTransform(i * 3,joint.alternativa3d::_-Dy); } } - private function method_732(maxInfluences:int, numJoints:int) : name_114 + private function calculateTransformProcedure(maxInfluences:int, numJoints:int) : Procedure { var joint:int = 0; - var res:name_114 = _transformProcedures[maxInfluences | numJoints << 16]; + var res:Procedure = _transformProcedures[maxInfluences | numJoints << 16]; if(res != null) { return res; } - res = _transformProcedures[maxInfluences | numJoints << 16] = new name_114(null,"SkinTransformProcedure"); + res = _transformProcedures[maxInfluences | numJoints << 16] = new Procedure(null,"SkinTransformProcedure"); var array:Array = []; var j:int = 0; for(var i:int = 0; i < maxInfluences; i++) @@ -543,24 +543,24 @@ package package_19 } _loc8_ = j++; array[_loc8_] = "mov o0.w, i0.w"; - res.name_140(array); - res.method_290(numJoints * 3); + res.compileFromArray(array); + res.assignConstantsArray(numJoints * 3); for(i = 0; i < maxInfluences; i += 2) { - res.name_122(name_115.ATTRIBUTE,int(i / 2),"joint" + i); + res.assignVariableName(VariableType.ATTRIBUTE,int(i / 2),"joint" + i); } return res; } - private function method_733(maxInfluences:int, numJoints:int) : name_114 + private function calculateDeltaTransformProcedure(maxInfluences:int, numJoints:int) : Procedure { var joint:int = 0; - var res:name_114 = _deltaTransformProcedures[maxInfluences | numJoints << 16]; + var res:Procedure = _deltaTransformProcedures[maxInfluences | numJoints << 16]; if(res != null) { return res; } - res = _deltaTransformProcedures[maxInfluences | numJoints << 16] = new name_114(null,"SkinDeltaTransformProcedure"); + res = _deltaTransformProcedures[maxInfluences | numJoints << 16] = new Procedure(null,"SkinDeltaTransformProcedure"); var array:Array = []; var j:int = 0; for(var i:int = 0; i < maxInfluences; i++) @@ -599,55 +599,55 @@ package package_19 array[_loc8_] = "mov o0.w, i0.w"; _loc9_ = j++; array[_loc9_] = "nrm o0.xyz, o0.xyz"; - res.name_140(array); + res.compileFromArray(array); for(i = 0; i < maxInfluences; i += 2) { - res.name_122(name_115.ATTRIBUTE,int(i / 2),"joint" + i); + res.assignVariableName(VariableType.ATTRIBUTE,int(i / 2),"joint" + i); } return res; } - override public function clone() : name_78 + override public function clone() : Object3D { - var res:name_528 = new name_528(this.maxInfluences,this.numJoints); + var res:Skin = new Skin(this.maxInfluences,this.numJoints); res.clonePropertiesFrom(this); return res; } - override protected function clonePropertiesFrom(source:name_78) : void + override protected function clonePropertiesFrom(source:Object3D) : void { super.clonePropertiesFrom(source); - var skin:name_528 = name_528(source); - if(skin.var_631 != null) + var skin:Skin = Skin(source); + if(skin.§_-WA§ != null) { - this.var_631 = this.method_736(skin.var_631,skin); + this.§_-WA§ = this.cloneJointsVector(skin.§_-WA§,skin); } - for(var i:int = 0; i < alternativa3d::var_93; ) + for(var i:int = 0; i < alternativa3d::_-Oy; ) { - this.alternativa3d::var_630[i] = this.method_736(skin.alternativa3d::var_630[i],skin); - this.alternativa3d::var_633[i] = this.method_732(this.maxInfluences,this.alternativa3d::var_630[i].length); - this.alternativa3d::var_632[i] = this.method_733(this.maxInfluences,this.alternativa3d::var_630[i].length); + this.alternativa3d::_-Cq[i] = this.cloneJointsVector(skin.alternativa3d::_-Cq[i],skin); + this.alternativa3d::_-fB[i] = this.calculateTransformProcedure(this.maxInfluences,this.alternativa3d::_-Cq[i].length); + this.alternativa3d::do [i] = this.calculateDeltaTransformProcedure(this.maxInfluences,this.alternativa3d::_-Cq[i].length); i++; } } - private function method_736(joints:Vector., skin:name_528) : Vector. + private function cloneJointsVector(joints:Vector., skin:Skin) : Vector. { - var joint:name_700 = null; + var joint:Joint = null; var count:int = int(joints.length); - var result:Vector. = new Vector.(); + var result:Vector. = new Vector.(); for(var i:int = 0; i < count; i++) { joint = joints[i]; - result[i] = name_700(this.method_735(joint,skin,this)); + result[i] = Joint(this.findClonedJoint(joint,skin,this)); } return result; } - private function method_735(joint:name_700, parentSource:name_78, parentDest:name_78) : name_78 + private function findClonedJoint(joint:Joint, parentSource:Object3D, parentDest:Object3D) : Object3D { - var j:name_78 = null; - for(var srcChild:name_78 = parentSource.alternativa3d::childrenList,var dstChild:name_78 = parentDest.alternativa3d::childrenList; srcChild != null; ) + var j:Object3D = null; + for(var srcChild:Object3D = parentSource.alternativa3d::childrenList,var dstChild:Object3D = parentDest.alternativa3d::childrenList; srcChild != null; ) { if(srcChild == joint) { @@ -655,7 +655,7 @@ package package_19 } if(srcChild.alternativa3d::childrenList != null) { - j = this.method_735(joint,srcChild,dstChild); + j = this.findClonedJoint(joint,srcChild,dstChild); if(j != null) { return j; diff --git a/src/alternativa/engine3d/objects/SkyBox.as b/src/alternativa/engine3d/objects/SkyBox.as new file mode 100644 index 0000000..1dc12f3 --- /dev/null +++ b/src/alternativa/engine3d/objects/SkyBox.as @@ -0,0 +1,231 @@ +package alternativa.engine3d.objects +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.resources.Geometry; + + use namespace alternativa3d; + + public class SkyBox extends Mesh + { + public static const LEFT:String = "left"; + + public static const RIGHT:String = "right"; + + public static const BACK:String = "back"; + + public static const FRONT:String = "front"; + + public static const BOTTOM:String = "bottom"; + + public static const TOP:String = "top"; + + private static var transformProcedureStatic:Procedure = new Procedure(["sub t0.xyz, i0.xyz, c0.xyz","mul t0.x, t0.x, c0.w","mul t0.y, t0.y, c0.w","mul t0.z, t0.z, c0.w","add o0.xyz, t0.xyz, c0.xyz","mov o0.w, i0.w","#c0=cTrans"]); + + private var §_-gj§:Surface; + + private var §_-69§:Surface; + + private var §_-EB§:Surface; + + private var §_-iw§:Surface; + + private var §_-1V§:Surface; + + private var §_-Oz§:Surface; + + private var size:Number; + + public function SkyBox(size:Number, left:Material = null, right:Material = null, back:Material = null, front:Material = null, bottom:Material = null, top:Material = null, uvPadding:Number = 0) + { + super(); + size *= 0.5; + this.size = size; + geometry = new Geometry(24); + var attributes:Array = new Array(); + attributes[0] = VertexAttributes.POSITION; + attributes[1] = VertexAttributes.POSITION; + attributes[2] = VertexAttributes.POSITION; + attributes[6] = VertexAttributes.TEXCOORDS[0]; + attributes[7] = VertexAttributes.TEXCOORDS[0]; + geometry.addVertexStream(attributes); + geometry.setAttributeValues(VertexAttributes.POSITION,Vector.([-size,-size,size,-size,-size,-size,-size,size,-size,-size,size,size,size,size,size,size,size,-size,size,-size,-size,size,-size,size,size,-size,size,size,-size,-size,-size,-size,-size,-size,-size,size,-size,size,size,-size,size,-size,size,size,-size,size,size,size,-size,size,-size,-size,-size,-size,size,-size,-size,size,size,-size,-size,-size,size,-size,size,size,size,size,size,size,-size,size])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[0],Vector.([uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding])); + geometry.indices = Vector.([0,1,3,2,3,1,4,5,7,6,7,5,8,9,11,10,11,9,12,13,15,14,15,13,16,17,19,18,19,17,20,21,23,22,23,21]); + this.§_-gj§ = addSurface(left,0,2); + this.§_-69§ = addSurface(right,6,2); + this.§_-EB§ = addSurface(back,12,2); + this.§_-iw§ = addSurface(front,18,2); + this.§_-1V§ = addSurface(bottom,24,2); + this.§_-Oz§ = addSurface(top,30,2); + alternativa3d::transformProcedure = transformProcedureStatic; + } + + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void + { + var surface:Surface = null; + for(var i:int = 0; i < alternativa3d::_-Oy; ) + { + surface = alternativa3d::_-eW[i]; + if(surface.material != null) + { + surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,RenderPriority.SKY); + } + if(alternativa3d::listening) + { + camera.view.alternativa3d::addSurfaceToMouseEvents(surface,geometry,alternativa3d::transformProcedure); + } + i++; + } + } + + override alternativa3d function setTransformConstants(drawUnit:DrawUnit, surface:Surface, vertexShader:Linker, camera:Camera3D) : void + { + var dx:Number = NaN; + var dy:Number = NaN; + var dz:Number = NaN; + var len:Number = NaN; + var max:Number = 0; + dx = -this.size - alternativa3d::cameraToLocalTransform.d; + dy = -this.size - alternativa3d::cameraToLocalTransform.h; + dz = -this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = this.size - alternativa3d::cameraToLocalTransform.d; + dy = -this.size - alternativa3d::cameraToLocalTransform.h; + dz = -this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = this.size - alternativa3d::cameraToLocalTransform.d; + dy = this.size - alternativa3d::cameraToLocalTransform.h; + dz = -this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = -this.size - alternativa3d::cameraToLocalTransform.d; + dy = this.size - alternativa3d::cameraToLocalTransform.h; + dz = -this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = -this.size - alternativa3d::cameraToLocalTransform.d; + dy = -this.size - alternativa3d::cameraToLocalTransform.h; + dz = this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = this.size - alternativa3d::cameraToLocalTransform.d; + dy = -this.size - alternativa3d::cameraToLocalTransform.h; + dz = this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = this.size - alternativa3d::cameraToLocalTransform.d; + dy = this.size - alternativa3d::cameraToLocalTransform.h; + dz = this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + dx = -this.size - alternativa3d::cameraToLocalTransform.d; + dy = this.size - alternativa3d::cameraToLocalTransform.h; + dz = this.size - alternativa3d::cameraToLocalTransform.l; + len = dx * dx + dy * dy + dz * dz; + if(len > max) + { + max = len; + } + drawUnit.alternativa3d::setVertexConstantsFromNumbers(0,alternativa3d::cameraToLocalTransform.d,alternativa3d::cameraToLocalTransform.h,alternativa3d::cameraToLocalTransform.l,camera.farClipping / Math.sqrt(max)); + } + + public function getSide(side:String) : Surface + { + switch(side) + { + case LEFT: + return this.§_-gj§; + case RIGHT: + return this.§_-69§; + case BACK: + return this.§_-EB§; + case FRONT: + return this.§_-iw§; + case BOTTOM: + return this.§_-1V§; + case TOP: + return this.§_-Oz§; + default: + return null; + } + } + + override public function clone() : Object3D + { + var res:SkyBox = new SkyBox(0); + res.clonePropertiesFrom(this); + return res; + } + + override protected function clonePropertiesFrom(source:Object3D) : void + { + var surface:Surface = null; + var newSurface:Surface = null; + super.clonePropertiesFrom(source); + var src:SkyBox = source as SkyBox; + for(var i:int = 0; i < src.alternativa3d::_-Oy; ) + { + surface = src.alternativa3d::_-eW[i]; + newSurface = alternativa3d::_-eW[i]; + if(surface == src.§_-gj§) + { + this.§_-gj§ = newSurface; + } + else if(surface == src.§_-69§) + { + this.§_-69§ = newSurface; + } + else if(surface == src.§_-EB§) + { + this.§_-EB§ = newSurface; + } + else if(surface == src.§_-iw§) + { + this.§_-iw§ = newSurface; + } + else if(surface == src.§_-1V§) + { + this.§_-1V§ = newSurface; + } + else if(surface == src.§_-Oz§) + { + this.§_-Oz§ = newSurface; + } + i++; + } + } + } +} + diff --git a/src/alternativa/engine3d/objects/Sprite3D.as b/src/alternativa/engine3d/objects/Sprite3D.as new file mode 100644 index 0000000..52813d9 --- /dev/null +++ b/src/alternativa/engine3d/objects/Sprite3D.as @@ -0,0 +1,249 @@ +package alternativa.engine3d.objects +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Debug; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.resources.Geometry; + import flash.display3D.Context3D; + import flash.utils.Dictionary; + + use namespace alternativa3d; + + public class Sprite3D extends Object3D + { + private static const geometries:Dictionary = new Dictionary(); + + private static var transformProcedureStatic:Procedure = new Procedure(["sub t0.z, i0.x, c3.x","sub t0.w, i0.y, c3.y","mul t0.z, t0.z, c3.z","mul t0.w, t0.w, c3.w","mov t1.z, c4.w","sin t1.x, t1.z","cos t1.y, t1.z","mul t1.z, t0.z, t1.y","mul t1.w, t0.w, t1.x","sub t0.x, t1.z, t1.w","mul t1.z, t0.z, t1.x","mul t1.w, t0.w, t1.y","add t0.y, t1.z, t1.w","add t0.x, t0.x, c4.x","add t0.y, t0.y, c4.y","add t0.z, i0.z, c4.z","mov t0.w, i0.w","dp4 o0.x, t0, c0","dp4 o0.y, t0, c1","dp4 o0.z, t0, c2","mov o0.w, t0.w","#c0=trans1","#c1=trans2","#c2=trans3","#c3=size","#c4=coords"]); + + private static var deltaTransformProcedureStatic:Procedure = new Procedure(["mov t1.z, c4.w","sin t1.x, t1.z","cos t1.y, t1.z","mul t1.z, i0.x, t1.y","mul t1.w, i0.y, t1.x","sub t0.x, t1.z, t1.w","mul t1.z, i0.x, t1.x","mul t1.w, i0.y, t1.y","add t0.y, t1.z, t1.w","mov t0.z, i0.z","mov t0.w, i0.w","dp3 o0.x, t0, c0","dp3 o0.y, t0, c1","dp3 o0.z, t0, c2","#c0=trans1","#c1=trans2","#c2=trans3","#c3=size","#c4=coords"]); + + public var originX:Number = 0.5; + + public var originY:Number = 0.5; + + public var rotation:Number = 0; + + public var width:Number; + + public var height:Number; + + public var perspectiveScale:Boolean = true; + + public var alwaysOnTop:Boolean = false; + + alternativa3d var surface:Surface; + + public function Sprite3D(width:Number, height:Number, material:Material = null) + { + super(); + this.width = width; + this.height = height; + this.alternativa3d::surface = new Surface(); + this.alternativa3d::surface.alternativa3d::object = this; + this.material = material; + this.alternativa3d::surface.indexBegin = 0; + this.alternativa3d::surface.numTriangles = 2; + alternativa3d::transformProcedure = transformProcedureStatic; + alternativa3d::deltaTransformProcedure = deltaTransformProcedureStatic; + } + + public function get material() : Material + { + return this.alternativa3d::surface.material; + } + + public function set material(value:Material) : void + { + this.alternativa3d::surface.material = value; + } + + override alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void + { + if(this.alternativa3d::surface.material != null) + { + this.alternativa3d::surface.material.alternativa3d::fillResources(resources,resourceType); + } + super.alternativa3d::fillResources(resources,hierarchy,resourceType); + } + + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void + { + var debug:int = 0; + var geometry:Geometry = this.alternativa3d::getGeometry(camera.alternativa3d::context3D); + if(this.alternativa3d::surface.material != null) + { + this.alternativa3d::surface.material.alternativa3d::collectDraws(camera,this.alternativa3d::surface,geometry,lights,lightsLength,this.alwaysOnTop ? RenderPriority.NEXT_LAYER : -1); + } + if(alternativa3d::listening) + { + camera.view.alternativa3d::addSurfaceToMouseEvents(this.alternativa3d::surface,geometry,alternativa3d::transformProcedure); + } + if(camera.debug) + { + debug = int(camera.alternativa3d::checkInDebug(this)); + if(Boolean(debug & Debug.BOUNDS) && boundBox != null) + { + Debug.alternativa3d::drawBoundBox(camera,boundBox,alternativa3d::localToCameraTransform); + } + } + } + + override alternativa3d function setTransformConstants(drawUnit:DrawUnit, surface:Surface, vertexShader:Linker, camera:Camera3D) : void + { + var scale:Number = Number(Math.sqrt(alternativa3d::localToCameraTransform.a * alternativa3d::localToCameraTransform.a + alternativa3d::localToCameraTransform.e * alternativa3d::localToCameraTransform.e + alternativa3d::localToCameraTransform.i * alternativa3d::localToCameraTransform.i)); + scale += Math.sqrt(alternativa3d::localToCameraTransform.b * alternativa3d::localToCameraTransform.b + alternativa3d::localToCameraTransform.f * alternativa3d::localToCameraTransform.f + alternativa3d::localToCameraTransform.j * alternativa3d::localToCameraTransform.j); + scale += Math.sqrt(alternativa3d::localToCameraTransform.c * alternativa3d::localToCameraTransform.c + alternativa3d::localToCameraTransform.g * alternativa3d::localToCameraTransform.g + alternativa3d::localToCameraTransform.k * alternativa3d::localToCameraTransform.k); + scale /= 3; + if(!this.perspectiveScale && !camera.orthographic) + { + scale *= alternativa3d::localToCameraTransform.l / camera.alternativa3d::focalLength; + } + drawUnit.alternativa3d::setVertexConstantsFromTransform(0,alternativa3d::cameraToLocalTransform); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(3,this.originX,this.originY,this.width * scale,this.height * scale); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(4,alternativa3d::localToCameraTransform.d,alternativa3d::localToCameraTransform.h,alternativa3d::localToCameraTransform.l,this.rotation); + } + + alternativa3d function getGeometry(context:Context3D) : Geometry + { + var attributes:Array = null; + var geometry:Geometry = geometries[context]; + if(geometry == null) + { + geometry = new Geometry(4); + attributes = new Array(); + attributes[0] = VertexAttributes.POSITION; + attributes[1] = VertexAttributes.POSITION; + attributes[2] = VertexAttributes.POSITION; + attributes[3] = VertexAttributes.NORMAL; + attributes[4] = VertexAttributes.NORMAL; + attributes[5] = VertexAttributes.NORMAL; + attributes[6] = VertexAttributes.TEXCOORDS[0]; + attributes[7] = VertexAttributes.TEXCOORDS[0]; + attributes[8] = VertexAttributes.TEXCOORDS[1]; + attributes[9] = VertexAttributes.TEXCOORDS[1]; + attributes[10] = VertexAttributes.TEXCOORDS[2]; + attributes[11] = VertexAttributes.TEXCOORDS[2]; + attributes[12] = VertexAttributes.TEXCOORDS[3]; + attributes[13] = VertexAttributes.TEXCOORDS[3]; + attributes[14] = VertexAttributes.TEXCOORDS[4]; + attributes[15] = VertexAttributes.TEXCOORDS[4]; + attributes[16] = VertexAttributes.TEXCOORDS[5]; + attributes[17] = VertexAttributes.TEXCOORDS[5]; + attributes[18] = VertexAttributes.TEXCOORDS[6]; + attributes[19] = VertexAttributes.TEXCOORDS[6]; + attributes[20] = VertexAttributes.TEXCOORDS[7]; + attributes[21] = VertexAttributes.TEXCOORDS[7]; + attributes[22] = VertexAttributes.TANGENT4; + attributes[23] = VertexAttributes.TANGENT4; + attributes[24] = VertexAttributes.TANGENT4; + attributes[25] = VertexAttributes.TANGENT4; + geometry.addVertexStream(attributes); + geometry.setAttributeValues(VertexAttributes.POSITION,Vector.([0,0,0,0,1,0,1,1,0,1,0,0])); + geometry.setAttributeValues(VertexAttributes.NORMAL,Vector.([0,0,-1,0,0,-1,0,0,-1,0,0,-1])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[0],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[1],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[2],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[3],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[4],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[5],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[6],Vector.([0,0,0,1,1,1,1,0])); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[7],Vector.([0,0,0,1,1,1,1,0])); + geometry.indices = Vector.([0,1,3,2,3,1]); + geometry.upload(context); + geometries[context] = geometry; + } + return geometry; + } + + override public function clone() : Object3D + { + var res:Sprite3D = new Sprite3D(this.width,this.height); + res.clonePropertiesFrom(this); + return res; + } + + override protected function clonePropertiesFrom(source:Object3D) : void + { + super.clonePropertiesFrom(source); + var src:Sprite3D = source as Sprite3D; + this.width = src.width; + this.height = src.height; + this.material = src.material; + this.originX = src.originX; + this.originY = src.originY; + this.rotation = src.rotation; + this.perspectiveScale = src.perspectiveScale; + this.alwaysOnTop = src.alwaysOnTop; + } + + override alternativa3d function updateBoundBox(boundBox:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void + { + var ax:Number = NaN; + var ay:Number = NaN; + var az:Number = NaN; + var size:Number = NaN; + var ww:Number = this.width; + var hh:Number = this.height; + var w:Number = (this.originX >= 0.5 ? this.originX : 1 - this.originX) * ww; + var h:Number = (this.originY >= 0.5 ? this.originY : 1 - this.originY) * hh; + var radius:Number = Number(Math.sqrt(w * w + h * h)); + var cx:Number = 0; + var cy:Number = 0; + var cz:Number = 0; + if(transform != null) + { + ax = transform.a; + ay = transform.e; + az = transform.i; + size = Number(Math.sqrt(ax * ax + ay * ay + az * az)); + ax = transform.b; + ay = transform.f; + az = transform.j; + size += Math.sqrt(ax * ax + ay * ay + az * az); + ax = transform.c; + ay = transform.g; + az = transform.k; + size += Math.sqrt(ax * ax + ay * ay + az * az); + radius *= size / 3; + cx = transform.d; + cy = transform.h; + cz = transform.l; + } + if(cx - radius < boundBox.minX) + { + boundBox.minX = cx - radius; + } + if(cx + radius > boundBox.maxX) + { + boundBox.maxX = cx + radius; + } + if(cy - radius < boundBox.minY) + { + boundBox.minY = cy - radius; + } + if(cy + radius > boundBox.maxY) + { + boundBox.maxY = cy + radius; + } + if(cz - radius < boundBox.minZ) + { + boundBox.minZ = cz - radius; + } + if(cz + radius > boundBox.maxZ) + { + boundBox.maxZ = cz + radius; + } + } + } +} + diff --git a/src/package_19/name_117.as b/src/alternativa/engine3d/objects/Surface.as similarity index 55% rename from src/package_19/name_117.as rename to src/alternativa/engine3d/objects/Surface.as index 224c701..e14a7e6 100644 --- a/src/package_19/name_117.as +++ b/src/alternativa/engine3d/objects/Surface.as @@ -1,29 +1,29 @@ -package package_19 +package alternativa.engine3d.objects { import alternativa.engine3d.alternativa3d; - import package_21.name_78; - import package_4.class_4; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.materials.Material; use namespace alternativa3d; - public class name_117 + public class Surface { - public var material:class_4; + public var material:Material; public var indexBegin:int = 0; public var numTriangles:int = 0; - alternativa3d var object:name_78; + alternativa3d var object:Object3D; - public function name_117() + public function Surface() { super(); } - public function clone() : name_117 + public function clone() : Surface { - var res:name_117 = new name_117(); + var res:Surface = new Surface(); res.alternativa3d::object = this.alternativa3d::object; res.material = this.material; res.indexBegin = this.indexBegin; diff --git a/src/alternativa/engine3d/objects/WireFrame.as b/src/alternativa/engine3d/objects/WireFrame.as new file mode 100644 index 0000000..5f24446 --- /dev/null +++ b/src/alternativa/engine3d/objects/WireFrame.as @@ -0,0 +1,228 @@ +package alternativa.engine3d.objects +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.A3DUtils; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.WireGeometry; + import flash.display3D.Context3DProgramType; + import flash.geom.Vector3D; + import flash.utils.Dictionary; + import flash.utils.getDefinitionByName; + import flash.utils.getQualifiedClassName; + + use namespace alternativa3d; + + public class WireFrame extends Object3D + { + alternativa3d static const shaderProgram:ShaderProgram = initProgram(); + + public var thickness:Number = 1; + + alternativa3d var §_-lc§:Vector. = new Vector.(4,true); + + alternativa3d var geometry:WireGeometry; + + public function WireFrame(color:uint = 0, alpha:Number = 1, thickness:Number = 0.5) + { + super(); + this.color = color; + this.alpha = alpha; + this.thickness = thickness; + this.alternativa3d::geometry = new WireGeometry(); + } + + private static function initProgram() : ShaderProgram + { + var vertexShader:Linker = new Linker(Context3DProgramType.VERTEX); + var transform:Procedure = new Procedure(); + transform.compileFromArray(["mov t0, a0","mov t0.w, c0.y","m34 t0.xyz, t0, c2","m34 t1.xyz, a1, c2","sub t2, t1.xyz, t0.xyz","slt t5.x, t0.z, c1.z","sub t5.y, c0.y, t5.x","add t4.x, t0.z, c0.z","sub t4.y, t0.z, t1.z","add t4.y, t4.y, c0.w","div t4.z, t4.x, t4.y","mul t4.xyz, t4.zzz, t2.xyz","add t3.xyz, t0.xyz, t4.xyz","mul t0, t0, t5.y","mul t3.xyz, t3.xyz, t5.x","add t0, t0, t3.xyz","sub t2, t1.xyz, t0.xyz","crs t3.xyz, t2, t0","nrm t3.xyz, t3.xyz","mul t3.xyz, t3.xyz, a0.w","mul t3.xyz, t3.xyz, c1.w","mul t4.x, t0.z, c1.x","mul t3.xyz, t3.xyz, t4.xxx","add t0.xyz, t0.xyz, t3.xyz","m44 o0, t0, c5"]); + transform.assignVariableName(VariableType.ATTRIBUTE,0,"pos1"); + transform.assignVariableName(VariableType.ATTRIBUTE,1,"pos2"); + transform.assignVariableName(VariableType.CONSTANT,0,"ZERO"); + transform.assignVariableName(VariableType.CONSTANT,1,"consts"); + transform.assignVariableName(VariableType.CONSTANT,2,"worldView",3); + transform.assignVariableName(VariableType.CONSTANT,5,"proj",4); + vertexShader.addProcedure(transform); + vertexShader.link(); + var fragmentShader:Linker = new Linker(Context3DProgramType.FRAGMENT); + var fp:Procedure = new Procedure(); + fp.compileFromArray(["mov o0, c0"]); + fp.assignVariableName(VariableType.CONSTANT,0,"color"); + fragmentShader.addProcedure(fp); + fragmentShader.link(); + return new ShaderProgram(vertexShader,fragmentShader); + } + + public static function createLinesList(points:Vector., color:uint = 0, alpha:Number = 1, thickness:Number = 1) : WireFrame + { + var p0:Vector3D = null; + var p1:Vector3D = null; + var result:WireFrame = new WireFrame(color,alpha,thickness); + var geometry:WireGeometry = result.alternativa3d::geometry; + for(var i:uint = 0,var count:uint = points.length - 1; i < count; i += 2) + { + p0 = points[i]; + p1 = points[i + 1]; + geometry.alternativa3d::addLine(p0.x,p0.y,p0.z,p1.x,p1.y,p1.z); + } + result.calculateBoundBox(); + return result; + } + + public static function createLineStrip(points:Vector., color:uint = 0, alpha:Number = 1, thickness:Number = 1) : WireFrame + { + var p0:Vector3D = null; + var p1:Vector3D = null; + var result:WireFrame = new WireFrame(color,alpha,thickness); + var geometry:WireGeometry = result.alternativa3d::geometry; + for(var i:uint = 0,var count:uint = points.length - 1; i < count; i++) + { + p0 = points[i]; + p1 = points[i + 1]; + geometry.alternativa3d::addLine(p0.x,p0.y,p0.z,p1.x,p1.y,p1.z); + } + result.calculateBoundBox(); + return result; + } + + public static function createEdges(mesh:Mesh, color:uint = 0, alpha:Number = 1, thickness:Number = 1) : WireFrame + { + var index:uint = 0; + var v1x:Number = NaN; + var v1y:Number = NaN; + var v1z:Number = NaN; + var v2x:Number = NaN; + var v2y:Number = NaN; + var v2z:Number = NaN; + var v3x:Number = NaN; + var v3y:Number = NaN; + var v3z:Number = NaN; + var result:WireFrame = new WireFrame(color,alpha,thickness); + var geometry:Geometry = mesh.geometry; + var resultGeometry:WireGeometry = result.alternativa3d::geometry; + var edges:Dictionary = new Dictionary(); + var indices:Vector. = geometry.indices; + var vertices:Vector. = geometry.getAttributeValues(VertexAttributes.POSITION); + for(var i:int = 0,var count:int = int(indices.length); i < count; ) + { + index = indices[i] * 3; + v1x = vertices[index]; + index++; + v1y = vertices[index]; + index++; + v1z = vertices[index]; + index = indices[int(i + 1)] * 3; + v2x = vertices[index]; + index++; + v2y = vertices[index]; + index++; + v2z = vertices[index]; + index = indices[int(i + 2)] * 3; + v3x = vertices[index]; + index++; + v3y = vertices[index]; + index++; + v3z = vertices[index]; + if(checkEdge(edges,v1x,v1y,v1z,v2x,v2y,v2z)) + { + resultGeometry.alternativa3d::addLine(v1x,v1y,v1z,v2x,v2y,v2z); + } + if(checkEdge(edges,v2x,v2y,v2z,v3x,v3y,v3z)) + { + resultGeometry.alternativa3d::addLine(v2x,v2y,v2z,v3x,v3y,v3z); + } + if(checkEdge(edges,v1x,v1y,v1z,v3x,v3y,v3z)) + { + resultGeometry.alternativa3d::addLine(v1x,v1y,v1z,v3x,v3y,v3z); + } + i += 3; + } + result.calculateBoundBox(); + result.alternativa3d::_x = mesh.alternativa3d::_x; + result.alternativa3d::_y = mesh.alternativa3d::_y; + result.alternativa3d::_z = mesh.alternativa3d::_z; + result.alternativa3d::_rotationX = mesh.alternativa3d::_rotationX; + result.alternativa3d::_rotationY = mesh.alternativa3d::_rotationY; + result.alternativa3d::_rotationZ = mesh.alternativa3d::_rotationZ; + result.alternativa3d::_scaleX = mesh.alternativa3d::_scaleX; + result.alternativa3d::_scaleY = mesh.alternativa3d::_scaleY; + result.alternativa3d::_scaleZ = mesh.alternativa3d::_scaleZ; + return result; + } + + private static function checkEdge(edges:Dictionary, v1x:Number, v1y:Number, v1z:Number, v2x:Number, v2y:Number, v2z:Number) : Boolean + { + var str:String = null; + if(v1x * v1x + v1y * v1y + v1z * v1z < v2x * v2x + v2y * v2y + v2z * v2z) + { + str = v1x.toString() + v1y.toString() + v1z.toString() + v2x.toString() + v2y.toString() + v2z.toString(); + } + else + { + str = v2x.toString() + v2y.toString() + v2z.toString() + v1x.toString() + v1y.toString() + v1z.toString(); + } + if(Boolean(edges[str])) + { + return false; + } + edges[str] = true; + return true; + } + + public function get alpha() : Number + { + return this.alternativa3d::_-lc[3]; + } + + public function set alpha(value:Number) : void + { + this.alternativa3d::_-lc[3] = value; + } + + public function get color() : uint + { + return this.alternativa3d::_-lc[0] * 255 << 16 | this.alternativa3d::_-lc[1] * 255 << 8 | this.alternativa3d::_-lc[2] * 255; + } + + public function set color(value:uint) : void + { + this.alternativa3d::_-lc[0] = (value >> 16 & 0xFF) / 255; + this.alternativa3d::_-lc[1] = (value >> 8 & 0xFF) / 255; + this.alternativa3d::_-lc[2] = (value & 0xFF) / 255; + } + + override alternativa3d function updateBoundBox(boundBox:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void + { + super.alternativa3d::updateBoundBox(boundBox,hierarchy,transform); + if(this.alternativa3d::geometry != null) + { + this.alternativa3d::geometry.alternativa3d::updateBoundBox(boundBox,transform); + } + } + + override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void + { + this.alternativa3d::geometry.alternativa3d::getDrawUnits(camera,this.alternativa3d::_-lc,this.thickness,this,alternativa3d::shaderProgram); + } + + override alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void + { + super.alternativa3d::fillResources(resources,hierarchy,resourceType); + if(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.alternativa3d::geometry)) as Class,resourceType)) + { + resources[this.alternativa3d::geometry] = true; + } + } + } +} + diff --git a/src/package_96/name_279.as b/src/alternativa/engine3d/primitives/Box.as similarity index 80% rename from src/package_96/name_279.as rename to src/alternativa/engine3d/primitives/Box.as index e1931f3..e76133d 100644 --- a/src/package_96/name_279.as +++ b/src/alternativa/engine3d/primitives/Box.as @@ -1,20 +1,20 @@ -package package_96 +package alternativa.engine3d.primitives { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.resources.Geometry; import flash.utils.ByteArray; import flash.utils.Endian; - import package_19.name_380; - import package_21.name_126; - import package_21.name_386; - import package_21.name_78; - import package_28.name_119; - import package_4.class_4; use namespace alternativa3d; - public class name_279 extends name_380 + public class Box extends Mesh { - public function name_279(width:Number = 100, length:Number = 100, height:Number = 100, widthSegments:uint = 1, lengthSegments:uint = 1, heightSegments:uint = 1, reverse:Boolean = false, material:class_4 = null) + public function Box(width:Number = 100, length:Number = 100, height:Number = 100, widthSegments:uint = 1, lengthSegments:uint = 1, heightSegments:uint = 1, reverse:Boolean = false, material:Material = null) { var x:int = 0; var y:int = 0; @@ -60,7 +60,7 @@ package package_96 { if(x < widthSegments && y < lengthSegments) { - this.method_375(indices,vertices,(x + 1) * lp + y + 1,(x + 1) * lp + y,x * lp + y,x * lp + y + 1,0,0,-1,halfHeight,0,-1,0,0,reverse); + this.createFace(indices,vertices,(x + 1) * lp + y + 1,(x + 1) * lp + y,x * lp + y,x * lp + y + 1,0,0,-1,halfHeight,0,-1,0,0,reverse); } y++; } @@ -86,7 +86,7 @@ package package_96 { if(x < widthSegments && y < lengthSegments) { - this.method_375(indices,vertices,o + x * lp + y,o + (x + 1) * lp + y,o + (x + 1) * lp + y + 1,o + x * lp + y + 1,0,0,1,halfHeight,0,-1,0,0,reverse); + this.createFace(indices,vertices,o + x * lp + y,o + (x + 1) * lp + y,o + (x + 1) * lp + y + 1,o + x * lp + y + 1,0,0,1,halfHeight,0,-1,0,0,reverse); } y++; } @@ -112,7 +112,7 @@ package package_96 { if(x < widthSegments && z < heightSegments) { - this.method_375(indices,vertices,o + x * hp + z,o + (x + 1) * hp + z,o + (x + 1) * hp + z + 1,o + x * hp + z + 1,0,-1,0,halfLength,0,0,-1,0,reverse); + this.createFace(indices,vertices,o + x * hp + z,o + (x + 1) * hp + z,o + (x + 1) * hp + z + 1,o + x * hp + z + 1,0,-1,0,halfLength,0,0,-1,0,reverse); } z++; } @@ -138,7 +138,7 @@ package package_96 { if(x < widthSegments && z < heightSegments) { - this.method_375(indices,vertices,o + x * hp + z,o + x * hp + z + 1,o + (x + 1) * hp + z + 1,o + (x + 1) * hp + z,0,1,0,halfLength,0,0,-1,0,reverse); + this.createFace(indices,vertices,o + x * hp + z,o + x * hp + z + 1,o + (x + 1) * hp + z + 1,o + (x + 1) * hp + z,0,1,0,halfLength,0,0,-1,0,reverse); } z++; } @@ -164,7 +164,7 @@ package package_96 { if(y < lengthSegments && z < heightSegments) { - this.method_375(indices,vertices,o + y * hp + z,o + y * hp + z + 1,o + (y + 1) * hp + z + 1,o + (y + 1) * hp + z,-1,0,0,halfWidth,0,0,-1,0,reverse); + this.createFace(indices,vertices,o + y * hp + z,o + y * hp + z + 1,o + (y + 1) * hp + z + 1,o + (y + 1) * hp + z,-1,0,0,halfWidth,0,0,-1,0,reverse); } z++; } @@ -189,31 +189,31 @@ package package_96 { if(y < lengthSegments && z < heightSegments) { - this.method_375(indices,vertices,o + y * hp + z,o + (y + 1) * hp + z,o + (y + 1) * hp + z + 1,o + y * hp + z + 1,1,0,0,halfWidth,0,0,-1,0,reverse); + this.createFace(indices,vertices,o + y * hp + z,o + (y + 1) * hp + z,o + (y + 1) * hp + z + 1,o + y * hp + z + 1,1,0,0,halfWidth,0,0,-1,0,reverse); } z++; } } - geometry = new name_119(); + geometry = new Geometry(); geometry.alternativa3d::_indices = indices; var attributes:Array = new Array(); - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; - attributes[3] = name_126.TEXCOORDS[0]; - attributes[4] = name_126.TEXCOORDS[0]; - attributes[5] = name_126.NORMAL; - attributes[6] = name_126.NORMAL; - attributes[7] = name_126.NORMAL; - attributes[8] = name_126.TANGENT4; - attributes[9] = name_126.TANGENT4; - attributes[10] = name_126.TANGENT4; - attributes[11] = name_126.TANGENT4; + attributes[0] = VertexAttributes.POSITION; + attributes[1] = VertexAttributes.POSITION; + attributes[2] = VertexAttributes.POSITION; + attributes[3] = VertexAttributes.TEXCOORDS[0]; + attributes[4] = VertexAttributes.TEXCOORDS[0]; + attributes[5] = VertexAttributes.NORMAL; + attributes[6] = VertexAttributes.NORMAL; + attributes[7] = VertexAttributes.NORMAL; + attributes[8] = VertexAttributes.TANGENT4; + attributes[9] = VertexAttributes.TANGENT4; + attributes[10] = VertexAttributes.TANGENT4; + attributes[11] = VertexAttributes.TANGENT4; geometry.addVertexStream(attributes); geometry.alternativa3d::_vertexStreams[0].data = vertices; geometry.alternativa3d::_numVertices = vertices.length / 48; addSurface(material,0,indices.length / 3); - boundBox = new name_386(); + boundBox = new BoundBox(); boundBox.minX = -halfWidth; boundBox.minY = -halfLength; boundBox.minZ = -halfHeight; @@ -222,7 +222,7 @@ package package_96 boundBox.maxZ = halfHeight; } - private function method_375(indices:Vector., vertices:ByteArray, a:int, b:int, c:int, d:int, nx:Number, ny:Number, nz:Number, no:Number, tx:Number, ty:Number, tz:Number, tw:Number, reverse:Boolean) : void + private function createFace(indices:Vector., vertices:ByteArray, a:int, b:int, c:int, d:int, nx:Number, ny:Number, nz:Number, no:Number, tx:Number, ty:Number, tz:Number, tw:Number, reverse:Boolean) : void { var v:int = 0; if(reverse) @@ -278,9 +278,9 @@ package package_96 vertices.writeFloat(tw); } - override public function clone() : name_78 + override public function clone() : Object3D { - var res:name_279 = new name_279(0,0,0,0,0,0); + var res:Box = new Box(0,0,0,0,0,0); res.clonePropertiesFrom(this); return res; } diff --git a/src/package_28/name_241.as b/src/alternativa/engine3d/resources/ATFTextureResource.as similarity index 89% rename from src/package_28/name_241.as rename to src/alternativa/engine3d/resources/ATFTextureResource.as index 9216aee..5e24629 100644 --- a/src/package_28/name_241.as +++ b/src/alternativa/engine3d/resources/ATFTextureResource.as @@ -1,4 +1,4 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; import flash.display3D.Context3D; @@ -9,11 +9,11 @@ package package_28 use namespace alternativa3d; - public class name_241 extends name_129 + public class ATFTextureResource extends TextureResource { public var data:ByteArray; - public function name_241(data:ByteArray) + public function ATFTextureResource(data:ByteArray) { super(); this.data = data; diff --git a/src/package_28/name_259.as b/src/alternativa/engine3d/resources/BitmapCubeTextureResource.as similarity index 93% rename from src/package_28/name_259.as rename to src/alternativa/engine3d/resources/BitmapCubeTextureResource.as index 5f6d874..c57a671 100644 --- a/src/package_28/name_259.as +++ b/src/alternativa/engine3d/resources/BitmapCubeTextureResource.as @@ -1,4 +1,4 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; import flash.display.BitmapData; @@ -12,7 +12,7 @@ package package_28 use namespace alternativa3d; - public class name_259 extends name_129 + public class BitmapCubeTextureResource extends TextureResource { private static var temporaryBitmapData:BitmapData; @@ -36,7 +36,7 @@ package package_28 public var back:BitmapData; - public function name_259(left:BitmapData, right:BitmapData, bottom:BitmapData, top:BitmapData, back:BitmapData, front:BitmapData) + public function BitmapCubeTextureResource(left:BitmapData, right:BitmapData, bottom:BitmapData, top:BitmapData, back:BitmapData, front:BitmapData) { super(); this.left = left; diff --git a/src/package_28/name_93.as b/src/alternativa/engine3d/resources/BitmapTextureResource.as similarity index 91% rename from src/package_28/name_93.as rename to src/alternativa/engine3d/resources/BitmapTextureResource.as index 8c2af66..98f043b 100644 --- a/src/package_28/name_93.as +++ b/src/alternativa/engine3d/resources/BitmapTextureResource.as @@ -1,4 +1,4 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; import flash.display.BitmapData; @@ -12,7 +12,7 @@ package package_28 use namespace alternativa3d; - public class name_93 extends name_129 + public class BitmapTextureResource extends TextureResource { private static const rect:Rectangle = new Rectangle(); @@ -24,13 +24,13 @@ package package_28 public var data:BitmapData; - public function name_93(data:BitmapData) + public function BitmapTextureResource(data:BitmapData) { super(); this.data = data; } - alternativa3d static function method_272(texture:Texture, bitmapData:BitmapData) : void + alternativa3d static function createMips(texture:Texture, bitmapData:BitmapData) : void { rect.width = bitmapData.width; rect.height = bitmapData.height; @@ -116,7 +116,7 @@ package package_28 throw new Error("Cannot upload without data"); } - alternativa3d function method_272(texture:Texture, bitmapData:BitmapData) : void + alternativa3d function createMips(texture:Texture, bitmapData:BitmapData) : void { rect.width = bitmapData.width; rect.height = bitmapData.height; diff --git a/src/package_28/name_167.as b/src/alternativa/engine3d/resources/ExternalTextureResource.as similarity index 75% rename from src/package_28/name_167.as rename to src/alternativa/engine3d/resources/ExternalTextureResource.as index 1b9e174..f760a38 100644 --- a/src/package_28/name_167.as +++ b/src/alternativa/engine3d/resources/ExternalTextureResource.as @@ -1,4 +1,4 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; import flash.display3D.Context3D; @@ -6,11 +6,11 @@ package package_28 use namespace alternativa3d; - public class name_167 extends name_129 + public class ExternalTextureResource extends TextureResource { public var url:String; - public function name_167(url:String) + public function ExternalTextureResource(url:String) { super(); this.url = url; diff --git a/src/package_28/name_119.as b/src/alternativa/engine3d/resources/Geometry.as similarity index 79% rename from src/package_28/name_119.as rename to src/alternativa/engine3d/resources/Geometry.as index 3eb373a..9377aae 100644 --- a/src/package_28/name_119.as +++ b/src/alternativa/engine3d/resources/Geometry.as @@ -1,6 +1,12 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.RayIntersectionData; + import alternativa.engine3d.core.Resource; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.core.VertexStream; import flash.display3D.Context3D; import flash.display3D.IndexBuffer3D; import flash.display3D.VertexBuffer3D; @@ -8,32 +14,26 @@ package package_28 import flash.geom.Vector3D; import flash.utils.ByteArray; import flash.utils.Endian; - import package_21.name_126; - import package_21.name_139; - import package_21.name_386; - import package_21.name_387; - import package_21.name_432; - import package_21.name_77; use namespace alternativa3d; - public class name_119 extends name_77 + public class Geometry extends Resource { - alternativa3d var _vertexStreams:Vector. = new Vector.(); + alternativa3d var _vertexStreams:Vector. = new Vector.(); - alternativa3d var name_132:IndexBuffer3D; + alternativa3d var §_-EM§:IndexBuffer3D; alternativa3d var _numVertices:int; alternativa3d var _indices:Vector. = new Vector.(); - alternativa3d var var_170:Vector. = new Vector.(); + alternativa3d var §_-GM§:Vector. = new Vector.(); alternativa3d var _attributesOffsets:Vector. = new Vector.(); - private var var_171:Vector. = new Vector.(); + private var §_-QD§:Vector. = new Vector.(); - public function name_119(numVertices:int = 0) + public function Geometry(numVertices:int = 0) { super(); this.alternativa3d::_numVertices = numVertices; @@ -68,7 +68,7 @@ package package_28 public function set numVertices(value:int) : void { - var vBuffer:name_432 = null; + var vBuffer:VertexStream = null; var numMappings:int = 0; if(this.alternativa3d::_numVertices != value) { @@ -91,7 +91,7 @@ package package_28 { throw new Error("Must be at least one attribute ​​to create the buffer."); } - var vBuffer:name_432 = new name_432(); + var vBuffer:VertexStream = new VertexStream(); var newBufferIndex:int = int(this.alternativa3d::_vertexStreams.length); var attribute:uint = uint(attributes[0]); var stride:int = 1; @@ -102,25 +102,25 @@ package package_28 { if(attribute != 0) { - if(attribute < this.alternativa3d::var_170.length && this.alternativa3d::var_170[attribute] != null) + if(attribute < this.alternativa3d::_-GM.length && this.alternativa3d::_-GM[attribute] != null) { throw new Error("Attribute " + attribute + " already used in this geometry."); } - numStandartFloats = name_126.name_433(attribute); + numStandartFloats = VertexAttributes.getAttributeStride(attribute); if(numStandartFloats != 0 && numStandartFloats != stride) { throw new Error("Standard attributes must be predefined size."); } - if(this.alternativa3d::var_170.length < attribute) + if(this.alternativa3d::_-GM.length < attribute) { - this.alternativa3d::var_170.length = attribute + 1; + this.alternativa3d::_-GM.length = attribute + 1; this.alternativa3d::_attributesOffsets.length = attribute + 1; - this.var_171.length = attribute + 1; + this.§_-QD§.length = attribute + 1; } startIndex = i - stride; - this.alternativa3d::var_170[attribute] = vBuffer; + this.alternativa3d::_-GM[attribute] = vBuffer; this.alternativa3d::_attributesOffsets[attribute] = startIndex; - this.var_171[attribute] = stride; + this.§_-QD§[attribute] = stride; } stride = 1; } @@ -138,25 +138,25 @@ package package_28 return newBufferIndex; } - public function get method_276() : int + public function get numVertexStreams() : int { return this.alternativa3d::_vertexStreams.length; } - public function method_279(index:int) : Array + public function getVertexStreamAttributes(index:int) : Array { return this.alternativa3d::_vertexStreams[index].attributes.slice(); } - public function method_281(attribute:uint) : Boolean + public function hasAttribute(attribute:uint) : Boolean { - return attribute < this.alternativa3d::var_170.length && this.alternativa3d::var_170[attribute] != null; + return attribute < this.alternativa3d::_-GM.length && this.alternativa3d::_-GM[attribute] != null; } public function findVertexStreamByAttribute(attribute:uint) : int { var i:int = 0; - var vBuffer:name_432 = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; if(vBuffer != null) { for(i = 0; i < this.alternativa3d::_vertexStreams.length; ) @@ -173,7 +173,7 @@ package package_28 public function getAttributeOffset(attribute:uint) : int { - var vBuffer:name_432 = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); @@ -185,12 +185,12 @@ package package_28 { var srcIndex:int = 0; var j:int = 0; - var vBuffer:name_432 = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); } - var stride:int = this.var_171[attribute]; + var stride:int = this.§_-QD§[attribute]; if(values == null || values.length != stride * this.alternativa3d::_numVertices) { throw new Error("Values count must be the same."); @@ -209,17 +209,17 @@ package package_28 } } - public function method_275(attribute:uint) : Vector. + public function getAttributeValues(attribute:uint) : Vector. { var dstIndex:int = 0; var j:int = 0; - var vBuffer:name_432 = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); } var data:ByteArray = vBuffer.data; - var stride:int = this.var_171[attribute]; + var stride:int = this.§_-QD§[attribute]; var result:Vector. = new Vector.(stride * this.alternativa3d::_numVertices); var numMappings:int = int(vBuffer.attributes.length); var offset:int = this.alternativa3d::_attributesOffsets[attribute]; @@ -237,20 +237,20 @@ package package_28 override public function get isUploaded() : Boolean { - return this.alternativa3d::name_132 != null; + return this.alternativa3d::_-EM != null; } override public function upload(context3D:Context3D) : void { - var vBuffer:name_432 = null; + var vBuffer:VertexStream = null; var i:int = 0; var numMappings:int = 0; var data:ByteArray = null; var numBuffers:int = int(this.alternativa3d::_vertexStreams.length); - if(this.alternativa3d::name_132 != null) + if(this.alternativa3d::_-EM != null) { - this.alternativa3d::name_132.dispose(); - this.alternativa3d::name_132 = null; + this.alternativa3d::_-EM.dispose(); + this.alternativa3d::_-EM = null; for(i = 0; i < numBuffers; i++) { vBuffer = this.alternativa3d::_vertexStreams[i]; @@ -276,19 +276,19 @@ package package_28 i++; } var numIndices:int = int(this.alternativa3d::_indices.length); - this.alternativa3d::name_132 = context3D.createIndexBuffer(numIndices); - this.alternativa3d::name_132.uploadFromVector(this.alternativa3d::_indices,0,numIndices); + this.alternativa3d::_-EM = context3D.createIndexBuffer(numIndices); + this.alternativa3d::_-EM.uploadFromVector(this.alternativa3d::_indices,0,numIndices); } override public function dispose() : void { var numBuffers:int = 0; var i:int = 0; - var vBuffer:name_432 = null; - if(this.alternativa3d::name_132 != null) + var vBuffer:VertexStream = null; + if(this.alternativa3d::_-EM != null) { - this.alternativa3d::name_132.dispose(); - this.alternativa3d::name_132 = null; + this.alternativa3d::_-EM.dispose(); + this.alternativa3d::_-EM = null; numBuffers = int(this.alternativa3d::_vertexStreams.length); for(i = 0; i < numBuffers; i++) { @@ -299,43 +299,43 @@ package package_28 } } - public function method_278(data:Vector., startOffset:int, count:int) : void + public function updateIndexBufferInContextFromVector(data:Vector., startOffset:int, count:int) : void { - if(this.alternativa3d::name_132 == null) + if(this.alternativa3d::_-EM == null) { throw new Error("Geometry must be uploaded."); } - this.alternativa3d::name_132.uploadFromVector(data,startOffset,count); + this.alternativa3d::_-EM.uploadFromVector(data,startOffset,count); } - public function method_280(data:ByteArray, byteArrayOffset:int, startOffset:int, count:int) : void + public function updateIndexBufferInContextFromByteArray(data:ByteArray, byteArrayOffset:int, startOffset:int, count:int) : void { - if(this.alternativa3d::name_132 == null) + if(this.alternativa3d::_-EM == null) { throw new Error("Geometry must be uploaded."); } - this.alternativa3d::name_132.uploadFromByteArray(data,byteArrayOffset,startOffset,count); + this.alternativa3d::_-EM.uploadFromByteArray(data,byteArrayOffset,startOffset,count); } - public function method_277(index:int, data:Vector., startVertex:int, numVertices:int) : void + public function updateVertexBufferInContextFromVector(index:int, data:Vector., startVertex:int, numVertices:int) : void { - if(this.alternativa3d::name_132 == null) + if(this.alternativa3d::_-EM == null) { throw new Error("Geometry must be uploaded."); } this.alternativa3d::_vertexStreams[index].buffer.uploadFromVector(data,startVertex,numVertices); } - public function method_282(index:int, data:ByteArray, byteArrayOffset:int, startVertex:int, numVertices:int) : void + public function updateVertexBufferInContextFromByteArray(index:int, data:ByteArray, byteArrayOffset:int, startVertex:int, numVertices:int) : void { - if(this.alternativa3d::name_132 == null) + if(this.alternativa3d::_-EM == null) { throw new Error("Geometry must be uploaded."); } this.alternativa3d::_vertexStreams[index].buffer.uploadFromByteArray(data,byteArrayOffset,startVertex,numVertices); } - alternativa3d function intersectRay(origin:Vector3D, direction:Vector3D, indexBegin:uint, numTriangles:uint) : name_387 + alternativa3d function intersectRay(origin:Vector3D, direction:Vector3D, indexBegin:uint, numTriangles:uint) : RayIntersectionData { var nax:Number = NaN; var nay:Number = NaN; @@ -356,8 +356,8 @@ package package_28 var nrmY:Number = NaN; var nrmZ:Number = NaN; var point:Vector3D = null; - var positionStream:name_432 = null; - var uvStream:name_432 = null; + var positionStream:VertexStream = null; + var uvStream:VertexStream = null; var uvBuffer:ByteArray = null; var uvOffset:uint = 0; var uvStride:uint = 0; @@ -395,7 +395,7 @@ package package_28 var rx:Number = NaN; var ry:Number = NaN; var rz:Number = NaN; - var res:name_387 = null; + var res:RayIntersectionData = null; var abu:Number = NaN; var abv:Number = NaN; var acu:Number = NaN; @@ -424,16 +424,16 @@ package package_28 var dy:Number = Number(direction.y); var dz:Number = Number(direction.z); var minTime:Number = 1e+22; - var posAttribute:int = int(name_126.POSITION); - var uvAttribute:int = int(name_126.TEXCOORDS[0]); - if(name_126.POSITION >= this.alternativa3d::var_170.length || (positionStream = this.alternativa3d::var_170[posAttribute]) == null) + var posAttribute:int = int(VertexAttributes.POSITION); + var uvAttribute:int = int(VertexAttributes.TEXCOORDS[0]); + if(VertexAttributes.POSITION >= this.alternativa3d::_-GM.length || (positionStream = this.alternativa3d::_-GM[posAttribute]) == null) { throw new Error("Raycast require POSITION attribute"); } var positionBuffer:ByteArray = positionStream.data; var positionOffset:uint = uint(this.alternativa3d::_attributesOffsets[posAttribute] * 4); var stride:uint = positionStream.attributes.length * 4; - var hasUV:Boolean = uvAttribute < this.alternativa3d::var_170.length && (uvStream = this.alternativa3d::var_170[uvAttribute]) != null; + var hasUV:Boolean = uvAttribute < this.alternativa3d::_-GM.length && (uvStream = this.alternativa3d::_-GM[uvAttribute]) != null; if(hasUV) { uvBuffer = uvStream.data; @@ -565,7 +565,7 @@ package package_28 } if(point != null) { - res = new name_387(); + res = new RayIntersectionData(); res.point = point; res.time = minTime; if(hasUV) @@ -606,16 +606,16 @@ package package_28 alternativa3d function getVertexBuffer(attribute:int) : VertexBuffer3D { - var stream:name_432 = null; - if(attribute < this.alternativa3d::var_170.length) + var stream:VertexStream = null; + if(attribute < this.alternativa3d::_-GM.length) { - stream = this.alternativa3d::var_170[attribute]; + stream = this.alternativa3d::_-GM[attribute]; return stream != null ? stream.buffer : null; } return null; } - alternativa3d function updateBoundBox(boundBox:name_386, transform:name_139 = null) : void + alternativa3d function updateBoundBox(boundBox:BoundBox, transform:Transform3D = null) : void { var vx:Number = NaN; var vy:Number = NaN; @@ -623,12 +623,12 @@ package package_28 var x:Number = NaN; var y:Number = NaN; var z:Number = NaN; - var vBuffer:name_432 = name_126.POSITION < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[name_126.POSITION] : null; + var vBuffer:VertexStream = VertexAttributes.POSITION < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[VertexAttributes.POSITION] : null; if(vBuffer == null) { throw new Error("Cannot calculate BoundBox without data."); } - var offset:int = this.alternativa3d::_attributesOffsets[name_126.POSITION]; + var offset:int = this.alternativa3d::_attributesOffsets[VertexAttributes.POSITION]; var numMappings:int = int(vBuffer.attributes.length); var data:ByteArray = vBuffer.data; for(var i:int = 0; i < this.alternativa3d::_numVertices; ) diff --git a/src/package_28/name_129.as b/src/alternativa/engine3d/resources/TextureResource.as similarity index 74% rename from src/package_28/name_129.as rename to src/alternativa/engine3d/resources/TextureResource.as index 5e2f919..839afc1 100644 --- a/src/package_28/name_129.as +++ b/src/alternativa/engine3d/resources/TextureResource.as @@ -1,16 +1,16 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Resource; import flash.display3D.textures.TextureBase; - import package_21.name_77; use namespace alternativa3d; - public class name_129 extends name_77 + public class TextureResource extends Resource { alternativa3d var _texture:TextureBase; - public function name_129() + public function TextureResource() { super(); } diff --git a/src/package_28/name_694.as b/src/alternativa/engine3d/resources/WireGeometry.as similarity index 65% rename from src/package_28/name_694.as rename to src/alternativa/engine3d/resources/WireGeometry.as index 34531ce..34c329b 100644 --- a/src/package_28/name_694.as +++ b/src/alternativa/engine3d/resources/WireGeometry.as @@ -1,45 +1,45 @@ -package package_28 +package alternativa.engine3d.resources { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Resource; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.materials.ShaderProgram; import flash.display3D.Context3D; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DVertexBufferFormat; import flash.display3D.IndexBuffer3D; import flash.display3D.VertexBuffer3D; - import package_21.name_124; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_386; - import package_21.name_77; - import package_21.name_78; - import package_4.name_127; use namespace alternativa3d; - public class name_694 extends name_77 + public class WireGeometry extends Resource { - private const const_6:uint = 65500; + private const §_-VA§:uint = 65500; - private const const_5:Number = 2 * Math.tan(Math.PI / 6); + private const §_-Pp§:Number = 2 * Math.tan(Math.PI / 6); - private const const_4:uint = 7; + private const §_-SS§:uint = 7; alternativa3d var vertexBuffers:Vector.; alternativa3d var indexBuffers:Vector.; - private var var_688:Vector.; + private var §_-Rz§:Vector.; private var vertices:Vector.>; private var indices:Vector.>; - private var var_686:int = 0; + private var §_-ix§:int = 0; - private var var_687:uint = 0; + private var §_-dP§:uint = 0; - public function name_694() + public function WireGeometry() { super(); this.alternativa3d::vertexBuffers = new Vector.(1); @@ -53,7 +53,7 @@ package package_28 var inds:Vector. = null; var vBuffer:VertexBuffer3D = null; var iBuffer:IndexBuffer3D = null; - for(var i:int = 0; i <= this.var_686; ) + for(var i:int = 0; i <= this.§_-ix§; ) { if(this.alternativa3d::vertexBuffers[i] != null) { @@ -63,12 +63,12 @@ package package_28 { this.alternativa3d::indexBuffers[i].dispose(); } - if(this.var_688[i] > 0) + if(this.§_-Rz§[i] > 0) { verts = this.vertices[i]; inds = this.indices[i]; - vBuffer = this.alternativa3d::vertexBuffers[i] = context3D.createVertexBuffer(verts.length / this.const_4,this.const_4); - vBuffer.uploadFromVector(verts,0,verts.length / this.const_4); + vBuffer = this.alternativa3d::vertexBuffers[i] = context3D.createVertexBuffer(verts.length / this.§_-SS§,this.§_-SS§); + vBuffer.uploadFromVector(verts,0,verts.length / this.§_-SS§); iBuffer = this.alternativa3d::indexBuffers[i] = context3D.createIndexBuffer(inds.length); iBuffer.uploadFromVector(inds,0,inds.length); } @@ -78,7 +78,7 @@ package package_28 override public function dispose() : void { - for(var i:int = 0; i <= this.var_686; ) + for(var i:int = 0; i <= this.§_-ix§; ) { if(this.alternativa3d::vertexBuffers[i] != null) { @@ -96,7 +96,7 @@ package package_28 override public function get isUploaded() : Boolean { - for(var i:int = 0; i <= this.var_686; ) + for(var i:int = 0; i <= this.§_-ix§; ) { if(this.alternativa3d::vertexBuffers[i] == null) { @@ -118,11 +118,11 @@ package package_28 this.indices = new Vector.>(); this.vertices[0] = new Vector.(); this.indices[0] = new Vector.(); - this.var_688 = new Vector.(1); - this.var_687 = 0; + this.§_-Rz§ = new Vector.(1); + this.§_-dP§ = 0; } - alternativa3d function updateBoundBox(boundBox:name_386, transform:name_139 = null) : void + alternativa3d function updateBoundBox(boundBox:BoundBox, transform:Transform3D = null) : void { var j:int = 0; var vcount:int = 0; @@ -177,71 +177,71 @@ package package_28 { boundBox.maxZ = z; } - j += this.const_4; + j += this.§_-SS§; } } } - alternativa3d function name_695(camera:name_124, color:Vector., thickness:Number, object:name_78, shader:name_127) : void + alternativa3d function getDrawUnits(camera:Camera3D, color:Vector., thickness:Number, object:Object3D, shader:ShaderProgram) : void { var iBuffer:IndexBuffer3D = null; var vBuffer:VertexBuffer3D = null; - var drawUnit:name_135 = null; + var drawUnit:DrawUnit = null; if(shader.program == null) { shader.upload(camera.alternativa3d::context3D); } - for(var i:int = 0; i <= this.var_686; ) + for(var i:int = 0; i <= this.§_-ix§; ) { iBuffer = this.alternativa3d::indexBuffers[i]; vBuffer = this.alternativa3d::vertexBuffers[i]; if(iBuffer != null && vBuffer != null) { - drawUnit = camera.alternativa3d::renderer.alternativa3d::name_137(object,shader.program,iBuffer,0,this.var_688[i],shader); + drawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,shader.program,iBuffer,0,this.§_-Rz§[i],shader); drawUnit.alternativa3d::setVertexBufferAt(0,vBuffer,0,Context3DVertexBufferFormat.FLOAT_4); drawUnit.alternativa3d::setVertexBufferAt(1,vBuffer,4,Context3DVertexBufferFormat.FLOAT_3); - drawUnit.alternativa3d::name_144(0,0,1,-1,0.000001); - drawUnit.alternativa3d::name_144(1,-this.const_5 / camera.view.alternativa3d::_height,0,camera.nearClipping,thickness); - drawUnit.alternativa3d::name_412(2,object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_136(camera,5); - drawUnit.alternativa3d::name_134(0,color[0],color[1],color[2],color[3]); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(0,0,1,-1,0.000001); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(1,-this.§_-Pp§ / camera.view.alternativa3d::_height,0,camera.nearClipping,thickness); + drawUnit.alternativa3d::setVertexConstantsFromTransform(2,object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setProjectionConstants(camera,5); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,color[0],color[1],color[2],color[3]); if(color[3] < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.TRANSPARENT_SORT); } else { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.OPAQUE); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.OPAQUE); } } i++; } } - alternativa3d function method_558(v1x:Number, v1y:Number, v1z:Number, v2x:Number, v2y:Number, v2z:Number) : void + alternativa3d function addLine(v1x:Number, v1y:Number, v1z:Number, v2x:Number, v2y:Number, v2z:Number) : void { - var currentVertices:Vector. = this.vertices[this.var_686]; - var currentIndices:Vector. = this.indices[this.var_686]; - var verticesCount:uint = currentVertices.length / this.const_4; - if(verticesCount > this.const_6 - 4) + var currentVertices:Vector. = this.vertices[this.§_-ix§]; + var currentIndices:Vector. = this.indices[this.§_-ix§]; + var verticesCount:uint = currentVertices.length / this.§_-SS§; + if(verticesCount > this.§_-VA§ - 4) { - this.var_687 = 0; - ++this.var_686; - this.var_688[this.var_686] = 0; - currentVertices = this.vertices[this.var_686] = new Vector.(); - currentIndices = this.indices[this.var_686] = new Vector.(); - this.alternativa3d::vertexBuffers.length = this.var_686 + 1; - this.alternativa3d::indexBuffers.length = this.var_686 + 1; + this.§_-dP§ = 0; + ++this.§_-ix§; + this.§_-Rz§[this.§_-ix§] = 0; + currentVertices = this.vertices[this.§_-ix§] = new Vector.(); + currentIndices = this.indices[this.§_-ix§] = new Vector.(); + this.alternativa3d::vertexBuffers.length = this.§_-ix§ + 1; + this.alternativa3d::indexBuffers.length = this.§_-ix§ + 1; } else { - this.var_688[this.var_686] += 2; + this.§_-Rz§[this.§_-ix§] += 2; } currentVertices.push(v1x,v1y,v1z,0.5,v2x,v2y,v2z,v2x,v2y,v2z,-0.5,v1x,v1y,v1z,v1x,v1y,v1z,-0.5,v2x,v2y,v2z,v2x,v2y,v2z,0.5,v1x,v1y,v1z); - currentIndices.push(this.var_687,this.var_687 + 1,this.var_687 + 2,this.var_687 + 3,this.var_687 + 2,this.var_687 + 1); - this.var_687 += 4; + currentIndices.push(this.§_-dP§,this.§_-dP§ + 1,this.§_-dP§ + 2,this.§_-dP§ + 3,this.§_-dP§ + 2,this.§_-dP§ + 1); + this.§_-dP§ += 4; } } } diff --git a/src/package_23/name_208.as b/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as similarity index 56% rename from src/package_23/name_208.as rename to src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as index a9a2ee0..9490297 100644 --- a/src/package_23/name_208.as +++ b/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as @@ -1,6 +1,23 @@ -package package_23 +package alternativa.engine3d.shadows { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.primitives.Box; + import alternativa.engine3d.resources.ExternalTextureResource; + import alternativa.engine3d.resources.TextureResource; import flash.display3D.Context3D; import flash.display3D.Context3DProgramType; import flash.display3D.Context3DTextureFormat; @@ -9,27 +26,10 @@ package package_23 import flash.display3D.textures.Texture; import flash.geom.Matrix3D; import flash.geom.Vector3D; - import package_19.name_117; - import package_19.name_380; - import package_21.name_124; - import package_21.name_126; - import package_21.name_135; - import package_21.name_139; - import package_21.name_386; - import package_21.name_78; - import package_24.DirectionalLight; - import package_28.name_129; - import package_28.name_167; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_5; - import package_4.name_127; - import package_96.name_279; use namespace alternativa3d; - public class name_208 extends name_103 + public class DirectionalShadowRenderer extends ShadowRenderer { private static var directionalShadowMapProgram:Program3D; @@ -43,37 +43,37 @@ package package_23 private static const objectToShadowMap:Matrix3D = new Matrix3D(); - private static const localToGlobal:name_139 = new name_139(); + private static const localToGlobal:Transform3D = new Transform3D(); private static const vector:Vector. = new Vector.(16,false); public var offset:Vector3D = new Vector3D(); - public var var_235:name_78; + public var §_-qg§:Object3D; private var context:Context3D; private var shadowMap:Texture; - private var var_236:Number; + private var §_-FQ§:Number; private var light:DirectionalLight; - alternativa3d var var_238:Matrix3D = new Matrix3D(); + alternativa3d var §_-UK§:Matrix3D = new Matrix3D(); - private var debugObject:name_380; + private var debugObject:Mesh; - public var var_237:class_5 = new class_5(); + public var §_-Vg§:TextureMaterial = new TextureMaterial(); - private var var_239:name_129 = new name_167("null"); + private var §_-Ez§:TextureResource = new ExternalTextureResource("null"); - private var var_164:Number = 0; + private var §_-M§:Number = 0; private var pcfOffsets:Vector.; - private var var_168:Boolean = false; + private var §_-1a§:Boolean = false; - private var var_169:Matrix3D = new Matrix3D(); + private var §_-bD§:Matrix3D = new Matrix3D(); private var uvMatrix:Matrix3D = new Matrix3D(); @@ -81,26 +81,26 @@ package package_23 private var rawData:Vector. = new Vector.(16); - public function name_208(context:Context3D, size:int, worldSize:Number, pcfSize:Number = 0) + public function DirectionalShadowRenderer(context:Context3D, size:int, worldSize:Number, pcfSize:Number = 0) { super(); this.context = context; - this.var_236 = worldSize; - this.var_164 = pcfSize / worldSize / 255; - if(this.var_164 > 0) + this.§_-FQ§ = worldSize; + this.§_-M§ = pcfSize / worldSize / 255; + if(this.§_-M§ > 0) { - this.pcfOffsets = Vector.([-this.var_164,-this.var_164,0,1 / 4,-this.var_164,this.var_164,0,1,this.var_164,-this.var_164,0,1,this.var_164,this.var_164,0,1]); + this.pcfOffsets = Vector.([-this.§_-M§,-this.§_-M§,0,1 / 4,-this.§_-M§,this.§_-M§,0,1,this.§_-M§,-this.§_-M§,0,1,this.§_-M§,this.§_-M§,0,1]); } this.shadowMap = context.createTexture(size,size,Context3DTextureFormat.BGRA,true); - this.var_239.alternativa3d::_texture = this.shadowMap; - this.var_237.diffuseMap = this.var_239; - this.var_237.alpha = 0.9; - this.var_237.var_21 = true; - this.debugObject = new name_279(worldSize,worldSize,1,1,1,1,false,this.var_237); + this.§_-Ez§.alternativa3d::_texture = this.shadowMap; + this.§_-Vg§.diffuseMap = this.§_-Ez§; + this.§_-Vg§.alpha = 0.9; + this.§_-Vg§.§_-L4§ = true; + this.debugObject = new Box(worldSize,worldSize,1,1,1,1,false,this.§_-Vg§); this.debugObject.geometry.upload(context); } - alternativa3d static function name_427(matrix:Matrix3D, transform:name_139) : void + alternativa3d static function copyMatrixFromTransform(matrix:Matrix3D, transform:Transform3D) : void { transformToMatrixRawData[0] = transform.a; transformToMatrixRawData[1] = transform.e; @@ -121,13 +121,13 @@ package package_23 matrix.copyRawDataFrom(transformToMatrixRawData); } - alternativa3d static function name_428(context:Context3D, object:name_78, light:DirectionalLight, projection:Matrix3D) : void + alternativa3d static function drawObjectToShadowMap(context:Context3D, object:Object3D, light:DirectionalLight, projection:Matrix3D) : void { - if(object is name_380) + if(object is Mesh) { - method_369(context,name_380(object),projection); + drawMeshToShadowMap(context,Mesh(object),projection); } - for(var child:name_78 = object.alternativa3d::childrenList; child != null; ) + for(var child:Object3D = object.alternativa3d::childrenList; child != null; ) { if(child.visible && child.useShadow) { @@ -136,65 +136,65 @@ package package_23 child.alternativa3d::composeTransforms(); } child.alternativa3d::localToCameraTransform.combine(object.alternativa3d::localToCameraTransform,child.alternativa3d::transform); - alternativa3d::name_428(context,child,light,projection); + alternativa3d::drawObjectToShadowMap(context,child,light,projection); } child = child.alternativa3d::next; } } - private static function method_369(context:Context3D, mesh:name_380, projection:Matrix3D) : void + private static function drawMeshToShadowMap(context:Context3D, mesh:Mesh, projection:Matrix3D) : void { - var surface:name_117 = null; + var surface:Surface = null; if(mesh.geometry == null || mesh.geometry.numTriangles == 0 || !mesh.geometry.isUploaded) { return; } - alternativa3d::name_427(drawProjection,mesh.alternativa3d::localToCameraTransform); + alternativa3d::copyMatrixFromTransform(drawProjection,mesh.alternativa3d::localToCameraTransform); drawProjection.append(projection); if(directionalShadowMapProgram == null) { - directionalShadowMapProgram = method_370(context); + directionalShadowMapProgram = initMeshToShadowMapProgram(context); } context.setProgram(directionalShadowMapProgram); - context.setVertexBufferAt(0,mesh.geometry.alternativa3d::getVertexBuffer(name_126.POSITION),mesh.geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); + context.setVertexBufferAt(0,mesh.geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION),mesh.geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); context.setProgramConstantsFromMatrix(Context3DProgramType.VERTEX,0,drawProjection,true); context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,4,Vector.([255,0,0,1])); context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,Vector.([1 / 255,0,0,1])); context.setCulling(Context3DTriangleFace.BACK); - for(var i:int = 0; i < mesh.alternativa3d::var_93; i++) + for(var i:int = 0; i < mesh.alternativa3d::_-Oy; i++) { - surface = mesh.alternativa3d::var_92[i]; + surface = mesh.alternativa3d::_-eW[i]; if(!(surface.material == null || !surface.material.alternativa3d::canDrawInShadowMap)) { - context.drawTriangles(mesh.geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles); + context.drawTriangles(mesh.geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles); } } context.setVertexBufferAt(0,null); } - private static function method_370(context3d:Context3D) : Program3D + private static function initMeshToShadowMapProgram(context3d:Context3D) : Program3D { - var vLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - var proc:name_114 = name_114.name_140(["#a0=a0","#c4=c4","#v0=v0","m44 t0, a0, c0","mul v0, t0, c4.x","mov o0, t0"]); - proc.name_122(name_115.CONSTANT,0,"c0",4); - vLinker.name_123(proc); - fLinker.name_123(name_114.name_140(["#v0=v0","#c0=c0","mov t0.xy, v0.zz","frc t0.y, v0.z","sub t0.x, v0.z, t0.y","mul t0.x, t0.x, c0.x","mov t0.z, c0.z","mov t0.w, c0.w","mov o0, t0"])); + var vLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); + var proc:Procedure = Procedure.compileFromArray(["#a0=a0","#c4=c4","#v0=v0","m44 t0, a0, c0","mul v0, t0, c4.x","mov o0, t0"]); + proc.assignVariableName(VariableType.CONSTANT,0,"c0",4); + vLinker.addProcedure(proc); + fLinker.addProcedure(Procedure.compileFromArray(["#v0=v0","#c0=c0","mov t0.xy, v0.zz","frc t0.y, v0.z","sub t0.x, v0.z, t0.y","mul t0.x, t0.x, c0.x","mov t0.z, c0.z","mov t0.w, c0.w","mov o0, t0"])); var program:Program3D = context3d.createProgram(); - program.upload(vLinker.name_206(),fLinker.name_206()); + program.upload(vLinker.getByteCode(),fLinker.getByteCode()); return program; } - private static function method_264(index:int) : name_114 + private static function initVShader(index:int) : Procedure { - var shader:name_114 = name_114.name_140(["m44 v0, a0, c0"]); - shader.name_122(name_115.ATTRIBUTE,0,"aPosition"); - shader.name_122(name_115.CONSTANT,0,index + "cTOSHADOW",4); - shader.name_122(name_115.VARYING,0,index + "vSHADOWSAMPLE"); + var shader:Procedure = Procedure.compileFromArray(["m44 v0, a0, c0"]); + shader.assignVariableName(VariableType.ATTRIBUTE,0,"aPosition"); + shader.assignVariableName(VariableType.CONSTANT,0,index + "cTOSHADOW",4); + shader.assignVariableName(VariableType.VARYING,0,index + "vSHADOWSAMPLE"); return shader; } - private static function method_263(mult:Boolean, usePCF:Boolean, index:int, grayScale:Boolean = false) : name_114 + private static function initFShader(mult:Boolean, usePCF:Boolean, index:int, grayScale:Boolean = false) : Procedure { var i:int = 0; var line:int = 0; @@ -282,30 +282,30 @@ package package_23 _loc10_ = line++; shaderArr[_loc10_] = "mov o0, t2"; } - var shader:name_114 = name_114.name_140(shaderArr,"DirectionalShadowMap"); - shader.name_122(name_115.VARYING,0,index + "vSHADOWSAMPLE"); - shader.name_122(name_115.CONSTANT,4,index + "cConstants",1); - shader.name_122(name_115.CONSTANT,5,index + "cShadowColor",1); + var shader:Procedure = Procedure.compileFromArray(shaderArr,"DirectionalShadowMap"); + shader.assignVariableName(VariableType.VARYING,0,index + "vSHADOWSAMPLE"); + shader.assignVariableName(VariableType.CONSTANT,4,index + "cConstants",1); + shader.assignVariableName(VariableType.CONSTANT,5,index + "cShadowColor",1); if(usePCF) { for(i = 0; i < numPass; i++) { - shader.name_122(name_115.CONSTANT,i + 6,"cDPCF" + i.toString(),1); + shader.assignVariableName(VariableType.CONSTANT,i + 6,"cDPCF" + i.toString(),1); } } - shader.name_122(name_115.SAMPLER,0,index + "sSHADOWMAP"); + shader.assignVariableName(VariableType.SAMPLER,0,index + "sSHADOWMAP"); return shader; } public function get worldSize() : Number { - return this.var_236; + return this.§_-FQ§; } public function set worldSize(value:Number) : void { - this.var_236 = value; - var newDebug:name_380 = new name_279(this.var_236,this.var_236,1,1,1,1,false,this.var_237); + this.§_-FQ§ = value; + var newDebug:Mesh = new Box(this.§_-FQ§,this.§_-FQ§,1,1,1,1,false,this.§_-Vg§); newDebug.geometry.upload(this.context); if(this.debugObject.alternativa3d::_parent != null) { @@ -315,10 +315,10 @@ package package_23 this.debugObject = newDebug; } - public function method_371(value:DirectionalLight) : void + public function setLight(value:DirectionalLight) : void { this.light = value; - if(this.var_168) + if(this.§_-1a§) { this.light.addChild(this.debugObject); } @@ -326,13 +326,13 @@ package package_23 override public function get debug() : Boolean { - return this.var_168; + return this.§_-1a§; } override public function set debug(value:Boolean) : void { - this.var_168 = value; - if(this.var_168) + this.§_-1a§ = value; + if(this.§_-1a§) { if(this.light != null) { @@ -345,23 +345,23 @@ package package_23 } } - override alternativa3d function cullReciever(boundBox:name_386, object:name_78) : Boolean + override alternativa3d function cullReciever(boundBox:BoundBox, object:Object3D) : Boolean { - alternativa3d::name_427(matrix,object.alternativa3d::localToGlobalTransform); - matrix.append(this.alternativa3d::var_238); - return alternativa3d::method_222(boundBox,matrix); + alternativa3d::copyMatrixFromTransform(matrix,object.alternativa3d::localToGlobalTransform); + matrix.append(this.alternativa3d::_-UK); + return alternativa3d::cullObjectImplementation(boundBox,matrix); } override public function update() : void { - var root:name_78 = null; + var root:Object3D = null; active = true; - this.var_235.alternativa3d::localToCameraTransform.compose(this.var_235.alternativa3d::_x,this.var_235.alternativa3d::_y,this.var_235.alternativa3d::_z,this.var_235.alternativa3d::_rotationX,this.var_235.alternativa3d::_rotationY,this.var_235.alternativa3d::_rotationZ,this.var_235.alternativa3d::_scaleX,this.var_235.alternativa3d::_scaleY,this.var_235.alternativa3d::_scaleZ); - for(root = this.var_235; root.alternativa3d::_parent != null; ) + this.§_-qg§.alternativa3d::localToCameraTransform.compose(this.§_-qg§.alternativa3d::_x,this.§_-qg§.alternativa3d::_y,this.§_-qg§.alternativa3d::_z,this.§_-qg§.alternativa3d::_rotationX,this.§_-qg§.alternativa3d::_rotationY,this.§_-qg§.alternativa3d::_rotationZ,this.§_-qg§.alternativa3d::_scaleX,this.§_-qg§.alternativa3d::_scaleY,this.§_-qg§.alternativa3d::_scaleZ); + for(root = this.§_-qg§; root.alternativa3d::_parent != null; ) { root = root.alternativa3d::_parent; root.alternativa3d::localToGlobalTransform.compose(root.alternativa3d::_x,root.alternativa3d::_y,root.alternativa3d::_z,root.alternativa3d::_rotationX,root.alternativa3d::_rotationY,root.alternativa3d::_rotationZ,root.alternativa3d::_scaleX,root.alternativa3d::_scaleY,root.alternativa3d::_scaleZ); - this.var_235.alternativa3d::localToCameraTransform.append(root.alternativa3d::localToGlobalTransform); + this.§_-qg§.alternativa3d::localToCameraTransform.append(root.alternativa3d::localToGlobalTransform); } this.light.alternativa3d::localToGlobalTransform.compose(this.light.alternativa3d::_x,this.light.alternativa3d::_y,this.light.alternativa3d::_z,this.light.alternativa3d::_rotationX,this.light.alternativa3d::_rotationY,this.light.alternativa3d::_rotationZ,this.light.alternativa3d::_scaleX,this.light.alternativa3d::_scaleY,this.light.alternativa3d::_scaleZ); for(root = this.light; root.alternativa3d::_parent != null; ) @@ -372,28 +372,28 @@ package package_23 } this.light.alternativa3d::globalToLocalTransform.copy(this.light.alternativa3d::localToGlobalTransform); this.light.alternativa3d::globalToLocalTransform.invert(); - this.var_235.alternativa3d::localToCameraTransform.append(this.light.alternativa3d::globalToLocalTransform); - var t:name_139 = this.var_235.alternativa3d::localToCameraTransform; + this.§_-qg§.alternativa3d::localToCameraTransform.append(this.light.alternativa3d::globalToLocalTransform); + var t:Transform3D = this.§_-qg§.alternativa3d::localToCameraTransform; this.center.x = t.a * this.offset.x + t.b * this.offset.y + t.c * this.offset.z + t.d; this.center.y = t.e * this.offset.x + t.f * this.offset.y + t.g * this.offset.z + t.h; this.center.z = t.i * this.offset.x + t.j * this.offset.y + t.k * this.offset.z + t.l; - this.method_265(this.var_169,this.uvMatrix,this.center,this.var_236,this.var_236,this.var_236); - alternativa3d::name_427(this.alternativa3d::var_238,this.light.alternativa3d::globalToLocalTransform); - this.alternativa3d::var_238.append(this.uvMatrix); + this.calculateShadowMapProjection(this.§_-bD§,this.uvMatrix,this.center,this.§_-FQ§,this.§_-FQ§,this.§_-FQ§); + alternativa3d::copyMatrixFromTransform(this.alternativa3d::_-UK,this.light.alternativa3d::globalToLocalTransform); + this.alternativa3d::_-UK.append(this.uvMatrix); this.debugObject.x = this.center.x; this.debugObject.y = this.center.y; - this.debugObject.z = this.center.z - this.var_236 / 2; - this.var_237.diffuseMap = null; + this.debugObject.z = this.center.z - this.§_-FQ§ / 2; + this.§_-Vg§.diffuseMap = null; this.context.setRenderToTexture(this.shadowMap,true,0,0); this.context.clear(1,1,1,1); - method_221(this.context); - alternativa3d::name_428(this.context,this.var_235,this.light,this.var_169); + cleanContext(this.context); + alternativa3d::drawObjectToShadowMap(this.context,this.§_-qg§,this.light,this.§_-bD§); this.context.setRenderToBackBuffer(); - method_221(this.context); - this.var_237.diffuseMap = this.var_239; + cleanContext(this.context); + this.§_-Vg§.diffuseMap = this.§_-Ez§; } - private function method_265(matrix:Matrix3D, uvMatrix:Matrix3D, offset:Vector3D, width:Number, height:Number, length:Number) : void + private function calculateShadowMapProjection(matrix:Matrix3D, uvMatrix:Matrix3D, offset:Vector3D, width:Number, height:Number, length:Number) : void { var halfW:Number = width / 2; var halfH:Number = height / 2; @@ -419,36 +419,36 @@ package package_23 uvMatrix.rawData = this.rawData; } - override public function getVShader(index:int = 0) : name_114 + override public function getVShader(index:int = 0) : Procedure { - return method_264(index); + return initVShader(index); } - override public function getFShader(index:int = 0) : name_114 + override public function getFShader(index:int = 0) : Procedure { - return method_263(false,this.var_164 > 0,index); + return initFShader(false,this.§_-M§ > 0,index); } - override public function getFIntensityShader() : name_114 + override public function getFIntensityShader() : Procedure { - return method_263(false,this.var_164 > 0,0,true); + return initFShader(false,this.§_-M§ > 0,0,true); } - override public function applyShader(drawUnit:name_135, program:name_127, object:name_78, camera:name_124, index:int = 0) : void + override public function applyShader(drawUnit:DrawUnit, program:ShaderProgram, object:Object3D, camera:Camera3D, index:int = 0) : void { localToGlobal.combine(camera.alternativa3d::localToGlobalTransform,object.alternativa3d::localToCameraTransform); - alternativa3d::name_427(objectToShadowMap,localToGlobal); - objectToShadowMap.append(this.alternativa3d::var_238); + alternativa3d::copyMatrixFromTransform(objectToShadowMap,localToGlobal); + objectToShadowMap.append(this.alternativa3d::_-UK); objectToShadowMap.copyRawDataTo(vector,0,true); - drawUnit.alternativa3d::name_426(program.vertexShader.getVariableIndex(index + "cTOSHADOW"),vector,4); - drawUnit.alternativa3d::name_205(program.fragmentShader.getVariableIndex(index + "cConstants"),constants,1); - if(program.fragmentShader.method_286(index + "cShadowColor")) + drawUnit.alternativa3d::setVertexConstantsFromVector(program.vertexShader.getVariableIndex(index + "cTOSHADOW"),vector,4); + drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex(index + "cConstants"),constants,1); + if(program.fragmentShader.containsVariable(index + "cShadowColor")) { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex(index + "cShadowColor"),camera.alternativa3d::ambient[0] / 2,camera.alternativa3d::ambient[1] / 2,camera.alternativa3d::ambient[2] / 2,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex(index + "cShadowColor"),camera.alternativa3d::ambient[0] / 2,camera.alternativa3d::ambient[1] / 2,camera.alternativa3d::ambient[2] / 2,1); } - if(this.var_164 > 0) + if(this.§_-M§ > 0) { - drawUnit.alternativa3d::name_205(program.fragmentShader.getVariableIndex("cDPCF0"),this.pcfOffsets,this.pcfOffsets.length / 4); + drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cDPCF0"),this.pcfOffsets,this.pcfOffsets.length / 4); } drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex(index + "sSHADOWMAP"),this.shadowMap); } diff --git a/src/package_23/name_103.as b/src/alternativa/engine3d/shadows/ShadowRenderer.as similarity index 80% rename from src/package_23/name_103.as rename to src/alternativa/engine3d/shadows/ShadowRenderer.as index 721d0fb..42ab3a1 100644 --- a/src/package_23/name_103.as +++ b/src/alternativa/engine3d/shadows/ShadowRenderer.as @@ -1,37 +1,37 @@ -package package_23 +package alternativa.engine3d.shadows { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.compiler.Procedure; import flash.display3D.Context3D; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DCompareMode; import flash.geom.Matrix3D; - import package_21.name_124; - import package_21.name_135; - import package_21.name_386; - import package_21.name_78; - import package_30.name_114; - import package_4.name_127; use namespace alternativa3d; - public class name_103 + public class ShadowRenderer { private static var counter:int = 0; private static const boundVertices:Vector. = new Vector.(24); - alternativa3d var var_104:String; + alternativa3d var §if§:String; public var active:Boolean = false; - public function name_103() + public function ShadowRenderer() { super(); ++counter; - this.alternativa3d::var_104 = "M" + counter.toString(); + this.alternativa3d::if = "M" + counter.toString(); } - alternativa3d function get name_372() : Boolean + alternativa3d function get needMultiplyBlend() : Boolean { return false; } @@ -40,22 +40,22 @@ package package_23 { } - public function getVShader(index:int = 0) : name_114 + public function getVShader(index:int = 0) : Procedure { return null; } - public function getFShader(index:int = 0) : name_114 + public function getFShader(index:int = 0) : Procedure { return null; } - public function getFIntensityShader() : name_114 + public function getFIntensityShader() : Procedure { throw new Error("Not implemented"); } - public function applyShader(destination:name_135, program:name_127, object:name_78, camera:name_124, index:int = 0) : void + public function applyShader(destination:DrawUnit, program:ShaderProgram, object:Object3D, camera:Camera3D, index:int = 0) : void { } @@ -68,12 +68,12 @@ package package_23 { } - alternativa3d function cullReciever(boundBox:name_386, object:name_78) : Boolean + alternativa3d function cullReciever(boundBox:BoundBox, object:Object3D) : Boolean { return false; } - protected function method_221(context:Context3D) : void + protected function cleanContext(context:Context3D) : void { context.setTextureAt(0,null); context.setTextureAt(1,null); @@ -94,7 +94,7 @@ package package_23 context.setBlendFactors(Context3DBlendFactor.ONE,Context3DBlendFactor.ZERO); } - alternativa3d function method_222(bounds:name_386, matrix:Matrix3D) : Boolean + alternativa3d function cullObjectImplementation(bounds:BoundBox, matrix:Matrix3D) : Boolean { var i:int = 0; var infront:Boolean = false; diff --git a/src/package_23/name_92.as b/src/alternativa/engine3d/shadows/ShadowsSystem.as similarity index 54% rename from src/package_23/name_92.as rename to src/alternativa/engine3d/shadows/ShadowsSystem.as index 21a243b..be02ac0 100644 --- a/src/package_23/name_92.as +++ b/src/alternativa/engine3d/shadows/ShadowsSystem.as @@ -1,40 +1,40 @@ -package package_23 +package alternativa.engine3d.shadows { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Object3D; import flash.utils.Dictionary; - import package_21.name_78; use namespace alternativa3d; - public class name_92 + public class ShadowsSystem { private static const MAX_SHADOWMAPS:int = 3; - public var renderers:Vector. = new Vector.(); + public var renderers:Vector. = new Vector.(); - private var var_12:Dictionary = new Dictionary(); + private var §_-jy§:Dictionary = new Dictionary(); - private var var_159:int; + private var §_-gR§:int; - private var var_158:int; + private var §_-i-§:int; - private var var_160:Vector. = new Vector.(); + private var §_-O0§:Vector. = new Vector.(); - private var var_161:int; + private var §_-aJ§:int; - public function name_92() + public function ShadowsSystem() { super(); } - public function update(root:name_78) : void + public function update(root:Object3D) : void { - var renderer:name_103 = null; + var renderer:ShadowRenderer = null; if(this.renderers.length == 0) { return; } - this.var_158 = 0; + this.§_-i-§ = 0; var num:int = int(this.renderers.length); for(var i:int = 0; i < num; ) { @@ -42,8 +42,8 @@ package package_23 renderer.update(); if(renderer.active) { - this.var_160[this.var_158] = renderer; - ++this.var_158; + this.§_-O0§[this.§_-i-§] = renderer; + ++this.§_-i-§; } i++; } @@ -52,18 +52,18 @@ package package_23 root.alternativa3d::composeTransforms(); } root.alternativa3d::localToGlobalTransform.copy(root.alternativa3d::transform); - this.var_159 = 0; - this.var_161 = 0; - this.method_259(root); + this.§_-gR§ = 0; + this.§_-aJ§ = 0; + this.recursive(root); } - private function method_259(object:name_78) : void + private function recursive(object:Object3D) : void { - var value:Vector. = null; + var value:Vector. = null; var numRenderers:int = 0; var i:int = 0; - var renderer:name_103 = null; - for(var child:name_78 = object.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) + var renderer:ShadowRenderer = null; + for(var child:Object3D = object.alternativa3d::childrenList; child != null; child = child.alternativa3d::next) { value = null; numRenderers = 0; @@ -74,21 +74,21 @@ package package_23 child.alternativa3d::composeTransforms(); } child.alternativa3d::localToGlobalTransform.combine(object.alternativa3d::localToGlobalTransform,child.alternativa3d::transform); - for(i = 0; i < this.var_158; ) + for(i = 0; i < this.§_-i-§; ) { - renderer = this.var_160[i]; + renderer = this.§_-O0§[i]; if(child.useShadow) { - if(child.boundBox == null || Boolean(renderer.alternativa3d::cullReciever(child.boundBox,child))) + if(child.boundBox == null || renderer.alternativa3d::cullReciever(child.boundBox,child)) { - ++this.var_159; + ++this.§_-gR§; if(value == null) { - value = this.var_12[child]; + value = this.§_-jy§[child]; if(value == null) { - value = new Vector.(); - this.var_12[child] = value; + value = new Vector.(); + this.§_-jy§[child] = value; } else { @@ -101,17 +101,17 @@ package package_23 } i++; } - this.method_259(child); + this.recursive(child); } - this.method_260(child,value,numRenderers); + this.setRenderers(child,value,numRenderers); } } - private function method_260(object:name_78, renderers:Vector., numShadowRenderers:int) : void + private function setRenderers(object:Object3D, renderers:Vector., numShadowRenderers:int) : void { - if(numShadowRenderers > this.var_161) + if(numShadowRenderers > this.§_-aJ§) { - this.var_161 = numShadowRenderers; + this.§_-aJ§ = numShadowRenderers; } if(numShadowRenderers > MAX_SHADOWMAPS) { diff --git a/src/package_23/name_97.as b/src/alternativa/engine3d/shadows/StaticShadowRenderer.as similarity index 67% rename from src/package_23/name_97.as rename to src/alternativa/engine3d/shadows/StaticShadowRenderer.as index c696744..c4c616e 100644 --- a/src/package_23/name_97.as +++ b/src/alternativa/engine3d/shadows/StaticShadowRenderer.as @@ -1,30 +1,30 @@ -package package_23 +package alternativa.engine3d.shadows { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.primitives.Box; + import alternativa.engine3d.resources.ExternalTextureResource; + import alternativa.engine3d.resources.TextureResource; import flash.display3D.Context3D; import flash.display3D.Context3DTextureFormat; import flash.display3D.textures.Texture; import flash.geom.Matrix3D; import flash.geom.Vector3D; import flash.utils.Dictionary; - import package_19.name_380; - import package_21.name_124; - import package_21.name_135; - import package_21.name_139; - import package_21.name_386; - import package_21.name_78; - import package_24.DirectionalLight; - import package_28.name_129; - import package_28.name_167; - import package_30.name_114; - import package_30.name_115; - import package_4.class_5; - import package_4.name_127; - import package_96.name_279; use namespace alternativa3d; - public class name_97 extends name_103 + public class StaticShadowRenderer extends ShadowRenderer { private static var pcfOffsets:Vector.; @@ -32,7 +32,7 @@ package package_23 private static const points:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); - private static const objectToShadowMap:name_139 = new name_139(); + private static const objectToShadowMap:Transform3D = new Transform3D(); private static const objectToUVMap:Matrix3D = new Matrix3D(); @@ -40,49 +40,49 @@ package package_23 private const alpha:Number = 0.7; - private var bounds:name_386 = new name_386(); + private var bounds:BoundBox = new BoundBox(); private var partSize:Number; - private var var_162:Vector.> = new Vector.>(); + private var §_-f7§:Vector.> = new Vector.>(); - private var var_165:Vector.> = new Vector.>(); + private var §_-md§:Vector.> = new Vector.>(); private var light:DirectionalLight; - private var var_167:name_139 = new name_139(); + private var §_-65§:Transform3D = new Transform3D(); - private var var_168:Boolean = false; + private var §_-1a§:Boolean = false; - private var var_163:name_78; + private var §_-4u§:Object3D; - private var var_166:Dictionary = new Dictionary(); + private var §_-Mf§:Dictionary = new Dictionary(); - private var var_164:Number = 0; + private var §_-M§:Number = 0; - private var var_169:Matrix3D = new Matrix3D(); + private var §_-bD§:Matrix3D = new Matrix3D(); private var rawData:Vector. = new Vector.(16); - public function name_97(context:Context3D, partSize:int, pcfSize:Number = 0) + public function StaticShadowRenderer(context:Context3D, partSize:int, pcfSize:Number = 0) { super(); this.context = context; this.partSize = partSize; - this.var_164 = pcfSize; + this.§_-M§ = pcfSize; constants[3] = 1 - this.alpha; } - alternativa3d static function calculateBoundBox(boundBox:name_386, object:name_78, hierarchy:Boolean = true) : void + alternativa3d static function calculateBoundBox(boundBox:BoundBox, object:Object3D, hierarchy:Boolean = true) : void { var point:Vector3D = null; - var bb:name_386 = null; - var transform:name_139 = null; + var bb:BoundBox = null; + var transform:Transform3D = null; var i:int = 0; var x:Number = NaN; var y:Number = NaN; var z:Number = NaN; - var child:name_78 = null; + var child:Object3D = null; if(object.boundBox != null) { bb = object.boundBox; @@ -170,17 +170,17 @@ package package_23 } } - private static function method_264(index:int) : name_114 + private static function initVShader(index:int) : Procedure { - var shader:name_114 = name_114.name_140(["m44 v0, a0, c4"]); - shader.name_122(name_115.ATTRIBUTE,0,"aPosition"); - shader.name_122(name_115.CONSTANT,0,"cPROJ",4); - shader.name_122(name_115.CONSTANT,4,"cTOSHADOW",4); - shader.name_122(name_115.VARYING,0,"vSHADOWSAMPLE"); + var shader:Procedure = Procedure.compileFromArray(["m44 v0, a0, c4"]); + shader.assignVariableName(VariableType.ATTRIBUTE,0,"aPosition"); + shader.assignVariableName(VariableType.CONSTANT,0,"cPROJ",4); + shader.assignVariableName(VariableType.CONSTANT,4,"cTOSHADOW",4); + shader.assignVariableName(VariableType.VARYING,0,"vSHADOWSAMPLE"); return shader; } - private static function method_263(mult:Boolean, usePCF:Boolean, index:int, grayScale:Boolean = false) : name_114 + private static function initFShader(mult:Boolean, usePCF:Boolean, index:int, grayScale:Boolean = false) : Procedure { var i:int = 0; var line:int = 0; @@ -250,53 +250,53 @@ package package_23 shaderArr.push("mov t0, t2.z"); shaderArr.push("mov o0, t0"); } - var shader:name_114 = name_114.name_140(shaderArr,"StaticShadowMap"); - shader.name_122(name_115.VARYING,0,"vSHADOWSAMPLE"); - shader.name_122(name_115.CONSTANT,4,"cConstants",1); + var shader:Procedure = Procedure.compileFromArray(shaderArr,"StaticShadowMap"); + shader.assignVariableName(VariableType.VARYING,0,"vSHADOWSAMPLE"); + shader.assignVariableName(VariableType.CONSTANT,4,"cConstants",1); if(usePCF) { for(i = 0; i < numPass; i++) { - shader.name_122(name_115.CONSTANT,i + 5,"cPCF" + i.toString(),1); + shader.assignVariableName(VariableType.CONSTANT,i + 5,"cPCF" + i.toString(),1); } } - shader.name_122(name_115.SAMPLER,0,"sSHADOWMAP"); + shader.assignVariableName(VariableType.SAMPLER,0,"sSHADOWMAP"); return shader; } - public function method_267(object:name_78) : void + public function addReciever(object:Object3D) : void { - this.var_166[object] = true; + this.§_-Mf§[object] = true; } - public function method_266(object:name_78) : void + public function removeReciever(object:Object3D) : void { - delete this.var_166[object]; + delete this.§_-Mf§[object]; } public function dispose() : void { var textures:Vector. = null; var texture:Texture = null; - for each(textures in this.var_162) + for each(textures in this.§_-f7§) { for each(texture in textures) { texture.dispose(); } } - this.var_162.length = 0; - this.var_165.length = 0; + this.§_-f7§.length = 0; + this.§_-md§.length = 0; } - override alternativa3d function cullReciever(boundBox:name_386, object:name_78) : Boolean + override alternativa3d function cullReciever(boundBox:BoundBox, object:Object3D) : Boolean { - return this.var_166[object]; + return this.§_-Mf§[object]; } - public function name_401(object:name_78, light:DirectionalLight, widthPartsCount:int = 1, heightPartsCount:int = 1, overlap:Number = 0) : void + public function calculateShadows(object:Object3D, light:DirectionalLight, widthPartsCount:int = 1, heightPartsCount:int = 1, overlap:Number = 0) : void { - var root:name_78 = null; + var root:Object3D = null; var maps:Vector. = null; var matrices:Vector. = null; var yIndex:int = 0; @@ -306,9 +306,9 @@ package package_23 var height:Number = NaN; var uvMatrix:Matrix3D = null; var shadowMap:Texture = null; - var texture:name_129 = null; - var material:class_5 = null; - var debugObject:name_380 = null; + var texture:TextureResource = null; + var material:TextureMaterial = null; + var debugObject:Mesh = null; var offset:Number = NaN; this.light = light; object.alternativa3d::localToCameraTransform.compose(object.alternativa3d::_x,object.alternativa3d::_y,object.alternativa3d::_z,object.alternativa3d::_rotationX,object.alternativa3d::_rotationY,object.alternativa3d::_rotationZ,object.alternativa3d::_scaleX,object.alternativa3d::_scaleY,object.alternativa3d::_scaleZ); @@ -327,7 +327,7 @@ package package_23 } light.alternativa3d::globalToLocalTransform.copy(light.alternativa3d::localToGlobalTransform); light.alternativa3d::globalToLocalTransform.invert(); - this.var_167.copy(light.alternativa3d::globalToLocalTransform); + this.§_-65§.copy(light.alternativa3d::globalToLocalTransform); object.alternativa3d::localToCameraTransform.append(light.alternativa3d::globalToLocalTransform); this.bounds.reset(); alternativa3d::calculateBoundBox(this.bounds,object); @@ -340,10 +340,10 @@ package package_23 var halfOverlap:Number = overlap * 0.5; var partWorldWidth:Number = (frustumMaxX - frustumMinX) / widthPartsCount; var partWorldHeight:Number = (frustumMaxY - frustumMinY) / heightPartsCount; - this.var_163 = new name_78(); - if(this.var_168) + this.§_-4u§ = new Object3D(); + if(this.§_-1a§) { - light.addChild(this.var_163); + light.addChild(this.§_-4u§); } for(var xIndex:int = 0; xIndex < widthPartsCount; ) { @@ -382,39 +382,39 @@ package package_23 height = partWorldHeight + overlap; } uvMatrix = new Matrix3D(); - this.method_265(this.var_169,uvMatrix,leftX,leftY,frustumMinZ,leftX + width,leftY + height,frustumMaxZ); + this.calculateShadowMapProjection(this.§_-bD§,uvMatrix,leftX,leftY,frustumMinZ,leftX + width,leftY + height,frustumMaxZ); shadowMap = this.context.createTexture(this.partSize,this.partSize,Context3DTextureFormat.BGRA,true); this.context.setRenderToTexture(shadowMap,true,0,0); this.context.clear(1,1,1,0.5); - method_221(this.context); - name_208.alternativa3d::name_428(this.context,object,light,this.var_169); - method_221(this.context); + cleanContext(this.context); + DirectionalShadowRenderer.alternativa3d::drawObjectToShadowMap(this.context,object,light,this.§_-bD§); + cleanContext(this.context); maps.push(shadowMap); matrices.push(uvMatrix); - texture = new name_167(null); + texture = new ExternalTextureResource(null); texture.alternativa3d::_texture = shadowMap; - material = new class_5(texture); - material.var_21 = true; - debugObject = new name_279(width,height,1,1,1,1,false,material); + material = new TextureMaterial(texture); + material.§_-L4§ = true; + debugObject = new Box(width,height,1,1,1,1,false,material); debugObject.geometry.upload(this.context); debugObject.x = leftX + width / 2; debugObject.y = leftY + height / 2; debugObject.z = frustumMinZ; - this.var_163.addChild(debugObject); + this.§_-4u§.addChild(debugObject); } - this.var_162.push(maps); - this.var_165.push(matrices); + this.§_-f7§.push(maps); + this.§_-md§.push(matrices); xIndex++; } this.context.setRenderToBackBuffer(); - if(this.var_164 > 0) + if(this.§_-M§ > 0) { - offset = this.var_164 / partWorldWidth; + offset = this.§_-M§ / partWorldWidth; pcfOffsets = Vector.([-offset,-offset,0,1 / 4,-offset,offset,0,1,offset,-offset,0,1,offset,offset,0,1]); } } - private function method_265(matrix:Matrix3D, uvMatrix:Matrix3D, frustumMinX:Number, frustumMinY:Number, frustumMinZ:Number, frustumMaxX:Number, frustumMaxY:Number, frustumMaxZ:Number) : void + private function calculateShadowMapProjection(matrix:Matrix3D, uvMatrix:Matrix3D, frustumMinX:Number, frustumMinY:Number, frustumMinZ:Number, frustumMaxX:Number, frustumMaxY:Number, frustumMaxZ:Number) : void { this.rawData[0] = 2 / (frustumMaxX - frustumMinX); this.rawData[5] = 2 / (frustumMaxY - frustumMinY); @@ -433,64 +433,64 @@ package package_23 override public function get debug() : Boolean { - return this.var_168; + return this.§_-1a§; } override public function set debug(value:Boolean) : void { - this.var_168 = value; - if(this.var_163 != null) + this.§_-1a§ = value; + if(this.§_-4u§ != null) { if(value) { if(this.light != null) { - this.light.addChild(this.var_163); + this.light.addChild(this.§_-4u§); } } - else if(this.var_163.alternativa3d::_parent != null) + else if(this.§_-4u§.alternativa3d::_parent != null) { - this.var_163.alternativa3d::removeFromParent(); + this.§_-4u§.alternativa3d::removeFromParent(); } } } - override public function getVShader(index:int = 0) : name_114 + override public function getVShader(index:int = 0) : Procedure { - return method_264(index); + return initVShader(index); } - override public function getFShader(index:int = 0) : name_114 + override public function getFShader(index:int = 0) : Procedure { - return method_263(false,this.var_164 > 0,index); + return initFShader(false,this.§_-M§ > 0,index); } - override public function getFIntensityShader() : name_114 + override public function getFIntensityShader() : Procedure { - return method_263(false,this.var_164 > 0,0,true); + return initFShader(false,this.§_-M§ > 0,0,true); } - override public function applyShader(drawUnit:name_135, program:name_127, object:name_78, camera:name_124, index:int = 0) : void + override public function applyShader(drawUnit:DrawUnit, program:ShaderProgram, object:Object3D, camera:Camera3D, index:int = 0) : void { objectToShadowMap.combine(camera.alternativa3d::localToGlobalTransform,object.alternativa3d::localToCameraTransform); - objectToShadowMap.append(this.var_167); + objectToShadowMap.append(this.§_-65§); var coords:Vector3D = new Vector3D(objectToShadowMap.d,objectToShadowMap.h,objectToShadowMap.l); - var xIndex:int = (coords.x - this.bounds.minX) / (this.bounds.maxX - this.bounds.minX) * this.var_162.length; - xIndex = xIndex < 0 ? 0 : (xIndex >= this.var_162.length ? int(this.var_162.length - 1) : xIndex); - var maps:Vector. = this.var_162[xIndex]; - var matrices:Vector. = this.var_165[xIndex]; + var xIndex:int = (coords.x - this.bounds.minX) / (this.bounds.maxX - this.bounds.minX) * this.§_-f7§.length; + xIndex = xIndex < 0 ? 0 : (xIndex >= this.§_-f7§.length ? int(this.§_-f7§.length - 1) : xIndex); + var maps:Vector. = this.§_-f7§[xIndex]; + var matrices:Vector. = this.§_-md§[xIndex]; var yIndex:int = (coords.y - this.bounds.minY) / (this.bounds.maxY - this.bounds.minY) * maps.length; yIndex = yIndex < 0 ? 0 : (yIndex >= maps.length ? int(maps.length - 1) : yIndex); var shadowMap:Texture = maps[yIndex]; var uvMatrix:Matrix3D = matrices[yIndex]; - name_208.alternativa3d::name_427(objectToUVMap,objectToShadowMap); + DirectionalShadowRenderer.alternativa3d::copyMatrixFromTransform(objectToUVMap,objectToShadowMap); objectToUVMap.append(uvMatrix); objectToUVMap.transpose(); - drawUnit.alternativa3d::name_426(program.vertexShader.getVariableIndex("cTOSHADOW"),objectToUVMap.rawData,4); - drawUnit.alternativa3d::name_205(program.fragmentShader.getVariableIndex("cConstants"),constants,1); - if(this.var_164 > 0) + drawUnit.alternativa3d::setVertexConstantsFromVector(program.vertexShader.getVariableIndex("cTOSHADOW"),objectToUVMap.rawData,4); + drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cConstants"),constants,1); + if(this.§_-M§ > 0) { - drawUnit.alternativa3d::name_205(program.fragmentShader.getVariableIndex("cPCF0"),pcfOffsets,pcfOffsets.length >> 2); + drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cPCF0"),pcfOffsets,pcfOffsets.length >> 2); } drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sSHADOWMAP"),shadowMap); } diff --git a/src/package_46/Matrix3.as b/src/alternativa/math/Matrix3.as similarity index 90% rename from src/package_46/Matrix3.as rename to src/alternativa/math/Matrix3.as index d268e3a..ead05b5 100644 --- a/src/package_46/Matrix3.as +++ b/src/alternativa/math/Matrix3.as @@ -1,4 +1,4 @@ -package package_46 +package alternativa.math { import flash.geom.Vector3D; @@ -40,7 +40,7 @@ package package_46 this.k = k; } - public function method_347() : Matrix3 + public function toIdentity() : Matrix3 { this.a = this.f = this.k = 1; this.b = this.c = this.e = this.g = this.i = this.j = 0; @@ -117,7 +117,7 @@ package package_46 return this; } - public function method_348(m:Matrix3) : Matrix3 + public function prependTransposed(m:Matrix3) : Matrix3 { var aa:Number = this.a; var bb:Number = this.b; @@ -182,28 +182,28 @@ package package_46 return this; } - public function method_345(vin:name_194, vout:name_194) : void + public function transformVector(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z; } - public function method_346(vin:name_194, vout:name_194) : void + public function transformVectorTransposed(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.e * vin.y + this.i * vin.z; vout.y = this.b * vin.x + this.f * vin.y + this.j * vin.z; vout.z = this.c * vin.x + this.g * vin.y + this.k * vin.z; } - public function transformVector3To3D(vin:name_194, vout:Vector3D) : void + public function transformVector3To3D(vin:Vector3, vout:Vector3D) : void { vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z; } - public function method_349(v:name_194) : Matrix3 + public function createSkewSymmetric(v:Vector3) : Matrix3 { this.a = this.f = this.k = 0; this.b = -v.z; @@ -229,7 +229,7 @@ package package_46 return this; } - public function name_196(rx:Number, ry:Number, rz:Number) : void + public function setRotationMatrix(rx:Number, ry:Number, rz:Number) : void { var cosX:Number = Number(Math.cos(rx)); var sinX:Number = Number(Math.sin(rx)); @@ -250,7 +250,7 @@ package package_46 this.k = cosY * cosX; } - public function method_344(axis:name_194, angle:Number) : void + public function fromAxisAngle(axis:Vector3, angle:Number) : void { var c1:Number = Number(Math.cos(angle)); var s:Number = Number(Math.sin(angle)); @@ -279,7 +279,7 @@ package package_46 return "[Matrix3 (" + this.a + ", " + this.b + ", " + this.c + "), (" + this.e + ", " + this.f + ", " + this.g + "), (" + this.i + ", " + this.j + ", " + this.k + ")]"; } - public function name_341(angles:name_194) : void + public function getEulerAngles(angles:Vector3) : void { if(-1 < this.i && this.i < 1) { diff --git a/src/package_46/Matrix4.as b/src/alternativa/math/Matrix4.as similarity index 86% rename from src/package_46/Matrix4.as rename to src/alternativa/math/Matrix4.as index 3f46373..520e5db 100644 --- a/src/package_46/Matrix4.as +++ b/src/alternativa/math/Matrix4.as @@ -1,4 +1,4 @@ -package package_46 +package alternativa.math { public class Matrix4 { @@ -45,7 +45,7 @@ package package_46 this.l = l; } - public function method_347() : Matrix4 + public function toIdentity() : Matrix4 { this.a = this.f = this.k = 1; this.b = this.c = this.e = this.g = this.i = this.j = this.d = this.h = this.l = 0; @@ -174,14 +174,14 @@ package package_46 return this; } - public function method_353(vin:name_194, vout:name_194) : void + public function transformPoint(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z + this.d; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z + this.h; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z + this.l; } - public function transformPointTransposed(vin:name_194, vout:name_194) : void + public function transformPointTransposed(vin:Vector3, vout:Vector3) : void { var xx:Number = vin.x - this.d; var yy:Number = vin.y - this.h; @@ -191,10 +191,10 @@ package package_46 vout.z = this.c * xx + this.g * yy + this.k * zz; } - public function method_354(arrin:Vector., arrout:Vector.) : void + public function transformPoints(arrin:Vector., arrout:Vector.) : void { - var vin:name_194 = null; - var vout:name_194 = null; + var vin:Vector3 = null; + var vout:Vector3 = null; var len:int = int(arrin.length); for(var idx:int = 0; idx < len; idx++) { @@ -206,10 +206,10 @@ package package_46 } } - public function method_357(arrin:Vector., arrout:Vector., len:int) : void + public function transformPointsN(arrin:Vector., arrout:Vector., len:int) : void { - var vin:name_194 = null; - var vout:name_194 = null; + var vin:Vector3 = null; + var vout:Vector3 = null; for(var idx:int = 0; idx < len; idx++) { vin = arrin[idx]; @@ -220,10 +220,10 @@ package package_46 } } - public function method_351(arrin:Vector., arrout:Vector.) : void + public function transformPointsTransposed(arrin:Vector., arrout:Vector.) : void { - var vin:name_194 = null; - var vout:name_194 = null; + var vin:Vector3 = null; + var vout:Vector3 = null; var xx:Number = NaN; var yy:Number = NaN; var zz:Number = NaN; @@ -241,10 +241,10 @@ package package_46 } } - public function method_352(arrin:Vector., arrout:Vector., len:int) : void + public function transformPointsTransposedN(arrin:Vector., arrout:Vector., len:int) : void { - var vin:name_194 = null; - var vout:name_194 = null; + var vin:Vector3 = null; + var vout:Vector3 = null; var xx:Number = NaN; var yy:Number = NaN; var zz:Number = NaN; @@ -261,7 +261,7 @@ package package_46 } } - public function getAxis(idx:int, axis:name_194) : void + public function getAxis(idx:int, axis:Vector3) : void { switch(idx) { @@ -290,7 +290,7 @@ package package_46 } } - public function method_356(xAxis:name_194, yAxis:name_194, zAxis:name_194, pos:name_194) : void + public function setAxes(xAxis:Vector3, yAxis:Vector3, zAxis:Vector3, pos:Vector3) : void { this.a = xAxis.x; this.e = xAxis.y; @@ -306,14 +306,14 @@ package package_46 this.l = pos.z; } - public function method_345(vin:name_194, vout:name_194) : void + public function transformVector(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z; } - public function method_346(vin:name_194, vout:name_194) : void + public function transformVectorTransposed(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.e * vin.y + this.i * vin.z; vout.y = this.b * vin.x + this.f * vin.y + this.j * vin.z; @@ -337,7 +337,7 @@ package package_46 return this; } - public function method_350(m:Matrix3, offset:name_194) : Matrix4 + public function setFromMatrix3(m:Matrix3, offset:Vector3) : Matrix4 { this.a = m.a; this.b = m.b; @@ -354,7 +354,7 @@ package package_46 return this; } - public function method_355(m:Matrix3) : Matrix4 + public function setOrientationFromMatrix3(m:Matrix3) : Matrix4 { this.a = m.a; this.b = m.b; @@ -368,7 +368,7 @@ package package_46 return this; } - public function name_341(angles:name_194) : void + public function getEulerAngles(angles:Vector3) : void { if(-1 < this.i && this.i < 1) { @@ -385,14 +385,14 @@ package package_46 } } - public function name_201(pos:name_194) : void + public function setPosition(pos:Vector3) : void { this.d = pos.x; this.h = pos.y; this.l = pos.z; } - public function name_75(x:Number, y:Number, z:Number) : void + public function setPositionXYZ(x:Number, y:Number, z:Number) : void { this.d = x; this.h = y; @@ -409,7 +409,7 @@ package package_46 return "[Matrix4 [" + this.a.toFixed(3) + " " + this.b.toFixed(3) + " " + this.c.toFixed(3) + " " + this.d.toFixed(3) + "] [" + this.e.toFixed(3) + " " + this.f.toFixed(3) + " " + this.g.toFixed(3) + " " + this.h.toFixed(3) + "] [" + this.i.toFixed(3) + " " + this.j.toFixed(3) + " " + this.k.toFixed(3) + " " + this.l.toFixed(3) + "]]"; } - public function name_196(rx:Number, ry:Number, rz:Number) : void + public function setRotationMatrix(rx:Number, ry:Number, rz:Number) : void { var cosX:Number = Number(Math.cos(rx)); var sinX:Number = Number(Math.sin(rx)); @@ -454,7 +454,7 @@ package package_46 this.k = cosY * cosX; } - public function method_344(axis:name_194, angle:Number) : void + public function fromAxisAngle(axis:Vector3, angle:Number) : void { var c1:Number = Number(Math.cos(angle)); var s:Number = Number(Math.sin(angle)); diff --git a/src/package_46/name_566.as b/src/alternativa/math/Quaternion.as similarity index 70% rename from src/package_46/name_566.as rename to src/alternativa/math/Quaternion.as index fa7fab3..df803c6 100644 --- a/src/package_46/name_566.as +++ b/src/alternativa/math/Quaternion.as @@ -1,12 +1,12 @@ -package package_46 +package alternativa.math { import flash.geom.Vector3D; - public class name_566 + public class Quaternion { - public static const IDENTITY:name_566 = new name_566(); + public static const IDENTITY:Quaternion = new Quaternion(); - private static var _q:name_566 = new name_566(); + private static var _q:Quaternion = new Quaternion(); public var w:Number; @@ -16,7 +16,7 @@ package package_46 public var z:Number; - public function name_566(w:Number = 1, x:Number = 0, y:Number = 0, z:Number = 0) + public function Quaternion(w:Number = 1, x:Number = 0, y:Number = 0, z:Number = 0) { super(); this.w = w; @@ -25,7 +25,7 @@ package package_46 this.z = z; } - public static function method_552(q1:name_566, q2:name_566, result:name_566) : void + public static function multiply(q1:Quaternion, q2:Quaternion, result:Quaternion) : void { result.w = q1.w * q2.w - q1.x * q2.x - q1.y * q2.y - q1.z * q2.z; result.x = q1.w * q2.x + q1.x * q2.w + q1.y * q2.z - q1.z * q2.y; @@ -33,34 +33,34 @@ package package_46 result.z = q1.w * q2.z + q1.z * q2.w + q1.x * q2.y - q1.y * q2.x; } - public static function method_771(axis:name_194, angle:Number) : name_566 + public static function createFromAxisAngle(axis:Vector3, angle:Number) : Quaternion { - var q:name_566 = new name_566(); - q.method_764(axis,angle); + var q:Quaternion = new Quaternion(); + q.setFromAxisAngle(axis,angle); return q; } - public static function method_765(x:Number, y:Number, z:Number, angle:Number) : name_566 + public static function createFromAxisAngleComponents(x:Number, y:Number, z:Number, angle:Number) : Quaternion { - var q:name_566 = new name_566(); - q.method_763(x,y,z,angle); + var q:Quaternion = new Quaternion(); + q.setFromAxisAngleComponents(x,y,z,angle); return q; } - public static function method_767(x:Number, y:Number, z:Number) : name_566 + public static function createFromEulerAnglesXYZ(x:Number, y:Number, z:Number) : Quaternion { - var q:name_566 = new name_566(); - q.method_763(1,0,0,x); - _q.method_763(0,1,0,y); + var q:Quaternion = new Quaternion(); + q.setFromAxisAngleComponents(1,0,0,x); + _q.setFromAxisAngleComponents(0,1,0,y); q.append(_q); q.normalize(); - _q.method_763(0,0,1,z); + _q.setFromAxisAngleComponents(0,0,1,z); q.append(_q); q.normalize(); return q; } - public function reset(w:Number = 1, x:Number = 0, y:Number = 0, z:Number = 0) : name_566 + public function reset(w:Number = 1, x:Number = 0, y:Number = 0, z:Number = 0) : Quaternion { this.w = w; this.x = x; @@ -69,7 +69,7 @@ package package_46 return this; } - public function normalize() : name_566 + public function normalize() : Quaternion { var d:Number = this.w * this.w + this.x * this.x + this.y * this.y + this.z * this.z; if(d == 0) @@ -87,7 +87,7 @@ package package_46 return this; } - public function prepend(q:name_566) : name_566 + public function prepend(q:Quaternion) : Quaternion { var ww:Number = this.w * q.w - this.x * q.x - this.y * q.y - this.z * q.z; var xx:Number = this.w * q.x + this.x * q.w + this.y * q.z - this.z * q.y; @@ -100,7 +100,7 @@ package package_46 return this; } - public function append(q:name_566) : name_566 + public function append(q:Quaternion) : Quaternion { var ww:Number = q.w * this.w - q.x * this.x - q.y * this.y - q.z * this.z; var xx:Number = q.w * this.x + q.x * this.w + q.y * this.z - q.z * this.y; @@ -113,7 +113,7 @@ package package_46 return this; } - public function method_772(v:name_194) : name_566 + public function rotateByVector(v:Vector3) : Quaternion { var ww:Number = -v.x * this.x - v.y * this.y - v.z * this.z; var xx:Number = v.x * this.w + v.y * this.z - v.z * this.y; @@ -126,7 +126,7 @@ package package_46 return this; } - public function name_603(v:name_194, scale:Number) : name_566 + public function addScaledVector(v:Vector3, scale:Number) : Quaternion { var vx:Number = v.x * scale; var vy:Number = v.y * scale; @@ -155,7 +155,7 @@ package package_46 return this; } - public function toMatrix3(m:Matrix3) : name_566 + public function toMatrix3(m:Matrix3) : Quaternion { var xx2:Number = NaN; var yy2:Number = NaN; @@ -184,7 +184,7 @@ package package_46 return this; } - public function toMatrix4(m:Matrix4) : name_566 + public function toMatrix4(m:Matrix4) : Quaternion { var zz2:Number = NaN; var xy2:Number = NaN; @@ -217,12 +217,12 @@ package package_46 return Math.sqrt(this.w * this.w + this.x * this.x + this.y * this.y + this.z * this.z); } - public function method_365() : Number + public function lengthSqr() : Number { return this.w * this.w + this.x * this.x + this.y * this.y + this.z * this.z; } - public function method_764(axis:name_194, angle:Number) : name_566 + public function setFromAxisAngle(axis:Vector3, angle:Number) : Quaternion { this.w = Math.cos(0.5 * angle); var k:Number = Math.sin(0.5 * angle) / Math.sqrt(axis.x * axis.x + axis.y * axis.y + axis.z * axis.z); @@ -232,7 +232,7 @@ package package_46 return this; } - public function method_763(x:Number, y:Number, z:Number, angle:Number) : name_566 + public function setFromAxisAngleComponents(x:Number, y:Number, z:Number, angle:Number) : Quaternion { this.w = Math.cos(0.5 * angle); var k:Number = Math.sin(0.5 * angle) / Math.sqrt(x * x + y * y + z * z); @@ -242,17 +242,17 @@ package package_46 return this; } - public function method_770(v:name_194 = null) : name_194 + public function toAxisVector(v:Vector3 = null) : Vector3 { - var angle:Number = NaN; - var coeff:Number = NaN; + var _loc2_:Number = NaN; + var _loc3_:Number = NaN; if(this.w < -1 || this.w > 1) { this.normalize(); } if(v == null) { - v = new name_194(); + v = new Vector3(); } if(this.w > -1 && this.w < 1) { @@ -264,11 +264,11 @@ package package_46 } else { - angle = 2 * Math.acos(this.w); - coeff = 1 / Math.sqrt(1 - this.w * this.w); - v.x = this.x * coeff * angle; - v.y = this.y * coeff * angle; - v.z = this.z * coeff * angle; + _loc2_ = 2 * Math.acos(this.w); + _loc3_ = 1 / Math.sqrt(1 - this.w * this.w); + v.x = this.x * _loc3_ * _loc2_; + v.y = this.y * _loc3_ * _loc2_; + v.z = this.z * _loc3_ * _loc2_; } } else @@ -280,7 +280,7 @@ package package_46 return v; } - public function name_341(angles:name_194) : name_194 + public function getEulerAngles(angles:Vector3) : Vector3 { var qi2:Number = 2 * this.x * this.x; var qj2:Number = 2 * this.y * this.y; @@ -302,7 +302,7 @@ package package_46 { if(angles == null) { - angles = new name_194(Math.atan2(jj,kk),-Math.asin(ii),Math.atan2(ee,aa)); + angles = new Vector3(Math.atan2(jj,kk),-Math.asin(ii),Math.atan2(ee,aa)); } else { @@ -313,7 +313,7 @@ package package_46 } else if(angles == null) { - angles = new name_194(0,0.5 * (ii <= -1 ? Math.PI : -Math.PI),Math.atan2(-bb,ff)); + angles = new Vector3(0,0.5 * (ii <= -1 ? Math.PI : -Math.PI),Math.atan2(-bb,ff)); } else { @@ -325,25 +325,25 @@ package package_46 return angles; } - public function method_768(x:Number, y:Number, z:Number) : void + public function setFromEulerAnglesXYZ(x:Number, y:Number, z:Number) : void { - this.method_763(1,0,0,x); - _q.method_763(0,1,0,y); + this.setFromAxisAngleComponents(1,0,0,x); + _q.setFromAxisAngleComponents(0,1,0,y); this.append(_q); this.normalize(); - _q.method_763(0,0,1,z); + _q.setFromAxisAngleComponents(0,0,1,z); this.append(_q); this.normalize(); } - public function method_769() : void + public function conjugate() : void { this.x = -this.x; this.y = -this.y; this.z = -this.z; } - public function method_766(q1:name_566, q2:name_566, t:Number) : name_566 + public function nlerp(q1:Quaternion, q2:Quaternion, t:Number) : Quaternion { var d:Number = 1 - t; this.w = q1.w * d + q2.w * t; @@ -366,7 +366,7 @@ package package_46 return this; } - public function subtract(q:name_566) : name_566 + public function subtract(q:Quaternion) : Quaternion { this.w -= q.w; this.x -= q.x; @@ -375,7 +375,7 @@ package package_46 return this; } - public function method_366(q1:name_566, q2:name_566) : name_566 + public function diff(q1:Quaternion, q2:Quaternion) : Quaternion { this.w = q2.w - q1.w; this.x = q2.x - q1.x; @@ -384,7 +384,7 @@ package package_46 return this; } - public function copy(q:name_566) : name_566 + public function copy(q:Quaternion) : Quaternion { this.w = q.w; this.x = q.x; @@ -393,7 +393,7 @@ package package_46 return this; } - public function method_363(result:Vector3D) : Vector3D + public function toVector3D(result:Vector3D) : Vector3D { result.x = this.x; result.y = this.y; @@ -402,9 +402,9 @@ package package_46 return result; } - public function clone() : name_566 + public function clone() : Quaternion { - return new name_566(this.w,this.x,this.y,this.z); + return new Quaternion(this.w,this.x,this.y,this.z); } public function toString() : String @@ -412,14 +412,14 @@ package package_46 return "[" + this.w + ", " + this.x + ", " + this.y + ", " + this.z + "]"; } - public function name_602(a:name_566, b:name_566, t:Number) : name_566 + public function slerp(a:Quaternion, b:Quaternion, t:Number) : Quaternion { var k1:Number = NaN; var k2:Number = NaN; - var theta:Number = NaN; - var sine:Number = NaN; - var beta:Number = NaN; - var alpha:Number = NaN; + var _loc8_:Number = NaN; + var _loc9_:Number = NaN; + var _loc10_:Number = NaN; + var _loc11_:Number = NaN; var flip:Number = 1; var cosine:Number = a.w * b.w + a.x * b.x + a.y * b.y + a.z * b.z; if(cosine < 0) @@ -439,14 +439,14 @@ package package_46 } else { - theta = Number(Math.acos(cosine)); - sine = Number(Math.sin(theta)); - beta = Math.sin((1 - t) * theta) / sine; - alpha = Math.sin(t * theta) / sine * flip; - this.w = a.w * beta + b.w * alpha; - this.x = a.x * beta + b.x * alpha; - this.y = a.y * beta + b.y * alpha; - this.z = a.z * beta + b.z * alpha; + _loc8_ = Number(Math.acos(cosine)); + _loc9_ = Number(Math.sin(_loc8_)); + _loc10_ = Math.sin((1 - t) * _loc8_) / _loc9_; + _loc11_ = Math.sin(t * _loc8_) / _loc9_ * flip; + this.w = a.w * _loc10_ + b.w * _loc11_; + this.x = a.x * _loc10_ + b.x * _loc11_; + this.y = a.y * _loc10_ + b.y * _loc11_; + this.z = a.z * _loc10_ + b.z * _loc11_; } return this; } diff --git a/src/package_46/name_194.as b/src/alternativa/math/Vector3.as similarity index 65% rename from src/package_46/name_194.as rename to src/alternativa/math/Vector3.as index 27f50c6..ba55dce 100644 --- a/src/package_46/name_194.as +++ b/src/alternativa/math/Vector3.as @@ -1,28 +1,28 @@ -package package_46 +package alternativa.math { import flash.geom.Vector3D; - public class name_194 + public class Vector3 { - public static const ZERO:name_194 = new name_194(0,0,0); + public static const ZERO:Vector3 = new Vector3(0,0,0); - public static const X_AXIS:name_194 = new name_194(1,0,0); + public static const X_AXIS:Vector3 = new Vector3(1,0,0); - public static const Y_AXIS:name_194 = new name_194(0,1,0); + public static const Y_AXIS:Vector3 = new Vector3(0,1,0); - public static const Z_AXIS:name_194 = new name_194(0,0,1); + public static const Z_AXIS:Vector3 = new Vector3(0,0,1); - public static const RIGHT:name_194 = new name_194(1,0,0); + public static const RIGHT:Vector3 = new Vector3(1,0,0); - public static const LEFT:name_194 = new name_194(-1,0,0); + public static const LEFT:Vector3 = new Vector3(-1,0,0); - public static const FORWARD:name_194 = new name_194(0,1,0); + public static const FORWARD:Vector3 = new Vector3(0,1,0); - public static const BACK:name_194 = new name_194(0,-1,0); + public static const BACK:Vector3 = new Vector3(0,-1,0); - public static const UP:name_194 = new name_194(0,0,1); + public static const UP:Vector3 = new Vector3(0,0,1); - public static const DOWN:name_194 = new name_194(0,0,-1); + public static const DOWN:Vector3 = new Vector3(0,0,-1); public var x:Number; @@ -30,7 +30,7 @@ package package_46 public var z:Number; - public function name_194(x:Number = 0, y:Number = 0, z:Number = 0) + public function Vector3(x:Number = 0, y:Number = 0, z:Number = 0) { super(); this.x = x; @@ -43,14 +43,14 @@ package package_46 return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); } - public function method_365() : Number + public function lengthSqr() : Number { return this.x * this.x + this.y * this.y + this.z * this.z; } - public function method_358(length:Number) : name_194 + public function setLength(length:Number) : Vector3 { - var k:Number = NaN; + var _loc3_:Number = NaN; var d:Number = this.x * this.x + this.y * this.y + this.z * this.z; if(d == 0) { @@ -58,15 +58,15 @@ package package_46 } else { - k = length / Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); - this.x *= k; - this.y *= k; - this.z *= k; + _loc3_ = length / Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); + this.x *= _loc3_; + this.y *= _loc3_; + this.z *= _loc3_; } return this; } - public function normalize() : name_194 + public function normalize() : Vector3 { var d:Number = this.x * this.x + this.y * this.y + this.z * this.z; if(d == 0) @@ -83,7 +83,7 @@ package package_46 return this; } - public function add(v:name_194) : name_194 + public function add(v:Vector3) : Vector3 { this.x += v.x; this.y += v.y; @@ -91,7 +91,7 @@ package package_46 return this; } - public function method_362(k:Number, v:name_194) : name_194 + public function addScaled(k:Number, v:Vector3) : Vector3 { this.x += k * v.x; this.y += k * v.y; @@ -99,7 +99,7 @@ package package_46 return this; } - public function subtract(v:name_194) : name_194 + public function subtract(v:Vector3) : Vector3 { this.x -= v.x; this.y -= v.y; @@ -107,7 +107,7 @@ package package_46 return this; } - public function sum(a:name_194, b:name_194) : name_194 + public function sum(a:Vector3, b:Vector3) : Vector3 { this.x = a.x + b.x; this.y = a.y + b.y; @@ -115,7 +115,7 @@ package package_46 return this; } - public function method_366(a:name_194, b:name_194) : name_194 + public function diff(a:Vector3, b:Vector3) : Vector3 { this.x = a.x - b.x; this.y = a.y - b.y; @@ -123,7 +123,7 @@ package package_46 return this; } - public function scale(k:Number) : name_194 + public function scale(k:Number) : Vector3 { this.x *= k; this.y *= k; @@ -131,7 +131,7 @@ package package_46 return this; } - public function reverse() : name_194 + public function reverse() : Vector3 { this.x = -this.x; this.y = -this.y; @@ -139,12 +139,12 @@ package package_46 return this; } - public function dot(v:name_194) : Number + public function dot(v:Vector3) : Number { return this.x * v.x + this.y * v.y + this.z * v.z; } - public function method_360(v:name_194) : name_194 + public function cross(v:Vector3) : Vector3 { var xx:Number = this.y * v.z - this.z * v.y; var yy:Number = this.z * v.x - this.x * v.z; @@ -155,7 +155,7 @@ package package_46 return this; } - public function cross2(a:name_194, b:name_194) : name_194 + public function cross2(a:Vector3, b:Vector3) : Vector3 { this.x = a.y * b.z - a.z * b.y; this.y = a.z * b.x - a.x * b.z; @@ -163,7 +163,7 @@ package package_46 return this; } - public function transform3(m:Matrix3) : name_194 + public function transform3(m:Matrix3) : Vector3 { var xx:Number = this.x; var yy:Number = this.y; @@ -174,7 +174,7 @@ package package_46 return this; } - public function transformTransposed3(m:Matrix3) : name_194 + public function transformTransposed3(m:Matrix3) : Vector3 { var xx:Number = this.x; var yy:Number = this.y; @@ -185,7 +185,7 @@ package package_46 return this; } - public function transform4(m:Matrix4) : name_194 + public function transform4(m:Matrix4) : Vector3 { var xx:Number = this.x; var yy:Number = this.y; @@ -196,7 +196,7 @@ package package_46 return this; } - public function transformTransposed4(m:Matrix4) : name_194 + public function transformTransposed4(m:Matrix4) : Vector3 { var xx:Number = this.x - m.d; var yy:Number = this.y - m.h; @@ -207,7 +207,7 @@ package package_46 return this; } - public function method_359(m:Matrix4) : name_194 + public function transformVector4(m:Matrix4) : Vector3 { var xx:Number = this.x; var yy:Number = this.y; @@ -218,7 +218,7 @@ package package_46 return this; } - public function reset(x:Number = 0, y:Number = 0, z:Number = 0) : name_194 + public function reset(x:Number = 0, y:Number = 0, z:Number = 0) : Vector3 { this.x = x; this.y = y; @@ -226,7 +226,7 @@ package package_46 return this; } - public function copy(v:name_194) : name_194 + public function copy(v:Vector3) : Vector3 { this.x = v.x; this.y = v.y; @@ -234,12 +234,12 @@ package package_46 return this; } - public function clone() : name_194 + public function clone() : Vector3 { - return new name_194(this.x,this.y,this.z); + return new Vector3(this.x,this.y,this.z); } - public function method_363(result:Vector3D) : Vector3D + public function toVector3D(result:Vector3D) : Vector3D { result.x = this.x; result.y = this.y; @@ -247,7 +247,7 @@ package package_46 return result; } - public function method_361(source:Vector3D) : name_194 + public function copyFromVector3D(source:Vector3D) : Vector3 { this.x = source.x; this.y = source.y; @@ -255,7 +255,7 @@ package package_46 return this; } - public function method_364(v:name_194) : Number + public function distanceTo(v:Vector3) : Number { var dx:Number = this.x - v.x; var dy:Number = this.y - v.y; diff --git a/src/package_31/name_366.as b/src/alternativa/osgi/bundle/BundleDescriptor.as similarity index 60% rename from src/package_31/name_366.as rename to src/alternativa/osgi/bundle/BundleDescriptor.as index b29c2dd..46cb70d 100644 --- a/src/package_31/name_366.as +++ b/src/alternativa/osgi/bundle/BundleDescriptor.as @@ -1,44 +1,44 @@ -package package_31 +package alternativa.osgi.bundle { - import flash.system.ApplicationDomain; - import alternativa.utils.Properties; - import package_39.name_160; import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.utils.Properties; + import flash.system.ApplicationDomain; - public class name_366 implements name_202 + public class BundleDescriptor implements IBundleDescriptor { private static var LOG_CHANNEL:String = "osgi"; - private static var clientLog:name_160 = name_160(OSGi.name_8().name_30(name_160)); + private static var clientLog:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var _name:String; - private var var_566:Vector.; + private var §_-lF§:Vector.; - private var var_567:Properties; + private var §_-7V§:Properties; - public function name_366(properties:Properties) + public function BundleDescriptor(properties:Properties) { var activatorClassName:String = null; var isActivatorExists:Boolean = false; var activatorClass:Class = null; super(); - this.var_567 = properties || new Properties(); - this._name = properties.method_24("Bundle-Name"); + this.§_-7V§ = properties || new Properties(); + this._name = properties.getProperty("Bundle-Name"); clientLog.log(LOG_CHANNEL,"BundleDescriptor: Bundle name: %1",this._name); - var activatorClassNames:Array = [properties.method_24("Bundle-Activator")]; + var activatorClassNames:Array = [properties.getProperty("Bundle-Activator")]; if(Boolean(this._name)) { activatorClassNames.push(this._name.toLowerCase() + ".Activator"); } - this.var_566 = new Vector.(); + this.§_-lF§ = new Vector.(); for each(activatorClassName in activatorClassNames) { isActivatorExists = Boolean(ApplicationDomain.currentDomain.hasDefinition(activatorClassName)); if(isActivatorExists) { activatorClass = Class(ApplicationDomain.currentDomain.getDefinition(activatorClassName)); - this.var_566.push(class_6(new activatorClass())); + this.§_-lF§.push(IBundleActivator(new activatorClass())); clientLog.log(LOG_CHANNEL,"BundleDescriptor: Activator has been created: %1",activatorClassName); } else @@ -53,14 +53,14 @@ package package_31 return this._name; } - public function get activators() : Vector. + public function get activators() : Vector. { - return this.var_566; + return this.§_-lF§; } public function get properties() : Properties { - return this.var_567; + return this.§_-7V§; } } } diff --git a/src/package_31/class_6.as b/src/alternativa/osgi/bundle/IBundleActivator.as similarity index 63% rename from src/package_31/class_6.as rename to src/alternativa/osgi/bundle/IBundleActivator.as index 195964f..db57967 100644 --- a/src/package_31/class_6.as +++ b/src/alternativa/osgi/bundle/IBundleActivator.as @@ -1,8 +1,8 @@ -package package_31 +package alternativa.osgi.bundle { import alternativa.osgi.OSGi; - public interface class_6 + public interface IBundleActivator { function start(param1:OSGi) : void; diff --git a/src/package_31/name_202.as b/src/alternativa/osgi/bundle/IBundleDescriptor.as similarity index 51% rename from src/package_31/name_202.as rename to src/alternativa/osgi/bundle/IBundleDescriptor.as index 5ff1fad..9ee9505 100644 --- a/src/package_31/name_202.as +++ b/src/alternativa/osgi/bundle/IBundleDescriptor.as @@ -1,12 +1,12 @@ -package package_31 +package alternativa.osgi.bundle { import alternativa.utils.Properties; - public interface name_202 + public interface IBundleDescriptor { function get name() : String; - function get activators() : Vector.; + function get activators() : Vector.; function get properties() : Properties; } diff --git a/src/package_39/name_368.as b/src/alternativa/osgi/service/clientlog/ClientLog.as similarity index 61% rename from src/package_39/name_368.as rename to src/alternativa/osgi/service/clientlog/ClientLog.as index 6e461e3..be51c66 100644 --- a/src/package_39/name_368.as +++ b/src/alternativa/osgi/service/clientlog/ClientLog.as @@ -1,14 +1,14 @@ -package package_39 +package alternativa.osgi.service.clientlog { - public class name_368 implements name_160 + public class ClientLog implements IClientLog { private var channels:Object = {}; - private var listeners:Vector. = new Vector.(); + private var listeners:Vector. = new Vector.(); private var channelBufferSize:int; - public function name_368(channelBufferSize:int) + public function ClientLog(channelBufferSize:int) { super(); this.channelBufferSize = channelBufferSize; @@ -16,27 +16,27 @@ package package_39 public function log(channelName:String, text:String, ... vars) : void { - this.method_620(channelName).log(this.method_621(text,vars)); + this.getChannel(channelName).log(this.insertVars(text,vars)); } public function logError(channelName:String, text:String, ... vars) : void { - var message:String = this.method_621(text,vars); - this.method_620(channelName).log(message); - this.method_620("error").log(message); + var message:String = this.insertVars(text,vars); + this.getChannel(channelName).log(message); + this.getChannel("error").log(message); } public function getChannelStrings(channelName:String) : Vector. { - var channel:name_637 = this.channels[channelName]; + var channel:ClientLogChannel = this.channels[channelName]; if(channel == null) { return null; } - return channel.name_638(); + return channel.getStrings(); } - public function addLogListener(listener:name_450) : void + public function addLogListener(listener:IClientLogChannelListener) : void { var channelName:String = null; var i:int = int(this.listeners.indexOf(listener)); @@ -50,7 +50,7 @@ package package_39 } } - public function removeLogListener(listener:name_450) : void + public function removeLogListener(listener:IClientLogChannelListener) : void { var channelName:String = null; var i:int = int(this.listeners.indexOf(listener)); @@ -64,14 +64,14 @@ package package_39 } } - public function addLogChannelListener(channelName:String, listener:name_450) : void + public function addLogChannelListener(channelName:String, listener:IClientLogChannelListener) : void { - this.method_620(channelName).addLogListener(listener); + this.getChannel(channelName).addLogListener(listener); } - public function removeLogChannelListener(channelName:String, listener:name_450) : void + public function removeLogChannelListener(channelName:String, listener:IClientLogChannelListener) : void { - this.method_620(channelName).removeLogListener(listener); + this.getChannel(channelName).removeLogListener(listener); } public function getChannelNames() : Vector. @@ -85,13 +85,13 @@ package package_39 return result; } - private function method_620(channelName:String) : name_637 + private function getChannel(channelName:String) : ClientLogChannel { - var listener:name_450 = null; - var channel:name_637 = this.channels[channelName]; + var listener:IClientLogChannelListener = null; + var channel:ClientLogChannel = this.channels[channelName]; if(channel == null) { - channel = new name_637(channelName,this.channelBufferSize); + channel = new ClientLogChannel(channelName,this.channelBufferSize); this.channels[channelName] = channel; for each(listener in this.listeners) { @@ -101,7 +101,7 @@ package package_39 return channel; } - private function method_621(text:String, vars:Array) : String + private function insertVars(text:String, vars:Array) : String { for(var i:int = 0; i < vars.length; i++) { diff --git a/src/package_39/name_637.as b/src/alternativa/osgi/service/clientlog/ClientLogChannel.as similarity index 57% rename from src/package_39/name_637.as rename to src/alternativa/osgi/service/clientlog/ClientLogChannel.as index 96ae560..5814df3 100644 --- a/src/package_39/name_637.as +++ b/src/alternativa/osgi/service/clientlog/ClientLogChannel.as @@ -1,16 +1,16 @@ -package package_39 +package alternativa.osgi.service.clientlog { import alternativa.utils.CircularStringBuffer; - public class name_637 + public class ClientLogChannel { private var _name:String; private var buffer:CircularStringBuffer; - private var listeners:Vector. = new Vector.(); + private var listeners:Vector. = new Vector.(); - public function name_637(name:String, bufferSize:int) + public function ClientLogChannel(name:String, bufferSize:int) { super(); this._name = name; @@ -24,20 +24,20 @@ package package_39 public function log(text:String) : void { - var listener:name_450 = null; + var listener:IClientLogChannelListener = null; this.buffer.add(text); for each(listener in this.listeners) { - listener.method_622(this._name,text); + listener.onLogEntryAdded(this._name,text); } } - public function name_638() : Vector. + public function getStrings() : Vector. { - return this.buffer.name_638(); + return this.buffer.getStrings(); } - public function addLogListener(listener:name_450) : void + public function addLogListener(listener:IClientLogChannelListener) : void { var i:int = int(this.listeners.indexOf(listener)); if(i < 0) @@ -46,7 +46,7 @@ package package_39 } } - public function removeLogListener(listener:name_450) : void + public function removeLogListener(listener:IClientLogChannelListener) : void { var i:int = int(this.listeners.indexOf(listener)); if(i > -1) diff --git a/src/alternativa/osgi/service/clientlog/IClientLog.as b/src/alternativa/osgi/service/clientlog/IClientLog.as new file mode 100644 index 0000000..4523132 --- /dev/null +++ b/src/alternativa/osgi/service/clientlog/IClientLog.as @@ -0,0 +1,20 @@ +package alternativa.osgi.service.clientlog +{ + public interface IClientLog extends IClientLogBase + { + function logError(param1:String, param2:String, ... rest) : void; + + function getChannelStrings(param1:String) : Vector.; + + function addLogListener(param1:IClientLogChannelListener) : void; + + function removeLogListener(param1:IClientLogChannelListener) : void; + + function addLogChannelListener(param1:String, param2:IClientLogChannelListener) : void; + + function removeLogChannelListener(param1:String, param2:IClientLogChannelListener) : void; + + function getChannelNames() : Vector.; + } +} + diff --git a/src/alternativa/osgi/service/clientlog/IClientLogBase.as b/src/alternativa/osgi/service/clientlog/IClientLogBase.as new file mode 100644 index 0000000..64c2ba8 --- /dev/null +++ b/src/alternativa/osgi/service/clientlog/IClientLogBase.as @@ -0,0 +1,8 @@ +package alternativa.osgi.service.clientlog +{ + public interface IClientLogBase + { + function log(param1:String, param2:String, ... rest) : void; + } +} + diff --git a/src/alternativa/osgi/service/clientlog/IClientLogChannelListener.as b/src/alternativa/osgi/service/clientlog/IClientLogChannelListener.as new file mode 100644 index 0000000..7bee361 --- /dev/null +++ b/src/alternativa/osgi/service/clientlog/IClientLogChannelListener.as @@ -0,0 +1,8 @@ +package alternativa.osgi.service.clientlog +{ + public interface IClientLogChannelListener + { + function onLogEntryAdded(param1:String, param2:String) : void; + } +} + diff --git a/src/alternativa/osgi/service/console/Console.as b/src/alternativa/osgi/service/console/Console.as index 2e591cc..4b9dd10 100644 --- a/src/alternativa/osgi/service/console/Console.as +++ b/src/alternativa/osgi/service/console/Console.as @@ -1,5 +1,9 @@ package alternativa.osgi.service.console { + import alternativa.osgi.service.console.variables.ConsoleVar; + import alternativa.utils.CircularStringBuffer; + import alternativa.utils.ICircularStringBuffer; + import alternativa.utils.IStringBufferIterator; import flash.display.Graphics; import flash.display.Sprite; import flash.display.Stage; @@ -13,10 +17,6 @@ package alternativa.osgi.service.console import flash.text.TextFormat; import flash.ui.Keyboard; import flash.utils.setTimeout; - import alternativa.osgi.service.console.variables.ConsoleVar; - import alternativa.utils.IStringBufferIterator; - import alternativa.utils.CircularStringBuffer; - import alternativa.utils.ICircularStringBuffer; public class Console implements IConsole { @@ -36,49 +36,49 @@ package alternativa.osgi.service.console private var container:Sprite = new Sprite(); - private var var_538:Sprite; + private var §_-mB§:Sprite; private var input:TextField; - private var var_532:Vector. = new Vector.(); + private var §_-2O§:Vector. = new Vector.(); - private var var_546:int; + private var §_-V8§:int; - private var var_543:int; + private var §_-k3§:int; - private var var_545:int = 0; + private var §_-5f§:int = 0; - private var var_544:Boolean; + private var §_-Y3§:Boolean; private var visible:Boolean; - private var var_533:Array = []; + private var §_-Fe§:Array = []; - private var var_531:int = 0; + private var §_-hY§:int = 0; - private var var_540:Object = {}; + private var §_-Pl§:Object = {}; - private var var_536:Object = {}; + private var §_-I9§:Object = {}; - private var var_529:int; + private var §_-HF§:int; - private var var_542:int; + private var §_-6U§:int; - private var var_530:int; + private var §_-gO§:int; private var buffer:ICircularStringBuffer; - private var var_535:int; + private var §_-Nl§:int; - private var var_534:int; + private var §_-Gl§:int; private var align:int; - private var var_539:uint = 16777215; + private var §_-0P§:uint = 16777215; - private var var_537:uint = 0; + private var §_-Su§:uint = 0; - private var var_541:Number = 1; + private var §_-S9§:Number = 1; private var filter:String; @@ -90,64 +90,64 @@ package alternativa.osgi.service.console this.calcTextMetrics(stage); this.initInput(); this.initOutput(); - this.method_140(widthPercent,heightPercent); - this.method_138 = hAlign; - this.method_137 = vAlign; + this.setSize(widthPercent,heightPercent); + this.horizontalAlignment = hAlign; + this.vericalAlignment = vAlign; stage.addEventListener(KeyboardEvent.KEY_UP,this.onKeyUp); stage.addEventListener(Event.RESIZE,this.onResize); - this.name_45("hide",this.onHide); - this.name_45("copy",this.copyConsoleContent); - this.name_45("clear",this.clearConsole); - this.name_45("cmdlist",this.listCommands); - this.name_45("con_height",this.onConsoleHeight); - this.name_45("con_width",this.onConsoleWidth); - this.name_45("con_halign",this.onHorizontalAlign); - this.name_45("con_valign",this.onVerticalAlign); - this.name_45("con_alpha",this.onAlpha); - this.name_45("con_bg",this.onBackgroundColor); - this.name_45("con_fg",this.onForegroundColor); - this.name_45("filter",this.onFilterCommand); - this.name_45("varlist",this.printVars); - this.name_45("varlistv",this.printVarsValues); + this.setCommandHandler("hide",this.onHide); + this.setCommandHandler("copy",this.copyConsoleContent); + this.setCommandHandler("clear",this.clearConsole); + this.setCommandHandler("cmdlist",this.listCommands); + this.setCommandHandler("con_height",this.onConsoleHeight); + this.setCommandHandler("con_width",this.onConsoleWidth); + this.setCommandHandler("con_halign",this.onHorizontalAlign); + this.setCommandHandler("con_valign",this.onVerticalAlign); + this.setCommandHandler("con_alpha",this.onAlpha); + this.setCommandHandler("con_bg",this.onBackgroundColor); + this.setCommandHandler("con_fg",this.onForegroundColor); + this.setCommandHandler("filter",this.onFilterCommand); + this.setCommandHandler("varlist",this.printVars); + this.setCommandHandler("varlistv",this.printVarsValues); } - public function name_147(variable:ConsoleVar) : void + public function addVariable(variable:ConsoleVar) : void { - this.var_536[variable.name_32()] = variable; + this.§_-I9§[variable.getName()] = variable; } - public function name_146(variableName:String) : void + public function removeVariable(variableName:String) : void { - delete this.var_536[variableName]; + delete this.§_-I9§[variableName]; } - public function set method_138(value:int) : void + public function set horizontalAlignment(value:int) : void { value = this.clamp(value,1,3); this.align = this.align & ~3 | value; this.updateAlignment(); } - public function get method_138() : int + public function get horizontalAlignment() : int { return this.align & 3; } - public function set method_137(value:int) : void + public function set vericalAlignment(value:int) : void { value = this.clamp(value,1,3); this.align = this.align & ~0x0C | value << 2; this.updateAlignment(); } - public function get method_137() : int + public function get vericalAlignment() : int { return this.align >> 2 & 3; } - public function name_145(text:String) : void + public function addText(text:String) : void { - var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; + var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; var linesAdded:int = this.addLine(text); if(needScroll) { @@ -155,9 +155,9 @@ package alternativa.osgi.service.console } } - public function method_143(prefix:String, text:String) : void + public function addPrefixedText(prefix:String, text:String) : void { - var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; + var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; var linesAdded:int = this.addPrefixedLine(prefix,text); if(needScroll) { @@ -165,11 +165,11 @@ package alternativa.osgi.service.console } } - public function method_145(lines:Vector.) : void + public function addLines(lines:Vector.) : void { var linesAdded:int = 0; var line:String = null; - var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; + var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; for each(line in lines) { linesAdded += this.addLine(line); @@ -180,11 +180,11 @@ package alternativa.osgi.service.console } } - public function method_142(prefix:String, lines:Vector.) : void + public function addPrefixedLines(prefix:String, lines:Vector.) : void { var linesAdded:int = 0; var line:String = null; - var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; + var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; for each(line in lines) { linesAdded += this.addPrefixedLine(prefix,line); @@ -222,46 +222,46 @@ package alternativa.osgi.service.console } } - public function method_141() : Boolean + public function isVisible() : Boolean { return this.visible; } - public function method_140(widthPercent:int, heightPercent:int) : void + public function setSize(widthPercent:int, heightPercent:int) : void { widthPercent = this.clamp(widthPercent,1,100); heightPercent = this.clamp(heightPercent,1,100); - if(widthPercent == this.var_535 && heightPercent == this.var_534) + if(widthPercent == this.§_-Nl§ && heightPercent == this.§_-Gl§) { return; } - this.var_535 = widthPercent; - this.var_534 = heightPercent; + this.§_-Nl§ = widthPercent; + this.§_-Gl§ = heightPercent; this.updateSize(); this.updateAlignment(); } public function set width(widthPercent:int) : void { - this.method_140(widthPercent,this.var_534); + this.setSize(widthPercent,this.§_-Gl§); } public function get width() : int { - return this.var_535; + return this.§_-Nl§; } public function set height(heightPercent:int) : void { - this.method_140(this.var_535,heightPercent); + this.setSize(this.§_-Nl§,heightPercent); } public function get height() : int { - return this.var_534; + return this.§_-Gl§; } - public function name_45(commandName:String, handler:Function) : void + public function setCommandHandler(commandName:String, handler:Function) : void { if(commandName == null || commandName == "") { @@ -271,62 +271,62 @@ package alternativa.osgi.service.console { throw new ArgumentError("Handler is null"); } - this.var_540[commandName] = handler; + this.§_-Pl§[commandName] = handler; } - public function method_144(commandName:String) : void + public function removeCommandHandler(commandName:String) : void { if(commandName == null || commandName == "") { throw new ArgumentError("Command name is null or empty"); } - delete this.var_540[commandName]; + delete this.§_-Pl§[commandName]; } - public function method_561(delay:uint) : void + public function hideDelayed(delay:uint) : void { setTimeout(this.hide,delay); } - public function method_139(text:String) : void + public function executeCommand(text:String) : void { - var commandHandler:Function = null; + var _loc6_:Function = null; if(Boolean(text.match(/^\s*$/))) { return; } - var len:int = int(this.var_533.length); - if(len == 0 || this.var_533[len - 1] != text) + var len:int = int(this.§_-Fe§.length); + if(len == 0 || this.§_-Fe§[len - 1] != text) { - this.var_533.push(text); + this.§_-Fe§.push(text); } - this.var_531 = len + 1; + this.§_-hY§ = len + 1; var tokens:Array = text.match(TOKENIZER); var commandName:String = tokens.shift(); - var variable:ConsoleVar = this.var_536[commandName]; + var variable:ConsoleVar = this.§_-I9§[commandName]; if(variable != null) { - variable.method_77(this,tokens); + variable.processConsoleInput(this,tokens); } else { - commandHandler = this.var_540[commandName]; - if(commandHandler != null) + _loc6_ = this.§_-Pl§[commandName]; + if(_loc6_ != null) { - commandHandler.call(null,this,tokens); + _loc6_.call(null,this,tokens); } } } public function set alpha(value:Number) : void { - this.var_541 = value; + this.§_-S9§ = value; this.updateSize(); } public function get alpha() : Number { - return this.var_541; + return this.§_-S9§; } private function calcTextMetrics(stage:Stage) : void @@ -335,8 +335,8 @@ package alternativa.osgi.service.console tf.defaultTextFormat = DEFAULT_TEXT_FORMAT; tf.text = "j"; stage.addChild(tf); - this.var_546 = tf.textWidth; - this.var_543 = tf.textHeight + 4; + this.§_-V8§ = tf.textWidth; + this.§_-k3§ = tf.textHeight + 4; stage.removeChild(tf); } @@ -358,38 +358,38 @@ package alternativa.osgi.service.console private function initOutput() : void { - this.var_538 = new Sprite(); - this.var_538.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); - this.container.addChild(this.var_538); + this.§_-mB§ = new Sprite(); + this.§_-mB§.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); + this.container.addChild(this.§_-mB§); } private function resizeOutput(w:int, h:int) : void { - this.var_529 = h / (this.var_543 + this.var_545); - this.var_542 = w / this.var_546 - 1; + this.§_-HF§ = h / (this.§_-k3§ + this.§_-5f§); + this.§_-6U§ = w / this.§_-V8§ - 1; this.updateTextFields(w); this.scrollOutput(0); - var g:Graphics = this.var_538.graphics; + var g:Graphics = this.§_-mB§.graphics; g.clear(); - g.beginFill(this.var_539,this.var_541); + g.beginFill(this.§_-0P§,this.§_-S9§); g.drawRect(0,0,w,h); g.endFill(); } private function updateTextFields(w:int) : void { - for(var tf:TextField = null; this.var_532.length > this.var_529; ) + for(var tf:TextField = null; this.§_-2O§.length > this.§_-HF§; ) { - this.var_538.removeChild(this.var_532.pop()); + this.§_-mB§.removeChild(this.§_-2O§.pop()); } - while(this.var_532.length < this.var_529) + while(this.§_-2O§.length < this.§_-HF§) { this.createTextField(); } - var lineHeight:int = this.var_543 + this.var_545; - for(var i:int = 0; i < this.var_532.length; i++) + var lineHeight:int = this.§_-k3§ + this.§_-5f§; + for(var i:int = 0; i < this.§_-2O§.length; i++) { - tf = this.var_532[i]; + tf = this.§_-2O§[i]; tf.y = i * lineHeight; tf.width = w; } @@ -398,24 +398,24 @@ package alternativa.osgi.service.console private function createTextField() : void { var tf:TextField = new TextField(); - tf.height = this.var_543; + tf.height = this.§_-k3§; tf.defaultTextFormat = DEFAULT_TEXT_FORMAT; tf.tabEnabled = false; tf.selectable = true; - this.var_538.addChild(tf); - this.var_532.push(tf); + this.§_-mB§.addChild(tf); + this.§_-2O§.push(tf); } private function scrollOutput(delta:int) : void { - this.var_530 += delta; - if(this.var_530 + this.var_529 > this.buffer.size) + this.§_-gO§ += delta; + if(this.§_-gO§ + this.§_-HF§ > this.buffer.size) { - this.var_530 = this.buffer.size - this.var_529; + this.§_-gO§ = this.buffer.size - this.§_-HF§; } - if(this.var_530 < 0) + if(this.§_-gO§ < 0) { - this.var_530 = 0; + this.§_-gO§ = 0; } this.updateOutput(); } @@ -431,14 +431,14 @@ package alternativa.osgi.service.console private function printPage() : void { var pageLineIndex:int = 0; - var iterator:IStringBufferIterator = this.buffer.name_633(this.var_530); - while(pageLineIndex < this.var_529 && Boolean(iterator.hasNext())) + var iterator:IStringBufferIterator = this.buffer.getIterator(this.§_-gO§); + while(pageLineIndex < this.§_-HF§ && Boolean(iterator.hasNext())) { - TextField(this.var_532[pageLineIndex++]).text = iterator.getNext(); + TextField(this.§_-2O§[pageLineIndex++]).text = iterator.getNext(); } - while(pageLineIndex < this.var_529) + while(pageLineIndex < this.§_-HF§) { - TextField(this.var_532[pageLineIndex++]).text = ""; + TextField(this.§_-2O§[pageLineIndex++]).text = ""; } } @@ -446,7 +446,7 @@ package alternativa.osgi.service.console { if(this.isToggleKey(e)) { - this.var_544 = true; + this.§_-Y3§ = true; } switch(e.keyCode) { @@ -459,7 +459,7 @@ package alternativa.osgi.service.console this.input.text = ""; break; } - this.method_561(50); + this.hideDelayed(50); break; case Keyboard.UP: this.historyUp(); @@ -468,10 +468,10 @@ package alternativa.osgi.service.console this.historyDown(); break; case Keyboard.PAGE_UP: - this.scrollOutput(-this.var_529); + this.scrollOutput(-this.§_-HF§); break; case Keyboard.PAGE_DOWN: - this.scrollOutput(this.var_529); + this.scrollOutput(this.§_-HF§); } e.stopPropagation(); } @@ -486,10 +486,10 @@ package alternativa.osgi.service.console private function onTextInput(e:TextEvent) : void { - if(this.var_544) + if(this.§_-Y3§) { e.preventDefault(); - this.var_544 = false; + this.§_-Y3§ = false; } } @@ -503,32 +503,32 @@ package alternativa.osgi.service.console this.scrollOutput(this.buffer.size); var text:String = this.input.text; this.input.text = ""; - this.name_145("> " + text); - this.method_139(text); + this.addText("> " + text); + this.executeCommand(text); } private function historyUp() : void { - if(this.var_531 == 0) + if(this.§_-hY§ == 0) { return; } - --this.var_531; - var command:String = this.var_533[this.var_531]; + --this.§_-hY§; + var command:String = this.§_-Fe§[this.§_-hY§]; this.input.text = command == null ? "" : command; } private function historyDown() : void { - ++this.var_531; - if(this.var_531 >= this.var_533.length) + ++this.§_-hY§; + if(this.§_-hY§ >= this.§_-Fe§.length) { - this.var_531 = this.var_533.length; + this.§_-hY§ = this.§_-Fe§.length; this.input.text = ""; } else { - this.input.text = this.var_533[this.var_531]; + this.input.text = this.§_-Fe§[this.§_-hY§]; } } @@ -565,9 +565,9 @@ package alternativa.osgi.service.console { for(i = 0; i < line.length; ) { - this.buffer.add(line.substr(i,this.var_542)); + this.buffer.add(line.substr(i,this.§_-6U§)); linesAdded++; - i += this.var_542; + i += this.§_-6U§; } } } @@ -580,7 +580,7 @@ package alternativa.osgi.service.console var line:String = null; var i:int = 0; var lines:Array = s.split(LINE_SPLITTER); - var effectiveLineWidth:int = this.var_542 - prefix.length; + var effectiveLineWidth:int = this.§_-6U§ - prefix.length; for each(line in lines) { if(!(Boolean(this.filter) && line.indexOf(this.filter) < 0)) @@ -616,8 +616,8 @@ package alternativa.osgi.service.console private function updateSize() : void { - var pixelHeight:int = 0.01 * this.var_534 * this.stage.stageHeight; - var pixelWidth:int = 0.01 * this.var_535 * this.stage.stageWidth; + var pixelHeight:int = 0.01 * this.§_-Gl§ * this.stage.stageHeight; + var pixelWidth:int = 0.01 * this.§_-Nl§ * this.stage.stageWidth; var outputHeight:int = pixelHeight - INPUT_HEIGHT; this.resizeOutput(pixelWidth,outputHeight); this.input.y = outputHeight; @@ -654,19 +654,19 @@ package alternativa.osgi.service.console private function onHide(console:IConsole, params:Array) : void { - this.method_561(100); + this.hideDelayed(100); } private function copyConsoleContent(console:IConsole, params:Array) : void { - var iterator:IStringBufferIterator = this.buffer.name_633(0); + var iterator:IStringBufferIterator = this.buffer.getIterator(0); var result:String = "Console content:\n"; while(iterator.hasNext()) { result += iterator.getNext() + "\n"; } System.setClipboard(result); - this.name_145("Content has been copied to clipboard"); + this.addText("Content has been copied to clipboard"); } private function clearConsole(console:IConsole, params:Array) : void @@ -679,14 +679,14 @@ package alternativa.osgi.service.console { var commandName:String = null; var list:Array = []; - for(commandName in this.var_540) + for(commandName in this.§_-Pl§) { list.push(commandName); } list.sort(); for each(commandName in list) { - this.name_145(commandName); + this.addText(commandName); } } @@ -694,11 +694,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.name_145("Horizontal alignment=" + (this.align & 3)); + this.addText("Horizontal alignment=" + (this.align & 3)); } else { - this.method_138 = int(params[0]); + this.horizontalAlignment = int(params[0]); } } @@ -706,11 +706,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.name_145("Vertical alignment=" + (this.align >> 2 & 3)); + this.addText("Vertical alignment=" + (this.align >> 2 & 3)); } else { - this.method_137 = int(params[0]); + this.vericalAlignment = int(params[0]); } } @@ -718,11 +718,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.name_145("Width=" + this.var_535); + this.addText("Width=" + this.§_-Nl§); } else { - this.method_140(int(params[0]),this.var_534); + this.setSize(int(params[0]),this.§_-Gl§); } } @@ -730,11 +730,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.name_145("Height=" + this.var_534); + this.addText("Height=" + this.§_-Gl§); } else { - this.method_140(this.var_535,int(params[0])); + this.setSize(this.§_-Nl§,int(params[0])); } } @@ -742,7 +742,7 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.name_145("Alpha=" + this.var_541); + this.addText("Alpha=" + this.§_-S9§); } else { @@ -754,36 +754,36 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.name_145("Background color = " + this.var_539); + this.addText("Background color = " + this.§_-0P§); } else { - this.var_539 = uint(params[0]); + this.§_-0P§ = uint(params[0]); this.updateSize(); - this.input.backgroundColor = this.var_539; - this.name_145("Background color set to " + this.var_539); + this.input.backgroundColor = this.§_-0P§; + this.addText("Background color set to " + this.§_-0P§); } } private function onForegroundColor(console:IConsole, params:Array) : void { - var tf:TextField = null; + var _loc3_:TextField = null; if(params.length == 0) { - this.name_145("Foreground color = " + this.var_537); + this.addText("Foreground color = " + this.§_-Su§); } else { - this.var_537 = uint(params[0]); - DEFAULT_TEXT_FORMAT.color = this.var_537; - this.input.textColor = this.var_537; + this.§_-Su§ = uint(params[0]); + DEFAULT_TEXT_FORMAT.color = this.§_-Su§; + this.input.textColor = this.§_-Su§; this.input.defaultTextFormat = DEFAULT_TEXT_FORMAT; - for each(tf in this.var_532) + for each(_loc3_ in this.§_-2O§) { - tf.textColor = this.var_537; - tf.defaultTextFormat = DEFAULT_TEXT_FORMAT; + _loc3_.textColor = this.§_-Su§; + _loc3_.defaultTextFormat = DEFAULT_TEXT_FORMAT; } - this.name_145("Foreground color set to " + this.var_537); + this.addText("Foreground color set to " + this.§_-Su§); } } @@ -791,12 +791,12 @@ package alternativa.osgi.service.console { if(params.length < 2) { - console.name_145("Usage: filter "); + console.addText("Usage: filter "); return; } this.filter = params.shift(); this.addLine("filter: " + this.filter); - this.method_139(params.join(" ")); + this.executeCommand(params.join(" ")); this.filter = null; } @@ -816,11 +816,11 @@ package alternativa.osgi.service.console var variable:ConsoleVar = null; var s:String = null; var vars:Array = []; - for(name in this.var_536) + for(name in this.§_-I9§) { if(start == null || start == "" || name.indexOf(start) == 0) { - variable = this.var_536[name]; + variable = this.§_-I9§[name]; vars.push(showValues ? name + " = " + variable.toString() : name); } } @@ -829,7 +829,7 @@ package alternativa.osgi.service.console vars.sort(); for each(s in vars) { - this.name_145(s); + this.addText(s); } } } diff --git a/src/alternativa/osgi/service/console/IConsole.as b/src/alternativa/osgi/service/console/IConsole.as index 7a8bd38..d25da78 100644 --- a/src/alternativa/osgi/service/console/IConsole.as +++ b/src/alternativa/osgi/service/console/IConsole.as @@ -8,17 +8,17 @@ package alternativa.osgi.service.console function hide() : void; - function method_141() : Boolean; + function isVisible() : Boolean; - function name_145(param1:String) : void; + function addText(param1:String) : void; - function method_143(param1:String, param2:String) : void; + function addPrefixedText(param1:String, param2:String) : void; - function method_145(param1:Vector.) : void; + function addLines(param1:Vector.) : void; - function method_142(param1:String, param2:Vector.) : void; + function addPrefixedLines(param1:String, param2:Vector.) : void; - function method_140(param1:int, param2:int) : void; + function setSize(param1:int, param2:int) : void; function set width(param1:int) : void; @@ -28,27 +28,27 @@ package alternativa.osgi.service.console function get height() : int; - function set method_138(param1:int) : void; + function set horizontalAlignment(param1:int) : void; - function get method_138() : int; + function get horizontalAlignment() : int; - function set method_137(param1:int) : void; + function set vericalAlignment(param1:int) : void; - function get method_137() : int; + function get vericalAlignment() : int; function set alpha(param1:Number) : void; function get alpha() : Number; - function name_45(param1:String, param2:Function) : void; + function setCommandHandler(param1:String, param2:Function) : void; - function method_144(param1:String) : void; + function removeCommandHandler(param1:String) : void; - function method_139(param1:String) : void; + function executeCommand(param1:String) : void; - function name_147(param1:ConsoleVar) : void; + function addVariable(param1:ConsoleVar) : void; - function name_146(param1:String) : void; + function removeVariable(param1:String) : void; } } diff --git a/src/alternativa/osgi/service/console/variables/ConsoleVar.as b/src/alternativa/osgi/service/console/variables/ConsoleVar.as index 7fa4f95..0f36cde 100644 --- a/src/alternativa/osgi/service/console/variables/ConsoleVar.as +++ b/src/alternativa/osgi/service/console/variables/ConsoleVar.as @@ -14,43 +14,43 @@ package alternativa.osgi.service.console.variables super(); this.varName = varName; this.inputListener = inputListener; - var console:IConsole = IConsole(OSGi.name_8().name_30(IConsole)); + var console:IConsole = IConsole(OSGi.getInstance().getService(IConsole)); if(console != null) { - console.name_147(this); + console.addVariable(this); } } - public function name_32() : String + public function getName() : String { return this.varName; } public function destroy() : void { - var console:IConsole = IConsole(OSGi.name_8().name_30(IConsole)); + var console:IConsole = IConsole(OSGi.getInstance().getService(IConsole)); if(console != null) { - console.name_146(this.varName); + console.removeVariable(this.varName); } this.inputListener = null; } - public function method_77(console:IConsole, params:Array) : void + public function processConsoleInput(console:IConsole, params:Array) : void { - var oldValue:String = null; - var errorText:String = null; + var _loc3_:String = null; + var _loc4_:String = null; if(params.length == 0) { - console.name_145(this.varName + " = " + this.toString()); + console.addText(this.varName + " = " + this.toString()); } else { - oldValue = this.toString(); - errorText = this.acceptInput(params[0]); - if(errorText == null) + _loc3_ = this.toString(); + _loc4_ = this.acceptInput(params[0]); + if(_loc4_ == null) { - console.name_145(this.varName + " is set to " + this.toString() + " (was " + oldValue + ")"); + console.addText(this.varName + " is set to " + this.toString() + " (was " + _loc3_ + ")"); if(this.inputListener != null) { this.inputListener.call(null,this); @@ -58,7 +58,7 @@ package alternativa.osgi.service.console.variables } else { - console.name_145(errorText); + console.addText(_loc4_); } } } diff --git a/src/alternativa/osgi/service/display/Display.as b/src/alternativa/osgi/service/display/Display.as new file mode 100644 index 0000000..0a22f91 --- /dev/null +++ b/src/alternativa/osgi/service/display/Display.as @@ -0,0 +1,104 @@ +package alternativa.osgi.service.display +{ + import flash.display.DisplayObjectContainer; + import flash.display.Sprite; + import flash.display.Stage; + + public class Display implements IDisplay + { + private var §_-We§:Stage; + + private var §_-j§:DisplayObjectContainer; + + private var §finally§:DisplayObjectContainer; + + private var §_-TJ§:DisplayObjectContainer; + + private var §_-6o§:DisplayObjectContainer; + + private var §_-Xl§:DisplayObjectContainer; + + private var §_-Ha§:DisplayObjectContainer; + + private var §_-5X§:DisplayObjectContainer; + + private var §_-Qq§:DisplayObjectContainer; + + private var §_-Ow§:DisplayObjectContainer; + + public function Display(rootContainer:DisplayObjectContainer) + { + super(); + this.§_-We§ = rootContainer.stage; + this.§_-j§ = rootContainer; + this.§finally§ = this.addLayerSprite(); + this.§_-TJ§ = this.addLayerSprite(); + this.§_-6o§ = this.addLayerSprite(); + this.§_-Xl§ = this.addLayerSprite(); + this.§_-Ha§ = this.addLayerSprite(); + this.§_-5X§ = this.addLayerSprite(); + this.§_-Qq§ = this.addLayerSprite(); + this.§_-Ow§ = this.addLayerSprite(); + } + + private function addLayerSprite() : Sprite + { + var sprite:Sprite = new Sprite(); + sprite.mouseEnabled = false; + sprite.tabEnabled = false; + this.§_-j§.addChild(sprite); + return sprite; + } + + public function get stage() : Stage + { + return this.§_-We§; + } + + public function get mainContainer() : DisplayObjectContainer + { + return this.§_-j§; + } + + public function get backgroundLayer() : DisplayObjectContainer + { + return this.§finally§; + } + + public function get contentLayer() : DisplayObjectContainer + { + return this.§_-TJ§; + } + + public function get contentUILayer() : DisplayObjectContainer + { + return this.§_-6o§; + } + + public function get systemLayer() : DisplayObjectContainer + { + return this.§_-Xl§; + } + + public function get systemUILayer() : DisplayObjectContainer + { + return this.§_-Ha§; + } + + public function get dialogsLayer() : DisplayObjectContainer + { + return this.§_-5X§; + } + + public function get noticesLayer() : DisplayObjectContainer + { + return this.§_-Qq§; + } + + public function get cursorLayer() : DisplayObjectContainer + { + return this.§_-Ow§; + } + } +} + diff --git a/src/alternativa/osgi/service/display/IDisplay.as b/src/alternativa/osgi/service/display/IDisplay.as new file mode 100644 index 0000000..cc6fe89 --- /dev/null +++ b/src/alternativa/osgi/service/display/IDisplay.as @@ -0,0 +1,29 @@ +package alternativa.osgi.service.display +{ + import flash.display.DisplayObjectContainer; + import flash.display.Stage; + + public interface IDisplay + { + function get stage() : Stage; + + function get mainContainer() : DisplayObjectContainer; + + function get backgroundLayer() : DisplayObjectContainer; + + function get contentLayer() : DisplayObjectContainer; + + function get contentUILayer() : DisplayObjectContainer; + + function get systemLayer() : DisplayObjectContainer; + + function get systemUILayer() : DisplayObjectContainer; + + function get dialogsLayer() : DisplayObjectContainer; + + function get noticesLayer() : DisplayObjectContainer; + + function get cursorLayer() : DisplayObjectContainer; + } +} + diff --git a/src/alternativa/osgi/service/dump/DumpService.as b/src/alternativa/osgi/service/dump/DumpService.as new file mode 100644 index 0000000..5d2bda3 --- /dev/null +++ b/src/alternativa/osgi/service/dump/DumpService.as @@ -0,0 +1,99 @@ +package alternativa.osgi.service.dump +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.console.IConsole; + import flash.utils.Dictionary; + + public class DumpService implements IDumpService + { + private var osgi:OSGi; + + private var §_-gQ§:Dictionary; + + private var §_-G8§:Vector.; + + public function DumpService(osgi:OSGi) + { + super(); + this.osgi = osgi; + var console:IConsole = IConsole(osgi.getService(IConsole)); + console.setCommandHandler("dump",this.hadleConsoleCommand); + this.§_-gQ§ = new Dictionary(false); + this.§_-G8§ = new Vector.(); + } + + public function registerDumper(dumper:IDumper) : void + { + if(this.§_-gQ§[dumper.dumperName] != null) + { + throw new Error("Dumper is already registered"); + } + this.§_-gQ§[dumper.dumperName] = dumper; + this.§_-G8§.push(dumper); + } + + public function unregisterDumper(dumperName:String) : void + { + var dumper:IDumper = this.§_-gQ§[dumperName]; + if(dumper != null) + { + this.§_-G8§.splice(this.§_-G8§.indexOf(dumper),1); + delete this.§_-gQ§[dumperName]; + } + } + + public function dump(dumperName:String, params:Array) : String + { + var dumper:IDumper = null; + var index:int = 0; + if(dumperName == null) + { + return this.getDumperList(); + } + if(dumperName.match(/^\d+$/) != null) + { + index = int(int(dumperName)); + if(index < this.§_-G8§.length) + { + dumper = this.§_-G8§[index]; + } + } + else + { + dumper = this.§_-gQ§[dumperName]; + } + if(dumper == null) + { + return "Dumper " + dumperName + " not found. Available dumpers: \n" + this.getDumperList(); + } + return dumper.dump(params); + } + + public function get dumpersByName() : Dictionary + { + return this.§_-gQ§; + } + + public function get dumpersList() : Vector. + { + return this.§_-G8§; + } + + private function getDumperList() : String + { + var s:String = ""; + for(var i:int = 0; i < this.§_-G8§.length; i++) + { + s += i.toString() + " " + this.§_-G8§[i].dumperName + "\n"; + } + return s; + } + + private function hadleConsoleCommand(console:IConsole, params:Array) : void + { + var dumperName:String = params.shift(); + console.addText(this.dump(dumperName,params)); + } + } +} + diff --git a/src/alternativa/osgi/service/dump/IDumpService.as b/src/alternativa/osgi/service/dump/IDumpService.as new file mode 100644 index 0000000..03b85d5 --- /dev/null +++ b/src/alternativa/osgi/service/dump/IDumpService.as @@ -0,0 +1,18 @@ +package alternativa.osgi.service.dump +{ + import flash.utils.Dictionary; + + public interface IDumpService + { + function registerDumper(param1:IDumper) : void; + + function unregisterDumper(param1:String) : void; + + function dump(param1:String, param2:Array) : String; + + function get dumpersByName() : Dictionary; + + function get dumpersList() : Vector.; + } +} + diff --git a/src/package_102/name_636.as b/src/alternativa/osgi/service/dump/IDumper.as similarity index 58% rename from src/package_102/name_636.as rename to src/alternativa/osgi/service/dump/IDumper.as index 8b685e7..4407e4a 100644 --- a/src/package_102/name_636.as +++ b/src/alternativa/osgi/service/dump/IDumper.as @@ -1,6 +1,6 @@ -package package_102 +package alternativa.osgi.service.dump { - public interface name_636 + public interface IDumper { function dump(param1:Array) : String; diff --git a/src/package_106/name_367.as b/src/alternativa/osgi/service/dump/dumper/BundleDumper.as similarity index 64% rename from src/package_106/name_367.as rename to src/alternativa/osgi/service/dump/dumper/BundleDumper.as index 395e6ab..251140d 100644 --- a/src/package_106/name_367.as +++ b/src/alternativa/osgi/service/dump/dumper/BundleDumper.as @@ -1,14 +1,14 @@ -package package_106 +package alternativa.osgi.service.dump.dumper { - import package_102.name_636; - import package_31.name_202; import alternativa.osgi.OSGi; + import alternativa.osgi.bundle.IBundleDescriptor; + import alternativa.osgi.service.dump.IDumper; - public class name_367 implements name_636 + public class BundleDumper implements IDumper { private var osgi:OSGi; - public function name_367(osgi:OSGi) + public function BundleDumper(osgi:OSGi) { super(); this.osgi = osgi; @@ -17,7 +17,7 @@ package package_106 public function dump(params:Array) : String { var result:String = "======= Registered bundles ======\n"; - var bundles:Vector. = this.osgi.method_122; + var bundles:Vector. = this.osgi.bundleList; for(var i:int = 0; i < bundles.length; i++) { if(i < 9) diff --git a/src/package_106/name_357.as b/src/alternativa/osgi/service/dump/dumper/ServiceDumper.as similarity index 58% rename from src/package_106/name_357.as rename to src/alternativa/osgi/service/dump/dumper/ServiceDumper.as index 787fb4d..990c90f 100644 --- a/src/package_106/name_357.as +++ b/src/alternativa/osgi/service/dump/dumper/ServiceDumper.as @@ -1,13 +1,13 @@ -package package_106 +package alternativa.osgi.service.dump.dumper { - import package_102.name_636; - import alternativa.osgi.OSGI; + import alternativa.osgi.OSGi; + import alternativa.osgi.service.dump.IDumper; - public class name_357 implements name_636 + public class ServiceDumper implements IDumper { - private var osgi:OSGI; + private var osgi:OSGi; - public function name_357(osgi:OSGI) + public function ServiceDumper(osgi:OSGi) { super(); this.osgi = osgi; @@ -16,7 +16,7 @@ package package_106 public function dump(params:Array) : String { var result:String = "Registered services\n"; - var services:Vector. = this.osgi.method_119; + var services:Vector. = this.osgi.serviceList; for(var i:int = 0; i < services.length; i++) { result += " " + (i + 1).toString() + ": " + services[i] + "\n"; diff --git a/src/alternativa/osgi/service/launcherparams/ILauncherParams.as b/src/alternativa/osgi/service/launcherparams/ILauncherParams.as new file mode 100644 index 0000000..fb71672 --- /dev/null +++ b/src/alternativa/osgi/service/launcherparams/ILauncherParams.as @@ -0,0 +1,16 @@ +package alternativa.osgi.service.launcherparams +{ + import alternativa.startup.LibraryInfo; + + public interface ILauncherParams + { + function getParameter(param1:String) : String; + + function get parameterNames() : Vector.; + + function get startupLibraryInfos() : Vector.; + + function get isDebug() : Boolean; + } +} + diff --git a/src/alternativa/osgi/service/launcherparams/LauncherParams.as b/src/alternativa/osgi/service/launcherparams/LauncherParams.as new file mode 100644 index 0000000..d7c6419 --- /dev/null +++ b/src/alternativa/osgi/service/launcherparams/LauncherParams.as @@ -0,0 +1,40 @@ +package alternativa.osgi.service.launcherparams +{ + import alternativa.startup.LibraryInfo; + import alternativa.utils.Properties; + + public class LauncherParams implements ILauncherParams + { + private var urlParams:Properties; + + private var §_-QJ§:Vector.; + + public function LauncherParams(urlParams:Properties, startupLibraryInfos:Vector.) + { + super(); + this.urlParams = urlParams; + this.§_-QJ§ = startupLibraryInfos; + } + + public function getParameter(parameterName:String) : String + { + return this.urlParams.getProperty(parameterName); + } + + public function get parameterNames() : Vector. + { + return this.urlParams.propertyNames; + } + + public function get startupLibraryInfos() : Vector. + { + return this.§_-QJ§; + } + + public function get isDebug() : Boolean + { + return Boolean(this.urlParams.getProperty("debug")); + } + } +} + diff --git a/src/alternativa/osgi/service/locale/ILocaleService.as b/src/alternativa/osgi/service/locale/ILocaleService.as new file mode 100644 index 0000000..83ceed6 --- /dev/null +++ b/src/alternativa/osgi/service/locale/ILocaleService.as @@ -0,0 +1,32 @@ +package alternativa.osgi.service.locale +{ + import flash.display.BitmapData; + + public interface ILocaleService + { + function setText(param1:String, param2:String) : void; + + function setImage(param1:String, param2:BitmapData) : void; + + function setBoolean(param1:String, param2:Boolean) : void; + + function setNumber(param1:String, param2:Number) : void; + + function setInt(param1:String, param2:int) : void; + + function getText(param1:String, ... rest) : String; + + function getImage(param1:String) : BitmapData; + + function getBoolean(param1:String) : Boolean; + + function getNumber(param1:String) : Number; + + function getInt(param1:String) : int; + + function get language() : String; + + function get defaultLanguage() : String; + } +} + diff --git a/src/alternativa/osgi/service/locale/LocaleService.as b/src/alternativa/osgi/service/locale/LocaleService.as new file mode 100644 index 0000000..12b6db6 --- /dev/null +++ b/src/alternativa/osgi/service/locale/LocaleService.as @@ -0,0 +1,102 @@ +package alternativa.osgi.service.locale +{ + import flash.display.BitmapData; + import flash.utils.Dictionary; + + public class LocaleService implements ILocaleService + { + private var strings:Object = {}; + + private var images:Object = {}; + + private var §_-bK§:Object = {}; + + private var numbers:Object = {}; + + private var §_-op§:Object = {}; + + private var §_-VI§:String; + + private var §_-4p§:String; + + public function LocaleService(language:String, defaultLanguage:String) + { + super(); + this.§_-VI§ = language; + this.§_-4p§ = defaultLanguage; + this.strings = new Dictionary(); + this.images = new Dictionary(); + } + + public function setText(id:String, text:String) : void + { + this.strings[id] = text; + } + + public function setImage(id:String, image:BitmapData) : void + { + this.images[id] = image; + } + + public function setBoolean(id:String, value:Boolean) : void + { + this.§_-bK§[id] = value; + } + + public function setNumber(id:String, value:Number) : void + { + this.numbers[id] = value; + } + + public function setInt(id:String, value:int) : void + { + this.§_-op§[id] = value; + } + + public function getText(id:String, ... vars) : String + { + var text:String = this.strings[id]; + if(text == null) + { + return id; + } + for(var i:int = 0; i < vars.length; ) + { + text = text.replace("%" + (i + 1),vars[i]); + i++; + } + return text; + } + + public function getImage(id:String) : BitmapData + { + return this.images[id]; + } + + public function getBoolean(id:String) : Boolean + { + return this.§_-bK§[id]; + } + + public function getNumber(id:String) : Number + { + return this.numbers[id]; + } + + public function getInt(id:String) : int + { + return this.§_-op§[id]; + } + + public function get language() : String + { + return this.§_-VI§; + } + + public function get defaultLanguage() : String + { + return this.§_-4p§; + } + } +} + diff --git a/src/alternativa/osgi/service/network/INetworkService.as b/src/alternativa/osgi/service/network/INetworkService.as new file mode 100644 index 0000000..ac56a7e --- /dev/null +++ b/src/alternativa/osgi/service/network/INetworkService.as @@ -0,0 +1,16 @@ +package alternativa.osgi.service.network +{ + public interface INetworkService + { + function get controlServerAddress() : String; + + function get controlServerPorts() : Vector.; + + function get resourcesRootUrl() : String; + + function getLastPort(param1:String) : int; + + function saveLastPort(param1:String, param2:int) : void; + } +} + diff --git a/src/alternativa/osgi/service/network/NetworkService.as b/src/alternativa/osgi/service/network/NetworkService.as new file mode 100644 index 0000000..b0d8fe8 --- /dev/null +++ b/src/alternativa/osgi/service/network/NetworkService.as @@ -0,0 +1,52 @@ +package alternativa.osgi.service.network +{ + import flash.net.SharedObject; + + public class NetworkService implements INetworkService + { + private static const SHARED_OBJECT_NAME:String = "connection"; + + private var §_-oQ§:String; + + private var §_-O7§:Vector.; + + private var §_-5u§:String; + + public function NetworkService(controlServerAddress:String, controlServerPorts:Vector., resourcesRootUrl:String) + { + super(); + this.§_-oQ§ = controlServerAddress; + this.§_-O7§ = controlServerPorts; + this.§_-5u§ = resourcesRootUrl; + } + + public function get controlServerAddress() : String + { + return this.§_-oQ§; + } + + public function get controlServerPorts() : Vector. + { + return this.§_-O7§; + } + + public function get resourcesRootUrl() : String + { + return this.§_-5u§; + } + + public function getLastPort(host:String) : int + { + var so:SharedObject = SharedObject.getLocal(SHARED_OBJECT_NAME,"/"); + return so.data[host]; + } + + public function saveLastPort(host:String, port:int) : void + { + var so:SharedObject = SharedObject.getLocal(SHARED_OBJECT_NAME,"/"); + so.data[host] = port; + so.flush(); + } + } +} + diff --git a/src/alternativa/physics/Body.as b/src/alternativa/physics/Body.as new file mode 100644 index 0000000..14638a1 --- /dev/null +++ b/src/alternativa/physics/Body.as @@ -0,0 +1,346 @@ +package alternativa.physics +{ + import alternativa.math.Matrix3; + import alternativa.math.Matrix4; + import alternativa.math.Quaternion; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.IBodyCollisionFilter; + import alternativa.physics.collision.types.BoundBox; + + public class Body + { + public static var linDamping:Number = 0.997; + + public static var rotDamping:Number = 0.997; + + private static var _r:Vector3 = new Vector3(); + + private static var _f:Vector3 = new Vector3(); + + private static var _q:Quaternion = new Quaternion(); + + public var id:int; + + public var name:String; + + public var scene:PhysicsScene; + + public var §_-Sb§:Boolean = true; + + public var §_-N4§:Boolean = false; + + public var §_-ia§:int; + + public var §_-N0§:Boolean = false; + + public var §_-fA§:Boolean = true; + + public var aabb:BoundBox = new BoundBox(); + + public var postCollisionFilter:IBodyCollisionFilter; + + public var state:BodyState = new BodyState(); + + public var §_-U3§:BodyState = new BodyState(); + + public var §_-1G§:Vector3 = new Vector3(); + + public var §_-fR§:Vector3 = new Vector3(); + + public var material:BodyMaterial = new BodyMaterial(); + + public var invMass:Number = 1; + + public var invInertia:Matrix3 = new Matrix3(); + + public var §_-nX§:Matrix3 = new Matrix3(); + + public var baseMatrix:Matrix3 = new Matrix3(); + + public var collisionPrimitives:CollisionPrimitiveList; + + public var §_-iu§:Vector3 = new Vector3(); + + public var §_-Xr§:Vector3 = new Vector3(); + + public var data:Object; + + public function Body(invMass:Number, invInertia:Matrix3) + { + super(); + this.invMass = invMass; + this.invInertia.copy(invInertia); + } + + public function addCollisionPrimitive(primitive:CollisionPrimitive, localTransform:Matrix4 = null) : void + { + if(primitive == null) + { + throw new ArgumentError("Primitive cannot be null"); + } + if(this.collisionPrimitives == null) + { + this.collisionPrimitives = new CollisionPrimitiveList(); + } + this.collisionPrimitives.append(primitive); + primitive.setBody(this,localTransform); + } + + public function removeCollisionPrimitive(primitive:CollisionPrimitive) : void + { + if(this.collisionPrimitives == null) + { + return; + } + primitive.setBody(null); + this.collisionPrimitives.remove(primitive); + if(this.collisionPrimitives.size == 0) + { + this.collisionPrimitives = null; + } + } + + public function interpolate(t:Number, pos:Vector3, orientation:Quaternion) : void + { + var t1:Number = NaN; + t1 = 1 - t; + pos.x = this.§_-U3§.position.x * t1 + this.state.position.x * t; + pos.y = this.§_-U3§.position.y * t1 + this.state.position.y * t; + pos.z = this.§_-U3§.position.z * t1 + this.state.position.z * t; + orientation.w = this.§_-U3§.orientation.w * t1 + this.state.orientation.w * t; + orientation.x = this.§_-U3§.orientation.x * t1 + this.state.orientation.x * t; + orientation.y = this.§_-U3§.orientation.y * t1 + this.state.orientation.y * t; + orientation.z = this.§_-U3§.orientation.z * t1 + this.state.orientation.z * t; + } + + public function interpolateSLERP(t:Number, pos:Vector3, orientation:Quaternion) : void + { + var t1:Number = NaN; + t1 = 1 - t; + pos.x = this.§_-U3§.position.x * t1 + this.state.position.x * t; + pos.y = this.§_-U3§.position.y * t1 + this.state.position.y * t; + pos.z = this.§_-U3§.position.z * t1 + this.state.position.z * t; + orientation.slerp(this.§_-U3§.orientation,this.state.orientation,t); + } + + public function interpolateToMatrix(t:Number, m:Matrix4) : void + { + var t1:Number = NaN; + t1 = 1 - t; + m.d = this.§_-U3§.position.x * t1 + this.state.position.x * t; + m.h = this.§_-U3§.position.y * t1 + this.state.position.y * t; + m.l = this.§_-U3§.position.z * t1 + this.state.position.z * t; + _q.w = this.§_-U3§.orientation.w * t1 + this.state.orientation.w * t; + _q.x = this.§_-U3§.orientation.x * t1 + this.state.orientation.x * t; + _q.y = this.§_-U3§.orientation.y * t1 + this.state.orientation.y * t; + _q.z = this.§_-U3§.orientation.z * t1 + this.state.orientation.z * t; + _q.normalize(); + _q.toMatrix4(m); + } + + public function interpolateToMatrixSLERP(t:Number, m:Matrix4) : void + { + var t1:Number = 1 - t; + m.d = this.§_-U3§.position.x * t1 + this.state.position.x * t; + m.h = this.§_-U3§.position.y * t1 + this.state.position.y * t; + m.l = this.§_-U3§.position.z * t1 + this.state.position.z * t; + _q.slerp(this.§_-U3§.orientation,this.state.orientation,t); + _q.normalize(); + _q.toMatrix4(m); + } + + public function setPosition(pos:Vector3) : void + { + this.state.position.copy(pos); + } + + public function setPositionXYZ(x:Number, y:Number, z:Number) : void + { + this.state.position.reset(x,y,z); + } + + public function setVelocity(vel:Vector3) : void + { + this.state.velocity.copy(vel); + } + + public function setVelocityXYZ(x:Number, y:Number, z:Number) : void + { + this.state.velocity.reset(x,y,z); + } + + public function setRotation(rot:Vector3) : void + { + this.state.rotation.copy(rot); + } + + public function setRotationXYZ(x:Number, y:Number, z:Number) : void + { + this.state.rotation.reset(x,y,z); + } + + public function setOrientation(q:Quaternion) : void + { + this.state.orientation.copy(q); + } + + public function setOrientationWXYZ(w:Number, x:Number, y:Number, z:Number) : void + { + this.state.orientation.reset(w,x,y,z); + } + + public function applyRelPosWorldImpulse(r:Vector3, dir:Vector3, magnitude:Number) : void + { + var x:Number = NaN; + var y:Number = NaN; + var d:Number = magnitude * this.invMass; + this.state.velocity.x += d * dir.x; + this.state.velocity.y += d * dir.y; + this.state.velocity.z += d * dir.z; + x = (r.y * dir.z - r.z * dir.y) * magnitude; + y = (r.z * dir.x - r.x * dir.z) * magnitude; + var z:Number = (r.x * dir.y - r.y * dir.x) * magnitude; + this.state.rotation.x += this.§_-nX§.a * x + this.§_-nX§.b * y + this.§_-nX§.c * z; + this.state.rotation.y += this.§_-nX§.e * x + this.§_-nX§.f * y + this.§_-nX§.g * z; + this.state.rotation.z += this.§_-nX§.i * x + this.§_-nX§.j * y + this.§_-nX§.k * z; + } + + public function addForce(f:Vector3) : void + { + this.§_-iu§.add(f); + } + + public function addForceXYZ(fx:Number, fy:Number, fz:Number) : void + { + this.§_-iu§.x += fx; + this.§_-iu§.y += fy; + this.§_-iu§.z += fz; + } + + public function addWorldForceXYZ(px:Number, py:Number, pz:Number, fx:Number, fy:Number, fz:Number) : void + { + var rx:Number = NaN; + this.§_-iu§.x += fx; + this.§_-iu§.y += fy; + this.§_-iu§.z += fz; + var pos:Vector3 = this.state.position; + rx = px - pos.x; + var ry:Number = py - pos.y; + var rz:Number = pz - pos.z; + this.§_-Xr§.x += ry * fz - rz * fy; + this.§_-Xr§.y += rz * fx - rx * fz; + this.§_-Xr§.z += rx * fy - ry * fx; + } + + public function addWorldForce(pos:Vector3, force:Vector3) : void + { + this.§_-iu§.add(force); + this.§_-Xr§.add(_r.diff(pos,this.state.position).cross(force)); + } + + public function addWorldForceScaled(pos:Vector3, force:Vector3, scale:Number) : void + { + _f.x = scale * force.x; + _f.y = scale * force.y; + _f.z = scale * force.z; + this.§_-iu§.add(_f); + this.§_-Xr§.add(_r.diff(pos,this.state.position).cross(_f)); + } + + public function addLocalForce(pos:Vector3, force:Vector3) : void + { + this.baseMatrix.transformVector(pos,_r); + this.baseMatrix.transformVector(force,_f); + this.§_-iu§.add(_f); + this.§_-Xr§.add(_r.cross(_f)); + } + + public function addWorldForceAtLocalPoint(localPos:Vector3, worldForce:Vector3) : void + { + this.baseMatrix.transformVector(localPos,_r); + this.§_-iu§.add(worldForce); + this.§_-Xr§.add(_r.cross(worldForce)); + } + + public function addTorque(t:Vector3) : void + { + this.§_-Xr§.add(t); + } + + internal function clearAccumulators() : void + { + this.§_-iu§.x = this.§_-iu§.y = this.§_-iu§.z = 0; + this.§_-Xr§.x = this.§_-Xr§.y = this.§_-Xr§.z = 0; + } + + internal function calcAccelerations() : void + { + this.§_-1G§.x = this.§_-iu§.x * this.invMass; + this.§_-1G§.y = this.§_-iu§.y * this.invMass; + this.§_-1G§.z = this.§_-iu§.z * this.invMass; + this.§_-fR§.x = this.§_-nX§.a * this.§_-Xr§.x + this.§_-nX§.b * this.§_-Xr§.y + this.§_-nX§.c * this.§_-Xr§.z; + this.§_-fR§.y = this.§_-nX§.e * this.§_-Xr§.x + this.§_-nX§.f * this.§_-Xr§.y + this.§_-nX§.g * this.§_-Xr§.z; + this.§_-fR§.z = this.§_-nX§.i * this.§_-Xr§.x + this.§_-nX§.j * this.§_-Xr§.y + this.§_-nX§.k * this.§_-Xr§.z; + } + + public function calcDerivedData() : void + { + var item:CollisionPrimitiveListItem = null; + var primitive:CollisionPrimitive = null; + this.state.orientation.toMatrix3(this.baseMatrix); + this.§_-nX§.copy(this.invInertia).append(this.baseMatrix).prependTransposed(this.baseMatrix); + if(this.collisionPrimitives != null) + { + this.aabb.§_-GT§(); + for(item = this.collisionPrimitives.head; item != null; ) + { + primitive = item.primitive; + primitive.transform.setFromMatrix3(this.baseMatrix,this.state.position); + if(primitive.localTransform != null) + { + primitive.transform.prepend(primitive.localTransform); + } + primitive.calculateAABB(); + this.aabb.§_-EH§(primitive.aabb); + item = item.next; + } + } + } + + public function saveState() : void + { + this.§_-U3§.copy(this.state); + } + + internal function restoreState() : void + { + this.state.copy(this.§_-U3§); + } + + internal function integrateVelocity(dt:Number) : void + { + this.state.velocity.x += this.§_-1G§.x * dt; + this.state.velocity.y += this.§_-1G§.y * dt; + this.state.velocity.z += this.§_-1G§.z * dt; + this.state.rotation.x += this.§_-fR§.x * dt; + this.state.rotation.y += this.§_-fR§.y * dt; + this.state.rotation.z += this.§_-fR§.z * dt; + this.state.velocity.x *= linDamping; + this.state.velocity.y *= linDamping; + this.state.velocity.z *= linDamping; + this.state.rotation.x *= rotDamping; + this.state.rotation.y *= rotDamping; + this.state.rotation.z *= rotDamping; + } + + internal function integratePosition(dt:Number) : void + { + this.state.position.x += this.state.velocity.x * dt; + this.state.position.y += this.state.velocity.y * dt; + this.state.position.z += this.state.velocity.z * dt; + this.state.orientation.addScaledVector(this.state.rotation,dt); + } + } +} + diff --git a/src/package_92/name_681.as b/src/alternativa/physics/BodyList.as similarity index 68% rename from src/package_92/name_681.as rename to src/alternativa/physics/BodyList.as index d78cbb8..0aa329e 100644 --- a/src/package_92/name_681.as +++ b/src/alternativa/physics/BodyList.as @@ -1,21 +1,21 @@ -package package_92 +package alternativa.physics { - public class name_681 + public class BodyList { - public var head:name_671; + public var head:BodyListItem; - public var tail:name_671; + public var tail:BodyListItem; public var size:int; - public function name_681() + public function BodyList() { super(); } - public function append(body:name_271) : void + public function append(body:Body) : void { - var item:name_671 = name_671.create(body); + var item:BodyListItem = BodyListItem.create(body); if(this.head == null) { this.head = this.tail = item; @@ -29,9 +29,9 @@ package package_92 ++this.size; } - public function remove(body:name_271) : Boolean + public function remove(body:Body) : Boolean { - var item:name_671 = this.method_628(body); + var item:BodyListItem = this.findItem(body); if(item == null) { return false; @@ -63,9 +63,9 @@ package package_92 return true; } - public function method_628(body:name_271) : name_671 + public function findItem(body:Body) : BodyListItem { - var item:name_671 = this.head; + var item:BodyListItem = this.head; while(item != null && item.body != body) { item = item.next; diff --git a/src/package_92/name_671.as b/src/alternativa/physics/BodyListItem.as similarity index 54% rename from src/package_92/name_671.as rename to src/alternativa/physics/BodyListItem.as index f4d11de..810fbdd 100644 --- a/src/package_92/name_671.as +++ b/src/alternativa/physics/BodyListItem.as @@ -1,27 +1,27 @@ -package package_92 +package alternativa.physics { - public class name_671 + public class BodyListItem { - private static var poolTop:name_671; + private static var poolTop:BodyListItem; - public var body:name_271; + public var body:Body; - public var next:name_671; + public var next:BodyListItem; - public var prev:name_671; + public var prev:BodyListItem; - public function name_671(body:name_271) + public function BodyListItem(body:Body) { super(); this.body = body; } - public static function create(body:name_271) : name_671 + public static function create(body:Body) : BodyListItem { - var item:name_671 = null; + var item:BodyListItem = null; if(poolTop == null) { - item = new name_671(body); + item = new BodyListItem(body); } else { @@ -33,9 +33,9 @@ package package_92 return item; } - public static function method_712() : void + public static function clearPool() : void { - for(var item:name_671 = poolTop; item != null; ) + for(var item:BodyListItem = poolTop; item != null; ) { poolTop = item.next; item.next = null; diff --git a/src/alternativa/physics/BodyMaterial.as b/src/alternativa/physics/BodyMaterial.as new file mode 100644 index 0000000..c5d8567 --- /dev/null +++ b/src/alternativa/physics/BodyMaterial.as @@ -0,0 +1,15 @@ +package alternativa.physics +{ + public class BodyMaterial + { + public var §_-Pe§:Number = 0; + + public var §_-J1§:Number = 0.3; + + public function BodyMaterial() + { + super(); + } + } +} + diff --git a/src/alternativa/physics/BodyState.as b/src/alternativa/physics/BodyState.as new file mode 100644 index 0000000..e9a7374 --- /dev/null +++ b/src/alternativa/physics/BodyState.as @@ -0,0 +1,30 @@ +package alternativa.physics +{ + import alternativa.math.Quaternion; + import alternativa.math.Vector3; + + public class BodyState + { + public var position:Vector3 = new Vector3(); + + public var orientation:Quaternion = new Quaternion(); + + public var velocity:Vector3 = new Vector3(); + + public var rotation:Vector3 = new Vector3(); + + public function BodyState() + { + super(); + } + + public function copy(state:BodyState) : void + { + this.position.copy(state.position); + this.orientation.copy(state.orientation); + this.velocity.copy(state.velocity); + this.rotation.copy(state.rotation); + } + } +} + diff --git a/src/package_92/name_601.as b/src/alternativa/physics/CollisionPrimitiveList.as similarity index 61% rename from src/package_92/name_601.as rename to src/alternativa/physics/CollisionPrimitiveList.as index b736cab..701f7a4 100644 --- a/src/package_92/name_601.as +++ b/src/alternativa/physics/CollisionPrimitiveList.as @@ -1,23 +1,23 @@ -package package_92 +package alternativa.physics { - import package_76.name_235; + import alternativa.physics.collision.CollisionPrimitive; - public class name_601 + public class CollisionPrimitiveList { - public var head:name_513; + public var head:CollisionPrimitiveListItem; - public var tail:name_513; + public var tail:CollisionPrimitiveListItem; public var size:int; - public function name_601() + public function CollisionPrimitiveList() { super(); } - public function append(primitive:name_235) : void + public function append(primitive:CollisionPrimitive) : void { - var item:name_513 = name_513.create(primitive); + var item:CollisionPrimitiveListItem = CollisionPrimitiveListItem.create(primitive); if(this.head == null) { this.head = this.tail = item; @@ -31,9 +31,9 @@ package package_92 ++this.size; } - public function remove(primitve:name_235) : void + public function remove(primitve:CollisionPrimitive) : void { - var item:name_513 = this.method_628(primitve); + var item:CollisionPrimitiveListItem = this.findItem(primitve); if(item == null) { return; @@ -64,9 +64,9 @@ package package_92 --this.size; } - public function method_628(primitive:name_235) : name_513 + public function findItem(primitive:CollisionPrimitive) : CollisionPrimitiveListItem { - var item:name_513 = this.head; + var item:CollisionPrimitiveListItem = this.head; while(item != null && item.primitive != primitive) { item = item.next; @@ -76,7 +76,7 @@ package package_92 public function clear() : void { - for(var item:name_513 = null; this.head != null; ) + for(var item:CollisionPrimitiveListItem = null; this.head != null; ) { item = this.head; this.head = this.head.next; diff --git a/src/alternativa/physics/CollisionPrimitiveListItem.as b/src/alternativa/physics/CollisionPrimitiveListItem.as new file mode 100644 index 0000000..27f9064 --- /dev/null +++ b/src/alternativa/physics/CollisionPrimitiveListItem.as @@ -0,0 +1,57 @@ +package alternativa.physics +{ + import alternativa.physics.collision.CollisionPrimitive; + + public class CollisionPrimitiveListItem + { + private static var poolTop:CollisionPrimitiveListItem; + + public var primitive:CollisionPrimitive; + + public var next:CollisionPrimitiveListItem; + + public var prev:CollisionPrimitiveListItem; + + public function CollisionPrimitiveListItem(primitive:CollisionPrimitive) + { + super(); + this.primitive = primitive; + } + + public static function create(primitive:CollisionPrimitive) : CollisionPrimitiveListItem + { + var item:CollisionPrimitiveListItem = null; + if(poolTop == null) + { + item = new CollisionPrimitiveListItem(primitive); + } + else + { + item = poolTop; + item.primitive = primitive; + poolTop = item.next; + item.next = null; + } + return item; + } + + public static function clearPool() : void + { + for(var curr:CollisionPrimitiveListItem = poolTop; curr != null; ) + { + poolTop = curr.next; + curr.next = null; + curr = poolTop; + } + } + + public function dispose() : void + { + this.primitive = null; + this.prev = null; + this.next = poolTop; + poolTop = this; + } + } +} + diff --git a/src/alternativa/physics/Contact.as b/src/alternativa/physics/Contact.as new file mode 100644 index 0000000..83186b6 --- /dev/null +++ b/src/alternativa/physics/Contact.as @@ -0,0 +1,43 @@ +package alternativa.physics +{ + import alternativa.math.Vector3; + + public class Contact + { + public var body1:Body; + + public var body2:Body; + + public var §_-Pe§:Number; + + public var §_-J1§:Number; + + public var normal:Vector3 = new Vector3(); + + public var points:Vector.; + + public var §_-P3§:int; + + public var §_-HA§:Number = 0; + + public var §_-CV§:Boolean; + + public var next:Contact; + + public var index:int; + + private const §_-29§:int = 8; + + public function Contact(index:int) + { + this.points = new Vector.(this.§_-29§,true); + super(); + this.index = index; + for(var i:int = 0; i < this.§_-29§; i++) + { + this.points[i] = new ContactPoint(); + } + } + } +} + diff --git a/src/package_92/name_674.as b/src/alternativa/physics/ContactPoint.as similarity index 50% rename from src/package_92/name_674.as rename to src/alternativa/physics/ContactPoint.as index 092ceae..d888352 100644 --- a/src/package_92/name_674.as +++ b/src/alternativa/physics/ContactPoint.as @@ -1,10 +1,10 @@ -package package_92 +package alternativa.physics { - import package_46.name_194; + import alternativa.math.Vector3; - public class name_674 + public class ContactPoint { - public var pos:name_194 = new name_194(); + public var pos:Vector3 = new Vector3(); public var penetration:Number; @@ -12,30 +12,30 @@ package package_92 public var feature2:int; - public var name_677:Number; + public var §_-0C§:Number; - public var name_678:Number; + public var §_-A-§:Number; - public var name_675:Number; + public var §_-DS§:Number; public var angularInertia1:Number; public var angularInertia2:Number; - public var r1:name_194 = new name_194(); + public var r1:Vector3 = new Vector3(); - public var r2:name_194 = new name_194(); + public var r2:Vector3 = new Vector3(); - public var name_676:Number; + public var §_-Dv§:Number; - public var name_680:Boolean; + public var §_-CV§:Boolean; - public function name_674() + public function ContactPoint() { super(); } - public function copyFrom(cp:name_674) : void + public function copyFrom(cp:ContactPoint) : void { this.pos.copy(cp.pos); this.penetration = cp.penetration; diff --git a/src/alternativa/physics/PhysicsScene.as b/src/alternativa/physics/PhysicsScene.as new file mode 100644 index 0000000..20a65b6 --- /dev/null +++ b/src/alternativa/physics/PhysicsScene.as @@ -0,0 +1,519 @@ +package alternativa.physics +{ + import alternativa.math.Matrix3; + import alternativa.math.Vector3; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.§_-LG§; + import alternativa.physics.constraints.Constraint; + + public class PhysicsScene + { + private static var lastBodyId:int; + + public const §_-ga§:int = 1000; + + public var §_-kv§:int = 10; + + public var §_-YB§:Number = 0.1; + + public var dynamic:Number = 0.5; + + public var §_-Yi§:int = 5; + + public var §_-2I§:int = 5; + + public var §_-06§:Boolean = false; + + public var §_-Y6§:int = 10; + + public var §_-cc§:Number = 1; + + public var §_-GG§:Number = 0.01; + + public var §_-MX§:Vector3 = new Vector3(0,0,-9.8); + + public var §_-fz§:Number = 9.8; + + public var collisionDetector:ICollisionDetector; + + public var §_-By§:BodyList = new BodyList(); + + public var contacts:Contact; + + public var §_-7e§:Vector. = new Vector.(); + + public var §_-0v§:int; + + public var §_-hA§:int; + + public var time:int; + + private var §_-lh§:Contact; + + private var §_-MN§:Vector3 = new Vector3(); + + private var _v:Vector3 = new Vector3(); + + public function PhysicsScene() + { + super(); + this.contacts = new Contact(0); + var contact:Contact = this.contacts; + for(var i:int = 1; i < this.§_-ga§; i++) + { + contact.next = new Contact(i); + contact = contact.next; + } + this.collisionDetector = new §_-LG§(); + } + + public function get gravity() : Vector3 + { + return this.§_-MX§.clone(); + } + + public function set gravity(value:Vector3) : void + { + this.§_-MX§.copy(value); + this.§_-fz§ = this.§_-MX§.length(); + } + + public function addBody(body:Body) : void + { + body.id = lastBodyId++; + body.scene = this; + this.§_-By§.append(body); + } + + public function removeBody(body:Body) : void + { + if(this.§_-By§.remove(body)) + { + body.scene = null; + } + } + + public function addConstraint(c:Constraint) : void + { + var _loc2_:* = this.§_-0v§++; + this.§_-7e§[_loc2_] = c; + c.world = this; + } + + public function removeConstraint(c:Constraint) : Boolean + { + var idx:int = int(this.§_-7e§.indexOf(c)); + if(idx < 0) + { + return false; + } + this.§_-7e§.splice(idx,1); + --this.§_-0v§; + c.world = null; + return true; + } + + private function applyForces(dt:Number) : void + { + var body:Body = null; + for(var item:BodyListItem = this.§_-By§.head; item != null; ) + { + body = item.body; + body.calcAccelerations(); + if(body.§_-fA§ && body.§_-Sb§ && !body.§_-N0§) + { + body.§_-1G§.x += this.§_-MX§.x; + body.§_-1G§.y += this.§_-MX§.y; + body.§_-1G§.z += this.§_-MX§.z; + } + item = item.next; + } + } + + private function detectCollisions(dt:Number) : void + { + var body:Body = null; + var b1:Body = null; + var b2:Body = null; + var j:int = 0; + var cp:ContactPoint = null; + var bPos:Vector3 = null; + for(var item:BodyListItem = this.§_-By§.head; item != null; ) + { + body = item.body; + if(!body.§_-N0§) + { + body.saveState(); + if(this.§_-06§) + { + body.integrateVelocity(dt); + body.integratePosition(dt); + } + body.calcDerivedData(); + } + item = item.next; + } + this.§_-lh§ = this.collisionDetector.getAllContacts(this.contacts); + for(var contact:Contact = this.contacts; contact != this.§_-lh§; ) + { + b1 = contact.body1; + b2 = contact.body2; + for(j = 0; j < contact.§_-P3§; ) + { + cp = contact.points[j]; + bPos = b1.state.position; + cp.r1.x = cp.pos.x - bPos.x; + cp.r1.y = cp.pos.y - bPos.y; + cp.r1.z = cp.pos.z - bPos.z; + if(b2 != null) + { + bPos = b2.state.position; + cp.r2.x = cp.pos.x - bPos.x; + cp.r2.y = cp.pos.y - bPos.y; + cp.r2.z = cp.pos.z - bPos.z; + } + j++; + } + contact = contact.next; + } + if(this.§_-06§) + { + for(item = this.§_-By§.head; item != null; ) + { + body = item.body; + if(!body.§_-N0§) + { + body.restoreState(); + body.calcDerivedData(); + } + item = item.next; + } + } + } + + private function preProcessContacts(dt:Number) : void + { + var b1:Body = null; + var b2:Body = null; + var j:int = 0; + var cp:ContactPoint = null; + var constraint:Constraint = null; + for(var contact:Contact = this.contacts; contact != this.§_-lh§; ) + { + b1 = contact.body1; + b2 = contact.body2; + if(b1.§_-N0§) + { + b1.§_-N0§ = false; + b1.§_-ia§ = 0; + } + if(b2 != null && b2.§_-N0§) + { + b2.§_-N0§ = false; + b2.§_-ia§ = 0; + } + contact.§_-Pe§ = b1.material.§_-Pe§; + if(b2 != null && b2.material.§_-Pe§ < contact.§_-Pe§) + { + contact.§_-Pe§ = b2.material.§_-Pe§; + } + contact.§_-J1§ = b1.material.§_-J1§; + if(b2 != null && b2.material.§_-J1§ < contact.§_-J1§) + { + contact.§_-J1§ = b2.material.§_-J1§; + } + for(j = 0; j < contact.§_-P3§; ) + { + cp = contact.points[j]; + cp.§_-Dv§ = 0; + cp.§_-DS§ = 0; + if(b1.§_-Sb§) + { + cp.angularInertia1 = this._v.cross2(cp.r1,contact.normal).transform3(b1.§_-nX§).cross(cp.r1).dot(contact.normal); + cp.§_-DS§ += b1.invMass + cp.angularInertia1; + } + if(b2 != null && b2.§_-Sb§) + { + cp.angularInertia2 = this._v.cross2(cp.r2,contact.normal).transform3(b2.§_-nX§).cross(cp.r2).dot(contact.normal); + cp.§_-DS§ += b2.invMass + cp.angularInertia2; + } + this.calcSepVelocity(b1,b2,cp,this._v); + cp.§_-0C§ = this._v.dot(contact.normal); + if(cp.§_-0C§ < 0) + { + cp.§_-0C§ = -contact.§_-Pe§ * cp.§_-0C§; + } + cp.§_-A-§ = cp.penetration > this.§_-YB§ ? (cp.penetration - this.§_-YB§) / (this.§_-kv§ * dt) : 0; + if(cp.§_-A-§ > this.dynamic) + { + cp.§_-A-§ = this.dynamic; + } + j++; + } + contact = contact.next; + } + for(var i:int = 0; i < this.§_-0v§; i++) + { + constraint = this.§_-7e§[i]; + constraint.preProcess(dt); + } + } + + private function processContacts(dt:Number, forceInelastic:Boolean) : void + { + var i:int = 0; + var contact:Contact = null; + var constraint:Constraint = null; + var iterNum:int = forceInelastic ? this.§_-2I§ : this.§_-Yi§; + var forwardLoop:Boolean = false; + for(var iter:int = 0; iter < iterNum; iter++) + { + forwardLoop = !forwardLoop; + for(contact = this.contacts; contact != this.§_-lh§; ) + { + this.resolveContact(contact,forceInelastic,forwardLoop); + contact = contact.next; + } + for(i = 0; i < this.§_-0v§; i++) + { + constraint = this.§_-7e§[i]; + constraint.apply(dt); + } + } + } + + private function resolveContact(contactInfo:Contact, forceInelastic:Boolean, forwardLoop:Boolean) : void + { + var i:int = 0; + var b1:Body = contactInfo.body1; + var b2:Body = contactInfo.body2; + var normal:Vector3 = contactInfo.normal; + if(forwardLoop) + { + for(i = 0; i < contactInfo.§_-P3§; this.resolveContactPoint(i,b1,b2,contactInfo,normal,forceInelastic),i++) + { + } + } + else + { + for(i = contactInfo.§_-P3§ - 1; i >= 0; this.resolveContactPoint(i,b1,b2,contactInfo,normal,forceInelastic),i--) + { + } + } + } + + private function resolveContactPoint(idx:int, b1:Body, b2:Body, contact:Contact, normal:Vector3, forceInelastic:Boolean) : void + { + var r:Vector3 = null; + var m:Matrix3 = null; + var xx:Number = NaN; + var yy:Number = NaN; + var zz:Number = NaN; + var minSpeVel:Number = NaN; + var cp:ContactPoint = contact.points[idx]; + if(!forceInelastic) + { + cp.§_-CV§ = true; + } + var newVel:Number = 0; + this.calcSepVelocity(b1,b2,cp,this._v); + var cnormal:Vector3 = contact.normal; + var sepVel:Number = this._v.x * cnormal.x + this._v.y * cnormal.y + this._v.z * cnormal.z; + if(forceInelastic) + { + minSpeVel = cp.§_-A-§; + if(sepVel < minSpeVel) + { + cp.§_-CV§ = false; + } + else if(cp.§_-CV§) + { + return; + } + newVel = minSpeVel; + } + else + { + newVel = cp.§_-0C§; + } + var deltaVel:Number = newVel - sepVel; + var impulse:Number = deltaVel / cp.§_-DS§; + var accumImpulse:Number = cp.§_-Dv§ + impulse; + if(accumImpulse < 0) + { + accumImpulse = 0; + } + var deltaImpulse:Number = accumImpulse - cp.§_-Dv§; + cp.§_-Dv§ = accumImpulse; + if(b1.§_-Sb§) + { + b1.applyRelPosWorldImpulse(cp.r1,normal,deltaImpulse); + } + if(b2 != null && b2.§_-Sb§) + { + b2.applyRelPosWorldImpulse(cp.r2,normal,-deltaImpulse); + } + this.calcSepVelocity(b1,b2,cp,this._v); + var tanSpeedByUnitImpulse:Number = 0; + var dot:Number = this._v.x * cnormal.x + this._v.y * cnormal.y + this._v.z * cnormal.z; + this._v.x -= dot * cnormal.x; + this._v.y -= dot * cnormal.y; + this._v.z -= dot * cnormal.z; + var tanSpeed:Number = this._v.length(); + if(tanSpeed < 0.001) + { + return; + } + this.§_-MN§.x = -this._v.x; + this.§_-MN§.y = -this._v.y; + this.§_-MN§.z = -this._v.z; + this.§_-MN§.normalize(); + if(b1.§_-Sb§) + { + r = cp.r1; + m = b1.§_-nX§; + this._v.x = r.y * this.§_-MN§.z - r.z * this.§_-MN§.y; + this._v.y = r.z * this.§_-MN§.x - r.x * this.§_-MN§.z; + this._v.z = r.x * this.§_-MN§.y - r.y * this.§_-MN§.x; + xx = m.a * this._v.x + m.b * this._v.y + m.c * this._v.z; + yy = m.e * this._v.x + m.f * this._v.y + m.g * this._v.z; + zz = m.i * this._v.x + m.j * this._v.y + m.k * this._v.z; + this._v.x = yy * r.z - zz * r.y; + this._v.y = zz * r.x - xx * r.z; + this._v.z = xx * r.y - yy * r.x; + tanSpeedByUnitImpulse += b1.invMass + this._v.x * this.§_-MN§.x + this._v.y * this.§_-MN§.y + this._v.z * this.§_-MN§.z; + } + if(b2 != null && b2.§_-Sb§) + { + r = cp.r2; + m = b2.§_-nX§; + this._v.x = r.y * this.§_-MN§.z - r.z * this.§_-MN§.y; + this._v.y = r.z * this.§_-MN§.x - r.x * this.§_-MN§.z; + this._v.z = r.x * this.§_-MN§.y - r.y * this.§_-MN§.x; + xx = m.a * this._v.x + m.b * this._v.y + m.c * this._v.z; + yy = m.e * this._v.x + m.f * this._v.y + m.g * this._v.z; + zz = m.i * this._v.x + m.j * this._v.y + m.k * this._v.z; + this._v.x = yy * r.z - zz * r.y; + this._v.y = zz * r.x - xx * r.z; + this._v.z = xx * r.y - yy * r.x; + tanSpeedByUnitImpulse += b2.invMass + this._v.x * this.§_-MN§.x + this._v.y * this.§_-MN§.y + this._v.z * this.§_-MN§.z; + } + var tanImpulse:Number = tanSpeed / tanSpeedByUnitImpulse; + var max:Number = contact.§_-J1§ * cp.§_-Dv§; + if(max < 0) + { + if(tanImpulse < max) + { + tanImpulse = max; + } + } + else if(tanImpulse > max) + { + tanImpulse = max; + } + if(b1.§_-Sb§) + { + b1.applyRelPosWorldImpulse(cp.r1,this.§_-MN§,tanImpulse); + } + if(b2 != null && b2.§_-Sb§) + { + b2.applyRelPosWorldImpulse(cp.r2,this.§_-MN§,-tanImpulse); + } + } + + private function calcSepVelocity(body1:Body, body2:Body, cp:ContactPoint, result:Vector3) : void + { + var rot:Vector3 = body1.state.rotation; + var v:Vector3 = cp.r1; + var x:Number = rot.y * v.z - rot.z * v.y; + var y:Number = rot.z * v.x - rot.x * v.z; + var z:Number = rot.x * v.y - rot.y * v.x; + v = body1.state.velocity; + result.x = v.x + x; + result.y = v.y + y; + result.z = v.z + z; + if(body2 != null) + { + rot = body2.state.rotation; + v = cp.r2; + x = rot.y * v.z - rot.z * v.y; + y = rot.z * v.x - rot.x * v.z; + z = rot.x * v.y - rot.y * v.x; + v = body2.state.velocity; + result.x -= v.x + x; + result.y -= v.y + y; + result.z -= v.z + z; + } + } + + private function intergateVelocities(dt:Number) : void + { + for(var item:BodyListItem = this.§_-By§.head; item != null; ) + { + item.body.integrateVelocity(dt); + item = item.next; + } + } + + private function integratePositions(dt:Number) : void + { + var body:Body = null; + for(var item:BodyListItem = this.§_-By§.head; item != null; ) + { + body = item.body; + if(body.§_-Sb§ && !body.§_-N0§) + { + body.integratePosition(dt); + } + item = item.next; + } + } + + private function postPhysics() : void + { + var body:Body = null; + for(var item:BodyListItem = this.§_-By§.head; item != null; ) + { + body = item.body; + body.clearAccumulators(); + body.calcDerivedData(); + if(body.§_-N4§) + { + if(body.state.velocity.length() < this.§_-cc§ && body.state.rotation.length() < this.§_-GG§) + { + if(!body.§_-N0§) + { + ++body.§_-ia§; + if(body.§_-ia§ >= this.§_-Y6§) + { + body.§_-N0§ = true; + } + } + } + else + { + body.§_-ia§ = 0; + body.§_-N0§ = false; + } + } + item = item.next; + } + } + + public function update(delta:int) : void + { + ++this.§_-hA§; + this.time += delta; + var dt:Number = 0.001 * delta; + this.applyForces(dt); + this.detectCollisions(dt); + this.preProcessContacts(dt); + this.processContacts(dt,false); + this.intergateVelocities(dt); + this.processContacts(dt,true); + this.integratePositions(dt); + this.postPhysics(); + } + } +} + diff --git a/src/package_92/name_575.as b/src/alternativa/physics/PhysicsUtils.as similarity index 67% rename from src/package_92/name_575.as rename to src/alternativa/physics/PhysicsUtils.as index 9ae5f2b..e15e4d9 100644 --- a/src/package_92/name_575.as +++ b/src/alternativa/physics/PhysicsUtils.as @@ -1,16 +1,16 @@ -package package_92 +package alternativa.physics { - import package_46.Matrix3; - import package_46.name_194; + import alternativa.math.Matrix3; + import alternativa.math.Vector3; - public class name_575 + public class PhysicsUtils { - public function name_575() + public function PhysicsUtils() { super(); } - public static function name_589(mass:Number, halfSize:name_194, result:Matrix3) : void + public static function getBoxInvInertia(mass:Number, halfSize:Vector3, result:Matrix3) : void { if(mass <= 0) { @@ -29,7 +29,7 @@ package package_92 result.k = 3 / (mass * (xx + yy)); } - public static function method_773(mass:Number, r:Number, h:Number, result:Matrix3) : void + public static function getCylinderInvInertia(mass:Number, r:Number, h:Number, result:Matrix3) : void { if(mass <= 0) { diff --git a/src/alternativa/physics/collision/CollisionKdNode.as b/src/alternativa/physics/collision/CollisionKdNode.as new file mode 100644 index 0000000..e662080 --- /dev/null +++ b/src/alternativa/physics/collision/CollisionKdNode.as @@ -0,0 +1,31 @@ +package alternativa.physics.collision +{ + import alternativa.physics.collision.types.BoundBox; + + public class CollisionKdNode + { + public var indices:Vector.; + + public var §_-Xt§:Vector.; + + public var boundBox:BoundBox; + + public var parent:CollisionKdNode; + + public var §_-da§:CollisionKdTree2D; + + public var axis:int = -1; + + public var coord:Number; + + public var §_-75§:CollisionKdNode; + + public var §_-Gm§:CollisionKdNode; + + public function CollisionKdNode() + { + super(); + } + } +} + diff --git a/src/package_76/name_235.as b/src/alternativa/physics/collision/CollisionPrimitive.as similarity index 60% rename from src/package_76/name_235.as rename to src/alternativa/physics/collision/CollisionPrimitive.as index fb18f51..3111677 100644 --- a/src/package_76/name_235.as +++ b/src/alternativa/physics/collision/CollisionPrimitive.as @@ -1,11 +1,11 @@ -package package_76 +package alternativa.physics.collision { - import package_46.Matrix4; - import package_46.name_194; - import package_90.name_386; - import package_92.name_271; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.types.BoundBox; - public class name_235 + public class CollisionPrimitive { public static const BOX:int = 1; @@ -23,19 +23,19 @@ package package_76 public var collisionMask:int; - public var postCollisionFilter:name_485; + public var postCollisionFilter:IPrimitiveCollisionFilter; - public var body:name_271; + public var body:Body; public var localTransform:Matrix4; public var transform:Matrix4 = new Matrix4(); - public var aabb:name_386 = new name_386(); + public var aabb:BoundBox = new BoundBox(); public var timestamp:int; - public function name_235(type:int, collisionGroup:int, collisionMask:int) + public function CollisionPrimitive(type:int, collisionGroup:int, collisionMask:int) { super(); this.type = type; @@ -43,7 +43,7 @@ package package_76 this.collisionMask = collisionMask; } - public function method_373(body:name_271, localTransform:Matrix4 = null) : void + public function setBody(body:Body, localTransform:Matrix4 = null) : void { if(this.body == body) { @@ -67,23 +67,23 @@ package package_76 } } - public function calculateAABB() : name_386 + public function calculateAABB() : BoundBox { return this.aabb; } - public function raycast(origin:name_194, vector:name_194, epsilon:Number, normal:name_194) : Number + public function raycast(origin:Vector3, vector:Vector3, epsilon:Number, normal:Vector3) : Number { return -1; } - public function clone() : name_235 + public function clone() : CollisionPrimitive { - var p:name_235 = this.createPrimitive(); + var p:CollisionPrimitive = this.createPrimitive(); return p.copyFrom(this); } - public function copyFrom(source:name_235) : name_235 + public function copyFrom(source:CollisionPrimitive) : CollisionPrimitive { if(source == null) { @@ -92,7 +92,7 @@ package package_76 this.type = source.type; this.transform.copy(source.transform); this.collisionGroup = source.collisionGroup; - this.method_373(source.body,source.localTransform); + this.setBody(source.body,source.localTransform); this.aabb.copyFrom(source.aabb); return this; } @@ -102,9 +102,9 @@ package package_76 return "[CollisionPrimitive type=" + this.type + "]"; } - protected function createPrimitive() : name_235 + protected function createPrimitive() : CollisionPrimitive { - return new name_235(this.type,this.collisionGroup,this.collisionMask); + return new CollisionPrimitive(this.type,this.collisionGroup,this.collisionMask); } } } diff --git a/src/alternativa/physics/collision/IBodyCollisionFilter.as b/src/alternativa/physics/collision/IBodyCollisionFilter.as new file mode 100644 index 0000000..68df71b --- /dev/null +++ b/src/alternativa/physics/collision/IBodyCollisionFilter.as @@ -0,0 +1,10 @@ +package alternativa.physics.collision +{ + import alternativa.physics.Body; + + public interface IBodyCollisionFilter + { + function acceptBodiesCollision(param1:Body, param2:Body) : Boolean; + } +} + diff --git a/src/alternativa/physics/collision/ICollider.as b/src/alternativa/physics/collision/ICollider.as new file mode 100644 index 0000000..9b86ad7 --- /dev/null +++ b/src/alternativa/physics/collision/ICollider.as @@ -0,0 +1,12 @@ +package alternativa.physics.collision +{ + import alternativa.physics.Contact; + + public interface ICollider + { + function getContact(param1:CollisionPrimitive, param2:CollisionPrimitive, param3:Contact) : Boolean; + + function haveCollision(param1:CollisionPrimitive, param2:CollisionPrimitive) : Boolean; + } +} + diff --git a/src/alternativa/physics/collision/ICollisionDetector.as b/src/alternativa/physics/collision/ICollisionDetector.as new file mode 100644 index 0000000..7e3a0bf --- /dev/null +++ b/src/alternativa/physics/collision/ICollisionDetector.as @@ -0,0 +1,20 @@ +package alternativa.physics.collision +{ + import alternativa.math.Vector3; + import alternativa.physics.Contact; + import alternativa.physics.collision.types.RayHit; + + public interface ICollisionDetector + { + function getAllContacts(param1:Contact) : Contact; + + function raycast(param1:Vector3, param2:Vector3, param3:int, param4:Number, param5:IRaycastFilter, param6:RayHit) : Boolean; + + function raycastStatic(param1:Vector3, param2:Vector3, param3:int, param4:Number, param5:IRaycastFilter, param6:RayHit) : Boolean; + + function getContact(param1:CollisionPrimitive, param2:CollisionPrimitive, param3:Contact) : Boolean; + + function testCollision(param1:CollisionPrimitive, param2:CollisionPrimitive) : Boolean; + } +} + diff --git a/src/alternativa/physics/collision/IPrimitiveCollisionFilter.as b/src/alternativa/physics/collision/IPrimitiveCollisionFilter.as new file mode 100644 index 0000000..956474e --- /dev/null +++ b/src/alternativa/physics/collision/IPrimitiveCollisionFilter.as @@ -0,0 +1,8 @@ +package alternativa.physics.collision +{ + public interface IPrimitiveCollisionFilter + { + function acceptPrimitivesCollision(param1:CollisionPrimitive, param2:CollisionPrimitive) : Boolean; + } +} + diff --git a/src/alternativa/physics/collision/IRaycastFilter.as b/src/alternativa/physics/collision/IRaycastFilter.as new file mode 100644 index 0000000..9b0c9af --- /dev/null +++ b/src/alternativa/physics/collision/IRaycastFilter.as @@ -0,0 +1,8 @@ +package alternativa.physics.collision +{ + public interface IRaycastFilter + { + function acceptRayHit(param1:CollisionPrimitive) : Boolean; + } +} + diff --git a/src/package_121/class_41.as b/src/alternativa/physics/collision/colliders/BoxCollider.as similarity index 81% rename from src/package_121/class_41.as rename to src/alternativa/physics/collision/colliders/BoxCollider.as index 3ad04c8..c4d3e40 100644 --- a/src/package_121/class_41.as +++ b/src/alternativa/physics/collision/colliders/BoxCollider.as @@ -1,30 +1,30 @@ -package package_121 +package alternativa.physics.collision.colliders { - import package_46.name_194; - import package_76.name_235; - import package_76.name_665; - import package_92.name_630; + import alternativa.math.Vector3; + import alternativa.physics.Contact; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.ICollider; - public class class_41 implements name_665 + public class BoxCollider implements ICollider { - public function class_41() + public function BoxCollider() { super(); } - public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + public function getContact(prim1:CollisionPrimitive, prim2:CollisionPrimitive, contact:Contact) : Boolean { return false; } - public function haveCollision(prim1:name_235, prim2:name_235) : Boolean + public function haveCollision(prim1:CollisionPrimitive, prim2:CollisionPrimitive) : Boolean { return false; } - protected function method_824(hs:name_194, axisIdx:int, negativeFace:Boolean, result:Vector.) : void + protected function getFaceVertsByAxis(hs:Vector3, axisIdx:int, negativeFace:Boolean, result:Vector.) : void { - var v:name_194 = null; + var v:Vector3 = null; switch(axisIdx) { case 0: @@ -144,18 +144,18 @@ package package_121 } } - protected function method_822(x:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int + protected function clipLowX(x:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int { var x1:Number = NaN; - var p2:name_194 = null; + var p2:Vector3 = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var t:Number = NaN; - var v:name_194 = null; + var v:Vector3 = null; x1 = x - epsilon; var num:int = 0; - var p1:name_194 = points[int(pnum - 1)]; + var p1:Vector3 = points[int(pnum - 1)]; for(var i:int = 0; i < pnum; i++) { p2 = points[i]; @@ -196,17 +196,17 @@ package package_121 return num; } - protected function method_821(x:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int + protected function clipHighX(x:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int { - var p2:name_194 = null; + var p2:Vector3 = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var t:Number = NaN; - var v:name_194 = null; + var v:Vector3 = null; var x1:Number = x + epsilon; var num:int = 0; - var p1:name_194 = points[int(pnum - 1)]; + var p1:Vector3 = points[int(pnum - 1)]; for(var i:int = 0; i < pnum; i++) { p2 = points[i]; @@ -247,17 +247,17 @@ package package_121 return num; } - protected function method_818(y:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int + protected function clipLowY(y:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int { - var p2:name_194 = null; + var p2:Vector3 = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var t:Number = NaN; - var v:name_194 = null; + var v:Vector3 = null; var y1:Number = y - epsilon; var num:int = 0; - var p1:name_194 = points[int(pnum - 1)]; + var p1:Vector3 = points[int(pnum - 1)]; for(var i:int = 0; i < pnum; i++) { p2 = points[i]; @@ -298,17 +298,17 @@ package package_121 return num; } - protected function method_823(y:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int + protected function clipHighY(y:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int { - var p2:name_194 = null; + var p2:Vector3 = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var t:Number = NaN; - var v:name_194 = null; + var v:Vector3 = null; var y1:Number = y + epsilon; var num:int = 0; - var p1:name_194 = points[int(pnum - 1)]; + var p1:Vector3 = points[int(pnum - 1)]; for(var i:int = 0; i < pnum; i++) { p2 = points[i]; @@ -349,17 +349,17 @@ package package_121 return num; } - protected function method_819(z:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int + protected function clipLowZ(z:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int { - var p2:name_194 = null; + var p2:Vector3 = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var t:Number = NaN; - var v:name_194 = null; + var v:Vector3 = null; var z1:Number = z - epsilon; var num:int = 0; - var p1:name_194 = points[int(pnum - 1)]; + var p1:Vector3 = points[int(pnum - 1)]; for(var i:int = 0; i < pnum; i++) { p2 = points[i]; @@ -400,17 +400,17 @@ package package_121 return num; } - protected function method_820(z:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int + protected function clipHighZ(z:Number, pnum:int, points:Vector., result:Vector., epsilon:Number) : int { - var p2:name_194 = null; + var p2:Vector3 = null; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var t:Number = NaN; - var v:name_194 = null; + var v:Vector3 = null; var z1:Number = z + epsilon; var num:int = 0; - var p1:name_194 = points[int(pnum - 1)]; + var p1:Vector3 = points[int(pnum - 1)]; for(var i:int = 0; i < pnum; i++) { p2 = points[i]; diff --git a/src/package_121/name_667.as b/src/alternativa/physics/collision/colliders/BoxRectCollider.as similarity index 63% rename from src/package_121/name_667.as rename to src/alternativa/physics/collision/colliders/BoxRectCollider.as index 073e4b3..4e86d13 100644 --- a/src/package_121/name_667.as +++ b/src/alternativa/physics/collision/colliders/BoxRectCollider.as @@ -1,79 +1,79 @@ -package package_121 +package alternativa.physics.collision.colliders { - import package_109.name_377; - import package_109.name_381; - import package_46.Matrix4; - import package_46.name_194; - import package_76.name_235; - import package_92.name_630; - import package_92.name_674; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.Contact; + import alternativa.physics.ContactPoint; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.primitives.CollisionRect; + import alternativa.physics.collision.primitives.§_-m3§; - public class name_667 extends class_41 + public class BoxRectCollider extends BoxCollider { private var epsilon:Number = 0.001; - private var vectorToBox:name_194 = new name_194(); + private var vectorToBox:Vector3 = new Vector3(); - private var axis:name_194 = new name_194(); + private var axis:Vector3 = new Vector3(); - private var axis10:name_194 = new name_194(); + private var axis10:Vector3 = new Vector3(); - private var axis11:name_194 = new name_194(); + private var axis11:Vector3 = new Vector3(); - private var axis12:name_194 = new name_194(); + private var axis12:Vector3 = new Vector3(); - private var axis20:name_194 = new name_194(); + private var axis20:Vector3 = new Vector3(); - private var axis21:name_194 = new name_194(); + private var axis21:Vector3 = new Vector3(); - private var axis22:name_194 = new name_194(); + private var axis22:Vector3 = new Vector3(); - private var var_675:int; + private var §_-Wt§:int; - private var var_676:Number; + private var §_-hK§:Number; - private var points1:Vector. = new Vector.(8,true); + private var points1:Vector. = new Vector.(8,true); - private var points2:Vector. = new Vector.(8,true); + private var points2:Vector. = new Vector.(8,true); - public function name_667() + public function BoxRectCollider() { super(); for(var i:int = 0; i < 8; i++) { - this.points1[i] = new name_194(); - this.points2[i] = new name_194(); + this.points1[i] = new Vector3(); + this.points2[i] = new Vector3(); } } - override public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean + override public function getContact(prim1:CollisionPrimitive, prim2:CollisionPrimitive, contact:Contact) : Boolean { - var rect:name_381 = null; + var rect:CollisionRect = null; if(!this.haveCollision(prim1,prim2)) { return false; } - var box:name_377 = prim1 as name_377; + var box:§_-m3§ = prim1 as §_-m3§; if(box == null) { - box = prim2 as name_377; - rect = prim1 as name_381; + box = prim2 as §_-m3§; + rect = prim1 as CollisionRect; } else { - rect = prim2 as name_381; + rect = prim2 as CollisionRect; } - if(this.var_675 < 4) + if(this.§_-Wt§ < 4) { - if(!this.method_828(box,rect,this.vectorToBox,this.var_675,contact)) + if(!this.findFaceContactPoints(box,rect,this.vectorToBox,this.§_-Wt§,contact)) { return false; } } else { - this.var_675 -= 4; - if(!this.method_831(box,rect,this.vectorToBox,int(this.var_675 / 2),this.var_675 % 2,contact)) + this.§_-Wt§ -= 4; + if(!this.findEdgesIntersection(box,rect,this.vectorToBox,int(this.§_-Wt§ / 2),this.§_-Wt§ % 2,contact)) { return false; } @@ -89,21 +89,21 @@ package package_121 return true; } - override public function haveCollision(prim1:name_235, prim2:name_235) : Boolean + override public function haveCollision(prim1:CollisionPrimitive, prim2:CollisionPrimitive) : Boolean { - var box:name_377 = null; - var rect:name_381 = null; + var box:§_-m3§ = null; + var rect:CollisionRect = null; var rectTransform:Matrix4 = null; - this.var_676 = 10000000000; - box = prim1 as name_377; + this.§_-hK§ = 10000000000; + box = prim1 as §_-m3§; if(box == null) { - box = prim2 as name_377; - rect = prim1 as name_381; + box = prim2 as §_-m3§; + rect = prim1 as CollisionRect; } else { - rect = prim2 as name_381; + rect = prim2 as CollisionRect; } var boxTransform:Matrix4 = box.transform; rectTransform = rect.transform; @@ -111,63 +111,63 @@ package package_121 this.vectorToBox.y = boxTransform.h - rectTransform.h; this.vectorToBox.z = boxTransform.l - rectTransform.l; rectTransform.getAxis(2,this.axis22); - if(!this.method_826(box,rect,this.axis22,0,this.vectorToBox)) + if(!this.testMainAxis(box,rect,this.axis22,0,this.vectorToBox)) { return false; } boxTransform.getAxis(0,this.axis10); - if(!this.method_826(box,rect,this.axis10,1,this.vectorToBox)) + if(!this.testMainAxis(box,rect,this.axis10,1,this.vectorToBox)) { return false; } boxTransform.getAxis(1,this.axis11); - if(!this.method_826(box,rect,this.axis11,2,this.vectorToBox)) + if(!this.testMainAxis(box,rect,this.axis11,2,this.vectorToBox)) { return false; } boxTransform.getAxis(2,this.axis12); - if(!this.method_826(box,rect,this.axis12,3,this.vectorToBox)) + if(!this.testMainAxis(box,rect,this.axis12,3,this.vectorToBox)) { return false; } rectTransform.getAxis(0,this.axis20); rectTransform.getAxis(1,this.axis21); - if(!this.method_825(box,rect,this.axis10,this.axis20,4,this.vectorToBox)) + if(!this.testDerivedAxis(box,rect,this.axis10,this.axis20,4,this.vectorToBox)) { return false; } - if(!this.method_825(box,rect,this.axis10,this.axis21,5,this.vectorToBox)) + if(!this.testDerivedAxis(box,rect,this.axis10,this.axis21,5,this.vectorToBox)) { return false; } - if(!this.method_825(box,rect,this.axis11,this.axis20,6,this.vectorToBox)) + if(!this.testDerivedAxis(box,rect,this.axis11,this.axis20,6,this.vectorToBox)) { return false; } - if(!this.method_825(box,rect,this.axis11,this.axis21,7,this.vectorToBox)) + if(!this.testDerivedAxis(box,rect,this.axis11,this.axis21,7,this.vectorToBox)) { return false; } - if(!this.method_825(box,rect,this.axis12,this.axis20,8,this.vectorToBox)) + if(!this.testDerivedAxis(box,rect,this.axis12,this.axis20,8,this.vectorToBox)) { return false; } - if(!this.method_825(box,rect,this.axis12,this.axis21,9,this.vectorToBox)) + if(!this.testDerivedAxis(box,rect,this.axis12,this.axis21,9,this.vectorToBox)) { return false; } return true; } - private function method_828(box:name_377, rect:name_381, vectorToBox:name_194, faceAxisIdx:int, contact:name_630) : Boolean + private function findFaceContactPoints(box:§_-m3§, rect:CollisionRect, vectorToBox:Vector3, faceAxisIdx:int, contact:Contact) : Boolean { var pnum:int = 0; var i:int = 0; - var v:name_194 = null; - var cp:name_674 = null; + var v:Vector3 = null; + var cp:ContactPoint = null; var boxTransform:Matrix4 = null; var rectTransform:Matrix4 = null; - var colAxis:name_194 = null; + var colAxis:Vector3 = null; var negativeFace:Boolean = false; var incidentAxisIdx:int = 0; var incidentAxisDot:Number = NaN; @@ -175,8 +175,8 @@ package package_121 var axisIdx:int = 0; var dot:Number = NaN; var absDot:Number = NaN; - var cpPos:name_194 = null; - var pen:Number = NaN; + var cpPos:Vector3 = null; + var _loc21_:Number = NaN; boxTransform = box.transform; rectTransform = rect.transform; colAxis = contact.normal; @@ -202,17 +202,17 @@ package package_121 } negativeFace = incidentAxisDot > 0; boxTransform.getAxis(incidentAxisIdx,this.axis); - method_824(box.hs,incidentAxisIdx,negativeFace,this.points1); - boxTransform.method_357(this.points1,this.points2,4); - rectTransform.method_352(this.points2,this.points1,4); - pnum = this.method_829(rect.hs); - contact.name_679 = 0; + getFaceVertsByAxis(box.hs,incidentAxisIdx,negativeFace,this.points1); + boxTransform.transformPointsN(this.points1,this.points2,4); + rectTransform.transformPointsTransposedN(this.points2,this.points1,4); + pnum = this.clipByRect(rect.hs); + contact.§_-P3§ = 0; for(i = 0; i < pnum; ) { v = this.points1[i]; if(v.z < this.epsilon) { - cp = contact.points[contact.name_679++]; + cp = contact.points[contact.§_-P3§++]; cp.penetration = -v.z; cpPos = cp.pos; cpPos.x = rectTransform.a * v.x + rectTransform.b * v.y + rectTransform.c * v.z + rectTransform.d; @@ -245,19 +245,19 @@ package package_121 { return false; } - method_824(rect.hs,2,false,this.points1); - rectTransform.method_357(this.points1,this.points2,4); - boxTransform.method_352(this.points2,this.points1,4); - pnum = this.method_832(box.hs,faceAxisIdx); - contact.name_679 = 0; + getFaceVertsByAxis(rect.hs,2,false,this.points1); + rectTransform.transformPointsN(this.points1,this.points2,4); + boxTransform.transformPointsTransposedN(this.points2,this.points1,4); + pnum = this.clipByBox(box.hs,faceAxisIdx); + contact.§_-P3§ = 0; for(i = 0; i < pnum; ) { v = this.points1[i]; - pen = this.method_830(box.hs,v,faceAxisIdx,negativeFace); - if(pen > -this.epsilon) + _loc21_ = this.getPointBoxPenetration(box.hs,v,faceAxisIdx,negativeFace); + if(_loc21_ > -this.epsilon) { - cp = contact.points[contact.name_679++]; - cp.penetration = pen; + cp = contact.points[contact.§_-P3§++]; + cp.penetration = _loc21_; cpPos = cp.pos; cpPos.x = boxTransform.a * v.x + boxTransform.b * v.y + boxTransform.c * v.z + boxTransform.d; cpPos.y = boxTransform.e * v.x + boxTransform.f * v.y + boxTransform.g * v.z + boxTransform.h; @@ -277,7 +277,7 @@ package package_121 return true; } - private function method_830(hs:name_194, p:name_194, faceAxisIdx:int, reverse:Boolean) : Number + private function getPointBoxPenetration(hs:Vector3, p:Vector3, faceAxisIdx:int, reverse:Boolean) : Number { switch(faceAxisIdx) { @@ -307,92 +307,92 @@ package package_121 } } - private function method_832(hs:name_194, faceAxisIdx:int) : int + private function clipByBox(hs:Vector3, faceAxisIdx:int) : int { var pnum:int = 4; switch(faceAxisIdx) { case 0: - pnum = method_819(-hs.z,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowZ(-hs.z,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_820(hs.z,pnum,this.points2,this.points1,this.epsilon); + pnum = clipHighZ(hs.z,pnum,this.points2,this.points1,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowY(-hs.y,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return clipHighY(hs.y,pnum,this.points2,this.points1,this.epsilon); break; case 1: - pnum = method_819(-hs.z,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowZ(-hs.z,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_820(hs.z,pnum,this.points2,this.points1,this.epsilon); + pnum = clipHighZ(hs.z,pnum,this.points2,this.points1,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowX(-hs.x,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - return method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + return clipHighX(hs.x,pnum,this.points2,this.points1,this.epsilon); break; case 2: - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowX(-hs.x,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + pnum = clipHighX(hs.x,pnum,this.points2,this.points1,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowY(-hs.y,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return clipHighY(hs.y,pnum,this.points2,this.points1,this.epsilon); break; default: return 0; } } - private function method_829(hs:name_194) : int + private function clipByRect(hs:Vector3) : int { var pnum:int = 4; - pnum = method_822(-hs.x,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowX(-hs.x,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_821(hs.x,pnum,this.points2,this.points1,this.epsilon); + pnum = clipHighX(hs.x,pnum,this.points2,this.points1,this.epsilon); if(pnum == 0) { return 0; } - pnum = method_818(-hs.y,pnum,this.points1,this.points2,this.epsilon); + pnum = clipLowY(-hs.y,pnum,this.points1,this.points2,this.epsilon); if(pnum == 0) { return 0; } - return method_823(hs.y,pnum,this.points2,this.points1,this.epsilon); + return clipHighY(hs.y,pnum,this.points2,this.points1,this.epsilon); } - private function method_831(box:name_377, rect:name_381, vectorToBox:name_194, axisIdx1:int, axisIdx2:int, contact:name_630) : Boolean + private function findEdgesIntersection(box:§_-m3§, rect:CollisionRect, vectorToBox:Vector3, axisIdx1:int, axisIdx2:int, contact:Contact) : Boolean { var halfLen1:Number = NaN; var halfLen2:Number = NaN; @@ -400,7 +400,7 @@ package package_121 var rectTransform:Matrix4 = rect.transform; boxTransform.getAxis(axisIdx1,this.axis10); rectTransform.getAxis(axisIdx2,this.axis20); - var colAxis:name_194 = contact.normal; + var colAxis:Vector3 = contact.normal; colAxis.x = this.axis10.y * this.axis20.z - this.axis10.z * this.axis20.y; colAxis.y = this.axis10.z * this.axis20.x - this.axis10.x * this.axis20.z; colAxis.z = this.axis10.x * this.axis20.y - this.axis10.y * this.axis20.x; @@ -414,16 +414,16 @@ package package_121 colAxis.y = -colAxis.y; colAxis.z = -colAxis.z; } - var vx:Number = box.hs.x; - var vy:Number = box.hs.y; - var vz:Number = box.hs.z; + var vx:Number = Number(box.hs.x); + var vy:Number = Number(box.hs.y); + var vz:Number = Number(box.hs.z); var x2:Number = rect.hs.x; var y2:Number = rect.hs.y; var z2:Number = rect.hs.z; if(axisIdx1 == 0) { vx = 0; - halfLen1 = box.hs.x; + halfLen1 = Number(box.hs.x); } else if(boxTransform.a * colAxis.x + boxTransform.e * colAxis.y + boxTransform.i * colAxis.z > 0) { @@ -441,7 +441,7 @@ package package_121 if(axisIdx1 == 1) { vy = 0; - halfLen1 = box.hs.y; + halfLen1 = Number(box.hs.y); } else if(boxTransform.b * colAxis.x + boxTransform.f * colAxis.y + boxTransform.j * colAxis.z > 0) { @@ -459,7 +459,7 @@ package package_121 if(axisIdx1 == 2) { vz = 0; - halfLen1 = box.hs.z; + halfLen1 = Number(box.hs.z); } else if(boxTransform.c * colAxis.x + boxTransform.g * colAxis.y + boxTransform.k * colAxis.z > 0) { @@ -483,14 +483,14 @@ package package_121 var c2:Number = this.axis20.x * vx + this.axis20.y * vy + this.axis20.z * vz; var t1:Number = (c2 * k - c1) / det; var t2:Number = (c2 - c1 * k) / det; - contact.name_679 = 1; - var cp:name_674 = contact.points[0]; - cp.penetration = this.var_676; - var cpPos:name_194 = cp.pos; + contact.§_-P3§ = 1; + var cp:ContactPoint = contact.points[0]; + cp.penetration = this.§_-hK§; + var cpPos:Vector3 = cp.pos; cpPos.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2); cpPos.y = 0.5 * (y1 + this.axis10.y * t1 + y2 + this.axis20.y * t2); cpPos.z = 0.5 * (z1 + this.axis10.z * t1 + z2 + this.axis20.z * t2); - var v:name_194 = cp.r1; + var v:Vector3 = cp.r1; v.x = cpPos.x - boxTransform.d; v.y = cpPos.y - boxTransform.h; v.z = cpPos.z - boxTransform.l; @@ -501,22 +501,22 @@ package package_121 return true; } - private function method_826(box:name_377, rect:name_381, axis:name_194, axisIndex:int, vectorToBox:name_194) : Boolean + private function testMainAxis(box:§_-m3§, rect:CollisionRect, axis:Vector3, axisIndex:int, vectorToBox:Vector3) : Boolean { - var overlap:Number = this.method_827(box,rect,axis,vectorToBox); + var overlap:Number = this.overlapOnAxis(box,rect,axis,vectorToBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.var_676) + if(overlap + this.epsilon < this.§_-hK§) { - this.var_676 = overlap; - this.var_675 = axisIndex; + this.§_-hK§ = overlap; + this.§_-Wt§ = axisIndex; } return true; } - private function method_825(box:name_377, rect:name_381, axis1:name_194, axis2:name_194, axisIndex:int, vectorToBox:name_194) : Boolean + private function testDerivedAxis(box:§_-m3§, rect:CollisionRect, axis1:Vector3, axis2:Vector3, axisIndex:int, vectorToBox:Vector3) : Boolean { this.axis.x = axis1.y * axis2.z - axis1.z * axis2.y; this.axis.y = axis1.z * axis2.x - axis1.x * axis2.z; @@ -530,20 +530,20 @@ package package_121 this.axis.x *= k; this.axis.y *= k; this.axis.z *= k; - var overlap:Number = this.method_827(box,rect,this.axis,vectorToBox); + var overlap:Number = this.overlapOnAxis(box,rect,this.axis,vectorToBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.var_676) + if(overlap + this.epsilon < this.§_-hK§) { - this.var_676 = overlap; - this.var_675 = axisIndex; + this.§_-hK§ = overlap; + this.§_-Wt§ = axisIndex; } return true; } - public function method_827(box:name_377, rect:name_381, axis:name_194, vectorToBox:name_194) : Number + public function overlapOnAxis(box:§_-m3§, rect:CollisionRect, axis:Vector3, vectorToBox:Vector3) : Number { var m:Matrix4 = box.transform; var d:Number = (m.a * axis.x + m.e * axis.y + m.i * axis.z) * box.hs.x; diff --git a/src/alternativa/physics/collision/colliders/BoxSphereCollider.as b/src/alternativa/physics/collision/colliders/BoxSphereCollider.as new file mode 100644 index 0000000..38e2381 --- /dev/null +++ b/src/alternativa/physics/collision/colliders/BoxSphereCollider.as @@ -0,0 +1,168 @@ +package alternativa.physics.collision.colliders +{ + import alternativa.math.Vector3; + import alternativa.physics.Contact; + import alternativa.physics.ContactPoint; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.ICollider; + import alternativa.physics.collision.primitives.CollisionSphere; + import alternativa.physics.collision.primitives.§_-m3§; + + public class BoxSphereCollider implements ICollider + { + private var center:Vector3 = new Vector3(); + + private var §_-ZR§:Vector3 = new Vector3(); + + private var bPos:Vector3 = new Vector3(); + + private var §_-dt§:Vector3 = new Vector3(); + + public function BoxSphereCollider() + { + super(); + } + + public function getContact(prim1:CollisionPrimitive, prim2:CollisionPrimitive, contact:Contact) : Boolean + { + var box:§_-m3§ = null; + var sphere:CollisionSphere = prim1 as CollisionSphere; + if(sphere == null) + { + sphere = prim2 as CollisionSphere; + box = prim1 as §_-m3§; + } + else + { + box = prim2 as §_-m3§; + } + sphere.transform.getAxis(3,this.§_-dt§); + box.transform.getAxis(3,this.bPos); + box.transform.transformPointTransposed(this.§_-dt§,this.center); + var hs:Vector3 = box.hs; + var sx:Number = hs.x + sphere.r; + var sy:Number = hs.y + sphere.r; + var sz:Number = hs.z + sphere.r; + if(this.center.x > sx || this.center.x < -sx || this.center.y > sy || this.center.y < -sy || this.center.z > sz || this.center.z < -sz) + { + return false; + } + if(this.center.x > hs.x) + { + this.§_-ZR§.x = hs.x; + } + else if(this.center.x < -hs.x) + { + this.§_-ZR§.x = -hs.x; + } + else + { + this.§_-ZR§.x = this.center.x; + } + if(this.center.y > hs.y) + { + this.§_-ZR§.y = hs.y; + } + else if(this.center.y < -hs.y) + { + this.§_-ZR§.y = -hs.y; + } + else + { + this.§_-ZR§.y = this.center.y; + } + if(this.center.z > hs.z) + { + this.§_-ZR§.z = hs.z; + } + else if(this.center.z < -hs.z) + { + this.§_-ZR§.z = -hs.z; + } + else + { + this.§_-ZR§.z = this.center.z; + } + var distSqr:Number = this.center.subtract(this.§_-ZR§).lengthSqr(); + if(distSqr > sphere.r * sphere.r) + { + return false; + } + contact.body1 = sphere.body; + contact.body2 = box.body; + contact.normal.copy(this.§_-ZR§).transform4(box.transform).subtract(this.§_-dt§).normalize().reverse(); + contact.§_-P3§ = 1; + var cp:ContactPoint = contact.points[0]; + cp.penetration = sphere.r - Math.sqrt(distSqr); + cp.pos.copy(contact.normal).scale(-sphere.r).add(this.§_-dt§); + cp.r1.diff(cp.pos,this.§_-dt§); + cp.r2.diff(cp.pos,this.bPos); + return true; + } + + public function haveCollision(prim1:CollisionPrimitive, prim2:CollisionPrimitive) : Boolean + { + var box:§_-m3§ = null; + var sphere:CollisionSphere = prim1 as CollisionSphere; + if(sphere == null) + { + sphere = prim2 as CollisionSphere; + box = prim1 as §_-m3§; + } + else + { + box = prim2 as §_-m3§; + } + sphere.transform.getAxis(3,this.§_-dt§); + box.transform.getAxis(3,this.bPos); + box.transform.transformPointTransposed(this.§_-dt§,this.center); + var hs:Vector3 = box.hs; + var sx:Number = hs.x + sphere.r; + var sy:Number = hs.y + sphere.r; + var sz:Number = hs.z + sphere.r; + if(this.center.x > sx || this.center.x < -sx || this.center.y > sy || this.center.y < -sy || this.center.z > sz || this.center.z < -sz) + { + return false; + } + if(this.center.x > hs.x) + { + this.§_-ZR§.x = hs.x; + } + else if(this.center.x < -hs.x) + { + this.§_-ZR§.x = -hs.x; + } + else + { + this.§_-ZR§.x = this.center.x; + } + if(this.center.y > hs.y) + { + this.§_-ZR§.y = hs.y; + } + else if(this.center.y < -hs.y) + { + this.§_-ZR§.y = -hs.y; + } + else + { + this.§_-ZR§.y = this.center.y; + } + if(this.center.z > hs.z) + { + this.§_-ZR§.z = hs.z; + } + else if(this.center.z < -hs.z) + { + this.§_-ZR§.z = -hs.z; + } + else + { + this.§_-ZR§.z = this.center.z; + } + var distSqr:Number = this.center.subtract(this.§_-ZR§).lengthSqr(); + return distSqr <= sphere.r * sphere.r; + } + } +} + diff --git a/src/alternativa/physics/collision/colliders/SphereSphereCollider.as b/src/alternativa/physics/collision/colliders/SphereSphereCollider.as new file mode 100644 index 0000000..e6498f0 --- /dev/null +++ b/src/alternativa/physics/collision/colliders/SphereSphereCollider.as @@ -0,0 +1,73 @@ +package alternativa.physics.collision.colliders +{ + import alternativa.math.Vector3; + import alternativa.physics.Contact; + import alternativa.physics.ContactPoint; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.ICollider; + import alternativa.physics.collision.primitives.CollisionSphere; + + public class SphereSphereCollider implements ICollider + { + private var p1:Vector3 = new Vector3(); + + private var p2:Vector3 = new Vector3(); + + public function SphereSphereCollider() + { + super(); + } + + public function getContact(prim1:CollisionPrimitive, prim2:CollisionPrimitive, contact:Contact) : Boolean + { + var s1:CollisionSphere = null; + var s2:CollisionSphere = null; + var dz:Number = NaN; + if(prim1.body != null) + { + s1 = prim1 as CollisionSphere; + s2 = prim2 as CollisionSphere; + } + else + { + s1 = prim2 as CollisionSphere; + s2 = prim1 as CollisionSphere; + } + s1.transform.getAxis(3,this.p1); + s2.transform.getAxis(3,this.p2); + var dx:Number = this.p1.x - this.p2.x; + var dy:Number = this.p1.y - this.p2.y; + dz = this.p1.z - this.p2.z; + var len:Number = dx * dx + dy * dy + dz * dz; + var sum:Number = s1.r + s2.r; + if(len > sum * sum) + { + return false; + } + len = Number(Math.sqrt(len)); + dx /= len; + dy /= len; + dz /= len; + contact.body1 = s1.body; + contact.body2 = s2.body; + contact.normal.x = dx; + contact.normal.y = dy; + contact.normal.z = dz; + contact.§_-P3§ = 1; + var cp:ContactPoint = contact.points[0]; + cp.penetration = sum - len; + cp.pos.x = this.p1.x - dx * s1.r; + cp.pos.y = this.p1.y - dy * s1.r; + cp.pos.z = this.p1.z - dz * s1.r; + cp.r1.diff(cp.pos,this.p1); + cp.r2.diff(cp.pos,this.p2); + return true; + } + + public function haveCollision(prim1:CollisionPrimitive, prim2:CollisionPrimitive) : Boolean + { + return false; + } + } +} + diff --git a/src/package_109/name_381.as b/src/alternativa/physics/collision/primitives/CollisionRect.as similarity index 72% rename from src/package_109/name_381.as rename to src/alternativa/physics/collision/primitives/CollisionRect.as index effd6cf..b6485a2 100644 --- a/src/package_109/name_381.as +++ b/src/alternativa/physics/collision/primitives/CollisionRect.as @@ -1,25 +1,25 @@ -package package_109 +package alternativa.physics.collision.primitives { - import package_46.Matrix4; - import package_46.name_194; - import package_76.name_235; - import package_90.name_386; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.types.BoundBox; - public class name_381 extends name_235 + public class CollisionRect extends CollisionPrimitive { private static const EPSILON:Number = 0.005; - public var hs:name_194 = new name_194(); + public var hs:Vector3 = new Vector3(); - public var var_572:Boolean = true; + public var §_-ng§:Boolean = true; - public function name_381(hs:name_194, collisionGroup:int, collisionMask:int) + public function CollisionRect(hs:Vector3, collisionGroup:int, collisionMask:int) { super(RECT,collisionGroup,collisionMask); this.hs.copy(hs); } - override public function calculateAABB() : name_386 + override public function calculateAABB() : BoundBox { var t:Matrix4 = null; t = transform; @@ -47,9 +47,9 @@ package package_109 return aabb; } - override public function copyFrom(source:name_235) : name_235 + override public function copyFrom(source:CollisionPrimitive) : CollisionPrimitive { - var rect:name_381 = source as name_381; + var rect:CollisionRect = source as CollisionRect; if(rect == null) { return this; @@ -64,12 +64,12 @@ package package_109 return "[CollisionRect hs=" + this.hs + "]"; } - override protected function createPrimitive() : name_235 + override protected function createPrimitive() : CollisionPrimitive { - return new name_381(this.hs,collisionGroup,collisionMask); + return new CollisionRect(this.hs,collisionGroup,collisionMask); } - override public function raycast(origin:name_194, vector:name_194, threshold:Number, normal:name_194) : Number + override public function raycast(origin:Vector3, vector:Vector3, threshold:Number, normal:Vector3) : Number { var t:Number = NaN; var vx:Number = origin.x - transform.d; diff --git a/src/package_109/name_767.as b/src/alternativa/physics/collision/primitives/CollisionSphere.as similarity index 58% rename from src/package_109/name_767.as rename to src/alternativa/physics/collision/primitives/CollisionSphere.as index 01654b2..82adf56 100644 --- a/src/package_109/name_767.as +++ b/src/alternativa/physics/collision/primitives/CollisionSphere.as @@ -1,20 +1,20 @@ -package package_109 +package alternativa.physics.collision.primitives { - import package_46.name_194; - import package_76.name_235; - import package_90.name_386; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.types.BoundBox; - public class name_767 extends name_235 + public class CollisionSphere extends CollisionPrimitive { public var r:Number = 0; - public function name_767(r:Number, collisionGroup:int, collisionMask:int) + public function CollisionSphere(r:Number, collisionGroup:int, collisionMask:int) { super(SPHERE,collisionGroup,collisionMask); this.r = r; } - override public function calculateAABB() : name_386 + override public function calculateAABB() : BoundBox { aabb.maxX = transform.d + this.r; aabb.minX = transform.d - this.r; @@ -25,7 +25,7 @@ package package_109 return aabb; } - override public function raycast(origin:name_194, vector:name_194, threshold:Number, normal:name_194) : Number + override public function raycast(origin:Vector3, vector:Vector3, threshold:Number, normal:Vector3) : Number { var px:Number = origin.x - transform.d; var py:Number = origin.y - transform.h; @@ -44,9 +44,9 @@ package package_109 return -(k + Math.sqrt(D)) / a; } - override public function copyFrom(source:name_235) : name_235 + override public function copyFrom(source:CollisionPrimitive) : CollisionPrimitive { - var sphere:name_767 = source as name_767; + var sphere:CollisionSphere = source as CollisionSphere; if(sphere == null) { return this; @@ -56,9 +56,9 @@ package package_109 return this; } - override protected function createPrimitive() : name_235 + override protected function createPrimitive() : CollisionPrimitive { - return new name_767(this.r,collisionGroup,collisionMask); + return new CollisionSphere(this.r,collisionGroup,collisionMask); } } } diff --git a/src/package_109/name_378.as b/src/alternativa/physics/collision/primitives/CollisionTriangle.as similarity index 79% rename from src/package_109/name_378.as rename to src/alternativa/physics/collision/primitives/CollisionTriangle.as index 7228041..dcd0e99 100644 --- a/src/package_109/name_378.as +++ b/src/alternativa/physics/collision/primitives/CollisionTriangle.as @@ -1,30 +1,30 @@ -package package_109 +package alternativa.physics.collision.primitives { - import package_46.name_194; - import package_76.name_235; - import package_90.name_386; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.types.BoundBox; - public class name_378 extends name_235 + public class CollisionTriangle extends CollisionPrimitive { - public var v0:name_194 = new name_194(); + public var v0:Vector3 = new Vector3(); - public var v1:name_194 = new name_194(); + public var v1:Vector3 = new Vector3(); - public var v2:name_194 = new name_194(); + public var v2:Vector3 = new Vector3(); - public var e0:name_194 = new name_194(); + public var e0:Vector3 = new Vector3(); - public var e1:name_194 = new name_194(); + public var e1:Vector3 = new Vector3(); - public var e2:name_194 = new name_194(); + public var e2:Vector3 = new Vector3(); - public function name_378(v0:name_194, v1:name_194, v2:name_194, collisionGroup:int, collisionMask:int) + public function CollisionTriangle(v0:Vector3, v1:Vector3, v2:Vector3, collisionGroup:int, collisionMask:int) { super(TRIANGLE,collisionGroup,collisionMask); - this.method_630(v0,v1,v2); + this.initVertices(v0,v1,v2); } - override public function calculateAABB() : name_386 + override public function calculateAABB() : BoundBox { var a:Number = NaN; var b:Number = NaN; @@ -193,7 +193,7 @@ package package_109 return aabb; } - override public function raycast(origin:name_194, vector:name_194, epsilon:Number, normal:name_194) : Number + override public function raycast(origin:Vector3, vector:Vector3, epsilon:Number, normal:Vector3) : Number { var t:Number = NaN; var vz:Number = vector.x * transform.c + vector.y * transform.g + vector.z * transform.k; @@ -225,10 +225,10 @@ package package_109 return t; } - override public function copyFrom(source:name_235) : name_235 + override public function copyFrom(source:CollisionPrimitive) : CollisionPrimitive { super.copyFrom(source); - var tri:name_378 = source as name_378; + var tri:CollisionTriangle = source as CollisionTriangle; if(tri != null) { this.v0.copy(tri.v0); @@ -246,21 +246,21 @@ package package_109 return "[CollisionTriangle v0=" + this.v0 + ", v1=" + this.v1 + ", v2=" + this.v2 + "]"; } - override protected function createPrimitive() : name_235 + override protected function createPrimitive() : CollisionPrimitive { - return new name_378(this.v0,this.v1,this.v2,collisionGroup,collisionMask); + return new CollisionTriangle(this.v0,this.v1,this.v2,collisionGroup,collisionMask); } - private function method_630(v0:name_194, v1:name_194, v2:name_194) : void + private function initVertices(v0:Vector3, v1:Vector3, v2:Vector3) : void { this.v0.copy(v0); this.v1.copy(v1); this.v2.copy(v2); - this.e0.method_366(v1,v0); + this.e0.diff(v1,v0); this.e0.normalize(); - this.e1.method_366(v2,v1); + this.e1.diff(v2,v1); this.e1.normalize(); - this.e2.method_366(v0,v2); + this.e2.diff(v0,v2); this.e2.normalize(); } } diff --git a/src/alternativa/physics/collision/types/RayHit.as b/src/alternativa/physics/collision/types/RayHit.as new file mode 100644 index 0000000..ba56cca --- /dev/null +++ b/src/alternativa/physics/collision/types/RayHit.as @@ -0,0 +1,30 @@ +package alternativa.physics.collision.types +{ + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + + public class RayHit + { + public var t:Number = 0; + + public var position:Vector3 = new Vector3(); + + public var normal:Vector3 = new Vector3(); + + public var primitive:CollisionPrimitive; + + public function RayHit() + { + super(); + } + + public function copy(source:RayHit) : void + { + this.t = source.t; + this.position.copy(source.position); + this.normal.copy(source.normal); + this.primitive = source.primitive; + } + } +} + diff --git a/src/alternativa/physics/constraints/Constraint.as b/src/alternativa/physics/constraints/Constraint.as new file mode 100644 index 0000000..b7f4ae2 --- /dev/null +++ b/src/alternativa/physics/constraints/Constraint.as @@ -0,0 +1,25 @@ +package alternativa.physics.constraints +{ + import alternativa.physics.PhysicsScene; + + public class Constraint + { + public var §_-CV§:Boolean; + + public var world:PhysicsScene; + + public function Constraint() + { + super(); + } + + public function preProcess(dt:Number) : void + { + } + + public function apply(dt:Number) : void + { + } + } +} + diff --git a/src/alternativa/protocol/CompressionType.as b/src/alternativa/protocol/CompressionType.as new file mode 100644 index 0000000..36a4aae --- /dev/null +++ b/src/alternativa/protocol/CompressionType.as @@ -0,0 +1,17 @@ +package alternativa.protocol +{ + public class CompressionType + { + public static var NONE:CompressionType = new CompressionType(); + + public static var DEFLATE:CompressionType = new CompressionType(); + + public static var DEFLATE_AUTO:CompressionType = new CompressionType(); + + public function CompressionType() + { + super(); + } + } +} + diff --git a/src/alternativa/protocol/ICodec.as b/src/alternativa/protocol/ICodec.as new file mode 100644 index 0000000..f7e81c4 --- /dev/null +++ b/src/alternativa/protocol/ICodec.as @@ -0,0 +1,12 @@ +package alternativa.protocol +{ + public interface ICodec + { + function init(param1:IProtocol) : void; + + function encode(param1:ProtocolBuffer, param2:Object) : void; + + function decode(param1:ProtocolBuffer) : Object; + } +} + diff --git a/src/alternativa/protocol/ICodecInfo.as b/src/alternativa/protocol/ICodecInfo.as new file mode 100644 index 0000000..eab60c5 --- /dev/null +++ b/src/alternativa/protocol/ICodecInfo.as @@ -0,0 +1,10 @@ +package alternativa.protocol +{ + public interface ICodecInfo + { + function isOptional() : Boolean; + + function toString() : String; + } +} + diff --git a/src/alternativa/protocol/IProtocol.as b/src/alternativa/protocol/IProtocol.as new file mode 100644 index 0000000..c7c64a8 --- /dev/null +++ b/src/alternativa/protocol/IProtocol.as @@ -0,0 +1,21 @@ +package alternativa.protocol +{ + import flash.utils.IDataInput; + import flash.utils.IDataOutput; + + public interface IProtocol + { + function registerCodec(param1:ICodecInfo, param2:ICodec) : void; + + function registerCodecForType(param1:Class, param2:ICodec) : void; + + function getCodec(param1:ICodecInfo) : ICodec; + + function makeCodecInfo(param1:Class) : ICodecInfo; + + function wrapPacket(param1:IDataOutput, param2:ProtocolBuffer, param3:CompressionType) : void; + + function unwrapPacket(param1:IDataInput, param2:ProtocolBuffer) : Boolean; + } +} + diff --git a/src/alternativa/protocol/OptionalMap.as b/src/alternativa/protocol/OptionalMap.as new file mode 100644 index 0000000..319f5bc --- /dev/null +++ b/src/alternativa/protocol/OptionalMap.as @@ -0,0 +1,128 @@ +package alternativa.protocol +{ + import flash.utils.ByteArray; + + public class OptionalMap + { + private var §_-bU§:int; + + private var size:int; + + private var map:ByteArray; + + public function OptionalMap(size:int = 0, source:ByteArray = null) + { + super(); + this.map = new ByteArray(); + if(source != null) + { + this.map.writeBytes(source,0,this.convertSize(size)); + } + this.size = size; + this.§_-bU§ = 0; + } + + public function getReadPosition() : int + { + return this.§_-bU§; + } + + public function setReadPosition(value:int) : void + { + this.§_-bU§ = value; + } + + public function reset() : void + { + this.§_-bU§ = 0; + } + + public function clear() : void + { + this.size = 0; + this.§_-bU§ = 0; + } + + public function addBit(isNull:Boolean) : void + { + this.setBit(this.size,isNull); + ++this.size; + } + + public function hasNextBit() : Boolean + { + return this.§_-bU§ < this.size; + } + + public function OptionalMap() : Boolean + { + if(this.§_-bU§ >= this.size) + { + throw new Error("Index out of bounds: " + this.§_-bU§); + } + var res:Boolean = this.getBit(this.§_-bU§); + ++this.§_-bU§; + return res; + } + + public function getMap() : ByteArray + { + return this.map; + } + + public function getSize() : int + { + return this.size; + } + + private function getBit(position:int) : Boolean + { + var targetByte:int = position >> 3; + var targetBit:int = 7 ^ position & 7; + this.map.position = targetByte; + return (this.map.readByte() & 1 << targetBit) != 0; + } + + private function setBit(position:int, value:Boolean) : void + { + var targetByte:int = position >> 3; + var targetBit:int = 7 ^ position & 7; + this.map.position = targetByte; + if(value) + { + this.map.writeByte(int(this.map[targetByte] | 1 << targetBit)); + } + else + { + this.map.writeByte(int(this.map[targetByte] & (0xFF ^ 1 << targetBit))); + } + } + + private function convertSize(sizeInBits:int) : int + { + var i:int = sizeInBits >> 3; + var add:int = (sizeInBits & 7) == 0 ? 0 : 1; + return i + add; + } + + public function toString() : String + { + var result:String = "readPosition: " + this.§_-bU§ + " size:" + this.getSize() + " mask:"; + var _readPosition:int = this.§_-bU§; + for(var i:int = this.§_-bU§; i < this.getSize(); i++) + { + result += this.OptionalMap() ? "1" : "0"; + } + this.§_-bU§ = _readPosition; + return result; + } + + public function clone() : alternativa.protocol.OptionalMap + { + var map:alternativa.protocol.OptionalMap = new alternativa.protocol.OptionalMap(this.size,this.map); + map.§_-bU§ = this.§_-bU§; + return map; + } + } +} + diff --git a/src/package_36/name_442.as b/src/alternativa/protocol/ProtocolBuffer.as similarity index 66% rename from src/package_36/name_442.as rename to src/alternativa/protocol/ProtocolBuffer.as index a7030d6..24a6b56 100644 --- a/src/package_36/name_442.as +++ b/src/alternativa/protocol/ProtocolBuffer.as @@ -1,53 +1,53 @@ -package package_36 +package alternativa.protocol { import flash.utils.ByteArray; import flash.utils.IDataInput; import flash.utils.IDataOutput; - public class name_442 + public class ProtocolBuffer { - private var var_587:IDataOutput; + private var §_-R§:IDataOutput; - private var var_586:IDataInput; + private var §_-ch§:IDataInput; - private var var_588:name_648; + private var §_-7s§:OptionalMap; - public function name_442(output:IDataOutput, input:IDataInput, optionalMap:name_648) + public function ProtocolBuffer(output:IDataOutput, input:IDataInput, optionalMap:OptionalMap) { super(); - this.var_587 = output; - this.var_586 = input; - this.var_588 = optionalMap; + this.§_-R§ = output; + this.§_-ch§ = input; + this.§_-7s§ = optionalMap; } - public function get name_483() : IDataOutput + public function get writer() : IDataOutput { - return this.var_587; + return this.§_-R§; } - public function set name_483(value:IDataOutput) : void + public function set writer(value:IDataOutput) : void { - this.var_587 = value; + this.§_-R§ = value; } public function get reader() : IDataInput { - return this.var_586; + return this.§_-ch§; } public function set reader(value:IDataInput) : void { - this.var_586 = value; + this.§_-ch§ = value; } - public function get optionalMap() : name_648 + public function get optionalMap() : OptionalMap { - return this.var_588; + return this.§_-7s§; } - public function set optionalMap(value:name_648) : void + public function set optionalMap(value:OptionalMap) : void { - this.var_588 = value; + this.§_-7s§ = value; } public function toString() : String diff --git a/src/alternativa/protocol/codec/OptionalCodecDecorator.as b/src/alternativa/protocol/codec/OptionalCodecDecorator.as new file mode 100644 index 0000000..6ad934a --- /dev/null +++ b/src/alternativa/protocol/codec/OptionalCodecDecorator.as @@ -0,0 +1,48 @@ +package alternativa.protocol.codec +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.codec.primitive.IPrimitiveCodec; + + public class OptionalCodecDecorator implements ICodec + { + private var codec:ICodec; + + private var §_-In§:Object; + + public function OptionalCodecDecorator(codec:ICodec) + { + super(); + this.codec = codec; + if(codec is IPrimitiveCodec) + { + this.§_-In§ = IPrimitiveCodec(codec).nullValue(); + } + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + if(object == this.§_-In§) + { + protocolBuffer.optionalMap.addBit(true); + } + else + { + protocolBuffer.optionalMap.addBit(false); + this.codec.encode(protocolBuffer,object); + } + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.optionalMap.OptionalMap() ? this.§_-In§ : this.codec.decode(protocolBuffer); + } + + public function init(protocol:IProtocol) : void + { + this.codec.init(protocol); + } + } +} + diff --git a/src/alternativa/protocol/codec/complex/ByteArrayCodec.as b/src/alternativa/protocol/codec/complex/ByteArrayCodec.as new file mode 100644 index 0000000..fb15745 --- /dev/null +++ b/src/alternativa/protocol/codec/complex/ByteArrayCodec.as @@ -0,0 +1,36 @@ +package alternativa.protocol.codec.complex +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.impl.LengthCodecHelper; + import flash.utils.ByteArray; + + public class ByteArrayCodec implements ICodec + { + public function ByteArrayCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var bytes:ByteArray = ByteArray(object); + LengthCodecHelper.encodeLength(protocolBuffer,bytes.length); + protocolBuffer.writer.writeBytes(bytes); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var size:int = LengthCodecHelper.decodeLength(protocolBuffer); + var bytes:ByteArray = new ByteArray(); + protocolBuffer.reader.readBytes(bytes,0,size); + return bytes; + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/complex/StringCodec.as b/src/alternativa/protocol/codec/complex/StringCodec.as new file mode 100644 index 0000000..924a180 --- /dev/null +++ b/src/alternativa/protocol/codec/complex/StringCodec.as @@ -0,0 +1,36 @@ +package alternativa.protocol.codec.complex +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.protocol.impl.LengthCodecHelper; + import flash.utils.ByteArray; + + public class StringCodec implements ICodec + { + public function StringCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + var bytes:ByteArray = new ByteArray(); + bytes.writeUTFBytes(String(object)); + var length:int = int(bytes.length); + LengthCodecHelper.encodeLength(protocolBuffer,length); + protocolBuffer.writer.writeBytes(bytes,0,length); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + var length:int = LengthCodecHelper.decodeLength(protocolBuffer); + return protocolBuffer.reader.readUTFBytes(length); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/BooleanCodec.as b/src/alternativa/protocol/codec/primitive/BooleanCodec.as new file mode 100644 index 0000000..843ebdd --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/BooleanCodec.as @@ -0,0 +1,29 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class BooleanCodec implements ICodec + { + public function BooleanCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeByte(!!Boolean(object) ? int(int(1)) : int(int(0))); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readByte() != 0; + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/ByteCodec.as b/src/alternativa/protocol/codec/primitive/ByteCodec.as new file mode 100644 index 0000000..75fef74 --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/ByteCodec.as @@ -0,0 +1,33 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class ByteCodec implements IPrimitiveCodec + { + public function ByteCodec() + { + super(); + } + + public function nullValue() : Object + { + return int.MAX_VALUE; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeByte(int(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readByte(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/DoubleCodec.as b/src/alternativa/protocol/codec/primitive/DoubleCodec.as new file mode 100644 index 0000000..16e16dc --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/DoubleCodec.as @@ -0,0 +1,33 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class DoubleCodec implements IPrimitiveCodec + { + public function DoubleCodec() + { + super(); + } + + public function nullValue() : Object + { + return Number.NEGATIVE_INFINITY; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeDouble(Number(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readDouble(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/FloatCodec.as b/src/alternativa/protocol/codec/primitive/FloatCodec.as new file mode 100644 index 0000000..6c91e84 --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/FloatCodec.as @@ -0,0 +1,33 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class FloatCodec implements IPrimitiveCodec + { + public function FloatCodec() + { + super(); + } + + public function nullValue() : Object + { + return Number.NEGATIVE_INFINITY; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeFloat(Number(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readFloat(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as b/src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as new file mode 100644 index 0000000..018d56c --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as @@ -0,0 +1,10 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.ICodec; + + public interface IPrimitiveCodec extends ICodec + { + function nullValue() : Object; + } +} + diff --git a/src/alternativa/protocol/codec/primitive/IntCodec.as b/src/alternativa/protocol/codec/primitive/IntCodec.as new file mode 100644 index 0000000..7e807ed --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/IntCodec.as @@ -0,0 +1,33 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class IntCodec implements IPrimitiveCodec + { + public function IntCodec() + { + super(); + } + + public function nullValue() : Object + { + return int.MIN_VALUE; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeInt(int(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readInt(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/LongCodec.as b/src/alternativa/protocol/codec/primitive/LongCodec.as new file mode 100644 index 0000000..615652c --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/LongCodec.as @@ -0,0 +1,31 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + import alternativa.types.Long; + + public class LongCodec implements ICodec + { + public function LongCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeInt(Long(object).high); + protocolBuffer.writer.writeInt(Long(object).low); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return Long.getLong(protocolBuffer.reader.readInt(),protocolBuffer.reader.readInt()); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/ShortCodec.as b/src/alternativa/protocol/codec/primitive/ShortCodec.as new file mode 100644 index 0000000..affe592 --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/ShortCodec.as @@ -0,0 +1,33 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class ShortCodec implements IPrimitiveCodec + { + public function ShortCodec() + { + super(); + } + + public function nullValue() : Object + { + return int.MIN_VALUE; + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeShort(int(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readShort(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/UByteCodec.as b/src/alternativa/protocol/codec/primitive/UByteCodec.as new file mode 100644 index 0000000..30c2792 --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/UByteCodec.as @@ -0,0 +1,29 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class UByteCodec implements ICodec + { + public function UByteCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeUnsignedInt(uint(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readUnsignedByte(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/UIntCodec.as b/src/alternativa/protocol/codec/primitive/UIntCodec.as new file mode 100644 index 0000000..fb57d29 --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/UIntCodec.as @@ -0,0 +1,29 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class UIntCodec implements ICodec + { + public function UIntCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + protocolBuffer.writer.writeUnsignedInt(uint(object)); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readUnsignedInt(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/codec/primitive/UShortCodec.as b/src/alternativa/protocol/codec/primitive/UShortCodec.as new file mode 100644 index 0000000..5954b3a --- /dev/null +++ b/src/alternativa/protocol/codec/primitive/UShortCodec.as @@ -0,0 +1,29 @@ +package alternativa.protocol.codec.primitive +{ + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.ProtocolBuffer; + + public class UShortCodec implements ICodec + { + public function UShortCodec() + { + super(); + } + + public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void + { + throw new Error("Not implemented"); + } + + public function decode(protocolBuffer:ProtocolBuffer) : Object + { + return protocolBuffer.reader.readUnsignedShort(); + } + + public function init(protocol:IProtocol) : void + { + } + } +} + diff --git a/src/alternativa/protocol/impl/LengthCodecHelper.as b/src/alternativa/protocol/impl/LengthCodecHelper.as new file mode 100644 index 0000000..9c0fe51 --- /dev/null +++ b/src/alternativa/protocol/impl/LengthCodecHelper.as @@ -0,0 +1,64 @@ +package alternativa.protocol.impl +{ + import alternativa.protocol.ProtocolBuffer; + + public class LengthCodecHelper + { + public function LengthCodecHelper() + { + super(); + } + + public static function encodeLength(protocolBuffer:ProtocolBuffer, length:int) : void + { + var tmp:Number = NaN; + if(length < 0) + { + throw new Error("Length is incorrect (" + length + ")"); + } + if(length < 128) + { + protocolBuffer.writer.writeByte(int(length & 0x7F)); + } + else if(length < 16384) + { + tmp = (length & 0x3FFF) + 32768; + protocolBuffer.writer.writeByte(int((tmp & 0xFF00) >> 8)); + protocolBuffer.writer.writeByte(int(tmp & 0xFF)); + } + else + { + if(length >= 4194304) + { + throw new Error("Length is incorrect (" + length + ")"); + } + tmp = (length & 0x3FFFFF) + 12582912; + protocolBuffer.writer.writeByte(int((tmp & 0xFF0000) >> 16)); + protocolBuffer.writer.writeByte(int((tmp & 0xFF00) >> 8)); + protocolBuffer.writer.writeByte(int(tmp & 0xFF)); + } + } + + public static function decodeLength(protocolBuffer:ProtocolBuffer) : int + { + var _loc4_:int = 0; + var _loc5_:Boolean = false; + var _loc6_:int = 0; + var firstByte:int = int(protocolBuffer.reader.readByte()); + var singleByte:Boolean = (firstByte & 0x80) == 0; + if(singleByte) + { + return firstByte; + } + _loc4_ = int(protocolBuffer.reader.readByte()); + _loc5_ = (firstByte & 0x40) == 0; + if(_loc5_) + { + return ((firstByte & 0x3F) << 8) + (_loc4_ & 0xFF); + } + _loc6_ = int(protocolBuffer.reader.readByte()); + return ((firstByte & 0x3F) << 16) + ((_loc4_ & 0xFF) << 8) + (_loc6_ & 0xFF); + } + } +} + diff --git a/src/package_38/name_453.as b/src/alternativa/protocol/impl/OptionalMapCodecHelper.as similarity index 82% rename from src/package_38/name_453.as rename to src/alternativa/protocol/impl/OptionalMapCodecHelper.as index 8e4cbd8..fd0fb5f 100644 --- a/src/package_38/name_453.as +++ b/src/alternativa/protocol/impl/OptionalMapCodecHelper.as @@ -1,10 +1,10 @@ -package package_38 +package alternativa.protocol.impl { + import alternativa.protocol.OptionalMap; import flash.utils.ByteArray; import flash.utils.IDataInput; - import package_36.name_648; - public class name_453 + public class OptionalMapCodecHelper { private static const INPLACE_MASK_FLAG:int = 128; @@ -20,20 +20,20 @@ package package_38 private static const MASK_LEGTH_3_BYTE:int = 12582912; - public function name_453() + public function OptionalMapCodecHelper() { super(); } - public static function name_455(nullMap:name_648) : ByteArray + public static function encodeNullMap(nullMap:OptionalMap) : ByteArray { var sizeInBytes:int = 0; var firstByte:int = 0; var sizeEncoded:int = 0; var secondByte:int = 0; var thirdByte:int = 0; - var nullMapSize:int = nullMap.name_650(); - var map:ByteArray = nullMap.name_649(); + var nullMapSize:int = nullMap.getSize(); + var map:ByteArray = nullMap.getMap(); var res:ByteArray = new ByteArray(); if(nullMapSize <= 5) { @@ -85,7 +85,7 @@ package package_38 throw new Error("NullMap overflow"); } - public static function name_454(reader:IDataInput) : name_648 + public static function decodeNullMap(reader:IDataInput) : OptionalMap { var maskLength:int = 0; var firstByteValue:int = 0; @@ -93,7 +93,7 @@ package package_38 var sizeInBits:int = 0; var secondByte:int = 0; var thirdByte:int = 0; - var fourthByte:int = 0; + var _loc11_:int = 0; var mask:ByteArray = new ByteArray(); var firstByte:int = int(reader.readByte()); var isLongNullMap:Boolean = (firstByte & INPLACE_MASK_FLAG) != 0; @@ -113,7 +113,7 @@ package package_38 } reader.readBytes(mask,0,maskLength); sizeInBits = maskLength << 3; - return new name_648(sizeInBits,mask); + return new OptionalMap(sizeInBits,mask); } firstByteValue = int(int(firstByte << 3)); maskLength = int(int((firstByte & 0x60) >> 5)); @@ -121,28 +121,28 @@ package package_38 { case 0: mask.writeByte(firstByteValue); - return new name_648(5,mask); + return new OptionalMap(5,mask); case 1: secondByte = int(reader.readByte()); mask.writeByte(int(firstByteValue + ((secondByte & 0xFF) >>> 5))); mask.writeByte(int(secondByte << 3)); - return new name_648(13,mask); + return new OptionalMap(13,mask); case 2: secondByte = int(reader.readByte()); thirdByte = int(reader.readByte()); mask.writeByte(int(firstByteValue + ((secondByte & 0xFF) >>> 5))); mask.writeByte(int((secondByte << 3) + ((thirdByte & 0xFF) >>> 5))); mask.writeByte(int(thirdByte << 3)); - return new name_648(21,mask); + return new OptionalMap(21,mask); case 3: secondByte = int(reader.readByte()); thirdByte = int(reader.readByte()); - fourthByte = int(reader.readByte()); + _loc11_ = int(reader.readByte()); mask.writeByte(int(firstByteValue + ((secondByte & 0xFF) >>> 5))); mask.writeByte(int((secondByte << 3) + ((thirdByte & 0xFF) >>> 5))); - mask.writeByte(int((thirdByte << 3) + ((fourthByte & 0xFF) >>> 5))); - mask.writeByte(int(fourthByte << 3)); - return new name_648(29,mask); + mask.writeByte(int((thirdByte << 3) + ((_loc11_ & 0xFF) >>> 5))); + mask.writeByte(int(_loc11_ << 3)); + return new OptionalMap(29,mask); default: return null; } diff --git a/src/package_38/name_162.as b/src/alternativa/protocol/impl/PacketHelper.as similarity index 75% rename from src/package_38/name_162.as rename to src/alternativa/protocol/impl/PacketHelper.as index ab1fc34..d351646 100644 --- a/src/package_38/name_162.as +++ b/src/alternativa/protocol/impl/PacketHelper.as @@ -1,17 +1,17 @@ -package package_38 +package alternativa.protocol.impl { + import alternativa.osgi.OSGi; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.CompressionType; + import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import flash.utils.IDataInput; import flash.utils.IDataOutput; - import package_36.name_442; - import package_36.name_449; - import package_39.name_160; - import alternativa.osgi.OSGi; - public class name_162 + public class PacketHelper { [Inject] - public static var clientLog:name_160; + public static var clientLog:IClientLog; private static const LOG_CHANNEL:String = "protocol"; @@ -25,12 +25,12 @@ package package_38 private static const BIG_LENGTH_FLAG:int = 128; - public function name_162() + public function PacketHelper() { super(); } - public static function method_303(source:IDataInput, dest:name_442) : Boolean + public static function unwrapPacket(source:IDataInput, dest:ProtocolBuffer) : Boolean { var isZipped:Boolean = false; var packetSize:int = 0; @@ -79,7 +79,7 @@ package package_38 } clientLog.log(LOG_CHANNEL,"Packet::unwrapPacket() source (size=%1, compressed=%2)\n%3\n",packetSize,isZipped,bytesToString(data,0,data.length,6)); data.position = 0; - dest.optionalMap = name_453.name_454(data); + dest.optionalMap = OptionalMapCodecHelper.decodeNullMap(data); var destByteArray:ByteArray = new ByteArray(); dest.reader = destByteArray; destByteArray.writeBytes(data,data.position,data.length - data.position); @@ -88,29 +88,29 @@ package package_38 return true; } - public static function method_305(dst:IDataOutput, source:name_442, compressionType:name_449) : void + public static function wrapPacket(dst:IDataOutput, source:ProtocolBuffer, compressionType:CompressionType) : void { var sizeToWrite:int = 0; - var hiByte:int = 0; - var loByte:int = 0; + var _loc10_:int = 0; + var _loc11_:int = 0; var zipped:Boolean = false; switch(compressionType) { - case name_449.NONE: + case CompressionType.NONE: break; - case name_449.DEFLATE: + case CompressionType.DEFLATE: zipped = true; break; - case name_449.DEFLATE_AUTO: - zipped = method_307(source.reader); + case CompressionType.DEFLATE_AUTO: + zipped = determineZipped(source.reader); } var toWrap:ByteArray = new ByteArray(); - var encodedNullmap:ByteArray = name_453.name_455(source.optionalMap); + var encodedNullmap:ByteArray = OptionalMapCodecHelper.encodeNullMap(source.optionalMap); encodedNullmap.position = 0; toWrap.writeBytes(encodedNullmap); source.reader.readBytes(toWrap,toWrap.position,source.reader.bytesAvailable); toWrap.position = 0; - var longSize:Boolean = method_306(toWrap); + var longSize:Boolean = isLongSize(toWrap); if(zipped) { toWrap.compress(); @@ -127,30 +127,30 @@ package package_38 } else { - hiByte = int(int(((length & 0xFF00) >> 8) + (zipped ? ZIPPED_FLAG : 0))); - loByte = int(int(length & 0xFF)); - dst.writeByte(hiByte); - dst.writeByte(loByte); + _loc10_ = int(int(((length & 0xFF00) >> 8) + (zipped ? ZIPPED_FLAG : 0))); + _loc11_ = int(int(length & 0xFF)); + dst.writeByte(_loc10_); + dst.writeByte(_loc11_); } dst.writeBytes(toWrap,0,length); clientLog.log("protocol","packet length " + length); } - private static function method_306(reader:IDataInput) : Boolean + private static function isLongSize(reader:IDataInput) : Boolean { return reader.bytesAvailable >= LONG_SIZE_DELIMITER || reader.bytesAvailable == -1; } - private static function method_307(reader:IDataInput) : Boolean + private static function determineZipped(reader:IDataInput) : Boolean { return reader.bytesAvailable == -1 || reader.bytesAvailable > ZIP_PACKET_SIZE_DELIMITER; } - private static function method_308() : name_160 + private static function getClientLog() : IClientLog { if(clientLog == null) { - clientLog = name_160(OSGi.name_8().name_30(name_160)); + clientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); } return clientLog; } diff --git a/src/alternativa/protocol/impl/Protocol.as b/src/alternativa/protocol/impl/Protocol.as new file mode 100644 index 0000000..ef84765 --- /dev/null +++ b/src/alternativa/protocol/impl/Protocol.as @@ -0,0 +1,110 @@ +package alternativa.protocol.impl +{ + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.*; + import alternativa.protocol.codec.OptionalCodecDecorator; + import alternativa.protocol.codec.complex.ByteArrayCodec; + import alternativa.protocol.codec.complex.StringCodec; + import alternativa.protocol.codec.primitive.BooleanCodec; + import alternativa.protocol.codec.primitive.ByteCodec; + import alternativa.protocol.codec.primitive.DoubleCodec; + import alternativa.protocol.codec.primitive.FloatCodec; + import alternativa.protocol.codec.primitive.IntCodec; + import alternativa.protocol.codec.primitive.LongCodec; + import alternativa.protocol.codec.primitive.ShortCodec; + import alternativa.protocol.codec.primitive.UIntCodec; + import alternativa.protocol.codec.primitive.UShortCodec; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Byte; + import alternativa.types.Float; + import alternativa.types.Long; + import alternativa.types.Short; + import alternativa.types.UShort; + import flash.utils.ByteArray; + import flash.utils.Dictionary; + import flash.utils.IDataInput; + import flash.utils.IDataOutput; + + public class Protocol implements IProtocol + { + [Inject] + public static var clientLog:IClientLog; + + private static const LOG_CHANNEL:String = "protocol"; + + public static var defaultInstance:IProtocol = new Protocol(); + + private var §_-5c§:Object = new Object(); + + private var §_-RY§:Dictionary = new Dictionary(false); + + public function Protocol() + { + super(); + this.registerCodec(new TypeCodecInfo(int,false),new IntCodec()); + this.registerCodec(new TypeCodecInfo(Short,false),new ShortCodec()); + this.registerCodec(new TypeCodecInfo(Byte,false),new ByteCodec()); + this.registerCodec(new TypeCodecInfo(UShort,false),new UShortCodec()); + this.registerCodec(new TypeCodecInfo(uint,false),new UIntCodec()); + this.registerCodec(new TypeCodecInfo(Number,false),new DoubleCodec()); + this.registerCodec(new TypeCodecInfo(Float,false),new FloatCodec()); + this.registerCodec(new TypeCodecInfo(Boolean,false),new BooleanCodec()); + this.registerCodec(new TypeCodecInfo(Long,false),new LongCodec()); + this.registerCodec(new TypeCodecInfo(String,false),new StringCodec()); + this.registerCodec(new TypeCodecInfo(ByteArray,false),new ByteArrayCodec()); + this.registerCodec(new TypeCodecInfo(int,true),new OptionalCodecDecorator(new IntCodec())); + this.registerCodec(new TypeCodecInfo(Short,true),new OptionalCodecDecorator(new ShortCodec())); + this.registerCodec(new TypeCodecInfo(Byte,true),new OptionalCodecDecorator(new ByteCodec())); + this.registerCodec(new TypeCodecInfo(UShort,true),new OptionalCodecDecorator(new UShortCodec())); + this.registerCodec(new TypeCodecInfo(uint,true),new OptionalCodecDecorator(new UIntCodec())); + this.registerCodec(new TypeCodecInfo(Number,true),new OptionalCodecDecorator(new DoubleCodec())); + this.registerCodec(new TypeCodecInfo(Float,true),new OptionalCodecDecorator(new FloatCodec())); + this.registerCodec(new TypeCodecInfo(Boolean,true),new OptionalCodecDecorator(new BooleanCodec())); + this.registerCodec(new TypeCodecInfo(Long,true),new OptionalCodecDecorator(new LongCodec())); + this.registerCodec(new TypeCodecInfo(String,true),new OptionalCodecDecorator(new StringCodec())); + this.registerCodec(new TypeCodecInfo(ByteArray,true),new OptionalCodecDecorator(new ByteArrayCodec())); + } + + public function registerCodec(codecInfo:ICodecInfo, codec:ICodec) : void + { + this.§_-5c§[codecInfo] = codec; + } + + public function registerCodecForType(type:Class, codec:ICodec) : void + { + this.§_-5c§[new TypeCodecInfo(type,false)] = codec; + this.§_-5c§[new TypeCodecInfo(type,true)] = new OptionalCodecDecorator(codec); + } + + public function getCodec(codecInfo:ICodecInfo) : ICodec + { + var result:ICodec = this.§_-5c§[codecInfo]; + if(result == null) + { + throw Error("Codec not found for " + codecInfo); + } + if(this.§_-RY§[result] == null) + { + result.init(this); + this.§_-RY§[result] = result; + } + return result; + } + + public function makeCodecInfo(type:Class) : ICodecInfo + { + return new TypeCodecInfo(type,false); + } + + public function wrapPacket(dest:IDataOutput, source:ProtocolBuffer, compressionType:CompressionType) : void + { + PacketHelper.wrapPacket(dest,source,compressionType); + } + + public function unwrapPacket(source:IDataInput, dest:ProtocolBuffer) : Boolean + { + return PacketHelper.unwrapPacket(source,dest); + } + } +} + diff --git a/src/package_32/class_20.as b/src/alternativa/protocol/info/CodecInfo.as similarity index 56% rename from src/package_32/class_20.as rename to src/alternativa/protocol/info/CodecInfo.as index 94c66dc..c915612 100644 --- a/src/package_32/class_20.as +++ b/src/alternativa/protocol/info/CodecInfo.as @@ -1,18 +1,18 @@ -package package_32 +package alternativa.protocol.info { - import package_36.class_19; + import alternativa.protocol.ICodecInfo; - public class class_20 implements class_19 + public class CodecInfo implements ICodecInfo { private var optional:Boolean; - public function class_20(optional:Boolean) + public function CodecInfo(optional:Boolean) { super(); this.optional = optional; } - public function method_297() : Boolean + public function isOptional() : Boolean { return this.optional; } diff --git a/src/alternativa/protocol/info/CollectionCodecInfo.as b/src/alternativa/protocol/info/CollectionCodecInfo.as new file mode 100644 index 0000000..546871a --- /dev/null +++ b/src/alternativa/protocol/info/CollectionCodecInfo.as @@ -0,0 +1,34 @@ +package alternativa.protocol.info +{ + import alternativa.protocol.ICodecInfo; + + public class CollectionCodecInfo extends CodecInfo + { + private var §_-jo§:ICodecInfo; + + private var §_-fp§:int; + + public function CollectionCodecInfo(elementCodec:ICodecInfo, optional:Boolean, level:int) + { + super(optional); + this.§_-jo§ = elementCodec; + this.§_-fp§ = level; + } + + public function get level() : int + { + return this.§_-fp§; + } + + public function get elementCodec() : ICodecInfo + { + return this.§_-jo§; + } + + override public function toString() : String + { + return "[CollectionCodecInfo " + super.toString() + " element=" + this.elementCodec.toString() + " level=" + this.level + "]"; + } + } +} + diff --git a/src/package_32/name_209.as b/src/alternativa/protocol/info/EnumCodecInfo.as similarity index 56% rename from src/package_32/name_209.as rename to src/alternativa/protocol/info/EnumCodecInfo.as index 68bedc8..b07e6f8 100644 --- a/src/package_32/name_209.as +++ b/src/alternativa/protocol/info/EnumCodecInfo.as @@ -1,8 +1,8 @@ -package package_32 +package alternativa.protocol.info { - public class name_209 extends name_148 + public class EnumCodecInfo extends TypeCodecInfo { - public function name_209(type:Class, optional:Boolean) + public function EnumCodecInfo(type:Class, optional:Boolean) { super(type,optional); } diff --git a/src/package_32/name_148.as b/src/alternativa/protocol/info/TypeCodecInfo.as similarity index 56% rename from src/package_32/name_148.as rename to src/alternativa/protocol/info/TypeCodecInfo.as index d806de4..78fd457 100644 --- a/src/package_32/name_148.as +++ b/src/alternativa/protocol/info/TypeCodecInfo.as @@ -1,20 +1,20 @@ -package package_32 +package alternativa.protocol.info { import flash.utils.getQualifiedClassName; - public class name_148 extends class_20 + public class TypeCodecInfo extends CodecInfo { - private var var_184:Class; + private var §_-hx§:Class; - public function name_148(type:Class, optional:Boolean) + public function TypeCodecInfo(type:Class, optional:Boolean) { super(optional); - this.var_184 = type; + this.§_-hx§ = type; } public function get type() : Class { - return this.var_184; + return this.§_-hx§; } override public function toString() : String diff --git a/src/alternativa/protocol/osgi/ProtocolActivator.as b/src/alternativa/protocol/osgi/ProtocolActivator.as index 23cef60..8f2a9ac 100644 --- a/src/alternativa/protocol/osgi/ProtocolActivator.as +++ b/src/alternativa/protocol/osgi/ProtocolActivator.as @@ -1,26 +1,26 @@ package alternativa.protocol.osgi { - import package_31.class_6; - import package_33.name_153; - import package_33.name_154; - import package_33.name_155; - import package_33.name_156; - import package_33.name_157; - import package_33.name_158; - import package_36.name_163; - import package_38.name_159; import alternativa.osgi.OSGi; - import package_70.name_224; - import package_70.name_225; - import package_70.name_226; - import package_70.name_227; - import package_70.name_228; - import package_70.name_229; - import package_70.name_230; - import package_70.name_231; - import package_70.name_232; + import alternativa.osgi.bundle.IBundleActivator; + import alternativa.protocol.IProtocol; + import alternativa.protocol.codec.primitive.ByteCodec; + import alternativa.protocol.codec.primitive.DoubleCodec; + import alternativa.protocol.codec.primitive.FloatCodec; + import alternativa.protocol.codec.primitive.IntCodec; + import alternativa.protocol.codec.primitive.LongCodec; + import alternativa.protocol.codec.primitive.ShortCodec; + import alternativa.protocol.codec.primitive.UByteCodec; + import alternativa.protocol.codec.primitive.UIntCodec; + import alternativa.protocol.codec.primitive.UShortCodec; + import alternativa.protocol.impl.Protocol; + import alternativa.types.Byte; + import alternativa.types.Float; + import alternativa.types.Long; + import alternativa.types.Short; + import alternativa.types.UByte; + import alternativa.types.UShort; - public class ProtocolActivator implements class_6 + public class ProtocolActivator implements IBundleActivator { public function ProtocolActivator() { @@ -29,17 +29,17 @@ package alternativa.protocol.osgi public function start(osgi:OSGi) : void { - var protocol:name_163 = name_159.defaultInstance; - osgi.method_116(name_163,protocol); - protocol.name_223(name_154,new name_225()); - protocol.name_223(name_157,new name_226()); - protocol.name_223(name_155,new name_227()); - protocol.name_223(name_158,new name_224()); - protocol.name_223(name_153,new name_229()); - protocol.name_223(name_156,new name_230()); - protocol.name_223(uint,new name_228()); - protocol.name_223(int,new name_232()); - protocol.name_223(Number,new name_231()); + var protocol:IProtocol = Protocol.defaultInstance; + osgi.registerService(IProtocol,protocol); + protocol.registerCodecForType(Byte,new ByteCodec()); + protocol.registerCodecForType(Float,new FloatCodec()); + protocol.registerCodecForType(Long,new LongCodec()); + protocol.registerCodecForType(Short,new ShortCodec()); + protocol.registerCodecForType(UByte,new UByteCodec()); + protocol.registerCodecForType(UShort,new UShortCodec()); + protocol.registerCodecForType(uint,new UIntCodec()); + protocol.registerCodecForType(int,new IntCodec()); + protocol.registerCodecForType(Number,new DoubleCodec()); } public function stop(osgi:OSGi) : void diff --git a/src/alternativa/startup/IClientConfigurator.as b/src/alternativa/startup/IClientConfigurator.as index 2156b0c..7d587b8 100644 --- a/src/alternativa/startup/IClientConfigurator.as +++ b/src/alternativa/startup/IClientConfigurator.as @@ -1,7 +1,7 @@ package alternativa.startup { - import flash.display.DisplayObjectContainer; import alternativa.utils.Properties; + import flash.display.DisplayObjectContainer; public interface IClientConfigurator { diff --git a/src/alternativa/startup/LibraryInfo.as b/src/alternativa/startup/LibraryInfo.as index 59e5791..05dacf0 100644 --- a/src/alternativa/startup/LibraryInfo.as +++ b/src/alternativa/startup/LibraryInfo.as @@ -1,7 +1,7 @@ package alternativa.startup { - import flash.display.Loader; import alternativa.utils.Properties; + import flash.display.Loader; public class LibraryInfo { diff --git a/src/alternativa/tanks/ITextureResourceService.as b/src/alternativa/tanks/ITextureResourceService.as index 3ce0380..2829f95 100644 --- a/src/alternativa/tanks/ITextureResourceService.as +++ b/src/alternativa/tanks/ITextureResourceService.as @@ -1,17 +1,17 @@ package alternativa.tanks { + import alternativa.engine3d.resources.ATFTextureResource; + import alternativa.engine3d.resources.BitmapTextureResource; import flash.display.BitmapData; import flash.utils.ByteArray; - import package_28.name_241; - import package_28.name_93; public interface ITextureResourceService { - function getCompressedTextureResource(param1:ByteArray) : name_241; + function getCompressedTextureResource(param1:ByteArray) : ATFTextureResource; function releaseCompressedTextureResource(param1:ByteArray) : void; - function getBitmapTextureResource(param1:BitmapData) : name_93; + function getBitmapTextureResource(param1:BitmapData) : BitmapTextureResource; function releaseBitmapTextureResource(param1:BitmapData) : void; } diff --git a/src/alternativa/tanks/InitBattleTask.as b/src/alternativa/tanks/InitBattleTask.as deleted file mode 100644 index 666c3ce..0000000 --- a/src/alternativa/tanks/InitBattleTask.as +++ /dev/null @@ -1,92 +0,0 @@ -package alternativa.tanks -{ - import flash.display.DisplayObjectContainer; - import alternativa.tanks.game.GameTask; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.Entity; - import alternativa.tanks.config.Config; - import alternativa.tanks.config.BlobGroup; - import alternativa.tanks.config.BlobCategory; - import alternativa.utils.ByteArrayMap; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_19.name_53; - import alternativa.tanks.game.entities.map.A3DMapComponent; - import alternativa.tanks.game.camera.FreeCameraController; - - public class InitBattleTask extends GameTask - { - private var gameKernel:GameKernel; - - private var config:Config; - - private var container:DisplayObjectContainer; - - private var preloader:Preloader; - - public function InitBattleTask(param1:GameKernel, param2:Config, param3:DisplayObjectContainer, param4:Preloader) - { - super(GameKernel.EVENT_SYSTEM_PRIORITY + 1); - this.gameKernel = param1; - this.config = param2; - this.preloader = param4; - this.container = param3; - } - - override public function run() : void - { - var _loc1_:RenderSystem = this.gameKernel.name_5(); - var _loc2_:FreeCameraController = new FreeCameraController(_loc1_.name_27(),this.gameKernel.name_66()); - _loc1_.name_63(_loc2_); - _loc2_.name_75(0,0,1000); - _loc2_.name_76(0,2000,0); - this.container.addChild(_loc1_.name_71()); - var _loc3_:Entity = this.createMapEntity(); - this.gameKernel.name_73(_loc3_); - this.preloader.name_69(0.75); - var_4.addTask(new TankTestTask(GameKernel.INPUT_SYSTEM_PRIORITY + 1,this.config,this.gameKernel,_loc2_,this.preloader)); - var_4.killTask(this); - } - - private function createMapEntity() : Entity - { - var _loc2_:ByteArrayMap = null; - var _loc6_:BlobGroup = null; - var _loc7_:String = null; - var _loc3_:BlobCategory = this.config.name_68.name_72("skybox"); - if(_loc3_ != null) - { - _loc2_ = new ByteArrayMap(); - _loc6_ = _loc3_.name_62(this.config.name_67()); - for each(_loc7_ in [name_53.BACK,name_53.BOTTOM,name_53.FRONT,name_53.LEFT,name_53.RIGHT,name_53.TOP]) - { - _loc2_.name_59(_loc7_,_loc6_.name_65(_loc7_)); - } - } - var _loc4_:Entity = new Entity(Entity.name_74()); - var _loc5_:A3DMapComponent = new A3DMapComponent(this.config.mapData,_loc2_,1000000,new MapListener(this.gameKernel.name_61())); - _loc4_.name_60(_loc5_); - _loc4_.name_64(); - return _loc4_; - } - } -} - -import alternativa.tanks.game.GameEvents; -import alternativa.tanks.game.entities.map.IA3DMapComponentListener; -import alternativa.tanks.game.subsystems.eventsystem.IEventSystem; - -class MapListener implements IA3DMapComponentListener -{ - private var eventSystem:IEventSystem; - - public function MapListener(param1:IEventSystem) - { - super(); - this.eventSystem = param1; - } - - public function onA3DMapComplete() : void - { - this.eventSystem.dispatchEvent(GameEvents.MAP_COMPLETE,null); - } -} diff --git a/src/alternativa/tanks/TankParams.as b/src/alternativa/tanks/TankParams.as index 2804790..0ca98d9 100644 --- a/src/alternativa/tanks/TankParams.as +++ b/src/alternativa/tanks/TankParams.as @@ -1,6 +1,6 @@ package alternativa.tanks { - import package_40.name_564; + import alternativa.tanks.utils.XMLHelper; public class TankParams { @@ -42,18 +42,18 @@ package alternativa.tanks return _loc1_; } - public static function name_317(param1:XML, param2:Boolean = false) : TankParams + public static function fromXML(param1:XML, param2:Boolean = false) : TankParams { var _loc3_:TankParams = new TankParams(); _loc3_.isUser = param2; - var _loc4_:Array = name_564.name_565(XMLList(param1.xyz)[0]); + var _loc4_:Array = XMLHelper.parseStringArray(XMLList(param1.xyz)[0]); if(_loc4_.length == 3) { _loc3_.x = Number(_loc4_[0]); _loc3_.y = Number(_loc4_[1]); _loc3_.z = Number(_loc4_[2]); } - _loc4_ = name_564.name_565(XMLList(param1.rotation)[0]); + _loc4_ = XMLHelper.parseStringArray(XMLList(param1.rotation)[0]); if(_loc4_.length == 3) { _loc3_.rotationX = Number(_loc4_[0]); @@ -66,7 +66,7 @@ package alternativa.tanks return _loc3_; } - public static function name_322(param1:Array) : TankParams + public static function fromArray(param1:Array) : TankParams { return new TankParams(); } diff --git a/src/alternativa/tanks/TankTestTask.as b/src/alternativa/tanks/TankTestTask.as deleted file mode 100644 index d128e14..0000000 --- a/src/alternativa/tanks/TankTestTask.as +++ /dev/null @@ -1,1431 +0,0 @@ -package alternativa.tanks -{ - import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.usertitle.component.name_245; - import flash.display.BitmapData; - import flash.geom.ColorTransform; - import flash.geom.Vector3D; - import flash.ui.Keyboard; - import alternativa.osgi.service.console.variables.ConsoleVarFloat; - import alternativa.osgi.service.console.variables.ConsoleVarInt; - import alternativa.tanks.game.GameTask; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.Entity; - import alternativa.tanks.game.GameEvents; - import alternativa.tanks.game.weapons.ammunition.plasma.PlasmaRoundEffectsFactory; - import alternativa.tanks.config.Config; - import alternativa.utils.ColorUtils; - import alternativa.utils.ByteArrayMap; - import alternativa.tanks.game.subsystems.rendersystem.ICameraController; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.eventsystem.IGameEventListener; - import alternativa.tanks.game.subsystems.eventsystem.IEventSystem; - import package_21.name_77; - import package_21.name_78; - import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_25.name_250; - import package_28.name_129; - import package_28.name_241; - import package_28.name_259; - import package_28.name_93; - import package_29.MouseEvent3D; - import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial2; - import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; - import package_39.name_160; - import package_4.class_4; - import package_4.class_5; - import package_40.name_251; - import package_46.name_194; - import package_47.name_193; - import alternativa.osgi.OSGi; - import alternativa.osgi.service.console.IConsole; - import package_71.name_234; - import package_71.name_249; - import package_71.name_252; - import package_71.name_277; - import package_71.name_278; - import package_71.name_311; - import package_71.name_315; - import package_71.name_316; - import package_71.name_318; - import package_71.name_333; - import package_72.name_239; - import package_72.name_242; - import package_72.name_255; - import package_72.name_260; - import package_72.name_264; - import package_72.name_295; - import package_73.name_293; - import alternativa.tanks.game.weapons.IGenericAmmunition; - import alternativa.tanks.game.weapons.SimpleTargetEvaluator; - import alternativa.tanks.game.weapons.InstantShotWeaponComponent; - import alternativa.tanks.game.weapons.EnergyShotWeaponComponent; - import alternativa.tanks.game.weapons.ContinuousActionGunPlatformComponent; - import alternativa.tanks.game.weapons.WeaponConst; - import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; - import package_75.name_236; - import package_75.name_309; - import package_76.name_256; - import package_77.name_237; - import package_78.name_243; - import package_78.name_258; - import package_79.name_261; - import package_79.name_280; - import package_79.name_282; - import package_79.name_291; - import package_79.name_326; - import package_80.name_274; - import package_80.name_287; - import package_80.name_306; - import package_80.name_312; - import package_81.name_262; - import package_81.name_265; - import package_82.name_247; - import package_83.name_269; - import package_83.name_270; - import package_84.name_253; - import package_85.name_284; - import package_85.name_314; - import package_85.name_319; - import package_86.name_257; - import package_87.name_267; - import package_88.name_268; - import package_89.name_266; - import alternativa.tanks.game.camera.FreeCameraController; - import alternativa.tanks.game.camera.OrbitCameraController; - import alternativa.tanks.game.camera.FollowCameraController; - import package_90.name_273; - import package_91.name_296; - import package_91.name_349; - import package_92.name_271; - import package_93.name_294; - import package_94.name_276; - import package_95.name_281; - import package_96.name_279; - import package_97.name_292; - import package_98.name_290; - import package_99.name_285; - - use namespace alternativa3d; - - public class TankTestTask extends GameTask implements IGameEventListener - { - private static const DEAD_TEXTURE_ID:String = "dead"; - - private static var conShockSize:ConsoleVarFloat = new ConsoleVarFloat("shock_size",1200,0,2000); - - private static var conShockSizeGrow:ConsoleVarFloat = new ConsoleVarFloat("shock_size_grow",200,0,2000); - - private static var conPysicsDebug:ConsoleVarInt = new ConsoleVarInt("physics_debug",0,0,1); - - private static var conMaxSpeed:ConsoleVarFloat = new ConsoleVarFloat("max_speed",800,0,2000); - - private static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var config:Config; - - private var gameKernel:GameKernel; - - private var var_82:int = 0; - - private var var_79:Vector. = new Vector.(); - - private var tanks:Vector.; - - private var var_62:int; - - private var var_74:name_250; - - private var var_77:name_250; - - private var var_76:name_250; - - private var var_73:BitmapData; - - private var var_67:FollowCameraController; - - private var var_69:OrbitCameraController; - - private var freeCameraController:FreeCameraController; - - private var var_68:ICameraController; - - private var var_81:name_290; - - private var var_75:name_285; - - private var var_70:name_268; - - private var var_63:int; - - private var var_66:int; - - private var var_78:int; - - private var var_61:TextureResourceCache; - - private var var_64:MultiBitmapTextureResourceCache; - - private var var_65:TextureResourceService; - - private var var_71:name_294; - - private var preloader:Preloader; - - private var var_72:Entity; - - private var var_80:name_293 = new name_293(); - - public function TankTestTask(param1:int, param2:Config, param3:GameKernel, param4:FreeCameraController, param5:Preloader) - { - super(param1); - this.preloader = param5; - this.config = param2; - this.gameKernel = param3; - this.freeCameraController = param4; - this.tanks = new Vector.(); - this.var_62 = -1; - this.var_73 = new BitmapData(1,1); - this.var_73.setPixel(0,0,11141120); - this.var_68 = param4; - this.var_61 = new TextureResourceCache(param2.var_37); - this.var_64 = new MultiBitmapTextureResourceCache(param2.var_37); - this.var_65 = new TextureResourceService(param3); - TanksTestingTool.testTask = this; - } - - override public function start() : void - { - var _loc1_:IInput = IInput(var_4.getTaskInterface(IInput)); - _loc1_.name_94(KeyboardEventType.KEY_DOWN,this.onKeyDown); - var _loc2_:IEventSystem = IEventSystem(var_4.getTaskInterface(IEventSystem)); - _loc2_.addEventListener(name_253.TANK_CLICK,this); - this.var_67 = new FollowCameraController(this.gameKernel.name_5().name_27(),this.gameKernel.method_112().name_246().collisionDetector,name_257.STATIC,_loc1_); - this.var_69 = new OrbitCameraController(this.gameKernel.name_5().name_27(),this.gameKernel.method_112().name_246().collisionDetector,name_257.STATIC,_loc1_); - this.var_81 = new name_290(this.gameKernel.name_5()); - this.var_75 = new name_285(); - this.gameKernel.stage.addChild(this.var_75); - var _loc3_:IConsole = IConsole(OSGi.name_8().name_30(IConsole)); - _loc3_.name_45("addtank",this.consoleAddTankHandler); - var _loc4_:XMLList = this.config.xml.elements("console-commands"); - if(_loc4_.length() > 0) - { - this.executeConsoleCommands(_loc3_,this.config.xml.elements("console-commands")[0].toString()); - } - _loc3_.name_45("lstanks",this.listTanks); - this.var_71 = new name_294(GameKernel.RENDER_SYSTEM_PRIORITY + 1,10,this.gameKernel.stage,0,0); - this.gameKernel.addTask(this.var_71); - this.gameKernel.name_61().addEventListener(GameEvents.MAP_COMPLETE,this); - } - - private function get activeTank() : Entity - { - return this.var_62 >= 0 ? this.tanks[this.var_62] : null; - } - - private function selectTank(param1:int) : void - { - if(param1 >= 0 && param1 < this.tanks.length) - { - if(this.activeTank != null) - { - this.activeTank.dispatchEvent(name_252.SET_DISABLED_STATE); - } - this.var_62 = param1; - this.activeTank.dispatchEvent(name_252.SET_ACTIVE_STATE); - if(this.var_68 == this.var_67) - { - this.var_67.method_115(this.activeTank); - } - if(this.var_68 == this.var_69) - { - this.var_69.method_115(this.activeTank); - } - } - } - - public function include() : void - { - if(this.tanks.length > 0) - { - this.selectTank((this.var_62 + 1) % this.tanks.length); - } - if(this.var_68 != this.var_67) - { - this.setCameraController(this.var_67); - } - } - - private function selectPrevTank() : void - { - var _loc1_:int = 0; - if(this.tanks.length > 0) - { - _loc1_ = this.var_62 - 1; - if(_loc1_ < 0) - { - _loc1_ = this.tanks.length - 1; - } - this.selectTank(_loc1_); - } - } - - private function executeConsoleCommands(param1:IConsole, param2:String) : void - { - var _loc4_:String = null; - var _loc3_:Array = param2.split(/\r*\n/); - for each(_loc4_ in _loc3_) - { - param1.method_139(_loc4_); - } - } - - private function consoleAddTankHandler(param1:IConsole, param2:Array) : void - { - this.addTank(TankParams.name_322(param2)); - } - - private function onKeyDown(param1:KeyboardEventType, param2:uint) : void - { - var _loc3_:RenderSystem = null; - var _loc4_:int = 0; - switch(param2) - { - case Keyboard.Q: - _loc3_ = this.gameKernel.name_5(); - _loc4_ = _loc3_.method_72(); - _loc3_.method_54(_loc4_ == 0 ? 4 : 0); - break; - case Keyboard.M: - case Keyboard.BACKSLASH: - this.switchCameraController(); - break; - case Keyboard.N: - if(this.var_68 == this.freeCameraController) - { - FreeCameraController.targeted = !FreeCameraController.targeted; - break; - } - FreeCameraController.targeted = true; - this.setCameraController(this.freeCameraController); - break; - case Keyboard.ENTER: - this.include(); - } - } - - private function jump() : void - { - var _loc1_:name_237 = null; - var _loc2_:name_271 = null; - if(this.activeTank != null) - { - _loc1_ = name_237(this.activeTank.getComponent(name_237)); - _loc2_ = _loc1_.body; - _loc2_.state.velocity.z = 1000; - } - } - - private function toggleTankTitle() : void - { - var _loc2_:name_245 = null; - var _loc1_:Entity = this.activeTank; - if(_loc1_ != null) - { - _loc2_ = name_245(_loc1_.getComponent(name_245)); - if(_loc2_.name_328()) - { - _loc2_.removeFromScene(); - } - else - { - _loc2_.addToScene(); - } - } - } - - private function createRandomBattleMessage() : void - { - this.var_71.name_305("Message: " + Math.random(),ColorUtils.random()); - } - - private function controlKeyPressed() : Boolean - { - return this.gameKernel.name_66().name_346(Keyboard.CONTROL); - } - - private function startIndicator(param1:int, param2:Boolean) : void - { - var _loc3_:name_245 = null; - if(this.activeTank != null) - { - _loc3_ = name_245(this.activeTank.getComponentStrict(name_245)); - if(param2) - { - _loc3_.name_339(param1,10000); - } - else - { - _loc3_.name_330(param1); - } - } - } - - private function createRandomAnimatedSprite() : void - { - var _loc3_:name_129 = null; - var _loc4_:Vector. = null; - var _loc5_:int = 0; - var _loc8_:class_5 = null; - var _loc1_:Vector. = this.var_64.getFrames("thunder/explosion"); - var _loc2_:RenderSystem = this.gameKernel.name_5(); - for each(_loc3_ in _loc1_) - { - _loc2_.method_29(_loc3_); - } - _loc4_ = new Vector.(_loc1_.length); - _loc5_ = 0; - while(_loc5_ < _loc1_.length) - { - _loc8_ = new class_5(_loc1_[_loc5_]); - _loc8_.var_21 = true; - _loc4_[_loc5_] = _loc8_; - _loc5_++; - } - var _loc6_:name_239 = name_239(this.gameKernel.method_108().name_110(name_239)); - var _loc7_:name_194 = new name_194(Math.random() * 3000,Math.random() * 3000,1000 + Math.random() * 3000); - _loc6_.init(300,300,_loc4_,_loc7_,0,0,30,true); - _loc2_.method_37(_loc6_); - } - - private function createThunderShotEffect() : void - { - var _loc1_:name_129 = this.var_61.getResource("smoky/diffuse"); - var _loc2_:name_129 = this.var_61.getResource("smoky/opacity"); - var _loc3_:RenderSystem = this.gameKernel.name_5(); - _loc3_.method_29(_loc1_); - _loc3_.method_29(_loc2_); - var _loc4_:name_266 = name_266(this.gameKernel.method_108().name_110(name_266)); - _loc4_.init(new DummyTurret(),_loc1_,_loc2_); - _loc3_.method_37(_loc4_); - } - - private function selectPrevTurret() : void - { - --this.var_66; - if(this.var_66 < 0) - { - this.var_66 += this.config.tankParts.name_302; - } - this.rebuildActiveTank(); - } - - private function selectNextTurret() : void - { - this.var_66 = (this.var_66 + 1) % this.config.tankParts.name_302; - this.rebuildActiveTank(); - } - - private function selectPrevHull() : void - { - --this.var_63; - if(this.var_63 < 0) - { - this.var_63 += this.config.tankParts.name_300; - } - this.rebuildActiveTank(); - } - - public function selectNextHull() : void - { - this.var_63 = (this.var_63 + 1) % this.config.tankParts.name_300; - this.rebuildActiveTank(); - } - - private function rebuildActiveTank() : void - { - var _loc2_:TankParams = null; - var _loc3_:Entity = null; - var _loc4_:name_236 = null; - var _loc5_:name_236 = null; - var _loc6_:name_194 = null; - var _loc1_:Entity = this.activeTank; - if(_loc1_ != null) - { - this.removeActiveTank(); - _loc2_ = new TankParams(); - _loc2_.hull = this.config.tankParts.name_351(this.var_63).id; - _loc2_.turret = this.config.tankParts.name_336(this.var_66).id; - _loc2_.coloring = this.var_78; - _loc3_ = this.addTank(_loc2_); - this.selectTank(this.tanks.length - 1); - _loc4_ = name_236(_loc1_.getComponentStrict(name_236)); - _loc5_ = name_236(_loc3_.getComponentStrict(name_236)); - _loc5_.getBody().name_352(_loc4_.getBody().state.orientation); - _loc6_ = _loc4_.getBody().state.position.clone(); - _loc6_.z += 200; - _loc5_.getBody().name_201(_loc6_); - } - } - - override public function run() : void - { - } - - private function addDebugMessage() : void - { - var _loc1_:name_193 = null; - if(this.activeTank != null) - { - if(this.var_70 == null) - { - this.var_70 = name_268(this.gameKernel.method_108().name_110(name_268)); - _loc1_ = name_193(this.activeTank.getComponentStrict(name_193)); - this.var_70.init(5000,_loc1_.name_329(),this.onFloatingTextEffectDestroy); - this.gameKernel.name_5().method_37(this.var_70); - } - this.var_70.name_305("Message " + Math.random(),65280); - } - } - - public function method_146(param1:String, param2:*) : void - { - var _loc3_:int = 0; - var _loc4_:Vector. = null; - var _loc5_:Vector. = null; - var _loc6_:TankParams = null; - var _loc7_:XMLList = null; - var _loc8_:int = 0; - var _loc9_:int = 0; - var _loc10_:Entity = null; - var _loc11_:name_259 = null; - var _loc12_:name_241 = null; - switch(param1) - { - case name_253.TANK_CLICK: - _loc3_ = int(this.tanks.indexOf(Entity(param2))); - if(_loc3_ >= 0) - { - this.selectTank(_loc3_); - } - break; - case GameEvents.MAP_COMPLETE: - this.setCameraController(this.var_67); - if(this.config.xml.user.length() > 0) - { - _loc6_ = TankParams.name_317(this.config.xml.user[0],true); - this.var_78 = _loc6_.coloring; - this.var_63 = this.config.tankParts.name_350(_loc6_.hull); - this.var_66 = this.config.tankParts.name_338(_loc6_.turret); - if(this.var_63 < 0) - { - throw new ArgumentError("bad hull: " + _loc6_.hull); - } - if(this.var_66 < 0) - { - throw new ArgumentError("bad turret: " + _loc6_.turret); - } - this.addTank(_loc6_); - } - else - { - this.addTank(TankParams.defaultTankParams); - } - this.selectTank(this.tanks.length - 1); - if(this.config.xml.tanks.length() > 0) - { - _loc7_ = this.config.xml.tanks[0].tank; - _loc8_ = 0; - _loc9_ = int(_loc7_.length()); - while(_loc8_ < _loc9_) - { - _loc10_ = this.addTank(TankParams.name_317(_loc7_[_loc8_])); - _loc10_.dispatchEvent(name_252.SET_ACTIVE_STATE); - _loc10_.dispatchEvent(name_252.SET_DISABLED_STATE); - _loc8_++; - } - } - _loc4_ = this.gameKernel.name_5().method_62().getResources(true,name_259); - if(_loc4_.length > 0) - { - _loc11_ = _loc4_[0] as name_259; - _loc11_.left = this.config.var_37.name_244("left_01") as BitmapData; - _loc11_.right = this.config.var_37.name_244("right_01") as BitmapData; - _loc11_.back = this.config.var_37.name_244("back_01") as BitmapData; - _loc11_.front = this.config.var_37.name_244("front_01") as BitmapData; - _loc11_.top = this.config.var_37.name_244("top_01") as BitmapData; - _loc11_.bottom = this.config.var_37.name_244("bottom_01") as BitmapData; - this.gameKernel.name_5().method_29(_loc11_); - } - this.createFire(); - this.config.clear(); - _loc5_ = this.gameKernel.name_5().method_62().getResources(true,name_241); - for each(_loc12_ in _loc5_) - { - _loc12_.data.clear(); - _loc12_.data = null; - } - this.preloader.name_69(1); - } - } - - private function onMouseDown(param1:MouseEvent3D) : void - { - var _loc2_:Vector3D = name_78(param1.target).localToGlobal(new Vector3D(param1.localX,param1.localY,param1.localZ)); - log.log("mouse","click pos %1 %2 %3",_loc2_.x.toFixed(),_loc2_.y.toFixed(),_loc2_.z.toFixed()); - } - - private function precacheTank() : void - { - } - - private function addCachedTank() : void - { - this.gameKernel.name_73(this.var_72); - this.tanks.push(this.var_72); - this.selectTank(this.tanks.length - 1); - } - - private function addTank(param1:TankParams) : Entity - { - var _loc2_:Entity = this.createTank(param1); - this.gameKernel.name_73(_loc2_); - this.tanks.push(_loc2_); - return _loc2_; - } - - private function createTank(param1:TankParams) : Entity - { - var _loc2_:name_249 = this.config.tankParts.name_353(param1.hull); - var _loc3_:name_234 = this.config.tankParts.name_331(param1.turret); - var _loc4_:BitmapData = this.config.tankParts.name_347(param1.coloring); - var _loc5_:BitmapData = this.config.var_37.name_244(DEAD_TEXTURE_ID) as BitmapData; - var _loc6_:Entity = new Entity(Entity.name_74()); - var _loc9_:name_237 = new name_237(_loc2_,1000,80000); - var _loc10_:int = conMaxSpeed.value; - _loc9_.name_321(_loc10_,true); - _loc9_.name_335(2,true); - _loc9_.name_201(new name_194(param1.x,param1.y,param1.z)); - _loc9_.body.name_332(param1.rotationX / 180 * Math.PI,param1.rotationY / 180 * Math.PI,param1.rotationZ / 180 * Math.PI); - var _loc12_:name_253 = new name_253(_loc2_); - _loc12_.name_343(this.getPartMaterials(_loc2_,_loc4_,_loc5_,6,6)); - _loc12_.name_342(this.createTracksMaterial(_loc2_)); - _loc12_.name_344(this.createShadowMaterial(_loc2_)); - _loc6_.name_60(_loc9_); - _loc6_.name_60(_loc12_); - _loc6_.name_60(new name_316(new name_312(this.config.soundsLibrary))); - var _loc13_:name_278 = new name_278(); - _loc6_.name_60(_loc13_); - _loc6_.name_60(new name_314()); - _loc6_.name_60(new name_309()); - var _loc14_:name_276 = new name_276(_loc3_,1,2); - var _loc15_:name_193 = new name_193(_loc3_); - _loc15_.name_348(this.getPartMaterials(_loc3_,_loc4_,_loc5_,3,3)); - _loc6_.name_60(_loc14_); - _loc6_.name_60(_loc15_); - _loc6_.name_60(new name_311(new name_306(this.config.soundsLibrary))); - if(_loc3_.id.indexOf("Smoky") >= 0) - { - this.createSmoky(_loc6_); - } - else if(_loc3_.id.indexOf("Thunder") >= 0) - { - this.createThunder(_loc6_); - } - else - { - this.createContinuousActionGun(_loc6_); - } - _loc6_.name_60(new name_315()); - if(conPysicsDebug.value == 1) - { - _loc6_.name_60(new name_319()); - } - if(param1.isUser) - { - } - var _loc16_:Vector. = this.getFrameMaterials(this.var_64.getFrames("tank_explosion/shock_wave")); - var _loc17_:Vector. = this.getFrameMaterials(this.var_64.getFrames("tank_explosion/explosion")); - var _loc18_:Vector. = this.getFrameMaterials(this.var_64.getFrames("tank_explosion/smoke")); - var _loc19_:name_284 = new name_284(1200,200,_loc16_,_loc17_,_loc18_); - _loc6_.name_60(_loc19_); - _loc6_.name_64(); - return _loc6_; - } - - private function tracePos() : void - { - var _loc1_:name_237 = name_237(this.tanks[this.var_62].getComponent(name_237)); - var _loc2_:name_194 = new name_194(); - _loc1_.name_334.name_341(_loc2_); - _loc2_.x = _loc2_.x * 180 / Math.PI; - _loc2_.y = _loc2_.y * 180 / Math.PI; - _loc2_.z = _loc2_.z * 180 / Math.PI; - log.log("tank","position %1 %2 %3",_loc1_.name_288.x.toFixed(),_loc1_.name_288.y.toFixed(),_loc1_.name_288.z.toFixed()); - log.log("tank","rotation %1 %2 %3",_loc2_.x.toFixed(),_loc2_.y.toFixed(),_loc2_.z.toFixed()); - } - - private function createFire() : void - { - var _loc4_:XMLList = null; - var _loc5_:int = 0; - var _loc6_:int = 0; - var _loc7_:XML = null; - var _loc8_:name_255 = null; - var _loc9_:Array = null; - var _loc1_:name_129 = this.var_61.getResource("fire/diffuse"); - var _loc2_:name_129 = this.var_61.getResource("fire/opacity"); - var _loc3_:RenderSystem = this.gameKernel.name_5(); - _loc3_.method_29(_loc1_); - _loc3_.method_29(_loc2_); - this.var_74 = new name_250(_loc1_,_loc2_,8,8,0,16,30,true); - this.var_77 = new name_250(_loc1_,_loc2_,8,8,16,16,30,true); - this.var_76 = new name_250(_loc1_,_loc2_,8,8,32,32,45,true,0.5,0.5); - if(this.config.xml.effects.length() > 0) - { - _loc4_ = this.config.xml.effects[0].fire; - _loc5_ = 0; - _loc6_ = int(_loc4_.length()); - while(_loc5_ < _loc6_) - { - _loc7_ = _loc4_[_loc5_]; - _loc8_ = new name_255(this.var_74,this.var_77,this.var_76,5,true); - _loc9_ = _loc7_.@position.toString().split(/\s+/); - _loc8_.position = new Vector3D(Number(_loc9_[0]),Number(_loc9_[1]),Number(_loc9_[2])); - _loc8_.scale = Number(_loc7_.@scale); - this.var_79.push(_loc8_); - this.gameKernel.name_5().method_48(_loc8_); - _loc5_++; - } - } - } - - private function createTracksMaterial(param1:name_249) : TracksMaterial2 - { - var _loc2_:ByteArrayMap = param1.textureData; - var _loc3_:name_241 = this.var_65.name_254(_loc2_.name_248(name_243.KEY_TRACKS_DIFFUSE)); - var _loc4_:name_241 = this.var_65.name_254(_loc2_.name_248(name_243.KEY_TRACKS_NORMAL)); - var _loc5_:TracksMaterial2 = new TracksMaterial2(); - _loc5_.glossiness = 65; - _loc5_.var_25 = 0.6; - _loc5_.diffuseMap = _loc3_; - _loc5_.normalMap = _loc4_; - if(_loc2_.name_248(name_243.KEY_TRACKS_OPACITY) != null) - { - _loc5_.opacityMap = this.var_65.name_254(_loc2_.name_248(name_243.KEY_TRACKS_OPACITY)); - } - return _loc5_; - } - - private function createShadowMaterial(param1:name_249) : GiShadowMaterial - { - var _loc3_:name_241 = null; - var _loc2_:ByteArrayMap = param1.textureData; - if(_loc2_.name_248(name_243.KEY_SHADOW) != null) - { - _loc3_ = this.var_65.name_254(_loc2_.name_248(name_243.KEY_SHADOW)); - return new GiShadowMaterial(_loc3_); - } - return null; - } - - private function createSmoky(param1:Entity) : void - { - var _loc9_:name_129 = null; - var _loc10_:Vector. = null; - var _loc11_:int = 0; - var _loc18_:class_5 = null; - var _loc3_:Number = 10000000 / 3; - var _loc4_:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - var _loc5_:SimpleTargetEvaluator = new SimpleTargetEvaluator(); - var _loc6_:name_261 = new name_261(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); - _loc6_.name_310(this.gameKernel.method_112().name_246().collisionDetector); - _loc6_.name_303(new SimpleTargetEvaluator()); - var _loc7_:Vector. = this.var_64.getFrames("thunder/explosion"); - var _loc8_:RenderSystem = this.gameKernel.name_5(); - for each(_loc9_ in _loc7_) - { - _loc8_.method_29(_loc9_); - } - _loc10_ = new Vector.(_loc7_.length); - _loc11_ = 0; - while(_loc11_ < _loc7_.length) - { - _loc18_ = new class_5(_loc7_[_loc11_]); - _loc18_.var_21 = true; - _loc10_[_loc11_] = _loc18_; - _loc11_++; - } - var _loc12_:name_129 = this.var_61.getResource("smoky/diffuse"); - var _loc13_:name_129 = this.var_61.getResource("smoky/opacity"); - _loc8_.method_29(_loc12_); - _loc8_.method_29(_loc13_); - name_270.init(_loc12_,_loc13_); - var _loc14_:IGenericAmmunition = new name_269(this.gameKernel,1000,10000000,200,100,0.5,null,_loc10_); - var _loc15_:InstantShotWeaponComponent = new InstantShotWeaponComponent(1000,_loc3_,_loc6_,_loc14_,new name_274(this.config.soundsLibrary.name_297("smoky/shot")),true); - _loc15_.name_308 = true; - param1.name_60(_loc15_); - var _loc16_:BitmapData = new BitmapData(20,20,false,0); - _loc16_.perlinNoise(20,20,3,13,false,true); - name_247.init(_loc12_,_loc13_); - var _loc17_:name_247 = new name_247(this.var_61.getResource("thunder/shot")); - param1.name_60(_loc17_); - } - - private function createThunder(param1:Entity) : void - { - var _loc9_:name_129 = null; - var _loc10_:Vector. = null; - var _loc11_:int = 0; - var _loc18_:class_5 = null; - var _loc4_:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - var _loc5_:SimpleTargetEvaluator = new SimpleTargetEvaluator(); - var _loc6_:name_261 = new name_261(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); - _loc6_.name_310(this.gameKernel.method_112().name_246().collisionDetector); - _loc6_.name_303(new SimpleTargetEvaluator()); - var _loc7_:Vector. = this.var_64.getFrames("thunder/explosion"); - var _loc8_:RenderSystem = this.gameKernel.name_5(); - for each(_loc9_ in _loc7_) - { - _loc8_.method_29(_loc9_); - } - _loc10_ = new Vector.(_loc7_.length); - _loc11_ = 0; - while(_loc11_ < _loc7_.length) - { - _loc18_ = new class_5(_loc7_[_loc11_]); - _loc18_.var_21 = true; - _loc10_[_loc11_] = _loc18_; - _loc11_++; - } - var _loc12_:name_129 = this.var_61.getResource("smoky/diffuse"); - var _loc13_:name_129 = this.var_61.getResource("smoky/opacity"); - _loc8_.method_29(_loc12_); - _loc8_.method_29(_loc13_); - name_270.init(_loc12_,_loc13_); - var _loc14_:IGenericAmmunition = new name_269(this.gameKernel,1000,10000000,200,100,0.5,null,_loc10_); - var _loc15_:InstantShotWeaponComponent = new InstantShotWeaponComponent(1000,3333333.3333333335,_loc6_,_loc14_,new name_274(this.config.soundsLibrary.name_297("thunder/shot")),true); - _loc15_.name_308 = true; - param1.name_60(_loc15_); - var _loc16_:BitmapData = new BitmapData(20,20,false,0); - _loc16_.perlinNoise(20,20,3,13,false,true); - name_247.init(_loc12_,_loc13_); - var _loc17_:name_247 = new name_247(this.var_61.getResource("thunder/shot")); - param1.name_60(_loc17_); - } - - private function createRailgun(param1:Entity) : void - { - var _loc5_:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - var _loc6_:name_292 = new name_292(); - var _loc7_:name_291 = new name_291(Math.PI / 9,20,Math.PI / 9,20,_loc5_,_loc6_); - } - - private function createEnergyGun(param1:Entity) : void - { - var _loc9_:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - var _loc10_:SimpleTargetEvaluator = new SimpleTargetEvaluator(); - var _loc11_:name_280 = new name_280(Math.PI / 4,20,Math.PI / 4,20,100,_loc9_,_loc10_); - var _loc13_:Number = WeaponConst.BASE_FORCE; - var _loc14_:IWeaponDistanceWeakening = new name_267(2000,4000,0.5); - var _loc15_:BitmapData = this.config.var_37.name_244("plasma/charge") as BitmapData; - var _loc16_:Vector. = name_251.name_272(_loc15_,_loc15_.height); - var _loc17_:Vector. = this.getMaterialStrip(_loc16_); - var _loc18_:BitmapData = this.config.var_37.name_244("plasma/explosion") as BitmapData; - _loc16_ = name_251.name_272(_loc18_,_loc18_.height); - var _loc19_:Vector. = this.getMaterialStrip(_loc16_); - var _loc20_:ColorTransform = new ColorTransform(5); - var _loc22_:name_349 = new PlasmaRoundEffectsFactory(this.gameKernel,_loc17_,_loc19_,_loc20_); - var _loc23_:name_296 = new name_296(50,2000,100,_loc13_,_loc14_,_loc22_,null); - param1.name_60(_loc23_); - var _loc24_:EnergyShotWeaponComponent = new EnergyShotWeaponComponent(1000,1000,1000,1000,0,8000,_loc11_,null,true); - param1.name_60(_loc24_); - var _loc25_:BitmapData = new BitmapData(20,20,false,0); - _loc25_.perlinNoise(20,20,3,13,false,true); - var _loc26_:name_129 = this.var_61.getResource("plasma/shot"); - var _loc27_:name_295 = new name_295(_loc26_,null); - param1.name_60(_loc27_); - } - - private function createContinuousActionGun(param1:Entity) : void - { - var _loc5_:ContinuousActionGunPlatformComponent = new ContinuousActionGunPlatformComponent(1000,1,15,true); - param1.name_60(_loc5_); - var _loc7_:Number = 30 * Math.PI / 180; - var _loc10_:name_262 = this.getFlamethrowerSFXData(); - var _loc11_:name_265 = new name_265(3000,_loc7_,20,3000,_loc10_); - param1.name_60(_loc11_); - var _loc16_:RenderSystem = this.gameKernel.name_5(); - var _loc17_:name_129 = this.var_61.getResource("firebird/diffuse"); - var _loc18_:name_129 = this.var_61.getResource("firebird/opacity"); - _loc16_.method_29(_loc17_); - _loc16_.method_29(_loc18_); - name_265.init(_loc17_,_loc18_); - var _loc19_:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - var _loc20_:name_326 = SimpleTargetEvaluator.INSTANCE; - var _loc21_:name_282 = new name_282(3000,_loc7_,10,10,_loc19_,_loc20_); - var _loc22_:name_287 = new name_287(this.config.soundsLibrary.name_297("flamethrower/shot")); - var _loc23_:name_281 = new name_281(1000,100,_loc21_,_loc22_,true,false); - param1.name_60(_loc23_); - } - - private function getMaterialStrip(param1:Vector.) : Vector. - { - var _loc3_:BitmapData = null; - var _loc2_:Vector. = new Vector.(); - for each(_loc3_ in param1) - { - } - return _loc2_; - } - - private function removeActiveTank() : void - { - var _loc1_:Entity = null; - if(this.var_62 >= 0) - { - _loc1_ = this.activeTank; - this.gameKernel.method_109(_loc1_); - this.tanks.splice(this.var_62,1); - if(this.tanks.length == 0) - { - this.var_62 = -1; - } - else - { - this.var_62--; - this.selectTank(this.var_62); - } - } - } - - private function switchCameraController() : void - { - if(this.var_68 == this.var_69) - { - this.setCameraController(this.var_67); - } - else if(this.var_68 == this.freeCameraController) - { - this.setCameraController(this.var_69); - } - else - { - this.setCameraController(this.freeCameraController); - } - } - - private function setCameraController(param1:ICameraController) : void - { - if(this.activeTank != null) - { - if(param1 == this.var_67) - { - this.var_67.method_115(this.activeTank); - } - if(param1 == this.var_69) - { - this.var_69.method_115(this.activeTank); - } - if(param1 == this.freeCameraController) - { - this.freeCameraController.method_115(this.activeTank); - } - } - this.gameKernel.name_5().setCameraController(param1); - this.var_68 = param1; - } - - private function getPartMaterials(param1:name_333, param2:BitmapData, param3:BitmapData, param4:Number, param5:Number) : name_277 - { - var _loc15_:name_249 = null; - var _loc16_:name_318 = null; - var _loc6_:RenderSystem = this.gameKernel.name_5(); - var _loc7_:ByteArrayMap = param1.textureData; - var _loc8_:name_241 = this.var_65.name_254(_loc7_.name_248(name_258.KEY_DIFFUSE_MAP)); - var _loc9_:name_241 = this.var_65.name_254(_loc7_.name_248(name_258.KEY_NORMAL_MAP)); - var _loc10_:name_241 = this.var_65.name_254(_loc7_.name_248(name_258.KEY_SURFACE_MAP)); - var _loc11_:name_93 = this.var_65.name_320(param2); - var _loc12_:name_93 = this.var_65.name_320(param3); - var _loc13_:TankMaterial2 = new TankMaterial2(_loc11_,_loc8_,_loc9_,_loc10_); - var _loc14_:TankMaterial2 = new TankMaterial2(_loc12_,_loc8_,_loc9_,_loc10_); - _loc13_.var_26 = param4; - _loc13_.var_24 = param5; - _loc14_.var_26 = param4; - _loc14_.var_24 = param5; - _loc6_.method_29(param1.geometry); - if(param1 is name_249) - { - _loc15_ = name_249(param1); - for each(var _loc19_ in _loc15_.name_325.concat(_loc15_.name_323)) - { - _loc16_ = _loc19_; - _loc19_; - _loc6_.method_29(_loc16_.geometry); - } - _loc6_.method_29(_loc15_.name_337.geometry); - _loc6_.method_29(_loc15_.name_340.geometry); - _loc6_.method_29(_loc15_.shadow.geometry); - } - return new name_277(_loc13_,_loc14_); - } - - private function showZeroMarker() : void - { - var _loc1_:name_279 = new name_279(20,20,20); - } - - private function onFloatingTextEffectDestroy() : void - { - this.var_70 = null; - null; - } - - private function getFlamethrowerSFXData() : name_262 - { - var _loc4_:BitmapData = null; - var _loc5_:Vector. = null; - var _loc6_:name_262 = null; - var _loc1_:BitmapData = this.config.var_37.name_244("flame/sprite") as BitmapData; - var _loc2_:Vector. = name_251.name_272(_loc1_); - var _loc3_:Vector. = new Vector.(); - for each(var _loc9_ in _loc2_) - { - _loc4_ = _loc9_; - _loc9_; - } - _loc5_ = new Vector.(); - _loc5_.push(new name_242(0,3)); - _loc5_.push(new name_242(0.5)); - _loc5_.push(new name_242(0.75,0.2,0.2,0.2)); - _loc5_.push(new name_242(1,0,0,0,0)); - return new name_262(_loc3_,_loc5_); - } - - private function createTankExplostionEffects() : void - { - this.createShockWave(); - this.createExplosion(); - this.createExplosionSmoke(); - } - - private function createShockWave() : void - { - var _loc2_:name_256 = null; - var _loc3_:name_236 = null; - var _loc4_:name_194 = null; - var _loc5_:name_273 = null; - var _loc6_:name_194 = null; - var _loc7_:name_194 = null; - var _loc8_:Vector. = null; - var _loc9_:Vector. = null; - var _loc10_:name_264 = null; - var _loc1_:Entity = this.activeTank; - if(_loc1_ != null) - { - _loc2_ = this.gameKernel.method_112().name_246().collisionDetector; - _loc3_ = name_236(_loc1_.getComponentStrict(name_236)); - _loc4_ = _loc3_.getBody().state.position; - _loc5_ = new name_273(); - if(_loc2_.name_324(_loc4_,name_194.DOWN,name_257.STATIC,1000,null,_loc5_)) - { - _loc6_ = _loc5_.position.clone(); - _loc6_.z = _loc6_.z + 1; - _loc7_ = new name_194(); - _loc7_.x = -Math.acos(_loc5_.normal.z); - if(_loc5_.normal.z < 0.999) - { - _loc7_.z = Math.atan2(-_loc5_.normal.x,_loc5_.normal.y); - } - _loc8_ = this.var_64.getFrames("tank_explosion/shock_wave"); - _loc9_ = this.getFrameMaterials(_loc8_); - _loc10_ = name_264(this.gameKernel.method_108().name_110(name_264)); - _loc10_.init(conShockSize.value,_loc6_,_loc7_,_loc9_,30,conShockSizeGrow.value); - this.gameKernel.name_5().method_37(_loc10_); - } - } - } - - private function createExplosion() : void - { - var _loc2_:Vector. = null; - var _loc3_:Vector. = null; - var _loc4_:name_239 = null; - var _loc5_:name_236 = null; - var _loc6_:name_194 = null; - var _loc7_:Number = NaN; - var _loc8_:Number = NaN; - var _loc9_:Number = NaN; - var _loc1_:Entity = this.activeTank; - if(_loc1_ != null) - { - _loc2_ = this.var_64.getFrames("tank_explosion/explosion"); - _loc3_ = this.getFrameMaterials(_loc2_); - _loc4_ = name_239(this.gameKernel.method_108().name_110(name_239)); - _loc5_ = name_236(this.activeTank.getComponentStrict(name_236)); - _loc6_ = _loc5_.getBody().state.position.clone(); - _loc6_.z = _loc6_.z + 100; - _loc7_ = Math.random() * Math.PI; - _loc8_ = 400; - _loc9_ = 25; - _loc4_.init(600,600,_loc3_,_loc6_,_loc7_,_loc8_,_loc9_,false); - this.gameKernel.name_5().method_37(_loc4_); - } - } - - private function createExplosionSmoke() : void - { - var _loc2_:Number = NaN; - var _loc3_:Number = NaN; - var _loc4_:Number = NaN; - var _loc5_:Number = NaN; - var _loc6_:Number = NaN; - var _loc7_:Number = NaN; - var _loc8_:Number = NaN; - var _loc9_:int = 0; - var _loc10_:Vector. = null; - var _loc11_:Vector. = null; - var _loc12_:name_236 = null; - var _loc13_:name_194 = null; - var _loc14_:name_194 = null; - var _loc15_:Number = NaN; - var _loc16_:name_194 = null; - var _loc17_:int = 0; - var _loc18_:Number = NaN; - var _loc19_:Number = NaN; - var _loc20_:name_260 = null; - var _loc21_:Number = NaN; - var _loc1_:Entity = this.activeTank; - if(_loc1_ != null) - { - _loc2_ = 100; - _loc3_ = 10 * Math.PI / 180; - _loc4_ = 60 * Math.PI / 180; - _loc5_ = 700; - _loc6_ = 1100; - _loc7_ = 15; - _loc8_ = -1000; - _loc9_ = 400; - _loc10_ = this.var_64.getFrames("tank_explosion/smoke"); - _loc11_ = this.getFrameMaterials(_loc10_); - _loc12_ = name_236(this.activeTank.getComponentStrict(name_236)); - _loc13_ = _loc12_.getBody().state.position.clone(); - _loc13_.z = _loc13_.z + _loc2_; - _loc14_ = new name_194(); - _loc15_ = Math.random() * Math.PI; - _loc16_ = new name_194(); - _loc17_ = 0; - while(_loc17_ < 3) - { - _loc16_.x = Math.cos(_loc15_); - _loc16_.y = Math.sin(_loc15_); - _loc18_ = Math.random() * (_loc4_ - _loc3_) + _loc3_; - _loc19_ = _loc5_ + Math.random() * (_loc6_ - _loc5_); - _loc14_.copy(_loc16_).scale(Math.sin(_loc18_)).add(name_194.UP).normalize().scale(_loc19_); - _loc20_ = name_260(this.gameKernel.method_108().name_110(name_260)); - _loc21_ = Math.random() * Math.PI; - _loc20_.init(_loc9_,_loc9_,_loc11_,_loc13_,_loc14_,_loc8_,_loc21_,_loc7_,false); - this.gameKernel.name_5().method_37(_loc20_); - _loc15_ = _loc15_ + 2 / 3 * Math.PI; - _loc17_++; - } - } - } - - private function getFrameMaterials(param1:Vector.) : Vector. - { - FrameMaterialsFactory.INSTANCE.renderSystem = this.gameKernel.name_5(); - return this.var_80.method_84(param1,FrameMaterialsFactory.INSTANCE) as Vector.; - } - - private function listTanks(param1:IConsole, param2:Array) : void - { - var _loc3_:Entity = null; - var _loc4_:name_237 = null; - var _loc5_:name_271 = null; - for each(var _loc8_ in this.tanks) - { - _loc3_ = _loc8_; - _loc8_; - _loc4_ = name_237(_loc3_.getComponentStrict(name_237)); - _loc5_ = _loc4_.body; - param1.name_145("Tank " + _loc5_.id); - param1.name_145("position " + _loc5_.state.position); - param1.name_145("velocity " + _loc5_.state.velocity); - } - } - } -} - -import flash.display.BitmapData; -import flash.media.Sound; -import flash.utils.ByteArray; -import alternativa.tanks.game.GameKernel; -import package_101.name_304; -import alternativa.tanks.config.TextureLibrary; -import alternativa.utils.ColorUtils; -import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; -import package_28.name_129; -import package_28.name_241; -import package_28.name_93; -import package_4.class_4; -import package_4.class_5; -import package_4.name_313; -import package_40.name_251; -import package_46.Matrix4; -import package_46.name_194; -import package_71.class_10; -import package_71.name_234; -import package_72.class_12; -import package_72.name_239; -import package_73.class_13; -import alternativa.tanks.game.weapons.IGenericAmmunition; -import alternativa.tanks.game.weapons.IGenericRound; -import package_75.class_15; -import package_76.name_235; -import package_87.name_267; - -class FrameMaterialsFactory implements class_13 -{ - public static const INSTANCE:FrameMaterialsFactory = new FrameMaterialsFactory(); - - public var renderSystem:RenderSystem; - - public function FrameMaterialsFactory() - { - super(); - } - - public function createData(param1:Object) : Object - { - var _loc6_:class_5 = null; - var _loc2_:Vector. = param1 as Vector.; - var _loc3_:int = int(_loc2_.length); - var _loc4_:Vector. = new Vector.(_loc3_); - var _loc5_:int = 0; - while(_loc5_ < _loc3_) - { - this.renderSystem.method_29(_loc2_[_loc5_]); - _loc6_ = new class_5(_loc2_[_loc5_]); - _loc6_.var_21 = true; - _loc4_[_loc5_] = _loc6_; - _loc5_++; - } - return _loc4_; - } -} - -class DummyTurretCallback implements class_10 -{ - public function DummyTurretCallback() - { - super(); - } - - public function onTurretControlChanged(param1:int, param2:Boolean) : void - { - } -} - -class PointHitRoundAmmo implements IGenericAmmunition -{ - private var impactForce:Number; - - private var weaponDistanceWeakening:name_267; - - private var weaponHitEffects:WeaponHitEffects; - - public function PointHitRoundAmmo(param1:GameKernel) - { - var _loc5_:int = 0; - super(); - this.impactForce = 10000; - this.weaponDistanceWeakening = new name_267(10000,15000,0.5); - var _loc2_:Vector. = new Vector.(); - var _loc4_:int = 0; - while(_loc4_ < 20) - { - _loc5_ = 255 - 255 / (20 - 1) * _loc4_; - _loc2_.push(new name_313(ColorUtils.name_345(_loc5_,_loc5_,_loc5_),_loc5_ / 255 + 0.5)); - _loc4_++; - } - this.weaponHitEffects = new WeaponHitEffects(null,_loc2_,param1); - } - - public function getRound() : IGenericRound - { - return new name_304(this.impactForce,this.weaponDistanceWeakening,this.weaponHitEffects); - } -} - -class WeaponHitEffects implements class_12 -{ - private var sound:Sound; - - private var frames:Vector.; - - private var gameKernel:GameKernel; - - public function WeaponHitEffects(param1:Sound, param2:Vector., param3:GameKernel) - { - super(); - this.sound = param1; - this.frames = param2; - this.gameKernel = param3; - } - - public function createEffects(param1:name_194, param2:Number, param3:Number) : void - { - var _loc4_:name_239 = name_239(this.gameKernel.method_108().name_110(name_239)); - _loc4_.init(600,600,this.frames,param1,0,50,30,false); - this.gameKernel.name_5().method_37(_loc4_); - } -} - -class TextureResourceCache -{ - private var textureLibrary:TextureLibrary; - - private var cache:Object = {}; - - public function TextureResourceCache(param1:TextureLibrary) - { - super(); - this.textureLibrary = param1; - } - - public function getResource(param1:String) : name_129 - { - var _loc3_:Object = null; - var _loc2_:name_129 = this.cache[param1]; - if(_loc2_ == null) - { - _loc3_ = this.textureLibrary.name_244(param1); - if(_loc3_ is BitmapData) - { - _loc2_ = new name_93(_loc3_ as BitmapData); - this.cache[param1] = _loc2_; - } - else if(_loc3_ is ByteArray) - { - _loc2_ = new name_241(_loc3_ as ByteArray); - this.cache[param1] = _loc2_; - } - } - return _loc2_; - } -} - -class MultiBitmapTextureResourceCache -{ - private var textureLibrary:TextureLibrary; - - private var cache:Object = {}; - - public function MultiBitmapTextureResourceCache(param1:TextureLibrary) - { - super(); - this.textureLibrary = param1; - } - - public function getFrames(param1:String) : Vector. - { - var _loc3_:BitmapData = null; - var _loc4_:Vector. = null; - var _loc5_:int = 0; - var _loc2_:Vector. = this.cache[param1]; - if(_loc2_ == null) - { - _loc3_ = this.textureLibrary.name_244(param1) as BitmapData; - _loc4_ = name_251.name_272(_loc3_); - _loc2_ = new Vector.(_loc4_.length); - _loc5_ = 0; - while(_loc5_ < _loc4_.length) - { - _loc2_[_loc5_] = new name_93(_loc4_[_loc5_]); - _loc5_++; - } - this.cache[param1] = _loc2_; - } - return _loc2_; - } -} - -class DummyTurret implements class_15 -{ - public function DummyTurret() - { - super(); - } - - public function setTurret(param1:name_234) : void - { - } - - public function getTurretDirection() : Number - { - return 0; - } - - public function setTurretDirection(param1:Number) : void - { - } - - public function setTurretControls(param1:int) : Boolean - { - return false; - } - - public function centerTurret(param1:Boolean) : void - { - } - - public function setTurretMountPoint(param1:name_194) : void - { - } - - public function getTurretPrimitives() : Vector. - { - return null; - } - - public function getChassisMatrix() : Matrix4 - { - return null; - } - - public function getInterpolatedTurretDirection() : Number - { - return 0; - } - - public function getSkinMountPoint(param1:name_194) : void - { - } - - public function getGunData(param1:int, param2:name_194, param3:name_194, param4:name_194) : void - { - } - - public function getGunMuzzleData(param1:int, param2:name_194, param3:name_194) : void - { - param2.reset(0,0,2000); - param3.reset(0,0,1); - } - - public function getGunMuzzleData2(param1:int, param2:name_194, param3:name_194) : void - { - } - - public function getBarrelLength(param1:int) : Number - { - return 0; - } - - public function getBarrelCount() : int - { - return 0; - } -} diff --git a/src/alternativa/tanks/TextureResourceService.as b/src/alternativa/tanks/TextureResourceService.as index cb4896a..10d6877 100644 --- a/src/alternativa/tanks/TextureResourceService.as +++ b/src/alternativa/tanks/TextureResourceService.as @@ -1,89 +1,89 @@ package alternativa.tanks { + import alternativa.engine3d.resources.ATFTextureResource; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.weapons.railgun.IRailgunTargetEvaluator; + import alternativa.tanks.game.weapons.targeting.IGenericTargetEvaluator; import flash.display.BitmapData; import flash.utils.ByteArray; import flash.utils.Dictionary; - import alternativa.tanks.game.GameKernel; - import package_117.name_542; - import package_28.name_241; - import package_28.name_93; - import package_79.name_326; public class TextureResourceService implements ITextureResourceService { public var gameKernel:GameKernel; - private var var_455:name_326; + private var §_-9P§:IGenericTargetEvaluator; - private var var_453:name_542; + private var §_-bW§:IRailgunTargetEvaluator; - private var var_454:name_326; + private var §_-ci§:IGenericTargetEvaluator; - private var var_457:Dictionary; + private var §_-L1§:Dictionary; - private var var_456:Dictionary; + private var §_-ee§:Dictionary; public function TextureResourceService(param1:GameKernel) { super(); this.gameKernel = param1; - this.var_457 = new Dictionary(); - this.var_456 = new Dictionary(); + this.§_-L1§ = new Dictionary(); + this.§_-ee§ = new Dictionary(); } - public function name_254(param1:ByteArray) : name_241 + public function getCompressedTextureResource(param1:ByteArray) : ATFTextureResource { - var _loc2_:name_241 = this.getCompressedResourceSafe(param1,true); + var _loc2_:ATFTextureResource = this.getCompressedResourceSafe(param1,true); if(!_loc2_.isUploaded) { - this.gameKernel.name_5().method_29(_loc2_); + this.gameKernel.getRenderSystem().useResource(_loc2_); } return _loc2_; } - public function method_435(param1:ByteArray) : void + public function releaseCompressedTextureResource(param1:ByteArray) : void { - var _loc2_:name_241 = this.getCompressedResourceSafe(param1,false); + var _loc2_:ATFTextureResource = this.getCompressedResourceSafe(param1,false); if(_loc2_ != null) { - this.gameKernel.name_5().method_28(_loc2_); + this.gameKernel.getRenderSystem().releaseResource(_loc2_); } } - public function name_320(param1:BitmapData) : name_93 + public function getBitmapTextureResource(param1:BitmapData) : BitmapTextureResource { - var _loc2_:name_93 = this.getBitmapResourceSafe(param1,true); - this.gameKernel.name_5().method_29(_loc2_); + var _loc2_:BitmapTextureResource = this.getBitmapResourceSafe(param1,true); + this.gameKernel.getRenderSystem().useResource(_loc2_); return _loc2_; } - public function method_434(param1:BitmapData) : void + public function releaseBitmapTextureResource(param1:BitmapData) : void { - var _loc2_:name_93 = this.getBitmapResourceSafe(param1,false); + var _loc2_:BitmapTextureResource = this.getBitmapResourceSafe(param1,false); if(_loc2_ != null) { - this.gameKernel.name_5().method_28(_loc2_); + this.gameKernel.getRenderSystem().releaseResource(_loc2_); } } - private function getCompressedResourceSafe(param1:ByteArray, param2:Boolean) : name_241 + private function getCompressedResourceSafe(param1:ByteArray, param2:Boolean) : ATFTextureResource { - var _loc3_:name_241 = this.var_457[param1]; + var _loc3_:ATFTextureResource = this.§_-L1§[param1]; if(_loc3_ == null && param2) { - _loc3_ = new name_241(param1); - this.var_457[param1] = _loc3_; + _loc3_ = new ATFTextureResource(param1); + this.§_-L1§[param1] = _loc3_; } return _loc3_; } - private function getBitmapResourceSafe(param1:BitmapData, param2:Boolean) : name_93 + private function getBitmapResourceSafe(param1:BitmapData, param2:Boolean) : BitmapTextureResource { - var _loc3_:name_93 = this.var_456[param1]; + var _loc3_:BitmapTextureResource = this.§_-ee§[param1]; if(_loc3_ == null && param2) { - _loc3_ = new name_93(param1); - this.var_456[param1] = _loc3_; + _loc3_ = new BitmapTextureResource(param1); + this.§_-ee§[param1] = _loc3_; } return _loc3_; } @@ -91,51 +91,51 @@ package alternativa.tanks public function clear() : void { this.gameKernel = null; - this.var_455 = null; - this.var_453 = null; - this.var_454 = null; + this.§_-9P§ = null; + this.§_-bW§ = null; + this.§_-ci§ = null; } - public function method_440() : name_326 + public function getGenericTargetEvaluator() : IGenericTargetEvaluator { - if(this.var_455 == null) + if(this.§_-9P§ == null) { throw new Error("Generic target evaluator is not set"); } - return this.var_455; + return this.§_-9P§; } - public function method_439(param1:name_326) : void + public function setGenericTargetEvaluator(param1:IGenericTargetEvaluator) : void { - this.var_455 = param1; + this.§_-9P§ = param1; } - public function method_443() : name_542 + public function getRailgunTargetEvaluator() : IRailgunTargetEvaluator { - if(this.var_453 == null) + if(this.§_-bW§ == null) { throw new Error("Railgun target evaluator is not set"); } - return this.var_453; + return this.§_-bW§; } - public function method_438(param1:name_542) : void + public function setRailgunTargetEvaluator(param1:IRailgunTargetEvaluator) : void { - this.var_453 = param1; + this.§_-bW§ = param1; } - public function method_441() : name_326 + public function getFlamethrowerTargetEvaluator() : IGenericTargetEvaluator { - if(this.var_454 == null) + if(this.§_-ci§ == null) { throw new Error("Flame/freeze target evaluator is not set"); } - return this.var_454; + return this.§_-ci§; } - public function method_442(param1:name_326) : void + public function setFlamethrowerTargetEvaluator(param1:IGenericTargetEvaluator) : void { - this.var_454 = param1; + this.§_-ci§ = param1; } } } diff --git a/src/alternativa/tanks/config/BlobCategory.as b/src/alternativa/tanks/config/BlobCategory.as index bfd8ec8..73f9698 100644 --- a/src/alternativa/tanks/config/BlobCategory.as +++ b/src/alternativa/tanks/config/BlobCategory.as @@ -10,7 +10,7 @@ package alternativa.tanks.config this.groups = new Object(); } - public function get method_215() : Vector. + public function get groupIds() : Vector. { var _loc2_:String = null; var _loc1_:Vector. = new Vector.(); @@ -21,12 +21,12 @@ package alternativa.tanks.config return _loc1_; } - public function name_62(param1:String) : BlobGroup + public function getGroup(param1:String) : BlobGroup { return this.groups[param1]; } - public function method_214(param1:String, param2:BlobGroup) : void + public function setGroup(param1:String, param2:BlobGroup) : void { this.groups[param1] = param2; } diff --git a/src/alternativa/tanks/config/BlobGroup.as b/src/alternativa/tanks/config/BlobGroup.as index 55550c7..e545636 100644 --- a/src/alternativa/tanks/config/BlobGroup.as +++ b/src/alternativa/tanks/config/BlobGroup.as @@ -12,7 +12,7 @@ package alternativa.tanks.config this.blobs = new Object(); } - public function get method_219() : Vector. + public function get blobIds() : Vector. { var _loc2_:String = null; var _loc1_:Vector. = new Vector.(); @@ -23,12 +23,12 @@ package alternativa.tanks.config return _loc1_; } - public function name_65(param1:String) : ByteArray + public function getBlob(param1:String) : ByteArray { return this.blobs[param1]; } - public function method_218(param1:String, param2:ByteArray) : void + public function setBlob(param1:String, param2:ByteArray) : void { this.blobs[param1] = param2; } diff --git a/src/alternativa/tanks/config/BlobLibrary.as b/src/alternativa/tanks/config/BlobLibrary.as index 6ce1be0..79dd9b5 100644 --- a/src/alternativa/tanks/config/BlobLibrary.as +++ b/src/alternativa/tanks/config/BlobLibrary.as @@ -2,33 +2,33 @@ package alternativa.tanks.config { public class BlobLibrary { - private var var_199:Object; + private var §_-GF§:Object; public function BlobLibrary() { super(); - this.var_199 = new Object(); + this.§_-GF§ = new Object(); } - public function get method_327() : Vector. + public function get categoryIds() : Vector. { var _loc2_:String = null; var _loc1_:Vector. = new Vector.(); - for(_loc2_ in this.var_199) + for(_loc2_ in this.§_-GF§) { _loc1_.push(_loc2_); } return _loc1_; } - public function name_72(param1:String) : BlobCategory + public function getCategory(param1:String) : BlobCategory { - return this.var_199[param1]; + return this.§_-GF§[param1]; } - public function method_326(param1:String, param2:BlobCategory) : void + public function setCategory(param1:String, param2:BlobCategory) : void { - this.var_199[param1] = param2; + this.§_-GF§[param1] = param2; } } } diff --git a/src/alternativa/tanks/config/Config.as b/src/alternativa/tanks/config/Config.as deleted file mode 100644 index 87e6e9b..0000000 --- a/src/alternativa/tanks/config/Config.as +++ /dev/null @@ -1,198 +0,0 @@ -package alternativa.tanks.config -{ - import flash.events.Event; - import flash.events.EventDispatcher; - import flash.utils.ByteArray; - import alternativa.utils.ByteArrayMap; - import package_40.class_7; - import package_40.name_169; - import package_40.name_170; - import package_40.name_171; - import package_41.name_173; - import package_41.name_175; - - [Event(name="complete",type="flash.events.Event")] - public class Config extends EventDispatcher - { - public var mapData:ByteArrayMap; - - public var var_37:TextureLibrary; - - public var tankParts:TankPartsLibrary; - - public var soundsLibrary:name_173; - - public var name_68:BlobLibrary = new BlobLibrary(); - - private var var_35:XML; - - private var var_34:name_170; - - private var preloader:Preloader; - - private var var_36:Object = {}; - - public function Config() - { - super(); - } - - public function load(param1:String, param2:Preloader) : void - { - this.preloader = param2; - this.var_34 = new name_170(); - var _loc3_:ConfigXMLLoader = new ConfigXMLLoader(param1,this); - this.var_34.addTask(_loc3_); - _loc3_.addEventListener(name_169.TASK_COMPLETE,this.onTaskProgress); - var _loc4_:name_175 = new name_175(this); - this.var_34.addTask(_loc4_); - _loc4_.addEventListener(name_169.TASK_PROGRESS,this.onTaskProgress); - this.var_37 = new TextureLibrary(this); - this.var_37.addEventListener(name_169.TASK_PROGRESS,this.onTaskProgress); - this.var_34.addTask(this.var_37); - var _loc5_:class_7 = this.createMapLoadTask(); - this.var_34.addTask(_loc5_); - _loc5_.addEventListener(name_169.TASK_COMPLETE,this.onTaskProgress); - this.tankParts = new TankPartsLibrary(this); - this.tankParts.addEventListener(name_169.TASK_PROGRESS,this.onTaskProgress); - this.var_34.addTask(this.tankParts); - this.soundsLibrary = new name_173(this); - this.soundsLibrary.addEventListener(name_169.TASK_PROGRESS,this.onTaskProgress); - this.var_34.addTask(this.soundsLibrary); - this.var_34.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.var_34.run(); - } - - private function onTaskProgress(param1:name_169) : void - { - this.preloader.method_82(param1.progress / param1.total * 0.1); - } - - public function name_67() : String - { - return this.xml.map.@skybox; - } - - public function get xml() : XML - { - return this.var_35; - } - - public function set xml(param1:XML) : void - { - this.var_35 = param1; - this.parseOptions(); - } - - public function get options() : Object - { - return this.var_36; - } - - public function clear() : void - { - var _loc1_:* = undefined; - for(_loc1_ in this.mapData.data) - { - delete this.mapData.data[_loc1_]; - } - this.var_35 = null; - this.mapData = null; - } - - private function createMapLoadTask() : class_7 - { - return new MapLoadTask(this,this.setMapData); - } - - private function onSequenceComplete(param1:Event) : void - { - this.var_34 = null; - dispatchEvent(new Event(Event.COMPLETE)); - } - - private function setMapData(param1:ByteArray) : void - { - var _loc2_:name_171 = new name_171(param1); - this.mapData = new ByteArrayMap(_loc2_.data); - } - - private function parseOptions() : void - { - var _loc1_:XML = null; - for each(_loc1_ in this.var_35.kernelOptions.option) - { - this.var_36[_loc1_.@name] = _loc1_.toString(); - } - } - } -} - -import flash.events.Event; -import flash.events.EventDispatcher; -import flash.net.URLLoader; -import flash.net.URLLoaderDataFormat; -import flash.net.URLRequest; -import flash.utils.ByteArray; -import package_40.class_7; - -class ConfigXMLLoader extends class_7 -{ - private var config:Config; - - private var loader:URLLoader; - - private var url:String; - - public function ConfigXMLLoader(param1:String, param2:Config) - { - super(); - this.url = param1; - this.config = param2; - } - - override public function run() : void - { - this.loader = new URLLoader(); - this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete); - this.loader.load(new URLRequest(this.url)); - } - - private function onLoadingComplete(param1:Event) : void - { - this.config.xml = XML(this.loader.data); - this.loader = null; - method_102(); - } -} - -class MapLoadTask extends class_7 -{ - private var callback:Function; - - private var config:Config; - - private var loader:URLLoader; - - public function MapLoadTask(param1:Config, param2:Function) - { - super(); - this.config = param1; - this.callback = param2; - } - - override public function run() : void - { - this.loader = new URLLoader(); - this.loader.dataFormat = URLLoaderDataFormat.BINARY; - this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete); - this.loader.load(new URLRequest(this.config.xml.map.@url)); - } - - private function onLoadingComplete(param1:Event) : void - { - this.callback.call(null,ByteArray(this.loader.data)); - this.loader = null; - method_102(); - } -} diff --git a/src/alternativa/tanks/config/ResourceLoader.as b/src/alternativa/tanks/config/ResourceLoader.as index a19e0a6..68c0d67 100644 --- a/src/alternativa/tanks/config/ResourceLoader.as +++ b/src/alternativa/tanks/config/ResourceLoader.as @@ -1,8 +1,8 @@ package alternativa.tanks.config { - import package_40.class_7; + import alternativa.tanks.utils.Task; - public class ResourceLoader extends class_7 + public class ResourceLoader extends Task { public var config:Config; diff --git a/src/alternativa/tanks/config/SringUtils.as b/src/alternativa/tanks/config/StringUtils.as similarity index 77% rename from src/alternativa/tanks/config/SringUtils.as rename to src/alternativa/tanks/config/StringUtils.as index bf94762..323c28b 100644 --- a/src/alternativa/tanks/config/SringUtils.as +++ b/src/alternativa/tanks/config/StringUtils.as @@ -7,7 +7,7 @@ package alternativa.tanks.config super(); } - public static function name_460(param1:String) : String + public static function makeCorrectBaseUrl(param1:String) : String { if(Boolean(param1) && param1.charAt(param1.length - 1) != "/") { diff --git a/src/alternativa/tanks/config/TankPartsLibrary.as b/src/alternativa/tanks/config/TankPartsLibrary.as index a6bd3eb..c37eb5e 100644 --- a/src/alternativa/tanks/config/TankPartsLibrary.as +++ b/src/alternativa/tanks/config/TankPartsLibrary.as @@ -1,81 +1,81 @@ package alternativa.tanks.config { + import alternativa.tanks.config.loaders.ImageSequenceLoader; + import alternativa.tanks.config.loaders.TankPartsBatchLoader; + import alternativa.tanks.config.loaders.tankparts.TankHullLoaderFactory; + import alternativa.tanks.config.loaders.tankparts.TankTurretLoaderFactory; + import alternativa.tanks.game.entities.tank.TankHull; + import alternativa.tanks.game.entities.tank.TankPart; + import alternativa.tanks.game.entities.tank.TankTurret; + import alternativa.tanks.utils.TaskEvent; import flash.display.BitmapData; import flash.events.Event; - import package_112.name_463; - import package_112.name_464; - import package_40.name_169; - import package_41.name_461; - import package_41.name_462; - import package_71.name_234; - import package_71.name_249; - import package_71.name_333; public class TankPartsLibrary extends ResourceLoader { - private var var_196:Vector.; + private var §_-SB§:Vector.; - private var var_197:Vector.; + private var §_-dl§:Vector.; - private var var_198:Vector.; + private var §_-cy§:Vector.; - private var var_194:name_461; + private var §_-Ic§:TankPartsBatchLoader; - private var var_195:name_462; + private var §_-1D§:ImageSequenceLoader; public function TankPartsLibrary(param1:Config) { super("Tank parts library",param1); } - public function get name_300() : int + public function get numHulls() : int { - return this.var_196.length; + return this.§_-SB§.length; } - public function name_351(param1:int) : name_249 + public function getHull(param1:int) : TankHull { - return name_249(this.var_196[param1]); + return TankHull(this.§_-SB§[param1]); } - public function name_353(param1:String) : name_249 + public function getHullByID(param1:String) : TankHull { - return this.findPartByID(param1,this.var_196) as name_249; + return this.findPartByID(param1,this.§_-SB§) as TankHull; } - public function name_350(param1:String) : int + public function getHullIndex(param1:String) : int { - return this.getPartIndex(param1,this.var_196); + return this.getPartIndex(param1,this.§_-SB§); } - public function get name_302() : int + public function get numTurrets() : int { - return this.var_197.length; + return this.§_-dl§.length; } - public function name_336(param1:int) : name_234 + public function getTurret(param1:int) : TankTurret { - return name_234(this.var_197[param1]); + return TankTurret(this.§_-dl§[param1]); } - public function name_331(param1:String) : name_234 + public function getTurretByID(param1:String) : TankTurret { - return this.findPartByID(param1,this.var_197) as name_234; + return this.findPartByID(param1,this.§_-dl§) as TankTurret; } - public function name_338(param1:String) : int + public function getTurretIndex(param1:String) : int { - return this.getPartIndex(param1,this.var_197); + return this.getPartIndex(param1,this.§_-dl§); } - public function get method_325() : int + public function get numColormaps() : int { - return this.var_198.length; + return this.§_-cy§.length; } - public function name_347(param1:int) : BitmapData + public function getColormap(param1:int) : BitmapData { - return this.var_198[param1]; + return this.§_-cy§[param1]; } override public function run() : void @@ -83,9 +83,9 @@ package alternativa.tanks.config this.loadHulls(); } - private function findPartByID(param1:String, param2:Vector.) : name_333 + private function findPartByID(param1:String, param2:Vector.) : TankPart { - var _loc3_:name_333 = null; + var _loc3_:TankPart = null; for each(_loc3_ in param2) { if(_loc3_.id == param1) @@ -96,9 +96,9 @@ package alternativa.tanks.config return null; } - private function getPartIndex(param1:String, param2:Vector.) : int + private function getPartIndex(param1:String, param2:Vector.) : int { - var _loc4_:name_333 = null; + var _loc4_:TankPart = null; var _loc3_:int = 0; while(_loc3_ < param2.length) { @@ -114,53 +114,53 @@ package alternativa.tanks.config private function loadHulls() : void { - this.var_194 = new name_461(); - this.var_194.addEventListener(Event.COMPLETE,this.onHullsLoadingComplete); - this.var_194.load(this.getBaseUrl(),config.xml.tankParts.hull,new name_463()); + this.§_-Ic§ = new TankPartsBatchLoader(); + this.§_-Ic§.addEventListener(Event.COMPLETE,this.onHullsLoadingComplete); + this.§_-Ic§.load(this.getBaseUrl(),config.xml.tankParts.hull,new TankHullLoaderFactory()); } private function onHullsLoadingComplete(param1:Event) : void { - dispatchEvent(new name_169(name_169.TASK_PROGRESS,1,3)); - this.var_194.removeEventListener(Event.COMPLETE,this.onHullsLoadingComplete); - this.var_196 = this.var_194.parts; + dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,3)); + this.§_-Ic§.removeEventListener(Event.COMPLETE,this.onHullsLoadingComplete); + this.§_-SB§ = this.§_-Ic§.parts; this.loadTurrets(); } private function loadTurrets() : void { - this.var_194.addEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); - this.var_194.load(this.getBaseUrl(),config.xml.tankParts.turret,new name_464()); + this.§_-Ic§.addEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); + this.§_-Ic§.load(this.getBaseUrl(),config.xml.tankParts.turret,new TankTurretLoaderFactory()); } private function onTurretsLoadingComplete(param1:Event) : void { - dispatchEvent(new name_169(name_169.TASK_PROGRESS,1,3)); - this.var_194.removeEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); - this.var_197 = this.var_194.parts; - this.var_194 = null; + dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,3)); + this.§_-Ic§.removeEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); + this.§_-dl§ = this.§_-Ic§.parts; + this.§_-Ic§ = null; this.loadColormaps(); } private function loadColormaps() : void { - this.var_195 = new name_462(); - this.var_195.addEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); - this.var_195.load(StringUtils.name_460(config.xml.colorings.@baseUrl),config.xml.colorings.image); + this.§_-1D§ = new ImageSequenceLoader(); + this.§_-1D§.addEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); + this.§_-1D§.load(StringUtils.makeCorrectBaseUrl(config.xml.colorings.@baseUrl),config.xml.colorings.image); } private function onColormapsLoadingComplete(param1:Event) : void { - dispatchEvent(new name_169(name_169.TASK_PROGRESS,1,3)); - this.var_198 = this.var_195.images; - this.var_195.removeEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); - this.var_195 = null; - method_102(); + dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,3)); + this.§_-cy§ = this.§_-1D§.images; + this.§_-1D§.removeEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); + this.§_-1D§ = null; + completeTask(); } private function getBaseUrl() : String { - return StringUtils.name_460(config.xml.tankParts.@baseUrl); + return StringUtils.makeCorrectBaseUrl(config.xml.tankParts.@baseUrl); } } } diff --git a/src/package_41/name_462.as b/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as similarity index 68% rename from src/package_41/name_462.as rename to src/alternativa/tanks/config/loaders/ImageSequenceLoader.as index 53aa7b6..d46588c 100644 --- a/src/package_41/name_462.as +++ b/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as @@ -1,4 +1,4 @@ -package package_41 +package alternativa.tanks.config.loaders { import flash.display.Bitmap; import flash.display.BitmapData; @@ -8,7 +8,7 @@ package package_41 import flash.net.URLRequest; [Event(name="complete",type="flash.events.Event")] - public class name_462 extends EventDispatcher + public class ImageSequenceLoader extends EventDispatcher { public var images:Vector.; @@ -18,9 +18,9 @@ package package_41 private var loader:Loader; - private var var_589:int; + private var §_-lW§:int; - public function name_462() + public function ImageSequenceLoader() { super(); } @@ -30,18 +30,18 @@ package package_41 this.baseUrl = param1; this.imagesXml = param2; this.loader = new Loader(); - this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE,this.method_650); - this.var_589 = -1; + this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE,this.onImageLoadingComplete); + this.§_-lW§ = -1; this.images = new Vector.(); - this.method_649(); + this.loadNextImage(); } - private function method_649() : void + private function loadNextImage() : void { - ++this.var_589; - if(this.var_589 == this.imagesXml.length()) + ++this.§_-lW§; + if(this.§_-lW§ == this.imagesXml.length()) { - this.loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,this.method_650); + this.loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,this.onImageLoadingComplete); this.loader.unload(); this.loader = null; this.baseUrl = null; @@ -53,14 +53,14 @@ package package_41 } else { - this.loader.load(new URLRequest(this.baseUrl + this.imagesXml[this.var_589].@file)); + this.loader.load(new URLRequest(this.baseUrl + this.imagesXml[this.§_-lW§].@file)); } } - private function method_650(param1:Event) : void + private function onImageLoadingComplete(param1:Event) : void { this.images.push(Bitmap(this.loader.content).bitmapData); - this.method_649(); + this.loadNextImage(); } } } diff --git a/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as b/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as new file mode 100644 index 0000000..40c47ad --- /dev/null +++ b/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as @@ -0,0 +1,44 @@ +package alternativa.tanks.config.loaders +{ + import alternativa.tanks.config.loaders.tankparts.ITankPartLoaderFactory; + import alternativa.tanks.game.entities.tank.TankPart; + import alternativa.tanks.utils.TaskSequence; + import flash.events.Event; + import flash.events.EventDispatcher; + + [Event(name="complete",type="flash.events.Event")] + public class TankPartsBatchLoader extends EventDispatcher + { + public var parts:Vector.; + + private var §_-d5§:TaskSequence; + + public function TankPartsBatchLoader() + { + super(); + } + + public function load(param1:String, param2:XMLList, param3:ITankPartLoaderFactory) : void + { + var _loc4_:XML = null; + this.parts = new Vector.(); + this.§_-d5§ = new TaskSequence(); + for each(_loc4_ in param2) + { + this.§_-d5§.addTask(param3.createLoader(param1,_loc4_,this.parts)); + } + this.§_-d5§.addEventListener(Event.COMPLETE,this.onSequenceComplete); + this.§_-d5§.run(); + } + + private function onSequenceComplete(param1:Event) : void + { + this.§_-d5§ = null; + if(hasEventListener(Event.COMPLETE)) + { + dispatchEvent(new Event(Event.COMPLETE)); + } + } + } +} + diff --git a/src/alternativa/tanks/config/loaders/tankparts/ITankPartLoaderFactory.as b/src/alternativa/tanks/config/loaders/tankparts/ITankPartLoaderFactory.as new file mode 100644 index 0000000..3f90cfb --- /dev/null +++ b/src/alternativa/tanks/config/loaders/tankparts/ITankPartLoaderFactory.as @@ -0,0 +1,10 @@ +package alternativa.tanks.config.loaders.tankparts +{ + import alternativa.tanks.game.entities.tank.TankPart; + + public interface ITankPartLoaderFactory + { + function createLoader(param1:String, param2:XML, param3:Vector.) : TankPartLoader; + } +} + diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as new file mode 100644 index 0000000..718fb0a --- /dev/null +++ b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as @@ -0,0 +1,21 @@ +package alternativa.tanks.config.loaders.tankparts +{ + import § var§.TankHullParser; + import alternativa.tanks.game.entities.tank.TankPart; + import alternativa.utils.ByteArrayMap; + + public class TankHullLoader extends TankPartLoader + { + public function TankHullLoader(param1:String, param2:XML, param3:Vector.) + { + super(param1,param2,param3); + } + + override public function parseModelData(param1:ByteArrayMap) : TankPart + { + var _loc2_:TankHullParser = new TankHullParser(); + return _loc2_.parse(param1,§_-P9§); + } + } +} + diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankHullLoaderFactory.as b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoaderFactory.as new file mode 100644 index 0000000..6ba2eff --- /dev/null +++ b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoaderFactory.as @@ -0,0 +1,18 @@ +package alternativa.tanks.config.loaders.tankparts +{ + import alternativa.tanks.game.entities.tank.TankPart; + + public class TankHullLoaderFactory implements ITankPartLoaderFactory + { + public function TankHullLoaderFactory() + { + super(); + } + + public function createLoader(param1:String, param2:XML, param3:Vector.) : TankPartLoader + { + return new TankHullLoader(param1,param2,param3); + } + } +} + diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as new file mode 100644 index 0000000..06fd5b1 --- /dev/null +++ b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as @@ -0,0 +1,21 @@ +package alternativa.tanks.config.loaders.tankparts +{ + import § var§.TankTurretParser; + import alternativa.tanks.game.entities.tank.TankPart; + import alternativa.utils.ByteArrayMap; + + public class TankTurretLoader extends TankPartLoader + { + public function TankTurretLoader(param1:String, param2:XML, param3:Vector.) + { + super(param1,param2,param3); + } + + override public function parseModelData(param1:ByteArrayMap) : TankPart + { + var _loc2_:TankTurretParser = new TankTurretParser(); + return _loc2_.parse(param1,§_-P9§); + } + } +} + diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoaderFactory.as b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoaderFactory.as new file mode 100644 index 0000000..979bec9 --- /dev/null +++ b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoaderFactory.as @@ -0,0 +1,18 @@ +package alternativa.tanks.config.loaders.tankparts +{ + import alternativa.tanks.game.entities.tank.TankPart; + + public class TankTurretLoaderFactory implements ITankPartLoaderFactory + { + public function TankTurretLoaderFactory() + { + super(); + } + + public function createLoader(param1:String, param2:XML, param3:Vector.) : TankPartLoader + { + return new TankTurretLoader(param1,param2,param3); + } + } +} + diff --git a/src/package_99/name_285.as b/src/alternativa/tanks/display/DebugPanel.as similarity index 70% rename from src/package_99/name_285.as rename to src/alternativa/tanks/display/DebugPanel.as index 047b96d..053baf3 100644 --- a/src/package_99/name_285.as +++ b/src/alternativa/tanks/display/DebugPanel.as @@ -1,4 +1,4 @@ -package package_99 +package alternativa.tanks.display { import flash.display.Sprite; import flash.text.TextField; @@ -6,13 +6,13 @@ package package_99 import flash.text.TextFormat; import flash.utils.Dictionary; - public class name_285 extends Sprite + public class DebugPanel extends Sprite { private var values:Dictionary; private var count:int; - public function name_285() + public function DebugPanel() { super(); this.values = new Dictionary(); @@ -22,23 +22,23 @@ package package_99 tabChildren = false; } - public function method_458(param1:String, ... rest) : void + public function printValue(param1:String, ... rest) : void { var _loc3_:TextField = this.values[param1]; if(_loc3_ == null) { - _loc3_ = this.method_457(); + _loc3_ = this.createTextField(); this.values[param1] = _loc3_; } _loc3_.text = param1 + ": " + rest.join(" "); } - public function method_459(param1:String) : void + public function printText(param1:String) : void { - this.method_457().text = param1; + this.createTextField().text = param1; } - private function method_457() : TextField + private function createTextField() : TextField { var _loc1_:TextField = new TextField(); _loc1_.autoSize = TextFieldAutoSize.LEFT; diff --git a/src/alternativa/tanks/game/Entity.as b/src/alternativa/tanks/game/Entity.as index 8928cca..f4c8299 100644 --- a/src/alternativa/tanks/game/Entity.as +++ b/src/alternativa/tanks/game/Entity.as @@ -4,39 +4,39 @@ package alternativa.tanks.game { private static var lastId:int; - private var var_101:int; + private var §_-3I§:int; private var components:Vector.; - private var var_100:Object; + private var §_-ax§:Object; internal var index:int = -1; public function Entity(id:int) { super(); - this.var_101 = id; + this.§_-3I§ = id; this.components = new Vector.(); - this.var_100 = new Object(); + this.§_-ax§ = new Object(); } - public static function name_74() : int + public static function generateId() : int { return ++lastId; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } - public function name_60(component:EntityComponent) : void + public function addComponent(component:EntityComponent) : void { this.components.push(component); - component.method_197(this); + component.setEntity(this); } - public function name_64() : void + public function initComponents() : void { var entityComponent:EntityComponent = null; for each(entityComponent in this.components) @@ -90,7 +90,7 @@ package alternativa.tanks.game { var numListeners:uint = 0; var i:int = 0; - var listeners:Vector. = this.var_100[eventType]; + var listeners:Vector. = this.§_-ax§[eventType]; if(listeners != null) { numListeners = uint(listeners.length); @@ -103,11 +103,11 @@ package alternativa.tanks.game public function addEventHandler(eventType:String, handler:Function) : void { - var handlers:Vector. = this.var_100[eventType]; + var handlers:Vector. = this.§_-ax§[eventType]; if(handlers == null) { handlers = new Vector.(); - this.var_100[eventType] = handlers; + this.§_-ax§[eventType] = handlers; } handlers.push(handler); } diff --git a/src/alternativa/tanks/game/EntityComponent.as b/src/alternativa/tanks/game/EntityComponent.as index 368d89e..514cfd9 100644 --- a/src/alternativa/tanks/game/EntityComponent.as +++ b/src/alternativa/tanks/game/EntityComponent.as @@ -9,7 +9,7 @@ package alternativa.tanks.game super(); } - public function method_197(entity:Entity) : void + public function setEntity(entity:Entity) : void { this.entity = entity; } diff --git a/src/alternativa/tanks/game/GameKernel.as b/src/alternativa/tanks/game/GameKernel.as deleted file mode 100644 index 44835fc..0000000 --- a/src/alternativa/tanks/game/GameKernel.as +++ /dev/null @@ -1,216 +0,0 @@ -package alternativa.tanks.game -{ - import flash.display.Stage; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.eventsystem.EventSystem; - import alternativa.tanks.game.subsystems.eventsystem.IEventSystem; - import alternativa.tanks.game.subsystems.inputsystem.InputSystem; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import alternativa.tanks.game.utils.objectpool.ObjectPoolManager; - import package_27.name_180; - import package_42.name_177; - import package_42.name_184; - import package_43.name_183; - import package_43.name_190; - import package_44.name_178; - import package_45.name_182; - - public class GameKernel - { - public static const TIME_SYSTEM_PRIORITY:int = 0; - - public static const INPUT_SYSTEM_PRIORITY:int = 1000; - - public static const EVENT_SYSTEM_PRIORITY:int = 2000; - - public static const LOGIC_SYSTEM_1_PRIORITY:int = 3000; - - public static const LOGIC_SYSTEM_2_PRIORITY:int = 3001; - - public static const PHYSICS_SYSTEM_PRIORITY:int = 4000; - - public static const RENDER_SYSTEM_PRIORITY:int = 5000; - - public static const CLEANUP_SYSTEM_PRIORITY:int = 6000; - - public const const_1:name_180 = new name_180(20); - - private var var_43:Stage; - - private var var_36:Object; - - private var var_41:IGameLogger = new DummyLogger(); - - private var var_4:TaskManager; - - private var var_44:name_182; - - private var inputSystem:InputSystem; - - private var eventSystem:EventSystem; - - private var logicSystem1:name_177; - - private var logicSystem2:name_177; - - private var physicsSystem:name_178; - - private var renderSystem:RenderSystem; - - private var var_42:name_183; - - private var var_39:Vector.; - - private var var_38:int; - - private var var_40:ObjectPoolManager; - - public function GameKernel(stage:Stage, options:Object) - { - super(); - this.var_43 = stage; - this.var_36 = options || {}; - this.var_39 = new Vector.(); - this.var_40 = new ObjectPoolManager(); - this.var_4 = new TaskManager(); - this.var_44 = new name_182(TIME_SYSTEM_PRIORITY); - this.var_4.addTask(this.var_44); - this.inputSystem = new InputSystem(INPUT_SYSTEM_PRIORITY,stage); - this.var_4.addTask(this.inputSystem); - this.eventSystem = new EventSystem(EVENT_SYSTEM_PRIORITY); - this.var_4.addTask(this.eventSystem); - this.logicSystem1 = new name_177(LOGIC_SYSTEM_1_PRIORITY,this); - this.var_4.addTask(this.logicSystem1); - this.logicSystem2 = new name_177(LOGIC_SYSTEM_2_PRIORITY,this); - this.var_4.addTask(this.logicSystem2); - this.physicsSystem = new name_178(PHYSICS_SYSTEM_PRIORITY,this.var_40); - this.var_4.addTask(this.physicsSystem); - this.renderSystem = new RenderSystem(RENDER_SYSTEM_PRIORITY,stage); - this.var_4.addTask(this.renderSystem); - this.var_42 = new name_183(CLEANUP_SYSTEM_PRIORITY); - this.var_4.addTask(this.var_42); - } - - public function get logger() : IGameLogger - { - return this.var_41; - } - - public function set logger(value:IGameLogger) : void - { - if(value == null) - { - throw new ArgumentError("Logger is null"); - } - this.var_41 = value; - } - - public function get stage() : Stage - { - return this.var_43; - } - - public function get options() : Object - { - return this.var_36; - } - - public function method_111(command:name_190) : void - { - this.var_42.name_187(command); - } - - public function method_108() : ObjectPoolManager - { - return this.var_40; - } - - public function addTask(gameTask:GameTask) : void - { - this.var_4.addTask(gameTask); - } - - public function name_73(entity:Entity) : void - { - if(entity.index < 0) - { - entity.index = this.var_38; - var _loc2_:* = this.var_38++; - this.var_39[_loc2_] = entity; - entity.addToGame(this); - return; - } - throw new Error("Entity " + entity + " is already in game"); - } - - public function method_109(entity:Entity) : void - { - var index:int = int(entity.index); - if(index < 0) - { - throw new Error("Entity " + entity + " is not in game"); - } - var lastEntity:Entity = this.var_39[--this.var_38]; - lastEntity.index = index; - this.var_39[index] = lastEntity; - this.var_39[this.var_38] = null; - entity.index = -1; - entity.removeFromGame(this); - } - - public function name_66() : IInput - { - return this.inputSystem; - } - - public function name_61() : IEventSystem - { - return this.eventSystem; - } - - public function getLogicSystem1() : name_184 - { - return this.logicSystem1; - } - - public function getLogicSystem2() : name_184 - { - return this.logicSystem2; - } - - public function method_112() : name_178 - { - return this.physicsSystem; - } - - public function name_5() : RenderSystem - { - return this.renderSystem; - } - - public function name_51() : void - { - this.const_1.name_188(); - this.var_4.name_185(); - this.const_1.name_186(); - } - - public function method_110() : void - { - this.var_4.name_189(); - this.var_4.name_185(); - } - } -} - -class DummyLogger implements IGameLogger -{ - public function DummyLogger() - { - super(); - } - - public function log(channel:String, text:String) : void - { - } -} diff --git a/src/alternativa/tanks/game/GameTask.as b/src/alternativa/tanks/game/GameTask.as index 9e3d2f0..e1a4eba 100644 --- a/src/alternativa/tanks/game/GameTask.as +++ b/src/alternativa/tanks/game/GameTask.as @@ -2,11 +2,11 @@ package alternativa.tanks.game { public class GameTask { - public var var_4:TaskManager; + public var §_-Uw§:TaskManager; public var priority:int; - protected var var_3:Boolean; + protected var §_-iS§:Boolean; public function GameTask(priority:int) { @@ -26,37 +26,37 @@ package alternativa.tanks.game { } - final public function get method_20() : Boolean + final public function get paused() : Boolean { - return this.var_3; + return this.§_-iS§; } - final public function set method_20(value:Boolean) : void + final public function set paused(value:Boolean) : void { if(value) { - this.method_21(); + this.pause(); } else { - this.method_22(); + this.resume(); } } - final public function method_21() : void + final public function pause() : void { - if(!this.var_3) + if(!this.§_-iS§) { - this.var_3 = true; + this.§_-iS§ = true; this.onPause(); } } - final public function method_22() : void + final public function resume() : void { - if(this.var_3) + if(this.§_-iS§) { - this.var_3 = false; + this.§_-iS§ = false; this.onResume(); } } diff --git a/src/alternativa/tanks/game/IGameLogger.as.as b/src/alternativa/tanks/game/IGameLogger.as similarity index 100% rename from src/alternativa/tanks/game/IGameLogger.as.as rename to src/alternativa/tanks/game/IGameLogger.as diff --git a/src/alternativa/tanks/game/ObjectController.as b/src/alternativa/tanks/game/ObjectController.as index c3d22b9..4650c48 100644 --- a/src/alternativa/tanks/game/ObjectController.as +++ b/src/alternativa/tanks/game/ObjectController.as @@ -1,83 +1,83 @@ package alternativa.tanks.game { - import package_21.name_124; - import package_21.name_78; - import package_46.Matrix3; - import package_46.name_194; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Object3D; + import alternativa.math.Matrix3; + import alternativa.math.Vector3; public class ObjectController { private static var matrix:Matrix3 = new Matrix3(); - private static var vector:name_194 = new name_194(); + private static var vector:Vector3 = new Vector3(); - private var var_234:name_78; + private var §_-G7§:Object3D; public function ObjectController() { super(); } - public function get object() : name_78 + public function get object() : Object3D { - return this.var_234; + return this.§_-G7§; } - public function set object(value:name_78) : void + public function set object(value:Object3D) : void { - this.var_234 = value; + this.§_-G7§ = value; } - public function name_201(x:Number, y:Number, z:Number) : void + public function setPosition(x:Number, y:Number, z:Number) : void { - this.var_234.x = x; - this.var_234.y = y; - this.var_234.z = z; + this.§_-G7§.x = x; + this.§_-G7§.y = y; + this.§_-G7§.z = z; } - public function method_368(rx:Number, ry:Number, rz:Number) : void + public function setRotation(rx:Number, ry:Number, rz:Number) : void { - this.var_234.rotationX = rx; - this.var_234.rotationY = ry; - this.var_234.rotationZ = rz; + this.§_-G7§.rotationX = rx; + this.§_-G7§.rotationY = ry; + this.§_-G7§.rotationZ = rz; } - public function method_367(dx:Number, dy:Number, dz:Number) : void + public function moveRelative(dx:Number, dy:Number, dz:Number) : void { - matrix.name_196(this.var_234.rotationX,this.var_234.rotationY,this.var_234.rotationZ); + matrix.setRotationMatrix(this.§_-G7§.rotationX,this.§_-G7§.rotationY,this.§_-G7§.rotationZ); vector.reset(dx,dy,dz); vector.transform3(matrix); - this.var_234.x += vector.x; - this.var_234.y += vector.y; - this.var_234.z += vector.z; + this.§_-G7§.x += vector.x; + this.§_-G7§.y += vector.y; + this.§_-G7§.z += vector.z; } public function move(dx:Number, dy:Number, dz:Number) : void { - this.var_234.x += dx; - this.var_234.y += dy; - this.var_234.z += dz; + this.§_-G7§.x += dx; + this.§_-G7§.y += dy; + this.§_-G7§.z += dz; } public function rotate(rdx:Number, rdy:Number, rdz:Number) : void { - this.var_234.rotationX += rdx; - this.var_234.rotationY += rdy; - this.var_234.rotationZ += rdz; + this.§_-G7§.rotationX += rdx; + this.§_-G7§.rotationY += rdy; + this.§_-G7§.rotationZ += rdz; } - public function name_76(x:Number, y:Number, z:Number) : void + public function lookAtXYZ(x:Number, y:Number, z:Number) : void { - var dx:Number = x - this.var_234.x; - var dy:Number = y - this.var_234.y; - var dz:Number = z - this.var_234.z; - this.var_234.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)); - if(this.var_234 is name_124) + var dx:Number = x - this.§_-G7§.x; + var dy:Number = y - this.§_-G7§.y; + var dz:Number = z - this.§_-G7§.z; + this.§_-G7§.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)); + if(this.§_-G7§ is Camera3D) { - this.var_234.rotationX -= 0.5 * Math.PI; + this.§_-G7§.rotationX -= 0.5 * Math.PI; } - this.var_234.rotationY = 0; - this.var_234.rotationZ = -Math.atan2(dx,dy); + this.§_-G7§.rotationY = 0; + this.§_-G7§.rotationZ = -Math.atan2(dx,dy); } } } diff --git a/src/alternativa/tanks/game/TaskManager.as b/src/alternativa/tanks/game/TaskManager.as deleted file mode 100644 index 8893f55..0000000 --- a/src/alternativa/tanks/game/TaskManager.as +++ /dev/null @@ -1,175 +0,0 @@ -package alternativa.tanks.game -{ - import flash.utils.Dictionary; - import flash.utils.describeType; - import flash.utils.getDefinitionByName; - import package_108.name_373; - import package_108.name_374; - - public class TaskManager - { - private var var_85:name_374 = new name_374(); - - private var var_87:TaskArray = new TaskArray(); - - private var var_86:TaskArray = new TaskArray(); - - private var var_88:Dictionary = new Dictionary(); - - public function TaskManager() - { - super(); - } - - public function addTask(task:GameTask) : void - { - if(this.var_85.contains(task)) - { - throw new Error("Task is already active"); - } - if(this.var_87.contains(task)) - { - throw new Error("Task has been already scheduled for addition"); - } - this.var_87.add(task); - } - - public function killTask(task:GameTask) : void - { - if(this.var_85.contains(task) && !this.var_86.contains(task)) - { - this.var_86.add(task); - } - } - - public function name_185() : void - { - var task:GameTask = null; - this.startAddedTasks(); - var iterator:name_373 = this.var_85.listIterator(); - while(iterator.hasNext()) - { - task = GameTask(iterator.next()); - if(!task.method_20) - { - task.run(); - } - } - this.removeKilledTasks(); - } - - public function getTaskInterface(taskInterface:Class) : Object - { - return this.var_88[taskInterface]; - } - - public function name_189() : void - { - var task:GameTask = null; - var listIterator:name_373 = this.var_85.listIterator(); - while(listIterator.hasNext()) - { - task = GameTask(listIterator.next()); - this.killTask(task); - } - } - - private function startAddedTasks() : void - { - var task:GameTask = null; - var taskInterfaces:Vector. = null; - var taskInterface:Class = null; - var activeTasksIterator:name_373 = null; - var activeTask:GameTask = null; - for(var i:int = 0; i < this.var_87.numTasks; i++) - { - task = this.var_87.tasks[i]; - task.var_4 = this; - task.start(); - taskInterfaces = this.getObjectInterfaces(task); - for each(taskInterface in taskInterfaces) - { - this.var_88[taskInterface] = task; - } - activeTasksIterator = this.var_85.listIterator(); - while(activeTasksIterator.hasNext()) - { - activeTask = GameTask(activeTasksIterator.next()); - if(activeTask.priority > task.priority) - { - activeTasksIterator.name_375(); - break; - } - } - activeTasksIterator.add(task); - } - this.var_87.clear(); - } - - private function removeKilledTasks() : void - { - var task:GameTask = null; - var taskInterfaces:Vector. = null; - var taskInterface:Class = null; - for(var i:int = 0; i < this.var_86.numTasks; i++) - { - task = this.var_86.tasks[i]; - this.var_85.remove(task); - task.stop(); - taskInterfaces = this.getObjectInterfaces(task); - for each(taskInterface in taskInterfaces) - { - delete this.var_88[taskInterface]; - } - task.var_4 = null; - } - this.var_86.clear(); - } - - private function getObjectInterfaces(object:Object) : Vector. - { - var interfaceXML:XML = null; - var interfaceClass:Object = null; - var result:Vector. = new Vector.(); - var xml:XML = describeType(object); - for each(interfaceXML in xml.implementsInterface) - { - interfaceClass = getDefinitionByName(interfaceXML.@type); - result.push(interfaceClass); - } - return result; - } - } -} - -class TaskArray -{ - public var tasks:Vector. = new Vector.(); - - public var numTasks:int; - - public function TaskArray() - { - super(); - } - - public function add(task:GameTask) : void - { - var _loc2_:* = this.numTasks++; - this.tasks[_loc2_] = task; - } - - public function clear() : void - { - for(var i:int = 0; i < this.numTasks; i++) - { - this.tasks[i] = null; - } - this.numTasks = 0; - } - - public function contains(task:GameTask) : Boolean - { - return this.tasks.indexOf(task) >= 0; - } -} diff --git a/src/alternativa/tanks/game/camera/AxisIndicator.as b/src/alternativa/tanks/game/camera/AxisIndicator.as index 068c01c..5682201 100644 --- a/src/alternativa/tanks/game/camera/AxisIndicator.as +++ b/src/alternativa/tanks/game/camera/AxisIndicator.as @@ -1,18 +1,18 @@ package alternativa.tanks.game.camera { - import flash.display.Shape; import alternativa.tanks.game.subsystems.rendersystem.GameCamera; + import flash.display.Shape; public class AxisIndicator extends Shape { - private var var_32:int; + private var §_-RS§:int; private var axis:Vector. = Vector.([0,0,0,0,0,0]); public function AxisIndicator(size:int) { super(); - this.var_32 = size; + this.§_-RS§ = size; } public function update(camera:GameCamera) : void @@ -26,7 +26,7 @@ package alternativa.tanks.game.camera this.axis[3] = camera.yAxis.y; this.axis[4] = camera.xAxis.z; this.axis[5] = camera.yAxis.z; - var halfSize:int = this.var_32 / 2; + var halfSize:int = this.§_-RS§ / 2; for(var i:int = 0,var bitOffset:int = 16; i < 6; i += 2,bitOffset -= 8) { kx = this.axis[i] + 1; @@ -39,7 +39,7 @@ package alternativa.tanks.game.camera public function get size() : int { - return this.var_32; + return this.§_-RS§; } } } diff --git a/src/alternativa/tanks/game/camera/CameraControllerBase.as b/src/alternativa/tanks/game/camera/CameraControllerBase.as index 03bd7d5..7fc7605 100644 --- a/src/alternativa/tanks/game/camera/CameraControllerBase.as +++ b/src/alternativa/tanks/game/camera/CameraControllerBase.as @@ -1,7 +1,7 @@ package alternativa.tanks.game.camera { + import alternativa.math.Vector3; import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_46.name_194; public class CameraControllerBase { @@ -12,35 +12,35 @@ package alternativa.tanks.game.camera super(); } - protected function name_201(position:name_194) : void + protected function setPosition(position:Vector3) : void { this.camera.x = position.x; this.camera.y = position.y; this.camera.z = position.z; } - protected function name_352(eulerAngles:name_194) : void + protected function setOrientation(eulerAngles:Vector3) : void { this.camera.rotationX = eulerAngles.x; this.camera.rotationY = eulerAngles.y; this.camera.rotationZ = eulerAngles.z; } - protected function method_479(rx:Number, ry:Number, rz:Number) : void + protected function setOrientationXYZ(rx:Number, ry:Number, rz:Number) : void { this.camera.rotationX = rx; this.camera.rotationY = ry; this.camera.rotationZ = rz; } - protected function method_532(dx:Number, dy:Number, dz:Number) : void + protected function moveBy(dx:Number, dy:Number, dz:Number) : void { this.camera.x += dx; this.camera.y += dy; this.camera.z += dz; } - protected function method_533(rx:Number, ry:Number, rz:Number) : void + protected function rotateBy(rx:Number, ry:Number, rz:Number) : void { this.camera.rotationX += rx; this.camera.rotationY += ry; diff --git a/src/alternativa/tanks/game/camera/FollowCameraController.as b/src/alternativa/tanks/game/camera/FollowCameraController.as deleted file mode 100644 index 8a8f6dd..0000000 --- a/src/alternativa/tanks/game/camera/FollowCameraController.as +++ /dev/null @@ -1,473 +0,0 @@ -package alternativa.tanks.game.camera -{ - import flash.ui.Keyboard; - import flash.utils.getTimer; - import alternativa.osgi.service.console.variables.ConsoleVarFloat; - import alternativa.osgi.service.console.variables.ConsoleVarInt; - import alternativa.tanks.game.Entity; - import alternativa.tanks.game.subsystems.rendersystem.ICameraController; - import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_19.name_380; - import package_21.name_78; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_27.name_501; - import package_45.name_182; - import package_46.Matrix3; - import package_46.Matrix4; - import package_46.name_194; - import package_47.name_193; - import package_76.name_256; - import package_90.name_273; - - public class FollowCameraController extends CameraControllerBase implements ICameraController - { - private static var parentMatrix:Matrix4 = new Matrix4(); - - private static var matrix:Matrix4 = new Matrix4(); - - public static var maxPositionError:Number = 10; - - public static var maxAngleError:Number = Math.PI / 180; - - public static var camSpeedThreshold:Number = 10; - - private static var fixedPitch:ConsoleVarFloat = new ConsoleVarFloat("cam_fixedpitch",10 * Math.PI / 180,-1,1); - - private static var noPitchCorrection:ConsoleVarInt = new ConsoleVarInt("cam_nopitchcorrection",1,0,1); - - private static var pitchCorrectionCoeff:ConsoleVarFloat = new ConsoleVarFloat("cam_pitchcorrectioncoeff",1,0,10); - - private static var reboundDelay:ConsoleVarInt = new ConsoleVarInt("cam_rebound",1000,0,2000); - - private static var elevationAngles:Vector. = new Vector.(1,true); - - private static var rotationMatrix:Matrix3 = new Matrix3(); - - private static var axis:name_194 = new name_194(); - - private static var rayDirection:name_194 = new name_194(); - - private static const MIN_CAMERA_ANGLE:Number = 5 * Math.PI / 180; - - private static const KEY_CAMERA_UP:uint = Keyboard.PAGE_UP; - - private static const ALT_KEY_CAMERA_UP:uint = 221; - - private static const KEY_CAMERA_DOWN:uint = Keyboard.PAGE_DOWN; - - private static const ALT_KEY_CAMERA_DOWN:uint = 219; - - private static const HEIGHT_CHANGE_STEP:Number = 50; - - private static const MIN_HEIGHT:Number = 150; - - private static const MAX_HEIGHT:Number = 3100; - - private static const MIN_DISTANCE:Number = 300; - - private static const COLLISION_OFFSET:Number = 50; - - private static var currentPosition:name_194 = new name_194(); - - private static var currentRotation:name_194 = new name_194(); - - private static var rayOrigin:name_194 = new name_194(); - - private static var flatDirection:name_194 = new name_194(); - - private static var positionDelta:name_194 = new name_194(); - - private static var rayHit:name_273 = new name_273(); - - private var collisionDetector:name_256; - - private var collisionMask:int; - - private var var_510:Number = 0; - - private var var_511:Number = 0; - - private var locked:Boolean; - - private var position:name_194 = new name_194(); - - private var rotation:name_194 = new name_194(); - - private var targetPosition:name_194 = new name_194(); - - private var targetDirection:name_194 = new name_194(); - - private var var_526:Number = 0; - - private var var_525:Number = 0; - - private var var_527:Number = 0; - - private var var_518:Number = 10000000; - - private var var_522:int; - - private var cameraPositionData:CameraPositionData = new CameraPositionData(); - - private var var_521:Number; - - private var var_528:Number = 0; - - private var input:IInput; - - private var var_515:name_380; - - public function FollowCameraController(camera:GameCamera, collisionDetector:name_256, collisionMask:int, input:IInput) - { - super(); - this.camera = camera; - if(collisionDetector == null) - { - throw new ArgumentError("Parameter collisionDetector cannot be null"); - } - this.collisionDetector = collisionDetector; - this.collisionMask = collisionMask; - this.input = input; - this.method_534 = 600; - } - - public function name_108() : void - { - } - - public function method_115(target:Entity) : void - { - if(target == null) - { - this.var_515 = null; - } - else - { - this.var_515 = name_193(target.getComponentStrict(name_193)).name_198; - } - } - - public function method_545() : void - { - noPitchCorrection.value = 1; - } - - public function method_544() : void - { - noPitchCorrection.value = 0; - } - - public function method_548(targetPosition:name_194, targetDirection:name_194) : void - { - this.targetPosition.copy(targetPosition); - this.targetDirection.copy(targetDirection); - this.var_522 = 0; - this.getCameraPositionData(targetPosition,targetDirection,false,10000,this.cameraPositionData); - this.position.copy(this.cameraPositionData.position); - this.rotation.x = this.getPitchAngle(this.cameraPositionData) - 0.5 * Math.PI; - this.rotation.z = Math.atan2(-targetDirection.x,targetDirection.y); - name_201(this.position); - name_352(this.rotation); - } - - public function method_549() : void - { - this.position.reset(camera.x,camera.y,camera.z); - this.rotation.reset(camera.rotationX,camera.rotationY,camera.rotationZ); - } - - public function update() : void - { - if(this.var_515 == null) - { - throw new Error("Target is not set"); - } - if(camera == null) - { - throw new Error("Camera is not set"); - } - var dt:Number = name_182.timeDeltaSeconds; - if(dt > 0.1) - { - dt = 0.1; - } - this.updateHeight(); - if(!this.locked) - { - this.updateTargetState(); - } - this.getCameraPositionData(this.targetPosition,this.targetDirection,true,dt,this.cameraPositionData); - positionDelta.method_366(this.cameraPositionData.position,this.position); - var positionError:Number = positionDelta.length(); - if(positionError > maxPositionError) - { - this.var_526 = this.getLinearSpeed(positionError - maxPositionError); - } - var distance:Number = this.var_526 * dt; - if(distance > positionError) - { - distance = positionError; - } - positionDelta.normalize().scale(distance); - var targetPitchAngle:Number = this.getPitchAngle(this.cameraPositionData); - var targetYawAngle:Number = Number(Math.atan2(-this.targetDirection.x,this.targetDirection.y)); - var currentPitchAngle:Number = name_501.name_506(this.rotation.x + 0.5 * Math.PI); - var currentYawAngle:Number = name_501.name_506(this.rotation.z); - var pitchError:Number = name_501.name_628(targetPitchAngle - currentPitchAngle); - this.var_525 = this.getAngularSpeed(pitchError,this.var_525); - var deltaPitch:Number = this.var_525 * dt; - if(pitchError > 0 && deltaPitch > pitchError || pitchError < 0 && deltaPitch < pitchError) - { - deltaPitch = pitchError; - } - var yawError:Number = name_501.name_628(targetYawAngle - currentYawAngle); - this.var_527 = this.getAngularSpeed(yawError,this.var_527); - var deltaYaw:Number = this.var_527 * dt; - if(yawError > 0 && deltaYaw > yawError || yawError < 0 && deltaYaw < yawError) - { - deltaYaw = yawError; - } - this.var_526 = this.snap(this.var_526,0,camSpeedThreshold); - this.var_525 = this.snap(this.var_525,0,camSpeedThreshold); - this.var_527 = this.snap(this.var_527,0,camSpeedThreshold); - this.position.add(positionDelta); - this.rotation.x += deltaPitch; - this.rotation.z += deltaYaw; - currentPosition.copy(this.position); - currentRotation.copy(this.rotation); - name_201(currentPosition); - name_352(currentRotation); - } - - public function method_550(locked:Boolean) : void - { - this.locked = locked; - } - - public function get method_534() : Number - { - return this.var_510; - } - - public function set method_534(value:Number) : void - { - this.var_510 = name_501.clamp(value,MIN_HEIGHT,MAX_HEIGHT); - var d:Number = this.getCamDistance(this.var_510); - this.var_521 = Math.atan2(this.var_510,d); - this.var_511 = Math.sqrt(this.var_510 * this.var_510 + d * d); - this.var_522 = 0; - } - - public function method_546(targetPosition:name_194, targetDirection:name_194, resultingPosition:name_194, resultingAngles:name_194) : void - { - this.getCameraPositionData(targetPosition,targetDirection,false,10000,this.cameraPositionData); - resultingAngles.x = this.getPitchAngle(this.cameraPositionData) - 0.5 * Math.PI; - resultingAngles.z = Math.atan2(-targetDirection.x,targetDirection.y); - resultingPosition.copy(this.cameraPositionData.position); - } - - private function getCameraPositionData(targetPosition:name_194, targetDirection:name_194, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void - { - var angle:Number = NaN; - var now:int = 0; - var delta:Number = NaN; - var actualElevation:Number = this.var_521; - var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y)); - if(xyLength < 0.00001) - { - flatDirection.x = 1; - flatDirection.y = 0; - } - else - { - flatDirection.x = targetDirection.x / xyLength; - flatDirection.y = targetDirection.y / xyLength; - } - result.extraPitch = 0; - result.t = 1; - var minCollisionDistance:Number = this.var_511; - rayOrigin.copy(targetPosition); - elevationAngles[0] = actualElevation; - axis.x = flatDirection.y; - axis.y = -flatDirection.x; - flatDirection.reverse(); - for each(angle in elevationAngles) - { - rotationMatrix.method_344(axis,-angle); - rotationMatrix.method_345(flatDirection,rayDirection); - minCollisionDistance = this.getCollisionDistance(rayOrigin,rayDirection,this.var_511,minCollisionDistance); - } - if(useReboundDelay) - { - now = int(getTimer()); - if(minCollisionDistance <= this.var_518 + 0.001) - { - this.var_518 = minCollisionDistance; - this.var_522 = now; - } - else if(now - this.var_522 < reboundDelay.value) - { - minCollisionDistance = this.var_518; - } - else - { - this.var_518 = minCollisionDistance; - } - } - if(minCollisionDistance < this.var_511) - { - result.t = minCollisionDistance / this.var_511; - if(minCollisionDistance < MIN_DISTANCE) - { - rayOrigin.method_362(minCollisionDistance,rayDirection); - delta = MIN_DISTANCE - minCollisionDistance; - if(this.collisionDetector.raycast(rayOrigin,name_194.Z_AXIS,this.collisionMask,delta,null,rayHit)) - { - delta = rayHit.t - 10; - if(delta < 0) - { - delta = 0; - } - } - result.position.copy(rayOrigin).method_362(delta,name_194.Z_AXIS); - } - else - { - result.position.copy(rayOrigin).method_362(minCollisionDistance,rayDirection); - } - } - else - { - result.position.copy(rayOrigin).method_362(this.var_511,rayDirection); - } - } - - private function getCollisionDistance(rayOrigin:name_194, rayDirection:name_194, rayLength:Number, minCollisionDistance:Number) : Number - { - var distance:Number = NaN; - if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,rayLength,null,rayHit)) - { - distance = rayHit.t; - if(distance < COLLISION_OFFSET) - { - distance = 0; - } - else - { - distance -= COLLISION_OFFSET; - } - if(distance < minCollisionDistance) - { - return distance; - } - } - return minCollisionDistance; - } - - private function updateTargetState() : void - { - this.setMatrix(this.var_515.parent,parentMatrix); - this.setMatrix(this.var_515,matrix); - matrix.append(parentMatrix); - matrix.getAxis(3,this.targetPosition); - this.targetDirection.reset(matrix.b,matrix.f,matrix.j); - } - - private function setMatrix(object:name_78, matrix:Matrix4) : void - { - matrix.name_196(object.rotationX,object.rotationY,object.rotationZ); - matrix.name_75(object.x,object.y,object.z); - } - - private function updateHeight() : void - { - var heightChangeDir:int = this.input.name_192(KEY_CAMERA_UP) - this.input.name_192(KEY_CAMERA_DOWN); - if(heightChangeDir != 0) - { - this.method_534 = this.var_510 + heightChangeDir * HEIGHT_CHANGE_STEP; - } - } - - private function getCamDistance(h:Number) : Number - { - var hMid:Number = 0.5 * (3300 + 200); - var a:Number = hMid; - var v:Number = 200 - hMid; - var k:Number = (1300 - 600) / (v * v); - return -k * (h - a) * (h - a) + 1300; - } - - private function getLinearSpeed(positionError:Number) : Number - { - return 3 * positionError; - } - - private function getAngularSpeed(angleError:Number, currentSpeed:Number) : Number - { - if(angleError < -maxAngleError) - { - return 3 * (angleError + maxAngleError); - } - if(angleError > maxAngleError) - { - return 3 * (angleError - maxAngleError); - } - return currentSpeed; - } - - private function snap(value:Number, snapValue:Number, epsilon:Number) : Number - { - if(value > snapValue - epsilon && value < snapValue + epsilon) - { - return snapValue; - } - return value; - } - - private function getPitchAngle(cameraPositionData:CameraPositionData) : Number - { - var angle:Number = this.var_521 - fixedPitch.value; - if(angle < 0) - { - angle = 0; - } - var t:Number = cameraPositionData.t; - if(t >= 1 || angle < MIN_CAMERA_ANGLE || noPitchCorrection.value == 1) - { - return cameraPositionData.extraPitch - angle; - } - return cameraPositionData.extraPitch - Math.atan2(t * this.var_510,pitchCorrectionCoeff.value * this.var_510 * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.var_521))); - } - - private function moveValueTowards(value:Number, targetValue:Number, delta:Number) : Number - { - if(value < targetValue) - { - value += delta; - return value > targetValue ? targetValue : value; - } - if(value > targetValue) - { - value -= delta; - return value < targetValue ? targetValue : value; - } - return value; - } - } -} - -import package_46.name_194; - -class CameraPositionData -{ - public var t:Number; - - public var extraPitch:Number; - - public var position:name_194 = new name_194(); - - public function CameraPositionData() - { - super(); - } -} diff --git a/src/alternativa/tanks/game/camera/FreeCameraController.as b/src/alternativa/tanks/game/camera/FreeCameraController.as index e003a85..2eee923 100644 --- a/src/alternativa/tanks/game/camera/FreeCameraController.as +++ b/src/alternativa/tanks/game/camera/FreeCameraController.as @@ -1,18 +1,18 @@ package alternativa.tanks.game.camera { - import flash.geom.Vector3D; - import alternativa.tanks.game.ObjectController; + import alternativa.engine3d.core.Object3D; + import alternativa.math.Matrix3; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; import alternativa.tanks.game.Entity; - import alternativa.utils.KeyboardUtils; - import alternativa.tanks.game.subsystems.rendersystem.ICameraController; - import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_21.name_78; + import alternativa.tanks.game.ObjectController; + import alternativa.tanks.game.entities.tank.graphics.turret.TurretGraphicsComponent; import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_45.name_182; - import package_46.Matrix3; - import package_46.Matrix4; - import package_46.name_194; - import package_47.name_193; + import alternativa.tanks.game.subsystems.rendersystem.GameCamera; + import alternativa.tanks.game.subsystems.rendersystem.ICameraController; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + import alternativa.utils.KeyboardUtils; + import flash.geom.Vector3D; public class FreeCameraController implements ICameraController { @@ -36,19 +36,19 @@ package alternativa.tanks.game.camera private static var matrix:Matrix3 = new Matrix3(); - private static var vector:name_194 = new name_194(); + private static var vector:Vector3 = new Vector3(); - public var var_50:Number = 0.01; + public var §_-eX§:Number = 0.01; - public var var_48:Number = 0.01; + public var §_-ma§:Number = 0.01; public var speed:Number = 500; - public var var_49:Number = 3; + public var §_-NF§:Number = 3; - private var var_47:Number = 0; + private var §_-ls§:Number = 0; - private var var_46:Number = 0; + private var §_-Z3§:Number = 0; private var currentPosition:Vector3D = new Vector3D(); @@ -56,11 +56,11 @@ package alternativa.tanks.game.camera private var controller:ObjectController; - private var target:name_78; + private var target:Object3D; private var parentMatrix:Matrix4 = new Matrix4(); - private var var_45:Matrix4 = new Matrix4(); + private var §_-Kj§:Matrix4 = new Matrix4(); public function FreeCameraController(camera:GameCamera, input:IInput) { @@ -68,39 +68,39 @@ package alternativa.tanks.game.camera this.input = input; this.controller = new ObjectController(); this.controller.object = camera; - this.var_46 = camera.rotationX; - this.var_47 = camera.rotationZ; + this.§_-Z3§ = camera.rotationX; + this.§_-ls§ = camera.rotationZ; this.currentPosition.x = camera.x; this.currentPosition.y = camera.y; this.currentPosition.z = camera.z; } - public function name_108() : void + public function enable() : void { - var object:name_78 = this.controller.object; - this.var_46 = object.rotationX; - this.var_47 = object.rotationZ; + var object:Object3D = this.controller.object; + this.§_-Z3§ = object.rotationX; + this.§_-ls§ = object.rotationZ; this.currentPosition.x = object.x; this.currentPosition.y = object.y; this.currentPosition.z = object.z; } - public function name_75(x:Number, y:Number, z:Number) : void + public function setPositionXYZ(x:Number, y:Number, z:Number) : void { - this.controller.name_201(x,y,z); + this.controller.setPosition(x,y,z); this.currentPosition.x = this.controller.object.x; this.currentPosition.y = this.controller.object.y; this.currentPosition.z = this.controller.object.z; } - public function name_76(x:Number, y:Number, z:Number) : void + public function lookAtXYZ(x:Number, y:Number, z:Number) : void { - this.controller.name_76(x,y,z); - this.var_46 = this.controller.object.rotationX; - this.var_47 = this.controller.object.rotationZ; + this.controller.lookAtXYZ(x,y,z); + this.§_-Z3§ = this.controller.object.rotationX; + this.§_-ls§ = this.controller.object.rotationZ; } - public function method_115(value:Entity) : void + public function setTarget(value:Entity) : void { if(value == null) { @@ -108,7 +108,7 @@ package alternativa.tanks.game.camera } else { - this.target = name_193(value.getComponentStrict(name_193)).name_198; + this.target = TurretGraphicsComponent(value.getComponentStrict(TurretGraphicsComponent)).turretMesh; } } @@ -120,22 +120,22 @@ package alternativa.tanks.game.camera var k:Number = NaN; var yaw:Number = NaN; var pitch:Number = NaN; - var timeDelta:Number = name_182.timeDeltaSeconds; + var timeDelta:Number = TimeSystem.timeDeltaSeconds; if(smoothing > 0) { k = 100 / smoothing * timeDelta; k = k > 1 ? 1 : k; } - if(this.input.name_199()) + if(this.input.mouseButtonPressed()) { - yaw = -this.input.name_197() * this.var_50; - pitch = -this.input.name_200() * this.var_48; - this.var_47 += yaw; - this.var_46 += pitch; + yaw = -this.input.getMouseDeltaX() * this.§_-eX§; + pitch = -this.input.getMouseDeltaY() * this.§_-ma§; + this.§_-ls§ += yaw; + this.§_-Z3§ += pitch; } - var object:name_78 = this.controller.object; - var drX:Number = this.var_46 - object.rotationX; - var drZ:Number = this.var_47 - object.rotationZ; + var object:Object3D = this.controller.object; + var drX:Number = this.§_-Z3§ - object.rotationX; + var drZ:Number = this.§_-ls§ - object.rotationZ; if(drX != 0 || drZ != 0) { if(smoothing > 0) @@ -146,16 +146,16 @@ package alternativa.tanks.game.camera object.rotationX += drX; object.rotationZ += drZ; } - vector.x = this.input.name_192(KEY_RIGHT) - this.input.name_192(KEY_LEFT); - vector.y = this.input.name_192(KEY_DOWN) - this.input.name_192(KEY_UP); - vector.z = this.input.name_192(KEY_FORWARD) - this.input.name_192(KEY_BACK); + vector.x = this.input.getKeyState(KEY_RIGHT) - this.input.getKeyState(KEY_LEFT); + vector.y = this.input.getKeyState(KEY_DOWN) - this.input.getKeyState(KEY_UP); + vector.z = this.input.getKeyState(KEY_FORWARD) - this.input.getKeyState(KEY_BACK); var moved:Boolean = vector.x != 0 || vector.y != 0 || vector.z != 0; if(moved) { vector.normalize(); - vector.scale(this.speed * timeDelta * (1 + this.input.name_192(KEY_SPEED) * (this.var_49 - 1))); + vector.scale(this.speed * timeDelta * (1 + this.input.getKeyState(KEY_SPEED) * (this.§_-NF§ - 1))); } - matrix.name_196(object.rotationX,object.rotationY,object.rotationZ); + matrix.setRotationMatrix(object.rotationX,object.rotationY,object.rotationZ); vector.reset(vector.x,vector.y,vector.z); vector.transform3(matrix); this.currentPosition.x += vector.x; @@ -180,9 +180,9 @@ package alternativa.tanks.game.camera if(targeted && this.target != null) { this.updateTargetState(); - dx = this.var_45.d - object.x; - dy = this.var_45.h - object.y; - dz = this.var_45.l - object.z; + dx = this.§_-Kj§.d - object.x; + dy = this.§_-Kj§.h - object.y; + dz = this.§_-Kj§.l - object.z; object.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)) - 0.5 * Math.PI; object.rotationY = 0; object.rotationZ = -Math.atan2(dx,dy); @@ -192,14 +192,14 @@ package alternativa.tanks.game.camera private function updateTargetState() : void { this.setMatrixFromObject(this.target.parent,this.parentMatrix); - this.setMatrixFromObject(this.target,this.var_45); - this.var_45.append(this.parentMatrix); + this.setMatrixFromObject(this.target,this.§_-Kj§); + this.§_-Kj§.append(this.parentMatrix); } - private function setMatrixFromObject(object:name_78, matrix:Matrix4) : void + private function setMatrixFromObject(object:Object3D, matrix:Matrix4) : void { - matrix.name_196(object.rotationX,object.rotationY,object.rotationZ); - matrix.name_75(object.x,object.y,object.z); + matrix.setRotationMatrix(object.rotationX,object.rotationY,object.rotationZ); + matrix.setPositionXYZ(object.x,object.y,object.z); } } } diff --git a/src/alternativa/tanks/game/camera/OrbitCameraController.as b/src/alternativa/tanks/game/camera/OrbitCameraController.as deleted file mode 100644 index 1820dc2..0000000 --- a/src/alternativa/tanks/game/camera/OrbitCameraController.as +++ /dev/null @@ -1,443 +0,0 @@ -package alternativa.tanks.game.camera -{ - import flash.ui.Keyboard; - import flash.utils.getTimer; - import alternativa.osgi.service.console.variables.ConsoleVarFloat; - import alternativa.osgi.service.console.variables.ConsoleVarInt; - import alternativa.tanks.game.Entity; - import alternativa.tanks.game.subsystems.rendersystem.ICameraController; - import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_19.name_380; - import package_21.name_78; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_27.name_501; - import package_45.name_182; - import package_46.Matrix3; - import package_46.Matrix4; - import package_46.name_194; - import package_47.name_193; - import package_76.name_256; - import package_90.name_273; - - public class OrbitCameraController extends CameraControllerBase implements ICameraController - { - private static var parentMatrix:Matrix4 = new Matrix4(); - - private static var matrix:Matrix4 = new Matrix4(); - - private static var maxPositionError:Number = 10; - - private static var maxAngleError:Number = Math.PI / 180; - - private static var camSpeedThreshold:Number = 10; - - private static var fixedPitch:ConsoleVarFloat = new ConsoleVarFloat("cam_fixedpitch",10 * Math.PI / 180,-1,1); - - private static var noPitchCorrection:ConsoleVarInt = new ConsoleVarInt("cam_nopitchcorrection",1,0,1); - - private static var pitchCorrectionCoeff:ConsoleVarFloat = new ConsoleVarFloat("cam_pitchcorrectioncoeff",1,0,10); - - private static var reboundDelay:ConsoleVarInt = new ConsoleVarInt("cam_rebound",1000,0,2000); - - private static var elevationAngles:Vector. = new Vector.(1,true); - - private static var rotationMatrix:Matrix3 = new Matrix3(); - - private static var axis:name_194 = new name_194(); - - private static var rayDirection:name_194 = new name_194(); - - private static const MIN_CAMERA_ANGLE:Number = 5 * Math.PI / 180; - - private static const KEY_CAMERA_UP:uint = Keyboard.PAGE_UP; - - private static const KEY_CAMERA_DOWN:uint = Keyboard.PAGE_DOWN; - - private static const HEIGHT_CHANGE_STEP:Number = 50; - - private static const MIN_HEIGHT:Number = 150; - - private static const MAX_HEIGHT:Number = 3100; - - private static const MIN_DISTANCE:Number = 300; - - private static const COLLISION_OFFSET:Number = 100; - - private static const targetOffset:name_194 = new name_194(0,0,50); - - private static var currentPosition:name_194 = new name_194(); - - private static var currentRotation:name_194 = new name_194(); - - private static var rayOrigin:name_194 = new name_194(); - - private static var flatDirection:name_194 = new name_194(); - - private static var positionDelta:name_194 = new name_194(); - - private static var rayHit:name_273 = new name_273(); - - private var collisionDetector:name_256; - - private var collisionMask:int; - - private var var_510:Number = 0; - - private var var_511:Number = 0; - - private var locked:Boolean; - - private var position:name_194 = new name_194(); - - private var rotation:name_194 = new name_194(); - - private var targetPosition:name_194 = new name_194(); - - private var targetDirection:name_194 = new name_194(); - - private var var_526:Number = 0; - - private var var_525:Number = 0; - - private var var_527:Number = 0; - - private var var_518:Number = 10000000; - - private var var_522:int; - - private var cameraPositionData:CameraPositionData = new CameraPositionData(); - - private var var_521:Number; - - private var input:IInput; - - private var var_515:name_380; - - private var var_514:Number = 0; - - private var var_513:Number = 0; - - private var var_516:Number = 1000; - - private var var_519:Number = 0; - - private var var_520:Number = 0; - - private var var_517:Number = 1000; - - public var smoothing:Number = 40; - - private var angles:name_194 = new name_194(); - - private var var_512:name_194 = new name_194(); - - private var rotationMatrix:Matrix4 = new Matrix4(); - - private var var_524:Matrix4 = new Matrix4(); - - private var var_523:name_194 = new name_194(); - - public function OrbitCameraController(camera:GameCamera, collisionDetector:name_256, collisionMask:int, input:IInput) - { - super(); - this.camera = camera; - if(collisionDetector == null) - { - throw new ArgumentError("Parameter collisionDetector cannot be null"); - } - this.collisionDetector = collisionDetector; - this.collisionMask = collisionMask; - this.input = input; - this.cameraHeight = 600; - } - - public function name_108() : void - { - } - - public function method_115(target:Entity) : void - { - if(target == null) - { - this.var_515 = null; - } - else - { - this.var_515 = name_193(target.getComponentStrict(name_193)).name_198; - } - } - - public function update() : void - { - if(this.var_515 == null) - { - throw new Error("Target is not set"); - } - if(camera == null) - { - throw new Error("Camera is not set"); - } - var dt:Number = name_182.timeDeltaSeconds; - if(dt > 0.1) - { - dt = 0.1; - } - this.updateTargetState(); - matrix.method_353(targetOffset,this.var_512); - var distanceChangeDir:int = this.input.name_192(KEY_CAMERA_UP) - this.input.name_192(KEY_CAMERA_DOWN) - this.input.method_261(); - if(distanceChangeDir != 0) - { - this.var_517 *= Math.pow(10,distanceChangeDir * 0.02); - } - if(this.input.name_199()) - { - this.var_519 -= this.input.name_200() * 0.01; - this.var_520 -= this.input.name_197() * 0.01; - } - var k:Number = 1; - if(this.smoothing > 0) - { - k = 100 / this.smoothing * dt; - k = k > 1 ? 1 : k; - this.var_514 += (this.var_519 - this.var_514) * k; - this.var_513 += (this.var_520 - this.var_513) * k; - } - else - { - this.var_514 = this.var_519; - this.var_513 = this.var_520; - } - this.rotationMatrix.name_196(this.var_514,0,this.var_513); - this.rotationMatrix.name_75(matrix.d,matrix.h,matrix.l); - matrix.getAxis(3,rayOrigin); - this.rotationMatrix.method_345(name_194.Y_AXIS,rayDirection); - rayDirection.reverse(); - var distance:Number = this.var_517; - if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,distance,null,rayHit)) - { - distance = rayHit.t - COLLISION_OFFSET; - } - if(distanceChangeDir != 0) - { - this.var_517 = distance; - } - if(this.smoothing > 0) - { - this.var_516 += (distance - this.var_516) * k; - } - else - { - this.var_516 = distance; - } - this.position.x = 0; - this.position.y = -this.var_516; - this.position.z = 0; - this.rotationMatrix.method_353(this.position,currentPosition); - camera.x = currentPosition.x; - camera.y = currentPosition.y; - camera.z = currentPosition.z; - var dx:Number = this.var_512.x - camera.x; - var dy:Number = this.var_512.y - camera.y; - var dz:Number = this.var_512.z - camera.z; - camera.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)) - 0.5 * Math.PI; - camera.rotationY = 0; - camera.rotationZ = -Math.atan2(dx,dy); - } - - private function set cameraHeight(value:Number) : void - { - this.var_510 = name_501.clamp(value,MIN_HEIGHT,MAX_HEIGHT); - var d:Number = this.getCamDistance(this.var_510); - this.var_521 = Math.atan2(this.var_510,d); - this.var_511 = Math.sqrt(this.var_510 * this.var_510 + d * d); - this.var_522 = 0; - } - - private function getCameraPositionData(targetPosition:name_194, targetDirection:name_194, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void - { - var angle:Number = NaN; - var now:int = 0; - var delta:Number = NaN; - var actualElevation:Number = this.var_521; - var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y)); - if(xyLength < 0.00001) - { - flatDirection.x = 1; - flatDirection.y = 0; - } - else - { - flatDirection.x = targetDirection.x / xyLength; - flatDirection.y = targetDirection.y / xyLength; - } - result.extraPitch = 0; - result.t = 1; - var minCollisionDistance:Number = this.var_511; - rayOrigin.copy(targetPosition); - elevationAngles[0] = actualElevation; - axis.x = flatDirection.y; - axis.y = -flatDirection.x; - flatDirection.reverse(); - for each(angle in elevationAngles) - { - this.rotationMatrix.method_344(axis,-angle); - this.rotationMatrix.method_345(flatDirection,rayDirection); - minCollisionDistance = this.getMinCollisionDistance(rayOrigin,rayDirection,this.var_511,minCollisionDistance); - } - if(useReboundDelay) - { - now = int(getTimer()); - if(minCollisionDistance <= this.var_518 + 0.001) - { - this.var_518 = minCollisionDistance; - this.var_522 = now; - } - else if(now - this.var_522 < reboundDelay.value) - { - minCollisionDistance = this.var_518; - } - else - { - this.var_518 = minCollisionDistance; - } - } - if(minCollisionDistance < this.var_511) - { - result.t = minCollisionDistance / this.var_511; - if(minCollisionDistance < MIN_DISTANCE) - { - rayOrigin.method_362(minCollisionDistance,rayDirection); - delta = MIN_DISTANCE - minCollisionDistance; - if(this.collisionDetector.raycast(rayOrigin,name_194.Z_AXIS,this.collisionMask,delta,null,rayHit)) - { - delta = rayHit.t - 10; - if(delta < 0) - { - delta = 0; - } - } - result.position.copy(rayOrigin).method_362(delta,name_194.Z_AXIS); - } - else - { - result.position.copy(rayOrigin).method_362(minCollisionDistance,rayDirection); - } - } - else - { - result.position.copy(rayOrigin).method_362(this.var_511,rayDirection); - } - } - - private function getMinCollisionDistance(rayOrigin:name_194, rayDirection:name_194, rayLength:Number, minCollisionDistance:Number) : Number - { - var distance:Number = NaN; - if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,rayLength,null,rayHit)) - { - distance = rayHit.t; - if(distance < COLLISION_OFFSET) - { - distance = 0; - } - else - { - distance -= COLLISION_OFFSET; - } - if(distance < minCollisionDistance) - { - return distance; - } - } - return minCollisionDistance; - } - - private function updateTargetState() : void - { - this.setMatrixFromObject(this.var_515.parent,parentMatrix); - this.setMatrixFromObject(this.var_515,matrix); - matrix.append(parentMatrix); - matrix.getAxis(3,this.targetPosition); - this.targetDirection.reset(matrix.b,matrix.f,matrix.j); - } - - private function setMatrixFromObject(object:name_78, matrix:Matrix4) : void - { - matrix.name_196(object.rotationX,object.rotationY,object.rotationZ); - matrix.name_75(object.x,object.y,object.z); - } - - private function updateHeight() : void - { - var heightChangeDir:int = this.input.name_192(KEY_CAMERA_UP) - this.input.name_192(KEY_CAMERA_DOWN); - if(heightChangeDir != 0) - { - this.cameraHeight = this.var_510 + heightChangeDir * HEIGHT_CHANGE_STEP; - } - } - - private function getCamDistance(h:Number) : Number - { - var v:Number = 200 - 1750; - var k:Number = (1300 - 600) / (v * v); - return -k * (h - 1750) * (h - 1750) + 1300; - } - - private function getLinearSpeed(positionError:Number) : Number - { - return 3 * positionError; - } - - private function getAngularSpeed(angleError:Number, currentSpeed:Number) : Number - { - if(angleError < -maxAngleError) - { - return 3 * (angleError + maxAngleError); - } - if(angleError > maxAngleError) - { - return 3 * (angleError - maxAngleError); - } - return currentSpeed; - } - - private function snap(value:Number, snapValue:Number, epsilon:Number) : Number - { - if(value > snapValue - epsilon && value < snapValue + epsilon) - { - return snapValue; - } - return value; - } - - private function getPitchAngle(cameraPositionData:CameraPositionData) : Number - { - var angle:Number = this.var_521 - fixedPitch.value; - if(angle < 0) - { - angle = 0; - } - var t:Number = cameraPositionData.t; - if(t >= 1 || angle < MIN_CAMERA_ANGLE || noPitchCorrection.value == 1) - { - return cameraPositionData.extraPitch - angle; - } - return cameraPositionData.extraPitch - Math.atan2(t * this.var_510,pitchCorrectionCoeff.value * this.var_510 * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.var_521))); - } - } -} - -import package_46.name_194; - -class CameraPositionData -{ - public var t:Number; - - public var extraPitch:Number; - - public var position:name_194 = new name_194(); - - public function CameraPositionData() - { - super(); - } -} diff --git a/src/package_72/name_264.as b/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as similarity index 60% rename from src/package_72/name_264.as rename to src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as index 5681d81..fe63da0 100644 --- a/src/package_72/name_264.as +++ b/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as @@ -1,30 +1,30 @@ -package package_72 +package alternativa.tanks.game.effects { import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.resources.Geometry; + import alternativa.math.Vector3; import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_19.name_380; - import alternativa.tanks.game.utils.objectpool.PooledObject; + import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_28.name_119; - import package_4.class_4; - import package_45.name_182; - import package_46.name_194; + import alternativa.tanks.game.utils.objectpool.PooledObject; use namespace alternativa3d; - public class name_264 extends PooledObject implements IGraphicEffect + public class AnimatedPlaneEffect extends PooledObject implements IGraphicEffect { - private static var geometry:name_119; + private static var geometry:Geometry; - private var plane:name_380; + private var plane:Mesh; - private var frames:Vector.; + private var frames:Vector.; private var fps:Number; - private var var_472:Number; + private var §_-5m§:Number; private var numFrames:int; @@ -34,25 +34,25 @@ package package_72 private var renderSystem:RenderSystem; - public function name_264(objectPool:ObjectPool) + public function AnimatedPlaneEffect(objectPool:ObjectPool) { super(objectPool); if(geometry == null) { - this.method_471(); + this.initGeometry(); } - this.plane = new name_380(); + this.plane = new Mesh(); this.plane.geometry = geometry; this.plane.addSurface(null,0,geometry.numTriangles); this.plane.calculateBoundBox(); } - public function init(startSize:Number, position:name_194, rotation:name_194, frames:Vector., fps:Number, sizeGrowSpeed:Number) : void + public function init(startSize:Number, position:Vector3, rotation:Vector3, frames:Vector., fps:Number, sizeGrowSpeed:Number) : void { this.frames = frames; this.fps = fps; this.sizeGrowSpeed = sizeGrowSpeed; - this.var_472 = 0; + this.§_-5m§ = 0; this.numFrames = frames.length; this.size = startSize; this.plane.scaleX = startSize; @@ -68,37 +68,37 @@ package package_72 public function addedToRenderSystem(renderSystem:RenderSystem) : void { this.renderSystem = renderSystem; - renderSystem.method_29(geometry); - renderSystem.method_60().addChild(this.plane); + renderSystem.useResource(geometry); + renderSystem.getEffectsContainer().addChild(this.plane); } public function play(camera:GameCamera) : Boolean { - if(this.var_472 >= this.numFrames) + if(this.§_-5m§ >= this.numFrames) { return false; } - this.plane.setMaterialToAllSurfaces(this.frames[int(this.var_472)]); + this.plane.setMaterialToAllSurfaces(this.frames[int(this.§_-5m§)]); this.plane.scaleX = this.size; this.plane.scaleY = this.size; - var dt:Number = name_182.timeDeltaSeconds; + var dt:Number = TimeSystem.timeDeltaSeconds; this.size += this.sizeGrowSpeed * dt; - this.var_472 += this.fps * dt; + this.§_-5m§ += this.fps * dt; return true; } public function destroy() : void { - this.renderSystem.method_28(geometry); + this.renderSystem.releaseResource(geometry); this.plane.alternativa3d::removeFromParent(); this.plane.setMaterialToAllSurfaces(null); this.frames = null; - method_254(); + storeInPool(); } - private function method_471() : void + private function initGeometry() : void { - geometry = new name_520(1,1).geometry; + geometry = new Plane(1,1).geometry; } } } diff --git a/src/package_72/name_239.as b/src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as similarity index 68% rename from src/package_72/name_239.as rename to src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as index 9349344..75a4377 100644 --- a/src/package_72/name_239.as +++ b/src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as @@ -1,61 +1,61 @@ -package package_72 +package alternativa.tanks.game.effects { import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.objects.Sprite3D; + import alternativa.math.Vector3; import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_19.name_494; - import alternativa.tanks.game.utils.objectpool.PooledObject; + import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_4.class_4; - import package_45.name_182; - import package_46.name_194; + import alternativa.tanks.game.utils.objectpool.PooledObject; - public class name_239 extends PooledObject implements IGraphicEffect + public class AnimatedSpriteEffect extends PooledObject implements IGraphicEffect { - private static var toCamera:name_194 = new name_194(); + private static var toCamera:Vector3 = new Vector3(); - private var sprite:name_494; + private var sprite:Sprite3D; private var offsetToCamera:Number; - private var var_458:Number; + private var §_-iD§:Number; private var currFrame:Number; - private var frames:Vector.; + private var frames:Vector.; private var numFrames:int; - private var position:name_194 = new name_194(); + private var position:Vector3 = new Vector3(); private var loop:Boolean; - public function name_239(objectPool:ObjectPool) + public function AnimatedSpriteEffect(objectPool:ObjectPool) { super(objectPool); } - public function init(width:Number, height:Number, frames:Vector., position:name_194, rotation:Number, offsetToCamera:Number, fps:Number, loop:Boolean, originX:Number = 0.5, originY:Number = 0.5) : void + public function init(width:Number, height:Number, frames:Vector., position:Vector3, rotation:Number, offsetToCamera:Number, fps:Number, loop:Boolean, originX:Number = 0.5, originY:Number = 0.5) : void { - this.method_444(width,height,rotation,originX,originY); + this.initSprite(width,height,rotation,originX,originY); this.frames = frames; this.offsetToCamera = offsetToCamera; - this.var_458 = 0.001 * fps; + this.§_-iD§ = 0.001 * fps; this.position.copy(position); this.loop = loop; this.numFrames = frames.length; this.currFrame = 0; } - public function name_201(position:name_194) : void + public function setPosition(position:Vector3) : void { this.position.copy(position); } public function addedToRenderSystem(system:RenderSystem) : void { - system.method_62().addChild(this.sprite); + system.getRootContainer().addChild(this.sprite); } public function play(camera:GameCamera) : Boolean @@ -72,7 +72,7 @@ package package_72 this.sprite.y = this.position.y + this.offsetToCamera * toCamera.y; this.sprite.z = this.position.z + this.offsetToCamera * toCamera.z; this.sprite.material = this.frames[int(this.currFrame)]; - this.currFrame += this.var_458 * name_182.timeDelta; + this.currFrame += this.§_-iD§ * TimeSystem.timeDelta; if(this.loop) { while(this.currFrame >= this.numFrames) @@ -88,20 +88,20 @@ package package_72 this.sprite.alternativa3d::removeFromParent(); this.sprite.material = null; this.frames = null; - method_254(); + storeInPool(); } - public function method_255() : void + public function kill() : void { this.loop = false; this.currFrame = this.numFrames; } - private function method_444(width:Number, height:Number, rotation:Number, originX:Number, originY:Number) : void + private function initSprite(width:Number, height:Number, rotation:Number, originX:Number, originY:Number) : void { if(this.sprite == null) { - this.sprite = new name_494(width,height); + this.sprite = new Sprite3D(width,height); } else { diff --git a/src/package_72/name_764.as b/src/alternativa/tanks/game/effects/Blinker.as similarity index 52% rename from src/package_72/name_764.as rename to src/alternativa/tanks/game/effects/Blinker.as index 4787d7f..7db156c 100644 --- a/src/package_72/name_764.as +++ b/src/alternativa/tanks/game/effects/Blinker.as @@ -1,6 +1,6 @@ -package package_72 +package alternativa.tanks.game.effects { - public class name_764 + public class Blinker { private var initialInterval:int; @@ -18,13 +18,13 @@ package package_72 private var speed:Number; - private var var_738:Number; + private var §_-Jr§:Number; - private var var_739:int; + private var §_-KH§:int; - private var var_737:int; + private var §_-EE§:int; - public function name_764(initialInterval:int, minInterval:int, intervalDecrement:int, minValue:Number, maxValue:Number, speedCoeff:Number) + public function Blinker(initialInterval:int, minInterval:int, intervalDecrement:int, minValue:Number, maxValue:Number, speedCoeff:Number) { super(); this.initialInterval = initialInterval; @@ -33,38 +33,38 @@ package package_72 this.minValue = minValue; this.maxValue = maxValue; this.speedCoeff = speedCoeff; - this.var_738 = maxValue - minValue; + this.§_-Jr§ = maxValue - minValue; } public function init(now:int) : void { this.value = this.maxValue; - this.var_737 = this.initialInterval; - this.speed = this.method_930(-1); - this.var_739 = now + this.var_737; + this.§_-EE§ = this.initialInterval; + this.speed = this.getSpeed(-1); + this.§_-KH§ = now + this.§_-EE§; } - public function method_931(value:Number) : void + public function setMaxValue(value:Number) : void { if(value < this.minValue) { return; } this.maxValue = value; - this.var_738 = this.maxValue - this.minValue; + this.§_-Jr§ = this.maxValue - this.minValue; } - public function name_765(value:Number) : void + public function setMinValue(value:Number) : void { if(value > this.maxValue) { return; } this.minValue = value; - this.var_738 = this.maxValue - this.minValue; + this.§_-Jr§ = this.maxValue - this.minValue; } - public function name_766(now:int, delta:int) : Number + public function updateValue(now:int, delta:int) : Number { this.value += this.speed * delta; if(this.value > this.maxValue) @@ -75,32 +75,32 @@ package package_72 { this.value = this.minValue; } - if(now >= this.var_739) + if(now >= this.§_-KH§) { - if(this.var_737 > this.minInterval) + if(this.§_-EE§ > this.minInterval) { - this.var_737 -= this.intervalDecrement; - if(this.var_737 < this.minInterval) + this.§_-EE§ -= this.intervalDecrement; + if(this.§_-EE§ < this.minInterval) { - this.var_737 = this.minInterval; + this.§_-EE§ = this.minInterval; } } - this.var_739 = now + this.var_737; + this.§_-KH§ = now + this.§_-EE§; if(this.speed < 0) { - this.speed = this.method_930(1); + this.speed = this.getSpeed(1); } else { - this.speed = this.method_930(-1); + this.speed = this.getSpeed(-1); } } return this.value; } - private function method_930(direction:Number) : Number + private function getSpeed(direction:Number) : Number { - return direction * this.speedCoeff * this.var_738 / this.var_737; + return direction * this.speedCoeff * this.§_-Jr§ / this.§_-EE§; } } } diff --git a/src/package_72/name_242.as b/src/alternativa/tanks/game/effects/ColorTransformEntry.as similarity index 56% rename from src/package_72/name_242.as rename to src/alternativa/tanks/game/effects/ColorTransformEntry.as index 3f22cd4..a255a87 100644 --- a/src/package_72/name_242.as +++ b/src/alternativa/tanks/game/effects/ColorTransformEntry.as @@ -1,12 +1,12 @@ -package package_72 +package alternativa.tanks.game.effects { import flash.geom.ColorTransform; - public class name_242 extends ColorTransform + public class ColorTransformEntry extends ColorTransform { public var t:Number; - public function name_242(t:Number, redMultiplier:Number = 1, greenMultiplier:Number = 1, blueMultiplier:Number = 1, alphaMultiplier:Number = 1, redOffset:Number = 0, greenOffset:Number = 0, blueOffset:Number = 0, alphaOffset:Number = 0) + public function ColorTransformEntry(t:Number, redMultiplier:Number = 1, greenMultiplier:Number = 1, blueMultiplier:Number = 1, alphaMultiplier:Number = 1, redOffset:Number = 0, greenOffset:Number = 0, blueOffset:Number = 0, alphaOffset:Number = 0) { super(); this.t = t; diff --git a/src/alternativa/tanks/game/effects/IAreaOfEffectSFX.as b/src/alternativa/tanks/game/effects/IAreaOfEffectSFX.as new file mode 100644 index 0000000..0acd99e --- /dev/null +++ b/src/alternativa/tanks/game/effects/IAreaOfEffectSFX.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.effects +{ + import alternativa.math.Vector3; + + public interface IAreaOfEffectSFX + { + function createEffects(param1:Vector3, param2:Number, param3:Number) : void; + } +} + diff --git a/src/package_72/name_260.as b/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as similarity index 65% rename from src/package_72/name_260.as rename to src/alternativa/tanks/game/effects/MovingAnimatedSprite.as index 6a83162..6ec0c03 100644 --- a/src/package_72/name_260.as +++ b/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as @@ -1,46 +1,46 @@ -package package_72 +package alternativa.tanks.game.effects { import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.objects.Sprite3D; + import alternativa.math.Vector3; import alternativa.tanks.game.subsystems.rendersystem.GameCamera; - import package_19.name_494; - import alternativa.tanks.game.utils.objectpool.PooledObject; + import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_4.class_4; - import package_45.name_182; - import package_46.name_194; + import alternativa.tanks.game.utils.objectpool.PooledObject; - public class name_260 extends PooledObject implements IGraphicEffect + public class MovingAnimatedSprite extends PooledObject implements IGraphicEffect { - private var sprite:name_494; + private var sprite:Sprite3D; - private var var_458:Number; + private var §_-iD§:Number; private var currFrame:Number; - private var frames:Vector.; + private var frames:Vector.; private var numFrames:int; - private var position:name_194 = new name_194(); + private var position:Vector3 = new Vector3(); private var loop:Boolean; - private var velocity:name_194 = new name_194(); + private var velocity:Vector3 = new Vector3(); private var acceleration:Number; - public function name_260(objectPool:ObjectPool) + public function MovingAnimatedSprite(objectPool:ObjectPool) { super(objectPool); } - public function init(width:Number, height:Number, frames:Vector., position:name_194, velocity:name_194, acceleration:Number, rotation:Number, fps:Number, loop:Boolean, originX:Number = 0.5, originY:Number = 0.5) : void + public function init(width:Number, height:Number, frames:Vector., position:Vector3, velocity:Vector3, acceleration:Number, rotation:Number, fps:Number, loop:Boolean, originX:Number = 0.5, originY:Number = 0.5) : void { - this.method_444(width,height,rotation,originX,originY); + this.initSprite(width,height,rotation,originX,originY); this.frames = frames; - this.var_458 = 0.001 * fps; + this.§_-iD§ = 0.001 * fps; this.position.copy(position); this.velocity.copy(velocity); this.acceleration = acceleration; @@ -49,14 +49,14 @@ package package_72 this.currFrame = 0; } - public function name_201(position:name_194) : void + public function setPosition(position:Vector3) : void { this.position.copy(position); } public function addedToRenderSystem(system:RenderSystem) : void { - system.method_60().addChild(this.sprite); + system.getEffectsContainer().addChild(this.sprite); } public function play(camera:GameCamera) : Boolean @@ -65,11 +65,11 @@ package package_72 { return false; } - var dt:Number = name_182.timeDeltaSeconds; + var dt:Number = TimeSystem.timeDeltaSeconds; this.sprite.x = this.position.x; this.sprite.y = this.position.y; this.sprite.z = this.position.z; - this.position.method_362(dt,this.velocity); + this.position.addScaled(dt,this.velocity); var speed:Number = this.velocity.length(); speed += this.acceleration * dt; if(speed <= 0) @@ -86,7 +86,7 @@ package package_72 this.velocity.z *= speed; } this.sprite.material = this.frames[int(this.currFrame)]; - this.currFrame += this.var_458 * name_182.timeDelta; + this.currFrame += this.§_-iD§ * TimeSystem.timeDelta; if(this.loop) { while(this.currFrame >= this.numFrames) @@ -102,20 +102,20 @@ package package_72 this.sprite.alternativa3d::removeFromParent(); this.sprite.material = null; this.frames = null; - method_254(); + storeInPool(); } - public function method_255() : void + public function kill() : void { this.loop = false; this.currFrame = this.numFrames; } - private function method_444(width:Number, height:Number, rotation:Number, originX:Number, originY:Number) : void + private function initSprite(width:Number, height:Number, rotation:Number, originX:Number, originY:Number) : void { if(this.sprite == null) { - this.sprite = new name_494(width,height); + this.sprite = new Sprite3D(width,height); } else { diff --git a/src/package_72/name_520.as b/src/alternativa/tanks/game/effects/Plane.as similarity index 54% rename from src/package_72/name_520.as rename to src/alternativa/tanks/game/effects/Plane.as index 7c58226..757c099 100644 --- a/src/package_72/name_520.as +++ b/src/alternativa/tanks/game/effects/Plane.as @@ -1,21 +1,21 @@ -package package_72 +package alternativa.tanks.game.effects { - import package_19.name_380; - import package_21.name_126; - import package_28.name_119; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.resources.Geometry; - public class name_520 extends name_380 + public class Plane extends Mesh { - public function name_520(sizeX:Number, sizeY:Number, offsetX:Number = 0, offsetY:Number = 0) + public function Plane(sizeX:Number, sizeY:Number, offsetX:Number = 0, offsetY:Number = 0) { super(); - geometry = new name_119(); + geometry = new Geometry(); var attributes:Array = []; - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; - attributes[3] = name_126.TEXCOORDS[0]; - attributes[4] = name_126.TEXCOORDS[0]; + attributes[0] = VertexAttributes.POSITION; + attributes[1] = VertexAttributes.POSITION; + attributes[2] = VertexAttributes.POSITION; + attributes[3] = VertexAttributes.TEXCOORDS[0]; + attributes[4] = VertexAttributes.TEXCOORDS[0]; geometry.addVertexStream(attributes); geometry.numVertices = 4; var vc:Vector. = new Vector.(12); @@ -33,7 +33,7 @@ package package_72 vc[9] = offsetX - hsx; vc[10] = offsetY + hsy; vc[11] = 0; - geometry.setAttributeValues(name_126.POSITION,vc); + geometry.setAttributeValues(VertexAttributes.POSITION,vc); var uvs:Vector. = new Vector.(8); uvs[0] = 0; uvs[1] = 1; @@ -43,7 +43,7 @@ package package_72 uvs[5] = 0; uvs[6] = 0; uvs[7] = 0; - geometry.setAttributeValues(name_126.TEXCOORDS[0],uvs); + geometry.setAttributeValues(VertexAttributes.TEXCOORDS[0],uvs); geometry.indices = Vector.([0,1,2,0,2,3]); addSurface(null,0,2); calculateBoundBox(); diff --git a/src/alternativa/tanks/game/entities/EmptyState.as b/src/alternativa/tanks/game/entities/EmptyState.as new file mode 100644 index 0000000..160604a --- /dev/null +++ b/src/alternativa/tanks/game/entities/EmptyState.as @@ -0,0 +1,21 @@ +package alternativa.tanks.game.entities +{ + public class EmptyState implements IComponentState + { + public static const INSTANCE:EmptyState = new EmptyState(); + + public function EmptyState() + { + super(); + } + + public function start(data:*) : void + { + } + + public function stop() : void + { + } + } +} + diff --git a/src/alternativa/tanks/game/entities/EventStates.as b/src/alternativa/tanks/game/entities/EventStates.as new file mode 100644 index 0000000..5fd27d9 --- /dev/null +++ b/src/alternativa/tanks/game/entities/EventStates.as @@ -0,0 +1,39 @@ +package alternativa.tanks.game.entities +{ + import alternativa.tanks.game.Entity; + + public class EventStates + { + public var §_-Ah§:IComponentState; + + private var §_-eB§:Object; + + public function EventStates() + { + super(); + this.§_-eB§ = new Object(); + } + + public function setEventState(entity:Entity, eventType:String, eventState:IComponentState) : void + { + if(this.§_-eB§[eventType] != null) + { + throw new Error("Duplicate event type: " + eventType); + } + this.§_-eB§[eventType] = eventState; + entity.addEventHandler(eventType,this.onEvent); + } + + public function onEvent(eventName:String, data:*) : void + { + var newState:IComponentState = this.§_-eB§[eventName]; + if(newState != this.§_-Ah§) + { + this.§_-Ah§.stop(); + this.§_-Ah§ = newState; + this.§_-Ah§.start(data); + } + } + } +} + diff --git a/src/package_114/class_35.as b/src/alternativa/tanks/game/entities/IComponentState.as similarity index 51% rename from src/package_114/class_35.as rename to src/alternativa/tanks/game/entities/IComponentState.as index 927201e..aa0a98b 100644 --- a/src/package_114/class_35.as +++ b/src/alternativa/tanks/game/entities/IComponentState.as @@ -1,6 +1,6 @@ -package package_114 +package alternativa.tanks.game.entities { - public interface class_35 + public interface IComponentState { function start(param1:*) : void; diff --git a/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as b/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as deleted file mode 100644 index 3667112..0000000 --- a/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as +++ /dev/null @@ -1,444 +0,0 @@ -package alternativa.tanks.game.entities.map -{ - import alternativa.engine3d.alternativa3d; - import flash.display.BitmapData; - import flash.events.Event; - import flash.events.EventDispatcher; - import flash.utils.ByteArray; - import package_116.name_529; - import package_116.name_530; - import package_116.name_641; - import alternativa.utils.ByteArrayMap; - import package_19.name_117; - import package_19.name_380; - import package_19.name_91; - import package_21.name_116; - import package_21.name_78; - import package_27.name_170; - import package_27.name_642; - import package_28.name_129; - import package_28.name_167; - import package_28.name_241; - import package_28.name_259; - import package_28.name_93; - import alternativa.tanks.game.entities.tank.graphics.materials.TreesMaterial; - import package_4.name_643; - import package_76.name_235; - import package_86.name_257; - - use namespace alternativa3d; - - public class A3DMapBuilder extends EventDispatcher - { - public static const MAIN_FILE:String = "main.a3d"; - - public static const ADDITIONAL_FILES_START:String = "part"; - - public static const TREES_FILE:String = "trees.a3d"; - - public static const MARKET_FILE:String = "market.a3d"; - - public static const PHYSICS_FILE:String = "physics.a3d"; - - public static const BEAMS_FILE:String = "beams.a3d"; - - public static const LIGHTS_FILE:String = "lights.dae"; - - private static const COLLISION_MASK:int = 255; - - private static var fakeEmissionTextureResource:name_93 = new name_93(new BitmapData(1,1,false,8355711)); - - private static var fakeBumpTextureResource:name_93 = new name_93(new BitmapData(1,1,false,8355839)); - - private var var_346:Vector. = new Vector.(); - - private var var_569:Vector.; - - private var var_16:Vector.; - - private var var_406:Vector. = new Vector.(); - - private var var_570:name_170; - - private var mapFiles:ByteArrayMap; - - private var collector:Vector.; - - private var var_571:name_259 = new name_259(new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680)); - - public function A3DMapBuilder() - { - super(); - } - - public function get objects() : Vector. - { - return this.var_346; - } - - public function get collisionPrimitives() : Vector. - { - return this.var_569; - } - - public function get lights() : Vector. - { - return this.var_16; - } - - public function get decals() : Vector. - { - return this.var_406; - } - - public function name_385(mapFiles:ByteArrayMap) : void - { - var geometryFileName:String = null; - this.mapFiles = mapFiles; - var mapGeometryFiles:Vector. = this.getMapGeometryFiles(mapFiles); - this.collector = new Vector.(); - this.var_570 = new name_170(); - for each(geometryFileName in mapGeometryFiles) - { - this.var_570.addTask(new GeometryBuildTask(mapFiles.name_248(geometryFileName),this.collector)); - } - this.var_570.addEventListener(Event.COMPLETE,this.onGeometryComplete); - this.var_570.run(); - } - - private function onGeometryComplete(event:Event) : void - { - var surface:name_117 = null; - var object:name_78 = null; - var mesh:name_380 = null; - var meshName:String = null; - var decal:name_91 = null; - var resourceCache:Object = {}; - for each(object in this.collector) - { - mesh = object as name_380; - if(mesh != null) - { - meshName = mesh.name.toLowerCase(); - if(meshName.indexOf("decal") >= 0) - { - decal = new name_91(1.5); - decal.name = meshName; - decal.useShadow = true; - decal.geometry = mesh.geometry; - decal.alternativa3d::var_92 = mesh.alternativa3d::var_92; - decal.alternativa3d::var_93 = mesh.alternativa3d::var_93; - for each(surface in decal.alternativa3d::var_92) - { - surface.alternativa3d::object = decal; - } - decal.boundBox = mesh.boundBox; - decal.matrix = mesh.matrix; - mesh = decal; - this.var_406.push(decal); - } - mesh.calculateBoundBox(); - this.setupMaterials(mesh,resourceCache); - this.var_346.push(mesh); - } - } - this.collector = null; - this.var_570 = null; - this.parseTrees(this.mapFiles.name_248(TREES_FILE)); - this.parseReflections(this.mapFiles.name_248(MARKET_FILE)); - this.parseBeams(this.mapFiles.name_248(BEAMS_FILE)); - this.parseLights(this.mapFiles.name_248(LIGHTS_FILE)); - this.parseCollisionGeometry(this.mapFiles.name_248(PHYSICS_FILE)); - dispatchEvent(new Event(Event.COMPLETE)); - } - - private function parseReflections(data:ByteArray) : void - { - var parser:name_529 = null; - var resourceCache:Object = null; - var object:name_78 = null; - var mesh:name_380 = null; - var i:int = 0; - var surface:name_117 = null; - var material:name_641 = null; - var diffName:String = null; - var diffuse:name_129 = null; - var bump:name_129 = null; - var opacity:name_129 = null; - var emission:name_129 = null; - var reflection:name_129 = null; - var envMaterial:name_643 = null; - if(data != null) - { - parser = new name_529(); - parser.method_314(data); - resourceCache = {}; - for each(object in parser.objects) - { - mesh = object as name_380; - if(mesh != null) - { - for(i = 0; i < mesh.method_217; ) - { - surface = mesh.method_216(i); - if(surface.material != null) - { - material = name_641(surface.material); - diffName = name_167(material.textures["diffuse"]).url; - diffuse = this.getCompressedTextureResource(material.textures["diffuse"],resourceCache,this.mapFiles); - bump = this.getCompressedTextureResource(material.textures["bump"],resourceCache,this.mapFiles); - opacity = this.getCompressedTextureResource(material.textures["transparent"],resourceCache,this.mapFiles); - emission = this.getCompressedTextureResource(material.textures["emission"],resourceCache,this.mapFiles); - if(diffName.indexOf("vetrino01") >= 0) - { - reflection = this.getCompressedTextureResource(new name_167("vetrino_rfl.atf"),resourceCache,this.mapFiles); - envMaterial = new name_643(diffuse,this.var_571,null,reflection,emission,opacity); - envMaterial.reflection = 0.4; - surface.material = envMaterial; - } - else - { - surface.material = new MapMaterial(diffuse,emission,1,opacity); - } - } - i++; - } - this.var_346.push(mesh); - } - } - } - } - - private function setupMaterials(mesh:name_380, resourceCache:Object) : void - { - var surface:name_117 = null; - var parserMaterial:name_641 = null; - var diffuseTextureResource:name_129 = null; - var emissionTextureResource:name_129 = null; - var opacityTextureResource:name_129 = null; - var material:MapMaterial = null; - for each(surface in mesh.alternativa3d::var_92) - { - parserMaterial = surface.material as name_641; - if(parserMaterial != null) - { - diffuseTextureResource = this.getCompressedTextureResource(parserMaterial.textures["diffuse"],resourceCache,this.mapFiles); - emissionTextureResource = this.getCompressedTextureResource(parserMaterial.textures["emission"],resourceCache,this.mapFiles); - opacityTextureResource = this.getCompressedTextureResource(parserMaterial.textures["transparent"],resourceCache,this.mapFiles); - if(emissionTextureResource == null) - { - material = new MapMaterial(diffuseTextureResource,fakeEmissionTextureResource,0,opacityTextureResource); - } - else - { - material = new MapMaterial(diffuseTextureResource,emissionTextureResource,1,opacityTextureResource); - } - surface.material = material; - } - } - } - - private function getMapGeometryFiles(mapFiles:ByteArrayMap) : Vector. - { - var name:String = null; - var names:Vector. = new Vector.(); - names.push(MAIN_FILE); - for(name in mapFiles.data) - { - if(name.indexOf(ADDITIONAL_FILES_START) == 0 && name.indexOf(".a3d") > 0) - { - names.push(name); - } - } - return names; - } - - private function parseTrees(data:ByteArray) : void - { - var parser:name_529 = null; - var resourceCache:Object = null; - var object:name_78 = null; - var mesh:name_380 = null; - var i:int = 0; - var surface:name_117 = null; - var material:name_641 = null; - var diffuse:name_129 = null; - var bump:name_129 = null; - var opacity:name_129 = null; - var trMaterial:TreesMaterial = null; - if(data != null) - { - parser = new name_529(); - parser.method_314(data); - resourceCache = {}; - for each(object in parser.objects) - { - mesh = object as name_380; - if(mesh != null) - { - for(i = 0; i < mesh.method_217; ) - { - surface = mesh.method_216(i); - if(surface.material != null) - { - material = name_641(surface.material); - diffuse = this.getCompressedTextureResource(material.textures["diffuse"],resourceCache,this.mapFiles); - bump = this.getCompressedTextureResource(material.textures["bump"],resourceCache,this.mapFiles); - opacity = this.getCompressedTextureResource(material.textures["transparent"],resourceCache,this.mapFiles); - trMaterial = new TreesMaterial(diffuse,fakeBumpTextureResource,null,null,opacity); - trMaterial.var_25 = 0; - trMaterial.alphaThreshold = 0.2; - surface.material = trMaterial; - } - i++; - } - this.var_346.push(mesh); - } - } - } - } - - private function parseBeams(data:ByteArray) : void - { - var object:name_78 = null; - var mesh:name_380 = null; - var i:int = 0; - var surface:name_117 = null; - var material:name_641 = null; - var diffuse:name_129 = null; - var opacity:name_129 = null; - if(data == null) - { - return; - } - var parser:name_529 = new name_529(); - parser.method_314(data); - var resourceCache:Object = {}; - for each(object in parser.objects) - { - mesh = object as name_380; - if(mesh != null) - { - for(i = 0; i < mesh.method_217; ) - { - surface = mesh.method_216(i); - if(surface.material != null) - { - material = name_641(surface.material); - diffuse = this.getCompressedTextureResource(material.textures["diffuse"],resourceCache,this.mapFiles); - opacity = this.getCompressedTextureResource(material.textures["transparent"],resourceCache,this.mapFiles); - surface.material = new VisibleLightMaterial(opacity); - } - i++; - } - this.var_346.push(mesh); - } - } - } - - private function parseLights(lightsData:ByteArray) : void - { - var parserCollada:name_530 = null; - var numLights:uint = 0; - var i:int = 0; - if(lightsData != null) - { - parserCollada = new name_530(); - parserCollada.method_314(XML(lightsData.toString())); - numLights = uint(parserCollada.lights.length); - this.var_16 = new Vector.(numLights); - for(i = 0; i < numLights; i++) - { - this.var_16[i] = parserCollada.lights[i]; - name_116(this.var_16[i]).alternativa3d::removeFromParent(); - } - } - } - - private function getCompressedTextureResource(fileTextureResource:name_167, resourceCache:Object, mapFiles:ByteArrayMap) : name_241 - { - var textureName:String = null; - var resource:name_241 = null; - var textureData:ByteArray = null; - if(fileTextureResource != null && Boolean(fileTextureResource.url)) - { - textureName = fileTextureResource.url.toLowerCase(); - textureName = textureName.replace(".png",".atf"); - textureName = textureName.replace(".jpg",".atf"); - if(mapFiles.name_248(textureName) != null) - { - resource = resourceCache[textureName]; - if(resource == null) - { - textureData = mapFiles.name_248(textureName); - resource = new name_241(textureData); - resourceCache[textureName] = resource; - } - return resource; - } - trace("[WARN] texture not found:",fileTextureResource.url.toLowerCase()); - } - return null; - } - - private function parseCollisionGeometry(a3dData:ByteArray) : void - { - var object:name_78 = null; - var objectName:String = null; - var parserA3D:name_529 = new name_529(); - parserA3D.method_314(a3dData); - this.var_569 = new Vector.(); - for each(object in parserA3D.objects) - { - if(object is name_380) - { - objectName = object.name.toLowerCase(); - if(objectName.indexOf("tri") == 0) - { - name_642.name_644(name_380(object),this.var_569,name_257.STATIC,COLLISION_MASK); - } - else if(objectName.indexOf("box") == 0) - { - name_642.name_646(name_380(object),this.var_569,name_257.STATIC,COLLISION_MASK); - } - else if(objectName.indexOf("plane") == 0) - { - name_642.name_645(name_380(object),this.var_569,name_257.STATIC,COLLISION_MASK); - } - } - } - } - } -} - -import flash.utils.ByteArray; -import flash.utils.setTimeout; -import package_116.name_529; -import package_21.name_78; -import package_27.class_7; - -class GeometryBuildTask extends class_7 -{ - private var data:ByteArray; - - private var collector:Vector.; - - public function GeometryBuildTask(data:ByteArray, collector:Vector.) - { - super(); - this.data = data; - this.collector = collector; - } - - override public function run() : void - { - var object:name_78 = null; - var parser:name_529 = new name_529(); - parser.method_314(this.data); - for each(object in parser.objects) - { - this.collector.push(object); - } - setTimeout(method_102,0); - } -} diff --git a/src/alternativa/tanks/game/entities/map/A3DMapComponent.as b/src/alternativa/tanks/game/entities/map/A3DMapComponent.as index c14dd87..82bcaad 100644 --- a/src/alternativa/tanks/game/entities/map/A3DMapComponent.as +++ b/src/alternativa/tanks/game/entities/map/A3DMapComponent.as @@ -1,45 +1,45 @@ package alternativa.tanks.game.entities.map { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Resource; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.lights.AmbientLight; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.lights.OmniLight; + import alternativa.engine3d.lights.SpotLight; + import alternativa.engine3d.materials.FillMaterial; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.objects.Decal; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.SkyBox; + import alternativa.engine3d.primitives.Box; + import alternativa.engine3d.resources.ATFTextureResource; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.osgi.OSGi; + import alternativa.osgi.service.console.IConsole; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.primitives.CollisionRect; + import alternativa.physics.collision.primitives.CollisionTriangle; + import alternativa.physics.collision.primitives.§_-m3§; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; + import alternativa.tanks.game.subsystems.physicssystem.PhysicsSystem; + import alternativa.tanks.game.subsystems.rendersystem.Lights; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.tanks.game.subsystems.rendersystem.SkyMaterial; + import alternativa.utils.ByteArrayMap; import flash.display.BitmapData; import flash.events.Event; import flash.ui.Keyboard; import flash.utils.ByteArray; import flash.utils.setTimeout; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_109.name_377; - import package_109.name_378; - import package_109.name_381; - import alternativa.utils.ByteArrayMap; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.SkyMaterial; - import alternativa.tanks.game.subsystems.rendersystem.Lights; - import package_19.name_380; - import package_19.name_53; - import package_19.name_91; - import package_21.name_116; - import package_21.name_126; - import package_21.name_77; - import package_21.name_78; - import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_24.SpotLight; - import package_24.name_376; - import package_28.name_119; - import package_28.name_241; - import package_28.name_93; - import package_4.class_4; - import package_4.class_5; - import package_4.name_313; - import package_44.name_178; - import package_46.Matrix4; - import package_46.name_194; - import alternativa.osgi.OSGi; - import alternativa.osgi.service.console.IConsole; - import package_76.name_235; - import package_96.name_279; use namespace alternativa3d; @@ -53,15 +53,15 @@ package alternativa.tanks.game.entities.map private var skyboxSize:Number; - private var var_89:A3DMapBuilder; + private var §_-Zy§:A3DMapBuilder; private var gameKernel:GameKernel; - private var var_90:Number = 1.5; + private var §_-9h§:Number = 1.5; private var listener:IA3DMapComponentListener; - private var var_91:Boolean = true; + private var §_-RZ§:Boolean = true; public function A3DMapComponent(files:ByteArrayMap, skyboxFiles:ByteArrayMap, skyboxSize:Number, listener:IA3DMapComponentListener) { @@ -80,7 +80,7 @@ package alternativa.tanks.game.entities.map { this.gameKernel = gameKernel; this.createSkybox(); - gameKernel.name_66().name_94(KeyboardEventType.KEY_DOWN,this.onKeyDown); + gameKernel.getInputSystem().addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKeyDown); if(gameKernel.options[MapOptions.FAKE_MAP] != null) { this.buildFakeMap(); @@ -93,50 +93,50 @@ package alternativa.tanks.game.entities.map private function createSkybox() : void { - var skyBox:name_53 = null; + var skyBox:SkyBox = null; var surfaceIds:Array = null; var surfaceId:String = null; var renderSystem:RenderSystem = null; - var container:name_78 = null; + var container:Object3D = null; var texture:ByteArray = null; - var textureResource:name_241 = null; + var textureResource:ATFTextureResource = null; if(this.skyboxFiles != null) { - skyBox = new name_53(this.skyboxSize); - surfaceIds = [name_53.BACK,name_53.BOTTOM,name_53.FRONT,name_53.LEFT,name_53.RIGHT,name_53.TOP]; + skyBox = new SkyBox(this.skyboxSize); + surfaceIds = [SkyBox.BACK,SkyBox.BOTTOM,SkyBox.FRONT,SkyBox.LEFT,SkyBox.RIGHT,SkyBox.TOP]; for each(surfaceId in surfaceIds) { - texture = this.skyboxFiles.name_248(surfaceId); - textureResource = new name_241(texture); - skyBox.name_383(surfaceId).material = new SkyMaterial(textureResource); + texture = this.skyboxFiles.getValue(surfaceId); + textureResource = new ATFTextureResource(texture); + skyBox.getSide(surfaceId).material = new SkyMaterial(textureResource); } - renderSystem = this.gameKernel.name_5(); - renderSystem.method_32(skyBox.getResources(true)); - container = renderSystem.method_40(RenderSystem.SKYBOX_CONTAINER_ID); + renderSystem = this.gameKernel.getRenderSystem(); + renderSystem.useResources(skyBox.getResources(true)); + container = renderSystem.getContainer(RenderSystem.SKYBOX_CONTAINER_ID); container.addChild(skyBox); } } override public function removeFromGame(gameKernel:GameKernel) : void { - var object:name_78 = null; + var object:Object3D = null; var lights:Lights = null; - var light:name_116 = null; - var renderSystem:RenderSystem = gameKernel.name_5(); - var mapGeometryContainer:name_78 = renderSystem.method_68(); - for each(object in this.var_89.objects) + var light:Light3D = null; + var renderSystem:RenderSystem = gameKernel.getRenderSystem(); + var mapGeometryContainer:Object3D = renderSystem.getMapGeometryContainer(); + for each(object in this.§_-Zy§.objects) { mapGeometryContainer.removeChild(object); } - renderSystem.method_31(mapGeometryContainer.getResources(true)); + renderSystem.releaseResources(mapGeometryContainer.getResources(true)); lights = renderSystem.lights; - for each(light in this.var_89.lights) + for each(light in this.§_-Zy§.lights) { if(light is DirectionalLight) { lights.directionalLigths.remove(DirectionalLight(light)); } - else if(light is name_376) + else if(light is AmbientLight) { lights.ambientLight = null; } @@ -149,15 +149,15 @@ package alternativa.tanks.game.entities.map lights.omniLigths.remove(OmniLight(light)); } } - gameKernel.name_66().name_384(KeyboardEventType.KEY_DOWN,this.onKeyDown); + gameKernel.getInputSystem().removeKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKeyDown); this.gameKernel = null; } private function buildRealMap() : void { - this.var_89 = new A3DMapBuilder(); - this.var_89.addEventListener(Event.COMPLETE,this.onBuildingComplete); - this.var_89.name_385(this.files); + this.§_-Zy§ = new A3DMapBuilder(); + this.§_-Zy§.addEventListener(Event.COMPLETE,this.onBuildingComplete); + this.§_-Zy§.buildMap(this.files); } private function onBuildingComplete(event:Event) : void @@ -170,7 +170,7 @@ package alternativa.tanks.game.entities.map private function complete() : void { - this.gameKernel.name_5().method_58(); + this.gameKernel.getRenderSystem().setShadowSystemReady(); if(this.listener != null) { this.listener.onA3DMapComplete(); @@ -180,15 +180,15 @@ package alternativa.tanks.game.entities.map private function initLights() : DirectionalLight { var staticShadowLight:DirectionalLight = null; - var light:name_116 = null; + var light:Light3D = null; if(Boolean(this.gameKernel.options["fakelight"])) { this.initFakeLight(); return null; } - var renderSystem:RenderSystem = this.gameKernel.name_5(); + var renderSystem:RenderSystem = this.gameKernel.getRenderSystem(); var lights:Lights = renderSystem.lights; - for each(light in this.var_89.lights) + for each(light in this.§_-Zy§.lights) { if(light is DirectionalLight) { @@ -198,9 +198,9 @@ package alternativa.tanks.game.entities.map } lights.directionalLigths.add(DirectionalLight(light)); } - else if(light is name_376) + else if(light is AmbientLight) { - lights.ambientLight = name_376(light); + lights.ambientLight = AmbientLight(light); } else if(light is SpotLight) { @@ -210,11 +210,11 @@ package alternativa.tanks.game.entities.map { lights.omniLigths.add(OmniLight(light)); } - if(light is name_376 || light is DirectionalLight) + if(light is AmbientLight || light is DirectionalLight) { light.intensity *= 2; } - if(light is DirectionalLight || light is name_376) + if(light is DirectionalLight || light is AmbientLight) { light.boundBox = null; } @@ -228,80 +228,80 @@ package alternativa.tanks.game.entities.map private function initFakeLight() : void { - this.gameKernel.name_5().lights.ambientLight = new name_376(16777215); + this.gameKernel.getRenderSystem().lights.ambientLight = new AmbientLight(16777215); } private function initGraphics(staticShadowLight:DirectionalLight) : void { - var object:name_78 = null; - var renderSystem:RenderSystem = this.gameKernel.name_5(); - var mapGeometryContainer:name_78 = renderSystem.method_68(); - for each(object in this.var_89.objects) + var object:Object3D = null; + var renderSystem:RenderSystem = this.gameKernel.getRenderSystem(); + var mapGeometryContainer:Object3D = renderSystem.getMapGeometryContainer(); + for each(object in this.§_-Zy§.objects) { mapGeometryContainer.addChild(object); } - renderSystem.method_32(mapGeometryContainer.getResources(true)); + renderSystem.useResources(mapGeometryContainer.getResources(true)); if(staticShadowLight != null) { - renderSystem.method_71(staticShadowLight); + renderSystem.initStaticShadow(staticShadowLight); } } private function initPhysics() : void { var renderSystem:RenderSystem = null; - var physicsContainer:name_78 = null; - var physicsSystem:name_178 = this.gameKernel.method_112(); - physicsSystem.name_382(this.var_89.collisionPrimitives); + var physicsContainer:Object3D = null; + var physicsSystem:PhysicsSystem = this.gameKernel.getPhysicsSystem(); + physicsSystem.initCollisionGeometry(this.§_-Zy§.collisionPrimitives); if(this.gameKernel.options[MapOptions.VISUALIZE_PHYSICS] != null) { - renderSystem = this.gameKernel.name_5(); - physicsContainer = this.createPhysicsVisualObjects(this.var_89.collisionPrimitives); + renderSystem = this.gameKernel.getRenderSystem(); + physicsContainer = this.createPhysicsVisualObjects(this.§_-Zy§.collisionPrimitives); physicsContainer.visible = false; - renderSystem.method_47(PHYSICS_GEOMETRY,physicsContainer,true); + renderSystem.addContainer(PHYSICS_GEOMETRY,physicsContainer,true); } } - private function createPhysicsVisualObjects(collisionPrimitives:Vector.) : name_78 + private function createPhysicsVisualObjects(collisionPrimitives:Vector.) : Object3D { - var collisionPrimitive:name_235 = null; - var physicsVisualContainer:name_78 = new name_78(); - var boxMaterial:name_313 = new name_313(11141120); - var triangleMaterial:name_313 = new name_313(43520); + var collisionPrimitive:CollisionPrimitive = null; + var physicsVisualContainer:Object3D = new Object3D(); + var boxMaterial:FillMaterial = new FillMaterial(11141120); + var triangleMaterial:FillMaterial = new FillMaterial(43520); var numCollisionPrimitives:int = int(collisionPrimitives.length); for(var i:int = 0; i < numCollisionPrimitives; ) { collisionPrimitive = collisionPrimitives[i]; - if(collisionPrimitive is name_377) + if(collisionPrimitive is §_-m3§) { - physicsVisualContainer.addChild(this.createPhysicsVisualBox(name_377(collisionPrimitive),boxMaterial)); + physicsVisualContainer.addChild(this.createPhysicsVisualBox(§_-m3§(collisionPrimitive),boxMaterial)); } - else if(collisionPrimitive is name_378) + else if(collisionPrimitive is CollisionTriangle) { - physicsVisualContainer.addChild(this.createPhysicsVisualTriangle(name_378(collisionPrimitive),triangleMaterial)); + physicsVisualContainer.addChild(this.createPhysicsVisualTriangle(CollisionTriangle(collisionPrimitive),triangleMaterial)); } i++; } return physicsVisualContainer; } - private function createPhysicsVisualBox(collisionBox:name_377, material:class_4) : name_279 + private function createPhysicsVisualBox(collisionBox:§_-m3§, material:Material) : Box { - var size:name_194 = collisionBox.hs.clone().scale(2); - var box:name_279 = new name_279(size.x,size.y,size.z); + var size:Vector3 = collisionBox.hs.clone().scale(2); + var box:Box = new Box(size.x,size.y,size.z); box.setMaterialToAllSurfaces(material); this.setPhysicsTransform(collisionBox,box); return box; } - private function createPhysicsVisualTriangle(collisionTriangle:name_378, material:class_4) : name_380 + private function createPhysicsVisualTriangle(collisionTriangle:CollisionTriangle, material:Material) : Mesh { - var mesh:name_380 = new name_380(); - var geometry:name_119 = new name_119(); + var mesh:Mesh = new Mesh(); + var geometry:Geometry = new Geometry(); var attributes:Array = []; - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; + attributes[0] = VertexAttributes.POSITION; + attributes[1] = VertexAttributes.POSITION; + attributes[2] = VertexAttributes.POSITION; geometry.addVertexStream(attributes); geometry.numVertices = 3; var values:Vector. = new Vector.(9); @@ -314,7 +314,7 @@ package alternativa.tanks.game.entities.map values[6] = collisionTriangle.v2.x; values[7] = collisionTriangle.v2.y; values[8] = collisionTriangle.v2.z; - geometry.setAttributeValues(name_126.POSITION,values); + geometry.setAttributeValues(VertexAttributes.POSITION,values); geometry.indices = Vector.([0,1,2]); mesh.geometry = geometry; mesh.addSurface(material,0,1); @@ -323,11 +323,11 @@ package alternativa.tanks.game.entities.map return mesh; } - private function setPhysicsTransform(collisionPrimitive:name_235, object:name_78) : void + private function setPhysicsTransform(collisionPrimitive:CollisionPrimitive, object:Object3D) : void { var t:Matrix4 = collisionPrimitive.transform; - var eulerAngles:name_194 = new name_194(); - t.name_341(eulerAngles); + var eulerAngles:Vector3 = new Vector3(); + t.getEulerAngles(eulerAngles); object.x = t.d; object.y = t.h; object.z = t.l; @@ -338,33 +338,33 @@ package alternativa.tanks.game.entities.map private function buildFakeMap() : void { - var collisionRect:name_381 = new name_381(new name_194(20000,20000),1,255); - var collisionPrimitives:Vector. = Vector.([collisionRect]); - this.gameKernel.method_112().name_382(collisionPrimitives); - var renderSystem:RenderSystem = this.gameKernel.name_5(); - renderSystem.method_40(RenderSystem.LIGHTS_CONTAINER_ID).addChild(new name_376(16777215)); + var collisionRect:CollisionRect = new CollisionRect(new Vector3(20000,20000),1,255); + var collisionPrimitives:Vector. = Vector.([collisionRect]); + this.gameKernel.getPhysicsSystem().initCollisionGeometry(collisionPrimitives); + var renderSystem:RenderSystem = this.gameKernel.getRenderSystem(); + renderSystem.getContainer(RenderSystem.LIGHTS_CONTAINER_ID).addChild(new AmbientLight(16777215)); this.addZeroMarker(renderSystem); var bitmapData:BitmapData = new BitmapData(512,512); bitmapData.perlinNoise(10,10,3,13,false,true); - var bitmapTextureResource:name_93 = new name_93(bitmapData); - var box:name_279 = new name_279(2 * 20000,2 * 20000,10); - box.setMaterialToAllSurfaces(new class_5(bitmapTextureResource)); + var bitmapTextureResource:BitmapTextureResource = new BitmapTextureResource(bitmapData); + var box:Box = new Box(2 * 20000,2 * 20000,10); + box.setMaterialToAllSurfaces(new TextureMaterial(bitmapTextureResource)); box.z = -5; - renderSystem.method_68().addChild(box); - renderSystem.method_32(box.getResources()); + renderSystem.getMapGeometryContainer().addChild(box); + renderSystem.useResources(box.getResources()); setTimeout(this.complete,0); } private function addZeroMarker(renderSystem:RenderSystem) : void { - var resource:name_77 = null; - var box:name_279 = new name_279(50,50,50); - box.setMaterialToAllSurfaces(new name_313(11141120)); + var resource:Resource = null; + var box:Box = new Box(50,50,50); + box.setMaterialToAllSurfaces(new FillMaterial(11141120)); for each(resource in box.getResources()) { - renderSystem.method_29(resource); + renderSystem.useResource(resource); } - renderSystem.method_68().addChild(box); + renderSystem.getMapGeometryContainer().addChild(box); } private function onKeyDown(eventType:KeyboardEventType, keyCode:uint) : void @@ -384,33 +384,33 @@ package alternativa.tanks.game.entities.map private function toggleDecals() : void { - var d:name_91 = null; - this.var_91 = !this.var_91; - for each(d in this.var_89.decals) + var d:Decal = null; + this.§_-RZ§ = !this.§_-RZ§; + for each(d in this.§_-Zy§.decals) { - d.visible = this.var_91; + d.visible = this.§_-RZ§; } } private function get decalsOffset() : Number { - return this.var_90; + return this.§_-9h§; } private function set decalsOffset(value:Number) : void { - var decal:name_91 = null; - this.var_90 = value; - for each(decal in this.var_89.decals) + var decal:Decal = null; + this.§_-9h§ = value; + for each(decal in this.§_-Zy§.decals) { - decal.offset = this.var_90; + decal.offset = this.§_-9h§; } - IConsole(OSGi.name_8().name_30(IConsole)).name_145("Decals offset: " + this.var_90); + IConsole(OSGi.getInstance().getService(IConsole)).addText("Decals offset: " + this.§_-9h§); } private function toggleGeometry(containerId:String) : void { - var container:name_78 = this.gameKernel.name_5().method_40(containerId); + var container:Object3D = this.gameKernel.getRenderSystem().getContainer(containerId); if(container != null) { container.visible = !container.visible; diff --git a/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as b/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as index bc91a9b..07fd078 100644 --- a/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as +++ b/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as @@ -1,32 +1,32 @@ package alternativa.tanks.game.entities.map { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.A3DUtils; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DProgramType; import flash.display3D.VertexBuffer3D; import flash.utils.Dictionary; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_28.name_119; - import package_28.name_129; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; - import package_4.name_127; - import package_4.name_28; use namespace alternativa3d; - public class VisibleLightMaterial extends class_4 + public class VisibleLightMaterial extends Material { public static var fadeRadius:Number = 100; @@ -36,13 +36,13 @@ package alternativa.tanks.game.entities.map private static var _programs:Dictionary = new Dictionary(); - private static const passColorProcedure:name_114 = new name_114(["#a0=aUV","#v0=vUV","#v1=vCameraPos","#v2=vNormal","#c0=cCameraPos","mov v0, a0","sub v1, c0, i0","mov v2, i1"],"passColor"); + private static const passColorProcedure:Procedure = new Procedure(["#a0=aUV","#v0=vUV","#v1=vCameraPos","#v2=vNormal","#c0=cCameraPos","mov v0, a0","sub v1, c0, i0","mov v2, i1"],"passColor"); - private static const outputProcedure:name_114 = new name_114(["#v0=vUV","#v1=vCameraPos","#v2=vNormal","#c0=cZone","#s0=sTexture","dp3 t1.w, v1, v1","rsq t1.w, t1.w","mul t0.xyz, v1.xyz, t1.w","nrm t1.xyz, v2","dp3 t1.x, t0.xyz, t1.xyz","add t1.x, t1.x, c0.z","mul t1.x, t1.x, c0.y","sat t1.x, t1.x","div t1.w, c0.x, t1.w","sat t1.w, t1.w","mul t1.x, t1.x, t1.w","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul t0, t0.x, t1.x","mov o0, t0"],"output"); + private static const outputProcedure:Procedure = new Procedure(["#v0=vUV","#v1=vCameraPos","#v2=vNormal","#c0=cZone","#s0=sTexture","dp3 t1.w, v1, v1","rsq t1.w, t1.w","mul t0.xyz, v1.xyz, t1.w","nrm t1.xyz, v2","dp3 t1.x, t0.xyz, t1.xyz","add t1.x, t1.x, c0.z","mul t1.x, t1.x, c0.y","sat t1.x, t1.x","div t1.w, c0.x, t1.w","sat t1.w, t1.w","mul t1.x, t1.x, t1.w","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul t0, t0.x, t1.x","mov o0, t0"],"output"); - public var texture:name_129; + public var texture:TextureResource; - public function VisibleLightMaterial(texture:name_129) + public function VisibleLightMaterial(texture:TextureResource) { super(); this.texture = texture; @@ -51,83 +51,83 @@ package alternativa.tanks.game.entities.map override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.texture != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.texture)) as Class,resourceType))) + if(this.texture != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.texture)) as Class,resourceType))) { resources[this.texture] = true; } } - private function setupProgram(targetObject:name_78) : name_127 + private function final(targetObject:Object3D) : ShaderProgram { - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(targetObject.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); var normalVar:String = "aNormal"; - vertexLinker.name_120(normalVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(normalVar,VariableType.ATTRIBUTE); if(targetObject.alternativa3d::deltaTransformProcedure != null) { - vertexLinker.name_120("tTransformedNormal"); - vertexLinker.name_123(targetObject.alternativa3d::deltaTransformProcedure); - vertexLinker.name_118(targetObject.alternativa3d::deltaTransformProcedure,normalVar); - vertexLinker.name_125(targetObject.alternativa3d::deltaTransformProcedure,"tTransformedNormal"); + vertexLinker.declareVariable("tTransformedNormal"); + vertexLinker.addProcedure(targetObject.alternativa3d::deltaTransformProcedure); + vertexLinker.setInputParams(targetObject.alternativa3d::deltaTransformProcedure,normalVar); + vertexLinker.setOutputParams(targetObject.alternativa3d::deltaTransformProcedure,"tTransformedNormal"); normalVar = "tTransformedNormal"; } - vertexLinker.name_123(passColorProcedure); - vertexLinker.name_118(passColorProcedure,positionVar,normalVar); - fragmentLinker.name_123(outputProcedure); - fragmentLinker.name_133(vertexLinker); - vertexLinker.name_142(); - fragmentLinker.name_142(); - return new name_127(vertexLinker,fragmentLinker); + vertexLinker.addProcedure(passColorProcedure); + vertexLinker.setInputParams(passColorProcedure,positionVar,normalVar); + fragmentLinker.addProcedure(outputProcedure); + fragmentLinker.setOppositeLinker(vertexLinker); + vertexLinker.link(); + fragmentLinker.link(); + return new ShaderProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { if(this.texture == null || this.texture.alternativa3d::_texture == null) { return; } - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.NORMAL); + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.NORMAL); if(positionBuffer == null || uvBuffer == null || normalsBuffer == null) { return; } - var object:name_78 = surface.alternativa3d::object; - var program:name_127 = _programs[object.alternativa3d::transformProcedure]; + var object:Object3D = surface.alternativa3d::object; + var program:ShaderProgram = _programs[object.alternativa3d::transformProcedure]; if(program == null) { - program = this.setupProgram(object); + program = this.final(object); program.upload(camera.alternativa3d::context3D); _programs[object.alternativa3d::transformProcedure] = program; } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.NORMAL],name_126.alternativa3d::FORMATS[name_126.NORMAL]); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix") << 2,object.alternativa3d::localToCameraTransform); - var tm:name_139 = object.alternativa3d::cameraToLocalTransform; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cCameraPos"),tm.d,tm.h,tm.l); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix") << 2,object.alternativa3d::localToCameraTransform); + var tm:Transform3D = object.alternativa3d::cameraToLocalTransform; + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cCameraPos"),tm.d,tm.h,tm.l); var offset:Number = Number(Math.cos(fallofAngle / 2)); var mul:Number = Math.cos(spotAngle / 2) - offset; if(mul < 0.00001) { mul = 0.00001; } - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cZone"),1 / fadeRadius,(1 - offset) / mul,-offset); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cZone"),1 / fadeRadius,(1 - offset) / mul,-offset); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.texture.alternativa3d::_texture); drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT); } } } diff --git a/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as b/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as new file mode 100644 index 0000000..cf34b77 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as @@ -0,0 +1,132 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameEvents; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.subsystems.inputsystem.IInput; + import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; + import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; + import alternativa.tanks.game.weapons.IBasicWeapon; + import alternativa.utils.KeyboardUtils; + + public class BasicWeaponManualControlComponent extends EntityComponent implements ILogicUnit + { + private static const KEY_FIRE:uint = KeyboardUtils.SPACE; + + private var gameKernel:GameKernel; + + private var enabled:Boolean; + + private var §_-lp§:IBasicWeapon; + + private var §_-89§:Boolean; + + private var §_-ZM§:Boolean; + + public function BasicWeaponManualControlComponent() + { + super(); + } + + override public function initComponent() : void + { + this.§_-lp§ = IBasicWeapon(entity.getComponentStrict(IBasicWeapon)); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.onSetActiveState); + entity.addEventHandler(TankEvents.SET_DISABLED_STATE,this.onSetInactiveState); + entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + var inputSystem:IInput = gameKernel.getInputSystem(); + inputSystem.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKey,KEY_FIRE); + inputSystem.addKeyboardListener(KeyboardEventType.KEY_UP,this.onKey,KEY_FIRE); + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + this.disable(); + var inputSystem:IInput = gameKernel.getInputSystem(); + inputSystem.removeKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKey,KEY_FIRE); + inputSystem.removeKeyboardListener(KeyboardEventType.KEY_UP,this.onKey,KEY_FIRE); + } + + public function runLogic() : void + { + if(this.§_-89§) + { + this.§_-lp§.pullTrigger(); + if(this.§_-ZM§) + { + this.§_-lp§.forceUpdate(); + } + } + if(this.§_-ZM§) + { + this.§_-lp§.releaseTrigger(); + } + this.§_-89§ = false; + this.§_-ZM§ = false; + } + + private function onKey(eventType:KeyboardEventType, keyCode:uint) : void + { + switch(eventType) + { + case KeyboardEventType.KEY_DOWN: + this.§_-89§ = true; + if(!this.enabled) + { + this.§_-ZM§ = false; + } + break; + case KeyboardEventType.KEY_UP: + this.§_-ZM§ = true; + if(!this.enabled) + { + this.§_-lp§.releaseTrigger(); + this.§_-89§ = false; + break; + } + } + } + + private function enable() : void + { + if(!this.enabled) + { + this.enabled = true; + this.gameKernel.getLogicSystem1().addLogicUnit(this); + } + } + + private function disable() : void + { + if(this.enabled) + { + this.enabled = false; + this.gameKernel.getLogicSystem1().removeLogicUnit(this); + } + } + + private function onSetInactiveState(eventType:String, data:*) : void + { + this.disable(); + } + + private function onSetActiveState(eventType:String, data:*) : void + { + this.enable(); + } + + private function onBattleFinished(gameType:String, gameData:*) : void + { + this.disable(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/IActivatingStateCallback.as b/src/alternativa/tanks/game/entities/tank/IActivatingStateCallback.as new file mode 100644 index 0000000..677a29c --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/IActivatingStateCallback.as @@ -0,0 +1,8 @@ +package alternativa.tanks.game.entities.tank +{ + public interface IActivatingStateCallback + { + function onCanActivate() : void; + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/IChassisManualControlCallback.as b/src/alternativa/tanks/game/entities/tank/IChassisManualControlCallback.as new file mode 100644 index 0000000..03aff8b --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/IChassisManualControlCallback.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.entities.tank +{ + public interface IChassisManualControlCallback + { + function onControlChanged(param1:int, param2:int, param3:Boolean) : void; + + function onSync() : void; + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/IControllableTrackedChassisComponent.as b/src/alternativa/tanks/game/entities/tank/IControllableTrackedChassisComponent.as new file mode 100644 index 0000000..3e35d3f --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/IControllableTrackedChassisComponent.as @@ -0,0 +1,27 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.math.Quaternion; + import alternativa.math.Vector3; + + public interface IControllableTrackedChassisComponent + { + function setChassisControls(param1:int, param2:int, param3:Boolean, param4:Boolean = false) : Boolean; + + function setPosition(param1:Vector3) : void; + + function setPositionXYZ(param1:Number, param2:Number, param3:Number) : void; + + function setLinearVelocity(param1:Vector3) : void; + + function setLinearVelocityXYZ(param1:Number, param2:Number, param3:Number) : void; + + function setAngularVelocity(param1:Vector3) : void; + + function setAngularVelocityXYZ(param1:Number, param2:Number, param3:Number) : void; + + function setOrientation(param1:Quaternion) : void; + + function setOrientationXYZ(param1:Number, param2:Number, param3:Number) : void; + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/ITurretManualControlCallback.as b/src/alternativa/tanks/game/entities/tank/ITurretManualControlCallback.as new file mode 100644 index 0000000..a1deb1e --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/ITurretManualControlCallback.as @@ -0,0 +1,8 @@ +package alternativa.tanks.game.entities.tank +{ + public interface ITurretManualControlCallback + { + function onTurretControlChanged(param1:int, param2:Boolean) : void; + } +} + diff --git a/src/package_71/name_278.as b/src/alternativa/tanks/game/entities/tank/TankControlComponent.as similarity index 52% rename from src/package_71/name_278.as rename to src/alternativa/tanks/game/entities/tank/TankControlComponent.as index 9e576f5..cda50da 100644 --- a/src/package_71/name_278.as +++ b/src/alternativa/tanks/game/entities/tank/TankControlComponent.as @@ -1,42 +1,42 @@ -package package_71 +package alternativa.tanks.game.entities.tank { - import flash.utils.Dictionary; import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; import alternativa.tanks.game.GameEvents; + import alternativa.tanks.game.GameKernel; import alternativa.tanks.game.subsystems.eventsystem.IGameEventListener; + import flash.utils.Dictionary; - public class name_278 extends EntityComponent implements IGameEventListener + public class TankControlComponent extends EntityComponent implements IGameEventListener { private static var stateEvents:Dictionary; private var gameKernel:GameKernel; - public function name_278() + public function TankControlComponent() { super(); if(stateEvents == null) { stateEvents = new Dictionary(); - stateEvents[name_563.ACTIVATING] = name_252.SET_ACTIVATING_STATE; - stateEvents[name_563.ACTIVE] = name_252.SET_ACTIVE_STATE; - stateEvents[name_563.DEAD] = name_252.SET_DEAD_STATE; - stateEvents[name_563.IN_RESPAWN] = name_252.SET_RESPAWN_STATE; + stateEvents[TankGameState.ACTIVATING] = TankEvents.SET_ACTIVATING_STATE; + stateEvents[TankGameState.ACTIVE] = TankEvents.SET_ACTIVE_STATE; + stateEvents[TankGameState.DEAD] = TankEvents.SET_DEAD_STATE; + stateEvents[TankGameState.IN_RESPAWN] = TankEvents.SET_RESPAWN_STATE; } } override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - gameKernel.name_61().addEventListener(GameEvents.BATTLE_FINISHED,this); + gameKernel.getEventSystem().addEventListener(GameEvents.BATTLE_FINISHED,this); } override public function removeFromGame(gameKernel:GameKernel) : void { - gameKernel.name_61().removeEventListener(GameEvents.BATTLE_FINISHED,this); + gameKernel.getEventSystem().removeEventListener(GameEvents.BATTLE_FINISHED,this); } - public function method_470(state:name_563, data:* = undefined) : void + public function setState(state:TankGameState, data:* = undefined) : void { var eventType:String = stateEvents[state]; if(Boolean(eventType)) @@ -45,7 +45,7 @@ package package_71 } } - public function method_146(eventType:String, eventData:*) : void + public function onGameEvent(eventType:String, eventData:*) : void { entity.dispatchEvent(eventType,eventData); } diff --git a/src/package_71/name_252.as b/src/alternativa/tanks/game/entities/tank/TankEvents.as similarity index 79% rename from src/package_71/name_252.as rename to src/alternativa/tanks/game/entities/tank/TankEvents.as index 30805a4..f41b500 100644 --- a/src/package_71/name_252.as +++ b/src/alternativa/tanks/game/entities/tank/TankEvents.as @@ -1,6 +1,6 @@ -package package_71 +package alternativa.tanks.game.entities.tank { - public class name_252 + public class TankEvents { public static const SET_ACTIVATING_STATE:String = "setActivatingState"; @@ -14,7 +14,7 @@ package package_71 public static const SET_DISABLED_STATE:String = "setDisabledState"; - public function name_252() + public function TankEvents() { super(); } diff --git a/src/alternativa/tanks/game/entities/tank/TankGameState.as b/src/alternativa/tanks/game/entities/tank/TankGameState.as new file mode 100644 index 0000000..de18b1d --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TankGameState.as @@ -0,0 +1,31 @@ +package alternativa.tanks.game.entities.tank +{ + public class TankGameState + { + public static const PAUSED:TankGameState = new TankGameState("PAUSED"); + + public static const DEAD:TankGameState = new TankGameState("DEAD"); + + public static const ACTIVATING:TankGameState = new TankGameState("ACTIVATING"); + + public static const ACTIVE:TankGameState = new TankGameState("ACTIVE"); + + public static const IN_RESPAWN:TankGameState = new TankGameState("IN_RESPAWN"); + + public static const DISABLED:TankGameState = new TankGameState("DISABLED"); + + private var stringValue:String; + + public function TankGameState(code:String) + { + super(); + this.stringValue = code; + } + + public function toString() : String + { + return this.stringValue; + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TankHull.as b/src/alternativa/tanks/game/entities/tank/TankHull.as new file mode 100644 index 0000000..d93b985 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TankHull.as @@ -0,0 +1,44 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.Skin; + import alternativa.math.Vector3; + import alternativa.tanks.game.physics.BoxData; + + public class TankHull extends TankPart + { + public var §_-Sh§:Vector3 = new Vector3(); + + public var §_-Rj§:Vector3 = new Vector3(); + + public var §_-EN§:Vector3 = new Vector3(); + + public var §_-eh§:BoxData; + + public var §_-AE§:Vector. = new Vector.(); + + public var §_-KR§:Vector. = new Vector.(); + + public var §_-j9§:Vector. = new Vector.(); + + public var §_-Hd§:Vector. = new Vector.(); + + public var §_-DH§:Number = 1; + + public var §_-EY§:Vector. = new Vector.(); + + public var §_-M4§:Vector. = new Vector.(); + + public var §_-Ei§:Skin; + + public var §_-iA§:Skin; + + public var shadow:Mesh; + + public function TankHull() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TankPart.as b/src/alternativa/tanks/game/entities/tank/TankPart.as new file mode 100644 index 0000000..71910d7 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TankPart.as @@ -0,0 +1,20 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.engine3d.resources.Geometry; + import alternativa.utils.ByteArrayMap; + + public class TankPart + { + public var id:String; + + public var geometry:Geometry; + + public var textureData:ByteArrayMap = new ByteArrayMap(); + + public function TankPart() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TankPartMaterials.as b/src/alternativa/tanks/game/entities/tank/TankPartMaterials.as new file mode 100644 index 0000000..a3ced87 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TankPartMaterials.as @@ -0,0 +1,19 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.engine3d.materials.TextureMaterial; + + public class TankPartMaterials + { + public var normalMaterial:TextureMaterial; + + public var deadMaterial:TextureMaterial; + + public function TankPartMaterials(normalMaterial:TextureMaterial, deadMaterial:TextureMaterial) + { + super(); + this.normalMaterial = normalMaterial; + this.deadMaterial = deadMaterial; + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TankTurret.as b/src/alternativa/tanks/game/entities/tank/TankTurret.as new file mode 100644 index 0000000..be12f4a --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TankTurret.as @@ -0,0 +1,20 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.math.Vector3; + import alternativa.tanks.game.physics.BoxData; + + public class TankTurret extends TankPart + { + public var §_-Of§:Vector. = new Vector.(); + + public var §_-O3§:Vector. = new Vector.(); + + public var §_-G3§:Vector3 = new Vector3(); + + public function TankTurret() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TankWheel.as b/src/alternativa/tanks/game/entities/tank/TankWheel.as new file mode 100644 index 0000000..b4ffbca --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TankWheel.as @@ -0,0 +1,23 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.engine3d.resources.Geometry; + import alternativa.math.Vector3; + + public class TankWheel + { + public var name:String; + + public var geometry:Geometry; + + public var position:Vector3; + + public function TankWheel(name:String, geometry:Geometry, position:Vector3) + { + super(); + this.name = name; + this.geometry = geometry; + this.position = position; + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as b/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as new file mode 100644 index 0000000..5a30feb --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as @@ -0,0 +1,114 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.osgi.service.console.variables.ConsoleVarInt; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameEvents; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.subsystems.inputsystem.IInput; + import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + import flash.ui.Keyboard; + + public class TrackedChassisManualControlComponent extends EntityComponent implements ILogicUnit + { + private static const KEY_FORWARD:uint = Keyboard.UP; + + private static const KEY_BACK:uint = Keyboard.DOWN; + + private static const KEY_LEFT:uint = Keyboard.LEFT; + + private static const KEY_RIGHT:uint = Keyboard.RIGHT; + + private static var conReverseBackTurn:ConsoleVarInt = new ConsoleVarInt("reverse_back_turn",1,0,1); + + private static const SYNC_INTERVAL:int = 4000; + + private var input:IInput; + + private var physicsComponent:IControllableTrackedChassisComponent; + + private var gameKernel:GameKernel; + + private var callback:IChassisManualControlCallback; + + private var enabled:Boolean; + + private var §_-de§:int; + + public function TrackedChassisManualControlComponent(callback:IChassisManualControlCallback) + { + super(); + this.callback = callback; + } + + override public function initComponent() : void + { + this.physicsComponent = IControllableTrackedChassisComponent(entity.getComponentStrict(IControllableTrackedChassisComponent)); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.onSetActiveState); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.onSetActiveState); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_DISABLED_STATE,this.onSetInactiveState); + entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + this.input = gameKernel.getInputSystem(); + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + this.disable(); + } + + public function runLogic() : void + { + var moveDirection:int = this.input.getKeyState(KEY_FORWARD) - this.input.getKeyState(KEY_BACK); + var turnDirection:int = this.input.getKeyState(KEY_RIGHT) - this.input.getKeyState(KEY_LEFT); + if(Boolean(this.physicsComponent.setChassisControls(moveDirection,turnDirection,Boolean(conReverseBackTurn.value))) || TimeSystem.time - this.§_-de§ > SYNC_INTERVAL) + { + if(this.callback != null) + { + this.callback.onControlChanged(moveDirection,turnDirection,Boolean(conReverseBackTurn.value)); + } + this.§_-de§ = TimeSystem.time; + } + } + + private function onSetActiveState(eventType:String, eventData:*) : void + { + this.enable(); + } + + private function onSetInactiveState(eventType:String, eventData:*) : void + { + this.disable(); + } + + private function enable() : void + { + if(!this.enabled) + { + this.enabled = true; + this.gameKernel.getLogicSystem1().addLogicUnit(this); + } + } + + private function disable() : void + { + if(this.enabled) + { + this.enabled = false; + this.gameKernel.getLogicSystem1().removeLogicUnit(this); + } + } + + private function onBattleFinished(gameType:String, gameData:*) : void + { + this.disable(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/TurretManualControlComponent.as b/src/alternativa/tanks/game/entities/tank/TurretManualControlComponent.as new file mode 100644 index 0000000..20f18ff --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/TurretManualControlComponent.as @@ -0,0 +1,119 @@ +package alternativa.tanks.game.entities.tank +{ + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameEvents; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.subsystems.inputsystem.IInput; + import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; + import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; + import alternativa.utils.KeyboardUtils; + + public class TurretManualControlComponent extends EntityComponent implements ILogicUnit + { + private static const KEY_LEFT:int = KeyboardUtils.Z; + + private static const KEY_RIGHT:int = KeyboardUtils.X; + + private static const KEY_CENTER:int = KeyboardUtils.C; + + private var callback:ITurretManualControlCallback; + + private var physicsComponent:ITurretPhysicsComponent; + + private var gameKernel:GameKernel; + + private var enabled:Boolean; + + private var center:Boolean; + + private var input:IInput; + + public function TurretManualControlComponent(callback:ITurretManualControlCallback) + { + super(); + if(callback == null) + { + throw new Error("Parameter callback is null"); + } + this.callback = callback; + } + + override public function initComponent() : void + { + this.physicsComponent = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.onSetActiveState); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.onSetActiveState); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.onSetInactiveState); + entity.addEventHandler(TankEvents.SET_DISABLED_STATE,this.onSetInactiveState); + entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + this.input = gameKernel.getInputSystem(); + this.input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKeyDown,KEY_CENTER); + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + this.disable(); + this.input.removeKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKeyDown,KEY_CENTER); + } + + public function runLogic() : void + { + var turnDirection:int = this.input.getKeyState(KEY_LEFT) - this.input.getKeyState(KEY_RIGHT); + if(this.physicsComponent.setTurretControls(turnDirection)) + { + this.callback.onTurretControlChanged(turnDirection,false); + } + if(this.center) + { + this.physicsComponent.centerTurret(true); + this.callback.onTurretControlChanged(0,true); + this.center = false; + } + } + + private function onSetActiveState(eventType:String, data:*) : void + { + this.enable(); + } + + private function onSetInactiveState(eventType:String, data:*) : void + { + this.disable(); + } + + private function enable() : void + { + if(!this.enabled) + { + this.enabled = true; + this.gameKernel.getLogicSystem1().addLogicUnit(this); + } + } + + private function disable() : void + { + if(this.enabled) + { + this.enabled = false; + this.gameKernel.getLogicSystem1().removeLogicUnit(this); + } + } + + private function onBattleFinished(eventType:String, eventData:*) : void + { + this.disable(); + } + + private function onKeyDown(eventType:KeyboardEventType, keyCode:uint) : void + { + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/ActivatingState.as b/src/alternativa/tanks/game/entities/tank/graphics/ActivatingState.as new file mode 100644 index 0000000..29dff25 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/ActivatingState.as @@ -0,0 +1,17 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + public class ActivatingState extends ComponentState + { + public function ActivatingState(component:GraphicsControlComponent) + { + super(component); + } + + override public function start(data:*) : void + { + component.addToScene(); + component.setMaterial(MaterialType.ACTIVATING); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/ActiveState.as b/src/alternativa/tanks/game/entities/tank/graphics/ActiveState.as new file mode 100644 index 0000000..d3e29e5 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/ActiveState.as @@ -0,0 +1,17 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + public class ActiveState extends ComponentState + { + public function ActiveState(component:GraphicsControlComponent) + { + super(component); + } + + override public function start(data:*) : void + { + component.addToScene(); + component.setMaterial(MaterialType.NORMAL); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/ComponentState.as b/src/alternativa/tanks/game/entities/tank/graphics/ComponentState.as new file mode 100644 index 0000000..cb23bba --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/ComponentState.as @@ -0,0 +1,24 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + import alternativa.tanks.game.entities.IComponentState; + + public class ComponentState implements IComponentState + { + protected var component:GraphicsControlComponent; + + public function ComponentState(component:GraphicsControlComponent) + { + super(); + this.component = component; + } + + public function start(data:*) : void + { + } + + public function stop() : void + { + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/DeadState.as b/src/alternativa/tanks/game/entities/tank/graphics/DeadState.as new file mode 100644 index 0000000..cd01b93 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/DeadState.as @@ -0,0 +1,17 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + public class DeadState extends ComponentState + { + public function DeadState(component:GraphicsControlComponent) + { + super(component); + } + + override public function start(data:*) : void + { + component.addToScene(); + component.setMaterial(MaterialType.DEAD); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as b/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as new file mode 100644 index 0000000..215dcf9 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as @@ -0,0 +1,46 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.shadows.DirectionalShadowRenderer; + import alternativa.tanks.game.subsystems.rendersystem.IShadowRendererConstructor; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + + public class DirectionalShadowRendererConstructor implements IShadowRendererConstructor + { + private var object:Object3D; + + private var renderSystem:RenderSystem; + + private var consumer:IDirectionalShadowRendererConsumer; + + public function DirectionalShadowRendererConstructor(object:Object3D, renderSystem:RenderSystem, consumer:IDirectionalShadowRendererConsumer) + { + super(); + this.object = object; + this.renderSystem = renderSystem; + this.consumer = consumer; + } + + public function createShadowRenderer() : void + { + var worldSize:Number = NaN; + var textureSize:int = 0; + var pcfSize:int = 0; + var directionalShadowRenderer:DirectionalShadowRenderer = null; + var directionalLights:Vector. = this.renderSystem.lights.directionalLigths.lights; + if(directionalLights != null && directionalLights.length > 0) + { + worldSize = 1300; + textureSize = 256; + pcfSize = 4; + directionalShadowRenderer = new DirectionalShadowRenderer(this.renderSystem.getContext3D(),textureSize,worldSize,pcfSize); + directionalShadowRenderer.§_-qg§ = this.object; + directionalShadowRenderer.setLight(directionalLights[0]); + this.renderSystem.addShadowRenderer(directionalShadowRenderer); + this.consumer.setShadowRenderer(directionalShadowRenderer); + } + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as new file mode 100644 index 0000000..fa37cb1 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as @@ -0,0 +1,131 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + import alternativa.engine3d.alternativa3d; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.EmptyState; + import alternativa.tanks.game.entities.EventStates; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.subsystems.rendersystem.IRenderer; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + + use namespace alternativa3d; + + public class GraphicsControlComponent extends EntityComponent implements IRenderer + { + private var §_-z§:EventStates; + + private var components:Vector.; + + private var §case §:Boolean; + + private var §_-DV§:Boolean; + + private var alpha:Number = 1; + + private var gameKernel:GameKernel; + + public function GraphicsControlComponent() + { + super(); + this.components = new Vector.(); + } + + override public function initComponent() : void + { + this.§_-z§ = new EventStates(); + this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,new ActivatingState(this)); + this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVE_STATE,new ActiveState(this)); + this.§_-z§.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); + var respawnState:RespawnState = new RespawnState(this); + this.§_-z§.setEventState(entity,TankEvents.SET_RESPAWN_STATE,respawnState); + this.§_-z§.§_-Ah§ = EmptyState.INSTANCE; + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + } + + public function addToScene() : void + { + var tankGraphicsComponent:ITankGraphicsComponent = null; + var renderSystem:RenderSystem = null; + if(!this.§case §) + { + for each(tankGraphicsComponent in this.components) + { + tankGraphicsComponent.addToScene(); + } + renderSystem = this.gameKernel.getRenderSystem(); + renderSystem.addRenderer(this); + this.§case § = true; + } + this.§_-DV§ = false; + this.alpha = 1; + } + + public function removeFromScene() : void + { + if(this.§case §) + { + this.§_-DV§ = true; + } + } + + public function doRemoveFromScene() : void + { + var tankGraphicsComponent:ITankGraphicsComponent = null; + this.§_-DV§ = false; + this.§case § = false; + for each(tankGraphicsComponent in this.components) + { + tankGraphicsComponent.removeFromScene(); + } + this.gameKernel.getRenderSystem().removeRenderer(this); + } + + public function setMaterial(materialType:MaterialType) : void + { + var tankGraphicsComponent:ITankGraphicsComponent = null; + for each(tankGraphicsComponent in this.components) + { + tankGraphicsComponent.setMaterial(materialType); + } + } + + public function addComponent(component:ITankGraphicsComponent) : void + { + this.components.push(component); + } + + public function render() : void + { + var tankGraphicsComponent:ITankGraphicsComponent = null; + if(this.§_-DV§) + { + if(this.alpha == 0) + { + this.doRemoveFromScene(); + } + this.alpha -= TimeSystem.timeDeltaSeconds; + if(this.alpha < 0) + { + this.alpha = 0; + } + for each(tankGraphicsComponent in this.components) + { + tankGraphicsComponent.setAlpha(this.alpha); + } + } + var numComponents:int = int(this.components.length); + for(var i:int = 0; i < numComponents; i++) + { + tankGraphicsComponent = this.components[i]; + tankGraphicsComponent.render(); + } + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/IDirectionalShadowRendererConsumer.as b/src/alternativa/tanks/game/entities/tank/graphics/IDirectionalShadowRendererConsumer.as new file mode 100644 index 0000000..25ddc9a --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/IDirectionalShadowRendererConsumer.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + import alternativa.engine3d.shadows.DirectionalShadowRenderer; + + public interface IDirectionalShadowRendererConsumer + { + function setShadowRenderer(param1:DirectionalShadowRenderer) : void; + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/ITankGraphicsComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/ITankGraphicsComponent.as new file mode 100644 index 0000000..af6f3ad --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/ITankGraphicsComponent.as @@ -0,0 +1,19 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + import alternativa.engine3d.core.Object3D; + import alternativa.tanks.game.subsystems.rendersystem.IRenderer; + + public interface ITankGraphicsComponent extends IRenderer + { + function addToScene() : void; + + function removeFromScene() : void; + + function setMaterial(param1:MaterialType) : void; + + function setAlpha(param1:Number) : void; + + function getObject3D() : Object3D; + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/MaterialType.as b/src/alternativa/tanks/game/entities/tank/graphics/MaterialType.as new file mode 100644 index 0000000..57e2687 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/MaterialType.as @@ -0,0 +1,25 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + public class MaterialType + { + public static const NORMAL:MaterialType = new MaterialType("NORMAL"); + + public static const ACTIVATING:MaterialType = new MaterialType("ACTIVATING"); + + public static const DEAD:MaterialType = new MaterialType("DEAD"); + + private var stringValue:String; + + public function MaterialType(stringValue:String) + { + super(); + this.stringValue = stringValue; + } + + public function toString() : String + { + return this.stringValue; + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/RespawnState.as b/src/alternativa/tanks/game/entities/tank/graphics/RespawnState.as new file mode 100644 index 0000000..403b7f2 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/RespawnState.as @@ -0,0 +1,16 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + public class RespawnState extends ComponentState + { + public function RespawnState(component:GraphicsControlComponent) + { + super(component); + } + + override public function start(data:*) : void + { + component.removeFromScene(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as new file mode 100644 index 0000000..ead717f --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as @@ -0,0 +1,145 @@ +package alternativa.tanks.game.entities.tank.graphics +{ + import alternativa.engine3d.materials.Material; + import alternativa.math.Vector3; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.effects.AnimatedPlaneEffect; + import alternativa.tanks.game.effects.AnimatedSpriteEffect; + import alternativa.tanks.game.effects.MovingAnimatedSprite; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + import alternativa.tanks.game.physics.CollisionGroup; + + public class TankExplosionComponent extends EntityComponent + { + private static const MAX_SHOCK_WAVE_DISTANCE:Number = 1500; + + private static const FULL_SHOCK_WAVE_SIZE_DISTANCE:Number = 300; + + private static const SHOCK_WAVE_FPS:int = 30; + + private static const EXPLOSION_FPS:int = 25; + + private static const SMOKE_FPS:int = 25; + + private var shockWaveStartSize:Number; + + private var shockWaveGrowSpeed:Number; + + private var shockWaveFrames:Vector.; + + private var explosionFrames:Vector.; + + private var smokeFrames:Vector.; + + private var gameKernel:GameKernel; + + public function TankExplosionComponent(shockWaveStartSize:Number, shockWaveGrowSpeed:Number, shockWaveFrames:Vector., explosionFrames:Vector., smokeFrames:Vector.) + { + super(); + this.shockWaveStartSize = shockWaveStartSize; + this.shockWaveGrowSpeed = shockWaveGrowSpeed; + this.shockWaveFrames = shockWaveFrames; + this.explosionFrames = explosionFrames; + this.smokeFrames = smokeFrames; + } + + override public function initComponent() : void + { + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.onSetDeadState); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + this.gameKernel = null; + } + + private function onSetDeadState(eventType:String, eventData:*) : void + { + var chassisPhysicsComponent:IChassisPhysicsComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); + this.createShockWave(chassisPhysicsComponent); + this.createExplosion(chassisPhysicsComponent); + this.createSmoke(chassisPhysicsComponent); + } + + private function createShockWave(chassisPhysicsComponent:IChassisPhysicsComponent) : void + { + var actualSize:Number = NaN; + var position:Vector3 = null; + var rotation:Vector3 = null; + var effect:AnimatedPlaneEffect = null; + var collisionDetector:ICollisionDetector = this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector; + var origin:Vector3 = chassisPhysicsComponent.getBody().state.position; + var result:RayHit = new RayHit(); + if(collisionDetector.raycastStatic(origin,Vector3.DOWN,CollisionGroup.STATIC,MAX_SHOCK_WAVE_DISTANCE,null,result)) + { + if(result.t < FULL_SHOCK_WAVE_SIZE_DISTANCE) + { + actualSize = this.shockWaveStartSize; + } + else + { + actualSize = this.shockWaveStartSize * (MAX_SHOCK_WAVE_DISTANCE - result.t) / (MAX_SHOCK_WAVE_DISTANCE - FULL_SHOCK_WAVE_SIZE_DISTANCE); + } + position = result.position.clone(); + position.z += 1; + rotation = new Vector3(); + rotation.x = -Math.acos(result.normal.z); + if(result.normal.z < 0.999) + { + rotation.z = Math.atan2(-result.normal.x,result.normal.y); + } + effect = AnimatedPlaneEffect(this.gameKernel.getObjectPoolManager().getObject(AnimatedPlaneEffect)); + effect.init(actualSize,position,rotation,this.shockWaveFrames,SHOCK_WAVE_FPS,this.shockWaveGrowSpeed); + this.gameKernel.getRenderSystem().each(effect); + } + } + + private function createExplosion(chassisPhysicsComponent:IChassisPhysicsComponent) : void + { + var animatedSpriteEffect:AnimatedSpriteEffect = AnimatedSpriteEffect(this.gameKernel.getObjectPoolManager().getObject(AnimatedSpriteEffect)); + var position:Vector3 = chassisPhysicsComponent.getBody().state.position.clone(); + position.z += 100; + var rotation:Number = Math.random() * Math.PI; + animatedSpriteEffect.init(600,600,this.explosionFrames,position,rotation,400,EXPLOSION_FPS,false); + this.gameKernel.getRenderSystem().each(animatedSpriteEffect); + } + + private function createSmoke(chassisPhysicsComponent:IChassisPhysicsComponent) : void + { + var angle:Number = NaN; + var speed:Number = NaN; + var movingAnimatedSprite:MovingAnimatedSprite = null; + var rotation:Number = NaN; + var minAngle:Number = 10 * Math.PI / 180; + var maxAngle:Number = 60 * Math.PI / 180; + var position:Vector3 = chassisPhysicsComponent.getBody().state.position.clone(); + position.z += 100; + var velocity:Vector3 = new Vector3(); + var rotationAngle:Number = Math.random() * Math.PI; + var direction:Vector3 = new Vector3(); + for(var i:int = 0; i < 3; i++) + { + direction.x = Math.cos(rotationAngle); + direction.y = Math.sin(rotationAngle); + angle = Math.random() * (maxAngle - minAngle) + minAngle; + speed = 900 + Math.random() * (1000 - 900); + velocity.copy(direction).scale(Math.sin(angle)).add(Vector3.UP).normalize().scale(speed); + movingAnimatedSprite = MovingAnimatedSprite(this.gameKernel.getObjectPoolManager().getObject(MovingAnimatedSprite)); + rotation = Math.random() * Math.PI; + movingAnimatedSprite.init(400,400,this.smokeFrames,position,velocity,-1000,rotation,SMOKE_FPS,false); + this.gameKernel.getRenderSystem().each(movingAnimatedSprite); + rotationAngle += 2 / 3 * Math.PI; + } + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackAnimator.as b/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackAnimator.as new file mode 100644 index 0000000..c37016f --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackAnimator.as @@ -0,0 +1,119 @@ +package alternativa.tanks.game.entities.tank.graphics.chassis.tracked +{ + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.Skin; + import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + + public class TrackAnimator + { + public var material:TracksMaterial2; + + public var physicsComponent:IChassisPhysicsComponent; + + private var wheels:Vector.; + + private var §_-9d§:Vector.; + + private var §_-MZ§:Vector.; + + private var §_-oo§:Vector.; + + private var dUdY:Number; + + private var §_-cr§:Number = 0; + + private var trackSkin:Skin; + + public function TrackAnimator(trackSkin:Skin, wheels:Vector., dUdY:Number) + { + super(); + this.trackSkin = trackSkin; + this.wheels = wheels; + this.dUdY = dUdY; + this.physicsComponent = this.physicsComponent; + this.§_-oo§ = new Vector.(wheels.length); + for(var i:int = 0; i < wheels.length; i++) + { + this.§_-oo§[i] = wheels[i].boundBox.maxY; + } + this.initZCoords(); + } + + public function animate(period:Number, speed:Number, dt:Number) : void + { + var wheelMesh:Mesh = null; + var wheelDeltaZ:Number = NaN; + var bone:Object3D = null; + var delta:Number = NaN; + var newOffset:Number = NaN; + var ds:Number = speed * dt; + var numWheels:int = int(this.wheels.length); + for(var i:int = 0; i < numWheels; ) + { + wheelMesh = this.wheels[i]; + wheelMesh.rotationX -= ds / this.§_-oo§[i]; + wheelDeltaZ = Number(this.physicsComponent.getWheelDeltaZ(wheelMesh.name)); + wheelMesh.z = this.§_-9d§[i] + wheelDeltaZ; + bone = this.trackSkin.getChildByName(this.getBoneName(wheelMesh.name)); + if(bone != null) + { + bone.z = this.§_-MZ§[i] + wheelDeltaZ; + } + i++; + } + if(period > 0) + { + delta = ds * this.dUdY; + newOffset = this.§_-cr§ + delta; + if(newOffset < 0) + { + while(newOffset < 0) + { + newOffset += period; + } + delta = newOffset - this.§_-cr§; + this.§_-cr§ = newOffset; + } + else if(newOffset < period) + { + this.§_-cr§ = newOffset; + } + else + { + while(newOffset >= period) + { + newOffset -= period; + } + delta = newOffset - this.§_-cr§; + this.§_-cr§ = newOffset; + } + this.material.vOffset = this.§_-cr§; + } + } + + private function initZCoords() : void + { + var bone:Object3D = null; + this.§_-9d§ = new Vector.(this.wheels.length); + this.§_-MZ§ = new Vector.(this.wheels.length); + for(var i:int = 0; i < this.wheels.length; ) + { + this.§_-9d§[i] = this.wheels[i].z; + bone = this.trackSkin.getChildByName(this.getBoneName(this.wheels[i].name)); + if(bone != null) + { + this.§_-MZ§[i] = bone.z; + } + i++; + } + } + + private function getBoneName(wheelName:String) : String + { + return "bn" + wheelName.substr(2); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackedChassisGraphicsComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackedChassisGraphicsComponent.as new file mode 100644 index 0000000..2431796 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackedChassisGraphicsComponent.as @@ -0,0 +1,436 @@ +package alternativa.tanks.game.entities.tank.graphics.chassis.tracked +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.core.events.MouseEvent3D; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.objects.Decal; + import alternativa.engine3d.objects.Mesh; + import alternativa.engine3d.objects.Skin; + import alternativa.engine3d.shadows.DirectionalShadowRenderer; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.*; + import alternativa.tanks.game.entities.tank.graphics.DirectionalShadowRendererConstructor; + import alternativa.tanks.game.entities.tank.graphics.GraphicsControlComponent; + import alternativa.tanks.game.entities.tank.graphics.IDirectionalShadowRendererConsumer; + import alternativa.tanks.game.entities.tank.graphics.ITankGraphicsComponent; + import alternativa.tanks.game.entities.tank.graphics.MaterialType; + import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial; + import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; + import alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy.LegacyTrackedChassisComponent; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + import flash.geom.Point; + + use namespace alternativa3d; + + public class TrackedChassisGraphicsComponent extends EntityComponent implements ITankGraphicsComponent, IDirectionalShadowRendererConsumer + { + public static const TANK_CLICK:String = "tankClick"; + + private static var hullMatrix:Matrix4 = new Matrix4(); + + private static var eulerAngles:Vector3 = new Vector3(); + + private var shadow:Decal; + + private var hull:TankHull; + + private var §_-nh§:Mesh; + + private var hullMaterials:TankPartMaterials; + + private var container:Object3D; + + private var physicsComponent:LegacyTrackedChassisComponent; + + private var gameKernel:GameKernel; + + private var §_-Gf§:TextureMaterial; + + private var §_-EY§:Vector.; + + private var §_-M4§:Vector.; + + private var §_-Ei§:Skin; + + private var §_-iA§:Skin; + + private var §_-dh§:TrackAnimator; + + private var §_-R4§:TrackAnimator; + + private var shadowRenderer:DirectionalShadowRenderer; + + private var §_-5s§:DirectionalShadowRendererConstructor; + + public function TrackedChassisGraphicsComponent(hull:TankHull) + { + super(); + this.setHull(hull); + } + + public function getHull() : TankHull + { + return this.hull; + } + + public function setTracksMaterial(tracksMaterial:TracksMaterial2) : void + { + this.§_-dh§.material = TracksMaterial2(tracksMaterial.clone()); + this.§_-Ei§.setMaterialToAllSurfaces(this.§_-dh§.material); + this.§_-R4§.material = TracksMaterial2(tracksMaterial.clone()); + this.§_-iA§.setMaterialToAllSurfaces(this.§_-R4§.material); + } + + public function setShadowMaterial(material:GiShadowMaterial) : void + { + if(this.shadow != null) + { + this.shadow.setMaterialToAllSurfaces(material); + } + } + + public function getObject3D() : Object3D + { + return this.§_-nh§; + } + + public function setShadowRenderer(shadowRenderer:DirectionalShadowRenderer) : void + { + this.shadowRenderer = shadowRenderer; + this.§_-5s§ = null; + if(this.container != null) + { + this.gameKernel.getRenderSystem().addShadowRenderer(shadowRenderer); + } + } + + public function setHull(newHull:TankHull) : void + { + var dUdY:Number = NaN; + if(this.hull == newHull) + { + return; + } + if(this.hull != null && this.container != null) + { + this.container.removeChild(this.§_-nh§); + } + this.hull = newHull; + if(this.hull != null) + { + this.§_-nh§ = new Mesh(); + this.§_-nh§.geometry = this.hull.geometry; + this.§_-nh§.addSurface(this.§_-Gf§,0,this.hull.geometry.numTriangles); + this.§_-nh§.calculateBoundBox(); + this.§_-EY§ = this.createWheels(this.§_-nh§,this.hull.§_-EY§); + this.§_-M4§ = this.createWheels(this.§_-nh§,this.hull.§_-M4§); + this.§_-Ei§ = this.createTrackMesh(this.hull.§_-Ei§,this.§_-nh§); + this.§_-iA§ = this.createTrackMesh(this.hull.§_-iA§,this.§_-nh§); + dUdY = this.getRatio(this.§_-Ei§); + this.§_-dh§ = new TrackAnimator(this.§_-Ei§,this.§_-EY§,dUdY); + this.§_-R4§ = new TrackAnimator(this.§_-iA§,this.§_-M4§,dUdY); + if(this.hull.shadow != null) + { + this.shadow = new Decal(100); + this.shadow.geometry = this.hull.shadow.geometry; + this.shadow.matrix = this.hull.shadow.matrix; + this.shadow.addSurface(null,0,this.shadow.geometry.numTriangles); + this.shadow.useShadow = false; + this.hullMesh.addChild(this.shadow); + } + if(this.container != null) + { + this.container.addChild(this.§_-nh§); + } + } + } + + private function getRatio(mesh:Mesh) : Number + { + var j:int = 0; + var vertexIndex:int = 0; + var vertexBaseIndex:uint = 0; + var v:Vector3 = null; + var uv:Point = null; + var ratio:Number = 0; + var indices:Vector. = mesh.geometry.indices; + var vertexCoordinates:Vector. = mesh.geometry.getAttributeValues(VertexAttributes.POSITION); + var uvs:Vector. = mesh.geometry.getAttributeValues(VertexAttributes.TEXCOORDS[0]); + var faceVertices:Vector. = Vector.([new Vector3(),new Vector3(),new Vector3()]); + var faceUVs:Vector. = Vector.([new Point(),new Point(),new Point()]); + for(var i:int = 0; i < indices.length; i += 3) + { + for(j = 0; j < 3; j++) + { + vertexIndex = int(indices[i + j]); + vertexBaseIndex = uint(3 * vertexIndex); + v = faceVertices[j]; + v.x = vertexCoordinates[vertexBaseIndex]; + v.y = vertexCoordinates[vertexBaseIndex + 1]; + v.z = vertexCoordinates[vertexBaseIndex + 2]; + v.scale(mesh.scaleX); + uv = faceUVs[j]; + uv.x = uvs[2 * vertexIndex]; + uv.y = uvs[2 * vertexIndex + 1]; + } + ratio = this.getMaxRatio(faceVertices,faceUVs,ratio); + } + return ratio; + } + + private function getMaxRatio(faceVertices:Vector., faceUVs:Vector., ratio:Number) : Number + { + var v2:Vector3 = null; + var p2:Point = null; + var dy:Number = NaN; + var dv:Number = NaN; + var newRatio:Number = NaN; + var v1:Vector3 = faceVertices[2]; + var p1:Point = faceUVs[2]; + for(var i:int = 0; i < 3; i++) + { + v2 = faceVertices[i]; + p2 = faceUVs[i]; + dy = Number(Math.abs(v2.y - v1.y)); + dv = Number(Math.abs(p2.y - p1.y)); + if(dy > 100) + { + newRatio = dv / dy; + if(newRatio > ratio) + { + ratio = newRatio; + } + } + v1 = v2; + p1 = p2; + } + return ratio; + } + + private function createTrackMesh(tankTrack:Skin, container:Mesh) : Skin + { + var skin:Skin = Skin(tankTrack.clone()); + skin.calculateBoundBox(); + container.addChild(skin); + return skin; + } + + private function createWheels(container:Object3D, wheels:Vector.) : Vector. + { + var tankWheel:TankWheel = null; + var wheelMesh:Mesh = null; + var position:Vector3 = null; + var numWheels:int = int(wheels.length); + var wheelMeshes:Vector. = new Vector.(numWheels); + for(var i:int = 0; i < numWheels; i++) + { + tankWheel = wheels[i]; + wheelMesh = new Mesh(); + wheelMesh.name = tankWheel.name; + wheelMesh.geometry = tankWheel.geometry; + wheelMesh.addSurface(this.§_-Gf§,0,wheelMesh.geometry.numTriangles); + wheelMesh.calculateBoundBox(); + position = tankWheel.position; + wheelMesh.x = position.x; + wheelMesh.y = position.y; + wheelMesh.z = position.z; + wheelMesh.rotationX = Math.random() * Math.PI * 2; + container.addChild(wheelMesh); + wheelMeshes[i] = wheelMesh; + } + return wheelMeshes; + } + + public function setHullMaterials(hullMaterials:TankPartMaterials) : void + { + this.hullMaterials = hullMaterials; + } + + public function get visible() : Boolean + { + return this.§_-nh§.visible; + } + + public function addToScene() : void + { + var renderSystem:RenderSystem = null; + if(this.container == null) + { + renderSystem = this.gameKernel.getRenderSystem(); + this.container = renderSystem.getDynamicObjectsContainer(); + if(this.§_-nh§ != null) + { + this.container.addChild(this.§_-nh§); + if(this.shadowRenderer != null) + { + renderSystem.addShadowRenderer(this.shadowRenderer); + } + } + this.enableMouseListeners(); + } + } + + public function removeFromScene() : void + { + if(this.container != null) + { + if(this.§_-nh§ != null) + { + this.container.removeChild(this.§_-nh§); + if(this.shadowRenderer != null) + { + this.gameKernel.getRenderSystem().removeShadowRenderer(this.shadowRenderer); + } + } + this.container = null; + } + this.disableMouseListeners(); + } + + public function get hullMesh() : Mesh + { + return this.§_-nh§; + } + + override public function initComponent() : void + { + this.physicsComponent = LegacyTrackedChassisComponent(entity.getComponentStrict(LegacyTrackedChassisComponent)); + GraphicsControlComponent(entity.getComponentStrict(GraphicsControlComponent)).addComponent(this); + this.§_-dh§.physicsComponent = this.physicsComponent; + this.§_-R4§.physicsComponent = this.physicsComponent; + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + var renderSystem:RenderSystem = gameKernel.getRenderSystem(); + this.§_-5s§ = new DirectionalShadowRendererConstructor(this.§_-nh§,renderSystem,this); + if(renderSystem.isShadowSystemReady()) + { + this.§_-5s§.createShadowRenderer(); + this.§_-5s§ = null; + } + else + { + renderSystem.addShadowRendererConstructor(this.§_-5s§); + } + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + if(this.§_-5s§ != null) + { + gameKernel.getRenderSystem().removeShadowRendererConstructor(this.§_-5s§); + this.§_-5s§ = null; + } + this.removeFromScene(); + gameKernel = null; + } + + public function render() : void + { + if(this.hull == null) + { + return; + } + hullMatrix.toIdentity(); + hullMatrix.setPosition(this.hull.§_-Sh§); + hullMatrix.append(this.physicsComponent.§_-YH§); + hullMatrix.getEulerAngles(eulerAngles); + this.§_-nh§.x = hullMatrix.d; + this.§_-nh§.y = hullMatrix.h; + this.§_-nh§.z = hullMatrix.l; + this.§_-nh§.rotationX = eulerAngles.x; + this.§_-nh§.rotationY = eulerAngles.y; + this.§_-nh§.rotationZ = eulerAngles.z; + this.animateTracks(); + } + + private function animateTracks() : void + { + var dt:Number = NaN; + if(this.§_-dh§ != null) + { + dt = TimeSystem.timeDeltaSeconds; + this.§_-dh§.animate(this.hull.§_-DH§,this.physicsComponent.getLeftTrackSpeed(),dt); + this.§_-R4§.animate(this.hull.§_-DH§,this.physicsComponent.getRightTrackSpeed(),dt); + } + } + + public function setMaterial(materialType:MaterialType) : void + { + switch(materialType) + { + case MaterialType.DEAD: + this.hullMaterials.deadMaterial.alpha = 1; + this.§_-dh§.material.alpha = 1; + this.§_-R4§.material.alpha = 1; + this.§_-nh§.setMaterialToAllSurfaces(this.hullMaterials.deadMaterial); + this.§_-Gf§ = this.hullMaterials.deadMaterial; + break; + case MaterialType.NORMAL: + this.hullMaterials.normalMaterial.alpha = 1; + this.§_-dh§.material.alpha = 1; + this.§_-R4§.material.alpha = 1; + this.§_-nh§.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); + this.§_-Gf§ = this.hullMaterials.normalMaterial; + break; + case MaterialType.ACTIVATING: + this.hullMaterials.normalMaterial.alpha = 0.5; + this.§_-dh§.material.alpha = 0.5; + this.§_-R4§.material.alpha = 0.5; + this.§_-nh§.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); + this.§_-Gf§ = this.hullMaterials.normalMaterial; + } + var numWheels:int = int(this.§_-EY§.length); + for(var i:int = 0; i < numWheels; i++) + { + this.§_-EY§[i].setMaterialToAllSurfaces(this.§_-Gf§); + this.§_-M4§[i].setMaterialToAllSurfaces(this.§_-Gf§); + } + } + + public function setAlpha(value:Number) : void + { + this.§_-Gf§.alpha = value; + this.§_-dh§.material.alpha = value; + this.§_-R4§.material.alpha = value; + } + + private function enableMouseListeners() : void + { + if(this.§_-nh§ != null) + { + this.§_-nh§.addEventListener(MouseEvent3D.CLICK,this.onMouseClick); + } + } + + private function disableMouseListeners() : void + { + if(this.§_-nh§ != null) + { + this.§_-nh§.removeEventListener(MouseEvent3D.CLICK,this.onMouseClick); + } + } + + private function onMouseOver(event:MouseEvent3D) : void + { + } + + private function onMouseOut(event:MouseEvent3D) : void + { + } + + private function onMouseClick(event:MouseEvent3D) : void + { + this.gameKernel.getEventSystem().dispatchEvent(TANK_CLICK,entity); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as index 33ce78d..077e8a2 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as @@ -1,6 +1,24 @@ package alternativa.tanks.game.entities.tank.graphics.materials { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.A3DUtils; + import alternativa.engine3d.materials.FogMode; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; import flash.display.BitmapData; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DProgramType; @@ -8,32 +26,14 @@ package alternativa.tanks.game.entities.tank.graphics.materials import flash.utils.Dictionary; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; - import package_4.name_11; - import package_4.name_127; - import package_4.name_28; use namespace alternativa3d; - public class GiShadowMaterial extends class_4 + public class GiShadowMaterial extends Material { - public static var fogTexture:name_129; + public static var fogTexture:TextureResource; - public static var fogMode:int = name_11.DISABLED; + public static var fogMode:int = FogMode.DISABLED; public static var fogNear:Number = 1000; @@ -47,29 +47,29 @@ package alternativa.tanks.game.entities.tank.graphics.materials public static var fogColorB:Number = 200 / 255; - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + private static const passSimpleFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); + private static const outputWithSimpleFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + private static const postPassAdvancedFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); + private static const outputWithAdvancedFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); private static var _programs:Dictionary = new Dictionary(); - private static const passUVProcedure:name_114 = new name_114(["#a0=aUV","#v0=vUV","mov v0, a0"],"passUVProcedure"); + private static const passUVProcedure:Procedure = new Procedure(["#a0=aUV","#v0=vUV","mov v0, a0"],"passUVProcedure"); - private static const outputProcedure:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#c0=cColor","tex t0, v0, s0 <2d, linear, mipnone>","mov t0.w, t0.x","mov t0.xyz, c0.xyz","mov o0, t0"],"outputProcedure"); + private static const outputProcedure:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#c0=cColor","tex t0, v0, s0 <2d, linear, mipnone>","mov t0.w, t0.x","mov t0.xyz, c0.xyz","mov o0, t0"],"outputProcedure"); - public var texture:name_129; + public var texture:TextureResource; - public function GiShadowMaterial(texture:name_129) + public function GiShadowMaterial(texture:TextureResource) { super(); this.texture = texture; } - public static function method_33(texture:name_129) : void + public static function setFogTexture(texture:TextureResource) : void { fogTexture = texture; } @@ -77,57 +77,57 @@ package alternativa.tanks.game.entities.tank.graphics.materials override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.texture != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.texture)) as Class,resourceType))) + if(this.texture != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.texture)) as Class,resourceType))) { resources[this.texture] = true; } } - private function setupProgram(object:name_78) : name_127 + private function final(object:Object3D) : ShaderProgram { - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); if(object.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(passUVProcedure); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - fragmentLinker.name_123(outputProcedure); - if(fogMode == name_11.SIMPLE || fogMode == name_11.ADVANCED) + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(passUVProcedure); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); + fragmentLinker.addProcedure(outputProcedure); + if(fogMode == FogMode.SIMPLE || fogMode == FogMode.ADVANCED) { - fragmentLinker.name_120("outColor"); - fragmentLinker.name_125(outputProcedure,"outColor"); + fragmentLinker.declareVariable("outColor"); + fragmentLinker.setOutputParams(outputProcedure,"outColor"); } - if(fogMode == name_11.SIMPLE) + if(fogMode == FogMode.SIMPLE) { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_123(outputWithSimpleFogProcedure); - fragmentLinker.name_118(outputWithSimpleFogProcedure,"outColor"); + vertexLinker.addProcedure(passSimpleFogConstProcedure); + vertexLinker.setInputParams(passSimpleFogConstProcedure,positionVar); + fragmentLinker.addProcedure(outputWithSimpleFogProcedure); + fragmentLinker.setInputParams(outputWithSimpleFogProcedure,"outColor"); } - else if(fogMode == name_11.ADVANCED) + else if(fogMode == FogMode.ADVANCED) { - vertexLinker.name_120("tProjected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); - fragmentLinker.name_118(outputWithAdvancedFogProcedure,"outColor"); + vertexLinker.declareVariable("tProjected"); + vertexLinker.setOutputParams(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.addProcedure(postPassAdvancedFogConstProcedure); + vertexLinker.setInputParams(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); + fragmentLinker.addProcedure(outputWithAdvancedFogProcedure); + fragmentLinker.setInputParams(outputWithAdvancedFogProcedure,"outColor"); } - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { - var program:name_127 = null; - var lm:name_139 = null; + var program:ShaderProgram = null; + var lm:Transform3D = null; var dist:Number = NaN; - var cLocal:name_139 = null; + var cLocal:Transform3D = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -141,18 +141,18 @@ package alternativa.tanks.game.entities.tank.graphics.materials var uRight:Number = NaN; var bmd:BitmapData = null; var i:int = 0; - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); if(positionBuffer == null || uvBuffer == null || this.texture == null || this.texture.alternativa3d::_texture == null) { return; } - var programs:Vector. = _programs[object.alternativa3d::transformProcedure]; + var programs:Vector. = _programs[object.alternativa3d::transformProcedure]; if(programs == null) { - programs = new Vector.(3,true); - program = this.setupProgram(object); + programs = new Vector.(3,true); + program = this.final(object); program.upload(camera.alternativa3d::context3D); programs[fogMode] = program; _programs[object.alternativa3d::transformProcedure] = programs; @@ -162,30 +162,30 @@ package alternativa.tanks.game.entities.tank.graphics.materials program = programs[fogMode]; if(program == null) { - program = this.setupProgram(object); + program = this.final(object); program.upload(camera.alternativa3d::context3D); programs[fogMode] = program; } } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cColor"),0,0,0,1); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cColor"),0,0,0,1); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.texture.alternativa3d::_texture); - if(fogMode == name_11.SIMPLE || fogMode == name_11.ADVANCED) + if(fogMode == FogMode.SIMPLE || fogMode == FogMode.ADVANCED) { lm = object.alternativa3d::localToCameraTransform; dist = fogFar - fogNear; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); } - if(fogMode == name_11.SIMPLE) + if(fogMode == FogMode.SIMPLE) { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); } - if(fogMode == name_11.ADVANCED) + if(fogMode == FogMode.ADVANCED) { if(fogTexture == null) { @@ -194,7 +194,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { bmd.setPixel(i,0,i / 32 * 255 << 16); } - fogTexture = new name_93(bmd); + fogTexture = new BitmapTextureResource(bmd); fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -217,10 +217,10 @@ package alternativa.tanks.game.entities.tank.graphics.materials rightY /= lens; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),fogTexture.alternativa3d::_texture); } - if(fogMode == name_11.DISABLED) + if(fogMode == FogMode.DISABLED) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ZERO; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA; @@ -230,10 +230,10 @@ package alternativa.tanks.game.entities.tank.graphics.materials drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA; } - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.TANK_SHADOW); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.TANK_SHADOW); } - override public function clone() : class_4 + override public function clone() : Material { return new GiShadowMaterial(this.texture); } diff --git a/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial.as index 331843f..0a11161 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial.as @@ -1,6 +1,26 @@ package alternativa.tanks.game.entities.tank.graphics.materials { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.lights.OmniLight; + import alternativa.engine3d.lights.SpotLight; + import alternativa.engine3d.materials.A3DUtils; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; import flash.display.BitmapData; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DProgramType; @@ -8,32 +28,12 @@ package alternativa.tanks.game.entities.tank.graphics.materials import flash.utils.Dictionary; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_24.SpotLight; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_5; - import package_4.name_127; - import package_4.name_28; use namespace alternativa3d; - public class TankMaterial extends class_5 + public class TankMaterial extends TextureMaterial { - private static var fogTexture:name_129; + private static var fogTexture:TextureResource; public static const DISABLED:int = 0; @@ -59,57 +59,57 @@ package alternativa.tanks.game.entities.tank.graphics.materials private static const _lightFragmentProcedures:Dictionary = new Dictionary(); - private static const _diffuseProcedure:name_114 = name_114.name_140(["#v0=vUV","#c0=cTiling","#s0=sColormap","#s1=sDiffuse","#s2=sSurface","mul t0, v0, c0","tex t1, t0, s0 <2d, repeat, linear, miplinear>","tex t0, v0, s1 <2d, clamp, linear, miplinear>","add t2, t0, t0","mul t2, t2, t1","tex t1, v0, s2 <2d, clamp, linear, miplinear>","mul t2, t2, t1.x","add t2, t2, t0","mul t0, t0, t1.x","sub o0, t2, t0"],"diffuse"); + private static const _diffuseProcedure:Procedure = Procedure.compileFromArray(["#v0=vUV","#c0=cTiling","#s0=sColormap","#s1=sDiffuse","#s2=sSurface","mul t0, v0, c0","tex t1, t0, s0 <2d, repeat, linear, miplinear>","tex t0, v0, s1 <2d, clamp, linear, miplinear>","add t2, t0, t0","mul t2, t2, t1","tex t1, v0, s2 <2d, clamp, linear, miplinear>","mul t2, t2, t1.x","add t2, t2, t0","mul t0, t0, t1.x","sub o0, t2, t0"],"diffuse"); - private static const _passVaryingsProcedure:name_114 = new name_114(["#v0=vPosition","#v1=vViewVector","#c0=cCameraPosition","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryings"); + private static const _passVaryingsProcedure:Procedure = new Procedure(["#v0=vPosition","#v1=vViewVector","#c0=cCameraPosition","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryings"); - private static const _passTBNProcedure:name_114 = new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","crs t1.xyz, i0, i1","mul t1.xyz, t1.xyz, i0.w","mov t0, i0","mov t2, i1","mov t4.w, t0.y","mov t0.y, t1.x","mov t1.x, t4.w","mov t4.w, t0.z","mov t0.z, t2.x","mov t2.x, t4.w","mov t4.w, t1.z","mov t1.z, t2.y","mov t2.y, t4.w","mov t0.w, i1.w","mov t1.w, i1.w","mov t2.w, i1.w","mov v2, t2","mov v0, t0","mov v1, t1"],"passsTBN"); + private static const _passTBNProcedure:Procedure = new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","crs t1.xyz, i0, i1","mul t1.xyz, t1.xyz, i0.w","mov t0, i0","mov t2, i1","mov t4.w, t0.y","mov t0.y, t1.x","mov t1.x, t4.w","mov t4.w, t0.z","mov t0.z, t2.x","mov t2.x, t4.w","mov t4.w, t1.z","mov t1.z, t2.y","mov t2.y, t4.w","mov t0.w, i1.w","mov t1.w, i1.w","mov t2.w, i1.w","mov v2, t2","mov v0, t0","mov v1, t1"],"passsTBN"); - private static const _ambientLightProcedure:name_114 = new name_114(["#c0=cSurface","mov o0, i0","mov o1, c0.xxxx"],"ambientLight"); + private static const _ambientLightProcedure:Procedure = new Procedure(["#c0=cSurface","mov o0, i0","mov o1, c0.xxxx"],"ambientLight"); - private static const _getNormalAndViewTangentProcedure:name_114 = new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz","nrm o1.xyz, v4"],"getNormalAndViewTangent"); + private static const _getNormalAndViewTangentProcedure:Procedure = new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz","nrm o1.xyz, v4"],"getNormalAndViewTangent"); - private static const _getNormalAndViewObjectProcedure:name_114 = new name_114(["#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","neg t0.y, t0.y","nrm o0.xyz, t0.xyz","nrm o1.xyz, v4"],"getNormalAndViewObject"); + private static const _getNormalAndViewObjectProcedure:Procedure = new Procedure(["#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","neg t0.y, t0.y","nrm o0.xyz, t0.xyz","nrm o1.xyz, v4"],"getNormalAndViewObject"); - private static const _setOpacityProcedure:name_114 = new name_114(["#v0=vUV","#s0=sOpacity","tex t0, v0, s0 <2d, clamp,linear,miplinear>","mov o0.w, t0.x"],"setOpactity"); + private static const _setOpacityProcedure:Procedure = new Procedure(["#v0=vUV","#s0=sOpacity","tex t0, v0, s0 <2d, clamp,linear,miplinear>","mov o0.w, t0.x"],"setOpactity"); - private static const _applySpecularProcedure:name_114 = new name_114(["#v0=vUV","#s0=sSurface","tex t0, v0, s0 <2d, clamp,linear,miplinear>","mul o0.xyz, o0.xyz, t0.y"],"applySpecular"); + private static const _applySpecularProcedure:Procedure = new Procedure(["#v0=vUV","#s0=sSurface","tex t0, v0, s0 <2d, clamp,linear,miplinear>","mul o0.xyz, o0.xyz, t0.y"],"applySpecular"); - private static const _setGlossinessFromTextureProcedure:name_114 = new name_114(["#v0=vUV","#c0=cSurface","#s0=sSurface","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul o0.w, c0.y, t0.z"],"setGlossinessFromTexture"); + private static const _setGlossinessFromTextureProcedure:Procedure = new Procedure(["#v0=vUV","#c0=cSurface","#s0=sSurface","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul o0.w, c0.y, t0.z"],"setGlossinessFromTexture"); - private static const _setGlossinessFromConstantProcedure:name_114 = new name_114(["#c0=cSurface","mov o0.w, c0.y"],"setGlossinessFromConstant"); + private static const _setGlossinessFromConstantProcedure:Procedure = new Procedure(["#c0=cSurface","mov o0.w, c0.y"],"setGlossinessFromConstant"); - private static const _mulLightingProcedure:name_114 = new name_114(["#c0=cSurface","mul t0.xyz, i0.xyz, i2.xyz","mul t1.xyz, i1.xyz, c0.z","add t0.xyz, t0.xyz, t1.xyz","mov t0.w, c0.w","mov o0, t0"],"mulLighting"); + private static const _mulLightingProcedure:Procedure = new Procedure(["#c0=cSurface","mul t0.xyz, i0.xyz, i2.xyz","mul t1.xyz, i1.xyz, c0.z","add t0.xyz, t0.xyz, t1.xyz","mov t0.w, c0.w","mov o0, t0"],"mulLighting"); - private static const _mulLightingProcedureWithDiffuseAlpha:name_114 = new name_114(["#s0=sTexture","#v0=vUV","#c0=cSurface","mul t0.xyz, i0.xyz, i2.xyz","mul t1.xyz, i1.xyz, c0.z","add t0.xyz, t0.xyz, t1.xyz","tex t2, v0, s0 <2d, clamp,linear,miplinear>","mov t0.w, t2.x","mul t0.w, t0.w, c0.w","mov o0, t0"],"mulLightingWithDiffuseAlpha"); + private static const _mulLightingProcedureWithDiffuseAlpha:Procedure = new Procedure(["#s0=sTexture","#v0=vUV","#c0=cSurface","mul t0.xyz, i0.xyz, i2.xyz","mul t1.xyz, i1.xyz, c0.z","add t0.xyz, t0.xyz, t1.xyz","tex t2, v0, s0 <2d, clamp,linear,miplinear>","mov t0.w, t2.x","mul t0.w, t0.w, c0.w","mov o0, t0"],"mulLightingWithDiffuseAlpha"); - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + private static const passSimpleFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); + private static const outputWithSimpleFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + private static const postPassAdvancedFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); + private static const outputWithAdvancedFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); - public var colorMap:name_129; + public var colorMap:TextureResource; - public var surfaceMap:name_129; + public var surfaceMap:TextureResource; - public var var_26:Number = 1; + public var §_-jM§:Number = 1; - public var var_24:Number = 1; + public var §_-Sf§:Number = 1; - public var var_22:Number = 1; + public var §_-d4§:Number = 1; - public var normalMap:name_129; + public var normalMap:TextureResource; public var glossiness:Number = 100; - public var var_25:Number = 1; + public var §_-kj§:Number = 1; - alternativa3d var var_23:Boolean = false; + alternativa3d var §_-Vr§:Boolean = false; - public function TankMaterial(colorMap:name_129 = null, diffuseMap:name_129 = null, normalMap:name_129 = null, surfaceMap:name_129 = null) + public function TankMaterial(colorMap:TextureResource = null, diffuseMap:TextureResource = null, normalMap:TextureResource = null, surfaceMap:TextureResource = null) { super(diffuseMap); this.colorMap = colorMap; @@ -117,110 +117,110 @@ package alternativa.tanks.game.entities.tank.graphics.materials this.surfaceMap = surfaceMap; } - public static function method_33(texture:name_129) : void + public static function setFogTexture(texture:TextureResource) : void { fogTexture = texture; } - alternativa3d function getPassUVProcedure() : name_114 + alternativa3d function getPassUVProcedure() : Procedure { return alternativa3d::_passUVProcedure; } - alternativa3d function setPassUVProcedureConstants(destination:name_135, vertexLinker:name_121) : void + alternativa3d function setPassUVProcedureConstants(destination:DrawUnit, vertexLinker:Linker) : void { } - private function setupProgram(targetObject:name_78, lights:Vector., directional:DirectionalLight, lightsLength:int) : name_127 + private function final(targetObject:Object3D, lights:Vector., directional:DirectionalLight, lightsLength:int) : ShaderProgram { var i:int = 0; - var procedure:name_114 = null; - var shadowProc:name_114 = null; - var dirMulShadowProcedure:name_114 = null; - var light:name_116 = null; - var lightFragmentProcedure:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - fragmentLinker.name_120("tTotalLight"); - fragmentLinker.name_120("tTotalHighLight"); - fragmentLinker.name_120("tNormal"); - fragmentLinker.name_120("cAmbientColor",name_115.CONSTANT); - fragmentLinker.name_123(_ambientLightProcedure); - fragmentLinker.name_118(_ambientLightProcedure,"cAmbientColor"); - fragmentLinker.name_125(_ambientLightProcedure,"tTotalLight","tTotalHighLight"); - fragmentLinker.name_120("outColor"); - fragmentLinker.name_123(_diffuseProcedure); - fragmentLinker.name_125(_diffuseProcedure,"outColor"); + var procedure:Procedure = null; + var shadowProc:Procedure = null; + var dirMulShadowProcedure:Procedure = null; + var light:Light3D = null; + var lightFragmentProcedure:Procedure = null; + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); + fragmentLinker.declareVariable("tTotalLight"); + fragmentLinker.declareVariable("tTotalHighLight"); + fragmentLinker.declareVariable("tNormal"); + fragmentLinker.declareVariable("cAmbientColor",VariableType.CONSTANT); + fragmentLinker.addProcedure(_ambientLightProcedure); + fragmentLinker.setInputParams(_ambientLightProcedure,"cAmbientColor"); + fragmentLinker.setOutputParams(_ambientLightProcedure,"tTotalLight","tTotalHighLight"); + fragmentLinker.declareVariable("outColor"); + fragmentLinker.addProcedure(_diffuseProcedure); + fragmentLinker.setOutputParams(_diffuseProcedure,"outColor"); var positionVar:String = "aPosition"; var normalVar:String = "aNormal"; var tangentVar:String = "aTangent"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - vertexLinker.name_120(tangentVar,name_115.ATTRIBUTE); - vertexLinker.name_120(normalVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); + vertexLinker.declareVariable(tangentVar,VariableType.ATTRIBUTE); + vertexLinker.declareVariable(normalVar,VariableType.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(targetObject.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(this.alternativa3d::getPassUVProcedure()); + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(this.alternativa3d::getPassUVProcedure()); if(this.surfaceMap != null) { - fragmentLinker.name_123(_setGlossinessFromTextureProcedure); - fragmentLinker.name_125(_setGlossinessFromTextureProcedure,"tTotalHighLight"); + fragmentLinker.addProcedure(_setGlossinessFromTextureProcedure); + fragmentLinker.setOutputParams(_setGlossinessFromTextureProcedure,"tTotalHighLight"); } else { - fragmentLinker.name_123(_setGlossinessFromConstantProcedure); - fragmentLinker.name_125(_setGlossinessFromConstantProcedure,"tTotalHighLight"); + fragmentLinker.addProcedure(_setGlossinessFromConstantProcedure); + fragmentLinker.setOutputParams(_setGlossinessFromConstantProcedure,"tTotalHighLight"); } if(lightsLength > 0) { if(targetObject.alternativa3d::deltaTransformProcedure != null) { - vertexLinker.name_120("tTransformedNormal"); - procedure = targetObject.alternativa3d::deltaTransformProcedure.name_143(); - vertexLinker.name_123(procedure); - vertexLinker.name_118(procedure,normalVar); - vertexLinker.name_125(procedure,"tTransformedNormal"); + vertexLinker.declareVariable("tTransformedNormal"); + procedure = targetObject.alternativa3d::deltaTransformProcedure.newInstance(); + vertexLinker.addProcedure(procedure); + vertexLinker.setInputParams(procedure,normalVar); + vertexLinker.setOutputParams(procedure,"tTransformedNormal"); normalVar = "tTransformedNormal"; - vertexLinker.name_120("tTransformedTangent"); - procedure = targetObject.alternativa3d::deltaTransformProcedure.name_143(); - vertexLinker.name_123(procedure); - vertexLinker.name_118(procedure,tangentVar); - vertexLinker.name_125(procedure,"tTransformedTangent"); + vertexLinker.declareVariable("tTransformedTangent"); + procedure = targetObject.alternativa3d::deltaTransformProcedure.newInstance(); + vertexLinker.addProcedure(procedure); + vertexLinker.setInputParams(procedure,tangentVar); + vertexLinker.setOutputParams(procedure,"tTransformedTangent"); tangentVar = "tTransformedTangent"; } - vertexLinker.name_123(_passVaryingsProcedure); - vertexLinker.name_118(_passVaryingsProcedure,positionVar); - fragmentLinker.name_120("tViewVector"); - if(this.alternativa3d::var_23) + vertexLinker.addProcedure(_passVaryingsProcedure); + vertexLinker.setInputParams(_passVaryingsProcedure,positionVar); + fragmentLinker.declareVariable("tViewVector"); + if(this.alternativa3d::_-Vr) { - vertexLinker.name_123(_passTBNProcedure); - vertexLinker.name_118(_passTBNProcedure,tangentVar,normalVar); - fragmentLinker.name_123(_getNormalAndViewTangentProcedure); - fragmentLinker.name_125(_getNormalAndViewTangentProcedure,"tNormal","tViewVector"); + vertexLinker.addProcedure(_passTBNProcedure); + vertexLinker.setInputParams(_passTBNProcedure,tangentVar,normalVar); + fragmentLinker.addProcedure(_getNormalAndViewTangentProcedure); + fragmentLinker.setOutputParams(_getNormalAndViewTangentProcedure,"tNormal","tViewVector"); } else { - fragmentLinker.name_123(_getNormalAndViewObjectProcedure); - fragmentLinker.name_125(_getNormalAndViewObjectProcedure,"tNormal","tViewVector"); + fragmentLinker.addProcedure(_getNormalAndViewObjectProcedure); + fragmentLinker.setOutputParams(_getNormalAndViewObjectProcedure,"tNormal","tViewVector"); } if(directional != null) { - vertexLinker.name_123(directional.shadow.getVShader()); + vertexLinker.addProcedure(directional.shadow.getVShader()); shadowProc = directional.shadow.getFShader(); - fragmentLinker.name_123(shadowProc); - fragmentLinker.name_125(shadowProc,"tTotalLight"); + fragmentLinker.addProcedure(shadowProc); + fragmentLinker.setOutputParams(shadowProc,"tTotalLight"); dirMulShadowProcedure = _lightFragmentProcedures[directional.shadow]; if(dirMulShadowProcedure == null) { - dirMulShadowProcedure = new name_114(null,"DirectionalLightWithShadow"); + dirMulShadowProcedure = new Procedure(null,"DirectionalLightWithShadow"); this.formDirectionalProcedure(dirMulShadowProcedure,directional,true); } - fragmentLinker.name_123(dirMulShadowProcedure); - fragmentLinker.name_118(dirMulShadowProcedure,"tNormal","tViewVector","tTotalLight","cAmbientColor"); - fragmentLinker.name_125(dirMulShadowProcedure,"tTotalLight","tTotalHighLight"); + fragmentLinker.addProcedure(dirMulShadowProcedure); + fragmentLinker.setInputParams(dirMulShadowProcedure,"tNormal","tViewVector","tTotalLight","cAmbientColor"); + fragmentLinker.setOutputParams(dirMulShadowProcedure,"tTotalLight","tTotalHighLight"); } for(i = 0; i < lightsLength; ) { @@ -230,7 +230,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials lightFragmentProcedure = _lightFragmentProcedures[light]; if(lightFragmentProcedure == null) { - lightFragmentProcedure = new name_114(); + lightFragmentProcedure = new Procedure(); if(light is DirectionalLight) { this.formDirectionalProcedure(lightFragmentProcedure,light,false); @@ -238,69 +238,69 @@ package alternativa.tanks.game.entities.tank.graphics.materials } else if(light is OmniLight) { - lightFragmentProcedure.name_140(["#c0=c" + light.alternativa3d::name_138 + "Position","#c1=c" + light.alternativa3d::name_138 + "Color","#c2=c" + light.alternativa3d::name_138 + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, o1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx","mul t1.xyz, t0.xyz, t1.w","add o1.xyz, o1.xyz, t1.xyz","mul t0.xyz, t0.xyz, t0.www","add o0.xyz, o0.xyz, t0.xyz"]); + lightFragmentProcedure.compileFromArray(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, o1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx","mul t1.xyz, t0.xyz, t1.w","add o1.xyz, o1.xyz, t1.xyz","mul t0.xyz, t0.xyz, t0.www","add o0.xyz, o0.xyz, t0.xyz"]); lightFragmentProcedure.name = i + "OmniLight"; } else if(light is SpotLight) { - lightFragmentProcedure.name_140(["#c0=c" + light.alternativa3d::name_138 + "Position","#c1=c" + light.alternativa3d::name_138 + "Color","#c2=c" + light.alternativa3d::name_138 + "Radius","#c3=c" + light.alternativa3d::name_138 + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x,t0,i0","sqt t0.w,t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); + lightFragmentProcedure.compileFromArray(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#c3=c" + light.alternativa3d::_-oG + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x,t0,i0","sqt t0.w,t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); lightFragmentProcedure.name = i + "SpotLight"; } } - fragmentLinker.name_123(lightFragmentProcedure); - fragmentLinker.name_118(lightFragmentProcedure,"tNormal","tViewVector"); - fragmentLinker.name_125(lightFragmentProcedure,"tTotalLight","tTotalHighLight"); + fragmentLinker.addProcedure(lightFragmentProcedure); + fragmentLinker.setInputParams(lightFragmentProcedure,"tNormal","tViewVector"); + fragmentLinker.setOutputParams(lightFragmentProcedure,"tTotalLight","tTotalHighLight"); } i++; } } if(opacityMap != null) { - fragmentLinker.name_123(_setOpacityProcedure); - fragmentLinker.name_125(_setOpacityProcedure,"outColor"); + fragmentLinker.addProcedure(_setOpacityProcedure); + fragmentLinker.setOutputParams(_setOpacityProcedure,"outColor"); } if(this.surfaceMap != null) { - fragmentLinker.name_123(_applySpecularProcedure); - fragmentLinker.name_125(_applySpecularProcedure,"tTotalHighLight"); + fragmentLinker.addProcedure(_applySpecularProcedure); + fragmentLinker.setOutputParams(_applySpecularProcedure,"tTotalHighLight"); } - if(var_21) + if(§_-L4§) { - fragmentLinker.name_123(_mulLightingProcedureWithDiffuseAlpha); - fragmentLinker.name_118(_mulLightingProcedureWithDiffuseAlpha,"tTotalLight","tTotalHighLight","outColor"); + fragmentLinker.addProcedure(_mulLightingProcedureWithDiffuseAlpha); + fragmentLinker.setInputParams(_mulLightingProcedureWithDiffuseAlpha,"tTotalLight","tTotalHighLight","outColor"); } else { - fragmentLinker.name_123(_mulLightingProcedure); - fragmentLinker.name_118(_mulLightingProcedure,"tTotalLight","tTotalHighLight","outColor"); + fragmentLinker.addProcedure(_mulLightingProcedure); + fragmentLinker.setInputParams(_mulLightingProcedure,"tTotalLight","tTotalHighLight","outColor"); } if(fogMode == SIMPLE) { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_125(_mulLightingProcedure,"outColor"); - fragmentLinker.name_123(outputWithSimpleFogProcedure); - fragmentLinker.name_118(outputWithSimpleFogProcedure,"outColor"); + vertexLinker.addProcedure(passSimpleFogConstProcedure); + vertexLinker.setInputParams(passSimpleFogConstProcedure,positionVar); + fragmentLinker.setOutputParams(_mulLightingProcedure,"outColor"); + fragmentLinker.addProcedure(outputWithSimpleFogProcedure); + fragmentLinker.setInputParams(outputWithSimpleFogProcedure,"outColor"); } else if(fogMode == ADVANCED) { - vertexLinker.name_120("tProjected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); - fragmentLinker.name_125(_mulLightingProcedure,"outColor"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); - fragmentLinker.name_118(outputWithAdvancedFogProcedure,"outColor"); + vertexLinker.declareVariable("tProjected"); + vertexLinker.setOutputParams(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.addProcedure(postPassAdvancedFogConstProcedure); + vertexLinker.setInputParams(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); + fragmentLinker.setOutputParams(_mulLightingProcedure,"outColor"); + fragmentLinker.addProcedure(outputWithAdvancedFogProcedure); + fragmentLinker.setInputParams(outputWithAdvancedFogProcedure,"outColor"); } - fragmentLinker.name_133(vertexLinker); - vertexLinker.name_142(); - fragmentLinker.name_142(); - return new name_127(vertexLinker,fragmentLinker); + fragmentLinker.setOppositeLinker(vertexLinker); + vertexLinker.link(); + fragmentLinker.link(); + return new ShaderProgram(vertexLinker,fragmentLinker); } - private function formDirectionalProcedure(procedure:name_114, light:name_116, useShadow:Boolean) : void + private function formDirectionalProcedure(procedure:Procedure, light:Light3D, useShadow:Boolean) : void { - var source:Array = ["#c0=c" + light.alternativa3d::name_138 + "Direction","#c1=c" + light.alternativa3d::name_138 + "Color","add t0.xyz, i1.xyz, c0.xyz","mov t0.w, c0.w","nrm t0.xyz,t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, o1.w","dp3 t0.x, i0, c0.xyz","sat t0.x, t0.x"]; + var source:Array = ["#c0=c" + light.alternativa3d::_-oG + "Direction","#c1=c" + light.alternativa3d::_-oG + "Color","add t0.xyz, i1.xyz, c0.xyz","mov t0.w, c0.w","nrm t0.xyz,t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, o1.w","dp3 t0.x, i0, c0.xyz","sat t0.x, t0.x"]; if(useShadow) { source.push("mul t0.x, t0.x, i2.x"); @@ -317,47 +317,47 @@ package alternativa.tanks.game.entities.tank.graphics.materials source.push("mul t0.xyz, c1.xyz, t0.w"); source.push("add o1.xyz, o1.xyz, t0.xyz"); } - procedure.name_140(source); + procedure.compileFromArray(source); } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.colorMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.colorMap)) as Class,resourceType))) + if(this.colorMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.colorMap)) as Class,resourceType))) { resources[this.colorMap] = true; } - if(this.normalMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + if(this.normalMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) { resources[this.normalMap] = true; } - if(opacityMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(opacityMap)) as Class,resourceType))) + if(opacityMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(opacityMap)) as Class,resourceType))) { resources[opacityMap] = true; } - if(this.surfaceMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.surfaceMap)) as Class,resourceType))) + if(this.surfaceMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.surfaceMap)) as Class,resourceType))) { resources[this.surfaceMap] = true; } } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { - var light:name_116 = null; + var light:Light3D = null; var i:int = 0; var directional:DirectionalLight = null; - var program:name_127 = null; - var camTransform:name_139 = null; - var transform:name_139 = null; + var program:ShaderProgram = null; + var camTransform:Transform3D = null; + var transform:Transform3D = null; var rScale:Number = NaN; var len:Number = NaN; var omni:OmniLight = null; var spot:SpotLight = null; var falloff:Number = NaN; var hotspot:Number = NaN; - var lm:name_139 = null; + var lm:Transform3D = null; var dist:Number = NaN; - var cLocal:name_139 = null; + var cLocal:Transform3D = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -374,7 +374,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { return; } - if(!var_21 && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) { return; } @@ -382,17 +382,17 @@ package alternativa.tanks.game.entities.tank.graphics.materials { return; } - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.NORMAL); - var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TANGENT4); + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.NORMAL); + var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TANGENT4); if(positionBuffer == null || uvBuffer == null) { return; } lightsLength = lightsLength > 5 ? 5 : lightsLength; - var key:String = fogMode.toString() + (this.alternativa3d::var_23 ? "T" : "t") + (opacityMap != null ? "O" : "o") + (this.surfaceMap != null ? "S" : "s") + (var_21 ? "D" : "d"); + var key:String = fogMode.toString() + (this.alternativa3d::_-Vr ? "T" : "t") + (opacityMap != null ? "O" : "o") + (this.surfaceMap != null ? "S" : "s") + (§_-L4§ ? "D" : "d"); for(i = 0; i < lightsLength; i++) { light = lights[i]; @@ -401,14 +401,14 @@ package alternativa.tanks.game.entities.tank.graphics.materials directional = DirectionalLight(light); key += "S"; } - key += light.alternativa3d::name_138; + key += light.alternativa3d::_-oG; } var dict:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(dict == null) { dict = new Dictionary(); _programs[object.alternativa3d::transformProcedure] = dict; - program = this.setupProgram(object,lights,directional,lightsLength); + program = this.final(object,lights,directional,lightsLength); program.upload(camera.alternativa3d::context3D); dict[key] = program; } @@ -417,19 +417,19 @@ package alternativa.tanks.game.entities.tank.graphics.materials program = dict[key]; if(program == null) { - program = this.setupProgram(object,lights,directional,lightsLength); + program = this.final(object,lights,directional,lightsLength); program.upload(camera.alternativa3d::context3D); dict[key] = program; } } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cAmbientColor"),this.var_22 * camera.alternativa3d::ambient[0],this.var_22 * camera.alternativa3d::ambient[1],this.var_22 * camera.alternativa3d::ambient[2]); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.var_25,alpha); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cTiling"),this.var_26,this.var_24,0,0); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAmbientColor"),this.§_-d4§ * camera.alternativa3d::ambient[0],this.§_-d4§ * camera.alternativa3d::ambient[1],this.§_-d4§ * camera.alternativa3d::ambient[2]); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.§_-kj§,alpha); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cTiling"),this.§_-jM§,this.§_-Sf§,0,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sColormap"),this.colorMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sDiffuse"),diffuseMap.alternativa3d::_texture); if(opacityMap != null) @@ -442,50 +442,50 @@ package alternativa.tanks.game.entities.tank.graphics.materials } if(lightsLength > 0) { - if(this.alternativa3d::var_23) + if(this.alternativa3d::_-Vr) { - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.NORMAL],name_126.alternativa3d::FORMATS[name_126.NORMAL]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TANGENT4],name_126.alternativa3d::FORMATS[name_126.TANGENT4]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]); } drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sBump"),this.normalMap.alternativa3d::_texture); camTransform = object.alternativa3d::cameraToLocalTransform; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cCameraPosition"),camTransform.d,camTransform.h,camTransform.l); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cCameraPosition"),camTransform.d,camTransform.h,camTransform.l); for(i = 0; i < lightsLength; ) { light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::name_141; + transform = light.alternativa3d::_-cl; len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = light as OmniLight; - transform = light.alternativa3d::name_141; + transform = light.alternativa3d::_-cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); rScale /= 3; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is SpotLight) { spot = light as SpotLight; - transform = light.alternativa3d::name_141; + transform = light.alternativa3d::_-cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); rScale /= 3; falloff = Number(Math.cos(spot.falloff * 0.5)); hotspot = Number(Math.cos(spot.hotspot * 0.5)); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Radius"),spot.attenuationEnd * rScale - spot.attenuationBegin * rScale,spot.attenuationBegin * rScale,hotspot == falloff ? 0.000001 : hotspot - falloff,falloff); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),spot.attenuationEnd * rScale - spot.attenuationBegin * rScale,spot.attenuationBegin * rScale,hotspot == falloff ? 0.000001 : hotspot - falloff,falloff); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } if(directional != null) { @@ -499,12 +499,12 @@ package alternativa.tanks.game.entities.tank.graphics.materials { lm = object.alternativa3d::localToCameraTransform; dist = fogFar - fogNear; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); } if(fogMode == SIMPLE) { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); } if(fogMode == ADVANCED) { @@ -515,7 +515,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { bmd.setPixel(i,0,i / 32 * 255 << 16); } - fogTexture = new name_93(bmd); + fogTexture = new BitmapTextureResource(bmd); fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -538,18 +538,18 @@ package alternativa.tanks.game.entities.tank.graphics.materials rightY /= lens; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),fogTexture.alternativa3d::_texture); } - if(var_21 || opacityMap != null || alpha < 1) + if(§_-L4§ || opacityMap != null || alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT); } else { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); } } } diff --git a/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial2.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial2.as deleted file mode 100644 index f801199..0000000 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial2.as +++ /dev/null @@ -1,699 +0,0 @@ -package alternativa.tanks.game.entities.tank.graphics.materials -{ - import alternativa.engine3d.alternativa3d; - import flash.display.BitmapData; - import flash.display3D.Context3DBlendFactor; - import flash.display3D.Context3DProgramType; - import flash.display3D.VertexBuffer3D; - import flash.utils.Dictionary; - import flash.utils.getDefinitionByName; - import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_23.name_103; - import package_23.name_208; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; - import package_4.class_5; - import package_4.name_127; - import package_4.name_28; - - use namespace alternativa3d; - - public class TankMaterial2 extends class_5 - { - private static var fogTexture:name_129; - - public static const DISABLED:int = 0; - - public static const SIMPLE:int = 1; - - public static const ADVANCED:int = 2; - - public static var fogMode:int = DISABLED; - - public static var fogNear:Number = 1000; - - public static var fogFar:Number = 5000; - - public static var fogMaxDensity:Number = 1; - - public static var fogColorR:Number = 200 / 255; - - public static var fogColorG:Number = 162 / 255; - - public static var fogColorB:Number = 200 / 255; - - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul t1.xyz, c0.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithSimpleFog"); - - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t1.xyz, t1.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithAdvancedFog"); - - private static const objectsProgramsSets:Dictionary = new Dictionary(); - - private static const lightContainer:Vector. = new Vector.(1,true); - - private static const actualLigths:Vector. = new Vector.(); - - private static const passUVProcedure:name_114 = new name_114(["#a0=aUV","#v0=vUV","mov v0, a0"],"passUVProcedure"); - - private static const diffuseProcedure:name_114 = name_114.name_140(["#v0=vUV","#c0=cTiling","#s0=sColormap","#s1=sDiffuse","#s2=sSurface","mul t0, v0, c0","tex t1, t0, s0 <2d, repeat, linear, miplinear>","tex t0, v0, s1 <2d, clamp, linear, miplinear>","add t2, t0, t0","mul t2, t2, t1","tex t1, v0, s2 <2d, clamp, linear, miplinear>","mul t2, t2, t1.x","add t2, t2, t0","mul t0, t0, t1.x","sub o0, t2, t0"],"diffuse"); - - private static const setColorProcedure:name_114 = new name_114(["mov o0, i0"],"setColorProcedure"); - - private static const outputWithLightProcedure:name_114 = new name_114(["mul t0.xyz, i0.xyz, i1.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithLightProcedure"); - - private static const outputProcedure:name_114 = new name_114(["mov o0, i0"],"outputProcedure"); - - private static const passVaryingsProcedure:name_114 = new name_114(["#c0=cCamera","#v0=vPosition","#v1=vViewVector","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryingsProcedure"); - - private static const getNormalAndViewProcedure:name_114 = new name_114(["#v0=vUV","#v1=vViewVector","#c0=cSurface","#s0=sBump","tex t0, v0, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","neg t0.y, t0.y","nrm o0.xyz, t0.xyz","nrm o1.xyz, v1"],"getNormalAndViewProcedure"); - - private static const getSpecularOptionsProcedure:name_114 = new name_114(["#v0=vUV","#c0=cSurface","#s0=sSurface","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul i0.w, c0.y, t0.z","mul i1.w, c0.z, t0.y"],"getSpecularOptionsProcedure"); - - public var diffuse:name_129; - - public var colorMap:name_129; - - public var surfaceMap:name_129; - - public var var_26:Number = 1; - - public var var_24:Number = 1; - - public var normalMap:name_129; - - public var glossiness:Number = 100; - - public var var_25:Number = 1; - - private const outputWithSpecularProcedure:name_114 = new name_114(["mul t0.xyz, i0.xyz, i1.xyz","add t0.xyz, t0.xyz, i2.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithSpecularProcedure"); - - public function TankMaterial2(colorMap:name_129 = null, diffuse:name_129 = null, normalMap:name_129 = null, surfaceMap:name_129 = null) - { - super(); - this.colorMap = colorMap; - this.diffuse = diffuse; - this.normalMap = normalMap; - this.surfaceMap = surfaceMap; - } - - public static function method_33(texture:name_129) : void - { - fogTexture = texture; - } - - private static function directionalProcedure(light:name_116, add:Boolean) : name_114 - { - return new name_114(["#c0=c" + light.alternativa3d::name_138 + "Direction","#c1=c" + light.alternativa3d::name_138 + "Color","add t0.xyz, i1.xyz, c0.xyz","nrm t0.xyz, t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, i0.w","mul t0.w, t0.w, i1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x",add ? "mul t0.xyz, c1.xyz, t0.x" : "mul o0.xyz, c1.xyz, t0.x",add ? "add o0.xyz, o0.xyz, t0.xyz" : "mov o0.w, c0.w",add ? "mul t0.xyz, c1.xyz, t0.w" : "mul o1.xyz, c1.xyz, t0.w",add ? "add o1.xyz, o1.xyz, t0.xyz" : "mov o1.w, c0.w"],"directionalProcedure"); - } - - private static function omniProcedure(light:name_116, add:Boolean) : name_114 - { - return new name_114(["#c0=c" + light.alternativa3d::name_138 + "Position","#c1=c" + light.alternativa3d::name_138 + "Color","#c2=c" + light.alternativa3d::name_138 + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, i0.w","mul t1.w, t1.w, i1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx",add ? "mul t1.xyz, t0.xyz, t0.w" : "mul o0.xyz, t0.xyz, t0.w",add ? "add o0.xyz, o0.xyz, t1.xyz" : "mov o0.w, c0.w",add ? "mul t1.xyz, t0.xyz, t1.w" : "mul o1.xyz, t0.xyz, t1.w",add ? "add o1.xyz, o1.xyz, t1.xyz" : "mov o1.w, c0.w"],"omniProcedure"); - } - - override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void - { - super.alternativa3d::fillResources(resources,resourceType); - if(this.diffuse != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.diffuse)) as Class,resourceType))) - { - resources[this.diffuse] = true; - } - if(this.colorMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.colorMap)) as Class,resourceType))) - { - resources[this.colorMap] = true; - } - if(this.normalMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) - { - resources[this.normalMap] = true; - } - if(this.surfaceMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.surfaceMap)) as Class,resourceType))) - { - resources[this.surfaceMap] = true; - } - } - - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void - { - var i:int = 0; - var light:name_116 = null; - var shadowedLight:DirectionalLight = null; - var drawUnit:name_135 = null; - var shadowOrAmbientProgram:ShadowOrAmbientProgram = null; - var lightingProgram:LightingProgram = null; - var numShadows:int = 0; - var shadow:name_103 = null; - var lightsPrograms:Dictionary = null; - var fogProgram:FogProgram = null; - if(this.diffuse == null || this.colorMap == null || this.normalMap == null || this.surfaceMap == null || this.diffuse.alternativa3d::_texture == null || this.colorMap.alternativa3d::_texture == null || this.normalMap.alternativa3d::_texture == null || this.surfaceMap.alternativa3d::_texture == null) - { - return; - } - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - if(positionBuffer == null || uvBuffer == null) - { - return; - } - var lightsKey:String = ""; - var actualLightsLength:int = 0; - for(i = 0; i < lightsLength; ) - { - light = lights[i]; - if(light is DirectionalLight && shadowedLight == null && DirectionalLight(light).shadow != null) - { - shadowedLight = DirectionalLight(light); - } - else if(actualLightsLength < 8 && (light is OmniLight || light is DirectionalLight)) - { - actualLigths[actualLightsLength] = light; - lightsKey += light.alternativa3d::name_138; - actualLightsLength++; - } - i++; - } - var programs:Array = objectsProgramsSets[object.alternativa3d::transformProcedure]; - if(programs == null) - { - programs = []; - objectsProgramsSets[object.alternativa3d::transformProcedure] = programs; - } - if(shadowedLight != null) - { - shadowOrAmbientProgram = programs[0]; - if(shadowOrAmbientProgram == null) - { - shadowOrAmbientProgram = this.method_125(object,shadowedLight.shadow,true); - shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); - programs[0] = shadowOrAmbientProgram; - } - drawUnit = this.method_126(shadowOrAmbientProgram,shadowedLight.shadow,true,camera,object,surface,geometry); - } - else - { - shadowOrAmbientProgram = programs[1]; - if(shadowOrAmbientProgram == null) - { - shadowOrAmbientProgram = this.method_125(object,null,true); - shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); - programs[1] = shadowOrAmbientProgram; - } - drawUnit = this.method_126(shadowOrAmbientProgram,null,true,camera,object,surface,geometry); - } - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.TANK_OPAQUE); - if(shadowedLight != null) - { - numShadows = object.alternativa3d::shadowRenderers != null ? int(object.alternativa3d::shadowRenderers.length) : 0; - for(i = 0; i < numShadows; ) - { - shadow = object.alternativa3d::shadowRenderers[i]; - if(shadow is name_208) - { - shadowOrAmbientProgram = programs[2]; - if(shadowOrAmbientProgram == null) - { - shadowOrAmbientProgram = this.method_125(object,shadow,false); - shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); - programs[2] = shadowOrAmbientProgram; - } - drawUnit = this.method_126(shadowOrAmbientProgram,shadow,false,camera,object,surface,geometry); - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ZERO; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_COLOR; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.SHADOWS); - } - i++; - } - lightingProgram = programs[3]; - if(lightingProgram == null) - { - lightContainer[0] = shadowedLight; - lightingProgram = this.method_127(object,lightContainer,1); - lightingProgram.upload(camera.alternativa3d::context3D); - programs[3] = lightingProgram; - } - drawUnit = this.method_128(lightingProgram,lightContainer,1,camera,object,surface,geometry); - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.DESTINATION_ALPHA; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.SHADOWED_LIGHTS); - } - if(actualLightsLength > 0) - { - lightsPrograms = programs[4]; - if(lightsPrograms == null) - { - lightsPrograms = new Dictionary(false); - programs[4] = lightsPrograms; - } - lightingProgram = lightsPrograms[lightsKey]; - if(lightingProgram == null) - { - lightingProgram = this.method_127(object,actualLigths,actualLightsLength); - lightingProgram.upload(camera.alternativa3d::context3D); - lightsPrograms[lightsKey] = lightingProgram; - } - drawUnit = this.method_128(lightingProgram,actualLigths,actualLightsLength,camera,object,surface,geometry); - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.LIGHTS); - } - if(fogMode == SIMPLE || fogMode == ADVANCED) - { - fogProgram = programs[int(fogMode + 4)]; - if(fogProgram == null) - { - fogProgram = this.method_129(object); - fogProgram.upload(camera.alternativa3d::context3D); - programs[int(fogMode + 4)] = fogProgram; - } - drawUnit = this.method_130(fogProgram,camera,object,surface,geometry); - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.FOG); - } - actualLigths.length = 0; - } - - private function method_125(object:name_78, shadow:name_103, ambient:Boolean) : ShadowOrAmbientProgram - { - var shadowProc:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - if(object.alternativa3d::transformProcedure != null) - { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); - } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - if(ambient) - { - vertexLinker.name_123(passUVProcedure); - } - var colorConst:String = ambient ? "cAmbient" : "cShadow"; - fragmentLinker.name_120(colorConst,name_115.CONSTANT); - fragmentLinker.name_120("tLight"); - fragmentLinker.name_123(setColorProcedure); - fragmentLinker.name_118(setColorProcedure,colorConst); - fragmentLinker.name_125(setColorProcedure,"tLight"); - if(shadow != null) - { - vertexLinker.name_123(shadow.getVShader()); - shadowProc = shadow.getFIntensityShader(); - fragmentLinker.name_123(shadowProc); - fragmentLinker.name_125(shadowProc,"tLight"); - } - if(ambient) - { - fragmentLinker.name_120("tColor"); - fragmentLinker.name_123(diffuseProcedure); - fragmentLinker.name_125(diffuseProcedure,"tColor"); - fragmentLinker.name_123(outputWithLightProcedure); - fragmentLinker.name_118(outputWithLightProcedure,"tColor","tLight"); - } - else - { - fragmentLinker.name_123(outputProcedure); - fragmentLinker.name_118(outputProcedure,"tLight"); - } - fragmentLinker.name_133(vertexLinker); - return new ShadowOrAmbientProgram(vertexLinker,fragmentLinker); - } - - private function method_126(program:ShadowOrAmbientProgram, shadow:name_103, ambient:Boolean, camera:name_124, object:name_78, surface:name_117, geometry:name_119) : name_135 - { - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - if(ambient) - { - drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - } - object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); - if(ambient) - { - drawUnit.alternativa3d::name_134(program.cAmbient,camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1); - drawUnit.alternativa3d::name_134(program.cTiling,this.var_26,this.var_24,0,0); - drawUnit.alternativa3d::setTextureAt(program.sDiffuse,this.diffuse.alternativa3d::_texture); - drawUnit.alternativa3d::setTextureAt(program.sColormap,this.colorMap.alternativa3d::_texture); - drawUnit.alternativa3d::setTextureAt(program.sSurface,this.surfaceMap.alternativa3d::_texture); - } - else - { - drawUnit.alternativa3d::name_134(program.cShadow,1,1,1,1); - } - if(shadow != null) - { - shadow.applyShader(drawUnit,program,object,camera); - } - return drawUnit; - } - - private function method_127(object:name_78, lights:Vector., lightsLength:int) : LightingProgram - { - var procedure:name_114 = null; - var light:name_116 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - if(object.alternativa3d::transformProcedure != null) - { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); - } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(passUVProcedure); - vertexLinker.name_123(passVaryingsProcedure); - vertexLinker.name_118(passVaryingsProcedure,positionVar); - fragmentLinker.name_120("tNormal"); - fragmentLinker.name_120("tView"); - fragmentLinker.name_123(getNormalAndViewProcedure); - fragmentLinker.name_125(getNormalAndViewProcedure,"tNormal","tView"); - fragmentLinker.name_123(getSpecularOptionsProcedure); - fragmentLinker.name_118(getSpecularOptionsProcedure,"tNormal","tView"); - fragmentLinker.name_120("tLight"); - fragmentLinker.name_120("tHLight"); - var first:Boolean = true; - for(var i:int = 0; i < lightsLength; ) - { - light = lights[i]; - if(light is DirectionalLight) - { - procedure = directionalProcedure(light,!first); - fragmentLinker.name_123(procedure); - fragmentLinker.name_118(procedure,"tNormal","tView"); - fragmentLinker.name_125(procedure,"tLight","tHLight"); - if(first) - { - first = false; - } - } - else if(light is OmniLight) - { - procedure = omniProcedure(light,!first); - fragmentLinker.name_123(procedure); - fragmentLinker.name_118(procedure,"tNormal","tView"); - fragmentLinker.name_125(procedure,"tLight","tHLight"); - if(first) - { - first = false; - } - } - i++; - } - fragmentLinker.name_120("outColor"); - fragmentLinker.name_123(diffuseProcedure); - fragmentLinker.name_125(diffuseProcedure,"outColor"); - fragmentLinker.name_123(this.outputWithSpecularProcedure); - fragmentLinker.name_118(this.outputWithSpecularProcedure,"outColor","tLight","tHLight"); - fragmentLinker.name_133(vertexLinker); - return new LightingProgram(vertexLinker,fragmentLinker); - } - - private function method_128(program:LightingProgram, lights:Vector., lightsLength:int, camera:name_124, object:name_78, surface:name_117, geometry:name_119) : name_135 - { - var rScale:Number = NaN; - var transform:name_139 = null; - var light:name_116 = null; - var len:Number = NaN; - var omni:OmniLight = null; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_144(program.cCamera,object.alternativa3d::cameraToLocalTransform.d,object.alternativa3d::cameraToLocalTransform.h,object.alternativa3d::cameraToLocalTransform.l,1); - for(var i:int = 0; i < lightsLength; ) - { - light = lights[i]; - if(light is DirectionalLight) - { - transform = light.alternativa3d::name_141; - len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); - } - else if(light is OmniLight) - { - omni = OmniLight(light); - transform = light.alternativa3d::name_141; - rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); - rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); - rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); - rScale /= 3; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); - } - i++; - } - drawUnit.alternativa3d::name_134(program.cSurface,0,this.glossiness,this.var_25,1); - drawUnit.alternativa3d::name_134(program.cTiling,this.var_26,this.var_24,0,0); - drawUnit.alternativa3d::setTextureAt(program.sDiffuse,this.diffuse.alternativa3d::_texture); - drawUnit.alternativa3d::setTextureAt(program.sColormap,this.colorMap.alternativa3d::_texture); - drawUnit.alternativa3d::setTextureAt(program.sSurface,this.surfaceMap.alternativa3d::_texture); - drawUnit.alternativa3d::setTextureAt(program.sBump,this.normalMap.alternativa3d::_texture); - return drawUnit; - } - - private function method_129(object:name_78) : FogProgram - { - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - if(object.alternativa3d::transformProcedure != null) - { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); - } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - if(fogMode == SIMPLE) - { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_123(outputWithSimpleFogProcedure); - } - else - { - vertexLinker.name_120("projected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"projected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"projected"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); - } - fragmentLinker.name_133(vertexLinker); - return new FogProgram(vertexLinker,fragmentLinker); - } - - private function method_130(program:FogProgram, camera:name_124, object:name_78, surface:name_117, geometry:name_119) : name_135 - { - var lm:name_139 = null; - var dist:Number = NaN; - var cLocal:name_139 = null; - var halfW:Number = NaN; - var leftX:Number = NaN; - var leftY:Number = NaN; - var rightX:Number = NaN; - var rightY:Number = NaN; - var angle:Number = NaN; - var dx:Number = NaN; - var dy:Number = NaN; - var lens:Number = NaN; - var uScale:Number = NaN; - var uRight:Number = NaN; - var bmd:BitmapData = null; - var i:int = 0; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); - if(fogMode == SIMPLE || fogMode == ADVANCED) - { - lm = object.alternativa3d::localToCameraTransform; - dist = fogFar - fogNear; - drawUnit.alternativa3d::name_144(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); - drawUnit.alternativa3d::name_134(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity); - } - if(fogMode == SIMPLE) - { - drawUnit.alternativa3d::name_134(program.cFogColor,fogColorR,fogColorG,fogColorB); - } - if(fogMode == ADVANCED) - { - if(fogTexture == null) - { - bmd = new BitmapData(32,1,false,16711680); - for(i = 0; i < 32; i++) - { - bmd.setPixel(i,0,i / 32 * 255 << 16); - } - fogTexture = new name_93(bmd); - fogTexture.upload(camera.alternativa3d::context3D); - } - cLocal = camera.alternativa3d::localToGlobalTransform; - halfW = camera.view.width / 2; - leftX = -halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; - leftY = -halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; - rightX = halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; - rightY = halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; - angle = Math.atan2(leftY,leftX) - Math.PI / 2; - if(angle < 0) - { - angle += Math.PI * 2; - } - dx = rightX - leftX; - dy = rightY - leftY; - lens = Number(Math.sqrt(dx * dx + dy * dy)); - leftX /= lens; - leftY /= lens; - rightX /= lens; - rightY /= lens; - uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; - uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.cFogConsts,0.5 * uScale,0.5 - uRight,0); - drawUnit.alternativa3d::setTextureAt(program.sFogTexture,fogTexture.alternativa3d::_texture); - } - return drawUnit; - } - - override public function clone() : class_4 - { - var cloned:TankMaterial2 = new TankMaterial2(this.colorMap,this.diffuse,this.normalMap,this.surfaceMap); - cloned.var_25 = this.var_25; - cloned.glossiness = this.glossiness; - return cloned; - } - } -} - -import package_30.name_121; -import package_4.name_127; - -class ShadowOrAmbientProgram extends name_127 -{ - public var aPosition:int; - - public var aUV:int; - - public var cProjMatrix:int; - - public var cAmbient:int; - - public var cTiling:int; - - public var sDiffuse:int; - - public var sColormap:int; - - public var sSurface:int; - - public var cShadow:int; - - public function ShadowOrAmbientProgram(vertex:name_121, fragment:name_121) - { - super(vertex,fragment); - this.aPosition = vertex.name_207("aPosition"); - this.aUV = vertex.name_207("aUV"); - this.cProjMatrix = vertex.name_207("cProjMatrix"); - this.cAmbient = fragment.name_207("cAmbient"); - this.cTiling = fragment.name_207("cTiling"); - this.sDiffuse = fragment.name_207("sDiffuse"); - this.sColormap = fragment.name_207("sColormap"); - this.sSurface = fragment.name_207("sSurface"); - this.cShadow = fragment.name_207("cShadow"); - } -} - -class LightingProgram extends name_127 -{ - public var aPosition:int; - - public var aUV:int; - - public var cProjMatrix:int; - - public var cCamera:int; - - public var cSurface:int; - - public var cTiling:int; - - public var sDiffuse:int; - - public var sColormap:int; - - public var sSurface:int; - - public var sBump:int; - - public function LightingProgram(vertex:name_121, fragment:name_121) - { - super(vertex,fragment); - this.aPosition = vertex.name_207("aPosition"); - this.aUV = vertex.name_207("aUV"); - this.cProjMatrix = vertex.name_207("cProjMatrix"); - this.cCamera = vertex.name_207("cCamera"); - this.cSurface = fragment.name_207("cSurface"); - this.cTiling = fragment.name_207("cTiling"); - this.sDiffuse = fragment.name_207("sDiffuse"); - this.sColormap = fragment.name_207("sColormap"); - this.sSurface = fragment.name_207("sSurface"); - this.sBump = fragment.name_207("sBump"); - } -} - -class FogProgram extends name_127 -{ - public var aPosition:int; - - public var cProjMatrix:int; - - public var cFogSpace:int; - - public var cFogRange:int; - - public var cFogColor:int; - - public var cFogConsts:int; - - public var sFogTexture:int; - - public function FogProgram(vertex:name_121, fragment:name_121) - { - super(vertex,fragment); - this.aPosition = vertex.name_207("aPosition"); - this.cProjMatrix = vertex.name_207("cProjMatrix"); - this.cFogSpace = vertex.name_207("cFogSpace"); - this.cFogRange = fragment.name_207("cFogRange"); - this.cFogColor = fragment.name_207("cFogColor"); - this.cFogConsts = fragment.name_207("cFogConsts"); - this.sFogTexture = fragment.name_207("sFogTexture"); - } -} diff --git a/src/alternativa/tanks/game/entities/tank/graphics/materials/TracksMaterial2.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/TracksMaterial2.as index 13079fb..ad0b282 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TracksMaterial2.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TracksMaterial2.as @@ -1,6 +1,28 @@ package alternativa.tanks.game.entities.tank.graphics.materials { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.lights.OmniLight; + import alternativa.engine3d.materials.A3DUtils; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; + import alternativa.engine3d.shadows.DirectionalShadowRenderer; + import alternativa.engine3d.shadows.ShadowRenderer; import flash.display.BitmapData; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DProgramType; @@ -8,34 +30,12 @@ package alternativa.tanks.game.entities.tank.graphics.materials import flash.utils.Dictionary; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_23.name_103; - import package_23.name_208; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; - import package_4.class_5; - import package_4.name_127; - import package_4.name_28; use namespace alternativa3d; - public class TracksMaterial2 extends class_5 + public class TracksMaterial2 extends TextureMaterial { - private static var fogTexture:name_129; + private static var fogTexture:TextureResource; public static const DISABLED:int = 0; @@ -57,112 +57,112 @@ package alternativa.tanks.game.entities.tank.graphics.materials public static var fogColorB:Number = 200 / 255; - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + private static const passSimpleFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul t1.xyz, c0.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithSimpleFog"); + private static const outputWithSimpleFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul t1.xyz, c0.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithSimpleFog"); - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + private static const postPassAdvancedFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t1.xyz, t1.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithAdvancedFog"); + private static const outputWithAdvancedFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t1.xyz, t1.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithAdvancedFog"); private static const objectsProgramsSets:Dictionary = new Dictionary(); - private static const lightContainer:Vector. = new Vector.(1,true); + private static const lightContainer:Vector. = new Vector.(1,true); - private static const actualLigths:Vector. = new Vector.(); + private static const actualLigths:Vector. = new Vector.(); - private static const passUVProcedure:name_114 = name_114.name_140(["#a0=aUV","#v0=vUV","#c0=cUVOffsets","add v0, a0, c0"]); + private static const passUVProcedure:Procedure = Procedure.compileFromArray(["#a0=aUV","#v0=vUV","#c0=cUVOffsets","add v0, a0, c0"]); - private static const diffuseProcedure:name_114 = name_114.name_140(["#v0=vUV","#s0=sDiffuse","tex t0, v0, s0 <2d, repeat, linear, miplinear>","mov o0, t0"],"diffuse"); + private static const diffuseProcedure:Procedure = Procedure.compileFromArray(["#v0=vUV","#s0=sDiffuse","tex t0, v0, s0 <2d, repeat, linear, miplinear>","mov o0, t0"],"diffuse"); - private static const setColorProcedure:name_114 = new name_114(["mov o0, i0"],"setColorProcedure"); + private static const setColorProcedure:Procedure = new Procedure(["mov o0, i0"],"setColorProcedure"); - private static const outputWithLightProcedure:name_114 = new name_114(["mul t0.xyz, i0.xyz, i1.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithLightProcedure"); + private static const outputWithLightProcedure:Procedure = new Procedure(["mul t0.xyz, i0.xyz, i1.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithLightProcedure"); - private static const outputProcedure:name_114 = new name_114(["mov o0, i0"],"outputProcedure"); + private static const outputProcedure:Procedure = new Procedure(["mov o0, i0"],"outputProcedure"); - private static const passVaryingsProcedure:name_114 = new name_114(["#c0=cCamera","#v0=vPosition","#v1=vViewVector","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryingsProcedure"); + private static const passVaryingsProcedure:Procedure = new Procedure(["#c0=cCamera","#v0=vPosition","#v1=vViewVector","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryingsProcedure"); - private static const passTBNRightProcedure:name_114 = getPassTBNProcedure(true); + private static const passTBNRightProcedure:Procedure = getPassTBNProcedure(true); - private static const passTBNLeftProcedure:name_114 = getPassTBNProcedure(false); + private static const passTBNLeftProcedure:Procedure = getPassTBNProcedure(false); - private static const getNormalAndViewProcedure:name_114 = new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#v4=vViewVector","#c0=cSurface","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz","nrm o1.xyz, v4"],"getNormalAndViewProcedure"); + private static const getNormalAndViewProcedure:Procedure = new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#v4=vViewVector","#c0=cSurface","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz","nrm o1.xyz, v4"],"getNormalAndViewProcedure"); - private static const getSpecularOptionsConstProcedure:name_114 = new name_114(["#c0=cSurface","mov i0.w, c0.y","mov i1.w, c0.z"],"getSpecularOptionsConstProcedure"); + private static const getSpecularOptionsConstProcedure:Procedure = new Procedure(["#c0=cSurface","mov i0.w, c0.y","mov i1.w, c0.z"],"getSpecularOptionsConstProcedure"); public var uOffset:Number = 0; public var vOffset:Number = 0; - public var normalMap:name_129; + public var normalMap:TextureResource; public var glossiness:Number = 100; - public var var_25:Number = 1; + public var §_-kj§:Number = 1; - private const outputWithSpecularProcedure:name_114 = new name_114(["mul t0.xyz, i0.xyz, i1.xyz","add t0.xyz, t0.xyz, i2.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithSpecularProcedure"); + private const outputWithSpecularProcedure:Procedure = new Procedure(["mul t0.xyz, i0.xyz, i1.xyz","add t0.xyz, t0.xyz, i2.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithSpecularProcedure"); - public function TracksMaterial2(diffuse:name_129 = null, normalMap:name_129 = null) + public function TracksMaterial2(diffuse:TextureResource = null, normalMap:TextureResource = null) { super(); this.diffuseMap = diffuse; this.normalMap = normalMap; } - public static function method_33(texture:name_129) : void + public static function setFogTexture(texture:TextureResource) : void { fogTexture = texture; } - private static function getPassTBNProcedure(right:Boolean) : name_114 + private static function getPassTBNProcedure(right:Boolean) : Procedure { var crsInSpace:String = right ? "crs t1.xyz, i0, i1" : "crs t1.xyz, i1, i0"; - return new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure"); + return new Procedure(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure"); } - private static function directionalProcedure(light:name_116, add:Boolean) : name_114 + private static function directionalProcedure(light:Light3D, add:Boolean) : Procedure { - return new name_114(["#c0=c" + light.alternativa3d::name_138 + "Direction","#c1=c" + light.alternativa3d::name_138 + "Color","add t0.xyz, i1.xyz, c0.xyz","nrm t0.xyz, t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, i0.w","mul t0.w, t0.w, i1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x",add ? "mul t0.xyz, c1.xyz, t0.x" : "mul o0.xyz, c1.xyz, t0.x",add ? "add o0.xyz, o0.xyz, t0.xyz" : "mov o0.w, c0.w",add ? "mul t0.xyz, c1.xyz, t0.w" : "mul o1.xyz, c1.xyz, t0.w",add ? "add o1.xyz, o1.xyz, t0.xyz" : "mov o1.w, c0.w"],"directionalProcedure"); + return new Procedure(["#c0=c" + light.alternativa3d::_-oG + "Direction","#c1=c" + light.alternativa3d::_-oG + "Color","add t0.xyz, i1.xyz, c0.xyz","nrm t0.xyz, t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, i0.w","mul t0.w, t0.w, i1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x",add ? "mul t0.xyz, c1.xyz, t0.x" : "mul o0.xyz, c1.xyz, t0.x",add ? "add o0.xyz, o0.xyz, t0.xyz" : "mov o0.w, c0.w",add ? "mul t0.xyz, c1.xyz, t0.w" : "mul o1.xyz, c1.xyz, t0.w",add ? "add o1.xyz, o1.xyz, t0.xyz" : "mov o1.w, c0.w"],"directionalProcedure"); } - private static function omniProcedure(light:name_116, add:Boolean) : name_114 + private static function omniProcedure(light:Light3D, add:Boolean) : Procedure { - return new name_114(["#c0=c" + light.alternativa3d::name_138 + "Position","#c1=c" + light.alternativa3d::name_138 + "Color","#c2=c" + light.alternativa3d::name_138 + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, i0.w","mul t1.w, t1.w, i1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx",add ? "mul t1.xyz, t0.xyz, t0.w" : "mul o0.xyz, t0.xyz, t0.w",add ? "add o0.xyz, o0.xyz, t1.xyz" : "mov o0.w, c0.w",add ? "mul t1.xyz, t0.xyz, t1.w" : "mul o1.xyz, t0.xyz, t1.w",add ? "add o1.xyz, o1.xyz, t1.xyz" : "mov o1.w, c0.w"],"omniProcedure"); + return new Procedure(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, i0.w","mul t1.w, t1.w, i1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx",add ? "mul t1.xyz, t0.xyz, t0.w" : "mul o0.xyz, t0.xyz, t0.w",add ? "add o0.xyz, o0.xyz, t1.xyz" : "mov o0.w, c0.w",add ? "mul t1.xyz, t0.xyz, t1.w" : "mul o1.xyz, t0.xyz, t1.w",add ? "add o1.xyz, o1.xyz, t1.xyz" : "mov o1.w, c0.w"],"omniProcedure"); } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(diffuseMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(diffuseMap)) as Class,resourceType))) + if(diffuseMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(diffuseMap)) as Class,resourceType))) { resources[diffuseMap] = true; } - if(this.normalMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + if(this.normalMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) { resources[this.normalMap] = true; } } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { var i:int = 0; - var light:name_116 = null; + var light:Light3D = null; var shadowedLight:DirectionalLight = null; - var drawUnit:name_135 = null; - var program:name_127 = null; + var drawUnit:DrawUnit = null; + var program:ShaderProgram = null; var numShadows:int = 0; - var shadow:name_103 = null; + var shadow:ShadowRenderer = null; var lightsPrograms:Dictionary = null; if(diffuseMap == null || this.normalMap == null || diffuseMap.alternativa3d::_texture == null || this.normalMap.alternativa3d::_texture == null) { return; } - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var tangentBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TANGENT4); - var normalBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.NORMAL); + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var tangentBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TANGENT4); + var normalBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.NORMAL); if(positionBuffer == null || uvBuffer == null || tangentBuffer == null || normalBuffer == null) { return; @@ -179,7 +179,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials else if(actualLightsLength < 8 && (light is OmniLight || light is DirectionalLight)) { actualLigths[actualLightsLength] = light; - lightsKey += light.alternativa3d::name_138; + lightsKey += light.alternativa3d::_-oG; actualLightsLength++; } i++; @@ -214,14 +214,14 @@ package alternativa.tanks.game.entities.tank.graphics.materials } drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.TANK_OPAQUE); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.TANK_OPAQUE); if(shadowedLight != null) { numShadows = object.alternativa3d::shadowRenderers != null ? int(object.alternativa3d::shadowRenderers.length) : 0; for(i = 0; i < numShadows; ) { shadow = object.alternativa3d::shadowRenderers[i]; - if(shadow is name_208) + if(shadow is DirectionalShadowRenderer) { program = programs[2]; if(program == null) @@ -233,7 +233,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials drawUnit = this.getShadowOrAmbientDrawUnit(program,shadow,false,camera,object,surface,geometry); drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ZERO; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_COLOR; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.SHADOWS); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.SHADOWS); } i++; } @@ -248,7 +248,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials drawUnit = this.getLightingDrawUnit(program,lightContainer,1,camera,object,surface,geometry); drawUnit.alternativa3d::blendSource = Context3DBlendFactor.DESTINATION_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.SHADOWED_LIGHTS); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.SHADOWED_LIGHTS); } if(actualLightsLength > 0) { @@ -268,7 +268,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials drawUnit = this.getLightingDrawUnit(program,actualLigths,actualLightsLength,camera,object,surface,geometry); drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.LIGHTS); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.LIGHTS); } if(fogMode == SIMPLE || fogMode == ADVANCED) { @@ -282,79 +282,79 @@ package alternativa.tanks.game.entities.tank.graphics.materials drawUnit = this.getFogDrawUnit(program,camera,object,surface,geometry); drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,name_128.FOG); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,RenderPriority.FOG); } actualLigths.length = 0; } - private function setupShadowOrAmbient(object:name_78, shadow:name_103, ambient:Boolean) : name_127 + private function setupShadowOrAmbient(object:Object3D, shadow:ShadowRenderer, ambient:Boolean) : ShaderProgram { - var shadowProc:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); + var shadowProc:Procedure = null; + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); if(object.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); if(ambient) { - vertexLinker.name_123(passUVProcedure); + vertexLinker.addProcedure(passUVProcedure); } var colorConst:String = ambient ? "cAmbient" : "cShadow"; - fragmentLinker.name_120(colorConst,name_115.CONSTANT); - fragmentLinker.name_120("tLight"); - fragmentLinker.name_123(setColorProcedure); - fragmentLinker.name_118(setColorProcedure,colorConst); - fragmentLinker.name_125(setColorProcedure,"tLight"); + fragmentLinker.declareVariable(colorConst,VariableType.CONSTANT); + fragmentLinker.declareVariable("tLight"); + fragmentLinker.addProcedure(setColorProcedure); + fragmentLinker.setInputParams(setColorProcedure,colorConst); + fragmentLinker.setOutputParams(setColorProcedure,"tLight"); if(shadow != null) { - vertexLinker.name_123(shadow.getVShader()); + vertexLinker.addProcedure(shadow.getVShader()); shadowProc = shadow.getFIntensityShader(); - fragmentLinker.name_123(shadowProc); - fragmentLinker.name_125(shadowProc,"tLight"); + fragmentLinker.addProcedure(shadowProc); + fragmentLinker.setOutputParams(shadowProc,"tLight"); } if(ambient) { - fragmentLinker.name_120("tColor"); - fragmentLinker.name_123(diffuseProcedure); - fragmentLinker.name_125(diffuseProcedure,"tColor"); - fragmentLinker.name_123(outputWithLightProcedure); - fragmentLinker.name_118(outputWithLightProcedure,"tColor","tLight"); + fragmentLinker.declareVariable("tColor"); + fragmentLinker.addProcedure(diffuseProcedure); + fragmentLinker.setOutputParams(diffuseProcedure,"tColor"); + fragmentLinker.addProcedure(outputWithLightProcedure); + fragmentLinker.setInputParams(outputWithLightProcedure,"tColor","tLight"); } else { - fragmentLinker.name_123(outputProcedure); - fragmentLinker.name_118(outputProcedure,"tLight"); + fragmentLinker.addProcedure(outputProcedure); + fragmentLinker.setInputParams(outputProcedure,"tLight"); } - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); } - private function getShadowOrAmbientDrawUnit(program:name_127, shadow:name_103, ambient:Boolean, camera:name_124, object:name_78, surface:name_117, geometry:name_119) : name_135 + private function getShadowOrAmbientDrawUnit(program:ShaderProgram, shadow:ShadowRenderer, ambient:Boolean, camera:Camera3D, object:Object3D, surface:Surface, geometry:Geometry) : DrawUnit { - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); if(ambient) { - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); } object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); if(ambient) { - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cUVOffsets"),-this.uOffset,this.vOffset,0,0); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cAmbient"),camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cUVOffsets"),-this.uOffset,this.vOffset,0,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAmbient"),camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sDiffuse"),diffuseMap.alternativa3d::_texture); } else { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cShadow"),1,1,1,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cShadow"),1,1,1,1); } if(shadow != null) { @@ -363,35 +363,35 @@ package alternativa.tanks.game.entities.tank.graphics.materials return drawUnit; } - private function setupLighting(object:name_78, lights:Vector., lightsLength:int) : name_127 + private function setupLighting(object:Object3D, lights:Vector., lightsLength:int) : ShaderProgram { - var procedure:name_114 = null; - var light:name_116 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); + var procedure:Procedure = null; + var light:Light3D = null; + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); if(object.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(passUVProcedure); - vertexLinker.name_123(passVaryingsProcedure); - vertexLinker.name_118(passVaryingsProcedure,positionVar); - vertexLinker.name_120("aTangent",name_115.ATTRIBUTE); - vertexLinker.name_120("aNormal",name_115.ATTRIBUTE); - vertexLinker.name_123(passTBNRightProcedure); - vertexLinker.name_118(passTBNRightProcedure,"aTangent","aNormal"); - fragmentLinker.name_120("tNormal"); - fragmentLinker.name_120("tView"); - fragmentLinker.name_123(getNormalAndViewProcedure); - fragmentLinker.name_125(getNormalAndViewProcedure,"tNormal","tView"); - fragmentLinker.name_123(getSpecularOptionsConstProcedure); - fragmentLinker.name_118(getSpecularOptionsConstProcedure,"tNormal","tView"); - fragmentLinker.name_120("tLight"); - fragmentLinker.name_120("tHLight"); + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(passUVProcedure); + vertexLinker.addProcedure(passVaryingsProcedure); + vertexLinker.setInputParams(passVaryingsProcedure,positionVar); + vertexLinker.declareVariable("aTangent",VariableType.ATTRIBUTE); + vertexLinker.declareVariable("aNormal",VariableType.ATTRIBUTE); + vertexLinker.addProcedure(passTBNRightProcedure); + vertexLinker.setInputParams(passTBNRightProcedure,"aTangent","aNormal"); + fragmentLinker.declareVariable("tNormal"); + fragmentLinker.declareVariable("tView"); + fragmentLinker.addProcedure(getNormalAndViewProcedure); + fragmentLinker.setOutputParams(getNormalAndViewProcedure,"tNormal","tView"); + fragmentLinker.addProcedure(getSpecularOptionsConstProcedure); + fragmentLinker.setInputParams(getSpecularOptionsConstProcedure,"tNormal","tView"); + fragmentLinker.declareVariable("tLight"); + fragmentLinker.declareVariable("tHLight"); var first:Boolean = true; for(var i:int = 0; i < lightsLength; ) { @@ -399,9 +399,9 @@ package alternativa.tanks.game.entities.tank.graphics.materials if(light is DirectionalLight) { procedure = directionalProcedure(light,!first); - fragmentLinker.name_123(procedure); - fragmentLinker.name_118(procedure,"tNormal","tView"); - fragmentLinker.name_125(procedure,"tLight","tHLight"); + fragmentLinker.addProcedure(procedure); + fragmentLinker.setInputParams(procedure,"tNormal","tView"); + fragmentLinker.setOutputParams(procedure,"tLight","tHLight"); if(first) { first = false; @@ -410,9 +410,9 @@ package alternativa.tanks.game.entities.tank.graphics.materials else if(light is OmniLight) { procedure = omniProcedure(light,!first); - fragmentLinker.name_123(procedure); - fragmentLinker.name_118(procedure,"tNormal","tView"); - fragmentLinker.name_125(procedure,"tLight","tHLight"); + fragmentLinker.addProcedure(procedure); + fragmentLinker.setInputParams(procedure,"tNormal","tView"); + fragmentLinker.setOutputParams(procedure,"tLight","tHLight"); if(first) { first = false; @@ -420,100 +420,100 @@ package alternativa.tanks.game.entities.tank.graphics.materials } i++; } - fragmentLinker.name_120("outColor"); - fragmentLinker.name_123(diffuseProcedure); - fragmentLinker.name_125(diffuseProcedure,"outColor"); - fragmentLinker.name_123(this.outputWithSpecularProcedure); - fragmentLinker.name_118(this.outputWithSpecularProcedure,"outColor","tLight","tHLight"); - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); + fragmentLinker.declareVariable("outColor"); + fragmentLinker.addProcedure(diffuseProcedure); + fragmentLinker.setOutputParams(diffuseProcedure,"outColor"); + fragmentLinker.addProcedure(this.outputWithSpecularProcedure); + fragmentLinker.setInputParams(this.outputWithSpecularProcedure,"outColor","tLight","tHLight"); + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); } - private function getLightingDrawUnit(program:name_127, lights:Vector., lightsLength:int, camera:name_124, object:name_78, surface:name_117, geometry:name_119) : name_135 + private function getLightingDrawUnit(program:ShaderProgram, lights:Vector., lightsLength:int, camera:Camera3D, object:Object3D, surface:Surface, geometry:Geometry) : DrawUnit { var rScale:Number = NaN; - var transform:name_139 = null; - var light:name_116 = null; + var transform:Transform3D = null; + var light:Light3D = null; var len:Number = NaN; var omni:OmniLight = null; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var tangentBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TANGENT4); - var normalBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.NORMAL); - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TANGENT4],name_126.alternativa3d::FORMATS[name_126.TANGENT4]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalBuffer,geometry.alternativa3d::_attributesOffsets[name_126.NORMAL],name_126.alternativa3d::FORMATS[name_126.NORMAL]); + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); + var tangentBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TANGENT4); + var normalBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.NORMAL); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cCamera"),object.alternativa3d::cameraToLocalTransform.d,object.alternativa3d::cameraToLocalTransform.h,object.alternativa3d::cameraToLocalTransform.l,1); - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cUVOffsets"),-this.uOffset,this.vOffset,0,0); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cCamera"),object.alternativa3d::cameraToLocalTransform.d,object.alternativa3d::cameraToLocalTransform.h,object.alternativa3d::cameraToLocalTransform.l,1); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cUVOffsets"),-this.uOffset,this.vOffset,0,0); for(var i:int = 0; i < lightsLength; ) { light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::name_141; + transform = light.alternativa3d::_-cl; len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = OmniLight(light); - transform = light.alternativa3d::name_141; + transform = light.alternativa3d::_-cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); rScale /= 3; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } i++; } - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.var_25,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.§_-kj§,1); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sDiffuse"),diffuseMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sBump"),this.normalMap.alternativa3d::_texture); return drawUnit; } - private function setupFog(object:name_78) : name_127 + private function setupFog(object:Object3D) : ShaderProgram { - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); if(object.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(object.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); if(fogMode == SIMPLE) { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_123(outputWithSimpleFogProcedure); + vertexLinker.addProcedure(passSimpleFogConstProcedure); + vertexLinker.setInputParams(passSimpleFogConstProcedure,positionVar); + fragmentLinker.addProcedure(outputWithSimpleFogProcedure); } else { - vertexLinker.name_120("projected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"projected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"projected"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); + vertexLinker.declareVariable("projected"); + vertexLinker.setOutputParams(alternativa3d::_projectProcedure,"projected"); + vertexLinker.addProcedure(postPassAdvancedFogConstProcedure); + vertexLinker.setInputParams(postPassAdvancedFogConstProcedure,positionVar,"projected"); + fragmentLinker.addProcedure(outputWithAdvancedFogProcedure); } - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); + fragmentLinker.setOppositeLinker(vertexLinker); + return new ShaderProgram(vertexLinker,fragmentLinker); } - private function getFogDrawUnit(program:name_127, camera:name_124, object:name_78, surface:name_117, geometry:name_119) : name_135 + private function getFogDrawUnit(program:ShaderProgram, camera:Camera3D, object:Object3D, surface:Surface, geometry:Geometry) : DrawUnit { - var lm:name_139 = null; + var lm:Transform3D = null; var dist:Number = NaN; - var cLocal:name_139 = null; + var cLocal:Transform3D = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -527,21 +527,21 @@ package alternativa.tanks.game.entities.tank.graphics.materials var uRight:Number = NaN; var bmd:BitmapData = null; var i:int = 0; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); if(fogMode == SIMPLE || fogMode == ADVANCED) { lm = object.alternativa3d::localToCameraTransform; dist = fogFar - fogNear; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); } if(fogMode == SIMPLE) { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); } if(fogMode == ADVANCED) { @@ -552,7 +552,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { bmd.setPixel(i,0,i / 32 * 255 << 16); } - fogTexture = new name_93(bmd); + fogTexture = new BitmapTextureResource(bmd); fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -575,16 +575,16 @@ package alternativa.tanks.game.entities.tank.graphics.materials rightY /= lens; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),fogTexture.alternativa3d::_texture); } return drawUnit; } - override public function clone() : class_4 + override public function clone() : Material { var cloned:TracksMaterial2 = new TracksMaterial2(diffuseMap,this.normalMap); - cloned.var_25 = this.var_25; + cloned.§_-kj§ = this.§_-kj§; cloned.glossiness = this.glossiness; return cloned; } diff --git a/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as index f23115e..de0fffb 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as @@ -1,21 +1,21 @@ package alternativa.tanks.game.entities.tank.graphics.materials { import alternativa.engine3d.alternativa3d; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_128; - import package_21.name_135; - import package_28.name_119; - import package_28.name_129; - import package_30.name_114; - import package_30.name_121; - import package_4.class_4; - import package_4.class_9; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.StandardMaterial; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; use namespace alternativa3d; - public class TreesMaterial extends class_9 + public class TreesMaterial extends StandardMaterial { public static const DISABLED:int = 0; @@ -23,7 +23,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials public static const ADVANCED:int = 2; - private static const uvProcedure:name_114 = name_114.name_140(["#v0=vUV","#a0=aUV","#c0=cUVOffsets","add v0, a0, c0"]); + private static const uvProcedure:Procedure = Procedure.compileFromArray(["#v0=vUV","#a0=aUV","#c0=cUVOffsets","add v0, a0, c0"]); public var alphaThreshold:Number = 1; @@ -31,117 +31,117 @@ package alternativa.tanks.game.entities.tank.graphics.materials public var vOffset:Number = 0; - public function TreesMaterial(diffuseMap:name_129 = null, normalMap:name_129 = null, specularMap:name_129 = null, glossinessMap:name_129 = null, opacityMap:name_129 = null, alphaThreshold:Number = 1) + public function TreesMaterial(diffuseMap:TextureResource = null, normalMap:TextureResource = null, specularMap:TextureResource = null, glossinessMap:TextureResource = null, opacityMap:TextureResource = null, alphaThreshold:Number = 1) { super(diffuseMap,normalMap,specularMap,glossinessMap,opacityMap); - alternativa3d::outputAlpha = new name_114(["#c0=cSurface","sub t0.w, i0.w, c0.w","kil t0.w","mov o0, i0"],"outputAlpha"); + alternativa3d::outputAlpha = new Procedure(["#c0=cSurface","sub t0.w, i0.w, c0.w","kil t0.w","mov o0, i0"],"outputAlpha"); alternativa3d::outputDiffuseAlpha = alternativa3d::outputAlpha; - alternativa3d::outputOpacity = new name_114(["#c0=cSurface","#s0=sOpacity","#v0=vUV","tex t0, v0, s0 <2d, repeat,linear,miplinear>","mov i0.w, t0.x","sub t0.x, t0.x, c0.w","kil t0.x","mov o0, i0"],"outputOpacity"); + alternativa3d::outputOpacity = new Procedure(["#c0=cSurface","#s0=sOpacity","#v0=vUV","tex t0, v0, s0 <2d, repeat,linear,miplinear>","mov i0.w, t0.x","sub t0.x, t0.x, c0.w","kil t0.x","mov o0, i0"],"outputOpacity"); this.alphaThreshold = alphaThreshold; - this.alternativa3d::var_54 = true; + this.alternativa3d::_-ES = true; } public static function get fogMode() : int { - return class_9.alternativa3d::fogMode; + return StandardMaterial.alternativa3d::fogMode; } public static function set fogMode(value:int) : void { - class_9.alternativa3d::fogMode = value; + StandardMaterial.alternativa3d::fogMode = value; } public static function get fogNear() : Number { - return class_9.alternativa3d::fogNear; + return StandardMaterial.alternativa3d::fogNear; } public static function set fogNear(value:Number) : void { - class_9.alternativa3d::fogNear = value; + StandardMaterial.alternativa3d::fogNear = value; } public static function get fogFar() : Number { - return class_9.alternativa3d::fogFar; + return StandardMaterial.alternativa3d::fogFar; } public static function set fogFar(value:Number) : void { - class_9.alternativa3d::fogFar = value; + StandardMaterial.alternativa3d::fogFar = value; } public static function get fogMaxDensity() : Number { - return class_9.alternativa3d::fogMaxDensity; + return StandardMaterial.alternativa3d::fogMaxDensity; } public static function set fogMaxDensity(value:Number) : void { - class_9.alternativa3d::fogMaxDensity = value; + StandardMaterial.alternativa3d::fogMaxDensity = value; } public static function get fogColorR() : Number { - return class_9.alternativa3d::fogColorR; + return StandardMaterial.alternativa3d::fogColorR; } public static function set fogColorR(value:Number) : void { - class_9.alternativa3d::fogColorR = value; + StandardMaterial.alternativa3d::fogColorR = value; } public static function get fogColorG() : Number { - return class_9.alternativa3d::fogColorG; + return StandardMaterial.alternativa3d::fogColorG; } public static function set fogColorG(value:Number) : void { - class_9.alternativa3d::fogColorG = value; + StandardMaterial.alternativa3d::fogColorG = value; } public static function get fogColorB() : Number { - return class_9.alternativa3d::fogColorB; + return StandardMaterial.alternativa3d::fogColorB; } public static function set fogColorB(value:Number) : void { - class_9.alternativa3d::fogColorB = value; + StandardMaterial.alternativa3d::fogColorB = value; } - public static function method_33(texture:name_129) : void + public static function setFogTexture(texture:TextureResource) : void { - class_9.alternativa3d::fogTexture = texture; + StandardMaterial.alternativa3d::fogTexture = texture; } - override alternativa3d function getPassUVProcedure() : name_114 + override alternativa3d function getPassUVProcedure() : Procedure { return uvProcedure; } - override alternativa3d function setPassUVProcedureConstants(destination:name_135, vertexLinker:name_121) : void + override alternativa3d function setPassUVProcedureConstants(destination:DrawUnit, vertexLinker:Linker) : void { - destination.alternativa3d::name_144(vertexLinker.getVariableIndex("cUVOffsets"),-this.uOffset,this.vOffset,0,0); + destination.alternativa3d::setVertexConstantsFromNumbers(vertexLinker.getVariableIndex("cUVOffsets"),-this.uOffset,this.vOffset,0,0); } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { lightsLength = lightsLength > 5 ? 5 : lightsLength; alpha = 1 - this.alphaThreshold; - super.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,name_128.TANK_OPAQUE); + super.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,RenderPriority.TANK_OPAQUE); } - override public function clone() : class_4 + override public function clone() : Material { var cloned:TreesMaterial = new TreesMaterial(diffuseMap,normalMap,specularMap,glossinessMap); cloned.opacityMap = opacityMap; cloned.alpha = alpha; - cloned.var_21 = var_21; + cloned.§_-L4§ = §_-L4§; cloned.glossiness = glossiness; - cloned.var_25 = var_25; - cloned.method_124 = method_124; + cloned.§_-kj§ = §_-kj§; + cloned.normalMapSpace = normalMapSpace; cloned.uOffset = this.uOffset; cloned.vOffset = this.vOffset; cloned.alphaThreshold = this.alphaThreshold; diff --git a/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as new file mode 100644 index 0000000..83eafe7 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as @@ -0,0 +1,158 @@ +package alternativa.tanks.game.entities.tank.graphics.turret +{ + import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.objects.Mesh; + import alternativa.math.Vector3; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.TankPartMaterials; + import alternativa.tanks.game.entities.tank.TankTurret; + import alternativa.tanks.game.entities.tank.graphics.GraphicsControlComponent; + import alternativa.tanks.game.entities.tank.graphics.ITankGraphicsComponent; + import alternativa.tanks.game.entities.tank.graphics.MaterialType; + import alternativa.tanks.game.entities.tank.graphics.chassis.tracked.TrackedChassisGraphicsComponent; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + + use namespace alternativa3d; + + public class TurretGraphicsComponent extends EntityComponent implements ITankGraphicsComponent + { + private static var vector:Vector3 = new Vector3(); + + private var turret:TankTurret; + + private var §_-Pf§:Mesh; + + private var §_-a§:TankPartMaterials; + + private var physicsComponent:ITurretPhysicsComponent; + + private var §_-Gf§:TextureMaterial; + + private var renderSystem:RenderSystem; + + public function TurretGraphicsComponent(turret:TankTurret) + { + super(); + this.setTurret(turret); + } + + public function getObject3D() : Object3D + { + return this.§_-Pf§; + } + + override public function initComponent() : void + { + this.physicsComponent = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + GraphicsControlComponent(entity.getComponentStrict(GraphicsControlComponent)).addComponent(this); + this.addToChassisSkin(); + } + + private function addToChassisSkin() : void + { + var trackedChassisGraphicsComponent:TrackedChassisGraphicsComponent = null; + if(entity != null) + { + trackedChassisGraphicsComponent = TrackedChassisGraphicsComponent(entity.getComponent(TrackedChassisGraphicsComponent)); + if(trackedChassisGraphicsComponent != null) + { + trackedChassisGraphicsComponent.hullMesh.addChild(this.§_-Pf§); + } + } + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.renderSystem = gameKernel.getRenderSystem(); + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + this.removeFromScene(); + this.renderSystem = null; + } + + public function render() : void + { + if(this.turret == null) + { + return; + } + this.physicsComponent.getSkinMountPoint(vector); + this.§_-Pf§.x = vector.x; + this.§_-Pf§.y = vector.y; + this.§_-Pf§.z = vector.z; + this.§_-Pf§.rotationZ = this.physicsComponent.getInterpolatedTurretDirection(); + } + + public function setMaterial(materialType:MaterialType) : void + { + switch(materialType) + { + case MaterialType.DEAD: + this.§_-a§.deadMaterial.alpha = 1; + this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.deadMaterial); + this.§_-Gf§ = this.§_-a§.deadMaterial; + break; + case MaterialType.ACTIVATING: + this.§_-a§.normalMaterial.alpha = 0.5; + this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.normalMaterial); + this.§_-Gf§ = this.§_-a§.normalMaterial; + break; + case MaterialType.NORMAL: + this.§_-a§.normalMaterial.alpha = 1; + this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.normalMaterial); + this.§_-Gf§ = this.§_-a§.normalMaterial; + } + } + + public function addToScene() : void + { + } + + public function removeFromScene() : void + { + } + + public function setAlpha(value:Number) : void + { + this.§_-Gf§.alpha = value; + } + + public function setTurret(value:TankTurret) : void + { + if(this.turret == value) + { + return; + } + if(this.turret != null) + { + this.§_-Pf§.alternativa3d::removeFromParent(); + } + this.turret = value; + if(this.turret != null) + { + this.§_-Pf§ = new Mesh(); + this.§_-Pf§.geometry = this.turret.geometry; + this.§_-Pf§.addSurface(this.§_-Gf§,0,this.turret.geometry.numTriangles); + this.§_-Pf§.calculateBoundBox(); + this.addToChassisSkin(); + } + } + + public function setTurretMaterials(materials:TankPartMaterials) : void + { + this.§_-a§ = materials; + } + + public function get turretMesh() : Mesh + { + return this.§_-Pf§; + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/IChassisPhysicsComponent.as b/src/alternativa/tanks/game/entities/tank/physics/IChassisPhysicsComponent.as new file mode 100644 index 0000000..6fa9d0b --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/IChassisPhysicsComponent.as @@ -0,0 +1,26 @@ +package alternativa.tanks.game.entities.tank.physics +{ + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.Body; + + public interface IChassisPhysicsComponent + { + function setTurret(param1:ITurretPhysicsComponent) : void; + + function getTurretMountPoint(param1:Vector3) : void; + + function getTurretSkinMountPoint(param1:Vector3) : void; + + function getInterpolatedMatrix() : Matrix4; + + function getBody() : Body; + + function getBoundPoints() : Vector.; + + function setDetailedCollisionGroup(param1:int) : void; + + function getWheelDeltaZ(param1:String) : Number; + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/ITurretPhysicsComponent.as b/src/alternativa/tanks/game/entities/tank/physics/ITurretPhysicsComponent.as new file mode 100644 index 0000000..208613b --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/ITurretPhysicsComponent.as @@ -0,0 +1,41 @@ +package alternativa.tanks.game.entities.tank.physics +{ + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.tanks.game.entities.tank.TankTurret; + + public interface ITurretPhysicsComponent + { + function setTurret(param1:TankTurret) : void; + + function getTurretDirection() : Number; + + function setTurretDirection(param1:Number) : void; + + function setTurretControls(param1:int) : Boolean; + + function centerTurret(param1:Boolean) : void; + + function setTurretMountPoint(param1:Vector3) : void; + + function getTurretPrimitives() : Vector.; + + function getChassisMatrix() : Matrix4; + + function getInterpolatedTurretDirection() : Number; + + function getSkinMountPoint(param1:Vector3) : void; + + function getGunData(param1:int, param2:Vector3, param3:Vector3, param4:Vector3) : void; + + function getGunMuzzleData(param1:int, param2:Vector3, param3:Vector3) : void; + + function getGunMuzzleData2(param1:int, param2:Vector3, param3:Vector3) : void; + + function getBarrelLength(param1:int) : Number; + + function getBarrelCount() : int; + } +} + diff --git a/src/package_75/name_309.as b/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as similarity index 50% rename from src/package_75/name_309.as rename to src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as index 09ded98..1203006 100644 --- a/src/package_75/name_309.as +++ b/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as @@ -1,31 +1,31 @@ -package package_75 +package alternativa.tanks.game.entities.tank.physics { import alternativa.tanks.game.EntityComponent; import alternativa.tanks.game.GameKernel; - import package_44.name_465; - import package_71.name_252; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.subsystems.physicssystem.IPhysicsController; - public class name_309 extends EntityComponent implements name_465 + public class InterpolationComponent extends EntityComponent implements IPhysicsController { - private var chassisController:name_465; + private var chassisController:IPhysicsController; - private var turretController:name_465; + private var turretController:IPhysicsController; private var gameKernel:GameKernel; - private var var_426:Boolean; + private var §case §:Boolean; - public function name_309() + public function InterpolationComponent() { super(); } - public function method_463(chassisController:name_465) : void + public function setChassisController(chassisController:IPhysicsController) : void { this.chassisController = chassisController; } - public function name_507(turretController:name_465) : void + public function setTurretController(turretController:IPhysicsController) : void { this.turretController = turretController; } @@ -59,37 +59,37 @@ package package_75 override public function initComponent() : void { - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.method_461); - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.method_461); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.method_461); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.method_462); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.onActivate); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.onActivate); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.onActivate); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.onDeactivate); } - private function method_461(eventType:String, data:*) : void + private function onActivate(eventType:String, data:*) : void { this.addToScene(); } - private function method_462(eventType:String, data:*) : void + private function onDeactivate(eventType:String, data:*) : void { this.removeFromScene(); } private function addToScene() : void { - if(!this.var_426) + if(!this.§case §) { - this.gameKernel.method_112().method_330(this); - this.var_426 = true; + this.gameKernel.getPhysicsSystem().addInterpolationController(this); + this.§case § = true; } } private function removeFromScene() : void { - if(this.var_426) + if(this.§case §) { - this.gameKernel.method_112().method_332(this); - this.var_426 = false; + this.gameKernel.getPhysicsSystem().removeInterpolationController(this); + this.§case § = false; } } } diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActiveState.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActiveState.as new file mode 100644 index 0000000..be64f5f --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActiveState.as @@ -0,0 +1,20 @@ +package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy +{ + import alternativa.tanks.game.physics.CollisionGroup; + + public class LegacyActiveState extends LegacyComponentState + { + public function LegacyActiveState(component:LegacyTrackedChassisComponent) + { + super(component); + } + + override public function start(data:*) : void + { + component.addToScene(); + component.setDetailedCollisionGroup(CollisionGroup.TANK | CollisionGroup.WEAPON); + component.setSuspensionCollisionMask(CollisionGroup.STATIC | CollisionGroup.TANK); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyComponentState.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyComponentState.as new file mode 100644 index 0000000..c30b9d0 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyComponentState.as @@ -0,0 +1,24 @@ +package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy +{ + import alternativa.tanks.game.entities.IComponentState; + + public class LegacyComponentState implements IComponentState + { + protected var component:LegacyTrackedChassisComponent; + + public function LegacyComponentState(component:LegacyTrackedChassisComponent) + { + super(); + this.component = component; + } + + public function start(data:*) : void + { + } + + public function stop() : void + { + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyDeadState.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyDeadState.as new file mode 100644 index 0000000..e1597c8 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyDeadState.as @@ -0,0 +1,25 @@ +package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy +{ + import alternativa.physics.Body; + import alternativa.tanks.game.physics.CollisionGroup; + + public class LegacyDeadState extends LegacyComponentState + { + public function LegacyDeadState(component:LegacyTrackedChassisComponent) + { + super(component); + } + + override public function start(data:*) : void + { + component.addToScene(); + component.setDetailedCollisionGroup(CollisionGroup.TANK | CollisionGroup.WEAPON); + component.setSuspensionCollisionMask(CollisionGroup.STATIC | CollisionGroup.TANK); + component.setChassisControls(0,0,false); + var body:Body = component.getBody(); + body.state.velocity.z += 500; + body.state.rotation.reset(2,2,2); + } + } +} + diff --git a/src/package_77/name_569.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyRespawnState.as similarity index 61% rename from src/package_77/name_569.as rename to src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyRespawnState.as index 73ddb09..30f6996 100644 --- a/src/package_77/name_569.as +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyRespawnState.as @@ -1,8 +1,8 @@ -package package_77 +package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy { - public class name_569 extends class_39 + public class LegacyRespawnState extends LegacyComponentState { - public function name_569(component:name_237) + public function LegacyRespawnState(component:LegacyTrackedChassisComponent) { super(component); } diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacySuspensionRay.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacySuspensionRay.as new file mode 100644 index 0000000..f03533c --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacySuspensionRay.as @@ -0,0 +1,222 @@ +package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.BodyState; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + + public class LegacySuspensionRay + { + private static var _groundUp:Vector3; + + private static var _v:Vector3 = new Vector3(); + + private static var _worldUp:Vector3 = new Vector3(); + + private static var _groundForward:Vector3 = new Vector3(); + + private static var _groundRight:Vector3 = new Vector3(); + + private static var _relVel:Vector3 = new Vector3(); + + private static var _force:Vector3 = new Vector3(); + + public var collisionMask:int; + + public var §_-bv§:Number = 0; + + private var body:Body; + + private var relPos:Vector3 = new Vector3(); + + private var relDir:Vector3 = new Vector3(); + + public var worldPos:Vector3 = new Vector3(); + + public var §_-Py§:Vector3 = new Vector3(); + + public var §_-n3§:Boolean = false; + + public var §_-ZA§:RayHit = new RayHit(); + + private var §_-Du§:Number = 0; + + private var § do§:SimpleRaycastFilter; + + public function LegacySuspensionRay(body:Body, relPos:Vector3, relDir:Vector3) + { + super(); + this.body = body; + this.relPos.copy(relPos); + this.relDir.copy(relDir); + this.§ do§ = new SimpleRaycastFilter(body); + } + + public function getRelativeZ() : Number + { + return this.relPos.z; + } + + public function setRelPos(value:Vector3) : void + { + this.relPos.copy(value); + } + + public function setRelPosXYZ(x:Number, y:Number, z:Number) : void + { + this.relPos.x = x; + this.relPos.y = y; + this.relPos.z = z; + } + + public function calculateIntersection(maxLength:Number) : Boolean + { + this.body.baseMatrix.transformVector(this.relDir,this.§_-Py§); + this.body.baseMatrix.transformVector(this.relPos,this.worldPos); + var p:Vector3 = this.body.state.position; + this.worldPos.x += p.x; + this.worldPos.y += p.y; + this.worldPos.z += p.z; + if(this.§_-n3§) + { + this.§_-Du§ = maxLength - this.§_-ZA§.t; + } + this.§_-n3§ = this.body.scene.collisionDetector.raycast(this.worldPos,this.§_-Py§,this.collisionMask,maxLength,this.§ do§,this.§_-ZA§); + if(this.§_-n3§ && this.§_-ZA§.primitive == null) + { + throw new Error("Ray hit error. Body id = " + this.body.id); + } + return this.§_-n3§; + } + + public function addForce(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, springCoeff:Number, data:SuspensionData, fwdBrake:Boolean) : void + { + var bState:BodyState = null; + var slipSpeed:Number = NaN; + var sideFriction:Number = NaN; + var frictionForce:Number = NaN; + var fwdFriction:Number = NaN; + this.§_-bv§ = 0; + if(!this.§_-n3§) + { + return; + } + _groundUp = this.§_-ZA§.normal; + _v.x = this.body.baseMatrix.b; + _v.y = this.body.baseMatrix.f; + _v.z = this.body.baseMatrix.j; + _groundRight.x = _v.y * _groundUp.z - _v.z * _groundUp.y; + _groundRight.y = _v.z * _groundUp.x - _v.x * _groundUp.z; + _groundRight.z = _v.x * _groundUp.y - _v.y * _groundUp.x; + var len:Number = _groundRight.x * _groundRight.x + _groundRight.y * _groundRight.y + _groundRight.z * _groundRight.z; + if(len == 0) + { + _groundRight.x = 1; + } + else + { + len = Number(Math.sqrt(len)); + _groundRight.x /= len; + _groundRight.y /= len; + _groundRight.z /= len; + } + _groundForward.x = _groundUp.y * _groundRight.z - _groundUp.z * _groundRight.y; + _groundForward.y = _groundUp.z * _groundRight.x - _groundUp.x * _groundRight.z; + _groundForward.z = _groundUp.x * _groundRight.y - _groundUp.y * _groundRight.x; + var state:BodyState = this.body.state; + _v.x = this.§_-ZA§.position.x - state.position.x; + _v.y = this.§_-ZA§.position.y - state.position.y; + _v.z = this.§_-ZA§.position.z - state.position.z; + var rot:Vector3 = state.rotation; + _relVel.x = rot.y * _v.z - rot.z * _v.y + state.velocity.x; + _relVel.y = rot.z * _v.x - rot.x * _v.z + state.velocity.y; + _relVel.z = rot.x * _v.y - rot.y * _v.x + state.velocity.z; + if(this.§_-ZA§.primitive.body != null) + { + bState = this.§_-ZA§.primitive.body.state; + _v.x = this.§_-ZA§.position.x - bState.position.x; + _v.y = this.§_-ZA§.position.y - bState.position.y; + _v.z = this.§_-ZA§.position.z - bState.position.z; + rot = bState.rotation; + _relVel.x -= rot.y * _v.z - rot.z * _v.y + bState.velocity.x; + _relVel.y -= rot.z * _v.x - rot.x * _v.z + bState.velocity.y; + _relVel.z -= rot.x * _v.y - rot.y * _v.x + bState.velocity.z; + } + var relSpeed:Number = Number(Math.sqrt(_relVel.x * _relVel.x + _relVel.y * _relVel.y + _relVel.z * _relVel.z)); + var fwdSpeed:Number = _relVel.x * _groundForward.x + _relVel.y * _groundForward.y + _relVel.z * _groundForward.z; + this.§_-bv§ = fwdSpeed; + if(throttle > 0 && fwdSpeed < maxSpeed || throttle < 0 && -fwdSpeed < maxSpeed) + { + _v.x = this.worldPos.x + data.§_-Ko§ * this.§_-Py§.x; + _v.y = this.worldPos.y + data.§_-Ko§ * this.§_-Py§.y; + _v.z = this.worldPos.z + data.§_-Ko§ * this.§_-Py§.z; + _force.x = throttle * _groundForward.x; + _force.y = throttle * _groundForward.y; + _force.z = throttle * _groundForward.z; + this.body.addWorldForce(_v,_force); + } + _worldUp.x = this.body.baseMatrix.c; + _worldUp.y = this.body.baseMatrix.g; + _worldUp.z = this.body.baseMatrix.k; + var t:Number = this.§_-ZA§.t; + var currDisplacement:Number = data.rayLength - t; + var springForce:Number = springCoeff * currDisplacement * (_worldUp.x * this.§_-ZA§.normal.x + _worldUp.y * this.§_-ZA§.normal.y + _worldUp.z * this.§_-ZA§.normal.z); + var upSpeed:Number = (currDisplacement - this.§_-Du§) / dt; + springForce += upSpeed * data.§_-WZ§; + if(springForce < 0) + { + springForce = 0; + } + _force.x = -springForce * this.§_-Py§.x; + _force.y = -springForce * this.§_-Py§.y; + _force.z = -springForce * this.§_-Py§.z; + if(relSpeed > 0.001) + { + slipSpeed = _relVel.dot(_groundRight); + sideFriction = slipTerm == 0 || slipSpeed >= 0 && slipTerm > 0 || slipSpeed <= 0 && slipTerm < 0 ? data.§_-4W§ : 2 * data.§_-VW§; + frictionForce = sideFriction * springForce * slipSpeed / relSpeed; + if(slipSpeed > -data.§_-d7§ && slipSpeed < data.§_-d7§) + { + frictionForce *= slipSpeed / data.§_-d7§; + if(slipSpeed < 0) + { + frictionForce = -frictionForce; + } + } + _force.x -= frictionForce * _groundRight.x; + _force.y -= frictionForce * _groundRight.y; + _force.z -= frictionForce * _groundRight.z; + if(fwdBrake) + { + fwdFriction = 0.3 * data.§_-4W§; + } + else if(fwdSpeed * throttle <= 0) + { + fwdFriction = 0.5 * data.§_-4W§; + } + else + { + fwdFriction = data.§_-VW§; + } + frictionForce = fwdFriction * springForce * fwdSpeed / relSpeed; + if(fwdSpeed > -data.§_-d7§ && fwdSpeed < data.§_-d7§) + { + frictionForce *= fwdSpeed / data.§_-d7§; + if(fwdSpeed < 0) + { + frictionForce = -frictionForce; + } + } + _force.x -= frictionForce * _groundForward.x; + _force.y -= frictionForce * _groundForward.y; + _force.z -= frictionForce * _groundForward.z; + } + _v.x = this.worldPos.x + data.§_-Ko§ * this.§_-Py§.x; + _v.y = this.worldPos.y + data.§_-Ko§ * this.§_-Py§.y; + _v.z = this.worldPos.z + data.§_-Ko§ * this.§_-Py§.z; + this.body.addWorldForce(_v,_force); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/SuspensionData.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/SuspensionData.as new file mode 100644 index 0000000..95ab724 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/SuspensionData.as @@ -0,0 +1,25 @@ +package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy +{ + public class SuspensionData + { + public var rayLength:Number = 0; + + public var §_-Fw§:Number = 0; + + public var §_-Ko§:Number = 0; + + public var §_-WZ§:Number = 0; + + public var §_-d7§:Number = 100; + + public var §_-4W§:Number = 3; + + public var §_-VW§:Number = 0.2; + + public function SuspensionData() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/turret/ActiveState.as b/src/alternativa/tanks/game/entities/tank/physics/turret/ActiveState.as new file mode 100644 index 0000000..dc8dd34 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/turret/ActiveState.as @@ -0,0 +1,25 @@ +package alternativa.tanks.game.entities.tank.physics.turret +{ + import alternativa.tanks.game.entities.IComponentState; + + public class ActiveState implements IComponentState + { + private var component:TurretPhysicsComponent; + + public function ActiveState(component:TurretPhysicsComponent) + { + super(); + this.component = component; + } + + public function start(data:*) : void + { + this.component.addToScene(); + } + + public function stop() : void + { + } + } +} + diff --git a/src/alternativa/tanks/game/entities/tank/physics/turret/DeadState.as b/src/alternativa/tanks/game/entities/tank/physics/turret/DeadState.as new file mode 100644 index 0000000..23f3539 --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/turret/DeadState.as @@ -0,0 +1,26 @@ +package alternativa.tanks.game.entities.tank.physics.turret +{ + import alternativa.tanks.game.entities.IComponentState; + + public class DeadState implements IComponentState + { + private var component:TurretPhysicsComponent; + + public function DeadState(component:TurretPhysicsComponent) + { + super(); + this.component = component; + } + + public function start(data:*) : void + { + this.component.setTurretControls(0); + this.component.centerTurret(false); + } + + public function stop() : void + { + } + } +} + diff --git a/src/package_94/name_487.as b/src/alternativa/tanks/game/entities/tank/physics/turret/RespawnState.as similarity index 57% rename from src/package_94/name_487.as rename to src/alternativa/tanks/game/entities/tank/physics/turret/RespawnState.as index 563f0cd..4b3a58e 100644 --- a/src/package_94/name_487.as +++ b/src/alternativa/tanks/game/entities/tank/physics/turret/RespawnState.as @@ -1,12 +1,12 @@ -package package_94 +package alternativa.tanks.game.entities.tank.physics.turret { - import package_114.class_35; + import alternativa.tanks.game.entities.IComponentState; - public class name_487 implements class_35 + public class RespawnState implements IComponentState { - private var component:name_276; + private var component:TurretPhysicsComponent; - public function name_487(component:name_276) + public function RespawnState(component:TurretPhysicsComponent) { super(); this.component = component; diff --git a/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as b/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as new file mode 100644 index 0000000..940b5be --- /dev/null +++ b/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as @@ -0,0 +1,327 @@ +package alternativa.tanks.game.entities.tank.physics.turret +{ + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameEvents; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.EmptyState; + import alternativa.tanks.game.entities.EventStates; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.entities.tank.TankTurret; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.entities.tank.physics.InterpolationComponent; + import alternativa.tanks.game.physics.BoxData; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.TurretCollisioinBox; + import alternativa.tanks.game.subsystems.physicssystem.IPhysicsController; + import alternativa.tanks.game.utils.GameMathUtils; + + public class TurretPhysicsComponent extends EntityComponent implements ITurretPhysicsComponent, IPhysicsController + { + public var §_-JR§:Number; + + private var turnDirection:int; + + private var direction:Number = 0; + + private var §_-De§:Number = 0; + + private var maxRotationSpeed:Number = 0; + + private var rotationAcceleration:Number = 0; + + private var §_-nr§:Number = 0; + + private var §_-fV§:Boolean; + + private var chassisComponent:IChassisPhysicsComponent; + + private var gameKernel:GameKernel; + + private var turret:TankTurret; + + private var primitives:Vector.; + + private var §_-CH§:Vector3; + + private var §case §:Boolean; + + private var §_-z§:EventStates; + + private var §_-pP§:Matrix4 = new Matrix4(); + + public function TurretPhysicsComponent(turret:TankTurret, maxRotationSpeed:Number, rotationAcceleration:Number) + { + super(); + this.maxRotationSpeed = maxRotationSpeed; + this.rotationAcceleration = rotationAcceleration; + this.primitives = new Vector.(); + this.§_-CH§ = new Vector3(); + this.setTurret(turret); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + } + + override public function initComponent() : void + { + this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); + this.chassisComponent.getTurretMountPoint(this.§_-CH§); + this.chassisComponent.setTurret(this); + this.updatePrimitves(); + InterpolationComponent(entity.getComponentStrict(InterpolationComponent)).setTurretController(this); + this.§_-z§ = new EventStates(); + this.§_-z§.setEventState(entity,TankEvents.SET_RESPAWN_STATE,new RespawnState(this)); + var activeState:ActiveState = new ActiveState(this); + this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,activeState); + this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVE_STATE,activeState); + this.§_-z§.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); + this.§_-z§.§_-Ah§ = EmptyState.INSTANCE; + entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); + } + + public function getBarrelCount() : int + { + return this.turret.§_-O3§.length; + } + + public function getGunData(barrelIndex:int, barrelOrigin:Vector3, gunDirection:Vector3, gunElevationAxis:Vector3) : void + { + var muzzlePoint:Vector3 = this.getLocalMuzzlePoint(barrelIndex); + barrelOrigin.reset(muzzlePoint.x,0,muzzlePoint.z); + barrelOrigin.transform4(this.§_-pP§); + this.§_-pP§.getAxis(0,gunElevationAxis); + this.§_-pP§.getAxis(1,gunDirection); + } + + public function getGunMuzzleData(barrelIndex:int, muzzlePosition:Vector3, gunDirection:Vector3) : void + { + var localMuzzlePoint:Vector3 = this.getLocalMuzzlePoint(barrelIndex); + this.§_-pP§.transformPoint(localMuzzlePoint,muzzlePosition); + this.§_-pP§.getAxis(1,gunDirection); + } + + public function getGunMuzzleData2(barrelIndex:int, barrelOrigin:Vector3, muzzlePosition:Vector3) : void + { + var localMuzzlePoint:Vector3 = this.getLocalMuzzlePoint(barrelIndex); + barrelOrigin.reset(localMuzzlePoint.x,0,localMuzzlePoint.z); + barrelOrigin.transform4(this.§_-pP§); + this.§_-pP§.transformPoint(localMuzzlePoint,muzzlePosition); + } + + public function getBarrelLength(barrelIndex:int) : Number + { + return this.turret.§_-O3§[barrelIndex].y; + } + + public function getInterpolatedTurretDirection() : Number + { + return this.§_-JR§; + } + + public function getChassisMatrix() : Matrix4 + { + return this.chassisComponent.getInterpolatedMatrix(); + } + + public function getSkinMountPoint(vector:Vector3) : void + { + this.chassisComponent.getTurretSkinMountPoint(vector); + } + + public function setTurret(turret:TankTurret) : void + { + if(turret == null) + { + throw new ArgumentError("Parameter turret is null"); + } + if(this.turret == turret) + { + return; + } + this.turret = turret; + this.createTurretPrimitives(CollisionGroup.TANK,CollisionGroup.TANK | CollisionGroup.STATIC); + if(this.chassisComponent != null) + { + this.chassisComponent.setTurret(this); + this.updatePrimitves(); + } + } + + public function setTurretMountPoint(point:Vector3) : void + { + this.§_-CH§.copy(point); + this.updatePrimitves(); + } + + public function getTurretDirection() : Number + { + return this.direction; + } + + public function setTurretDirection(value:Number) : void + { + this.direction = GameMathUtils.clampAngle(value); + this.updatePrimitves(); + } + + public function setTurretControls(turretTurnDirection:int) : Boolean + { + if(this.turnDirection == turretTurnDirection) + { + return false; + } + this.turnDirection = turretTurnDirection; + this.§_-fV§ = false; + return true; + } + + public function centerTurret(value:Boolean) : void + { + this.§_-fV§ = value; + } + + public function getTurretPrimitives() : Vector. + { + return this.primitives; + } + + public function updateBeforeSimulation(physicsStep:int) : void + { + var _loc2_:Number = NaN; + this.§_-De§ = this.direction; + if(!this.§_-fV§ && this.turnDirection == 0) + { + this.§_-nr§ = 0; + } + else + { + _loc2_ = 0.001 * physicsStep; + this.§_-nr§ += this.rotationAcceleration * _loc2_; + if(this.§_-nr§ > this.maxRotationSpeed) + { + this.§_-nr§ = this.maxRotationSpeed; + } + if(this.§_-fV§) + { + this.direction = GameMathUtils.advanceValueTowards(this.direction,0,this.§_-nr§ * _loc2_); + if(this.direction == 0) + { + this.§_-fV§ = false; + } + this.updatePrimitves(); + } + else + { + this.setTurretDirection(this.direction + this.turnDirection * this.§_-nr§ * _loc2_); + } + } + } + + public function updateAfterSimulation(physicsStep:int) : void + { + } + + public function interpolate(interpolationCoeff:Number) : void + { + var angleDiff:Number = this.direction - this.§_-De§; + if(angleDiff > Math.PI) + { + angleDiff = 2 * Math.PI - angleDiff; + this.§_-JR§ = this.§_-De§ - angleDiff * interpolationCoeff; + if(this.§_-JR§ < -Math.PI) + { + this.§_-JR§ += 2 * Math.PI; + } + } + else if(angleDiff < -Math.PI) + { + angleDiff += 2 * Math.PI; + this.§_-JR§ = this.§_-De§ + angleDiff * interpolationCoeff; + if(this.§_-JR§ > Math.PI) + { + this.§_-JR§ -= 2 * Math.PI; + } + } + else + { + this.§_-JR§ = this.§_-De§ * (1 - interpolationCoeff) + this.direction * interpolationCoeff; + } + this.§_-pP§.toIdentity(); + this.§_-pP§.setRotationMatrix(0,0,this.§_-JR§); + this.§_-pP§.setPosition(this.§_-CH§); + this.§_-pP§.append(this.chassisComponent.getInterpolatedMatrix()); + } + + internal function addToScene() : void + { + if(!this.§case §) + { + this.gameKernel.getPhysicsSystem().addControllerBefore(this); + this.§case § = true; + } + } + + internal function removeFromScene() : void + { + if(this.§case §) + { + this.gameKernel.getPhysicsSystem().removeControllerBefore(this); + this.§case § = false; + } + } + + private function getLocalMuzzlePoint(barrelIndex:int) : Vector3 + { + return this.turret.§_-O3§[barrelIndex]; + } + + private function createTurretPrimitives(collisionGroup:int, collisionMask:int) : void + { + var boxData:BoxData = null; + var collisioinBox:TurretCollisioinBox = null; + this.primitives.length = 0; + for each(boxData in this.turret.§_-Of§) + { + collisioinBox = new TurretCollisioinBox(boxData.hs,boxData.matrix,collisionGroup,collisionMask); + collisioinBox.localTransform = new Matrix4(); + this.primitives.push(collisioinBox); + } + } + + private function updatePrimitves() : void + { + var collisionPrimitive:TurretCollisioinBox = null; + var m:Matrix4 = null; + var actualDirection:Number = -this.direction; + var cos:Number = Number(Math.cos(actualDirection)); + var sin:Number = Number(Math.sin(actualDirection)); + var numPrimitives:uint = uint(this.primitives.length); + for(var i:int = 0; i < numPrimitives; i++) + { + collisionPrimitive = TurretCollisioinBox(this.primitives[i]); + m = collisionPrimitive.localTransform; + m.toIdentity(); + m.a = cos; + m.b = sin; + m.e = -sin; + m.f = cos; + m.d = this.§_-CH§.x; + m.h = this.§_-CH§.y; + m.l = this.§_-CH§.z; + m.prepend(collisionPrimitive.m); + } + } + + private function onBattleFinished(gameType:String, gameData:*) : void + { + this.setTurretControls(0); + } + } +} + diff --git a/src/alternativa/tanks/game/physics/BodyCollisionData.as b/src/alternativa/tanks/game/physics/BodyCollisionData.as new file mode 100644 index 0000000..b7980aa --- /dev/null +++ b/src/alternativa/tanks/game/physics/BodyCollisionData.as @@ -0,0 +1,23 @@ +package alternativa.tanks.game.physics +{ + import alternativa.physics.Body; + import alternativa.physics.collision.CollisionPrimitive; + + public class BodyCollisionData + { + public var body:Body; + + public var simplePrimitives:Vector.; + + public var detailedPrimitives:Vector.; + + public function BodyCollisionData(body:Body, simplePrimitives:Vector., detailedPrimitives:Vector.) + { + super(); + this.body = body; + this.simplePrimitives = simplePrimitives; + this.detailedPrimitives = detailedPrimitives; + } + } +} + diff --git a/src/package_86/name_654.as b/src/alternativa/tanks/game/physics/BodyDistance.as similarity index 59% rename from src/package_86/name_654.as rename to src/alternativa/tanks/game/physics/BodyDistance.as index ebfecd1..4ae486b 100644 --- a/src/package_86/name_654.as +++ b/src/alternativa/tanks/game/physics/BodyDistance.as @@ -1,14 +1,14 @@ -package package_86 +package alternativa.tanks.game.physics { - import package_92.name_271; + import alternativa.physics.Body; - public class name_654 + public class BodyDistance { - public var body:name_271; + public var body:Body; public var distance:Number; - public function name_654(body:name_271, distance:Number) + public function BodyDistance(body:Body, distance:Number) { super(); this.body = body; diff --git a/src/package_86/name_484.as b/src/alternativa/tanks/game/physics/BoxData.as similarity index 54% rename from src/package_86/name_484.as rename to src/alternativa/tanks/game/physics/BoxData.as index 72870db..f7160ad 100644 --- a/src/package_86/name_484.as +++ b/src/alternativa/tanks/game/physics/BoxData.as @@ -1,15 +1,15 @@ -package package_86 +package alternativa.tanks.game.physics { - import package_46.Matrix4; - import package_46.name_194; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; - public class name_484 + public class BoxData { - public var hs:name_194; + public var hs:Vector3; public var matrix:Matrix4; - public function name_484(hs:name_194, matrix:Matrix4) + public function BoxData(hs:Vector3, matrix:Matrix4) { super(); this.hs = hs; diff --git a/src/package_86/name_257.as b/src/alternativa/tanks/game/physics/CollisionGroup.as similarity index 61% rename from src/package_86/name_257.as rename to src/alternativa/tanks/game/physics/CollisionGroup.as index 4380d5d..07341a2 100644 --- a/src/package_86/name_257.as +++ b/src/alternativa/tanks/game/physics/CollisionGroup.as @@ -1,6 +1,6 @@ -package package_86 +package alternativa.tanks.game.physics { - public class name_257 + public class CollisionGroup { public static const STATIC:int = 1; @@ -8,7 +8,7 @@ package package_86 public static const WEAPON:int = 1 << 2; - public function name_257() + public function CollisionGroup() { super(); } diff --git a/src/alternativa/tanks/game/physics/IRadiusQueryFilter.as b/src/alternativa/tanks/game/physics/IRadiusQueryFilter.as new file mode 100644 index 0000000..38d93d4 --- /dev/null +++ b/src/alternativa/tanks/game/physics/IRadiusQueryFilter.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.physics +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + + public interface IRadiusQueryFilter + { + function acceptBody(param1:Vector3, param2:Body) : Boolean; + } +} + diff --git a/src/alternativa/tanks/game/physics/ITanksCollisionDetector.as b/src/alternativa/tanks/game/physics/ITanksCollisionDetector.as new file mode 100644 index 0000000..a8118c1 --- /dev/null +++ b/src/alternativa/tanks/game/physics/ITanksCollisionDetector.as @@ -0,0 +1,17 @@ +package alternativa.tanks.game.physics +{ + import alternativa.math.Vector3; + import alternativa.physics.collision.ICollisionDetector; + + public interface ITanksCollisionDetector extends ICollisionDetector + { + function getObjectsInRadius(param1:Vector3, param2:Number, param3:IRadiusQueryFilter) : Vector.; + + function addBodyCollisionData(param1:BodyCollisionData) : void; + + function removeBodyCollisionData(param1:BodyCollisionData) : void; + + function prepareForRaycasts() : void; + } +} + diff --git a/src/alternativa/tanks/game/physics/SimpleRaycastFilter.as b/src/alternativa/tanks/game/physics/SimpleRaycastFilter.as new file mode 100644 index 0000000..52cb2a1 --- /dev/null +++ b/src/alternativa/tanks/game/physics/SimpleRaycastFilter.as @@ -0,0 +1,23 @@ +package alternativa.tanks.game.physics +{ + import alternativa.physics.Body; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.IRaycastFilter; + + public class SimpleRaycastFilter implements IRaycastFilter + { + public var body:Body; + + public function SimpleRaycastFilter(body:Body = null) + { + super(); + this.body = body; + } + + public function acceptRayHit(primitive:CollisionPrimitive) : Boolean + { + return this.body != primitive.body; + } + } +} + diff --git a/src/alternativa/tanks/game/physics/TurretCollisioinBox.as b/src/alternativa/tanks/game/physics/TurretCollisioinBox.as new file mode 100644 index 0000000..2764a0b --- /dev/null +++ b/src/alternativa/tanks/game/physics/TurretCollisioinBox.as @@ -0,0 +1,18 @@ +package alternativa.tanks.game.physics +{ + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.collision.primitives.§_-m3§; + + public class TurretCollisioinBox extends §_-m3§ + { + public var m:Matrix4; + + public function TurretCollisioinBox(hs:Vector3, localMatrix:Matrix4, collisionGroup:int, collisionMask:int) + { + super(hs,collisionGroup,collisionMask); + this.m = localMatrix.clone(); + } + } +} + diff --git a/src/alternativa/tanks/game/physics/collision/uniformgrid/BodyCollisionGridData.as b/src/alternativa/tanks/game/physics/collision/uniformgrid/BodyCollisionGridData.as new file mode 100644 index 0000000..76de049 --- /dev/null +++ b/src/alternativa/tanks/game/physics/collision/uniformgrid/BodyCollisionGridData.as @@ -0,0 +1,52 @@ +package alternativa.tanks.game.physics.collision.uniformgrid +{ + import alternativa.physics.Body; + import alternativa.physics.collision.CollisionPrimitive; + + public class BodyCollisionGridData + { + private static var poolSize:int; + + private static var pool:Vector. = new Vector.(); + + public var body:Body; + + public var simplePrimitives:Vector.; + + public var detailedPrimitives:Vector.; + + public var index:int; + + public var i:int; + + public var j:int; + + public var k:int; + + public var timestamp:int; + + public function BodyCollisionGridData() + { + super(); + } + + public static function create() : BodyCollisionGridData + { + if(poolSize == 0) + { + return new BodyCollisionGridData(); + } + return pool[--poolSize]; + } + + public function destroy() : void + { + this.body = null; + this.simplePrimitives = null; + this.detailedPrimitives = null; + var _loc1_:* = poolSize++; + pool[_loc1_] = this; + } + } +} + diff --git a/src/alternativa/tanks/game/physics/collision/uniformgrid/IRaycastCellVisitor.as b/src/alternativa/tanks/game/physics/collision/uniformgrid/IRaycastCellVisitor.as new file mode 100644 index 0000000..214cf85 --- /dev/null +++ b/src/alternativa/tanks/game/physics/collision/uniformgrid/IRaycastCellVisitor.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.physics.collision.uniformgrid +{ + import alternativa.math.Vector3; + + public interface IRaycastCellVisitor + { + function visitCell(param1:int, param2:int, param3:int, param4:int, param5:Number, param6:Number, param7:int, param8:Vector3, param9:Vector3) : Boolean; + } +} + diff --git a/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as b/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as index eaf73d1..f5da55a 100644 --- a/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as +++ b/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as @@ -1,39 +1,39 @@ package alternativa.tanks.game.subsystems.eventsystem { import alternativa.tanks.game.GameTask; - import package_108.name_373; - import package_108.name_374; + import alternativa.tanks.game.utils.list.List; + import alternativa.tanks.game.utils.list.ListIterator; public class EventSystem extends GameTask implements IEventSystem { - private var eventQueue1:name_374; + private var eventQueue1:List; - private var eventQueue2:name_374; + private var eventQueue2:List; - private var var_213:Object; + private var §_-iZ§:Object; public function EventSystem(priority:int) { super(priority); - this.eventQueue1 = new name_374(); - this.eventQueue2 = new name_374(); - this.var_213 = new Object(); + this.eventQueue1 = new List(); + this.eventQueue2 = new List(); + this.§_-iZ§ = new Object(); } public function addEventListener(eventType:String, listener:IGameEventListener) : void { - var listeners:name_374 = this.var_213[eventType]; + var listeners:List = this.§_-iZ§[eventType]; if(listeners == null) { - listeners = new name_374(); - this.var_213[eventType] = listeners; + listeners = new List(); + this.§_-iZ§[eventType] = listeners; } listeners.add(listener); } public function removeEventListener(eventType:String, listener:IGameEventListener) : void { - var listeners:name_374 = this.var_213[eventType]; + var listeners:List = this.§_-iZ§[eventType]; if(listeners != null) { listeners.remove(listener); @@ -48,21 +48,21 @@ package alternativa.tanks.game.subsystems.eventsystem override public function run() : void { var event:GameEvent = null; - var listeners:name_374 = null; - var iterator:name_373 = null; + var listeners:List = null; + var iterator:ListIterator = null; var listener:IGameEventListener = null; - var tmp:name_374 = this.eventQueue1; + var tmp:List = this.eventQueue1; this.eventQueue1 = this.eventQueue2; for(this.eventQueue2 = tmp; (event = GameEvent(this.eventQueue2.poll())) != null; ) { - listeners = this.var_213[event.eventType]; + listeners = this.§_-iZ§[event.eventType]; if(listeners != null) { iterator = listeners.listIterator(); while(iterator.hasNext()) { listener = IGameEventListener(iterator.next()); - listener.method_146(event.eventType,event.eventData); + listener.onGameEvent(event.eventType,event.eventData); } } event.destroy(); diff --git a/src/alternativa/tanks/game/subsystems/eventsystem/IGameEventListener.as b/src/alternativa/tanks/game/subsystems/eventsystem/IGameEventListener.as index 1434996..0d7b736 100644 --- a/src/alternativa/tanks/game/subsystems/eventsystem/IGameEventListener.as +++ b/src/alternativa/tanks/game/subsystems/eventsystem/IGameEventListener.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.subsystems.eventsystem { public interface IGameEventListener { - function method_146(param1:String, param2:*) : void; + function onGameEvent(param1:String, param2:*) : void; } } diff --git a/src/alternativa/tanks/game/subsystems/inputsystem/IInput.as b/src/alternativa/tanks/game/subsystems/inputsystem/IInput.as index 876f323..28a24dc 100644 --- a/src/alternativa/tanks/game/subsystems/inputsystem/IInput.as +++ b/src/alternativa/tanks/game/subsystems/inputsystem/IInput.as @@ -2,23 +2,23 @@ package alternativa.tanks.game.subsystems.inputsystem { public interface IInput { - function name_94(param1:KeyboardEventType, param2:Function, param3:uint = 0) : void; + function addKeyboardListener(param1:KeyboardEventType, param2:Function, param3:uint = 0) : void; - function name_384(param1:KeyboardEventType, param2:Function, param3:uint = 0) : void; + function removeKeyboardListener(param1:KeyboardEventType, param2:Function, param3:uint = 0) : void; - function name_192(param1:uint) : int; + function getKeyState(param1:uint) : int; - function name_346(param1:uint) : Boolean; + function keyPressed(param1:uint) : Boolean; - function name_199() : Boolean; + function mouseButtonPressed() : Boolean; - function method_261() : int; + function getMouseWheelDelta() : int; - function method_262() : Boolean; + function wasMouseButtonPressed() : Boolean; - function name_197() : int; + function getMouseDeltaX() : int; - function name_200() : int; + function getMouseDeltaY() : int; } } diff --git a/src/alternativa/tanks/game/subsystems/logicsystem/ILogic.as b/src/alternativa/tanks/game/subsystems/logicsystem/ILogic.as new file mode 100644 index 0000000..d6af251 --- /dev/null +++ b/src/alternativa/tanks/game/subsystems/logicsystem/ILogic.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.subsystems.logicsystem +{ + public interface ILogic + { + function addLogicUnit(param1:ILogicUnit) : void; + + function removeLogicUnit(param1:ILogicUnit) : void; + } +} + diff --git a/src/alternativa/tanks/game/subsystems/logicsystem/ILogicUnit.as b/src/alternativa/tanks/game/subsystems/logicsystem/ILogicUnit.as new file mode 100644 index 0000000..7a05358 --- /dev/null +++ b/src/alternativa/tanks/game/subsystems/logicsystem/ILogicUnit.as @@ -0,0 +1,8 @@ +package alternativa.tanks.game.subsystems.logicsystem +{ + public interface ILogicUnit + { + function runLogic() : void; + } +} + diff --git a/src/package_44/name_465.as b/src/alternativa/tanks/game/subsystems/physicssystem/IPhysicsController.as similarity index 64% rename from src/package_44/name_465.as rename to src/alternativa/tanks/game/subsystems/physicssystem/IPhysicsController.as index 8ca5c1b..bc24395 100644 --- a/src/package_44/name_465.as +++ b/src/alternativa/tanks/game/subsystems/physicssystem/IPhysicsController.as @@ -1,6 +1,6 @@ -package package_44 +package alternativa.tanks.game.subsystems.physicssystem { - public interface name_465 + public interface IPhysicsController { function updateBeforeSimulation(param1:int) : void; diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/BlendedMaterial.as b/src/alternativa/tanks/game/subsystems/rendersystem/BlendedMaterial.as index ef0f25f..b77b805 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/BlendedMaterial.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/BlendedMaterial.as @@ -1,29 +1,29 @@ package alternativa.tanks.game.subsystems.rendersystem { import alternativa.engine3d.alternativa3d; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_28.name_119; - import package_28.name_129; - import package_4.class_5; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.materials.TextureMaterial; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; use namespace alternativa3d; - public class BlendedMaterial extends class_5 + public class BlendedMaterial extends TextureMaterial { public var blendModeSource:String = "one"; public var blendModeDestination:String = "zero"; - public function BlendedMaterial(diffuseMap:name_129 = null, opacityMap:name_129 = null, alpha:Number = 1, blendModeSource:String = "one", blendModeDestination:String = "zero") + public function BlendedMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1, blendModeSource:String = "one", blendModeDestination:String = "zero") { super(diffuseMap,opacityMap,alpha); this.blendModeSource = blendModeSource; this.blendModeDestination = blendModeDestination; } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as index 311aeb0..563a431 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as @@ -1,53 +1,53 @@ package alternativa.tanks.game.subsystems.rendersystem { - import package_21.name_78; - import package_24.DirectionalLight; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.lights.DirectionalLight; public class DirectionalLightList { - private var container:name_78; + private var container:Object3D; - private var var_16:Vector.; + private var §_-9k§:Vector.; - public function DirectionalLightList(container:name_78) + public function DirectionalLightList(container:Object3D) { super(); this.container = container; - this.var_16 = new Vector.(); + this.§_-9k§ = new Vector.(); } public function add(light:DirectionalLight) : void { - if(this.var_16.indexOf(light) < 0) + if(this.§_-9k§.indexOf(light) < 0) { - this.var_16.push(light); + this.§_-9k§.push(light); this.container.addChild(light); } } public function remove(light:DirectionalLight) : void { - var index:int = int(this.var_16.indexOf(light)); + var index:int = int(this.§_-9k§.indexOf(light)); if(index >= 0) { - this.var_16[index] = this.var_16[this.var_16.length - 1]; - this.var_16.length -= 1; + this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; + this.§_-9k§.length -= 1; } } public function get size() : int { - return this.var_16.length; + return this.§_-9k§.length; } public function get lights() : Vector. { - return Vector.(this.var_16); + return Vector.(this.§_-9k§); } - public function method_645(i:int) : DirectionalLight + public function getLightAt(i:int) : DirectionalLight { - return this.var_16[i]; + return this.§_-9k§[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/FogInitializator.as b/src/alternativa/tanks/game/subsystems/rendersystem/FogInitializator.as index f1e4680..25ff278 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/FogInitializator.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/FogInitializator.as @@ -18,7 +18,7 @@ package alternativa.tanks.game.subsystems.rendersystem public function execute(stage3d:Stage3D) : void { - this.renderSystem.method_33(this.fogBitmap); + this.renderSystem.setFogTexture(this.fogBitmap); } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/GameCamera.as b/src/alternativa/tanks/game/subsystems/rendersystem/GameCamera.as index 2e01828..eafaf36 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/GameCamera.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/GameCamera.as @@ -1,29 +1,29 @@ package alternativa.tanks.game.subsystems.rendersystem { - import package_21.name_124; - import package_46.Matrix3; - import package_46.name_194; + import alternativa.engine3d.core.Camera3D; + import alternativa.math.Matrix3; + import alternativa.math.Vector3; - public class GameCamera extends name_124 + public class GameCamera extends Camera3D { private static var matrix3:Matrix3 = new Matrix3(); - public var position:name_194 = new name_194(); + public var position:Vector3 = new Vector3(); - public var xAxis:name_194 = new name_194(); + public var xAxis:Vector3 = new Vector3(); - public var yAxis:name_194 = new name_194(); + public var yAxis:Vector3 = new Vector3(); - public var zAxis:name_194 = new name_194(); + public var zAxis:Vector3 = new Vector3(); public function GameCamera(nearClipping:Number, farClipping:Number) { super(nearClipping,farClipping); } - public function name_112() : void + public function calculateAxis() : void { - matrix3.name_196(rotationX,rotationY,rotationZ); + matrix3.setRotationMatrix(rotationX,rotationY,rotationZ); this.position.x = x; this.position.y = y; this.position.z = z; diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/ICameraController.as b/src/alternativa/tanks/game/subsystems/rendersystem/ICameraController.as index 2fe6707..94a3ba3 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/ICameraController.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/ICameraController.as @@ -4,7 +4,7 @@ package alternativa.tanks.game.subsystems.rendersystem { function update() : void; - function name_108() : void; + function enable() : void; } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/IResourceManager.as b/src/alternativa/tanks/game/subsystems/rendersystem/IResourceManager.as index 7b88916..f35f2af 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/IResourceManager.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/IResourceManager.as @@ -1,18 +1,18 @@ package alternativa.tanks.game.subsystems.rendersystem { - import package_21.name_77; + import alternativa.engine3d.core.Resource; public interface IResourceManager { - function method_29(param1:name_77) : void; + function useResource(param1:Resource) : void; - function method_32(param1:Vector.) : void; + function useResources(param1:Vector.) : void; - function method_28(param1:name_77) : void; + function releaseResource(param1:Resource) : void; - function method_31(param1:Vector.) : void; + function releaseResources(param1:Vector.) : void; - function method_30(param1:name_77) : void; + function uploadResource(param1:Resource) : void; } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/IShadowRendererConstructor.as b/src/alternativa/tanks/game/subsystems/rendersystem/IShadowRendererConstructor.as index b293d45..057ba1b 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/IShadowRendererConstructor.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/IShadowRendererConstructor.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.subsystems.rendersystem { public interface IShadowRendererConstructor { - function name_111() : void; + function createShadowRenderer() : void; } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as b/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as index 25e685b..1e20679 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as @@ -1,63 +1,63 @@ package alternativa.tanks.game.subsystems.rendersystem { - import package_21.name_78; - import package_24.name_376; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.lights.AmbientLight; public class Lights { - private var container:name_78; + private var container:Object3D; - private var var_142:name_376; + private var §_-e8§:AmbientLight; - private var var_143:DirectionalLightList; + private var §_-qW§:DirectionalLightList; - private var var_144:OmniLightList; + private var §_-hD§:OmniLightList; - private var var_145:SpotLightList; + private var §_-pd§:SpotLightList; - public function Lights(container:name_78) + public function Lights(container:Object3D) { super(); this.container = container; - this.var_143 = new DirectionalLightList(container); - this.var_144 = new OmniLightList(container); - this.var_145 = new SpotLightList(container); + this.§_-qW§ = new DirectionalLightList(container); + this.§_-hD§ = new OmniLightList(container); + this.§_-pd§ = new SpotLightList(container); } - public function set ambientLight(light:name_376) : void + public function set ambientLight(light:AmbientLight) : void { - if(this.var_142 != light) + if(this.§_-e8§ != light) { - if(this.var_142 != null) + if(this.§_-e8§ != null) { - this.container.removeChild(this.var_142); + this.container.removeChild(this.§_-e8§); } - this.var_142 = light; - if(this.var_142 != null) + this.§_-e8§ = light; + if(this.§_-e8§ != null) { - this.container.addChild(this.var_142); + this.container.addChild(this.§_-e8§); } } } - public function get ambientLight() : name_376 + public function get ambientLight() : AmbientLight { - return this.var_142; + return this.§_-e8§; } public function get directionalLigths() : DirectionalLightList { - return this.var_143; + return this.§_-qW§; } public function get omniLigths() : OmniLightList { - return this.var_144; + return this.§_-hD§; } public function get spotLights() : SpotLightList { - return this.var_145; + return this.§_-pd§; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as index 2d76e0d..1baa8b5 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as @@ -1,53 +1,53 @@ package alternativa.tanks.game.subsystems.rendersystem { - import package_21.name_78; - import package_24.OmniLight; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.lights.OmniLight; public class OmniLightList { - private var container:name_78; + private var container:Object3D; - private var var_16:Vector.; + private var §_-9k§:Vector.; - public function OmniLightList(container:name_78) + public function OmniLightList(container:Object3D) { super(); this.container = container; - this.var_16 = new Vector.(); + this.§_-9k§ = new Vector.(); } public function add(light:OmniLight) : void { - if(this.var_16.indexOf(light) < 0) + if(this.§_-9k§.indexOf(light) < 0) { - this.var_16.push(light); + this.§_-9k§.push(light); this.container.addChild(light); } } public function remove(light:OmniLight) : void { - var index:int = int(this.var_16.indexOf(light)); + var index:int = int(this.§_-9k§.indexOf(light)); if(index >= 0) { - this.var_16[index] = this.var_16[this.var_16.length - 1]; - this.var_16.length -= 1; + this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; + this.§_-9k§.length -= 1; } } public function get size() : int { - return this.var_16.length; + return this.§_-9k§.length; } public function get lights() : Vector. { - return Vector.(this.var_16); + return Vector.(this.§_-9k§); } - public function method_645(i:int) : OmniLight + public function getLightAt(i:int) : OmniLight { - return this.var_16[i]; + return this.§_-9k§[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as b/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as index c0fe39a..a212439 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as @@ -1,6 +1,30 @@ package alternativa.tanks.game.subsystems.rendersystem { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.Resource; + import alternativa.engine3d.core.View; + import alternativa.engine3d.core.events.MouseEvent3D; + import alternativa.engine3d.effects.ParticleSystem; + import alternativa.engine3d.effects.§_-SG§; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.objects.Decal; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.shadows.ShadowRenderer; + import alternativa.engine3d.shadows.ShadowsSystem; + import alternativa.engine3d.shadows.StaticShadowRenderer; + import alternativa.tanks.game.GameTask; + import alternativa.tanks.game.camera.AxisIndicator; + import alternativa.tanks.game.entities.map.MapMaterial; + import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial; + import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial; + import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial2; + import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; + import alternativa.tanks.game.entities.tank.graphics.materials.TreesMaterial; + import alternativa.tanks.game.subsystems.inputsystem.IInput; + import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; + import alternativa.tanks.game.utils.BitFlags; + import alternativa.tanks.game.utils.objectpool.ObjectPoolManager; import flash.display.BitmapData; import flash.display.DisplayObject; import flash.display.Sprite; @@ -11,30 +35,6 @@ package alternativa.tanks.game.subsystems.rendersystem import flash.events.Event; import flash.geom.Vector3D; import flash.ui.Keyboard; - import alternativa.tanks.game.GameTask; - import package_19.name_91; - import alternativa.tanks.game.entities.map.MapMaterial; - import package_21.name_77; - import package_21.name_78; - import package_21.name_81; - import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_23.name_103; - import package_23.name_92; - import package_23.name_97; - import package_24.DirectionalLight; - import package_25.name_113; - import package_25.name_98; - import alternativa.tanks.game.utils.objectpool.ObjectPoolManager; - import package_27.name_95; - import package_28.name_93; - import package_29.MouseEvent3D; - import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial2; - import alternativa.tanks.game.entities.tank.graphics.materials.TreesMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; - import alternativa.tanks.game.entities.tank.graphics.materials.TankMaterial; - import alternativa.tanks.game.camera.AxisIndicator; use namespace alternativa3d; @@ -54,51 +54,51 @@ package alternativa.tanks.game.subsystems.rendersystem private static const BIT_DEBUG_LIGHTS:int = 1 << 1; - private var rootContainer:name_78; + private var rootContainer:Object3D; - private var skyboxContainer:name_78; + private var skyboxContainer:Object3D; - private var mapGeometryContainer:name_78; + private var mapGeometryContainer:Object3D; - private var lightsContainer:name_78; + private var lightsContainer:Object3D; - private var dynamicObjectsContainer:name_78; + private var dynamicObjectsContainer:Object3D; - private var effectsContainer:name_78; + private var effectsContainer:Object3D; - private var var_12:Object = {}; + private var §_-jy§:Object = {}; - private var view:name_81; + private var view:View; private var camera:GameCamera; - private var var_13:ICameraController; + private var §_-lk§:ICameraController; private var axisIndicator:AxisIndicator; private var renderers:RendererList; - private var var_11:RendererList; + private var §_-WV§:RendererList; private var effects:Vector.; private var numEffects:int; - private var var_14:Boolean = true; + private var §_-EX§:Boolean = true; - private var var_8:Object = {}; + private var §_-qH§:Object = {}; - private var var_16:Lights; + private var §_-9k§:Lights; - private var var_20:Boolean; + private var §for§:Boolean; - private var var_18:Boolean; + private var §_-7w§:Boolean; private var objectPoolManager:ObjectPoolManager = new ObjectPoolManager(); - private var var_19:Vector.; + private var §_-1h§:Vector.; - private var var_17:name_95 = new name_95(); + private var §_-i6§:BitFlags = new BitFlags(); private var stage:Stage; @@ -106,37 +106,37 @@ package alternativa.tanks.game.subsystems.rendersystem private var resourceManager:ResourceManager; - private var var_9:name_92; + private var §_-aD§:ShadowsSystem; - private var staticShadowRenderer:name_97; + private var staticShadowRenderer:StaticShadowRenderer; - private var var_10:Vector.; + private var §_-pR§:Vector.; - private var var_7:Vector.; + private var §_-MI§:Vector.; - private var var_15:Boolean; + private var §_-qS§:Boolean; - private var var_6:name_93; + private var §_-Qk§:BitmapTextureResource; - private var var_5:name_98; + private var §_-Ta§:ParticleSystem; public function RenderSystem(priority:int, stage:Stage) { super(priority); this.stage = stage; this.renderers = new RendererList(); - this.var_11 = new RendererList(); + this.§_-WV§ = new RendererList(); this.effects = new Vector.(); - this.rootContainer = new name_78(); + this.rootContainer = new Object3D(); this.rootContainer.name = "root"; this.skyboxContainer = this.createContainer(SKYBOX_CONTAINER_ID); this.mapGeometryContainer = this.createContainer(MAP_GEOMETRY_CONTAINER_ID); this.lightsContainer = this.createContainer(LIGHTS_CONTAINER_ID); this.dynamicObjectsContainer = this.createContainer(DYNAMIC_OBJECTS_CONTAINER_ID); this.effectsContainer = this.createContainer(EFFECTS_CONTAINER_ID); - this.var_16 = new Lights(this.lightsContainer); - this.view = new name_81(100,100,false,6710886,1,4); - this.view.name_106(); + this.§_-9k§ = new Lights(this.lightsContainer); + this.view = new View(100,100,false,6710886,1,4); + this.view.hideLogo(); this.camera = new GameCamera(10,50000); this.camera.nearClipping = 1; this.camera.view = this.view; @@ -144,23 +144,23 @@ package alternativa.tanks.game.subsystems.rendersystem var giLight:DirectionalLight = new DirectionalLight(9222892); giLight.intensity = 0.5; giLight.rotationX = Math.PI; - this.var_5 = new name_98(); - this.var_5.gravity = new Vector3D(0,0,-1); - this.var_5.wind = new Vector3D(1,0,0); - this.rootContainer.addChild(this.var_5); + this.§_-Ta§ = new ParticleSystem(); + this.§_-Ta§.gravity = new Vector3D(0,0,-1); + this.§_-Ta§.wind = new Vector3D(1,0,0); + this.rootContainer.addChild(this.§_-Ta§); this.axisIndicator = new AxisIndicator(100); this.resourceManager = new ResourceManager(); - this.var_9 = new name_92(); - this.staticShadowRenderer = new name_97(null,1024,4); - this.var_10 = new Vector.(); + this.§_-aD§ = new ShadowsSystem(); + this.staticShadowRenderer = new StaticShadowRenderer(null,1024,4); + this.§_-pR§ = new Vector.(); this.rootContainer.addEventListener(MouseEvent3D.CLICK,this.onClick); } private function onClick(e:MouseEvent3D) : void { - if(e.target is name_91) + if(e.target is Decal) { - trace(e.target,e.target.name,name_91(e.target).offset,e.target.scaleX,e.target.scaleY,e.target.scaleZ); + trace(e.target,e.target.name,Decal(e.target).offset,e.target.scaleX,e.target.scaleY,e.target.scaleZ); } else { @@ -170,10 +170,10 @@ package alternativa.tanks.game.subsystems.rendersystem public function get lights() : Lights { - return this.var_16; + return this.§_-9k§; } - public function name_41(mode:int) : void + public function setFogMode(mode:int) : void { MapMaterial.fogMode = mode; TankMaterial.fogMode = mode; @@ -184,15 +184,15 @@ package alternativa.tanks.game.subsystems.rendersystem GiShadowMaterial.fogMode = mode; if(mode == 1) { - this.var_5.fogFar = MapMaterial.fogFar; + this.§_-Ta§.fogFar = MapMaterial.fogFar; } else { - this.var_5.fogFar = 0; + this.§_-Ta§.fogFar = 0; } } - public function name_47(value:Number) : void + public function setFogNear(value:Number) : void { MapMaterial.fogNear = value; TankMaterial.fogNear = value; @@ -200,10 +200,10 @@ package alternativa.tanks.game.subsystems.rendersystem TracksMaterial2.fogNear = value; TreesMaterial.fogNear = value; GiShadowMaterial.fogNear = value; - this.var_5.fogNear = value; + this.§_-Ta§.fogNear = value; } - public function name_48(value:Number) : void + public function setFogFar(value:Number) : void { MapMaterial.fogFar = value; TankMaterial.fogFar = value; @@ -211,10 +211,10 @@ package alternativa.tanks.game.subsystems.rendersystem TracksMaterial2.fogFar = value; TreesMaterial.fogFar = value; GiShadowMaterial.fogFar = value; - this.var_5.fogFar = value; + this.§_-Ta§.fogFar = value; } - public function name_49(value:Number) : void + public function setMaxFogDensity(value:Number) : void { MapMaterial.fogMaxDensity = value; TankMaterial.fogMaxDensity = value; @@ -223,10 +223,10 @@ package alternativa.tanks.game.subsystems.rendersystem TreesMaterial.fogMaxDensity = value; SkyMaterial.fogMaxDensity = value; GiShadowMaterial.fogMaxDensity = value; - this.var_5.fogMaxDensity = value; + this.§_-Ta§.fogMaxDensity = value; } - public function name_40(color:uint) : void + public function setFogColor(color:uint) : void { var r:Number = (color >> 16 & 0xFF) / 255; var g:Number = (color >> 8 & 0xFF) / 255; @@ -252,22 +252,22 @@ package alternativa.tanks.game.subsystems.rendersystem GiShadowMaterial.fogColorR = r; GiShadowMaterial.fogColorG = g; GiShadowMaterial.fogColorB = b; - this.var_5.name_107 = color; + this.§_-Ta§.§_-IN§ = color; } - public function name_38(value:Number) : void + public function setFogHorizonSize(value:Number) : void { SkyMaterial.fogHeight = value; } - public function name_34(value:Number) : void + public function setFogHorizonOffset(value:Number) : void { SkyMaterial.fogOffset = value; } - public function name_36(textureParams:String) : void + public function setFogTextureParams(textureParams:String) : void { - var fogBitmap:BitmapData = RenderUtils.name_109(textureParams,128); + var fogBitmap:BitmapData = RenderUtils.getFogBitmap(textureParams,128); var fogInitializator:FogInitializator = new FogInitializator(fogBitmap,this); if(this.isContext3DAvailable()) { @@ -275,121 +275,121 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.var_10.push(fogInitializator); + this.§_-pR§.push(fogInitializator); } } - public function method_33(bitmapData:BitmapData) : void + public function setFogTexture(bitmapData:BitmapData) : void { if(!this.isContext3DAvailable()) { throw new Error("Context3D is not available. Use setFogTextureParams() instead."); } - if(this.var_6 != null) + if(this.§_-Qk§ != null) { - this.method_28(this.var_6); + this.releaseResource(this.§_-Qk§); } - this.var_6 = new name_93(bitmapData); - this.method_29(this.var_6); - MapMaterial.method_33(this.var_6); - TankMaterial.method_33(this.var_6); - TankMaterial2.method_33(this.var_6); - GiShadowMaterial.method_33(this.var_6); - TracksMaterial2.method_33(this.var_6); - TreesMaterial.method_33(this.var_6); - SkyMaterial.method_33(this.var_6); + this.§_-Qk§ = new BitmapTextureResource(bitmapData); + this.useResource(this.§_-Qk§); + MapMaterial.setFogTexture(this.§_-Qk§); + TankMaterial.setFogTexture(this.§_-Qk§); + TankMaterial2.setFogTexture(this.§_-Qk§); + GiShadowMaterial.setFogTexture(this.§_-Qk§); + TracksMaterial2.setFogTexture(this.§_-Qk§); + TreesMaterial.setFogTexture(this.§_-Qk§); + SkyMaterial.setFogTexture(this.§_-Qk§); } - public function method_57() : Boolean + public function isShadowSystemReady() : Boolean { - return this.var_15; + return this.§_-qS§; } - public function method_58() : void + public function setShadowSystemReady() : void { var shadowRendererConstructor:IShadowRendererConstructor = null; - this.var_15 = true; - if(this.var_7 != null) + this.§_-qS§ = true; + if(this.§_-MI§ != null) { - for each(shadowRendererConstructor in this.var_7) + for each(shadowRendererConstructor in this.§_-MI§) { - shadowRendererConstructor.name_111(); + shadowRendererConstructor.createShadowRenderer(); } - this.var_7 = null; + this.§_-MI§ = null; } } - public function method_59(shadowRendererConstructor:IShadowRendererConstructor) : void + public function addShadowRendererConstructor(shadowRendererConstructor:IShadowRendererConstructor) : void { if(shadowRendererConstructor == null) { throw new ArgumentError("Parameter shadowRendererConstructor is null"); } - if(this.var_15) + if(this.§_-qS§) { throw new Error("Cannot add constructor: shadow system is ready"); } - if(this.var_7 == null) + if(this.§_-MI§ == null) { - this.var_7 = new Vector.(); + this.§_-MI§ = new Vector.(); } - var index:int = int(this.var_7.indexOf(shadowRendererConstructor)); + var index:int = int(this.§_-MI§.indexOf(shadowRendererConstructor)); if(index < 0) { - this.var_7.push(shadowRendererConstructor); + this.§_-MI§.push(shadowRendererConstructor); } } - public function method_49(shadowRendererConstructor:IShadowRendererConstructor) : void + public function removeShadowRendererConstructor(shadowRendererConstructor:IShadowRendererConstructor) : void { var index:int = 0; - if(this.var_7 != null) + if(this.§_-MI§ != null) { - index = int(this.var_7.indexOf(shadowRendererConstructor)); + index = int(this.§_-MI§.indexOf(shadowRendererConstructor)); if(index >= 0) { - this.var_7.splice(index,1); + this.§_-MI§.splice(index,1); } } } - public function method_55() : name_92 + public function getShadowSystem() : ShadowsSystem { - return this.var_9; + return this.§_-aD§; } - public function method_54(value:int) : void + public function setAntialiasing(value:int) : void { this.view.antiAlias = value; } - public function method_72() : int + public function getAnitaliasing() : int { return this.view.antiAlias; } - public function method_70(renderer:name_103) : void + public function addShadowRenderer(renderer:ShadowRenderer) : void { if(renderer == null) { throw new ArgumentError("Parameter renderer is null"); } - if(this.var_9.renderers.indexOf(renderer) < 0) + if(this.§_-aD§.renderers.indexOf(renderer) < 0) { - this.var_9.renderers.push(renderer); + this.§_-aD§.renderers.push(renderer); } } - public function method_65(renderer:name_103) : void + public function removeShadowRenderer(renderer:ShadowRenderer) : void { - var index:int = int(this.var_9.renderers.indexOf(renderer)); + var index:int = int(this.§_-aD§.renderers.indexOf(renderer)); if(index >= 0) { - this.var_9.renderers.splice(index,1); + this.§_-aD§.renderers.splice(index,1); } } - public function name_37(stage3d:Stage3D) : void + public function setStage3D(stage3d:Stage3D) : void { this.stage3d = stage3d; this.initContext(stage3d.context3D); @@ -402,87 +402,87 @@ package alternativa.tanks.game.subsystems.rendersystem this.stage3d.requestContext3D(Context3DRenderMode.AUTO); } - public function method_29(resource:name_77) : void + public function useResource(resource:Resource) : void { - this.resourceManager.method_29(resource); + this.resourceManager.useResource(resource); } - public function method_32(resources:Vector.) : void + public function useResources(resources:Vector.) : void { - this.resourceManager.method_32(resources); + this.resourceManager.useResources(resources); } - public function method_28(resource:name_77) : void + public function releaseResource(resource:Resource) : void { - this.resourceManager.method_28(resource); + this.resourceManager.releaseResource(resource); } - public function method_31(resources:Vector.) : void + public function releaseResources(resources:Vector.) : void { - this.resourceManager.method_31(resources); + this.resourceManager.releaseResources(resources); } public function clear() : void { } - public function method_62() : name_78 + public function getRootContainer() : Object3D { return this.rootContainer; } - public function method_68() : name_78 + public function getMapGeometryContainer() : Object3D { return this.mapGeometryContainer; } - public function method_46() : name_78 + public function getDynamicObjectsContainer() : Object3D { return this.dynamicObjectsContainer; } - public function method_60() : name_78 + public function getEffectsContainer() : Object3D { return this.effectsContainer; } - public function method_40(containerId:String) : name_78 + public function getContainer(containerId:String) : Object3D { - return this.var_12[containerId]; + return this.§_-jy§[containerId]; } - public function method_30(resource:name_77) : void + public function uploadResource(resource:Resource) : void { - this.resourceManager.method_30(resource); + this.resourceManager.uploadResource(resource); } - public function method_47(containerId:String, container:name_78, uploadResources:Boolean) : void + public function addContainer(containerId:String, container:Object3D, uploadResources:Boolean) : void { - if(this.method_40(containerId) != null) + if(this.getContainer(containerId) != null) { throw new Error("Container with id \"" + containerId + "\" already exists"); } - this.var_12[containerId] = container; + this.§_-jy§[containerId] = container; this.rootContainer.addChild(container); if(uploadResources) { - this.resourceManager.method_32(container.getResources(true)); + this.resourceManager.useResources(container.getResources(true)); } } - public function name_42() : AxisIndicator + public function getAxisIndicator() : AxisIndicator { return this.axisIndicator; } - public function method_41(name:String) : Sprite + public function getOverlay(name:String) : Sprite { - var view:name_81 = null; - var overlay:Sprite = this.var_8[name]; + var view:View = null; + var overlay:Sprite = this.§_-qH§[name]; if(overlay == null) { overlay = new Sprite(); - this.var_8[name] = overlay; + this.§_-qH§[name] = overlay; view = this.camera.view; overlay.x = view.x + (view.width >> 1); overlay.y = view.y + (view.height >> 1); @@ -491,61 +491,61 @@ package alternativa.tanks.game.subsystems.rendersystem return overlay; } - public function method_51(name:String) : void + public function removeOverlay(name:String) : void { - var overlay:Sprite = this.var_8[name]; + var overlay:Sprite = this.§_-qH§[name]; if(overlay != null) { - delete this.var_8[name]; + delete this.§_-qH§[name]; overlay.parent.removeChild(overlay); } } - public function addObject(object:name_78) : void + public function addObject(object:Object3D) : void { this.rootContainer.addChild(object); - this.resourceManager.method_32(object.getResources()); + this.resourceManager.useResources(object.getResources()); } - public function name_71() : name_81 + public function getView() : View { return this.view; } - public function name_39() : DisplayObject + public function getCameraDiagram() : DisplayObject { return this.camera.diagram; } - public function method_43(objects:Vector.) : void + public function setPhysicsVisualObjects(objects:Vector.) : void { - var object3D:name_78 = null; + var object3D:Object3D = null; for each(object3D in objects) { } } - public function method_63(renderer:IRenderer) : void + public function addRenderer(renderer:IRenderer) : void { this.renderers.add(renderer); } - public function method_64(renderer:IRenderer) : void + public function removeRenderer(renderer:IRenderer) : void { this.renderers.remove(renderer); } - public function method_56(renderer:IRenderer) : void + public function addPostRenderer(renderer:IRenderer) : void { - this.var_11.add(renderer); + this.§_-WV§.add(renderer); } - public function method_53(renderer:IRenderer) : void + public function removePostRenderer(renderer:IRenderer) : void { - this.var_11.remove(renderer); + this.§_-WV§.remove(renderer); } - public function method_37(effect:IGraphicEffect) : void + public function each(effect:IGraphicEffect) : void { if(this.effects.indexOf(effect) >= 0) { @@ -556,47 +556,47 @@ package alternativa.tanks.game.subsystems.rendersystem effect.addedToRenderSystem(this); } - public function method_48(effect:name_113) : void + public function addA3DEffect(effect:§_-SG§) : void { - this.var_5.method_37(effect); + this.§_-Ta§.each(effect); } - public function name_63(controller:ICameraController) : void + public function setCameraController(controller:ICameraController) : void { - if(this.var_13 == controller) + if(this.§_-lk§ == controller) { return; } - this.var_13 = controller; - controller.name_108(); + this.§_-lk§ = controller; + controller.enable(); } - public function name_27() : GameCamera + public function getCamera() : GameCamera { return this.camera; } - public function method_45() : void + public function disableCameraController() : void { - this.var_14 = false; + this.§_-EX§ = false; false; } - public function method_69() : void + public function enableCameraController() : void { - this.var_14 = true; + this.§_-EX§ = true; true; } - public function name_46(x:int, y:int, width:int, height:int) : void + public function setViewRect(x:int, y:int, width:int, height:int) : void { var overlay:Sprite = null; - var view:name_81 = this.camera.view; + var view:View = this.camera.view; view.x = x; view.y = y; view.width = width; view.height = height; - for each(var _loc9_ in this.var_8) + for each(var _loc9_ in this.§_-qH§) { overlay = _loc9_; _loc9_; @@ -605,23 +605,23 @@ package alternativa.tanks.game.subsystems.rendersystem } } - public function method_42() : Context3D + public function getContext3D() : Context3D { return this.stage3d.context3D; } override public function start() : void { - var input:IInput = IInput(var_4.getTaskInterface(IInput)); - input.name_94(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.F7); - input.name_94(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.F8); - input.name_94(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.TAB); + var input:IInput = IInput(§_-Uw§.getTaskInterface(IInput)); + input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.F7); + input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.F8); + input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.TAB); } override public function stop() : void { var overlay:Sprite = null; - for each(var _loc4_ in this.var_8) + for each(var _loc4_ in this.§_-qH§) { overlay = _loc4_; _loc4_; @@ -643,7 +643,7 @@ package alternativa.tanks.game.subsystems.rendersystem { return; } - for each(var _loc7_ in this.var_8) + for each(var _loc7_ in this.§_-qH§) { overlay = _loc7_; _loc7_; @@ -654,14 +654,14 @@ package alternativa.tanks.game.subsystems.rendersystem renderer = this.renderers.renderers[i]; renderer.render(); } - if(this.var_13 != null && this.var_14) + if(this.§_-lk§ != null && this.§_-EX§) { - this.var_13.update(); + this.§_-lk§.update(); } - this.camera.name_112(); - for(i = 0; i < this.var_11.numRenderers; i++) + this.camera.calculateAxis(); + for(i = 0; i < this.§_-WV§.numRenderers; i++) { - renderer = this.var_11.renderers[i]; + renderer = this.§_-WV§.renderers[i]; renderer.render(); } for(i = 0; i < this.numEffects; ) @@ -681,21 +681,21 @@ package alternativa.tanks.game.subsystems.rendersystem this.axisIndicator.update(this.camera); } this.camera.startTimer(); - this.var_9.update(this.rootContainer); + this.§_-aD§.update(this.rootContainer); this.camera.render(this.stage3d); this.camera.stopTimer(); } - public function method_71(mainDirectionalLight:DirectionalLight) : void + public function initStaticShadow(mainDirectionalLight:DirectionalLight) : void { var staticShadowInitializer:StaticShadowInitializer = new StaticShadowInitializer(this.staticShadowRenderer,this.mapGeometryContainer,mainDirectionalLight); if(this.isContext3DAvailable()) { - staticShadowInitializer.execute(this.method_42()); + staticShadowInitializer.execute(this.getContext3D()); } else { - this.var_10.push(staticShadowInitializer); + this.§_-pR§.push(staticShadowInitializer); } } @@ -704,11 +704,11 @@ package alternativa.tanks.game.subsystems.rendersystem return this.stage3d != null && this.stage3d.context3D != null; } - private function createContainer(id:String) : name_78 + private function createContainer(id:String) : Object3D { - var container:name_78 = new name_78(); + var container:Object3D = new Object3D(); container.name = id; - this.var_12[id] = container; + this.§_-jy§[id] = container; this.rootContainer.addChild(container); return container; } @@ -722,15 +722,15 @@ package alternativa.tanks.game.subsystems.rendersystem { var deferredAction:IDeferredAction = null; context3D.enableErrorChecking = false; - this.resourceManager.name_105(context3D); + this.resourceManager.setContext(context3D); this.staticShadowRenderer.context = context3D; - for each(var _loc5_ in this.var_10) + for each(var _loc5_ in this.§_-pR§) { deferredAction = _loc5_; _loc5_; deferredAction.execute(this.stage3d); } - this.var_10 = null; + this.§_-pR§ = null; } private function onToggleDebugKey(eventType:KeyboardEventType, keyCode:uint) : void @@ -743,9 +743,9 @@ package alternativa.tanks.game.subsystems.rendersystem } } - private function addObject3DMarkers(objects:Vector.) : Vector. + private function addObject3DMarkers(objects:Vector.) : Vector. { - var object:name_78 = null; + var object:Object3D = null; var textMarker:TextMarker = null; if(objects == null) { @@ -755,9 +755,9 @@ package alternativa.tanks.game.subsystems.rendersystem for(var i:int = 0; i < objects.length; i++) { object = objects[i]; - textMarker = TextMarker(this.objectPoolManager.name_110(TextMarker)); - textMarker.init(this.method_41("markers"),object.name || "[none]",object); - this.method_37(textMarker); + textMarker = TextMarker(this.objectPoolManager.getObject(TextMarker)); + textMarker.init(this.getOverlay("markers"),object.name || "[none]",object); + this.each(textMarker); markers[i] = textMarker; } return markers; @@ -769,7 +769,7 @@ package alternativa.tanks.game.subsystems.rendersystem private function updateDebugMode() : void { - this.camera.debug = this.var_17.flags != 0; + this.camera.debug = this.§_-i6§.flags != 0; } private function toggleLightDebug() : void @@ -780,7 +780,7 @@ package alternativa.tanks.game.subsystems.rendersystem { } - public function method_66() : void + public function hideView() : void { if(this.stage3d != null) { @@ -789,7 +789,7 @@ package alternativa.tanks.game.subsystems.rendersystem } } - public function method_52() : void + public function showView() : void { } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/RenderUtils.as b/src/alternativa/tanks/game/subsystems/rendersystem/RenderUtils.as index 6d0ba13..00386a6 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/RenderUtils.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/RenderUtils.as @@ -9,7 +9,7 @@ package alternativa.tanks.game.subsystems.rendersystem super(); } - public static function name_109(textureParams:String, textureWidth:int) : BitmapData + public static function getFogBitmap(textureParams:String, textureWidth:int) : BitmapData { var i:int = 0; var angle:Number = NaN; @@ -60,7 +60,7 @@ package alternativa.tanks.game.subsystems.rendersystem var leftColor:uint = 0; var rightColor:uint = 0; var weight:Number = NaN; - var i:int = 0; + var _loc18_:int = 0; if(currAngle <= angles[0] || currAngle >= angles[angles.length - 1]) { leftAngle = angles[angles.length - 1]; @@ -79,13 +79,13 @@ package alternativa.tanks.game.subsystems.rendersystem else { leftAngle = angles[0]; - for(i = 1; i < angles.length; i++) + for(_loc18_ = 1; _loc18_ < angles.length; _loc18_++) { - rightAngle = angles[i]; + rightAngle = angles[_loc18_]; if(currAngle >= leftAngle && currAngle <= rightAngle) { - leftColor = colors[i - 1]; - rightColor = colors[i]; + leftColor = colors[_loc18_ - 1]; + rightColor = colors[_loc18_]; weight = (currAngle - leftAngle) / (rightAngle - leftAngle); break; } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as b/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as index 4ef8489..cfe584f 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as @@ -1,24 +1,24 @@ package alternativa.tanks.game.subsystems.rendersystem { + import alternativa.engine3d.core.Resource; import flash.display3D.Context3D; import flash.utils.Dictionary; - import package_21.name_77; public class ResourceManager implements IResourceManager { private var context:Context3D; - private var var_106:Dictionary; + private var §_-hg§:Dictionary; - private var var_105:Vector.; + private var §_-Wf§:Vector.; public function ResourceManager() { super(); - this.var_106 = new Dictionary(); + this.§_-hg§ = new Dictionary(); } - public function method_29(resource:name_77) : void + public function useResource(resource:Resource) : void { if(this.context == null) { @@ -31,22 +31,22 @@ package alternativa.tanks.game.subsystems.rendersystem { resource.upload(this.context); } - var refCount:int = int(this.var_106[resource]); - this.var_106[resource] = refCount + 1; + var refCount:int = int(this.§_-hg§[resource]); + this.§_-hg§[resource] = refCount + 1; } - public function method_32(resources:Vector.) : void + public function useResources(resources:Vector.) : void { - var resource:name_77 = null; + var resource:Resource = null; for each(resource in resources) { - this.method_29(resource); + this.useResource(resource); } } - public function method_28(resource:name_77) : void + public function releaseResource(resource:Resource) : void { - var refCount:int = int(this.var_106[resource]); + var refCount:int = int(this.§_-hg§[resource]); if(refCount > 0) { if(refCount == 1) @@ -55,21 +55,21 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.var_106[resource] = refCount - 1; + this.§_-hg§[resource] = refCount - 1; } } } - public function method_31(resources:Vector.) : void + public function releaseResources(resources:Vector.) : void { - var resource:name_77 = null; + var resource:Resource = null; for each(resource in resources) { - this.method_28(resource); + this.releaseResource(resource); } } - public function method_30(resource:name_77) : void + public function uploadResource(resource:Resource) : void { if(this.context == null) { @@ -81,17 +81,17 @@ package alternativa.tanks.game.subsystems.rendersystem } } - public function name_105(context:Context3D) : void + public function setContext(context:Context3D) : void { - var resource:name_77 = null; + var resource:Resource = null; this.context = context; - if(this.var_105 != null) + if(this.§_-Wf§ != null) { - for each(resource in this.var_105) + for each(resource in this.§_-Wf§) { resource.upload(context); } - this.var_105 = null; + this.§_-Wf§ = null; } } @@ -100,16 +100,16 @@ package alternativa.tanks.game.subsystems.rendersystem var resource:* = undefined; if(this.context != null) { - for(resource in this.var_106) + for(resource in this.§_-hg§) { - name_77(resource).dispose(); + Resource(resource).dispose(); } } - this.var_105 = null; - this.var_106 = new Dictionary(); + this.§_-Wf§ = null; + this.§_-hg§ = new Dictionary(); } - private function doRelease(resource:name_77) : void + private function doRelease(resource:Resource) : void { var index:int = 0; var num:int = 0; @@ -118,41 +118,41 @@ package alternativa.tanks.game.subsystems.rendersystem index = this.getQueuedIndex(resource); if(index >= 0) { - num = int(this.var_105.length); + num = int(this.§_-Wf§.length); if(num == 1) { - this.var_105 = null; + this.§_-Wf§ = null; } else { - this.var_105[index] = this.var_105[--num]; - this.var_105.length = num; + this.§_-Wf§[index] = this.§_-Wf§[--num]; + this.§_-Wf§.length = num; } } } else { resource.dispose(); - delete this.var_106[resource]; + delete this.§_-hg§[resource]; } } - private function getQueuedIndex(resource:name_77) : int + private function getQueuedIndex(resource:Resource) : int { - if(this.var_105 == null) + if(this.§_-Wf§ == null) { return -1; } - return this.var_105.indexOf(resource); + return this.§_-Wf§.indexOf(resource); } - private function queue(resource:name_77) : void + private function queue(resource:Resource) : void { - if(this.var_105 == null) + if(this.§_-Wf§ == null) { - this.var_105 = new Vector.(); + this.§_-Wf§ = new Vector.(); } - this.var_105.push(resource); + this.§_-Wf§.push(resource); } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as b/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as index 96f2054..4c7833e 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as @@ -1,6 +1,23 @@ package alternativa.tanks.game.subsystems.rendersystem { import alternativa.engine3d.alternativa3d; + import alternativa.engine3d.core.Camera3D; + import alternativa.engine3d.core.DrawUnit; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.core.RenderPriority; + import alternativa.engine3d.core.Transform3D; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.materials.A3DUtils; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.materials.ShaderProgram; + import alternativa.engine3d.materials.compiler.Linker; + import alternativa.engine3d.materials.compiler.Procedure; + import alternativa.engine3d.materials.compiler.VariableType; + import alternativa.engine3d.objects.Surface; + import alternativa.engine3d.resources.BitmapTextureResource; + import alternativa.engine3d.resources.Geometry; + import alternativa.engine3d.resources.TextureResource; import flash.display.BitmapData; import flash.display3D.Context3DBlendFactor; import flash.display3D.Context3DProgramType; @@ -8,29 +25,12 @@ package alternativa.tanks.game.subsystems.rendersystem import flash.utils.Dictionary; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.class_4; - import package_4.name_127; - import package_4.name_28; use namespace alternativa3d; - public class SkyMaterial extends class_4 + public class SkyMaterial extends Material { - private static var fogTexture:name_129; + private static var fogTexture:TextureResource; public static const DISABLED:int = 0; @@ -52,33 +52,33 @@ package alternativa.tanks.game.subsystems.rendersystem public static var fogColorB:Number = 200 / 255; - alternativa3d static const _samplerSetProcedure:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,clamp, miplinear>","mov t0.w, c0.w","mov o0, t0"]); + alternativa3d static const _samplerSetProcedure:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,clamp, miplinear>","mov t0.w, c0.w","mov o0, t0"]); - alternativa3d static const _samplerSetProcedureOpacity:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,clamp, miplinear>","tex t1, v0, s1 <2d, linear,clamp, miplinear>","mov t0.w, t1.x","mul t0.w, t0.w, c0.w","mov o0, t0"]); + alternativa3d static const _samplerSetProcedureOpacity:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,clamp, miplinear>","tex t1, v0, s1 <2d, linear,clamp, miplinear>","mov t0.w, t1.x","mul t0.w, t0.w, c0.w","mov o0, t0"]); - alternativa3d static const _samplerSetProcedureDiffuseAlpha:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,clamp, miplinear>","mul t0.w, t0.w, c0.w","mov o0, t0"]); + alternativa3d static const _samplerSetProcedureDiffuseAlpha:Procedure = new Procedure(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,clamp, miplinear>","mul t0.w, t0.w, c0.w","mov o0, t0"]); - alternativa3d static const _passUVProcedure:name_114 = new name_114(["#v0=vUV","#a0=aUV","mov v0, a0"]); + alternativa3d static const _passUVProcedure:Procedure = new Procedure(["#v0=vUV","#a0=aUV","mov v0, a0"]); - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); + private static const passSimpleFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); + private static const outputWithSimpleFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); + private static const postPassAdvancedFogConstProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); + private static const outputWithAdvancedFogProcedure:Procedure = new Procedure(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); private static var _programs:Dictionary = new Dictionary(); - public var diffuseMap:name_129; + public var diffuseMap:TextureResource; - public var opacityMap:name_129; + public var opacityMap:TextureResource; public var alpha:Number = 1; - public var var_21:Boolean = false; + public var §_-L4§:Boolean = false; - public function SkyMaterial(diffuseMap:name_129 = null, opacityMap:name_129 = null, alpha:Number = 1) + public function SkyMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1) { super(); this.diffuseMap = diffuseMap; @@ -86,7 +86,7 @@ package alternativa.tanks.game.subsystems.rendersystem this.alpha = alpha; } - public static function method_33(texture:name_129) : void + public static function setFogTexture(texture:TextureResource) : void { fogTexture = texture; } @@ -94,30 +94,30 @@ package alternativa.tanks.game.subsystems.rendersystem override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.diffuseMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) + if(this.diffuseMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) { resources[this.diffuseMap] = true; } - if(this.opacityMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) + if(this.opacityMap != null && Boolean(A3DUtils.alternativa3d::checkParent(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) { resources[this.opacityMap] = true; } } - private function setupProgram(targetObject:name_78, key:int, fogMode:int) : name_127 + private function final(targetObject:Object3D, key:int, fogMode:int) : ShaderProgram { - var outputProcedure:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); + var outputProcedure:Procedure = null; + var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); + vertexLinker.declareVariable(positionVar,VariableType.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::method_74(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::appendPositionTransformProcedure(targetObject.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(alternativa3d::_passUVProcedure); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); + vertexLinker.addProcedure(alternativa3d::_projectProcedure); + vertexLinker.setInputParams(alternativa3d::_projectProcedure,positionVar); + vertexLinker.addProcedure(alternativa3d::_passUVProcedure); + var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); if(key == 0) { outputProcedure = alternativa3d::_samplerSetProcedure; @@ -130,40 +130,40 @@ package alternativa.tanks.game.subsystems.rendersystem { outputProcedure = alternativa3d::_samplerSetProcedureDiffuseAlpha; } - fragmentLinker.name_123(outputProcedure); + fragmentLinker.addProcedure(outputProcedure); if(fogMode == SIMPLE) { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_120("outColor"); - fragmentLinker.name_125(outputProcedure,"outColor"); - fragmentLinker.name_123(outputWithSimpleFogProcedure); - fragmentLinker.name_118(outputWithSimpleFogProcedure,"outColor"); + vertexLinker.addProcedure(passSimpleFogConstProcedure); + vertexLinker.setInputParams(passSimpleFogConstProcedure,positionVar); + fragmentLinker.declareVariable("outColor"); + fragmentLinker.setOutputParams(outputProcedure,"outColor"); + fragmentLinker.addProcedure(outputWithSimpleFogProcedure); + fragmentLinker.setInputParams(outputWithSimpleFogProcedure,"outColor"); } else if(fogMode == ADVANCED) { - vertexLinker.name_120("tProjected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); - fragmentLinker.name_120("outColor"); - fragmentLinker.name_125(outputProcedure,"outColor"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); - fragmentLinker.name_118(outputWithAdvancedFogProcedure,"outColor"); + vertexLinker.declareVariable("tProjected"); + vertexLinker.setOutputParams(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.addProcedure(postPassAdvancedFogConstProcedure); + vertexLinker.setInputParams(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); + fragmentLinker.declareVariable("outColor"); + fragmentLinker.setOutputParams(outputProcedure,"outColor"); + fragmentLinker.addProcedure(outputWithAdvancedFogProcedure); + fragmentLinker.setInputParams(outputWithAdvancedFogProcedure,"outColor"); } - vertexLinker.name_142(); - fragmentLinker.name_133(vertexLinker); - fragmentLinker.name_142(); - return new name_127(vertexLinker,fragmentLinker); + vertexLinker.link(); + fragmentLinker.setOppositeLinker(vertexLinker); + fragmentLinker.link(); + return new ShaderProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { - var program:name_127 = null; + var program:ShaderProgram = null; var key:int = 0; - var gM:name_139 = null; + var gM:Transform3D = null; var dist:Number = NaN; - var cLocal:name_139 = null; + var cLocal:Transform3D = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -181,13 +181,13 @@ package alternativa.tanks.game.subsystems.rendersystem { return; } - if(!this.var_21 && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) + if(!this.§_-L4§ && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) { return; } - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); + var object:Object3D = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(VertexAttributes.TEXCOORDS[0]); if(positionBuffer == null || uvBuffer == null) { return; @@ -198,15 +198,15 @@ package alternativa.tanks.game.subsystems.rendersystem optionsPrograms = []; _programs[object.alternativa3d::transformProcedure] = optionsPrograms; } - if(!this.var_21 && !this.opacityMap) + if(!this.§_-L4§ && !this.opacityMap) { key = 0; } - else if(!this.var_21 && Boolean(this.opacityMap)) + else if(!this.§_-L4§ && Boolean(this.opacityMap)) { key = 1; } - else if(this.var_21) + else if(this.§_-L4§) { key = 2; } @@ -214,33 +214,33 @@ package alternativa.tanks.game.subsystems.rendersystem program = optionsPrograms[key]; if(program == null) { - program = this.setupProgram(object,key,fogMode); + program = this.final(object,key,fogMode); program.upload(camera.alternativa3d::context3D); optionsPrograms[key] = program; } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cAlpha"),0,0,0,this.alpha); + drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAlpha"),0,0,0,this.alpha); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.diffuseMap.alternativa3d::_texture); - if(Boolean(this.opacityMap) && !this.var_21) + if(Boolean(this.opacityMap) && !this.§_-L4§) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),this.opacityMap.alternativa3d::_texture); } if(fogMode == SIMPLE || fogMode == ADVANCED) { - gM = new name_139(); + gM = new Transform3D(); gM.copy(object.alternativa3d::localToCameraTransform); gM.append(camera.alternativa3d::localToGlobalTransform); dist = fogHeight; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cFogSpace"),-gM.i / dist,-gM.j / dist,-gM.k / dist,(camera.alternativa3d::localToGlobalTransform.l + gM.l + fogOffset + fogHeight) / dist); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); + drawUnit.alternativa3d::setVertexConstantsFromNumbers(program.vertexShader.getVariableIndex("cFogSpace"),-gM.i / dist,-gM.j / dist,-gM.k / dist,(camera.alternativa3d::localToGlobalTransform.l + gM.l + fogOffset + fogHeight) / dist); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogRange"),fogMaxDensity,1,0,1 - fogMaxDensity); } if(fogMode == SIMPLE) { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogColor"),fogColorR,fogColorG,fogColorB); } if(fogMode == ADVANCED) { @@ -251,7 +251,7 @@ package alternativa.tanks.game.subsystems.rendersystem { bmd.setPixel(i,0,i / 32 * 255 << 16); } - fogTexture = new name_93(bmd); + fogTexture = new BitmapTextureResource(bmd); fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -274,18 +274,18 @@ package alternativa.tanks.game.subsystems.rendersystem rightY /= len; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),fogTexture.alternativa3d::_texture); } - if(this.var_21 || this.opacityMap != null || this.alpha < 1) + if(this.§_-L4§ || this.opacityMap != null || this.alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.TRANSPARENT_SORT); } else { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); + camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as index d6056fe..ba28533 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as @@ -1,53 +1,53 @@ package alternativa.tanks.game.subsystems.rendersystem { - import package_21.name_78; - import package_24.SpotLight; + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.lights.SpotLight; public class SpotLightList { - private var container:name_78; + private var container:Object3D; - private var var_16:Vector.; + private var §_-9k§:Vector.; - public function SpotLightList(container:name_78) + public function SpotLightList(container:Object3D) { super(); this.container = container; - this.var_16 = new Vector.(); + this.§_-9k§ = new Vector.(); } public function add(light:SpotLight) : void { - if(this.var_16.indexOf(light) < 0) + if(this.§_-9k§.indexOf(light) < 0) { - this.var_16.push(light); + this.§_-9k§.push(light); this.container.addChild(light); } } public function remove(light:SpotLight) : void { - var index:int = int(this.var_16.indexOf(light)); + var index:int = int(this.§_-9k§.indexOf(light)); if(index >= 0) { - this.var_16[index] = this.var_16[this.var_16.length - 1]; - this.var_16.length -= 1; + this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; + this.§_-9k§.length -= 1; } } public function get size() : int { - return this.var_16.length; + return this.§_-9k§.length; } public function get lights() : Vector. { - return Vector.(this.var_16); + return Vector.(this.§_-9k§); } - public function method_645(i:int) : SpotLight + public function getLightAt(i:int) : SpotLight { - return this.var_16[i]; + return this.§_-9k§[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/StaticShadowInitializer.as b/src/alternativa/tanks/game/subsystems/rendersystem/StaticShadowInitializer.as index 42468a0..5753f61 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/StaticShadowInitializer.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/StaticShadowInitializer.as @@ -1,19 +1,19 @@ package alternativa.tanks.game.subsystems.rendersystem { + import alternativa.engine3d.core.Object3D; + import alternativa.engine3d.lights.DirectionalLight; + import alternativa.engine3d.shadows.StaticShadowRenderer; import flash.display3D.Context3D; - import package_21.name_78; - import package_23.name_97; - import package_24.DirectionalLight; public class StaticShadowInitializer { - private var staticShadowRenderer:name_97; + private var staticShadowRenderer:StaticShadowRenderer; - private var container:name_78; + private var container:Object3D; private var light:DirectionalLight; - public function StaticShadowInitializer(staticShadowRenderer:name_97, container:name_78, light:DirectionalLight) + public function StaticShadowInitializer(staticShadowRenderer:StaticShadowRenderer, container:Object3D, light:DirectionalLight) { super(); this.staticShadowRenderer = staticShadowRenderer; @@ -24,7 +24,7 @@ package alternativa.tanks.game.subsystems.rendersystem public function execute(context3D:Context3D) : void { context3D.configureBackBuffer(50,50,0); - this.staticShadowRenderer.name_401(this.container,this.light,5,3,1000); + this.staticShadowRenderer.calculateShadows(this.container,this.light,5,3,1000); this.light.shadow = this.staticShadowRenderer; } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as b/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as index 8cc6e79..d84d203 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as @@ -1,13 +1,13 @@ package alternativa.tanks.game.subsystems.rendersystem { + import alternativa.engine3d.core.Object3D; + import alternativa.tanks.game.utils.objectpool.ObjectPool; + import alternativa.tanks.game.utils.objectpool.PooledObject; import flash.display.DisplayObjectContainer; import flash.geom.Vector3D; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; - import package_21.name_78; - import alternativa.tanks.game.utils.objectpool.PooledObject; - import alternativa.tanks.game.utils.objectpool.ObjectPool; public class TextMarker extends PooledObject implements IGraphicEffect { @@ -19,9 +19,9 @@ package alternativa.tanks.game.subsystems.rendersystem private var tf:TextField; - private var var_146:Boolean; + private var §_-Ee§:Boolean; - private var anchor:name_78; + private var anchor:Object3D; public function TextMarker(objectPool:ObjectPool) { @@ -31,18 +31,18 @@ package alternativa.tanks.game.subsystems.rendersystem this.tf.autoSize = TextFieldAutoSize.LEFT; } - public function init(overlay:DisplayObjectContainer, text:String, anchor:name_78) : void + public function init(overlay:DisplayObjectContainer, text:String, anchor:Object3D) : void { overlay.addChild(this.tf); this.tf.visible = false; this.anchor = anchor; this.tf.text = text; - this.var_146 = true; + this.§_-Ee§ = true; } - public function method_255() : void + public function kill() : void { - this.var_146 = false; + this.§_-Ee§ = false; } public function play(camera:GameCamera) : Boolean @@ -60,7 +60,7 @@ package alternativa.tanks.game.subsystems.rendersystem { this.tf.visible = false; } - return this.var_146; + return this.§_-Ee§; } public function addedToRenderSystem(system:RenderSystem) : void @@ -75,7 +75,7 @@ package alternativa.tanks.game.subsystems.rendersystem } this.anchor = null; this.tf.text = ""; - method_254(); + storeInPool(); } } } diff --git a/src/package_45/name_182.as b/src/alternativa/tanks/game/subsystems/timesystem/TimeSystem.as similarity index 80% rename from src/package_45/name_182.as rename to src/alternativa/tanks/game/subsystems/timesystem/TimeSystem.as index 263b745..496f2fa 100644 --- a/src/package_45/name_182.as +++ b/src/alternativa/tanks/game/subsystems/timesystem/TimeSystem.as @@ -1,9 +1,9 @@ -package package_45 +package alternativa.tanks.game.subsystems.timesystem { - import flash.utils.getTimer; import alternativa.tanks.game.GameTask; + import flash.utils.getTimer; - public class name_182 extends GameTask + public class TimeSystem extends GameTask { public static var time:int; @@ -13,7 +13,7 @@ package package_45 public static var timeDeltaSeconds:Number; - public function name_182(priority:int) + public function TimeSystem(priority:int) { super(priority); } diff --git a/src/alternativa/tanks/game/types/TeamType.as b/src/alternativa/tanks/game/types/TeamType.as new file mode 100644 index 0000000..2ffa70f --- /dev/null +++ b/src/alternativa/tanks/game/types/TeamType.as @@ -0,0 +1,25 @@ +package alternativa.tanks.game.types +{ + public class TeamType + { + public static const NONE:TeamType = new TeamType("NONE"); + + public static const RED:TeamType = new TeamType("RED"); + + public static const BLUE:TeamType = new TeamType("BLUE"); + + private var value:String; + + public function TeamType(value:String) + { + super(); + this.value = value; + } + + public function toString() : String + { + return this.value; + } + } +} + diff --git a/src/alternativa/tanks/game/usertitle/name_724.as b/src/alternativa/tanks/game/usertitle/?_-4R?.as similarity index 68% rename from src/alternativa/tanks/game/usertitle/name_724.as rename to src/alternativa/tanks/game/usertitle/?_-4R?.as index 534d58c..7b7ff98 100644 --- a/src/alternativa/tanks/game/usertitle/name_724.as +++ b/src/alternativa/tanks/game/usertitle/?_-4R?.as @@ -3,7 +3,7 @@ package alternativa.tanks.game.usertitle import flash.display.Bitmap; import flash.display.BitmapData; - public class name_724 + public class §_-4R§ { private static var hpGreenEmptyCls:Class = ProgressBarSkin_hpGreenEmptyCls; @@ -43,40 +43,40 @@ package alternativa.tanks.game.usertitle private static const COLOR_TEAM_RED:uint = 15741974; - public static const HEALTHBAR_DM:name_724 = new name_724(COLOR_DM,hpGreenEmpty,hpGreenFull,4); + public static const HEALTHBAR_DM:§_-4R§ = new §_-4R§(COLOR_DM,hpGreenEmpty,hpGreenFull,4); - public static const HEALTHBAR_BLUE:name_724 = new name_724(COLOR_TEAM_BLUE,hpBlueEmpty,hpBlueFull,4); + public static const HEALTHBAR_BLUE:§_-4R§ = new §_-4R§(COLOR_TEAM_BLUE,hpBlueEmpty,hpBlueFull,4); - public static const HEALTHBAR_RED:name_724 = new name_724(COLOR_TEAM_RED,hpRedEmpty,hpRedFull,4); + public static const HEALTHBAR_RED:§_-4R§ = new §_-4R§(COLOR_TEAM_RED,hpRedEmpty,hpRedFull,4); - public static const WEAPONBAR:name_724 = new name_724(0,weaponEmpty,weaponFull,4); + public static const WEAPONBAR:§_-4R§ = new §_-4R§(0,weaponEmpty,weaponFull,4); - public var var_704:BitmapData; + public var §_-XU§:BitmapData; - public var var_703:BitmapData; + public var §_-9Y§:BitmapData; - public var var_701:BitmapData; + public var §_-GY§:BitmapData; - public var var_705:BitmapData; + public var §_-j2§:BitmapData; - public var var_700:BitmapData; + public var §_-py§:BitmapData; - public var var_702:BitmapData; + public var §_-oU§:BitmapData; public var color:uint; - public function name_724(color:uint, emptyBitmap:BitmapData, fullBitmap:BitmapData, tipWidth:int) + public function §_-4R§(color:uint, emptyBitmap:BitmapData, fullBitmap:BitmapData, tipWidth:int) { super(); this.color = color; - var parts:name_763 = new name_763(emptyBitmap,tipWidth); - this.var_704 = parts.left; - this.var_701 = parts.right; - this.var_700 = parts.center; - parts = new name_763(fullBitmap,tipWidth); - this.var_703 = parts.left; - this.var_705 = parts.right; - this.var_702 = parts.center; + var parts:§_-ml§ = new §_-ml§(emptyBitmap,tipWidth); + this.§_-XU§ = parts.left; + this.§_-GY§ = parts.right; + this.§_-py§ = parts.center; + parts = new §_-ml§(fullBitmap,tipWidth); + this.§_-9Y§ = parts.left; + this.§_-j2§ = parts.right; + this.§_-oU§ = parts.center; } } } diff --git a/src/alternativa/tanks/game/usertitle/?_-C6?.as b/src/alternativa/tanks/game/usertitle/?_-C6?.as new file mode 100644 index 0000000..bbb4764 --- /dev/null +++ b/src/alternativa/tanks/game/usertitle/?_-C6?.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.usertitle +{ + import §_-az§.§_-gw§; + import alternativa.tanks.game.usertitle.component.§_-YR§; + + public interface §_-C6§ + { + function §_-hh§(param1:§_-gw§, param2:§_-YR§) : void; + } +} + diff --git a/src/alternativa/tanks/game/usertitle/name_722.as b/src/alternativa/tanks/game/usertitle/?_-Ip?.as similarity index 71% rename from src/alternativa/tanks/game/usertitle/name_722.as rename to src/alternativa/tanks/game/usertitle/?_-Ip?.as index 57a094b..06de121 100644 --- a/src/alternativa/tanks/game/usertitle/name_722.as +++ b/src/alternativa/tanks/game/usertitle/?_-Ip?.as @@ -7,9 +7,9 @@ package alternativa.tanks.game.usertitle import flash.geom.Rectangle; import flash.utils.Dictionary; import flash.utils.getTimer; - import package_72.name_764; + import §function§.§_-Lf§; - public class name_722 + public class §_-Ip§ { public static const TYPE_HEALTH:int = 1; @@ -48,7 +48,7 @@ package alternativa.tanks.game.usertitle private static var iconRect:Rectangle = BitmapData(icons[TYPE_HEALTH]).rect; - private var var_713:int; + private var §_-oz§:int; private var icon:BitmapData; @@ -56,46 +56,46 @@ package alternativa.tanks.game.usertitle private var colorTransform:ColorTransform = new ColorTransform(); - private var var_712:int; + private var §_-im§:int; - private var var_709:name_764; + private var §_-Jj§:§_-Lf§; private var alpha:Number = 1; - private var var_710:Boolean; + private var §_-aw§:Boolean; private var x:int; private var y:int; - private var userTitle:name_607; + private var userTitle:§class§; private var state:int; - private var var_711:Boolean; + private var §_-VQ§:Boolean; - public function name_722(effectId:int, blinkingTime:int, userTitle:name_607, initialBlinkInterval:int, blinkIntervalDecrement:int) + public function §_-Ip§(effectId:int, blinkingTime:int, userTitle:§class§, initialBlinkInterval:int, blinkIntervalDecrement:int) { super(); - this.var_713 = effectId; + this.§_-oz§ = effectId; this.icon = icons[effectId]; this.blinkingTime = blinkingTime; this.userTitle = userTitle; - this.var_709 = new name_764(initialBlinkInterval,20,blinkIntervalDecrement,MIN_ALPHA,1,10); + this.§_-Jj§ = new §_-Lf§(initialBlinkInterval,20,blinkIntervalDecrement,MIN_ALPHA,1,10); this.state = STATE_HIDDEN; } public function get effectId() : int { - return this.var_713; + return this.§_-oz§; } - public function method_141() : Boolean + public function §_-bG§() : Boolean { return (this.state & STATE_VISIBLE) != 0; } - public function name_726() : Boolean + public function §_-gZ§() : Boolean { return this.state == STATE_HIDDEN; } @@ -105,10 +105,10 @@ package alternativa.tanks.game.usertitle this.state &= ~STATE_HIDING; if(this.state != STATE_VISIBLE || this.alpha != 1) { - this.var_710 = true; + this.§_-aw§ = true; } - this.var_712 = getTimer() + duration - this.blinkingTime; - this.var_711 = false; + this.§_-im§ = getTimer() + duration - this.blinkingTime; + this.§_-VQ§ = false; this.alpha = 1; if(this.state == STATE_HIDDEN) { @@ -120,7 +120,7 @@ package alternativa.tanks.game.usertitle { if(this.state == STATE_PREPARED) { - this.userTitle.method_794(this); + this.userTitle.§_-nC§(this); this.state = STATE_HIDDEN; return; } @@ -129,12 +129,12 @@ package alternativa.tanks.game.usertitle return; } this.state |= STATE_HIDING; - this.var_709.name_765(0); - if(!this.var_711) + this.§_-Jj§.§_-iO§(0); + if(!this.§_-VQ§) { - this.var_712 = 0; - this.var_709.init(getTimer()); - this.var_711 = true; + this.§_-im§ = 0; + this.§_-Jj§.init(getTimer()); + this.§_-VQ§ = true; } } @@ -149,16 +149,16 @@ package alternativa.tanks.game.usertitle texture.fillRect(iconRect,0); } - public function name_201(x:int, y:int) : void + public function §_-Vi§(x:int, y:int) : void { this.x = x; this.y = y; - this.var_710 = true; + this.§_-aw§ = true; } - public function name_728() : void + public function §_-mo§() : void { - this.var_710 = true; + this.§_-aw§ = true; } public function update(now:int, delta:int, texture:BitmapData) : Boolean @@ -168,15 +168,15 @@ package alternativa.tanks.game.usertitle { return false; } - if(this.var_710) + if(this.§_-aw§) { this.draw(texture); - this.var_710 = false; + this.§_-aw§ = false; updated = true; } - if(now > this.var_712) + if(now > this.§_-im§) { - this.method_884(now,delta,texture); + this.§_-2Z§(now,delta,texture); updated = true; } if(this.state == STATE_PREPARED) @@ -186,12 +186,12 @@ package alternativa.tanks.game.usertitle return updated; } - private function method_884(now:int, delta:int, texture:BitmapData) : void + private function §_-2Z§(now:int, delta:int, texture:BitmapData) : void { var newAlpha:Number = NaN; - if(this.var_711) + if(this.§_-VQ§) { - newAlpha = this.var_709.name_766(now,delta); + newAlpha = Number(this.§_-Jj§.§_-5N§(now,delta)); if(newAlpha != this.alpha) { this.alpha = newAlpha; @@ -199,15 +199,15 @@ package alternativa.tanks.game.usertitle } if((this.state & STATE_HIDING) != 0 && this.alpha == 0) { - this.userTitle.method_794(this); + this.userTitle.§_-nC§(this); this.state = STATE_HIDDEN; } } else { - this.var_709.name_765(MIN_ALPHA); - this.var_709.init(now); - this.var_711 = true; + this.§_-Jj§.§_-iO§(MIN_ALPHA); + this.§_-Jj§.init(now); + this.§_-VQ§ = true; } } diff --git a/src/alternativa/tanks/game/usertitle/name_725.as b/src/alternativa/tanks/game/usertitle/?_-K9?.as similarity index 52% rename from src/alternativa/tanks/game/usertitle/name_725.as rename to src/alternativa/tanks/game/usertitle/?_-K9?.as index 1c929c4..bd5619b 100644 --- a/src/alternativa/tanks/game/usertitle/name_725.as +++ b/src/alternativa/tanks/game/usertitle/?_-K9?.as @@ -6,7 +6,7 @@ package alternativa.tanks.game.usertitle import flash.geom.Matrix; import flash.geom.Rectangle; - public class name_725 + public class §_-K9§ { private static var canvas:Shape = new Shape(); @@ -16,13 +16,13 @@ package alternativa.tanks.game.usertitle private var barWidth:int; - private var skin:name_724; + private var skin:§_-4R§; - private var var_706:int; + private var §_-oy§:int; - private var var_707:int; + private var §_-Da§:int; - private var var_708:int; + private var §_-H2§:int; private var x:int; @@ -30,27 +30,27 @@ package alternativa.tanks.game.usertitle private var rect:Rectangle; - public function name_725(x:int, y:int, maxValue:int, barWidth:int, skin:name_724) + public function §_-K9§(x:int, y:int, maxValue:int, barWidth:int, skin:§_-4R§) { super(); this.x = x; this.y = y; this.maxValue = maxValue; this.barWidth = barWidth; - this.name_727(skin); - this.rect = new Rectangle(x,y,barWidth,this.var_707); + this.§_-gM§(skin); + this.rect = new Rectangle(x,y,barWidth,this.§_-Da§); } - public function name_727(skin:name_724) : void + public function §_-gM§(skin:§_-4R§) : void { this.skin = skin; - this.var_706 = skin.var_704.width; - this.var_707 = skin.var_704.height; + this.§_-oy§ = skin.§_-XU§.width; + this.§_-Da§ = skin.§_-XU§.height; } public function get progress() : int { - return this.var_708; + return this.§_-H2§; } public function set progress(value:int) : void @@ -63,7 +63,7 @@ package alternativa.tanks.game.usertitle { value = this.maxValue; } - this.var_708 = value; + this.§_-H2§ = value; } public function draw(texture:BitmapData) : void @@ -72,44 +72,44 @@ package alternativa.tanks.game.usertitle var g:Graphics = canvas.graphics; g.clear(); matrix.ty = 0; - var displayWidth:int = this.barWidth * this.var_708 / this.maxValue; - var w:int = this.barWidth - this.var_706; - if(displayWidth >= this.var_706) + var displayWidth:int = this.barWidth * this.§_-H2§ / this.maxValue; + var w:int = this.barWidth - this.§_-oy§; + if(displayWidth >= this.§_-oy§) { if(displayWidth == this.barWidth) { - this.method_883(g,this.skin.var_703,this.skin.var_705,this.skin.var_702); + this.§_-6J§(g,this.skin.§_-9Y§,this.skin.§_-j2§,this.skin.§_-oU§); bgStart = displayWidth; } else { - g.beginBitmapFill(this.skin.var_703,null,false); - g.drawRect(0,0,this.var_706,this.var_707); - if(displayWidth > this.var_706) + g.beginBitmapFill(this.skin.§_-9Y§,null,false); + g.drawRect(0,0,this.§_-oy§,this.§_-Da§); + if(displayWidth > this.§_-oy§) { if(displayWidth > w) { displayWidth = w; } bgStart = displayWidth; - this.method_882(g,this.skin.var_702,this.var_706,displayWidth - this.var_706); + this.§_-SU§(g,this.skin.§_-oU§,this.§_-oy§,displayWidth - this.§_-oy§); } else { - bgStart = this.var_706; + bgStart = this.§_-oy§; } } } if(bgStart == 0) { - this.method_883(g,this.skin.var_704,this.skin.var_701,this.skin.var_700); + this.§_-6J§(g,this.skin.§_-XU§,this.skin.§_-GY§,this.skin.§_-py§); } else if(bgStart < this.barWidth) { - this.method_882(g,this.skin.var_700,bgStart,w - bgStart); + this.§_-SU§(g,this.skin.§_-py§,bgStart,w - bgStart); matrix.tx = w; - g.beginBitmapFill(this.skin.var_701,matrix,false); - g.drawRect(w,0,this.var_706,this.var_707); + g.beginBitmapFill(this.skin.§_-GY§,matrix,false); + g.drawRect(w,0,this.§_-oy§,this.§_-Da§); } g.endFill(); texture.fillRect(this.rect,0); @@ -118,24 +118,24 @@ package alternativa.tanks.game.usertitle texture.draw(canvas,matrix); } - private function method_883(g:Graphics, leftTip:BitmapData, rightTip:BitmapData, center:BitmapData) : void + private function §_-6J§(g:Graphics, leftTip:BitmapData, rightTip:BitmapData, center:BitmapData) : void { - var w:int = this.barWidth - this.var_706; + var w:int = this.barWidth - this.§_-oy§; g.beginBitmapFill(leftTip,null,false); - g.drawRect(0,0,this.var_706,this.var_707); - matrix.tx = this.var_706; + g.drawRect(0,0,this.§_-oy§,this.§_-Da§); + matrix.tx = this.§_-oy§; g.beginBitmapFill(center,matrix,true); - g.drawRect(this.var_706,0,w - this.var_706,this.var_707); + g.drawRect(this.§_-oy§,0,w - this.§_-oy§,this.§_-Da§); matrix.tx = w; g.beginBitmapFill(rightTip,matrix,false); - g.drawRect(w,0,this.var_706,this.var_707); + g.drawRect(w,0,this.§_-oy§,this.§_-Da§); } - private function method_882(g:Graphics, center:BitmapData, x:int, width:int) : void + private function §_-SU§(g:Graphics, center:BitmapData, x:int, width:int) : void { matrix.tx = x; g.beginBitmapFill(center,matrix,true); - g.drawRect(x,0,width,this.var_707); + g.drawRect(x,0,width,this.§_-Da§); } } } diff --git a/src/alternativa/tanks/game/usertitle/name_613.as b/src/alternativa/tanks/game/usertitle/?_-fe?.as similarity index 51% rename from src/alternativa/tanks/game/usertitle/name_613.as rename to src/alternativa/tanks/game/usertitle/?_-fe?.as index f279428..c196e59 100644 --- a/src/alternativa/tanks/game/usertitle/name_613.as +++ b/src/alternativa/tanks/game/usertitle/?_-fe?.as @@ -2,9 +2,9 @@ package alternativa.tanks.game.usertitle { import flash.display.BitmapData; - public interface name_613 + public interface §_-fe§ { - function method_776(param1:int) : BitmapData; + function §null §(param1:int) : BitmapData; } } diff --git a/src/alternativa/tanks/game/usertitle/name_763.as b/src/alternativa/tanks/game/usertitle/?_-ml?.as similarity index 87% rename from src/alternativa/tanks/game/usertitle/name_763.as rename to src/alternativa/tanks/game/usertitle/?_-ml?.as index c42ad0c..13f65f9 100644 --- a/src/alternativa/tanks/game/usertitle/name_763.as +++ b/src/alternativa/tanks/game/usertitle/?_-ml?.as @@ -4,7 +4,7 @@ package alternativa.tanks.game.usertitle import flash.geom.Point; import flash.geom.Rectangle; - public class name_763 + public class §_-ml§ { public var left:BitmapData; @@ -12,7 +12,7 @@ package alternativa.tanks.game.usertitle public var center:BitmapData; - public function name_763(bar:BitmapData, tipWidth:int) + public function §_-ml§(bar:BitmapData, tipWidth:int) { super(); var h:int = int(bar.height); diff --git a/src/alternativa/tanks/game/usertitle/name_607.as b/src/alternativa/tanks/game/usertitle/?class?.as similarity index 53% rename from src/alternativa/tanks/game/usertitle/name_607.as rename to src/alternativa/tanks/game/usertitle/?class?.as index 4935784..8f75869 100644 --- a/src/alternativa/tanks/game/usertitle/name_607.as +++ b/src/alternativa/tanks/game/usertitle/?class?.as @@ -1,23 +1,23 @@ package alternativa.tanks.game.usertitle { - import alternativa.tanks.game.usertitle.component.name_617; + import §_-1z§.§_-b1§; + import §_-7j§.§_-BN§; + import §_-8D§.§_-OX§; + import §_-Ex§.§_-hW§; + import §_-MU§.§_-5-§; + import §_-Uy§.§_-oP§; + import §_-Vh§.§_-pZ§; + import §_-e6§.§_-B-§; + import §_-nl§.§_-bj§; + import alternativa.tanks.game.usertitle.component.§_-3v§; import flash.display.BitmapData; import flash.filters.GlowFilter; import flash.geom.Matrix; import flash.geom.Point; import flash.geom.Rectangle; import flash.utils.Dictionary; - import package_126.name_723; - import alternativa.tanks.game.subsystems.rendersystem.IResourceManager; - import package_19.name_494; - import package_21.name_78; - import package_28.name_93; - import package_39.name_160; - import package_4.class_5; - import package_46.name_194; - import alternativa.osgi.OSGi; - public class name_607 + public class §class§ { public static const BIT_LABEL:int = 1; @@ -73,45 +73,45 @@ package alternativa.tanks.game.usertitle private static const filter:GlowFilter = new GlowFilter(0,0.8,4,4,3); - private static const indicatorTypes:Vector. = Vector.([name_722.TYPE_HEALTH,name_722.TYPE_ARMOR,name_722.TYPE_POWER,name_722.TYPE_NITRO]); + private static const indicatorTypes:Vector. = Vector.([§_-Ip§.TYPE_HEALTH,§_-Ip§.TYPE_ARMOR,§_-Ip§.TYPE_POWER,§_-Ip§.TYPE_NITRO]); private static var teamTypeSkin:Dictionary = new Dictionary(); - teamTypeSkin[name_723.NONE] = name_724.HEALTHBAR_DM; - teamTypeSkin[name_723.BLUE] = name_724.HEALTHBAR_BLUE; - teamTypeSkin[name_723.RED] = name_724.HEALTHBAR_RED; + teamTypeSkin[§_-BN§.NONE] = §_-4R§.HEALTHBAR_DM; + teamTypeSkin[§_-BN§.BLUE] = §_-4R§.HEALTHBAR_BLUE; + teamTypeSkin[§_-BN§.RED] = §_-4R§.HEALTHBAR_RED; private var flags:int; - private var sprite:name_494; + private var sprite:§_-hW§; - private var var_650:Rectangle; + private var §_-iy§:Rectangle; - private var material:class_5; + private var material:§_-pZ§; - private var textureResource:name_93; + private var textureResource:§_-b1§; private var texture:BitmapData; - private var label:name_617; + private var label:§_-3v§; private var labelText:String; - private var rankIcon:name_613; + private var rankIcon:§_-fe§; private var rankId:int; - private var var_652:name_725; + private var §_-f1§:§_-K9§; - private var var_654:name_725; + private var §_-ie§:§_-K9§; - private var var_649:Vector.; + private var §_-os§:Vector.<§_-Ip§>; - private var var_651:int; + private var §_-8o§:int; - private var var_655:int; + private var §_-oS§:int; - private var var_653:Boolean; + private var §_-P4§:Boolean; private var maxHealth:int; @@ -119,76 +119,76 @@ package alternativa.tanks.game.usertitle private var weaponStatus:Number; - private var teamType:name_723 = name_723.NONE; + private var teamType:§_-BN§ = §_-BN§.NONE; - private var resourceManager:IResourceManager; + private var resourceManager:§_-B-§; - public function name_607(maxHealth:int, rankIcon:name_613, label:name_617) + public function §class§(maxHealth:int, rankIcon:§_-fe§, label:§_-3v§) { super(); this.maxHealth = maxHealth; this.rankIcon = rankIcon; this.label = label; this.resourceManager = this.resourceManager; - this.textureResource = new name_93(null); - this.material = new class_5(this.textureResource); - this.material.var_21 = true; - this.sprite = new name_494(100,100,this.material); + this.textureResource = new §_-b1§(null); + this.material = new §_-pZ§(this.textureResource); + this.material.§_-L4§ = true; + this.sprite = new §_-hW§(100,100,this.material); this.sprite.material = this.material; this.sprite.perspectiveScale = false; this.setDeadState(); } - public function name_612(resourceManager:IResourceManager) : void + public function §_-58§(resourceManager:§_-B-§) : void { this.resourceManager = resourceManager; } - public function name_615() : void + public function §_-S5§() : void { this.sprite.alwaysOnTop = true; } - public function method_524(maxHealth:int) : void + public function §_-a7§(maxHealth:int) : void { this.maxHealth = maxHealth; } - public function method_798() : void + public function §_-Wx§() : void { - this.method_782(BIT_STATE_HIDDEN); + this.§_-I7§(BIT_STATE_HIDDEN); } - public function method_796() : void + public function §_-cI§() : void { - this.method_781(BIT_STATE_HIDDEN); + this.§_-F2§(BIT_STATE_HIDDEN); } public function setDeadState() : void { - this.method_782(BIT_STATE_DEAD); + this.§_-I7§(BIT_STATE_DEAD); } public function clearDeadState() : void { - this.method_781(BIT_STATE_DEAD); + this.§_-F2§(BIT_STATE_DEAD); } - public function method_141() : Boolean + public function §_-bG§() : Boolean { return (this.flags & HIDDEN_STATE_FLAGS) == 0; } - public function name_619(configFlags:int) : void + public function §_-ag§(configFlags:int) : void { - if(!this.method_778(configFlags)) + if(!this.§_-qq§(configFlags)) { - this.method_782(configFlags); - this.method_783(); + this.§_-I7§(configFlags); + this.§_-Z1§(); } } - public function method_795(teamType:name_723) : void + public function §_-NR§(teamType:§_-BN§) : void { var bit:int = 0; if(this.teamType != teamType) @@ -196,35 +196,35 @@ package alternativa.tanks.game.usertitle this.teamType = teamType; for each(bit in [BIT_LABEL,BIT_HEALTH,BIT_WEAPON]) { - if(this.method_778(bit)) + if(this.§_-qq§(bit)) { - this.method_779(bit); + this.§_-Xw§(bit); } } } } - public function method_526(rankId:int) : void + public function §_-Qx§(rankId:int) : void { if(this.rankId != rankId) { this.rankId = rankId; - if(this.method_778(BIT_LABEL)) + if(this.§_-qq§(BIT_LABEL)) { - this.method_779(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); + this.§_-Xw§(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); } } } - public function name_620(labelText:String) : void + public function §_-03§(labelText:String) : void { if(this.labelText != labelText) { this.labelText = labelText; - if(this.method_778(BIT_LABEL)) + if(this.§_-qq§(BIT_LABEL)) { - this.method_783(); - this.method_779(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); + this.§_-Z1§(); + this.§_-Xw§(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); } } } @@ -234,48 +234,48 @@ package alternativa.tanks.game.usertitle if(this.health != health) { this.health = health; - if(this.method_778(BIT_HEALTH)) + if(this.§_-qq§(BIT_HEALTH)) { - this.method_779(BIT_HEALTH); + this.§_-Xw§(BIT_HEALTH); } } } - public function name_616(weaponStatus:Number) : void + public function §_-XE§(weaponStatus:Number) : void { if(this.weaponStatus != weaponStatus) { this.weaponStatus = weaponStatus; - if(this.method_778(BIT_WEAPON)) + if(this.§_-qq§(BIT_WEAPON)) { - this.method_779(BIT_WEAPON); + this.§_-Xw§(BIT_WEAPON); } } } - public function name_339(indicatorId:int, duration:int) : void + public function §_-0W§(indicatorId:int, duration:int) : void { - var indicator:name_722 = null; - if(this.method_778(BIT_EFFECTS)) + var indicator:§_-Ip§ = null; + if(this.§_-qq§(BIT_EFFECTS)) { - indicator = this.method_785(indicatorId); + indicator = this.§_-Ty§(indicatorId); if(indicator != null) { - if(indicator.name_726()) + if(indicator.§_-gZ§()) { - this.method_787(1); + this.§_-Ka§(1); } indicator.show(duration); } } } - public function name_330(indicatorId:int) : void + public function §_-kd§(indicatorId:int) : void { - var indicator:name_722 = null; - if(this.method_778(BIT_EFFECTS)) + var indicator:§_-Ip§ = null; + if(this.§_-qq§(BIT_EFFECTS)) { - indicator = this.method_785(indicatorId); + indicator = this.§_-Ty§(indicatorId); if(indicator != null) { indicator.hide(); @@ -283,94 +283,94 @@ package alternativa.tanks.game.usertitle } } - public function method_797() : void + public function §_-5i§() : void { var indicatorId:int = 0; - if(this.var_649 != null && this.method_778(BIT_EFFECTS)) + if(this.§_-os§ != null && this.§_-qq§(BIT_EFFECTS)) { for each(indicatorId in indicatorTypes) { - this.name_330(indicatorId); + this.§_-kd§(indicatorId); } } } - internal function method_794(indicator:name_722) : void + internal function §_-nC§(indicator:§_-Ip§) : void { indicator.clear(this.texture); - this.method_787(-1); + this.§_-Ka§(-1); } - public function update(pos:name_194, time:int, timeDelta:int) : void + public function update(pos:§_-bj§, time:int, timeDelta:int) : void { var reloadResource:Boolean = false; - var effectIndicator:name_722 = null; - this.name_201(pos); - this.method_791(timeDelta); - if(this.method_786(DIRTY_MASK)) + var effectIndicator:§_-Ip§ = null; + this.§_-Vi§(pos); + this.§_-mM§(timeDelta); + if(this.§_-c7§(DIRTY_MASK)) { reloadResource = true; - if(this.method_780(BIT_LABEL)) + if(this.§_-ki§(BIT_LABEL)) { - this.method_789(); + this.§_-o9§(); } - if(this.method_780(BIT_HEALTH)) + if(this.§_-ki§(BIT_HEALTH)) { - this.var_652.name_727(teamTypeSkin[this.teamType]); - this.var_652.progress = MAX_PROGRESS * this.health / this.maxHealth; - this.var_652.draw(this.texture); + this.§_-f1§.§_-gM§(teamTypeSkin[this.teamType]); + this.§_-f1§.progress = MAX_PROGRESS * this.health / this.maxHealth; + this.§_-f1§.draw(this.texture); } - if(this.method_780(BIT_WEAPON)) + if(this.§_-ki§(BIT_WEAPON)) { - this.var_654.progress = this.weaponStatus; - this.var_654.draw(this.texture); + this.§_-ie§.progress = this.weaponStatus; + this.§_-ie§.draw(this.texture); } - if(this.method_780(BIT_EFFECTS)) + if(this.§_-ki§(BIT_EFFECTS)) { - for each(effectIndicator in this.var_649) + for each(effectIndicator in this.§_-os§) { - effectIndicator.name_728(); + effectIndicator.§_-mo§(); } } - this.method_781(DIRTY_MASK); + this.§_-F2§(DIRTY_MASK); } - if(this.method_778(BIT_EFFECTS)) + if(this.§_-qq§(BIT_EFFECTS)) { - reloadResource = this.method_792(time,timeDelta) || reloadResource; + reloadResource = this.§_-Hh§(time,timeDelta) || reloadResource; } if(reloadResource) { - this.resourceManager.method_30(this.textureResource); + this.resourceManager.§_-bL§(this.textureResource); } } - private function method_780(bit:int) : Boolean + private function §_-ki§(bit:int) : Boolean { var mask:int = bit | bit << 8; return (mask & this.flags) == mask; } - private function method_792(now:int, delta:int) : Boolean + private function §_-Hh§(now:int, delta:int) : Boolean { - var indicator:name_722 = null; + var indicator:§_-Ip§ = null; var i:int = 0; var wereUpdated:Boolean = false; var x:int = 0; - var num:int = int(this.var_649.length); - if(this.var_653) + var num:int = int(this.§_-os§.length); + if(this.§_-P4§) { - this.var_653 = false; - x = this.var_650.width + TEXTURE_MARGIN_2 - this.var_651 * EFFECTS_ICON_SIZE - (this.var_651 - 1) * EFFECTS_SPACING_X >> 1; + this.§_-P4§ = false; + x = this.§_-iy§.width + TEXTURE_MARGIN_2 - this.§_-8o§ * EFFECTS_ICON_SIZE - (this.§_-8o§ - 1) * EFFECTS_SPACING_X >> 1; for(i = 0; i < num; ) { - indicator = this.var_649[i]; - if(indicator.method_141()) + indicator = this.§_-os§[i]; + if(indicator.§_-bG§()) { indicator.clear(this.texture); } - if(!indicator.name_726()) + if(!indicator.§_-gZ§()) { - indicator.name_201(x,this.var_655); + indicator.§_-Vi§(x,this.§_-oS§); x += EFFECTS_ICON_SIZE + EFFECTS_SPACING_X; } i++; @@ -379,41 +379,41 @@ package alternativa.tanks.game.usertitle } for(i = 0; i < num; ) { - indicator = this.var_649[i]; + indicator = this.§_-os§[i]; wereUpdated = indicator.update(now,delta,this.texture) || wereUpdated; i++; } return wereUpdated; } - private function method_787(increment:int) : void + private function §_-Ka§(increment:int) : void { - this.var_651 += increment; - this.var_653 = true; + this.§_-8o§ += increment; + this.§_-P4§ = true; } - private function method_783() : void + private function §_-Z1§() : void { - if(this.method_786(CONFIG_FLAGS)) + if(this.§_-c7§(CONFIG_FLAGS)) { - this.method_788(); - this.method_790(); + this.§_-Op§(); + this.§_-8n§(); } } - private function method_788() : void + private function §_-Op§() : void { var width:int = 0; var height:int = 0; var numEffects:int = 0; var w:int = 0; - if(this.method_778(BIT_LABEL)) + if(this.§_-qq§(BIT_LABEL)) { this.label.text = this.labelText || ""; width = RANK_ICON_SIZE + LABEL_SPACING + this.label.textWidth; height = LABEL_HEIGHT; } - if(this.method_778(BIT_HEALTH)) + if(this.§_-qq§(BIT_HEALTH)) { if(width < BAR_WIDTH) { @@ -424,12 +424,12 @@ package alternativa.tanks.game.usertitle height += HEALTH_BAR_SPACING_Y; } height += BAR_HEIGHT; - if(this.method_778(BIT_WEAPON)) + if(this.§_-qq§(BIT_WEAPON)) { height += WEAPON_BAR_SPACING_Y + BAR_HEIGHT; } } - if(this.method_778(BIT_EFFECTS)) + if(this.§_-qq§(BIT_EFFECTS)) { numEffects = 4; w = numEffects * EFFECTS_ICON_SIZE + (numEffects - 1) * EFFECTS_SPACING_X; @@ -444,9 +444,9 @@ package alternativa.tanks.game.usertitle height += EFFECTS_ICON_SIZE; } width += 2 * TEXTURE_MARGIN; - width = this.method_784(width); + width = this.§_-Uv§(width); height += 2 * TEXTURE_MARGIN; - height = this.method_784(height); + height = this.§_-Uv§(height); if(this.texture == null || this.texture.width != width || this.texture.height != height) { if(this.texture != null) @@ -457,12 +457,12 @@ package alternativa.tanks.game.usertitle this.textureResource.data = this.texture; this.sprite.width = width; this.sprite.height = height; - this.var_650 = this.texture.rect; - this.method_779(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); + this.§_-iy§ = this.texture.rect; + this.§_-Xw§(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); } } - private function method_784(value:int) : int + private function §_-Uv§(value:int) : int { for(var power:int = 2; value > power; ) { @@ -471,39 +471,39 @@ package alternativa.tanks.game.usertitle return power; } - private function method_790() : void + private function §_-8n§() : void { var left:int = 0; var top:int = TEXTURE_MARGIN; - if(this.method_778(BIT_LABEL)) + if(this.§_-qq§(BIT_LABEL)) { top += LABEL_HEIGHT; } - if(this.method_778(BIT_HEALTH)) + if(this.§_-qq§(BIT_HEALTH)) { - if(this.method_778(BIT_LABEL)) + if(this.§_-qq§(BIT_LABEL)) { top += HEALTH_BAR_SPACING_Y; } - left = this.var_650.width - BAR_WIDTH >> 1; - this.var_652 = new name_725(left,top,MAX_PROGRESS,BAR_WIDTH,teamTypeSkin[this.teamType]); + left = this.§_-iy§.width - BAR_WIDTH >> 1; + this.§_-f1§ = new §_-K9§(left,top,MAX_PROGRESS,BAR_WIDTH,teamTypeSkin[this.teamType]); top += BAR_HEIGHT; - if(this.method_778(BIT_WEAPON)) + if(this.§_-qq§(BIT_WEAPON)) { top += WEAPON_BAR_SPACING_Y; - this.var_654 = new name_725(left,top,MAX_PROGRESS,BAR_WIDTH,name_724.WEAPONBAR); + this.§_-ie§ = new §_-K9§(left,top,MAX_PROGRESS,BAR_WIDTH,§_-4R§.WEAPONBAR); top += BAR_HEIGHT; } } - if(this.method_778(BIT_EFFECTS)) + if(this.§_-qq§(BIT_EFFECTS)) { top += EFFECTS_SPACING_Y; - this.var_655 = top; - this.method_793(); + this.§_-oS§ = top; + this.§_-ez§(); } } - public function name_611(container:name_78) : void + public function §_-p6§(container:§_-OX§) : void { if(this.sprite.parent == null) { @@ -511,7 +511,7 @@ package alternativa.tanks.game.usertitle } } - public function name_618() : void + public function §_-Md§() : void { if(this.sprite.parent != null) { @@ -519,73 +519,73 @@ package alternativa.tanks.game.usertitle } } - public function name_201(pos:name_194) : void + public function §_-Vi§(pos:§_-bj§) : void { this.sprite.x = pos.x; this.sprite.y = pos.y; this.sprite.z = pos.z; } - private function method_779(configBit:int) : void + private function §_-Xw§(configBit:int) : void { this.flags |= configBit << 8; } - private function method_789() : void + private function §_-o9§() : void { - var clientLog:name_160 = null; + var clientLog:§_-5-§ = null; var tmpBitmapData:BitmapData = this.texture.clone(); - tmpBitmapData.fillRect(this.var_650,0); + tmpBitmapData.fillRect(this.§_-iy§,0); var labelWidth:int = RANK_ICON_SIZE + LABEL_SPACING + this.label.textWidth; var left:int = tmpBitmapData.width - labelWidth >> 1; matrix.tx = left; matrix.ty = TEXTURE_MARGIN + RANK_ICON_OFFSET_Y; - var icon:BitmapData = this.rankIcon.method_776(this.rankId); - clientLog = name_160(OSGi.name_8().name_30(name_160)); + var icon:BitmapData = this.rankIcon.§null §(this.rankId); + clientLog = §_-5-§(§_-oP§.§_-nQ§().§_-N6§(§_-5-§)); clientLog.log("icon","UserTitle::updateLabel() icon size: %1x%2",icon.width,icon.height); clientLog.log("icon","UserTitle::updateLabel() label height: %1",this.label.textHeight); tmpBitmapData.draw(icon,matrix,null,null,null,true); matrix.tx = left + RANK_ICON_SIZE + LABEL_SPACING; matrix.ty = TEXTURE_MARGIN; - var skin:name_724 = teamTypeSkin[this.teamType]; + var skin:§_-4R§ = teamTypeSkin[this.teamType]; this.label.textColor = skin.color; - tmpBitmapData.draw(this.label.method_777(),matrix,null,null,null,true); - this.texture.applyFilter(tmpBitmapData,this.var_650,new Point(),filter); + tmpBitmapData.draw(this.label.§_-Qc§(),matrix,null,null,null,true); + this.texture.applyFilter(tmpBitmapData,this.§_-iy§,new Point(),filter); tmpBitmapData.dispose(); } - private function method_793() : void + private function §_-ez§() : void { var indicatorType:int = 0; - if(this.var_649 != null) + if(this.§_-os§ != null) { return; } - this.var_649 = new Vector.(); + this.§_-os§ = new Vector.<§_-Ip§>(); for each(indicatorType in indicatorTypes) { - if(indicatorType == name_722.TYPE_HEALTH) + if(indicatorType == §_-Ip§.TYPE_HEALTH) { - this.var_649.push(new name_722(indicatorType,100000,this,300,0)); + this.§_-os§.push(new §_-Ip§(indicatorType,100000,this,300,0)); } else { - this.var_649.push(new name_722(indicatorType,EFFECT_WARNING_TIME,this,300,30)); + this.§_-os§.push(new §_-Ip§(indicatorType,EFFECT_WARNING_TIME,this,300,30)); } } } - private function method_785(effectId:int) : name_722 + private function §_-Ty§(effectId:int) : §_-Ip§ { var len:int = 0; var i:int = 0; - var indicator:name_722 = null; - if(this.var_649 != null) + var indicator:§_-Ip§ = null; + if(this.§_-os§ != null) { - len = int(this.var_649.length); + len = int(this.§_-os§.length); for(i = 0; i < len; ) { - indicator = this.var_649[i]; + indicator = this.§_-os§[i]; if(indicator.effectId == effectId) { return indicator; @@ -596,26 +596,26 @@ package alternativa.tanks.game.usertitle return null; } - private function method_791(delta:int) : void + private function §_-mM§(delta:int) : void { } - private function method_782(mask:int) : void + private function §_-I7§(mask:int) : void { this.flags |= mask; } - private function method_781(mask:int) : void + private function §_-F2§(mask:int) : void { this.flags &= ~mask; } - private function method_786(mask:int) : Boolean + private function §_-c7§(mask:int) : Boolean { return (this.flags & mask) != 0; } - private function method_778(mask:int) : Boolean + private function §_-qq§(mask:int) : Boolean { return (this.flags & mask) == mask; } diff --git a/src/alternativa/tanks/game/usertitle/component/name_617.as b/src/alternativa/tanks/game/usertitle/component/?_-3v?.as similarity index 76% rename from src/alternativa/tanks/game/usertitle/component/name_617.as rename to src/alternativa/tanks/game/usertitle/component/?_-3v?.as index e843509..96e091a 100644 --- a/src/alternativa/tanks/game/usertitle/component/name_617.as +++ b/src/alternativa/tanks/game/usertitle/component/?_-3v?.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.usertitle.component { import flash.display.IBitmapDrawable; - public interface name_617 + public interface §_-3v§ { function set text(param1:String) : void; @@ -12,7 +12,7 @@ package alternativa.tanks.game.usertitle.component function set textColor(param1:uint) : void; - function method_777() : IBitmapDrawable; + function §_-Qc§() : IBitmapDrawable; } } diff --git a/src/alternativa/tanks/game/usertitle/component/class_40.as b/src/alternativa/tanks/game/usertitle/component/?_-CD?.as similarity index 58% rename from src/alternativa/tanks/game/usertitle/component/class_40.as rename to src/alternativa/tanks/game/usertitle/component/?_-CD?.as index 49cb834..dfb1eee 100644 --- a/src/alternativa/tanks/game/usertitle/component/class_40.as +++ b/src/alternativa/tanks/game/usertitle/component/?_-CD?.as @@ -1,12 +1,12 @@ package alternativa.tanks.game.usertitle.component { - import package_114.class_35; + import §_-78§.§_-YX§; - public class class_40 implements class_35 + public class §_-CD§ implements §_-YX§ { - protected var component:name_245; + protected var component:§_-YR§; - public function class_40(component:name_245) + public function §_-CD§(component:§_-YR§) { super(); this.component = component; diff --git a/src/alternativa/tanks/game/usertitle/component/name_492.as b/src/alternativa/tanks/game/usertitle/component/?_-Rd?.as similarity index 70% rename from src/alternativa/tanks/game/usertitle/component/name_492.as rename to src/alternativa/tanks/game/usertitle/component/?_-Rd?.as index 543ae79..9b25326 100644 --- a/src/alternativa/tanks/game/usertitle/component/name_492.as +++ b/src/alternativa/tanks/game/usertitle/component/?_-Rd?.as @@ -1,8 +1,8 @@ package alternativa.tanks.game.usertitle.component { - public class name_492 extends class_40 + public class §_-Rd§ extends §_-CD§ { - public function name_492(component:name_245) + public function §_-Rd§(component:§_-YR§) { super(component); } diff --git a/src/alternativa/tanks/game/usertitle/component/name_609.as b/src/alternativa/tanks/game/usertitle/component/?_-Up?.as similarity index 70% rename from src/alternativa/tanks/game/usertitle/component/name_609.as rename to src/alternativa/tanks/game/usertitle/component/?_-Up?.as index adbc5f2..ec87494 100644 --- a/src/alternativa/tanks/game/usertitle/component/name_609.as +++ b/src/alternativa/tanks/game/usertitle/component/?_-Up?.as @@ -1,8 +1,8 @@ package alternativa.tanks.game.usertitle.component { - public class name_609 extends class_40 + public class §_-Up§ extends §_-CD§ { - public function name_609(component:name_245) + public function §_-Up§(component:§_-YR§) { super(component); } diff --git a/src/alternativa/tanks/game/usertitle/component/?_-YR?.as b/src/alternativa/tanks/game/usertitle/component/?_-YR?.as new file mode 100644 index 0000000..416811b --- /dev/null +++ b/src/alternativa/tanks/game/usertitle/component/?_-YR?.as @@ -0,0 +1,166 @@ +package alternativa.tanks.game.usertitle.component +{ + import §_-78§.§_-M2§; + import §_-7A§.§_-Is§; + import §_-az§.§_-2J§; + import §_-az§.§_-AG§; + import §_-dz§.§_-lm§; + import §_-e6§.§_-1I§; + import §_-e6§.§_-Kn§; + import §_-lS§.§_-h2§; + import §_-nl§.§_-bj§; + import alternativa.tanks.game.usertitle.§_-C6§; + import alternativa.tanks.game.usertitle.§_-fe§; + import alternativa.tanks.game.usertitle.§class§; + import §default§.§_-kU§; + + public class §_-YR§ extends §_-2J§ implements §_-Kn§ + { + private static const REMOTE_LABEL_OFFSET_Z:int = 200; + + private static var position:§_-bj§ = new §_-bj§(); + + private var §_-Xa§:§class§; + + private var chassisComponent:§_-Is§; + + private var §_-lp§:§_-lm§; + + private var localPlayer:Boolean; + + private var §_-z§:§_-M2§; + + private var gameKernel:§_-AG§; + + private var §case §:Boolean; + + private var §_-S3§:§_-Up§; + + private var titleRenderer:§_-C6§; + + public function §_-YR§(maxHealth:int, rankIcon:§_-fe§, name:String, localPlayer:Boolean, label:§_-3v§, configFlags:int, titleRenderer:§_-C6§) + { + super(); + this.§_-Xa§ = new §class§(maxHealth,rankIcon,label); + this.localPlayer = localPlayer; + this.titleRenderer = titleRenderer; + this.§_-Xa§.§_-03§(name); + this.§_-Xa§.§_-ag§(configFlags); + } + + public function §_-l-§() : Boolean + { + return this.§case §; + } + + public function §_-Vj§() : Boolean + { + return this.localPlayer; + } + + public function §_-a7§(maxHealth:int) : void + { + this.§_-Xa§.§_-a7§(maxHealth); + } + + public function §_-0W§(indicatorId:int, duration:int) : void + { + this.§_-Xa§.§_-0W§(indicatorId,duration); + } + + public function §_-kd§(indicatorId:int) : void + { + this.§_-Xa§.§_-kd§(indicatorId); + } + + override public function initComponent() : void + { + this.chassisComponent = §_-Is§(entity.getComponentStrict(§_-Is§)); + this.§_-lp§ = §_-lm§(entity.getComponent(§_-lm§)); + this.§_-z§ = new §_-M2§(); + this.§_-S3§ = new §_-Up§(this); + this.§_-z§.§_-W§(entity,§_-kU§.SET_ACTIVATING_STATE,this.§_-S3§); + this.§_-z§.§_-W§(entity,§_-kU§.SET_ACTIVE_STATE,this.§_-S3§); + this.§_-z§.§_-W§(entity,§_-kU§.SET_DEAD_STATE,new §_-Rd§(this)); + var offSceneState:§_-po§ = new §_-po§(this); + this.§_-z§.§_-W§(entity,§_-kU§.SET_RESPAWN_STATE,offSceneState); + this.§_-z§.§_-Ah§ = offSceneState; + entity.addEventHandler(§_-kU§.SET_HEALTH,this.§_-RO§); + } + + private function §_-RO§(eventType:String, data:*) : void + { + this.setHealth(Number(data)); + } + + override public function addToGame(gameKernel:§_-AG§) : void + { + this.gameKernel = gameKernel; + this.§_-Xa§.§_-58§(gameKernel.§_-DZ§()); + } + + override public function removeFromGame(gameKernel:§_-AG§) : void + { + this.§_-z§.§_-Ah§.stop(); + this.removeFromScene(); + } + + public function addToScene() : void + { + var renderSystem:§_-1I§ = null; + if(!this.§case §) + { + renderSystem = this.gameKernel.§_-DZ§(); + if(this.localPlayer) + { + this.§_-Xa§.§_-S5§(); + } + this.§_-Xa§.§_-p6§(renderSystem.§_-Bj§()); + renderSystem.§_-mA§(this); + this.§case § = true; + } + } + + public function removeFromScene() : void + { + if(this.§case §) + { + this.§_-Xa§.§_-Md§(); + this.gameKernel.§_-DZ§().§_-EI§(this); + this.§case § = false; + } + } + + public function setHealth(health:Number) : void + { + this.§_-Xa§.setHealth(health); + } + + public function §_-Qx§(rankId:int) : void + { + this.§_-Xa§.§_-Qx§(rankId); + } + + public function render() : void + { + this.chassisComponent.§_-Cj§(position); + position.transform4(this.chassisComponent.§_-Cd§()); + if(this.localPlayer && this.§_-lp§ != null) + { + this.§_-Xa§.§_-XE§(this.§_-lp§.§_-j0§() * 100); + } + else + { + position.z += REMOTE_LABEL_OFFSET_Z; + } + this.titleRenderer.§_-hh§(entity,this); + this.§_-Xa§.update(position,§_-h2§.time,§_-h2§.timeDelta); + } + + public function getTitle() : §class§ + { + return this.§_-Xa§; + } + } +} + diff --git a/src/alternativa/tanks/game/usertitle/component/name_608.as b/src/alternativa/tanks/game/usertitle/component/?_-po?.as similarity index 67% rename from src/alternativa/tanks/game/usertitle/component/name_608.as rename to src/alternativa/tanks/game/usertitle/component/?_-po?.as index 0386776..e7e1508 100644 --- a/src/alternativa/tanks/game/usertitle/component/name_608.as +++ b/src/alternativa/tanks/game/usertitle/component/?_-po?.as @@ -1,8 +1,8 @@ package alternativa.tanks.game.usertitle.component { - public class name_608 extends class_40 + public class §_-po§ extends §_-CD§ { - public function name_608(component:name_245) + public function §_-po§(component:§_-YR§) { super(component); } diff --git a/src/alternativa/tanks/game/usertitle/component/name_245.as b/src/alternativa/tanks/game/usertitle/component/name_245.as deleted file mode 100644 index 385ae48..0000000 --- a/src/alternativa/tanks/game/usertitle/component/name_245.as +++ /dev/null @@ -1,166 +0,0 @@ -package alternativa.tanks.game.usertitle.component -{ - import alternativa.tanks.game.usertitle.name_607; - import alternativa.tanks.game.usertitle.name_610; - import alternativa.tanks.game.usertitle.name_613; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_114.name_488; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IRenderer; - import package_45.name_182; - import package_46.name_194; - import package_71.name_252; - import alternativa.tanks.game.weapons.IWeapon; - import package_75.name_236; - - public class name_245 extends EntityComponent implements IRenderer - { - private static const REMOTE_LABEL_OFFSET_Z:int = 200; - - private static var position:name_194 = new name_194(); - - private var var_505:name_607; - - private var chassisComponent:name_236; - - private var var_442:IWeapon; - - private var localPlayer:Boolean; - - private var var_424:name_488; - - private var gameKernel:GameKernel; - - private var var_426:Boolean; - - private var var_506:name_609; - - private var titleRenderer:name_610; - - public function name_245(maxHealth:int, rankIcon:name_613, name:String, localPlayer:Boolean, label:name_617, configFlags:int, titleRenderer:name_610) - { - super(); - this.var_505 = new name_607(maxHealth,rankIcon,label); - this.localPlayer = localPlayer; - this.titleRenderer = titleRenderer; - this.var_505.name_620(name); - this.var_505.name_619(configFlags); - } - - public function name_328() : Boolean - { - return this.var_426; - } - - public function method_527() : Boolean - { - return this.localPlayer; - } - - public function method_524(maxHealth:int) : void - { - this.var_505.method_524(maxHealth); - } - - public function name_339(indicatorId:int, duration:int) : void - { - this.var_505.name_339(indicatorId,duration); - } - - public function name_330(indicatorId:int) : void - { - this.var_505.name_330(indicatorId); - } - - override public function initComponent() : void - { - this.chassisComponent = name_236(entity.getComponentStrict(name_236)); - this.var_442 = IWeapon(entity.getComponent(IWeapon)); - this.var_424 = new name_488(); - this.var_506 = new name_609(this); - this.var_424.name_486(entity,name_252.SET_ACTIVATING_STATE,this.var_506); - this.var_424.name_486(entity,name_252.SET_ACTIVE_STATE,this.var_506); - this.var_424.name_486(entity,name_252.SET_DEAD_STATE,new name_492(this)); - var offSceneState:name_608 = new name_608(this); - this.var_424.name_486(entity,name_252.SET_RESPAWN_STATE,offSceneState); - this.var_424.name_493 = offSceneState; - entity.addEventHandler(name_252.SET_HEALTH,this.method_525); - } - - private function method_525(eventType:String, data:*) : void - { - this.setHealth(Number(data)); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - this.var_505.name_612(gameKernel.name_5()); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.var_424.name_493.stop(); - this.removeFromScene(); - } - - public function addToScene() : void - { - var renderSystem:RenderSystem = null; - if(!this.var_426) - { - renderSystem = this.gameKernel.name_5(); - if(this.localPlayer) - { - this.var_505.name_615(); - } - this.var_505.name_611(renderSystem.method_46()); - renderSystem.method_63(this); - this.var_426 = true; - } - } - - public function removeFromScene() : void - { - if(this.var_426) - { - this.var_505.name_618(); - this.gameKernel.name_5().method_64(this); - this.var_426 = false; - } - } - - public function setHealth(health:Number) : void - { - this.var_505.setHealth(health); - } - - public function method_526(rankId:int) : void - { - this.var_505.method_526(rankId); - } - - public function render() : void - { - this.chassisComponent.name_503(position); - position.transform4(this.chassisComponent.name_502()); - if(this.localPlayer && this.var_442 != null) - { - this.var_505.name_616(this.var_442.method_396() * 100); - } - else - { - position.z += REMOTE_LABEL_OFFSET_Z; - } - this.titleRenderer.name_614(entity,this); - this.var_505.update(position,name_182.time,name_182.timeDelta); - } - - public function getTitle() : name_607 - { - return this.var_505; - } - } -} - diff --git a/src/alternativa/tanks/game/usertitle/name_610.as b/src/alternativa/tanks/game/usertitle/name_610.as deleted file mode 100644 index 13ded37..0000000 --- a/src/alternativa/tanks/game/usertitle/name_610.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.tanks.game.usertitle -{ - import alternativa.tanks.game.usertitle.component.name_245; - import alternativa.tanks.game.Entity; - - public interface name_610 - { - function name_614(param1:Entity, param2:name_245) : void; - } -} - diff --git a/src/package_27/name_95.as b/src/alternativa/tanks/game/utils/BitFlags.as similarity index 50% rename from src/package_27/name_95.as rename to src/alternativa/tanks/game/utils/BitFlags.as index 2ca1c75..e594313 100644 --- a/src/package_27/name_95.as +++ b/src/alternativa/tanks/game/utils/BitFlags.as @@ -1,30 +1,30 @@ -package package_27 +package alternativa.tanks.game.utils { - public class name_95 + public class BitFlags { public var flags:int; - public function name_95() + public function BitFlags() { super(); } - public function method_268(mask:int) : void + public function setMask(mask:int) : void { this.flags |= mask; } - public function method_270(mask:int) : void + public function clearMask(mask:int) : void { this.flags &= ~mask; } - public function method_269(mask:int) : Boolean + public function hasAny(mask:int) : Boolean { return (this.flags & mask) != 0; } - public function method_271(mask:int) : Boolean + public function hasAll(mask:int) : Boolean { return (this.flags & mask) == mask; } diff --git a/src/package_27/name_479.as b/src/alternativa/tanks/game/utils/BitVector.as similarity index 76% rename from src/package_27/name_479.as rename to src/alternativa/tanks/game/utils/BitVector.as index 0459d13..9a7bf84 100644 --- a/src/package_27/name_479.as +++ b/src/alternativa/tanks/game/utils/BitVector.as @@ -1,16 +1,16 @@ -package package_27 +package alternativa.tanks.game.utils { - public class name_479 + public class BitVector { private var elements:Vector.; - public function name_479(size:uint) + public function BitVector(size:uint) { super(); this.elements = new Vector.((size + 31) / 32); } - public function name_480(bitIndex:uint, value:Boolean) : void + public function setBit(bitIndex:uint, value:Boolean) : void { var elementIndex:uint = uint(bitIndex >>> 5); var element:uint = this.elements[elementIndex]; @@ -26,7 +26,7 @@ package package_27 this.elements[elementIndex] = element; } - public function name_478(bitIndex:uint) : int + public function getBit(bitIndex:uint) : int { var elementIndex:uint = uint(bitIndex >>> 5); bitIndex &= 31; @@ -42,7 +42,7 @@ package package_27 } } - public function copyFrom(source:name_479) : void + public function copyFrom(source:BitVector) : void { var len:int = int(this.elements.length); for(var i:int = 0; i < len; i++) diff --git a/src/package_27/name_501.as b/src/alternativa/tanks/game/utils/GameMathUtils.as similarity index 76% rename from src/package_27/name_501.as rename to src/alternativa/tanks/game/utils/GameMathUtils.as index 2e100ff..4c800a3 100644 --- a/src/package_27/name_501.as +++ b/src/alternativa/tanks/game/utils/GameMathUtils.as @@ -1,6 +1,6 @@ -package package_27 +package alternativa.tanks.game.utils { - public class name_501 + public class GameMathUtils { public static const EPSILON:Number = 0.001; @@ -8,7 +8,7 @@ package package_27 public static const PI2:Number = 2 * Math.PI; - public function name_501() + public function GameMathUtils() { super(); } @@ -26,7 +26,7 @@ package package_27 return value; } - public static function name_506(radians:Number) : Number + public static function clampAngle(radians:Number) : Number { radians %= PI2; if(radians < -Math.PI) @@ -40,7 +40,7 @@ package package_27 return radians; } - public static function name_628(radians:Number) : Number + public static function clampAngleFast(radians:Number) : Number { if(radians < -Math.PI) { @@ -53,7 +53,7 @@ package package_27 return radians; } - public static function name_504(value:Number, targetValue:Number, delta:Number) : Number + public static function advanceValueTowards(value:Number, targetValue:Number, delta:Number) : Number { if(value < targetValue) { diff --git a/src/package_27/name_642.as b/src/alternativa/tanks/game/utils/PhysicsParsingUtils.as similarity index 59% rename from src/package_27/name_642.as rename to src/alternativa/tanks/game/utils/PhysicsParsingUtils.as index cd4250e..51550a4 100644 --- a/src/package_27/name_642.as +++ b/src/alternativa/tanks/game/utils/PhysicsParsingUtils.as @@ -1,22 +1,22 @@ -package package_27 +package alternativa.tanks.game.utils { - import package_109.name_377; - import package_109.name_378; - import package_109.name_381; - import package_19.name_380; - import package_21.name_126; - import package_46.Matrix4; - import package_46.name_194; - import package_76.name_235; + import alternativa.engine3d.core.VertexAttributes; + import alternativa.engine3d.objects.Mesh; + import alternativa.math.Matrix4; + import alternativa.math.Vector3; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.primitives.CollisionRect; + import alternativa.physics.collision.primitives.CollisionTriangle; + import alternativa.physics.collision.primitives.§_-m3§; - public class name_642 + public class PhysicsParsingUtils { - public function name_642() + public function PhysicsParsingUtils() { super(); } - public static function name_646(mesh:name_380, collisionPrimitives:Vector., collisionGroup:int, collisionMask:int) : void + public static function parseBox(mesh:Mesh, collisionPrimitives:Vector., collisionGroup:int, collisionMask:int) : void { mesh.calculateBoundBox(); var minX:Number = mesh.boundBox.minX * mesh.scaleX; @@ -25,14 +25,14 @@ package package_27 var maxY:Number = mesh.boundBox.maxY * mesh.scaleX; var minZ:Number = mesh.boundBox.minZ * mesh.scaleX; var maxZ:Number = mesh.boundBox.maxZ * mesh.scaleX; - var halfSize:name_194 = new name_194(); + var halfSize:Vector3 = new Vector3(); halfSize.x = maxX - minX; halfSize.y = maxY - minY; halfSize.z = maxZ - minZ; halfSize.scale(0.5); - var collisionBox:name_377 = new name_377(halfSize,collisionGroup,collisionMask); + var collisionBox:§_-m3§ = new §_-m3§(halfSize,collisionGroup,collisionMask); collisionBox.transform.setMatrix(mesh.x,mesh.y,mesh.z,mesh.rotationX,mesh.rotationY,mesh.rotationZ); - var midPoint:name_194 = new name_194(0.5 * (maxX + minX),0.5 * (maxY + minY),0.5 * (maxZ + minZ)); + var midPoint:Vector3 = new Vector3(0.5 * (maxX + minX),0.5 * (maxY + minY),0.5 * (maxZ + minZ)); midPoint.transform4(collisionBox.transform); collisionBox.transform.d = midPoint.x; collisionBox.transform.h = midPoint.y; @@ -40,29 +40,29 @@ package package_27 collisionPrimitives.push(collisionBox); } - public static function name_645(mesh:name_380, collisionPrimitives:Vector., collisionGroup:int, collisionMask:int) : void + public static function parsePlane(mesh:Mesh, collisionPrimitives:Vector., collisionGroup:int, collisionMask:int) : void { var i:int = 0; var baseIndex:uint = 0; - var edge:name_194 = null; + var edge:Vector3 = null; var len:Number = NaN; var indices:Vector. = mesh.geometry.indices; - var vertexCoordinates:Vector. = mesh.geometry.method_275(name_126.POSITION); + var vertexCoordinates:Vector. = mesh.geometry.getAttributeValues(VertexAttributes.POSITION); var faceVertexIndices:Vector. = Vector.([indices[0],indices[1],indices[2]]); - var edges:Vector. = Vector.([new name_194(),new name_194(),new name_194()]); + var edges:Vector. = Vector.([new Vector3(),new Vector3(),new Vector3()]); var lengths:Vector. = new Vector.(3); - var vertices:Vector. = new Vector.(3); + var vertices:Vector. = new Vector.(3); for(i = 0; i < 3; i++) { baseIndex = 3 * faceVertexIndices[i]; - vertices[i] = new name_194(vertexCoordinates[baseIndex],vertexCoordinates[baseIndex + 1],vertexCoordinates[baseIndex + 2]); + vertices[i] = new Vector3(vertexCoordinates[baseIndex],vertexCoordinates[baseIndex + 1],vertexCoordinates[baseIndex + 2]); } var max:Number = -1; var imax:int = 0; for(i = 0; i < 3; ) { edge = edges[i]; - edge.method_366(vertices[(i + 1) % 3],vertices[i]); + edge.diff(vertices[(i + 1) % 3],vertices[i]); len = lengths[i] = edge.length(); if(len > max) { @@ -73,19 +73,19 @@ package package_27 } var ix:int = (imax + 2) % 3; var iy:int = (imax + 1) % 3; - var xAxis:name_194 = edges[ix]; - var yAxis:name_194 = edges[iy]; + var xAxis:Vector3 = edges[ix]; + var yAxis:Vector3 = edges[iy]; yAxis.reverse(); var width:Number = lengths[ix]; var length:Number = lengths[iy]; - var translation:name_194 = vertices[(imax + 2) % 3].clone(); + var translation:Vector3 = vertices[(imax + 2) % 3].clone(); translation.x += 0.5 * (xAxis.x + yAxis.x); translation.y += 0.5 * (xAxis.y + yAxis.y); translation.z += 0.5 * (xAxis.z + yAxis.z); xAxis.normalize(); yAxis.normalize(); - var zAxis:name_194 = new name_194().cross2(xAxis,yAxis); - var collisionRect:name_381 = new name_381(new name_194(width / 2,length / 2,0),collisionGroup,collisionMask); + var zAxis:Vector3 = new Vector3().cross2(xAxis,yAxis); + var collisionRect:CollisionRect = new CollisionRect(new Vector3(width / 2,length / 2,0),collisionGroup,collisionMask); var transform:Matrix4 = collisionRect.transform; transform.a = xAxis.x; transform.e = xAxis.y; @@ -105,18 +105,18 @@ package package_27 collisionPrimitives.push(collisionRect); } - public static function name_644(mesh:name_380, collisionPrimitives:Vector., collisionGroup:int, collisionMask:int) : int + public static function parseCollisionTriangles(mesh:Mesh, collisionPrimitives:Vector., collisionGroup:int, collisionMask:int) : int { var numTriangles:int = 0; var j:int = 0; var vertexBaseIndex:uint = 0; - var v:name_194 = null; + var v:Vector3 = null; var indices:Vector. = mesh.geometry.indices; - var vertexCoordinates:Vector. = mesh.geometry.method_275(name_126.POSITION); - var vertices:Vector. = new Vector.(3); - vertices[0] = new name_194(); - vertices[1] = new name_194(); - vertices[2] = new name_194(); + var vertexCoordinates:Vector. = mesh.geometry.getAttributeValues(VertexAttributes.POSITION); + var vertices:Vector. = new Vector.(3); + vertices[0] = new Vector3(); + vertices[1] = new Vector3(); + vertices[2] = new Vector3(); for(var i:int = 0; i < indices.length; i += 3) { for(j = 0; j < 3; j++) @@ -129,27 +129,27 @@ package package_27 v.scale(mesh.scaleX); } numTriangles++; - collisionPrimitives.push(method_813(vertices[0],vertices[1],vertices[2],mesh,collisionGroup,collisionMask)); + collisionPrimitives.push(createTriangle(vertices[0],vertices[1],vertices[2],mesh,collisionGroup,collisionMask)); } return numTriangles; } - private static function method_813(v0:name_194, v1:name_194, v2:name_194, parentMesh:name_380, collisionGroup:int, collisionMask:int) : name_378 + private static function createTriangle(v0:Vector3, v1:Vector3, v2:Vector3, parentMesh:Mesh, collisionGroup:int, collisionMask:int) : CollisionTriangle { - var midPoint:name_194 = new name_194(); + var midPoint:Vector3 = new Vector3(); midPoint.x = (v0.x + v1.x + v2.x) / 3; midPoint.y = (v0.y + v1.y + v2.y) / 3; midPoint.z = (v0.z + v1.z + v2.z) / 3; - var xAxis:name_194 = new name_194(); - xAxis.method_366(v1,v0); + var xAxis:Vector3 = new Vector3(); + xAxis.diff(v1,v0); v1.reset(xAxis.length(),0,0); xAxis.normalize(); - var yAxis:name_194 = new name_194(); - yAxis.method_366(v2,v0); + var yAxis:Vector3 = new Vector3(); + yAxis.diff(v2,v0); var x:Number = yAxis.dot(xAxis); - var y:Number = Number(Math.sqrt(yAxis.method_365() - x * x)); + var y:Number = Number(Math.sqrt(yAxis.lengthSqr() - x * x)); v2.reset(x,y,0); - var zAxis:name_194 = new name_194(); + var zAxis:Vector3 = new Vector3(); zAxis.cross2(xAxis,yAxis); zAxis.normalize(); yAxis.cross2(zAxis,xAxis); @@ -177,7 +177,7 @@ package package_27 v1.y -= y; v2.x -= x; v2.y -= y; - var collisionTriangle:name_378 = new name_378(v0,v1,v2,collisionGroup,collisionMask); + var collisionTriangle:CollisionTriangle = new CollisionTriangle(v0,v1,v2,collisionGroup,collisionMask); collisionTriangle.transform = transform; return collisionTriangle; } diff --git a/src/package_27/name_519.as b/src/alternativa/tanks/game/utils/SFXUtils.as similarity index 67% rename from src/package_27/name_519.as rename to src/alternativa/tanks/game/utils/SFXUtils.as index f5fc99d..ee35aff 100644 --- a/src/package_27/name_519.as +++ b/src/alternativa/tanks/game/utils/SFXUtils.as @@ -1,31 +1,31 @@ -package package_27 +package alternativa.tanks.game.utils { - import package_21.name_78; - import package_46.Matrix3; - import package_46.name_194; + import alternativa.engine3d.core.Object3D; + import alternativa.math.Matrix3; + import alternativa.math.Vector3; - public class name_519 + public class SFXUtils { - private static var axis1:name_194 = new name_194(); + private static var axis1:Vector3 = new Vector3(); - private static var axis2:name_194 = new name_194(); + private static var axis2:Vector3 = new Vector3(); - private static var eulerAngles:name_194 = new name_194(); + private static var eulerAngles:Vector3 = new Vector3(); - private static var targetAxisZ:name_194 = new name_194(); + private static var targetAxisZ:Vector3 = new Vector3(); - private static var objectAxis:name_194 = new name_194(); + private static var objectAxis:Vector3 = new Vector3(); private static var matrix1:Matrix3 = new Matrix3(); private static var matrix2:Matrix3 = new Matrix3(); - public function name_519() + public function SFXUtils() { super(); } - public static function name_521(object:name_78, objectPosition:name_194, objectDirection:name_194, cameraPosition:name_194) : void + public static function alignObjectPlaneToView(object:Object3D, objectPosition:Vector3, objectDirection:Vector3, cameraPosition:Vector3) : void { var angle:Number = NaN; if(objectDirection.y < -0.99999 || objectDirection.y > 0.99999) @@ -43,7 +43,7 @@ package package_27 axis1.normalize(); angle = Number(Math.acos(objectDirection.y)); } - matrix1.method_344(axis1,angle); + matrix1.fromAxisAngle(axis1,angle); targetAxisZ.x = cameraPosition.x - objectPosition.x; targetAxisZ.y = cameraPosition.y - objectPosition.y; targetAxisZ.z = cameraPosition.z - objectPosition.z; @@ -52,16 +52,16 @@ package package_27 targetAxisZ.y -= dot * objectDirection.y; targetAxisZ.z -= dot * objectDirection.z; targetAxisZ.normalize(); - matrix1.method_345(name_194.Z_AXIS,objectAxis); + matrix1.transformVector(Vector3.Z_AXIS,objectAxis); dot = objectAxis.x * targetAxisZ.x + objectAxis.y * targetAxisZ.y + objectAxis.z * targetAxisZ.z; axis2.x = objectAxis.y * targetAxisZ.z - objectAxis.z * targetAxisZ.y; axis2.y = objectAxis.z * targetAxisZ.x - objectAxis.x * targetAxisZ.z; axis2.z = objectAxis.x * targetAxisZ.y - objectAxis.y * targetAxisZ.x; axis2.normalize(); angle = Number(Math.acos(dot)); - matrix2.method_344(axis2,angle); + matrix2.fromAxisAngle(axis2,angle); matrix1.append(matrix2); - matrix1.name_341(eulerAngles); + matrix1.getEulerAngles(eulerAngles); object.rotationX = eulerAngles.x; object.rotationY = eulerAngles.y; object.rotationZ = eulerAngles.z; diff --git a/src/alternativa/tanks/game/utils/Task.as b/src/alternativa/tanks/game/utils/Task.as new file mode 100644 index 0000000..b497ad0 --- /dev/null +++ b/src/alternativa/tanks/game/utils/Task.as @@ -0,0 +1,28 @@ +package alternativa.tanks.game.utils +{ + public class Task + { + private var §_-UZ§:TaskSequence; + + public function Task() + { + super(); + } + + public function run() : void + { + throw new Error("Not implemented"); + } + + internal function set taskSequence(value:TaskSequence) : void + { + this.§_-UZ§ = value; + } + + final protected function completeTask() : void + { + this.§_-UZ§.taskComplete(this); + } + } +} + diff --git a/src/alternativa/tanks/game/utils/TaskSequence.as b/src/alternativa/tanks/game/utils/TaskSequence.as new file mode 100644 index 0000000..d84190a --- /dev/null +++ b/src/alternativa/tanks/game/utils/TaskSequence.as @@ -0,0 +1,58 @@ +package alternativa.tanks.game.utils +{ + import flash.events.Event; + import flash.events.EventDispatcher; + + public class TaskSequence extends EventDispatcher + { + private var tasks:Vector.; + + private var §_-LN§:int; + + public function TaskSequence() + { + super(); + this.tasks = new Vector.(); + } + + public function addTask(task:Task) : void + { + if(this.tasks.indexOf(task) < 0) + { + this.tasks.push(task); + task.taskSequence = this; + } + } + + public function run() : void + { + if(this.tasks.length > 0) + { + this.§_-LN§ = 0; + this.runCurrentTask(); + } + else + { + dispatchEvent(new Event(Event.COMPLETE)); + } + } + + private function runCurrentTask() : void + { + Task(this.tasks[this.§_-LN§]).run(); + } + + internal function taskComplete(task:Task) : void + { + if(++this.§_-LN§ < this.tasks.length) + { + this.runCurrentTask(); + } + else + { + dispatchEvent(new Event(Event.COMPLETE)); + } + } + } +} + diff --git a/src/alternativa/tanks/game/utils/TimeStat.as b/src/alternativa/tanks/game/utils/TimeStat.as new file mode 100644 index 0000000..9e86c22 --- /dev/null +++ b/src/alternativa/tanks/game/utils/TimeStat.as @@ -0,0 +1,44 @@ +package alternativa.tanks.game.utils +{ + import flash.utils.getTimer; + + public class TimeStat + { + public var §_-IZ§:Number = 0; + + public var §_-6u§:Number = 0; + + private var maxTicks:int; + + private var §_-Et§:int; + + private var §_-Jl§:int; + + private var §_-45§:int; + + public function TimeStat(maxTicks:int) + { + super(); + this.maxTicks = maxTicks; + } + + public function startTick() : void + { + this.§_-Jl§ = getTimer(); + } + + public function stopTick() : void + { + this.§_-45§ += getTimer() - this.§_-Jl§; + ++this.§_-Et§; + if(this.§_-Et§ >= this.maxTicks) + { + this.§_-IZ§ = this.§_-45§ / this.§_-Et§; + this.§_-6u§ = this.§_-Et§ * 1000 / this.§_-45§; + this.§_-Et§ = 0; + this.§_-45§ = 0; + } + } + } +} + diff --git a/src/package_73/name_293.as b/src/alternativa/tanks/game/utils/datacache/DataCache.as similarity index 71% rename from src/package_73/name_293.as rename to src/alternativa/tanks/game/utils/datacache/DataCache.as index 6ae1641..214cc09 100644 --- a/src/package_73/name_293.as +++ b/src/alternativa/tanks/game/utils/datacache/DataCache.as @@ -1,18 +1,18 @@ -package package_73 +package alternativa.tanks.game.utils.datacache { import flash.utils.Dictionary; - public class name_293 + public class DataCache { private var map:Dictionary; - public function name_293() + public function DataCache() { super(); this.map = new Dictionary(); } - public function method_84(key:Object, factory:class_13 = null) : Object + public function getData(key:Object, factory:IDataFactory = null) : Object { var data:Object = this.map[key]; if(data == null && factory != null) @@ -23,7 +23,7 @@ package package_73 return data; } - public function method_374() : Vector. + public function getKeys() : Vector. { var key:* = undefined; var keys:Vector. = new Vector.(); diff --git a/src/alternativa/tanks/game/utils/datacache/IDataFactory.as b/src/alternativa/tanks/game/utils/datacache/IDataFactory.as new file mode 100644 index 0000000..fa72981 --- /dev/null +++ b/src/alternativa/tanks/game/utils/datacache/IDataFactory.as @@ -0,0 +1,8 @@ +package alternativa.tanks.game.utils.datacache +{ + public interface IDataFactory + { + function createData(param1:Object) : Object; + } +} + diff --git a/src/package_108/name_374.as b/src/alternativa/tanks/game/utils/list/List.as similarity index 58% rename from src/package_108/name_374.as rename to src/alternativa/tanks/game/utils/list/List.as index 05b9b6e..1527c68 100644 --- a/src/package_108/name_374.as +++ b/src/alternativa/tanks/game/utils/list/List.as @@ -1,44 +1,44 @@ -package package_108 +package alternativa.tanks.game.utils.list { - public class name_374 + public class List { - internal var head:name_639; + internal var head:ListItem; - internal var tail:name_639; + internal var tail:ListItem; - internal var var_568:int; + internal var §_-M0§:int; - public function name_374() + public function List() { super(); - this.head = new name_639(); - this.tail = new name_639(); + this.head = new ListItem(); + this.tail = new ListItem(); this.head.next = this.tail; this.tail.prev = this.head; } - public function listIterator() : name_373 + public function listIterator() : ListIterator { - return new name_640(this); + return new ListIteratorImpl(this); } public function add(data:Object) : void { - var newItem:name_639 = new name_639(); + var newItem:ListItem = new ListItem(); newItem.data = data; newItem.next = this.tail; newItem.prev = this.tail.prev; this.tail.prev = newItem; newItem.prev.next = newItem; - ++this.var_568; + ++this.§_-M0§; } public function remove(data:Object) : Boolean { - var item:name_639 = this.method_628(data); + var item:ListItem = this.findItem(data); if(item != null) { - this.method_627(item); + this.removeItem(item); return true; } return false; @@ -46,21 +46,21 @@ package package_108 public function contains(data:Object) : Boolean { - return this.method_628(data) != null; + return this.findItem(data) != null; } public function clear() : void { - var tmp:name_639 = null; - for(var item:name_639 = this.head.next; item != this.tail; ) + var tmp:ListItem = null; + for(var item:ListItem = this.head.next; item != this.tail; ) { tmp = item; item = item.next; - this.method_627(tmp); + this.removeItem(tmp); } } - public function method_629() : Object + public function peek() : Object { return this.head.next.data; } @@ -72,13 +72,13 @@ package package_108 return null; } var data:Object = this.head.next.data; - this.method_627(this.head.next); + this.removeItem(this.head.next); return data; } - private function method_628(data:Object) : name_639 + private function findItem(data:Object) : ListItem { - for(var item:name_639 = this.head.next; item != this.tail; ) + for(var item:ListItem = this.head.next; item != this.tail; ) { if(item.data == data) { @@ -89,7 +89,7 @@ package package_108 return null; } - private function method_627(item:name_639) : void + private function removeItem(item:ListItem) : void { if(item == this.head || item == this.tail) { @@ -99,7 +99,7 @@ package package_108 item.next.prev = item.prev; item.next = null; item.prev = null; - ++this.var_568; + ++this.§_-M0§; } } } diff --git a/src/alternativa/tanks/game/utils/list/ListItem.as b/src/alternativa/tanks/game/utils/list/ListItem.as new file mode 100644 index 0000000..8b3577f --- /dev/null +++ b/src/alternativa/tanks/game/utils/list/ListItem.as @@ -0,0 +1,17 @@ +package alternativa.tanks.game.utils.list +{ + internal class ListItem + { + public var data:Object; + + public var next:ListItem; + + public var prev:ListItem; + + public function ListItem() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/utils/list/ListIterator.as b/src/alternativa/tanks/game/utils/list/ListIterator.as new file mode 100644 index 0000000..0837899 --- /dev/null +++ b/src/alternativa/tanks/game/utils/list/ListIterator.as @@ -0,0 +1,16 @@ +package alternativa.tanks.game.utils.list +{ + public interface ListIterator + { + function add(param1:Object) : void; + + function hasNext() : Boolean; + + function hasPrevious() : Boolean; + + function next() : Object; + + function previous() : Object; + } +} + diff --git a/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as b/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as new file mode 100644 index 0000000..4b39420 --- /dev/null +++ b/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as @@ -0,0 +1,89 @@ +package alternativa.tanks.game.utils.list +{ + import alternativa.tanks.game.utils.list.errors.ConcurrentModificationError; + import alternativa.tanks.game.utils.list.errors.NoSuchElementError; + + internal class ListIteratorImpl implements ListIterator + { + private var list:List; + + private var §_-M0§:int; + + private var §_-9H§:ListItem; + + private var §_-4o§:ListItem; + + public function ListIteratorImpl(list:List) + { + super(); + this.list = list; + this.§_-M0§ = list.§_-M0§; + this.§_-4o§ = list.head; + this.§_-9H§ = this.§_-4o§.next; + } + + public function add(data:Object) : void + { + this.validateList(); + var item:ListItem = new ListItem(); + item.data = data; + item.prev = this.§_-4o§; + item.next = this.§_-9H§; + this.§_-4o§.next = item; + this.§_-9H§.prev = item; + this.§_-4o§ = item; + this.incChangeCounter(); + } + + public function hasNext() : Boolean + { + this.validateList(); + return this.§_-9H§ != this.list.tail; + } + + public function hasPrevious() : Boolean + { + this.validateList(); + return this.§_-4o§ != this.list.head; + } + + public function next() : Object + { + this.validateList(); + if(this.§_-9H§ == this.list.tail) + { + throw new NoSuchElementError(); + } + this.§_-4o§ = this.§_-9H§; + this.§_-9H§ = this.§_-9H§.next; + return this.§_-4o§.data; + } + + public function previous() : Object + { + this.validateList(); + if(this.§_-4o§ == this.list.head) + { + throw new NoSuchElementError(); + } + this.§_-9H§ = this.§_-4o§; + this.§_-4o§ = this.§_-4o§.prev; + return this.§_-9H§.data; + } + + private function validateList() : void + { + if(this.§_-M0§ != this.list.§_-M0§) + { + throw new ConcurrentModificationError(); + } + } + + private function incChangeCounter() : void + { + ++this.§_-M0§; + this.list.§_-M0§ = this.§_-M0§; + } + } +} + diff --git a/src/alternativa/tanks/game/utils/list/errors/ConcurrentModificationError.as b/src/alternativa/tanks/game/utils/list/errors/ConcurrentModificationError.as new file mode 100644 index 0000000..b12e52d --- /dev/null +++ b/src/alternativa/tanks/game/utils/list/errors/ConcurrentModificationError.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.utils.list.errors +{ + public class ConcurrentModificationError extends Error + { + public function ConcurrentModificationError() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/utils/list/errors/NoSuchElementError.as b/src/alternativa/tanks/game/utils/list/errors/NoSuchElementError.as new file mode 100644 index 0000000..7fc38d8 --- /dev/null +++ b/src/alternativa/tanks/game/utils/list/errors/NoSuchElementError.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.utils.list.errors +{ + public class NoSuchElementError extends Error + { + public function NoSuchElementError() + { + super(); + } + } +} + diff --git a/src/alternativa/tanks/game/utils/objectpool/ObjectPool.as b/src/alternativa/tanks/game/utils/objectpool/ObjectPool.as index a70e0b0..a6e0e72 100644 --- a/src/alternativa/tanks/game/utils/objectpool/ObjectPool.as +++ b/src/alternativa/tanks/game/utils/objectpool/ObjectPool.as @@ -14,7 +14,7 @@ package alternativa.tanks.game.utils.objectpool this.objectClass = objectClass; } - public function name_110() : Object + public function getObject() : Object { if(this.numObjects == 0) { @@ -31,7 +31,7 @@ package alternativa.tanks.game.utils.objectpool this.numObjects = 0; } - internal function name_425(object:Object) : void + internal function putObject(object:Object) : void { var _loc2_:* = this.numObjects++; this.objects[_loc2_] = object; diff --git a/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as b/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as index de1cc07..d263785 100644 --- a/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as +++ b/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as @@ -4,25 +4,25 @@ package alternativa.tanks.game.utils.objectpool public class ObjectPoolManager { - private var var_103:Dictionary = new Dictionary(); + private var §_-Jm§:Dictionary = new Dictionary(); public function ObjectPoolManager() { super(); } - public function name_110(objectClass:Class) : Object + public function getObject(objectClass:Class) : Object { - return this.getPool(objectClass).name_110(); + return this.getPool(objectClass).getObject(); } private function getPool(objectClass:Class) : ObjectPool { - var pool:ObjectPool = this.var_103[objectClass]; + var pool:ObjectPool = this.§_-Jm§[objectClass]; if(pool == null) { pool = new ObjectPool(objectClass); - this.var_103[objectClass] = pool; + this.§_-Jm§[objectClass] = pool; } return pool; } diff --git a/src/alternativa/tanks/game/utils/objectpool/PooledObject.as b/src/alternativa/tanks/game/utils/objectpool/PooledObject.as index 5ff3b1d..47ca02e 100644 --- a/src/alternativa/tanks/game/utils/objectpool/PooledObject.as +++ b/src/alternativa/tanks/game/utils/objectpool/PooledObject.as @@ -10,9 +10,9 @@ package alternativa.tanks.game.utils.objectpool this.objectPool = objectPool; } - final public function method_254() : void + final public function storeInPool() : void { - this.objectPool.name_425(this); + this.objectPool.putObject(this); } } } diff --git a/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as b/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as index 36c38e6..2e424b4 100644 --- a/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as +++ b/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as @@ -1,16 +1,16 @@ package alternativa.tanks.game.weapons { - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.GameEvents; - import package_39.name_160; - import package_42.name_184; - import package_42.name_477; - import package_45.name_182; import alternativa.osgi.OSGi; - import package_71.name_252; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameEvents; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.subsystems.logicsystem.ILogic; + import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; - public class ContinuousActionGunPlatformComponent extends EntityComponent implements IWeapon, IBasicWeapon, name_477 + public class ContinuousActionGunPlatformComponent extends EntityComponent implements IWeapon, IBasicWeapon, ILogicUnit { private var energyCapacity:Number; @@ -18,23 +18,23 @@ package alternativa.tanks.game.weapons private var energyRecoveryRate:Number; - private var var_442:IContinuousActionWeapon; + private var §_-lp§:IContinuousActionWeapon; private var baseTime:Number; - private var var_437:Boolean; + private var §_-Lq§:Boolean; - private var var_438:Boolean; + private var §_-3§:Boolean; - private var var_439:Boolean; + private var §_-Rr§:Boolean; - private var var_441:Boolean; + private var §_-f3§:Boolean; private var isLocal:Boolean; private var gameKernel:GameKernel; - private var var_440:name_184; + private var §_-hE§:ILogic; public function ContinuousActionGunPlatformComponent(energyCapacity:Number, energyDrainRate:Number, energyRecoveryRate:Number, isLocal:Boolean) { @@ -46,19 +46,19 @@ package alternativa.tanks.game.weapons this.baseTime = -1000; } - public function get name_308() : Boolean + public function get enabled() : Boolean { - return this.var_439; + return this.§_-Rr§; } - public function set name_308(value:Boolean) : void + public function set enabled(value:Boolean) : void { - if(this.var_439 != value) + if(this.§_-Rr§ != value) { - this.var_439 = value; + this.§_-Rr§ = value; if(value) { - if(this.var_438) + if(this.§_-3§) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::enabled() activating"); this.activate(); @@ -76,13 +76,13 @@ package alternativa.tanks.game.weapons override public function initComponent() : void { - this.var_442 = IContinuousActionWeapon(entity.getComponentStrict(IContinuousActionWeapon)); + this.§_-lp§ = IContinuousActionWeapon(entity.getComponentStrict(IContinuousActionWeapon)); if(this.isLocal) { - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.setActiveState); - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.setActivatingState); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.setInactiveState); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.setActiveState); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.setActivatingState); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.setInactiveState); entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.setInactiveState); } } @@ -90,57 +90,57 @@ package alternativa.tanks.game.weapons override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.var_440 = gameKernel.getLogicSystem2(); + this.§_-hE§ = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.var_440 = null; + this.§_-hE§ = null; this.gameKernel = null; } - public function method_396() : Number + public function getStatus() : Number { - return this.getCurrentEnergy(name_182.timeSeconds,this.var_437) / this.energyCapacity; + return this.getCurrentEnergy(TimeSystem.timeSeconds,this.§_-Lq§) / this.energyCapacity; } - public function method_394() : void + public function pullTrigger() : void { - if(!this.var_438) + if(!this.§_-3§) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::pullTrigger()"); - this.var_438 = true; + this.§_-3§ = true; this.activate(); this.enableLogic(); } } - public function method_393() : void + public function releaseTrigger() : void { - if(this.var_438) + if(this.§_-3§) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::releaseTrigger()"); - this.var_438 = false; + this.§_-3§ = false; this.deactivate(); this.disableLogic(); } } - private function getLogger() : name_160 + private function getLogger() : IClientLog { - return name_160(OSGi.name_8().name_30(name_160)); + return IClientLog(OSGi.getInstance().getService(IClientLog)); } - public function method_395() : void + public function forceUpdate() : void { } public function runLogic() : void { - var currentEnergy:Number = this.getCurrentEnergy(name_182.timeSeconds,this.var_437); + var currentEnergy:Number = this.getCurrentEnergy(TimeSystem.timeSeconds,this.§_-Lq§); if(currentEnergy > 0) { - this.var_442.update(); + this.§_-lp§.update(); } else { @@ -173,19 +173,19 @@ package alternativa.tanks.game.weapons private function enableLogic() : void { - if(!this.var_441 && this.var_439) + if(!this.§_-f3§ && this.§_-Rr§) { - this.var_441 = true; - this.var_440.addLogicUnit(this); + this.§_-f3§ = true; + this.§_-hE§.addLogicUnit(this); } } private function disableLogic() : void { - if(this.var_441) + if(this.§_-f3§) { - this.var_441 = false; - this.var_440.removeLogicUnit(this); + this.§_-f3§ = false; + this.§_-hE§.removeLogicUnit(this); } } @@ -193,11 +193,11 @@ package alternativa.tanks.game.weapons { var now:Number = NaN; var currentEnergy:Number = NaN; - if(!this.var_437 && this.var_439) + if(!this.§_-Lq§ && this.§_-Rr§) { - this.var_437 = true; - this.var_442.start(); - now = name_182.timeSeconds; + this.§_-Lq§ = true; + this.§_-lp§.start(); + now = TimeSystem.timeSeconds; currentEnergy = this.getCurrentEnergy(now,false); this.baseTime = now - (this.energyCapacity - currentEnergy) / this.energyDrainRate; } @@ -206,28 +206,28 @@ package alternativa.tanks.game.weapons private function deactivate() : void { var now:Number = NaN; - if(this.var_437) + if(this.§_-Lq§) { - this.var_437 = false; - this.var_442.stop(); - now = name_182.timeSeconds; + this.§_-Lq§ = false; + this.§_-lp§.stop(); + now = TimeSystem.timeSeconds; this.baseTime = now - this.getCurrentEnergy(now,true) / this.energyRecoveryRate; } } private function setActiveState(eventType:String, eventData:*) : void { - this.name_308 = true; + this.enabled = true; } private function setInactiveState(eventType:String, eventData:*) : void { - this.name_308 = false; + this.enabled = false; } private function setActivatingState(eventType:String, eventData:*) : void { - this.name_308 = false; + this.enabled = false; this.baseTime = -100000; } } diff --git a/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as b/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as index a1e93da..c0467c1 100644 --- a/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as +++ b/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as @@ -1,42 +1,42 @@ package alternativa.tanks.game.weapons { + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; import alternativa.tanks.game.GameEvents; - import package_115.class_26; - import package_42.name_184; - import package_42.name_477; - import package_45.name_182; - import package_46.name_194; - import package_71.name_252; - import package_75.class_15; - import package_75.name_236; - import package_76.name_256; - import package_79.name_622; - import package_86.name_257; - import package_86.name_540; - import package_90.name_273; - import package_92.name_271; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + import alternativa.tanks.game.subsystems.logicsystem.ILogic; + import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + import alternativa.tanks.game.weapons.effects.IWeaponShotEffects; + import alternativa.tanks.game.weapons.targeting.IEnergyTargetingSystem; - public class EnergyShotWeaponComponent extends EntityComponent implements IBasicWeapon, IWeapon, name_477 + public class EnergyShotWeaponComponent extends EntityComponent implements IBasicWeapon, IWeapon, ILogicUnit { - private static const COLLISION_MASK:int = name_257.STATIC | name_257.WEAPON; + private static const COLLISION_MASK:int = CollisionGroup.STATIC | CollisionGroup.WEAPON; - private static var rayHit:name_273 = new name_273(); + private static var rayHit:RayHit = new RayHit(); - private static var filter:name_540 = new name_540(); + private static var filter:SimpleRaycastFilter = new SimpleRaycastFilter(); - private static var barrelOrigin:name_194 = new name_194(); + private static var barrelOrigin:Vector3 = new Vector3(); - private static var muzzlePosition:name_194 = new name_194(); + private static var muzzlePosition:Vector3 = new Vector3(); - private static var gunDirection:name_194 = new name_194(); + private static var gunDirection:Vector3 = new Vector3(); - private static var gunElevationAxis:name_194 = new name_194(); + private static var gunElevationAxis:Vector3 = new Vector3(); - private static var shotDirection:name_194 = new name_194(); + private static var shotDirection:Vector3 = new Vector3(); - private static var recoilForceVector:name_194 = new name_194(); + private static var recoilForceVector:Vector3 = new Vector3(); private var energyCapacity:Number; @@ -48,7 +48,7 @@ package alternativa.tanks.game.weapons private var recoilForce:Number; - private var targetingSystem:name_622; + private var targetingSystem:IEnergyTargetingSystem; private var ammunition:IEnergyAmmunition; @@ -56,33 +56,33 @@ package alternativa.tanks.game.weapons private var isActive:Boolean; - private var var_439:Boolean; + private var §_-Rr§:Boolean; - private var var_438:Boolean; + private var §_-3§:Boolean; - private var var_441:Boolean; + private var §_-f3§:Boolean; - private var var_440:name_184; + private var §_-hE§:ILogic; private var gameKernel:GameKernel; private var baseTime:int; - private var var_446:int; + private var §_-g8§:int; - private var var_445:class_15; + private var §_-Zu§:ITurretPhysicsComponent; - private var chassisComponent:name_236; + private var chassisComponent:IChassisPhysicsComponent; - private var var_447:class_26; + private var §_-bQ§:IWeaponShotEffects; - private var var_448:int; + private var §_-eN§:int; private var maxRange:Number; private var barrelIndex:int; - public function EnergyShotWeaponComponent(energyCapacity:Number, energyPerShot:Number, energyRechargeRate:Number, reloadTime:int, recoilForce:Number, maxRange:Number, targetingSystem:name_622, callback:IEnergyShotWeaponCallback, isActive:Boolean) + public function EnergyShotWeaponComponent(energyCapacity:Number, energyPerShot:Number, energyRechargeRate:Number, reloadTime:int, recoilForce:Number, maxRange:Number, targetingSystem:IEnergyTargetingSystem, callback:IEnergyShotWeaponCallback, isActive:Boolean) { super(); this.energyCapacity = energyCapacity; @@ -96,28 +96,28 @@ package alternativa.tanks.game.weapons this.isActive = isActive; } - public function method_383(callback:IEnergyShotWeaponCallback) : void + public function setCallback(callback:IEnergyShotWeaponCallback) : void { this.callback = callback; } - public function method_528(targetingSystem:name_622) : void + public function setTargetingSystem(targetingSystem:IEnergyTargetingSystem) : void { this.targetingSystem = targetingSystem; } override public function initComponent() : void { - this.var_445 = class_15(entity.getComponentStrict(class_15)); - this.chassisComponent = name_236(entity.getComponentStrict(name_236)); - this.var_447 = class_26(entity.getComponentStrict(class_26)); + this.§_-Zu§ = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); + this.§_-bQ§ = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); this.ammunition = IEnergyAmmunition(entity.getComponentStrict(IEnergyAmmunition)); if(this.isActive) { - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.setActiveState); - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.setInactiveState); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.setInactiveState); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.setActiveState); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.setInactiveState); entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.setInactiveState); } } @@ -125,66 +125,66 @@ package alternativa.tanks.game.weapons override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.var_440 = gameKernel.getLogicSystem2(); + this.§_-hE§ = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.var_440 = null; + this.§_-hE§ = null; this.gameKernel = null; } - public function method_394() : void + public function pullTrigger() : void { - if(!this.var_438) + if(!this.§_-3§) { - this.var_438 = true; - if(this.var_439) + this.§_-3§ = true; + if(this.§_-Rr§) { this.enableLogic(); } } } - public function method_393() : void + public function releaseTrigger() : void { - if(this.var_438) + if(this.§_-3§) { - this.var_438 = false; + this.§_-3§ = false; this.disableLogic(); } } - public function method_395() : void + public function forceUpdate() : void { this.runLogic(); } - public function method_396() : Number + public function getStatus() : Number { - return this.getCurrentEnergy(name_182.time,this.baseTime) / this.energyCapacity; + return this.getCurrentEnergy(TimeSystem.time,this.baseTime) / this.energyCapacity; } public function runLogic() : void { var barrelLength:Number = NaN; var shotId:int = 0; - var shooterBody:name_271 = null; - var collisionDetector:name_256 = null; + var shooterBody:Body = null; + var collisionDetector:ICollisionDetector = null; var shotType:EnergyShotType = null; var round:IGenericRound = null; - var now:int = name_182.time; + var now:int = TimeSystem.time; var currentEnergy:Number = this.getCurrentEnergy(now,this.baseTime); - if(now >= this.var_446 && currentEnergy >= this.energyPerShot) + if(now >= this.§_-g8§ && currentEnergy >= this.energyPerShot) { - this.var_446 = now + this.reloadTime; + this.§_-g8§ = now + this.reloadTime; this.baseTime = now - 1000 * (currentEnergy - this.energyPerShot) / this.energyRechargeRate; - this.var_445.getGunData(this.barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); - barrelLength = Number(this.var_445.getBarrelLength(this.barrelIndex)); - muzzlePosition.copy(barrelOrigin).method_362(barrelLength,gunDirection); - shotId = this.var_448++; + this.§_-Zu§.getGunData(this.barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); + barrelLength = Number(this.§_-Zu§.getBarrelLength(this.barrelIndex)); + muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); + shotId = this.§_-eN§++; shooterBody = this.chassisComponent.getBody(); - collisionDetector = this.gameKernel.method_112().name_246().collisionDetector; + collisionDetector = this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector; filter.body = shooterBody; if(collisionDetector.raycast(barrelOrigin,gunDirection,COLLISION_MASK,barrelLength + 0.01,filter,rayHit)) { @@ -194,44 +194,44 @@ package alternativa.tanks.game.weapons else { shotType = EnergyShotType.NORMAL_SHOT; - this.targetingSystem.name_624(shooterBody,muzzlePosition,gunDirection,gunElevationAxis,this.maxRange,shotDirection); + this.targetingSystem.getShotDirection(shooterBody,muzzlePosition,gunDirection,gunElevationAxis,this.maxRange,shotDirection); } filter.body = null; this.doShowShotEffects(shotType,this.barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); if(this.callback != null) { - this.callback.name_623(shotId,shotType,shotDirection,this.barrelIndex); + this.callback.onEnergyShotWeaponFire(shotId,shotType,shotDirection,this.barrelIndex); } round = this.ammunition.getRound(shotType,this.maxRange); - round.method_372(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); - this.barrelIndex = (this.barrelIndex + 1) % this.var_445.getBarrelCount(); + round.shoot(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); + this.barrelIndex = (this.barrelIndex + 1) % this.§_-Zu§.getBarrelCount(); } } - public function method_372(shotId:int, shotType:EnergyShotType, shotDirection:name_194, barrelIndex:int) : void + public function shoot(shotId:int, shotType:EnergyShotType, shotDirection:Vector3, barrelIndex:int) : void { - var shooterBody:name_271 = this.chassisComponent.getBody(); - var barrelLength:Number = Number(this.var_445.getBarrelLength(barrelIndex)); - this.var_445.getGunData(barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); - muzzlePosition.copy(barrelOrigin).method_362(barrelLength,gunDirection); + var shooterBody:Body = this.chassisComponent.getBody(); + var barrelLength:Number = Number(this.§_-Zu§.getBarrelLength(barrelIndex)); + this.§_-Zu§.getGunData(barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); + muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); this.doShowShotEffects(shotType,barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); var round:IGenericRound = this.ammunition.getRound(shotType,this.maxRange); - round.method_372(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); + round.shoot(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); } - public function get name_308() : Boolean + public function get enabled() : Boolean { - return this.var_439; + return this.§_-Rr§; } - public function set name_308(value:Boolean) : void + public function set enabled(value:Boolean) : void { - if(this.var_439 != value) + if(this.§_-Rr§ != value) { - this.var_439 = value; - if(this.var_439) + this.§_-Rr§ = value; + if(this.§_-Rr§) { - if(this.var_438) + if(this.§_-3§) { this.enableLogic(); } @@ -243,41 +243,41 @@ package alternativa.tanks.game.weapons } } - private function doShowShotEffects(shotType:EnergyShotType, barrelIndex:int, barrelOrigin:name_194, muzzlePosition:name_194, gunDirection:name_194, gunElevationAxis:name_194) : void + private function doShowShotEffects(shotType:EnergyShotType, barrelIndex:int, barrelOrigin:Vector3, muzzlePosition:Vector3, gunDirection:Vector3, gunElevationAxis:Vector3) : void { recoilForceVector.copy(gunDirection).scale(-this.recoilForce); - this.chassisComponent.getBody().name_525(barrelOrigin,recoilForceVector); + this.chassisComponent.getBody().addWorldForce(barrelOrigin,recoilForceVector); if(shotType == EnergyShotType.NORMAL_SHOT) { - this.var_447.method_411(barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); + this.§_-bQ§.createShotEffects(barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } } private function setActiveState(eventType:String, eventData:*) : void { - this.name_308 = true; + this.enabled = true; } private function setInactiveState(eventType:String, eventData:*) : void { - this.name_308 = false; + this.enabled = false; } private function enableLogic() : void { - if(!this.var_441) + if(!this.§_-f3§) { - this.var_441 = true; - this.var_440.addLogicUnit(this); + this.§_-f3§ = true; + this.§_-hE§.addLogicUnit(this); } } private function disableLogic() : void { - if(this.var_441) + if(this.§_-f3§) { - this.var_441 = false; - this.var_440.removeLogicUnit(this); + this.§_-f3§ = false; + this.§_-hE§.removeLogicUnit(this); } } diff --git a/src/alternativa/tanks/game/weapons/IBasicWeapon.as b/src/alternativa/tanks/game/weapons/IBasicWeapon.as index 9f8192f..2a87fcc 100644 --- a/src/alternativa/tanks/game/weapons/IBasicWeapon.as +++ b/src/alternativa/tanks/game/weapons/IBasicWeapon.as @@ -2,11 +2,11 @@ package alternativa.tanks.game.weapons { public interface IBasicWeapon { - function method_394() : void; + function pullTrigger() : void; - function method_393() : void; + function releaseTrigger() : void; - function method_395() : void; + function forceUpdate() : void; } } diff --git a/src/alternativa/tanks/game/weapons/IEnergyShotWeaponCallback.as b/src/alternativa/tanks/game/weapons/IEnergyShotWeaponCallback.as index ff5bd8f..910e06c 100644 --- a/src/alternativa/tanks/game/weapons/IEnergyShotWeaponCallback.as +++ b/src/alternativa/tanks/game/weapons/IEnergyShotWeaponCallback.as @@ -1,10 +1,10 @@ package alternativa.tanks.game.weapons { - import package_46.name_194; + import alternativa.math.Vector3; public interface IEnergyShotWeaponCallback { - function name_623(param1:int, param2:EnergyShotType, param3:name_194, param4:int) : void; + function onEnergyShotWeaponFire(param1:int, param2:EnergyShotType, param3:Vector3, param4:int) : void; } } diff --git a/src/alternativa/tanks/game/weapons/IGenericRound.as b/src/alternativa/tanks/game/weapons/IGenericRound.as index 20e0d50..e8243cf 100644 --- a/src/alternativa/tanks/game/weapons/IGenericRound.as +++ b/src/alternativa/tanks/game/weapons/IGenericRound.as @@ -1,12 +1,12 @@ package alternativa.tanks.game.weapons { + import alternativa.math.Vector3; + import alternativa.physics.Body; import alternativa.tanks.game.GameKernel; - import package_46.name_194; - import package_92.name_271; public interface IGenericRound { - function method_372(param1:GameKernel, param2:int, param3:name_271, param4:name_194, param5:Number, param6:name_194, param7:name_194) : void; + function shoot(param1:GameKernel, param2:int, param3:Body, param4:Vector3, param5:Number, param6:Vector3, param7:Vector3) : void; } } diff --git a/src/alternativa/tanks/game/weapons/IGenericTargetingSystem.as b/src/alternativa/tanks/game/weapons/IGenericTargetingSystem.as index 62b91ed..110ae4a 100644 --- a/src/alternativa/tanks/game/weapons/IGenericTargetingSystem.as +++ b/src/alternativa/tanks/game/weapons/IGenericTargetingSystem.as @@ -1,11 +1,11 @@ package alternativa.tanks.game.weapons { - import package_46.name_194; - import package_92.name_271; + import alternativa.math.Vector3; + import alternativa.physics.Body; public interface IGenericTargetingSystem { - function name_527(param1:name_271, param2:name_194, param3:name_194, param4:name_194, param5:Number, param6:name_194, param7:Number, param8:name_194) : void; + function calculateShotDirection(param1:Body, param2:Vector3, param3:Vector3, param4:Vector3, param5:Number, param6:Vector3, param7:Number, param8:Vector3) : void; } } diff --git a/src/alternativa/tanks/game/weapons/IInstantShotWeaponCallback.as b/src/alternativa/tanks/game/weapons/IInstantShotWeaponCallback.as index 1189027..ad0c5f8 100644 --- a/src/alternativa/tanks/game/weapons/IInstantShotWeaponCallback.as +++ b/src/alternativa/tanks/game/weapons/IInstantShotWeaponCallback.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.weapons { public interface IInstantShotWeaponCallback { - function name_526() : void; + function onInstantShot() : void; } } diff --git a/src/alternativa/tanks/game/weapons/IWeapon.as b/src/alternativa/tanks/game/weapons/IWeapon.as index dd4155f..95f9209 100644 --- a/src/alternativa/tanks/game/weapons/IWeapon.as +++ b/src/alternativa/tanks/game/weapons/IWeapon.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.weapons { public interface IWeapon { - function method_396() : Number; + function getStatus() : Number; } } diff --git a/src/alternativa/tanks/game/weapons/IWeaponDistanceWeakening.as b/src/alternativa/tanks/game/weapons/IWeaponDistanceWeakening.as index 18f850a..ebb6e4a 100644 --- a/src/alternativa/tanks/game/weapons/IWeaponDistanceWeakening.as +++ b/src/alternativa/tanks/game/weapons/IWeaponDistanceWeakening.as @@ -2,11 +2,11 @@ package alternativa.tanks.game.weapons { public interface IWeaponDistanceWeakening { - function name_554(param1:Number) : Number; + function getWeakeningCoefficient(param1:Number) : Number; - function method_467() : Number; + function getMaximumDamageRadius() : Number; - function method_468() : Number; + function getMinimumDamageRadius() : Number; } } diff --git a/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as b/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as index 73111d3..f6218a5 100644 --- a/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as +++ b/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as @@ -1,32 +1,32 @@ package alternativa.tanks.game.weapons { + import alternativa.math.Vector3; + import alternativa.physics.Body; import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; import alternativa.tanks.game.GameEvents; - import package_115.class_26; - import package_27.name_501; - import package_42.name_184; - import package_42.name_477; - import package_45.name_182; - import package_46.name_194; - import package_71.name_252; - import package_75.class_15; - import package_75.name_236; - import package_92.name_271; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.TankEvents; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.subsystems.logicsystem.ILogic; + import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + import alternativa.tanks.game.utils.GameMathUtils; + import alternativa.tanks.game.weapons.effects.IWeaponShotEffects; - public class InstantShotWeaponComponent extends EntityComponent implements IWeapon, IBasicWeapon, name_477 + public class InstantShotWeaponComponent extends EntityComponent implements IWeapon, IBasicWeapon, ILogicUnit { - private static var barrelOrigin:name_194 = new name_194(); + private static var barrelOrigin:Vector3 = new Vector3(); - private static var muzzlePosition:name_194 = new name_194(); + private static var muzzlePosition:Vector3 = new Vector3(); - private static var gunDirection:name_194 = new name_194(); + private static var gunDirection:Vector3 = new Vector3(); - private static var gunElevationAxis:name_194 = new name_194(); + private static var gunElevationAxis:Vector3 = new Vector3(); - private static var shotDirection:name_194 = new name_194(); + private static var shotDirection:Vector3 = new Vector3(); - private static var recoilForceVector:name_194 = new name_194(); + private static var recoilForceVector:Vector3 = new Vector3(); private static const BARREL_INDEX:int = 0; @@ -40,23 +40,23 @@ package alternativa.tanks.game.weapons private var callback:IInstantShotWeaponCallback; - private var var_446:int; + private var §_-g8§:int; - private var var_445:class_15; + private var §_-Zu§:ITurretPhysicsComponent; - private var chassisComponent:name_236; + private var chassisComponent:IChassisPhysicsComponent; - private var var_447:class_26; + private var §_-bQ§:IWeaponShotEffects; - private var var_440:name_184; + private var §_-hE§:ILogic; - private var var_439:Boolean; + private var §_-Rr§:Boolean; - private var var_438:Boolean; + private var §_-3§:Boolean; - private var var_441:Boolean; + private var §_-f3§:Boolean; - private var var_448:int; + private var §_-eN§:int; private var gameKernel:GameKernel; @@ -75,108 +75,108 @@ package alternativa.tanks.game.weapons override public function initComponent() : void { - this.var_445 = class_15(entity.getComponentStrict(class_15)); - this.chassisComponent = name_236(entity.getComponentStrict(name_236)); - this.var_447 = class_26(entity.getComponentStrict(class_26)); + this.§_-Zu§ = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); + this.§_-bQ§ = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); if(this.isActive) { - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.setActiveState); - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.setInactiveState); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.setInactiveState); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.setActiveState); + entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.setInactiveState); + entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.setInactiveState); entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.setInactiveState); } } private function setActiveState(eventType:String, eventData:*) : void { - this.name_308 = true; + this.enabled = true; } private function setInactiveState(eventType:String, eventData:*) : void { - this.name_308 = false; + this.enabled = false; } override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.var_440 = gameKernel.getLogicSystem2(); + this.§_-hE§ = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.var_440 = null; + this.§_-hE§ = null; this.gameKernel = null; } - public function method_396() : Number + public function getStatus() : Number { - var readiness:Number = 1 + (name_182.time - this.var_446) / this.reloadTime; + var readiness:Number = 1 + (TimeSystem.time - this.§_-g8§) / this.reloadTime; return readiness > 1 ? 1 : readiness; } - public function method_394() : void + public function pullTrigger() : void { - if(!this.var_438) + if(!this.§_-3§) { - this.var_438 = true; - if(this.var_439) + this.§_-3§ = true; + if(this.§_-Rr§) { this.enableLogic(); } } } - public function method_393() : void + public function releaseTrigger() : void { - if(this.var_438) + if(this.§_-3§) { - this.var_438 = false; + this.§_-3§ = false; this.disableLogic(); } } - public function method_395() : void + public function forceUpdate() : void { this.runLogic(); } public function runLogic() : void { - if(name_182.time < this.var_446) + if(TimeSystem.time < this.§_-g8§) { return; } - this.var_446 = name_182.time + this.reloadTime; + this.§_-g8§ = TimeSystem.time + this.reloadTime; if(this.callback != null) { - this.callback.name_526(); + this.callback.onInstantShot(); } - this.var_445.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); - var barrelLength:Number = Number(this.var_445.getBarrelLength(BARREL_INDEX)); - muzzlePosition.copy(barrelOrigin).method_362(barrelLength,gunDirection); + this.§_-Zu§.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); + var barrelLength:Number = Number(this.§_-Zu§.getBarrelLength(BARREL_INDEX)); + muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); this.doShowShotEffects(barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); - var shotId:int = this.var_448++; - var shooterBody:name_271 = this.chassisComponent.getBody(); - this.targetingSystem.name_527(shooterBody,muzzlePosition,barrelOrigin,gunDirection,barrelLength,gunElevationAxis,name_501.BIG_VALUE,shotDirection); + var shotId:int = this.§_-eN§++; + var shooterBody:Body = this.chassisComponent.getBody(); + this.targetingSystem.calculateShotDirection(shooterBody,muzzlePosition,barrelOrigin,gunDirection,barrelLength,gunElevationAxis,GameMathUtils.BIG_VALUE,shotDirection); var round:IGenericRound = this.ammunition.getRound(); - round.method_372(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); + round.shoot(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); } - public function get name_308() : Boolean + public function get enabled() : Boolean { - return this.var_439; + return this.§_-Rr§; } - public function set name_308(value:Boolean) : void + public function set enabled(value:Boolean) : void { - if(this.var_439 != value) + if(this.§_-Rr§ != value) { - this.var_439 = value; - if(this.var_439) + this.§_-Rr§ = value; + if(this.§_-Rr§) { - if(this.var_438) + if(this.§_-3§) { this.enableLogic(); } @@ -188,35 +188,35 @@ package alternativa.tanks.game.weapons } } - public function method_416() : void + public function showShotEffects() : void { - this.var_445.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); - muzzlePosition.copy(barrelOrigin).method_362(this.var_445.getBarrelLength(BARREL_INDEX),gunDirection); + this.§_-Zu§.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); + muzzlePosition.copy(barrelOrigin).addScaled(this.§_-Zu§.getBarrelLength(BARREL_INDEX),gunDirection); this.doShowShotEffects(barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } - private function doShowShotEffects(barrelOrigin:name_194, muzzlePosition:name_194, gunDirection:name_194, gunElevationAxis:name_194) : void + private function doShowShotEffects(barrelOrigin:Vector3, muzzlePosition:Vector3, gunDirection:Vector3, gunElevationAxis:Vector3) : void { recoilForceVector.copy(gunDirection).scale(-this.recoilForce); - this.chassisComponent.getBody().name_525(barrelOrigin,recoilForceVector); - this.var_447.method_411(BARREL_INDEX,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); + this.chassisComponent.getBody().addWorldForce(barrelOrigin,recoilForceVector); + this.§_-bQ§.createShotEffects(BARREL_INDEX,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } private function enableLogic() : void { - if(!this.var_441) + if(!this.§_-f3§) { - this.var_441 = true; - this.var_440.addLogicUnit(this); + this.§_-f3§ = true; + this.§_-hE§.addLogicUnit(this); } } private function disableLogic() : void { - if(this.var_441) + if(this.§_-f3§) { - this.var_441 = false; - this.var_440.removeLogicUnit(this); + this.§_-f3§ = false; + this.§_-hE§.removeLogicUnit(this); } } } diff --git a/src/alternativa/tanks/game/weapons/SimpleTargetEvaluator.as b/src/alternativa/tanks/game/weapons/SimpleTargetEvaluator.as index 648c117..076ee54 100644 --- a/src/alternativa/tanks/game/weapons/SimpleTargetEvaluator.as +++ b/src/alternativa/tanks/game/weapons/SimpleTargetEvaluator.as @@ -1,9 +1,9 @@ package alternativa.tanks.game.weapons { - import package_79.name_326; - import package_92.name_271; + import alternativa.physics.Body; + import alternativa.tanks.game.weapons.targeting.IGenericTargetEvaluator; - public class SimpleTargetEvaluator implements name_326 + public class SimpleTargetEvaluator implements IGenericTargetEvaluator { public static const INSTANCE:SimpleTargetEvaluator = new SimpleTargetEvaluator(); @@ -12,7 +12,7 @@ package alternativa.tanks.game.weapons super(); } - public function name_541(shooter:name_271, target:name_271, distance:Number, angle:Number) : Number + public function getTargetPriority(shooter:Body, target:Body, distance:Number, angle:Number) : Number { return 1; } diff --git a/src/alternativa/tanks/game/weapons/WeaponHit.as b/src/alternativa/tanks/game/weapons/WeaponHit.as index 198b44a..d4892f6 100644 --- a/src/alternativa/tanks/game/weapons/WeaponHit.as +++ b/src/alternativa/tanks/game/weapons/WeaponHit.as @@ -1,19 +1,19 @@ package alternativa.tanks.game.weapons { - import package_46.name_194; - import package_92.name_271; + import alternativa.math.Vector3; + import alternativa.physics.Body; public class WeaponHit { public var distance:Number; - public var body:name_271; + public var body:Body; - public var position:name_194 = new name_194(); + public var position:Vector3 = new Vector3(); - public var direction:name_194 = new name_194(); + public var direction:Vector3 = new Vector3(); - public var normal:name_194 = new name_194(); + public var normal:Vector3 = new Vector3(); public function WeaponHit() { diff --git a/src/alternativa/tanks/game/weapons/ammunition/IAOEAmmunitionCallback.as b/src/alternativa/tanks/game/weapons/ammunition/IAOEAmmunitionCallback.as new file mode 100644 index 0000000..b96fc6e --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/IAOEAmmunitionCallback.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.weapons.ammunition +{ + import alternativa.tanks.game.weapons.WeaponHit; + + public interface IAOEAmmunitionCallback + { + function onHit(param1:int, param2:WeaponHit, param3:Vector.) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyAmmunitionComponent.as b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyAmmunitionComponent.as new file mode 100644 index 0000000..6374078 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyAmmunitionComponent.as @@ -0,0 +1,68 @@ +package alternativa.tanks.game.weapons.ammunition.energy +{ + import alternativa.tanks.game.Entity; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.weapons.EnergyShotType; + import alternativa.tanks.game.weapons.IEnergyAmmunition; + import alternativa.tanks.game.weapons.IGenericRound; + import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; + + public class EnergyAmmunitionComponent extends EntityComponent implements IEnergyAmmunition + { + private static var poolSize:int; + + private static var pool:Vector. = new Vector.(); + + private var roundData:EnergyRoundData; + + private var callback:IEnergyRoundCallback; + + private var effectsFactory:IEnergyRoundEffectsFactory; + + public function EnergyAmmunitionComponent(radius:Number, roundSpeed:Number, maxRicochets:uint, impactForce:Number, weakening:IWeaponDistanceWeakening, effectsFactory:IEnergyRoundEffectsFactory, callback:IEnergyRoundCallback) + { + super(); + this.roundData = new EnergyRoundData(radius,roundSpeed,maxRicochets,impactForce,weakening); + this.effectsFactory = effectsFactory; + this.callback = callback; + } + + public static function destroyRound(entity:Entity) : void + { + var _loc2_:* = poolSize++; + pool[_loc2_] = entity; + } + + public function getRound(shotType:EnergyShotType, maxRange:Number) : IGenericRound + { + var roundEntity:Entity = null; + if(poolSize == 0) + { + roundEntity = this.createRound(); + } + else + { + roundEntity = pool[--poolSize]; + pool[poolSize] = null; + } + var plasmaRoundComponent:EnergyRoundComponent = EnergyRoundComponent(roundEntity.getComponentStrict(EnergyRoundComponent)); + plasmaRoundComponent.init(shotType,this.roundData,maxRange,this.effectsFactory,this.callback); + return plasmaRoundComponent; + } + + private function createRound() : Entity + { + var entity:Entity = new Entity(Entity.generateId()); + var energyRoundComponent:EnergyRoundComponent = new EnergyRoundComponent(); + entity.addComponent(energyRoundComponent); + entity.initComponents(); + return entity; + } + + public function setCallback(callback:IEnergyRoundCallback) : void + { + this.callback = callback; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as new file mode 100644 index 0000000..6d82610 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as @@ -0,0 +1,295 @@ +package alternativa.tanks.game.weapons.ammunition.energy +{ + import alternativa.math.Matrix3; + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.IRaycastFilter; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.subsystems.physicssystem.IPhysicsController; + import alternativa.tanks.game.subsystems.physicssystem.PhysicsSystem; + import alternativa.tanks.game.subsystems.timesystem.TimeSystem; + import alternativa.tanks.game.utils.GameMathUtils; + import alternativa.tanks.game.weapons.EnergyShotType; + import alternativa.tanks.game.weapons.IGenericRound; + + public class EnergyRoundComponent extends EntityComponent implements IPhysicsController, IGenericRound, IRaycastFilter + { + private static const NUM_PERIPHERAL_RAYS:int = 8; + + private static const RADIAL_ANGLE_STEP:Number = 2 * Math.PI / NUM_PERIPHERAL_RAYS; + + private static var rayHit:RayHit = new RayHit(); + + private static var _rotationMatrix:Matrix3 = new Matrix3(); + + private static var _vector:Vector3 = new Vector3(); + + private static var _normal:Vector3 = new Vector3(); + + private var gameKernel:GameKernel; + + private var §_-oF§:Vector3 = new Vector3(); + + private var §_-hV§:Vector3 = new Vector3(); + + private var direction:Vector3 = new Vector3(); + + private var §_-PL§:Number; + + private var shotId:int; + + private var shooter:Body; + + private var collisionDetector:ICollisionDetector; + + private var callback:IEnergyRoundCallback; + + private var roundData:EnergyRoundData; + + private var maxRange:Number; + + private var effect:IEnergyRoundEffect; + + private var shotType:EnergyShotType; + + private var ricochetCount:int; + + private var §_-LC§:Vector.; + + private var effectsFactory:IEnergyRoundEffectsFactory; + + public function EnergyRoundComponent() + { + super(); + this.§_-LC§ = new Vector.(NUM_PERIPHERAL_RAYS); + for(var i:int = 0; i < NUM_PERIPHERAL_RAYS; i++) + { + this.§_-LC§[i] = new Vector3(); + } + } + + public function init(shotType:EnergyShotType, roundData:EnergyRoundData, maxRange:Number, effectsFactory:IEnergyRoundEffectsFactory, callback:IEnergyRoundCallback) : void + { + this.shotType = shotType; + this.roundData = roundData; + this.maxRange = maxRange; + this.callback = callback; + this.effectsFactory = effectsFactory; + this.ricochetCount = 0; + } + + override public function initComponent() : void + { + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + var physicsSystem:PhysicsSystem = gameKernel.getPhysicsSystem(); + this.collisionDetector = physicsSystem.getPhysicsScene().collisionDetector; + physicsSystem.addControllerBefore(this); + if(this.shotType == EnergyShotType.NORMAL_SHOT) + { + physicsSystem.addInterpolationController(this); + this.effect = this.effectsFactory.createEnergyRoundEffect(); + } + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + var physicsSystem:PhysicsSystem = gameKernel.getPhysicsSystem(); + physicsSystem.removeControllerBefore(this); + this.gameKernel = null; + this.roundData = null; + this.effectsFactory = null; + this.shooter = null; + this.collisionDetector = null; + if(this.effect != null) + { + physicsSystem.removeInterpolationController(this); + this.effect.kill(); + this.effect = null; + } + EnergyAmmunitionComponent.destroyRound(entity); + } + + public function acceptRayHit(primitive:CollisionPrimitive) : Boolean + { + return primitive.body != this.shooter; + } + + public function updateBeforeSimulation(physicsStep:int) : void + { + var i:int = 0; + var raycastResult:int = 0; + var filter:IRaycastFilter = null; + var hitTime:Number = NaN; + var body:Body = null; + var origin:Vector3 = null; + var impactForce:Number = NaN; + var deltaDistance:Number = this.roundData.speed * TimeSystem.timeDeltaSeconds; + for(var frameDistance:Number = 0; deltaDistance > GameMathUtils.EPSILON; ) + { + raycastResult = 0; + filter = this.ricochetCount == 0 ? this : null; + hitTime = deltaDistance + 1; + body = null; + if(this.collisionDetector.raycast(this.§_-hV§,this.direction,CollisionGroup.WEAPON | CollisionGroup.STATIC,deltaDistance,filter,rayHit)) + { + raycastResult = 1; + hitTime = rayHit.t; + body = rayHit.primitive.body; + _normal.copy(rayHit.normal); + } + for(i = 0; i < NUM_PERIPHERAL_RAYS; ) + { + origin = this.§_-LC§[i]; + if(this.collisionDetector.raycast(origin,this.direction,CollisionGroup.WEAPON,deltaDistance,filter,rayHit)) + { + if(rayHit.t < hitTime) + { + raycastResult = 2; + hitTime = rayHit.t; + body = rayHit.primitive.body; + _normal.copy(rayHit.normal); + } + } + i++; + } + if(raycastResult <= 0) + { + this.§_-PL§ += deltaDistance; + if(this.§_-PL§ > this.maxRange) + { + this.gameKernel.removeEntity(entity); + } + else + { + this.§_-oF§.copy(this.§_-hV§); + _vector.copy(this.direction).scale(deltaDistance); + this.§_-hV§.add(_vector); + for(i = 0; i < NUM_PERIPHERAL_RAYS; i++) + { + Vector3(this.§_-LC§[i]).add(_vector); + } + } + return; + } + this.§_-PL§ += hitTime; + if(this.§_-PL§ >= this.maxRange) + { + this.gameKernel.removeEntity(entity); + return; + } + if(!(raycastResult == 1 && this.ricochetCount < this.roundData.maxRicochets && body == null)) + { + this.effectsFactory.createExplosionEffects(rayHit.position); + if(body != null) + { + impactForce = this.roundData.weakening.getWeakeningCoefficient(this.§_-PL§) * this.roundData.impactForce; + body.addWorldForceScaled(rayHit.position,this.direction,impactForce); + if(this.callback != null) + { + this.callback.onEnergyRoundHit(this.shotId,rayHit.position,this.§_-PL§,body); + } + } + this.gameKernel.removeEntity(entity); + return; + } + ++this.ricochetCount; + frameDistance += hitTime; + this.§_-PL§ += hitTime; + deltaDistance -= hitTime; + _vector.copy(this.§_-hV§).addScaled(hitTime,this.direction); + this.effectsFactory.createRicochetEffects(_vector,_normal,this.direction); + this.§_-hV§.addScaled(hitTime,this.direction).addScaled(0.01,_normal); + this.direction.addScaled(-2 * this.direction.dot(_normal),_normal); + this.§_-oF§.copy(this.§_-hV§).addScaled(-frameDistance,this.direction); + this.initRadialPoints(this.§_-hV§,this.direction,this.roundData.radius); + } + } + + public function updateAfterSimulation(physicsStep:int) : void + { + } + + public function interpolate(interpolationCoeff:Number) : void + { + _vector.diff(this.§_-hV§,this.§_-oF§).scale(interpolationCoeff).add(this.§_-oF§); + this.effect.setPosition(_vector); + } + + public function shoot(gameKernel:GameKernel, shotId:int, shooter:Body, barrelOrigin:Vector3, barrelLength:Number, shotDirection:Vector3, muzzlePosition:Vector3) : void + { + this.shotId = shotId; + this.shooter = shooter; + this.direction.copy(shotDirection); + this.§_-PL§ = 0; + switch(this.shotType) + { + case EnergyShotType.CLOSE_SHOT: + this.§_-hV§.copy(barrelOrigin); + break; + case EnergyShotType.NORMAL_SHOT: + this.§_-hV§.copy(muzzlePosition); + } + this.initRadialPoints(this.§_-hV§,shotDirection,this.roundData.radius); + gameKernel.addEntity(entity); + } + + private function initRadialPoints(centerPoint:Vector3, shotDirection:Vector3, radius:Number) : void + { + var axis:int = 0; + var min:Number = 10; + var d:Number = shotDirection.x < 0 ? -shotDirection.x : shotDirection.x; + if(d < min) + { + min = d; + axis = 0; + } + d = shotDirection.y < 0 ? -shotDirection.y : shotDirection.y; + if(d < min) + { + min = d; + axis = 1; + } + d = shotDirection.z < 0 ? -shotDirection.z : shotDirection.z; + if(d < min) + { + axis = 2; + } + var v:Vector3 = new Vector3(); + switch(axis) + { + case 0: + v.x = 0; + v.y = shotDirection.z; + v.z = -shotDirection.y; + break; + case 1: + v.x = -shotDirection.z; + v.y = 0; + v.z = shotDirection.x; + break; + case 2: + v.x = shotDirection.y; + v.y = -shotDirection.x; + v.z = 0; + } + v.normalize().scale(radius); + _rotationMatrix.fromAxisAngle(shotDirection,RADIAL_ANGLE_STEP); + Vector3(this.§_-LC§[0]).copy(centerPoint).add(v); + for(var i:int = 1; i < NUM_PERIPHERAL_RAYS; i++) + { + v.transform3(_rotationMatrix); + Vector3(this.§_-LC§[i]).copy(centerPoint).add(v); + } + } + } +} + diff --git a/src/package_91/name_498.as b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundData.as similarity index 66% rename from src/package_91/name_498.as rename to src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundData.as index 8694a7b..5c3c82d 100644 --- a/src/package_91/name_498.as +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundData.as @@ -1,8 +1,8 @@ -package package_91 +package alternativa.tanks.game.weapons.ammunition.energy { import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; - public class name_498 + public class EnergyRoundData { public var radius:Number; @@ -14,7 +14,7 @@ package package_91 public var weakening:IWeaponDistanceWeakening; - public function name_498(radius:Number, speed:Number, maxRicochets:uint, impactForce:Number, weakening:IWeaponDistanceWeakening) + public function EnergyRoundData(radius:Number, speed:Number, maxRicochets:uint, impactForce:Number, weakening:IWeaponDistanceWeakening) { super(); this.radius = radius; diff --git a/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundCallback.as b/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundCallback.as new file mode 100644 index 0000000..e6b50d3 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundCallback.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.weapons.ammunition.energy +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + + public interface IEnergyRoundCallback + { + function onEnergyRoundHit(param1:int, param2:Vector3, param3:Number, param4:Body) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundEffect.as b/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundEffect.as new file mode 100644 index 0000000..9aabe3e --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundEffect.as @@ -0,0 +1,13 @@ +package alternativa.tanks.game.weapons.ammunition.energy +{ + import alternativa.math.Vector3; + import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; + + public interface IEnergyRoundEffect extends IGraphicEffect + { + function kill() : void; + + function setPosition(param1:Vector3) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundEffectsFactory.as b/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundEffectsFactory.as new file mode 100644 index 0000000..b8a5783 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/IEnergyRoundEffectsFactory.as @@ -0,0 +1,14 @@ +package alternativa.tanks.game.weapons.ammunition.energy +{ + import alternativa.math.Vector3; + + public interface IEnergyRoundEffectsFactory + { + function createEnergyRoundEffect() : IEnergyRoundEffect; + + function createExplosionEffects(param1:Vector3) : void; + + function createRicochetEffects(param1:Vector3, param2:Vector3, param3:Vector3) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffect.as b/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffect.as index 1a46804..5b454b0 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffect.as +++ b/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffect.as @@ -1,10 +1,10 @@ package alternativa.tanks.game.weapons.ammunition.plasma { + import alternativa.tanks.game.effects.AnimatedSpriteEffect; import alternativa.tanks.game.utils.objectpool.ObjectPool; - import package_72.name_239; - import package_91.name_522; + import alternativa.tanks.game.weapons.ammunition.energy.IEnergyRoundEffect; - public class PlasmaRoundEffect extends name_239 implements name_522 + public class PlasmaRoundEffect extends AnimatedSpriteEffect implements IEnergyRoundEffect { public function PlasmaRoundEffect(objectPool:ObjectPool) { diff --git a/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as b/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as index b50fefb..f5501a1 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as +++ b/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as @@ -1,14 +1,14 @@ package alternativa.tanks.game.weapons.ammunition.plasma { - import flash.geom.ColorTransform; + import alternativa.engine3d.materials.Material; + import alternativa.math.Vector3; import alternativa.tanks.game.GameKernel; - import package_4.class_4; - import package_46.name_194; - import package_72.name_239; - import package_91.name_349; - import package_91.name_522; + import alternativa.tanks.game.effects.AnimatedSpriteEffect; + import alternativa.tanks.game.weapons.ammunition.energy.IEnergyRoundEffect; + import alternativa.tanks.game.weapons.ammunition.energy.IEnergyRoundEffectsFactory; + import flash.geom.ColorTransform; - public class PlasmaRoundEffectsFactory implements name_349 + public class PlasmaRoundEffectsFactory implements IEnergyRoundEffectsFactory { private static const EFFECT_SIZE:Number = 300; @@ -20,13 +20,13 @@ package alternativa.tanks.game.weapons.ammunition.plasma private var gameKernel:GameKernel; - private var roundFrames:Vector.; + private var roundFrames:Vector.; - private var explosionFrames:Vector.; + private var explosionFrames:Vector.; private var colorTransform:ColorTransform; - public function PlasmaRoundEffectsFactory(gameKernel:GameKernel, roundFrames:Vector., explosionFrames:Vector., colorTransform:ColorTransform) + public function PlasmaRoundEffectsFactory(gameKernel:GameKernel, roundFrames:Vector., explosionFrames:Vector., colorTransform:ColorTransform) { super(); this.gameKernel = gameKernel; @@ -35,24 +35,24 @@ package alternativa.tanks.game.weapons.ammunition.plasma this.colorTransform = colorTransform; } - public function method_414() : name_522 + public function createEnergyRoundEffect() : IEnergyRoundEffect { - var effect:PlasmaRoundEffect = PlasmaRoundEffect(this.gameKernel.method_108().name_110(PlasmaRoundEffect)); + var effect:PlasmaRoundEffect = PlasmaRoundEffect(this.gameKernel.getObjectPoolManager().getObject(PlasmaRoundEffect)); var rotation:Number = Math.random() * Math.PI; - effect.init(EFFECT_SIZE,EFFECT_SIZE,this.roundFrames,name_194.ZERO,rotation,50,EFFECT_FPS,true,0.5,0.5); - this.gameKernel.name_5().method_37(effect); + effect.init(EFFECT_SIZE,EFFECT_SIZE,this.roundFrames,Vector3.ZERO,rotation,50,EFFECT_FPS,true,0.5,0.5); + this.gameKernel.getRenderSystem().each(effect); return effect; } - public function method_413(position:name_194) : void + public function createExplosionEffects(position:Vector3) : void { - var explosionEffect:name_239 = name_239(this.gameKernel.method_108().name_110(name_239)); + var explosionEffect:AnimatedSpriteEffect = AnimatedSpriteEffect(this.gameKernel.getObjectPoolManager().getObject(AnimatedSpriteEffect)); var rotation:Number = Math.random() * Math.PI; explosionEffect.init(EXPLOSION_EFFECT_SIZE,EXPLOSION_EFFECT_SIZE,this.explosionFrames,position,rotation,50,EXPLOSION_FPS,false,0.5,0.5); - this.gameKernel.name_5().method_37(explosionEffect); + this.gameKernel.getRenderSystem().each(explosionEffect); } - public function method_412(position:name_194, normal:name_194, direction:name_194) : void + public function createRicochetEffects(position:Vector3, normal:Vector3, direction:Vector3) : void { } } diff --git a/src/alternativa/tanks/game/weapons/ammunition/pointhit/PointHitRound.as b/src/alternativa/tanks/game/weapons/ammunition/pointhit/PointHitRound.as new file mode 100644 index 0000000..6ab5e27 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/pointhit/PointHitRound.as @@ -0,0 +1,94 @@ +package alternativa.tanks.game.weapons.ammunition.pointhit +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.effects.IAreaOfEffectSFX; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + import alternativa.tanks.game.utils.GameMathUtils; + import alternativa.tanks.game.weapons.IGenericRound; + import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; + import alternativa.tanks.game.weapons.WeaponHit; + import alternativa.tanks.game.weapons.ammunition.IAOEAmmunitionCallback; + + public class PointHitRound implements IGenericRound + { + private static const COLLISION_MASK:int = CollisionGroup.STATIC | CollisionGroup.WEAPON; + + private static var hitPosition:Vector3 = new Vector3(); + + private static var filter:SimpleRaycastFilter = new SimpleRaycastFilter(); + + private static var rayHit:RayHit = new RayHit(); + + private static var hitInfo:WeaponHit = new WeaponHit(); + + private var impactForce:Number; + + private var weakening:IWeaponDistanceWeakening; + + private var effects:IAreaOfEffectSFX; + + private var callback:IAOEAmmunitionCallback; + + public function PointHitRound(impactForce:Number, weakening:IWeaponDistanceWeakening, effects:IAreaOfEffectSFX) + { + super(); + this.impactForce = impactForce; + this.weakening = weakening; + this.effects = effects; + } + + public function setCallback(callback:IAOEAmmunitionCallback) : void + { + this.callback = callback; + } + + public function shoot(gameKernel:GameKernel, shotId:int, shooter:Body, barrelOrigin:Vector3, barrelLength:Number, shotDirection:Vector3, muzzlePosition:Vector3) : void + { + var distance:Number = NaN; + var weakeningCoefficient:Number = NaN; + var collisionDetector:ICollisionDetector = gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector; + filter.body = shooter; + if(collisionDetector.raycast(barrelOrigin,shotDirection,COLLISION_MASK,GameMathUtils.BIG_VALUE,filter,rayHit)) + { + distance = rayHit.t - barrelLength; + if(distance < 0) + { + distance = 0; + } + weakeningCoefficient = Number(this.weakening.getWeakeningCoefficient(distance)); + hitInfo.body = rayHit.primitive.body; + hitInfo.direction.copy(shotDirection); + hitInfo.normal.copy(rayHit.normal); + hitInfo.position.copy(rayHit.position); + hitInfo.distance = distance; + this.doShowHitEffects(hitInfo.body,hitInfo.position,hitInfo.direction,weakeningCoefficient); + if(this.callback != null) + { + this.callback.onHit(shotId,hitInfo,null); + } + } + filter.body = null; + } + + public function showHitEffects(target:Body, targetHitPosition:Vector3, hitDirection:Vector3, distance:Number) : void + { + hitPosition.copy(targetHitPosition); + this.doShowHitEffects(target,hitPosition,hitDirection,this.weakening.getWeakeningCoefficient(distance)); + } + + private function doShowHitEffects(target:Body, hitPosition:Vector3, hitDirection:Vector3, weakening:Number) : void + { + if(target != null) + { + target.addWorldForceScaled(hitPosition,hitDirection,this.impactForce * weakening); + } + this.effects.createEffects(hitPosition,weakening,0); + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as b/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as new file mode 100644 index 0000000..dcccdbb --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as @@ -0,0 +1,22 @@ +package alternativa.tanks.game.weapons.ammunition.railgun +{ + import alternativa.physics.collision.CollisionPrimitive; + import alternativa.physics.collision.IRaycastFilter; + import flash.utils.Dictionary; + + public class MultybodyRaycastFilter implements IRaycastFilter + { + public var §_-By§:Dictionary = new Dictionary(); + + public function MultybodyRaycastFilter() + { + super(); + } + + public function acceptRayHit(primitive:CollisionPrimitive) : Boolean + { + return this.§_-By§[primitive.body] == null; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/railgun/debug/DebugRailgunTargetEvaluator.as b/src/alternativa/tanks/game/weapons/ammunition/railgun/debug/DebugRailgunTargetEvaluator.as new file mode 100644 index 0000000..de9579d --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/railgun/debug/DebugRailgunTargetEvaluator.as @@ -0,0 +1,19 @@ +package alternativa.tanks.game.weapons.ammunition.railgun.debug +{ + import alternativa.physics.Body; + import alternativa.tanks.game.weapons.railgun.IRailgunTargetEvaluator; + + public class DebugRailgunTargetEvaluator implements IRailgunTargetEvaluator + { + public function DebugRailgunTargetEvaluator() + { + super(); + } + + public function getTargetPriority(body:Body, distance:Number) : Number + { + return 1; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/ISplashDamage.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/ISplashDamage.as new file mode 100644 index 0000000..2397770 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/ISplashDamage.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit +{ + public interface ISplashDamage + { + function get radius() : Number; + + function getPower(param1:Number, param2:Number) : Number; + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/ISplashTargetFilter.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/ISplashTargetFilter.as new file mode 100644 index 0000000..ce82b74 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/ISplashTargetFilter.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit +{ + import alternativa.physics.Body; + import alternativa.tanks.game.physics.IRadiusQueryFilter; + + public interface ISplashTargetFilter extends IRadiusQueryFilter + { + function setPrimaryTarget(param1:Body) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/SplashDamageRound.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/SplashDamageRound.as new file mode 100644 index 0000000..e8b2829 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/SplashDamageRound.as @@ -0,0 +1,146 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.effects.IAreaOfEffectSFX; + import alternativa.tanks.game.physics.BodyDistance; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.ITanksCollisionDetector; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + import alternativa.tanks.game.utils.GameMathUtils; + import alternativa.tanks.game.weapons.IGenericRound; + import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; + import alternativa.tanks.game.weapons.WeaponHit; + import alternativa.tanks.game.weapons.ammunition.IAOEAmmunitionCallback; + + public class SplashDamageRound implements IGenericRound + { + private static const HIT_POINT_CORRECTION:Number = 1; + + private static var direction:Vector3 = new Vector3(); + + private static var force:Vector3 = new Vector3(); + + private static var splashHits:Vector. = new Vector.(); + + private static var rayHit:RayHit = new RayHit(); + + private static var filter:SimpleRaycastFilter = new SimpleRaycastFilter(); + + private static var hitInfo:WeaponHit = new WeaponHit(); + + private var directImpactForce:Number; + + private var weakening:IWeaponDistanceWeakening; + + private var splashDamage:ISplashDamage; + + private var effects:IAreaOfEffectSFX; + + private var collisionDetector:ITanksCollisionDetector; + + private var splashTargetFilter:ISplashTargetFilter; + + private var callback:IAOEAmmunitionCallback; + + public function SplashDamageRound(directImpactForce:Number, weakening:IWeaponDistanceWeakening, splashDamage:ISplashDamage, effects:IAreaOfEffectSFX, collisionDetector:ITanksCollisionDetector, splashTargetFilter:ISplashTargetFilter) + { + super(); + this.directImpactForce = directImpactForce; + this.weakening = weakening; + this.splashDamage = splashDamage; + this.effects = effects; + this.collisionDetector = collisionDetector; + this.splashTargetFilter = splashTargetFilter; + } + + public function setCallback(callback:IAOEAmmunitionCallback) : void + { + this.callback = callback; + } + + public function shoot(gameKernel:GameKernel, shotId:int, shooter:Body, barrelOrigin:Vector3, barrelLength:Number, shotDirection:Vector3, muzzlePosition:Vector3) : void + { + var distance:Number = NaN; + var weakeningCoefficient:Number = NaN; + var impactForce:Number = NaN; + var primaryTarget:Body = null; + filter.body = shooter; + if(this.collisionDetector.raycast(barrelOrigin,shotDirection,CollisionGroup.WEAPON | CollisionGroup.STATIC,GameMathUtils.BIG_VALUE,filter,rayHit)) + { + distance = rayHit.t - barrelLength; + if(distance < 0) + { + distance = 0; + } + weakeningCoefficient = Number(this.weakening.getWeakeningCoefficient(distance)); + impactForce = this.directImpactForce * weakeningCoefficient; + primaryTarget = rayHit.primitive.body; + if(primaryTarget != null) + { + primaryTarget.addWorldForceScaled(rayHit.position,shotDirection,impactForce); + } + rayHit.position.addScaled(HIT_POINT_CORRECTION,rayHit.normal); + splashHits.length = 0; + this.processSplashTargets(rayHit.position,primaryTarget,impactForce,splashHits); + this.effects.createEffects(rayHit.position,weakeningCoefficient,this.splashDamage.radius); + hitInfo.body = primaryTarget; + hitInfo.direction.copy(shotDirection); + hitInfo.distance = distance; + hitInfo.normal.copy(rayHit.normal); + hitInfo.position.copy(rayHit.position); + if(this.callback != null) + { + this.callback.onHit(shotId,hitInfo,splashHits); + } + splashHits.length = 0; + } + filter.body = null; + } + + public function showHitEffects(hitPosition:Vector3, primaryTarget:Body, muzzlePosition:Vector3) : void + { + direction.diff(hitPosition,muzzlePosition); + var weakeningCoefficient:Number = Number(this.weakening.getWeakeningCoefficient(direction.length())); + var imactForce:Number = this.directImpactForce * weakeningCoefficient; + if(primaryTarget != null) + { + direction.normalize(); + primaryTarget.addWorldForceScaled(hitPosition,direction,imactForce); + } + this.processSplashTargets(hitPosition,primaryTarget,imactForce,null); + this.effects.createEffects(hitPosition,weakeningCoefficient,this.splashDamage.radius); + } + + private function processSplashTargets(hitPosition:Vector3, primaryTarget:Body, impactForce:Number, splashHits:Vector.) : void + { + var bodyDistance:BodyDistance = null; + var targetBody:Body = null; + var splashImpactForce:Number = NaN; + var weaponHit:WeaponHit = null; + this.splashTargetFilter.setPrimaryTarget(primaryTarget); + var objectsInRadius:Vector. = this.collisionDetector.getObjectsInRadius(hitPosition,this.splashDamage.radius,this.splashTargetFilter); + this.splashTargetFilter.setPrimaryTarget(null); + if(objectsInRadius != null) + { + for each(bodyDistance in objectsInRadius) + { + targetBody = bodyDistance.body; + splashImpactForce = Number(this.splashDamage.getPower(impactForce,bodyDistance.distance)); + force.diff(targetBody.state.position,hitPosition).normalize().scale(splashImpactForce); + targetBody.addForce(force); + if(splashHits != null) + { + weaponHit = new WeaponHit(); + weaponHit.distance = bodyDistance.distance; + weaponHit.body = targetBody; + splashHits.push(weaponHit); + } + } + } + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as new file mode 100644 index 0000000..8752eeb --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as @@ -0,0 +1,26 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit.debug +{ + import alternativa.tanks.game.weapons.ammunition.splashhit.ISplashDamage; + + public class DebugSplashDamage implements ISplashDamage + { + private var §_-YZ§:Number; + + public function DebugSplashDamage(radius:Number) + { + super(); + this.§_-YZ§ = radius; + } + + public function get radius() : Number + { + return this.§_-YZ§; + } + + public function getPower(basePower:Number, radius:Number) : Number + { + return basePower; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as new file mode 100644 index 0000000..aca9b3d --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as @@ -0,0 +1,34 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit.debug +{ + import alternativa.engine3d.materials.Material; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.physics.ITanksCollisionDetector; + import alternativa.tanks.game.weapons.IGenericAmmunition; + import alternativa.tanks.game.weapons.IGenericRound; + import alternativa.tanks.game.weapons.ammunition.IAOEAmmunitionCallback; + import alternativa.tanks.game.weapons.ammunition.splashhit.SplashDamageRound; + import alternativa.tanks.game.weapons.debug.DebugWeaponDistanceWeakening; + + public class DebugSplashDamageAmmo implements IGenericAmmunition + { + private var §_-ea§:SplashDamageRound; + + public function DebugSplashDamageAmmo(gameKernel:GameKernel, radius:Number, impactForce:Number, maximumDamageRadius:Number, minimumDamageRadius:Number, minimumDamageCoefficient:Number, callback:IAOEAmmunitionCallback, frames:Vector.) + { + super(); + var splashDamage:DebugSplashDamage = new DebugSplashDamage(radius); + var weaponDistanceWeakening:DebugWeaponDistanceWeakening = new DebugWeaponDistanceWeakening(maximumDamageRadius,minimumDamageRadius,minimumDamageCoefficient); + var splashDamageEffects:DebugSplashDamageEffects = new DebugSplashDamageEffects(gameKernel,frames); + var collisionDetector:ITanksCollisionDetector = ITanksCollisionDetector(gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector); + var debugSplashTargetFilter:DebugSplashTargetFilter = new DebugSplashTargetFilter(); + this.§_-ea§ = new SplashDamageRound(impactForce,weaponDistanceWeakening,splashDamage,splashDamageEffects,collisionDetector,debugSplashTargetFilter); + this.§_-ea§.setCallback(callback); + } + + public function getRound() : IGenericRound + { + return this.§_-ea§; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageEffects.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageEffects.as new file mode 100644 index 0000000..8785c7e --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageEffects.as @@ -0,0 +1,62 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit.debug +{ + import alternativa.engine3d.effects.TextureAtlas; + import alternativa.engine3d.materials.Material; + import alternativa.engine3d.resources.TextureResource; + import alternativa.math.Vector3; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.effects.IAreaOfEffectSFX; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import flash.geom.Vector3D; + + public class DebugSplashDamageEffects implements IAreaOfEffectSFX + { + private static var smokeAtlas:TextureAtlas; + + private static var fireAtlas:TextureAtlas; + + private static var flashAtlas:TextureAtlas; + + private static var fragmentAtlas:TextureAtlas; + + private static var glowAtlas:TextureAtlas; + + private static var sparkAtlas:TextureAtlas; + + private static const tempVector:Vector3D = new Vector3D(); + + private var gameKernel:GameKernel; + + private var frames:Vector.; + + public function DebugSplashDamageEffects(gameKernel:GameKernel, frames:Vector.) + { + super(); + this.gameKernel = gameKernel; + this.frames = frames; + } + + public static function init(diffuse:TextureResource, opacity:TextureResource) : void + { + smokeAtlas = new TextureAtlas(diffuse,opacity,8,8,0,16,30,true); + fireAtlas = new TextureAtlas(diffuse,opacity,8,8,16,16,30,true); + flashAtlas = new TextureAtlas(diffuse,opacity,8,8,32,16,30,true,0.5,0.5); + fragmentAtlas = new TextureAtlas(diffuse,opacity,8,8,48,8,30,true); + glowAtlas = new TextureAtlas(diffuse,opacity,8,8,56,1,30,true); + sparkAtlas = new TextureAtlas(diffuse,opacity,8,8,57,1,30,true); + } + + public function createEffects(position:Vector3, weakeningCoefficient:Number, radius:Number) : void + { + var renderSystem:RenderSystem = this.gameKernel.getRenderSystem(); + var explosion:SmokyExplosion = new SmokyExplosion(smokeAtlas,fireAtlas,flashAtlas,glowAtlas,sparkAtlas,fragmentAtlas); + tempVector.x = position.x; + tempVector.y = position.y; + tempVector.z = position.z; + explosion.position = tempVector; + explosion.scale = 6; + renderSystem.addA3DEffect(explosion); + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashTargetFilter.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashTargetFilter.as new file mode 100644 index 0000000..6ee1647 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashTargetFilter.as @@ -0,0 +1,27 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit.debug +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.tanks.game.weapons.ammunition.splashhit.ISplashTargetFilter; + + public class DebugSplashTargetFilter implements ISplashTargetFilter + { + private var primaryTarget:Body; + + public function DebugSplashTargetFilter() + { + super(); + } + + public function setPrimaryTarget(body:Body) : void + { + this.primaryTarget = body; + } + + public function acceptBody(center:Vector3, body:Body) : Boolean + { + return body != this.primaryTarget; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as new file mode 100644 index 0000000..1bdb6bc --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as @@ -0,0 +1,327 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit.debug +{ + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.effects.ParticlePrototype; + import alternativa.engine3d.effects.TextureAtlas; + import alternativa.engine3d.effects.§_-SG§; + import flash.display3D.Context3DBlendFactor; + import flash.geom.Vector3D; + + public class SmokyExplosion extends §_-SG§ + { + private static var smokePrototype:ParticlePrototype; + + private static var firePrototype:ParticlePrototype; + + private static var flashPrototype:ParticlePrototype; + + private static var glowPrototype:ParticlePrototype; + + private static var sparkPrototype:ParticlePrototype; + + private static var fragmentPrototype:ParticlePrototype; + + private static const smokeDirections:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); + + private static const smokeDirectionsCount:int = 7; + + private static const sparkDirections:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); + + private static const sparkDirectionsCount:int = 20; + + private static const fragmentDirections:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); + + private static const fragmentDirectionsCount:int = 20; + + private static var pos:Vector3D = new Vector3D(); + + private static var dir:Vector3D = new Vector3D(); + + private static var gravity:Number = 700; + + private static var movingSpeed:Number = 700; + + private static var liftSpeed:Number = 17; + + private static var windSpeed:Number = 10; + + private static var littleTime:Number = 0.01; + + public function SmokyExplosion(smoke:TextureAtlas, fire:TextureAtlas, flash:TextureAtlas, glow:TextureAtlas, spark:TextureAtlas, fragment:TextureAtlas) + { + super(); + if(smokePrototype == null) + { + smokePrototype = new ParticlePrototype(128,128,smoke,false); + smokePrototype.addKey(0 * 0.03333333333333333,0,0.4,0.4,1,1,1,0); + smokePrototype.addKey(2 * 0.03333333333333333,0,0.74,0.74,0.86,0.86,0.86,0.34); + smokePrototype.addKey(4 * 0.03333333333333333,0,0.94,0.94,0.78,0.78,0.78,0.54); + smokePrototype.addKey(6 * 0.03333333333333333,0,1,1,0.75,0.75,0.75,0.6); + smokePrototype.addKey(100 * 0.03333333333333333,0,1.5,1.5,0,0,0,0); + } + if(firePrototype == null) + { + firePrototype = new ParticlePrototype(128,128,fire,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + firePrototype.addKey(0 * 0.03333333333333333,0,0.4,0.4,1,1,1,0); + firePrototype.addKey(1 * 0.03333333333333333,0,0.85,0.85,1,1,1,0.85); + firePrototype.addKey(2 * 0.03333333333333333,0,1,1,1,1,1,1); + firePrototype.addKey(9 * 0.03333333333333333,0,1,1,0,0,0,0); + } + if(flashPrototype == null) + { + flashPrototype = new ParticlePrototype(128,128,flash,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + flashPrototype.addKey(0 * 0.03333333333333333,0,0.6,0.6,1,1,1,1); + flashPrototype.addKey(1 * 0.03333333333333333,0,1,1,1,1,1,1); + flashPrototype.addKey(3 * 0.03333333333333333,0,0.95,0.95,1,1,1,0.75); + flashPrototype.addKey(5 * 0.03333333333333333,0,0.79,0.79,1,1,1,0); + } + if(glowPrototype == null) + { + glowPrototype = new ParticlePrototype(256,256,glow,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + glowPrototype.addKey(0 * 0.03333333333333333,0,0.6,0.6,1,1,1,0.4); + glowPrototype.addKey(1 * 0.03333333333333333,0,1,1,1,1,1,0.45); + glowPrototype.addKey(8 * 0.03333333333333333,0,1,1,1,1,1,0); + } + if(sparkPrototype == null) + { + sparkPrototype = new ParticlePrototype(8,8,spark,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + sparkPrototype.addKey(0 * 0.03333333333333333,0,1,1,1,1,1,1); + sparkPrototype.addKey(4.5 * 0.03333333333333333,0,0.3,0.3,1,1,0.5,0.5); + } + if(fragmentPrototype == null) + { + fragmentPrototype = new ParticlePrototype(16,16,fragment,false); + fragmentPrototype.addKey(0 * 0.03333333333333333,0,0.5,0.5,2,1.4,0.7,0.6); + fragmentPrototype.addKey(7 * 0.03333333333333333,0,0.3,0.3,0.6,0.6,0.6,0.5); + } + boundBox = new BoundBox(); + boundBox.minX = -160; + boundBox.minY = -160; + boundBox.minZ = -90; + boundBox.maxX = 160; + boundBox.maxY = 160; + boundBox.maxZ = 200; + addKey(0 * 0.03333333333333333,this.keyFrame1); + addKey(1 * 0.03333333333333333,this.keyFrame2); + addKey(2 * 0.03333333333333333,this.keyFrame3); + addKey(3 * 0.03333333333333333,this.keyFrame4); + addKey(4 * 0.03333333333333333,this.keyFrame5); + addKey(4.7 * 0.03333333333333333,this.keyFrame6); + §_-DM§(§_-gV§[§_-kf§ - 1] + smokePrototype.lifeTime); + } + + private function keyFrame1(keyTime:Number, time:Number) : void + { + var i:int = 0; + var direction:Vector3D = null; + var t:Number = NaN; + var j:int = 0; + var deg:Number = Math.PI / 180; + var delta:Number = 30 * deg; + var bot:Number = -15 * deg; + var top:Number = 30 * deg; + this.randomDirection(45 * deg - delta,45 * deg + delta,bot,top,smokeDirections[0]); + this.randomDirection(135 * deg - delta,135 * deg + delta,bot,top,smokeDirections[1]); + this.randomDirection(225 * deg - delta,225 * deg + delta,bot,top,smokeDirections[2]); + this.randomDirection(315 * deg - delta,315 * deg + delta,bot,top,smokeDirections[3]); + this.randomDirection(0,Math.PI + Math.PI,40 * deg,90 * deg,smokeDirections[4]); + this.randomDirection(0,Math.PI + Math.PI,40 * deg,90 * deg,smokeDirections[5]); + this.randomDirection(0,Math.PI + Math.PI,40 * deg,90 * deg,smokeDirections[6]); + (smokeDirections[0] as Vector3D).scaleBy(0.8 + random() * 0.2); + (smokeDirections[1] as Vector3D).scaleBy(0.8 + random() * 0.2); + (smokeDirections[2] as Vector3D).scaleBy(0.8 + random() * 0.2); + (smokeDirections[3] as Vector3D).scaleBy(0.8 + random() * 0.2); + (smokeDirections[4] as Vector3D).scaleBy(1 + random() * 0.2); + (smokeDirections[5] as Vector3D).scaleBy(0.8 + random() * 0.2); + (smokeDirections[6] as Vector3D).scaleBy(0.8 + random() * 0.2); + for(i = 0; i < sparkDirectionsCount; i++) + { + direction = sparkDirections[i]; + this.randomDirection(0,360 * deg,bot,90 * deg,direction); + direction.scaleBy(0.4 + random() * 0.3); + } + for(i = 0; i < fragmentDirectionsCount; i++) + { + direction = fragmentDirections[i]; + this.randomDirection(0,360 * deg,bot,90 * deg,direction); + direction.scaleBy(0.4 + random() * 0.3); + } + for(i = 0; i < smokeDirectionsCount; i++) + { + direction = smokeDirections[i]; + this.calculatePosition(keyTime + littleTime,direction,pos); + this.displacePosition(time,1.17,pos); + smokePrototype.createParticle(this,time,pos,random() - 0.5,1.17,1.17,1,random() * smokePrototype.atlas.rangeLength); + this.calculatePosition((keyTime + littleTime) * 0.9,direction,pos); + firePrototype.createParticle(this,time,pos,random() - 0.5,1.07,1.07,1,random() * firePrototype.atlas.rangeLength); + this.calculatePosition(keyTime + 0 * 0.03333333333333333,direction,pos); + flashPrototype.createParticle(this,time,pos,random() - 0.5,0.8,0.8,1,random() * flashPrototype.atlas.rangeLength); + this.calculatePosition(keyTime + 1.3 * 0.03333333333333333,direction,pos); + flashPrototype.createParticle(this,time,pos,random() - 0.5,0.5,0.5,1,random() * flashPrototype.atlas.rangeLength); + this.calculatePosition(keyTime + 2 * 0.03333333333333333,direction,pos); + flashPrototype.createParticle(this,time,pos,random() - 0.5,0.3,0.3,1,random() * flashPrototype.atlas.rangeLength); + } + pos.x = 0; + pos.y = 0; + pos.z = 0; + flashPrototype.createParticle(this,time,pos,random() - 0.5,1,1,1,random() * flashPrototype.atlas.rangeLength); + glowPrototype.createParticle(this,time,pos,0,0.75,0.75,1,0); + for(i = 0; i < sparkDirectionsCount >> 1; i++) + { + direction = sparkDirections[i]; + t = keyTime + 0.1; + for(j = 0; j < 8; j++) + { + this.calculatePosition(time + t,direction,pos,0.4); + sparkPrototype.createParticle(this,time,pos,0,1 - j * 0.05,1 - j * 0.05,1,0); + t -= 0.003; + } + } + } + + private function keyFrame2(keyTime:Number, time:Number) : void + { + var i:int = 0; + var rnd:Number = NaN; + var direction:Vector3D = null; + var t:Number = NaN; + var j:int = 0; + for(i = 0; i < smokeDirectionsCount; i++) + { + direction = smokeDirections[i]; + this.calculatePosition(keyTime + littleTime,direction,pos); + this.displacePosition(time,0.95,pos); + smokePrototype.createParticle(this,time,pos,random() - 0.5,0.95,0.95,1,random() * smokePrototype.atlas.rangeLength); + this.calculatePosition((keyTime + littleTime) * 0.9,direction,pos); + firePrototype.createParticle(this,time,pos,random() - 0.5,0.87,0.87,1,random() * firePrototype.atlas.rangeLength); + rnd = 0.5 + random(); + this.calculatePosition(time + littleTime,direction,pos); + fragmentPrototype.createParticle(this,time,pos,random() * 6.28,rnd,rnd,1,random() * fragmentPrototype.atlas.rangeLength); + } + for(i = sparkDirectionsCount >> 1; i < sparkDirectionsCount; i++) + { + direction = sparkDirections[i]; + t = keyTime + 0.1; + for(j = 0; j < 8; j++) + { + this.calculatePosition(time + t,direction,pos,0.4); + sparkPrototype.createParticle(this,time,pos,0,1 - j * 0.05,1 - j * 0.05,1,0); + t -= 0.003; + } + } + for(i = 0; i < fragmentDirectionsCount; i++) + { + direction = fragmentDirections[i]; + rnd = 0.5 + random(); + this.calculatePosition(time + littleTime,direction,pos); + fragmentPrototype.createParticle(this,time,pos,random() * 6.28,rnd,rnd,1,random() * fragmentPrototype.atlas.rangeLength); + } + } + + private function keyFrame3(keyTime:Number, time:Number) : void + { + var direction:Vector3D = null; + for(var i:int = 0; i < smokeDirectionsCount; i++) + { + direction = smokeDirections[i]; + this.calculatePosition(keyTime + littleTime,direction,pos); + this.displacePosition(time,0.85,pos); + smokePrototype.createParticle(this,time,pos,random() - 0.5,0.85,0.85,1,random() * smokePrototype.atlas.rangeLength); + this.calculatePosition((keyTime + littleTime) * 0.9,direction,pos); + firePrototype.createParticle(this,time,pos,random() - 0.5,0.78,0.78,0.73,random() * firePrototype.atlas.rangeLength); + } + } + + private function keyFrame4(keyTime:Number, time:Number) : void + { + var direction:Vector3D = null; + for(var i:int = 0; i < smokeDirectionsCount; i++) + { + direction = smokeDirections[i]; + this.calculatePosition(keyTime + littleTime,direction,pos); + this.displacePosition(time,0.7,pos); + smokePrototype.createParticle(this,time,pos,random() - 0.5,0.7,0.7,1,random() * smokePrototype.atlas.rangeLength); + this.calculatePosition((keyTime + littleTime) * 0.9,direction,pos); + firePrototype.createParticle(this,time,pos,random() - 0.5,0.44,0.44,0.53,random() * firePrototype.atlas.rangeLength); + } + } + + private function keyFrame5(keyTime:Number, time:Number) : void + { + var direction:Vector3D = null; + var rnd:Number = NaN; + for(var i:int = 0; i < smokeDirectionsCount; i++) + { + direction = smokeDirections[i]; + this.calculatePosition(keyTime + littleTime,direction,pos); + this.displacePosition(time,0.4,pos); + smokePrototype.createParticle(this,time,pos,random() - 0.5,0.4,0.4,1,random() * smokePrototype.atlas.rangeLength); + } + for(var j:int = 0; j < 3; j++) + { + pos.x = random() * 50 - 25; + pos.y = random() * 50 - 25; + pos.z = random() * 20 - 10; + this.displacePosition(time,0.18,pos); + rnd = 0.5 + random() * 0.5; + smokePrototype.createParticle(this,time,pos,random() - 0.5,rnd,rnd,1,random() * smokePrototype.atlas.rangeLength); + pos.x = random() * 10 - 5; + pos.y = random() * 10 - 5; + pos.z = random() * 10 - 5; + rnd = 0.3 + random() * 0.5; + firePrototype.createParticle(this,time,pos,random() - 0.5,rnd,rnd,1,random() * firePrototype.atlas.rangeLength); + } + } + + private function keyFrame6(keyTime:Number, time:Number) : void + { + var direction:Vector3D = null; + var rnd:Number = NaN; + for(var i:int = 0; i < smokeDirectionsCount; ) + { + direction = smokeDirections[i]; + if(random() > 0.25) + { + this.calculatePosition(keyTime + littleTime,direction,pos); + this.displacePosition(time,0.25,pos); + smokePrototype.createParticle(this,time,pos,random() - 0.5,0.19,0.19,1,random() * smokePrototype.atlas.rangeLength); + } + i++; + } + for(var j:int = 0; j < 3; j++) + { + pos.x = random() * 50 - 25; + pos.y = random() * 50 - 25; + pos.z = random() * 20 - 10; + this.displacePosition(time,0.16,pos); + rnd = 0.5 + random() * 0.5; + smokePrototype.createParticle(this,time,pos,random() - 0.5,rnd,rnd,1,random() * smokePrototype.atlas.rangeLength); + } + } + + private function randomDirection(xyBegin:Number, xyEnd:Number, zBegin:Number, zEnd:Number, result:Vector3D) : void + { + var xyAng:Number = xyBegin + random() * (xyEnd - xyBegin); + var zAng:Number = zBegin + random() * (zEnd - zBegin); + var cosZAng:Number = Number(Math.cos(zAng)); + result.x = Math.cos(xyAng) * cosZAng; + result.y = Math.sin(xyAng) * cosZAng; + result.z = Math.sin(zAng); + } + + private function calculatePosition(time:Number, direction:Vector3D, result:Vector3D, gravityInfluence:Number = 1) : void + { + result.x = time * movingSpeed * direction.x; + result.y = time * movingSpeed * direction.y; + result.z = time * movingSpeed * direction.z - time * time * gravity * gravityInfluence; + } + + private function displacePosition(time:Number, factor:Number, result:Vector3D) : void + { + result.x += time * windSpeed * §_-Ta§.wind.x; + result.y += time * windSpeed * §_-Ta§.wind.y; + result.z += time * windSpeed * §_-Ta§.wind.z + time * liftSpeed * factor; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as new file mode 100644 index 0000000..d6e27e4 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as @@ -0,0 +1,52 @@ +package alternativa.tanks.game.weapons.ammunition.splashhit.debug +{ + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.effects.ParticlePrototype; + import alternativa.engine3d.effects.TextureAtlas; + import alternativa.engine3d.effects.§_-SG§; + import flash.display3D.Context3DBlendFactor; + import flash.geom.Vector3D; + + public class SmokyShot extends §_-SG§ + { + private static var shotPrototype:ParticlePrototype; + + private static var pos:Vector3D = new Vector3D(); + + public function SmokyShot(shot:TextureAtlas) + { + super(); + if(shotPrototype == null) + { + shotPrototype = new ParticlePrototype(50,50,shot,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + shotPrototype.addKey(0 * 0.03333333333333333,0,0.85,0.85,1,1,1,0.6); + shotPrototype.addKey(1 * 0.03333333333333333,0,1,1,1,1,1,1); + shotPrototype.addKey(2 * 0.03333333333333333,0,1,1,1,1,1,0.5); + shotPrototype.addKey(3 * 0.03333333333333333,0,1,1,1,1,1,0.5); + } + boundBox = new BoundBox(); + boundBox.minX = -100; + boundBox.minY = -100; + boundBox.minZ = -100; + boundBox.maxX = 100; + boundBox.maxY = 100; + boundBox.maxZ = 100; + addKey(0 * 0.03333333333333333,this.keyFrame1); + §_-DM§(§_-gV§[§_-kf§ - 1] + shotPrototype.lifeTime); + } + + private function keyFrame1(keyTime:Number, time:Number) : void + { + pos.copyFrom(§_-cF§); + pos.scaleBy(time * 100 + 25); + shotPrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,0); + pos.copyFrom(§_-cF§); + pos.scaleBy(time * 300 + 32); + shotPrototype.createParticle(this,time,pos,random() * 6.28,0.88,0.88,1,0); + pos.copyFrom(§_-cF§); + pos.scaleBy(time * 400 + 39); + shotPrototype.createParticle(this,time,pos,random() * 6.28,0.66,0.66,1,0); + } + } +} + diff --git a/src/package_95/name_281.as b/src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as similarity index 58% rename from src/package_95/name_281.as rename to src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as index 2ce9bb3..f894166 100644 --- a/src/package_95/name_281.as +++ b/src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as @@ -1,31 +1,31 @@ -package package_95 +package alternativa.tanks.game.weapons.conicareadamage { - import flash.utils.Dictionary; + import alternativa.math.Vector3; import alternativa.tanks.game.EntityComponent; import alternativa.tanks.game.GameKernel; - import package_46.name_194; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; import alternativa.tanks.game.weapons.IContinuousActionWeapon; - import package_75.class_15; - import package_75.name_236; - import package_79.name_282; + import alternativa.tanks.game.weapons.targeting.ConicAreaTargetingSystem; + import flash.utils.Dictionary; - public class name_281 extends EntityComponent implements IContinuousActionWeapon + public class ConicAreaWeaponComponent extends EntityComponent implements IContinuousActionWeapon { - private static var barrelOrigin:name_194 = new name_194(); + private static var barrelOrigin:Vector3 = new Vector3(); - private static var gunDirection:name_194 = new name_194(); + private static var gunDirection:Vector3 = new Vector3(); - private static var gunElevationAxis:name_194 = new name_194(); + private static var gunElevationAxis:Vector3 = new Vector3(); private static var BARREL_INDEX:int = 0; - private var turret:class_15; + private var turret:ITurretPhysicsComponent; - private var chassis:name_236; + private var chassis:IChassisPhysicsComponent; - private var targetingSystem:name_282; + private var targetingSystem:ConicAreaTargetingSystem; - private var effects:class_28; + private var effects:IConicAreaWeaponSFX; private var fullDamageRange:Number; @@ -33,15 +33,15 @@ package package_95 private var targetToDistance:Dictionary; - private var var_459:Dictionary; + private var §_-9m§:Dictionary; - private var callback:name_545; + private var callback:IConicAreaWeaponCallback; private var isLocal:Boolean; private var createStarted:Boolean; - public function name_281(fullDamageRange:Number, rangeDiscretization:Number, targetingSystem:name_282, callback:name_545, isLocal:Boolean, createStarted:Boolean) + public function ConicAreaWeaponComponent(fullDamageRange:Number, rangeDiscretization:Number, targetingSystem:ConicAreaTargetingSystem, callback:IConicAreaWeaponCallback, isLocal:Boolean, createStarted:Boolean) { super(); this.fullDamageRange = fullDamageRange; @@ -51,19 +51,19 @@ package package_95 this.isLocal = isLocal; this.createStarted = createStarted; this.targetToDistance = new Dictionary(); - this.var_459 = new Dictionary(); + this.§_-9m§ = new Dictionary(); } - public function method_383(callback:name_545) : void + public function setCallback(callback:IConicAreaWeaponCallback) : void { this.callback = callback; } override public function initComponent() : void { - this.turret = class_15(entity.getComponentStrict(class_15)); - this.chassis = name_236(entity.getComponentStrict(name_236)); - this.effects = class_28(entity.getComponentStrict(class_28)); + this.turret = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + this.chassis = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); + this.effects = IConicAreaWeaponSFX(entity.getComponentStrict(IConicAreaWeaponSFX)); } override public function addToGame(gameKernel:GameKernel) : void @@ -83,7 +83,7 @@ package package_95 this.effects.start(); if(this.callback != null) { - this.callback.name_548(); + this.callback.onConicAreaWeaponStart(); } } @@ -93,7 +93,7 @@ package package_95 this.effects.stop(); if(this.callback != null) { - this.callback.name_547(); + this.callback.onConicAreaWeaponStop(); } if(this.isLocal) { @@ -114,8 +114,8 @@ package package_95 var tmp:Dictionary = null; this.turret.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); var barrelLength:Number = Number(this.turret.getBarrelLength(BARREL_INDEX)); - this.targetingSystem.method_433(this.chassis.getBody(),barrelOrigin,barrelLength,0,gunDirection,gunElevationAxis,this.var_459); - for(key in this.var_459) + this.targetingSystem.getTargets(this.chassis.getBody(),barrelOrigin,barrelLength,0,gunDirection,gunElevationAxis,this.§_-9m§); + for(key in this.§_-9m§) { storedDistance = Number(this.targetToDistance[key]); if(isNaN(storedDistance)) @@ -123,7 +123,7 @@ package package_95 targetsChanged = true; break; } - newDistance = Number(this.var_459[key]); + newDistance = Number(this.§_-9m§[key]); if(storedDistance > this.fullDamageRange || newDistance > this.fullDamageRange) { difference = newDistance - storedDistance; @@ -138,7 +138,7 @@ package package_95 { for(key in this.targetToDistance) { - if(this.var_459[key] == null) + if(this.§_-9m§[key] == null) { targetsChanged = true; break; @@ -148,16 +148,16 @@ package package_95 if(targetsChanged) { tmp = this.targetToDistance; - this.targetToDistance = this.var_459; - this.var_459 = tmp; + this.targetToDistance = this.§_-9m§; + this.§_-9m§ = tmp; if(this.callback != null) { - this.callback.name_546(this.targetToDistance); + this.callback.onConicAreaWeaponTargetSetChange(this.targetToDistance); } } - for(key in this.var_459) + for(key in this.§_-9m§) { - delete this.var_459[key]; + delete this.§_-9m§[key]; } } } diff --git a/src/alternativa/tanks/game/weapons/conicareadamage/IConicAreaWeaponCallback.as b/src/alternativa/tanks/game/weapons/conicareadamage/IConicAreaWeaponCallback.as new file mode 100644 index 0000000..efd0d9b --- /dev/null +++ b/src/alternativa/tanks/game/weapons/conicareadamage/IConicAreaWeaponCallback.as @@ -0,0 +1,14 @@ +package alternativa.tanks.game.weapons.conicareadamage +{ + import flash.utils.Dictionary; + + public interface IConicAreaWeaponCallback + { + function onConicAreaWeaponStart() : void; + + function onConicAreaWeaponStop() : void; + + function onConicAreaWeaponTargetSetChange(param1:Dictionary) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/conicareadamage/IConicAreaWeaponSFX.as b/src/alternativa/tanks/game/weapons/conicareadamage/IConicAreaWeaponSFX.as new file mode 100644 index 0000000..ecec4f1 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/conicareadamage/IConicAreaWeaponSFX.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.weapons.conicareadamage +{ + public interface IConicAreaWeaponSFX + { + function start() : void; + + function stop() : void; + } +} + diff --git a/src/package_87/name_267.as b/src/alternativa/tanks/game/weapons/debug/DebugWeaponDistanceWeakening.as similarity index 67% rename from src/package_87/name_267.as rename to src/alternativa/tanks/game/weapons/debug/DebugWeaponDistanceWeakening.as index 88b3e7a..f06f7ff 100644 --- a/src/package_87/name_267.as +++ b/src/alternativa/tanks/game/weapons/debug/DebugWeaponDistanceWeakening.as @@ -1,8 +1,8 @@ -package package_87 +package alternativa.tanks.game.weapons.debug { import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; - public class name_267 implements IWeaponDistanceWeakening + public class DebugWeaponDistanceWeakening implements IWeaponDistanceWeakening { private var maximumDamageRadius:Number; @@ -10,7 +10,7 @@ package package_87 private var minimumDamageCoefficient:Number; - public function name_267(maximumDamageRadius:Number, minimumDamageRadius:Number, minimumDamageCoefficient:Number) + public function DebugWeaponDistanceWeakening(maximumDamageRadius:Number, minimumDamageRadius:Number, minimumDamageCoefficient:Number) { super(); this.maximumDamageRadius = maximumDamageRadius; @@ -18,7 +18,7 @@ package package_87 this.minimumDamageCoefficient = minimumDamageCoefficient; } - public function name_554(distance:Number) : Number + public function getWeakeningCoefficient(distance:Number) : Number { if(distance <= this.maximumDamageRadius) { @@ -31,12 +31,12 @@ package package_87 return this.minimumDamageCoefficient + (1 - this.minimumDamageCoefficient) * (this.minimumDamageRadius - distance) / (this.minimumDamageRadius - this.maximumDamageRadius); } - public function method_467() : Number + public function getMaximumDamageRadius() : Number { return this.maximumDamageRadius; } - public function method_468() : Number + public function getMinimumDamageRadius() : Number { return this.minimumDamageRadius; } diff --git a/src/alternativa/tanks/game/weapons/effects/IWeaponShotEffects.as b/src/alternativa/tanks/game/weapons/effects/IWeaponShotEffects.as new file mode 100644 index 0000000..d86f3c3 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/effects/IWeaponShotEffects.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.weapons.effects +{ + import alternativa.math.Vector3; + + public interface IWeaponShotEffects + { + function createShotEffects(param1:int, param2:Vector3, param3:Vector3, param4:Vector3, param5:Vector3) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as b/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as new file mode 100644 index 0000000..45690e7 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as @@ -0,0 +1,157 @@ +package alternativa.tanks.game.weapons.flamethrower +{ + import alternativa.engine3d.core.BoundBox; + import alternativa.engine3d.effects.ParticlePrototype; + import alternativa.engine3d.effects.TextureAtlas; + import alternativa.engine3d.effects.§_-SG§; + import flash.display3D.Context3DBlendFactor; + import flash.geom.Vector3D; + + public class FlameThrower extends §_-SG§ + { + private static var smokePrototype1:ParticlePrototype; + + private static var smokePrototype2:ParticlePrototype; + + private static var flashPrototype1:ParticlePrototype; + + private static var flashPrototype2:ParticlePrototype; + + private static var flashPrototype3:ParticlePrototype; + + private static var firePrototype:ParticlePrototype; + + private static var pos:Vector3D = new Vector3D(); + + private static var dir:Vector3D = new Vector3D(); + + private static var liftSpeed:Number = 25; + + private static var windSpeed:Number = 10; + + public function FlameThrower(smoke:TextureAtlas, fire:TextureAtlas, flash:TextureAtlas, live:Number = 1) + { + var keyTime:Number = NaN; + super(); + if(flashPrototype1 == null) + { + flashPrototype1 = new ParticlePrototype(50,50,flash,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + flashPrototype1.addKey(0 * 0.03333333333333333,0,0.13,0.13,1,1,1,0.8); + flashPrototype1.addKey(2 * 0.03333333333333333,0,0.4,0.4,1,1,1,1); + flashPrototype1.addKey(6 * 0.03333333333333333,0,1.1,1.1,1,1,1,0.8); + flashPrototype1.addKey(11 * 0.03333333333333333,0,1.26,1.26,1,1,1,0.8); + flashPrototype1.addKey(17 * 0.03333333333333333,0,1.47,1.47,1,1,0.3,0); + flashPrototype2 = new ParticlePrototype(50,50,flash,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + flashPrototype2.addKey(1 * 0.03333333333333333,0,0.13,0.13,1,1,1,0.8); + flashPrototype2.addKey(3 * 0.03333333333333333,0,0.3,0.3,1,1,1,1); + flashPrototype2.addKey(8 * 0.03333333333333333,0,0.8,0.8,1,1,1,0.5); + flashPrototype2.addKey(12 * 0.03333333333333333,0,1.26,1.26,1,1,1,0); + flashPrototype3 = new ParticlePrototype(50,50,flash,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + flashPrototype3.addKey(2 * 0.03333333333333333,0,0.13,0.13,1,1,1,0.8); + flashPrototype3.addKey(4 * 0.03333333333333333,0,0.3,0.3,1,1,1,1); + flashPrototype3.addKey(8 * 0.03333333333333333,0,0.6,0.6,1,1,1,0); + } + if(firePrototype == null) + { + firePrototype = new ParticlePrototype(50,50,fire,true); + firePrototype.addKey(6 * 0.03333333333333333,0,1.53,1.53,1,1,1,0); + firePrototype.addKey(11 * 0.03333333333333333,0,1.53,1.53,1,1,1,0.6); + firePrototype.addKey(17 * 0.03333333333333333,0,1.85,1.85,1,0.7,0,0.8); + firePrototype.addKey(24 * 0.03333333333333333,0,1.98,1.98,1,0.3,0,0.2); + } + if(smokePrototype1 == null) + { + smokePrototype1 = new ParticlePrototype(50,50,smoke,true); + smokePrototype1.addKey(6 * 0.03333333333333333,0,1.51,1.51,1,1,1,0); + smokePrototype1.addKey(11 * 0.03333333333333333,0,1.92,1.92,1,1,1,0.9); + smokePrototype1.addKey(17 * 0.03333333333333333,0,2.49,2.49,0.5,0.5,0.5,1); + smokePrototype1.addKey(24 * 0.03333333333333333,0,2.66,2.66,0,0,0,0); + smokePrototype2 = new ParticlePrototype(50,50,smoke,false); + smokePrototype2.addKey(15 * 0.03333333333333333,0,1.51,1.51,1,1,1,0); + smokePrototype2.addKey(20 * 0.03333333333333333,0,1.92,1.92,0.8,0.8,0.8,0.3); + smokePrototype2.addKey(26 * 0.03333333333333333,0,2.49,2.49,0.5,0.5,0.5,0.6); + smokePrototype2.addKey(55 * 0.03333333333333333,0,2.66,2.66,0,0,0,0); + } + boundBox = new BoundBox(); + boundBox.minX = -350; + boundBox.minY = -350; + boundBox.minZ = -350; + boundBox.maxX = 350; + boundBox.maxY = 350; + boundBox.maxZ = 350; + var i:int = 0; + while(true) + { + keyTime = i * 2 * 0.03333333333333333; + if(keyTime >= live) + { + break; + } + addKey(keyTime,this.keyFrame1); + i++; + } + §_-DM§(§_-gV§[§_-kf§ - 1] + smokePrototype2.lifeTime); + } + + private function keyFrame1(keyTime:Number, time:Number) : void + { + var ang:Number = 6 * 3.14 / 180; + dir.x = §_-cF§.x; + dir.y = §_-cF§.y; + dir.z = §_-cF§.z + 0.2; + dir.normalize(); + this.randomDirection(§_-cF§,ang,pos); + pos.scaleBy(time * 300 + 10); + flashPrototype1.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); + this.randomDirection(§_-cF§,ang,pos); + pos.scaleBy((time - 0.03333333333333333) * 150 + 10); + flashPrototype2.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); + this.randomDirection(§_-cF§,ang,pos); + pos.scaleBy((time - 0.03333333333333333 - 0.03333333333333333) * 80 + 10); + flashPrototype3.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); + this.randomDirection(§_-cF§,ang,pos); + pos.scaleBy(time * 240 + 10); + firePrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,-6 * 0.03333333333333333 * firePrototype.atlas.fps); + this.randomDirection(dir,ang,pos); + pos.scaleBy(time * 300 + 10); + firePrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,-6 * 0.03333333333333333 * firePrototype.atlas.fps); + this.randomDirection(§_-cF§,ang,pos); + pos.scaleBy(time * 300 + 10); + smokePrototype1.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); + this.randomDirection(dir,ang,pos); + pos.scaleBy(time * 330 + 10); + smokePrototype1.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); + this.randomDirection(dir,ang,pos); + pos.scaleBy(time * 40 + 100 + random() * 120); + pos.x += random() * 50 - 25; + pos.y += random() * 50 - 25; + pos.z += random() * 50 - 25; + this.displacePosition(time - 15 * 0.03333333333333333,1,pos); + smokePrototype2.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); + } + + private function randomDirection(direction:Vector3D, angle:Number, result:Vector3D) : void + { + var x:Number = random() * 2 - 1; + var y:Number = random() * 2 - 1; + var z:Number = random() * 2 - 1; + result.x = direction.z * y - direction.y * z; + result.y = direction.x * z - direction.z * x; + result.z = direction.y * x - direction.x * y; + result.normalize(); + result.scaleBy(Math.sin(angle / 2)); + result.x += direction.x; + result.y += direction.y; + result.z += direction.z; + result.normalize(); + } + + private function displacePosition(time:Number, factor:Number, result:Vector3D) : void + { + result.x += time * windSpeed * §_-Ta§.wind.x; + result.y += time * windSpeed * §_-Ta§.wind.y; + result.z += time * windSpeed * §_-Ta§.wind.z + time * liftSpeed * factor; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXComponent.as b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXComponent.as new file mode 100644 index 0000000..5a51f20 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXComponent.as @@ -0,0 +1,95 @@ +package alternativa.tanks.game.weapons.flamethrower +{ + import alternativa.engine3d.effects.TextureAtlas; + import alternativa.engine3d.resources.TextureResource; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.physics.IChassisPhysicsComponent; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.weapons.conicareadamage.IConicAreaWeaponSFX; + + public class FlamethrowerSFXComponent extends EntityComponent implements IConicAreaWeaponSFX + { + private static var flamethrowerSmokeAtlas:TextureAtlas; + + private static var flamethrowerFlashAtlas:TextureAtlas; + + private static var flamethrowerFireAtlas:TextureAtlas; + + private var gameKernel:GameKernel; + + private var effect:FlamethrowerGraphicEffect; + + private var range:Number; + + private var coneAngle:Number; + + private var maxParticles:int; + + private var particleSpeed:Number; + + private var sfxData:FlamethrowerSFXData; + + private var chassis:IChassisPhysicsComponent; + + private var turret:ITurretPhysicsComponent; + + public function FlamethrowerSFXComponent(range:Number, coneAngle:Number, maxParticles:int, particleSpeed:Number, sfxData:FlamethrowerSFXData) + { + super(); + this.range = range; + this.coneAngle = coneAngle; + this.maxParticles = maxParticles; + this.particleSpeed = particleSpeed; + this.sfxData = sfxData; + this.chassis = this.chassis; + this.turret = this.turret; + } + + public static function init(diffuse:TextureResource, opacity:TextureResource) : void + { + flamethrowerSmokeAtlas = new TextureAtlas(diffuse,opacity,8,8,0,16,30,true); + flamethrowerFlashAtlas = new TextureAtlas(diffuse,opacity,8,8,16,16,60,true); + flamethrowerFireAtlas = new TextureAtlas(diffuse,opacity,8,8,32,32,60,false); + } + + override public function initComponent() : void + { + this.turret = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + this.chassis = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + this.gameKernel = null; + } + + public function start() : void + { + if(this.effect != null) + { + this.effect.kill(); + } + this.effect = FlamethrowerGraphicEffect(this.gameKernel.getObjectPoolManager().getObject(FlamethrowerGraphicEffect)); + var collisionDetector:ICollisionDetector = this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector; + this.effect.init(this.turret,flamethrowerSmokeAtlas,flamethrowerFlashAtlas,flamethrowerFireAtlas); + this.gameKernel.getRenderSystem().each(this.effect); + } + + public function stop() : void + { + if(this.effect != null) + { + this.effect.kill(); + } + this.effect = null; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXData.as b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXData.as new file mode 100644 index 0000000..5c655ee --- /dev/null +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXData.as @@ -0,0 +1,20 @@ +package alternativa.tanks.game.weapons.flamethrower +{ + import alternativa.engine3d.materials.Material; + import alternativa.tanks.game.effects.ColorTransformEntry; + + public class FlamethrowerSFXData + { + public var frames:Vector.; + + public var colorTransformPoints:Vector.; + + public function FlamethrowerSFXData(frames:Vector., colorTransformPoints:Vector.) + { + super(); + this.frames = frames; + this.colorTransformPoints = colorTransformPoints; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/railgun/IRailgunTargetEvaluator.as b/src/alternativa/tanks/game/weapons/railgun/IRailgunTargetEvaluator.as new file mode 100644 index 0000000..774cdc5 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/railgun/IRailgunTargetEvaluator.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.weapons.railgun +{ + import alternativa.physics.Body; + + public interface IRailgunTargetEvaluator + { + function getTargetPriority(param1:Body, param2:Number) : Number; + } +} + diff --git a/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as new file mode 100644 index 0000000..151895a --- /dev/null +++ b/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as @@ -0,0 +1,134 @@ +package alternativa.tanks.game.weapons.targeting +{ + import alternativa.math.Matrix3; + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + import flash.utils.Dictionary; + + public class ConicAreaTargetingSystem + { + private static const COLLISION_MASK:int = CollisionGroup.WEAPON | CollisionGroup.STATIC; + + private var filter:SimpleRaycastFilter = new SimpleRaycastFilter(); + + private var rayHit:RayHit = new RayHit(); + + private var range:Number; + + private var §_-HN§:Number; + + private var numRays:int; + + private var numSteps:int; + + private var collisionDetector:ICollisionDetector; + + private var sideAxis:Vector3 = new Vector3(); + + private var rayDirection:Vector3 = new Vector3(); + + private var §_-84§:Vector3 = new Vector3(); + + private var §_-2z§:Matrix3 = new Matrix3(); + + private var §_-FX§:Matrix3 = new Matrix3(); + + private var targetToDistance:Dictionary; + + private var targetEvaluator:IGenericTargetEvaluator; + + public function ConicAreaTargetingSystem(range:Number, coneAngle:Number, numRays:int, numSteps:int, collisionDetector:ICollisionDetector, targetEvaluator:IGenericTargetEvaluator) + { + super(); + this.range = range; + this.§_-HN§ = 0.5 * coneAngle; + this.numRays = numRays; + this.numSteps = numSteps; + this.collisionDetector = collisionDetector; + this.targetEvaluator = targetEvaluator; + } + + public function getTargets(shooter:Body, barrelOrigin:Vector3, barrelLength:Number, originOffsetCoeff:Number, gunDirection:Vector3, gunElevationAxis:Vector3, targetToDistance:Dictionary) : void + { + var key:* = undefined; + var body:Body = null; + var _loc11_:Number = NaN; + var _loc12_:Number = NaN; + var _loc13_:int = 0; + var realDistance:Number = NaN; + this.filter.body = shooter; + this.targetToDistance = targetToDistance; + var originOffset:Number = originOffsetCoeff * barrelLength; + if(this.collisionDetector.raycast(barrelOrigin,gunDirection,COLLISION_MASK,barrelLength,this.filter,this.rayHit)) + { + body = this.rayHit.primitive.body; + if(body != null && this.targetEvaluator.getTargetPriority(shooter,body,0,0) > 0) + { + targetToDistance[body] = 0; + } + } + else + { + this.sideAxis.copy(gunElevationAxis); + this.§_-84§.copy(barrelOrigin).addScaled(barrelLength - originOffset,gunDirection); + _loc11_ = this.range + originOffset; + this.checkDirection(shooter,this.§_-84§,gunDirection,_loc11_); + this.§_-FX§.fromAxisAngle(gunDirection,Math.PI / this.numSteps); + _loc12_ = this.§_-HN§ / this.numRays; + for(_loc13_ = 0; _loc13_ < this.numSteps; _loc13_++) + { + this.processSector(shooter,this.§_-84§,_loc11_,gunDirection,this.sideAxis,this.numRays,_loc12_); + this.processSector(shooter,this.§_-84§,_loc11_,gunDirection,this.sideAxis,this.numRays,-_loc12_); + this.sideAxis.transform3(this.§_-FX§); + } + } + for(key in targetToDistance) + { + realDistance = targetToDistance[key] - originOffset; + if(realDistance < 0) + { + realDistance = 0; + } + targetToDistance[key] = realDistance; + } + this.filter.body = null; + this.targetToDistance = null; + } + + private function processSector(shooter:Body, rayOrigin:Vector3, rayLength:Number, gunDirection:Vector3, rotationAxis:Vector3, numRays:int, angleStep:Number) : void + { + this.§_-2z§.fromAxisAngle(rotationAxis,angleStep); + this.rayDirection.copy(gunDirection); + for(var i:int = 0; i < numRays; i++) + { + this.rayDirection.transform3(this.§_-2z§); + this.checkDirection(shooter,rayOrigin,this.rayDirection,rayLength); + } + } + + private function checkDirection(shooter:Body, rayOrigin:Vector3, rayDirection:Vector3, rayLength:Number) : void + { + var body:Body = null; + var realDistance:Number = NaN; + var storedDistance:Number = NaN; + if(this.collisionDetector.raycast(rayOrigin,rayDirection,COLLISION_MASK,rayLength,this.filter,this.rayHit)) + { + body = this.rayHit.primitive.body; + if(body != null && this.targetEvaluator.getTargetPriority(shooter,body,0,0) > 0) + { + realDistance = this.rayHit.t; + storedDistance = Number(this.targetToDistance[body]); + if(Boolean(isNaN(storedDistance)) || storedDistance > realDistance) + { + this.targetToDistance[body] = realDistance; + } + } + } + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as new file mode 100644 index 0000000..30a840e --- /dev/null +++ b/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as @@ -0,0 +1,142 @@ +package alternativa.tanks.game.weapons.targeting +{ + import alternativa.math.Matrix3; + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + + public class EnergyTargetingSystem implements IEnergyTargetingSystem + { + private static const RICOCHET_NORMAL_OFFSET:Number = 0.01; + + private static var COLLISION_MASK:int = CollisionGroup.STATIC | CollisionGroup.WEAPON; + + private static var direction:Vector3 = new Vector3(); + + private static var currDirection:Vector3 = new Vector3(); + + private static var currOrigin:Vector3 = new Vector3(); + + private var angleUp:Number; + + private var numRaysUp:int; + + private var angleDown:Number; + + private var numRaysDown:int; + + private var collisionDetector:ICollisionDetector; + + private var maxRicochets:int; + + private var targetEvaluator:IGenericTargetEvaluator; + + private var rayHit:RayHit = new RayHit(); + + private var filter:SimpleRaycastFilter = new SimpleRaycastFilter(); + + private var matrix:Matrix3 = new Matrix3(); + + private var §_-KF§:Number; + + public function EnergyTargetingSystem(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, maxRicochets:int, collisionDetector:ICollisionDetector, targetValidator:IGenericTargetEvaluator) + { + super(); + this.angleUp = angleUp; + this.numRaysUp = numRaysUp; + this.angleDown = angleDown; + this.numRaysDown = numRaysDown; + this.maxRicochets = maxRicochets; + this.collisionDetector = collisionDetector; + this.targetEvaluator = targetValidator; + } + + public function setCollisionDetector(collisionDetector:ICollisionDetector) : void + { + this.collisionDetector = collisionDetector; + } + + public function setTargetValidator(validator:IGenericTargetEvaluator) : void + { + this.targetEvaluator = validator; + } + + public function getShotDirection(shooter:Body, muzzlePosition:Vector3, barrelDirection:Vector3, gunElevationAxis:Vector3, maxDistance:Number, result:Vector3) : void + { + this.§_-KF§ = 0; + this.checkDirection(shooter,muzzlePosition,barrelDirection,maxDistance,0,result); + this.checkSector(shooter,muzzlePosition,barrelDirection,gunElevationAxis,maxDistance,this.angleUp / this.numRaysUp,this.numRaysUp,result); + this.checkSector(shooter,muzzlePosition,barrelDirection,gunElevationAxis,maxDistance,-this.angleDown / this.numRaysDown,this.numRaysDown,result); + this.filter.body = null; + if(this.§_-KF§ == 0) + { + result.copy(barrelDirection); + } + } + + private function checkDirection(shooter:Body, origin:Vector3, direction:Vector3, maxDistance:Number, angle:Number, result:Vector3) : void + { + var body:Body = null; + var distance:Number = NaN; + var targetPriority:Number = NaN; + var _loc12_:Vector3 = null; + var remainingDistance:Number = maxDistance; + currOrigin.copy(origin); + currDirection.copy(direction); + this.filter.body = shooter; + for(var ricochetCount:int = 0; remainingDistance > 0; ) + { + if(!this.collisionDetector.raycast(currOrigin,currDirection,COLLISION_MASK,remainingDistance,this.filter,this.rayHit)) + { + return; + } + remainingDistance -= this.rayHit.t; + if(remainingDistance < 0) + { + remainingDistance = 0; + } + body = this.rayHit.primitive.body; + if(body != null) + { + distance = maxDistance - remainingDistance; + targetPriority = Number(this.targetEvaluator.getTargetPriority(shooter,body,distance,angle)); + if(targetPriority > this.§_-KF§) + { + this.§_-KF§ = targetPriority; + result.copy(direction); + } + return; + } + ricochetCount++; + if(ricochetCount > this.maxRicochets) + { + return; + } + this.filter.body = null; + _loc12_ = this.rayHit.normal; + currDirection.addScaled(-2 * currDirection.dot(_loc12_),_loc12_); + currOrigin.copy(this.rayHit.position).addScaled(RICOCHET_NORMAL_OFFSET,_loc12_); + } + } + + private function checkSector(shooter:Body, origin:Vector3, gunDirection:Vector3, gunElevationAxis:Vector3, maxDistance:Number, angleStep:Number, numRays:int, result:Vector3) : void + { + direction.copy(gunDirection); + this.matrix.fromAxisAngle(gunElevationAxis,angleStep); + if(angleStep < 0) + { + angleStep = -angleStep; + } + var angle:Number = angleStep; + for(var i:int = 0; i < numRays; i++,angle += angleStep) + { + direction.transform3(this.matrix); + this.checkDirection(shooter,origin,direction,maxDistance,angle,result); + } + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as new file mode 100644 index 0000000..0dacda8 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as @@ -0,0 +1,121 @@ +package alternativa.tanks.game.weapons.targeting +{ + import alternativa.math.Matrix3; + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.physics.SimpleRaycastFilter; + import alternativa.tanks.game.weapons.IGenericTargetingSystem; + + public class GenericTargetingSystem implements IGenericTargetingSystem + { + private static var collisionMask:int = CollisionGroup.STATIC | CollisionGroup.WEAPON; + + private static var rayDirection:Vector3 = new Vector3(); + + private var §_-IP§:Number; + + private var §_-3V§:Vector3 = new Vector3(); + + private var matrix:Matrix3 = new Matrix3(); + + private var rayHit:RayHit = new RayHit(); + + private var filter:SimpleRaycastFilter = new SimpleRaycastFilter(); + + private var angleUp:Number; + + private var numRaysUp:int; + + private var angleDown:Number; + + private var numRaysDown:int; + + private var collisionDetector:ICollisionDetector; + + private var targetValidator:IGenericTargetEvaluator; + + public function GenericTargetingSystem(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, collisionDetector:ICollisionDetector, targetValidator:IGenericTargetEvaluator) + { + super(); + this.angleUp = angleUp; + this.numRaysUp = numRaysUp; + this.angleDown = angleDown; + this.numRaysDown = numRaysDown; + this.collisionDetector = collisionDetector; + this.targetValidator = targetValidator; + } + + public function setTargetValidator(validator:IGenericTargetEvaluator) : void + { + this.targetValidator = validator; + } + + public function setCollisionDetector(collisionDetector:ICollisionDetector) : void + { + this.collisionDetector = collisionDetector; + } + + public function calculateShotDirection(shooter:Body, muzzlePosition:Vector3, barrelOrigin:Vector3, barrelDirection:Vector3, barrelLength:Number, gunElevationAxis:Vector3, maxDistance:Number, result:Vector3) : void + { + var body:Body = null; + this.filter.body = shooter; + this.§_-IP§ = maxDistance + 1; + if(this.collisionDetector.raycast(barrelOrigin,barrelDirection,collisionMask,maxDistance,this.filter,this.rayHit)) + { + this.§_-IP§ = this.rayHit.t; + body = this.rayHit.primitive.body; + if(body == null) + { + if(this.rayHit.t < barrelLength) + { + result.copy(barrelDirection); + return; + } + } + this.§_-3V§.copy(barrelDirection); + } + if(this.numRaysUp > 0) + { + this.checkSector(shooter,barrelOrigin,barrelDirection,gunElevationAxis,this.numRaysUp,this.angleUp / this.numRaysUp,maxDistance); + } + if(this.numRaysDown > 0) + { + this.checkSector(shooter,barrelOrigin,barrelDirection,gunElevationAxis,this.numRaysDown,-this.angleDown / this.numRaysDown,maxDistance); + } + this.filter.body = null; + if(this.§_-IP§ > maxDistance) + { + result.copy(barrelDirection); + } + else + { + result.copy(this.§_-3V§); + } + } + + private function checkSector(shooter:Body, origin:Vector3, barrelDirection:Vector3, gunElevationAxis:Vector3, numRays:int, angleStep:Number, maxDistance:Number) : void + { + var targetBody:Body = null; + this.matrix.fromAxisAngle(gunElevationAxis,angleStep); + rayDirection.copy(barrelDirection); + for(var i:int = 1; i <= numRays; ) + { + rayDirection.transform3(this.matrix); + if(Boolean(this.collisionDetector.raycast(origin,rayDirection,collisionMask,maxDistance,this.filter,this.rayHit)) && this.rayHit.t < this.§_-IP§) + { + targetBody = this.rayHit.primitive.body; + if(targetBody != null && this.targetValidator.getTargetPriority(shooter,targetBody,0,0) > 0) + { + this.§_-IP§ = this.rayHit.t; + this.§_-3V§.copy(rayDirection); + } + } + i++; + } + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/targeting/IEnergyTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/IEnergyTargetingSystem.as new file mode 100644 index 0000000..3e56314 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/targeting/IEnergyTargetingSystem.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.weapons.targeting +{ + import alternativa.math.Vector3; + import alternativa.physics.Body; + + public interface IEnergyTargetingSystem + { + function getShotDirection(param1:Body, param2:Vector3, param3:Vector3, param4:Vector3, param5:Number, param6:Vector3) : void; + } +} + diff --git a/src/alternativa/tanks/game/weapons/targeting/IGenericTargetEvaluator.as b/src/alternativa/tanks/game/weapons/targeting/IGenericTargetEvaluator.as new file mode 100644 index 0000000..69db878 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/targeting/IGenericTargetEvaluator.as @@ -0,0 +1,10 @@ +package alternativa.tanks.game.weapons.targeting +{ + import alternativa.physics.Body; + + public interface IGenericTargetEvaluator + { + function getTargetPriority(param1:Body, param2:Body, param3:Number, param4:Number) : Number; + } +} + diff --git a/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as new file mode 100644 index 0000000..9d051a3 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as @@ -0,0 +1,122 @@ +package alternativa.tanks.game.weapons.targeting +{ + import alternativa.math.Matrix3; + import alternativa.math.Vector3; + import alternativa.physics.Body; + import alternativa.physics.collision.ICollisionDetector; + import alternativa.physics.collision.types.RayHit; + import alternativa.tanks.game.physics.CollisionGroup; + import alternativa.tanks.game.weapons.IGenericTargetingSystem; + import alternativa.tanks.game.weapons.ammunition.railgun.MultybodyRaycastFilter; + import alternativa.tanks.game.weapons.railgun.IRailgunTargetEvaluator; + import flash.utils.Dictionary; + + public class RailgunTargetingSystem implements IGenericTargetingSystem + { + private const COLLISION_MASK:int = CollisionGroup.WEAPON | CollisionGroup.STATIC; + + private var collisionDetector:ICollisionDetector; + + private var angleUp:Number; + + private var angleDown:Number; + + private var numRaysUp:int; + + private var numRaysDown:int; + + private var §_-Gs§:MultybodyRaycastFilter = new MultybodyRaycastFilter(); + + private var rayHit:RayHit = new RayHit(); + + private var direction:Vector3 = new Vector3(); + + private var rotationMatrix:Matrix3 = new Matrix3(); + + private var origin:Vector3 = new Vector3(); + + private var targetEvaluator:IRailgunTargetEvaluator; + + public function RailgunTargetingSystem(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, collisionDetector:ICollisionDetector, targetEvaluator:IRailgunTargetEvaluator) + { + super(); + this.angleUp = angleUp; + this.angleDown = angleDown; + this.numRaysUp = numRaysUp; + this.numRaysDown = numRaysDown; + this.collisionDetector = collisionDetector; + this.targetEvaluator = targetEvaluator; + } + + public function calculateShotDirection(shooter:Body, muzzlePosition:Vector3, barrelOrigin:Vector3, barrelDirection:Vector3, barrelLength:Number, gunElevationAxis:Vector3, maxDistance:Number, result:Vector3) : void + { + var centerLineValue:Number = this.evaluateDirection(shooter,barrelOrigin,barrelDirection,barrelLength,maxDistance); + var directionValue:Number = 0; + directionValue = this.evaluateSector(this.numRaysUp,this.angleUp / this.numRaysUp,directionValue,shooter,barrelOrigin,barrelDirection,barrelLength,gunElevationAxis,maxDistance,result); + directionValue = this.evaluateSector(this.numRaysDown,-this.angleDown / this.numRaysDown,directionValue,shooter,barrelOrigin,barrelDirection,barrelLength,gunElevationAxis,maxDistance,result); + if(centerLineValue >= directionValue) + { + result.copy(barrelDirection); + } + } + + private function evaluateSector(numRays:int, angleStep:Number, maxDirectionValue:Number, shooter:Body, barrelOrigin:Vector3, barrelDirection:Vector3, barrelLength:Number, gunElevationAxis:Vector3, maxDistance:Number, result:Vector3) : Number + { + var directionValue:Number = NaN; + this.rotationMatrix.fromAxisAngle(gunElevationAxis,angleStep); + this.direction.copy(barrelDirection); + for(var i:int = 0; i < numRays; ) + { + this.direction.transform3(this.rotationMatrix); + directionValue = this.evaluateDirection(shooter,barrelOrigin,this.direction,barrelLength,maxDistance); + if(directionValue > maxDirectionValue) + { + maxDirectionValue = directionValue; + result.copy(this.direction); + } + i++; + } + return maxDirectionValue; + } + + private function evaluateDirection(shooter:Body, barrelOrigin:Vector3, barrelDirection:Vector3, barrelLength:Number, maxDistance:Number) : Number + { + var body:Body = null; + var distance:Number = NaN; + var targetValue:Number = NaN; + var directionValue:Number = 0; + var firstTarget:Boolean = true; + this.§_-Gs§.§_-By§ = new Dictionary(); + this.§_-Gs§.§_-By§[shooter] = true; + this.origin.copy(barrelOrigin); + while(this.collisionDetector.raycast(this.origin,barrelDirection,this.COLLISION_MASK,maxDistance,this.§_-Gs§,this.rayHit)) + { + body = this.rayHit.primitive.body; + if(body == null) + { + break; + } + distance = this.rayHit.t - barrelLength; + if(distance < 0) + { + distance = 0; + } + targetValue = Number(this.targetEvaluator.getTargetPriority(body,distance)); + if(firstTarget) + { + if(targetValue < 0) + { + break; + } + firstTarget = false; + } + directionValue += targetValue; + this.§_-Gs§.§_-By§[body] = true; + this.origin.copy(this.rayHit.position); + } + this.§_-Gs§.§_-By§ = null; + return directionValue; + } + } +} + diff --git a/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as b/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as new file mode 100644 index 0000000..2c441d4 --- /dev/null +++ b/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as @@ -0,0 +1,68 @@ +package alternativa.tanks.game.weapons.thunder +{ + import alternativa.engine3d.effects.TextureAtlas; + import alternativa.engine3d.resources.TextureResource; + import alternativa.math.Vector3; + import alternativa.tanks.game.EntityComponent; + import alternativa.tanks.game.GameKernel; + import alternativa.tanks.game.entities.tank.physics.ITurretPhysicsComponent; + import alternativa.tanks.game.weapons.ammunition.splashhit.debug.SmokyShot; + import alternativa.tanks.game.weapons.effects.IWeaponShotEffects; + import flash.geom.Vector3D; + + public class ThunderShotEffectComponent extends EntityComponent implements IWeaponShotEffects + { + private static var smokyShotAtlas:TextureAtlas; + + private var gameKernel:GameKernel; + + private var turretPhysicsComponent:ITurretPhysicsComponent; + + private var textureResource:TextureResource; + + private var §_-PT§:Vector3D = new Vector3D(); + + public function ThunderShotEffectComponent(textureResource:TextureResource) + { + super(); + this.textureResource = textureResource; + } + + public static function init(diffuse:TextureResource, opacity:TextureResource) : void + { + smokyShotAtlas = new TextureAtlas(diffuse,opacity,8,8,58,1,30,true); + } + + override public function initComponent() : void + { + this.turretPhysicsComponent = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + } + + override public function addToGame(gameKernel:GameKernel) : void + { + this.gameKernel = gameKernel; + gameKernel.getRenderSystem().useResource(this.textureResource); + } + + override public function removeFromGame(gameKernel:GameKernel) : void + { + gameKernel.getRenderSystem().releaseResource(this.textureResource); + } + + public function createShotEffects(barrelIndex:int, barrelOrigin:Vector3, muzzlePosition:Vector3, gunDirection:Vector3, gunElevationAxis:Vector3) : void + { + var eff:SmokyShot = new SmokyShot(smokyShotAtlas); + this.§_-PT§.x = muzzlePosition.x; + this.§_-PT§.y = muzzlePosition.y; + this.§_-PT§.z = muzzlePosition.z + 20; + eff.position = this.§_-PT§; + this.§_-PT§.x = gunDirection.x; + this.§_-PT§.y = gunDirection.y; + this.§_-PT§.z = gunDirection.z; + eff.direction = this.§_-PT§; + eff.scale = 3; + this.gameKernel.getRenderSystem().addA3DEffect(eff); + } + } +} + diff --git a/src/alternativa/tanks/lightsmanager/AmbientLightRegistry.as b/src/alternativa/tanks/lightsmanager/AmbientLightRegistry.as new file mode 100644 index 0000000..79d871f --- /dev/null +++ b/src/alternativa/tanks/lightsmanager/AmbientLightRegistry.as @@ -0,0 +1,67 @@ +package alternativa.tanks.lightsmanager +{ + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.lights.AmbientLight; + import alternativa.osgi.service.console.IConsole; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + + public class AmbientLightRegistry extends LightsRegistry + { + public function AmbientLightRegistry(param1:RenderSystem) + { + super(param1); + } + + override protected function lightToString(param1:Light3D) : String + { + return "AmbientLight color: 0x" + AmbientLight(param1).color.toString(16); + } + + override protected function create(param1:IConsole, param2:Array, param3:int) : Light3D + { + var _loc4_:uint = 0; + var _loc5_:AmbientLight = null; + if(param2.length == 0) + { + param1.addText("Color is expected"); + return null; + } + _loc4_ = uint(param2[0]); + _loc5_ = new AmbientLight(_loc4_); + _loc5_.name = "Ambient_" + param3; + renderSystem.lights.ambientLight = _loc5_; + return _loc5_; + } + + override protected function modify(param1:IConsole, param2:String, param3:Array) : Light3D + { + var _loc4_:AmbientLight = renderSystem.lights.ambientLight; + if(_loc4_ != null) + { + if(param3[0] != "color") + { + param1.addText("Available commands:"); + param1.addText("color color_value"); + } + else + { + _loc4_.color = param3[1]; + } + } + return _loc4_; + } + + override protected function getLigts() : Vector. + { + return Vector.([renderSystem.lights.ambientLight]); + } + + override protected function del(param1:IConsole, param2:String) : Light3D + { + var _loc3_:AmbientLight = renderSystem.lights.ambientLight; + renderSystem.lights.ambientLight = null; + return _loc3_; + } + } +} + diff --git a/src/package_98/name_559.as b/src/alternativa/tanks/lightsmanager/DirectionalLightRegistry.as similarity index 58% rename from src/package_98/name_559.as rename to src/alternativa/tanks/lightsmanager/DirectionalLightRegistry.as index f5309e0..23d4b32 100644 --- a/src/package_98/name_559.as +++ b/src/alternativa/tanks/lightsmanager/DirectionalLightRegistry.as @@ -1,25 +1,25 @@ -package package_98 +package alternativa.tanks.lightsmanager { - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_21.name_116; - import package_24.DirectionalLight; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.lights.DirectionalLight; import alternativa.osgi.service.console.IConsole; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - public class name_559 extends name_557 + public class DirectionalLightRegistry extends LightsRegistry { - public function name_559(param1:RenderSystem) + public function DirectionalLightRegistry(param1:RenderSystem) { super(param1); } - override protected function getLigts() : Vector. + override protected function getLigts() : Vector. { - return Vector.(renderSystem.lights.directionalLigths.lights); + return Vector.(renderSystem.lights.directionalLigths.lights); } - override protected function del(param1:IConsole, param2:String) : name_116 + override protected function del(param1:IConsole, param2:String) : Light3D { - var _loc3_:DirectionalLight = this.method_762(param2); + var _loc3_:DirectionalLight = this.getLight(param2); if(_loc3_ != null) { renderSystem.lights.directionalLigths.remove(_loc3_); @@ -27,7 +27,7 @@ package package_98 return _loc3_; } - private function method_762(param1:String) : DirectionalLight + private function getLight(param1:String) : DirectionalLight { var _loc3_:DirectionalLight = null; var _loc2_:Vector. = renderSystem.lights.directionalLigths.lights; diff --git a/src/alternativa/tanks/lightsmanager/LightsManager.as b/src/alternativa/tanks/lightsmanager/LightsManager.as new file mode 100644 index 0000000..02d3504 --- /dev/null +++ b/src/alternativa/tanks/lightsmanager/LightsManager.as @@ -0,0 +1,53 @@ +package alternativa.tanks.lightsmanager +{ + import alternativa.osgi.OSGi; + import alternativa.osgi.service.console.IConsole; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + + public class LightsManager + { + private static const LIGHT_TYPE_AMBIENT:String = "a"; + + private static const LIGHT_TYPE_DIRECTIONAL:String = "d"; + + private static const LIGHT_TYPE_OMNI:String = "o"; + + private static const LIGHT_TYPE_SPOT:String = "s"; + + private var renderSystem:RenderSystem; + + private var §_-02§:Object = {}; + + public function LightsManager(param1:RenderSystem) + { + super(); + this.renderSystem = param1; + var _loc2_:IConsole = IConsole(OSGi.getInstance().getService(IConsole)); + _loc2_.setCommandHandler("light",this.lightCommandHandler); + this.§_-02§[LIGHT_TYPE_AMBIENT] = new AmbientLightRegistry(param1); + this.§_-02§[LIGHT_TYPE_DIRECTIONAL] = new DirectionalLightRegistry(param1); + this.§_-02§[LIGHT_TYPE_OMNI] = new OmniLightRegistry(param1); + this.§_-02§[LIGHT_TYPE_SPOT] = new SpotLightRegistry(param1); + } + + private function lightCommandHandler(param1:IConsole, param2:Array) : void + { + var _loc3_:String = null; + var _loc4_:LightsRegistry = null; + if(param2.length != 0) + { + _loc3_ = param2.shift(); + _loc4_ = this.§_-02§[_loc3_]; + if(_loc4_ == null) + { + param1.addText("Unknown light type"); + } + else + { + _loc4_.handleCommand(param1,param2); + } + } + } + } +} + diff --git a/src/package_98/name_557.as b/src/alternativa/tanks/lightsmanager/LightsRegistry.as similarity index 58% rename from src/package_98/name_557.as rename to src/alternativa/tanks/lightsmanager/LightsRegistry.as index bcd8beb..9ed8b3e 100644 --- a/src/package_98/name_557.as +++ b/src/alternativa/tanks/lightsmanager/LightsRegistry.as @@ -1,34 +1,34 @@ -package package_98 +package alternativa.tanks.lightsmanager { - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_21.name_116; + import alternativa.engine3d.core.Light3D; import alternativa.osgi.service.console.IConsole; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - public class name_557 + public class LightsRegistry { protected var lastId:int; protected var renderSystem:RenderSystem; - public function name_557(param1:RenderSystem) + public function LightsRegistry(param1:RenderSystem) { super(); this.renderSystem = param1; } - final public function name_562(param1:IConsole, param2:Array) : void + final public function handleCommand(param1:IConsole, param2:Array) : void { var _loc4_:int = 0; - var _loc5_:name_116 = null; + var _loc5_:Light3D = null; var _loc6_:String = null; if(param2.length == 0) { - param1.name_145("Parameters are expected:"); - param1.name_145("ls -- list lights"); - param1.name_145("add -- add light"); - param1.name_145("del -- delete light"); - param1.name_145("clear -- delete all lights"); - param1.name_145(" -- set property of the light"); + param1.addText("Parameters are expected:"); + param1.addText("ls -- list lights"); + param1.addText("add -- add light"); + param1.addText("del -- delete light"); + param1.addText("clear -- delete all lights"); + param1.addText(" -- set property of the light"); return; } var _loc3_:String = param2.shift(); @@ -42,8 +42,8 @@ package package_98 _loc5_ = this.create(param1,param2,_loc4_); if(_loc5_ != null) { - param1.name_145("Light has been created: " + _loc5_.name); - param1.name_145(this.lightToString(_loc5_)); + param1.addText("Light has been created: " + _loc5_.name); + param1.addText(this.lightToString(_loc5_)); } break; case "del": @@ -57,11 +57,11 @@ package package_98 _loc5_ = this.modify(param1,_loc3_,param2); if(_loc5_ != null) { - param1.name_145("Light has been changed: " + _loc5_.name); - param1.name_145(this.lightToString(_loc5_)); + param1.addText("Light has been changed: " + _loc5_.name); + param1.addText(this.lightToString(_loc5_)); break; } - param1.name_145("Light has not been changed or found"); + param1.addText("Light has not been changed or found"); break; } } @@ -69,9 +69,9 @@ package package_98 private function clear(param1:IConsole) : void { var _loc3_:Vector. = null; - var _loc4_:name_116 = null; + var _loc4_:Light3D = null; var _loc5_:String = null; - var _loc2_:Vector. = this.getLigts(); + var _loc2_:Vector. = this.getLigts(); if(_loc2_ != null) { _loc3_ = new Vector.(); @@ -88,40 +88,40 @@ package package_98 private function list(param1:IConsole) : void { - var _loc3_:name_116 = null; - var _loc2_:Vector. = this.getLigts(); + var _loc3_:Light3D = null; + var _loc2_:Vector. = this.getLigts(); for each(_loc3_ in _loc2_) { - param1.name_145(_loc3_.name + " " + this.lightToString(_loc3_)); + param1.addText(_loc3_.name + " " + this.lightToString(_loc3_)); } } - protected function getLigts() : Vector. + protected function getLigts() : Vector. { throw new Error("Not imlemented"); } - protected function lightToString(param1:name_116) : String + protected function lightToString(param1:Light3D) : String { return "[None]"; } - protected function modify(param1:IConsole, param2:String, param3:Array) : name_116 + protected function modify(param1:IConsole, param2:String, param3:Array) : Light3D { throw new Error("Not implemented"); } - protected function create(param1:IConsole, param2:Array, param3:int) : name_116 + protected function create(param1:IConsole, param2:Array, param3:int) : Light3D { throw new Error("Not implemented"); } - protected function del(param1:IConsole, param2:String) : name_116 + protected function del(param1:IConsole, param2:String) : Light3D { throw new Error("Not implemented"); } - final protected function method_761(param1:String, param2:Number = 0) : Number + final protected function parseNumber(param1:String, param2:Number = 0) : Number { var _loc3_:Number = Number(Number(param1)); return !!isNaN(_loc3_) ? param2 : _loc3_; diff --git a/src/package_98/name_560.as b/src/alternativa/tanks/lightsmanager/OmniLightRegistry.as similarity index 53% rename from src/package_98/name_560.as rename to src/alternativa/tanks/lightsmanager/OmniLightRegistry.as index 85155c7..dbb11de 100644 --- a/src/package_98/name_560.as +++ b/src/alternativa/tanks/lightsmanager/OmniLightRegistry.as @@ -1,27 +1,27 @@ -package package_98 +package alternativa.tanks.lightsmanager { - import alternativa.utils.TextUtils; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_21.name_116; - import package_24.OmniLight; + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.lights.OmniLight; import alternativa.osgi.service.console.IConsole; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.utils.TextUtils; - public class name_560 extends name_557 + public class OmniLightRegistry extends LightsRegistry { - public function name_560(param1:RenderSystem) + public function OmniLightRegistry(param1:RenderSystem) { super(param1); } - override protected function lightToString(param1:name_116) : String + override protected function lightToString(param1:Light3D) : String { var _loc2_:OmniLight = OmniLight(param1); - return TextUtils.name_719("OmniLight color: 0x%1, attenuationBegin: %2, attenuationEnd: %3, x: %4, y: %5, z: %6",_loc2_.color.toString(16),_loc2_.attenuationBegin.toFixed(2),_loc2_.attenuationEnd.toFixed(2),_loc2_.x.toFixed(2),_loc2_.y.toFixed(2),_loc2_.z.toFixed(2)); + return TextUtils.replaceVars("OmniLight color: 0x%1, attenuationBegin: %2, attenuationEnd: %3, x: %4, y: %5, z: %6",_loc2_.color.toString(16),_loc2_.attenuationBegin.toFixed(2),_loc2_.attenuationEnd.toFixed(2),_loc2_.x.toFixed(2),_loc2_.y.toFixed(2),_loc2_.z.toFixed(2)); } - override protected function modify(param1:IConsole, param2:String, param3:Array) : name_116 + override protected function modify(param1:IConsole, param2:String, param3:Array) : Light3D { - var _loc4_:OmniLight = this.method_762(param2); + var _loc4_:OmniLight = this.getLight(param2); if(_loc4_ == null) { return null; @@ -38,43 +38,43 @@ package package_98 _loc4_.color = param3[0]; break; case "att": - _loc4_.attenuationBegin = method_761(param3[0]); - _loc4_.attenuationEnd = method_761(param3[1]); + _loc4_.attenuationBegin = parseNumber(param3[0]); + _loc4_.attenuationEnd = parseNumber(param3[1]); break; default: - param1.method_145(Vector.(["Available commands:","color value","pos x y z","att attenuationBegin attenuationEnd"])); + param1.addLines(Vector.(["Available commands:","color value","pos x y z","att attenuationBegin attenuationEnd"])); return null; } return _loc4_; } - override protected function create(param1:IConsole, param2:Array, param3:int) : name_116 + override protected function create(param1:IConsole, param2:Array, param3:int) : Light3D { if(param2.length == 0) { - param1.name_145("parameters: color attenuationBegin attenuationEnd x y z"); + param1.addText("parameters: color attenuationBegin attenuationEnd x y z"); return null; } var _loc4_:uint = uint(param2[0]); - var _loc5_:Number = method_761(param2[1]); - var _loc6_:Number = method_761(param2[2]); + var _loc5_:Number = parseNumber(param2[1]); + var _loc6_:Number = parseNumber(param2[2]); var _loc7_:OmniLight = new OmniLight(_loc4_,_loc5_,_loc6_); _loc7_.name = "Omni_" + param3; - _loc7_.x = method_761(param2[3]); - _loc7_.y = method_761(param2[4]); - _loc7_.z = method_761(param2[5]); + _loc7_.x = parseNumber(param2[3]); + _loc7_.y = parseNumber(param2[4]); + _loc7_.z = parseNumber(param2[5]); renderSystem.lights.omniLigths.add(_loc7_); return _loc7_; } - override protected function getLigts() : Vector. + override protected function getLigts() : Vector. { - return Vector.(renderSystem.lights.omniLigths.lights); + return Vector.(renderSystem.lights.omniLigths.lights); } - override protected function del(param1:IConsole, param2:String) : name_116 + override protected function del(param1:IConsole, param2:String) : Light3D { - var _loc3_:OmniLight = this.method_762(param2); + var _loc3_:OmniLight = this.getLight(param2); if(_loc3_ != null) { renderSystem.lights.omniLigths.remove(OmniLight(_loc3_)); @@ -82,7 +82,7 @@ package package_98 return _loc3_; } - private function method_762(param1:String) : OmniLight + private function getLight(param1:String) : OmniLight { var _loc3_:OmniLight = null; var _loc2_:Vector. = renderSystem.lights.omniLigths.lights; diff --git a/src/alternativa/tanks/lightsmanager/SpotLightRegistry.as b/src/alternativa/tanks/lightsmanager/SpotLightRegistry.as new file mode 100644 index 0000000..f3745a8 --- /dev/null +++ b/src/alternativa/tanks/lightsmanager/SpotLightRegistry.as @@ -0,0 +1,126 @@ +package alternativa.tanks.lightsmanager +{ + import alternativa.engine3d.core.Light3D; + import alternativa.engine3d.lights.SpotLight; + import alternativa.osgi.service.console.IConsole; + import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; + import alternativa.utils.TextUtils; + + public class SpotLightRegistry extends LightsRegistry + { + public function SpotLightRegistry(param1:RenderSystem) + { + super(param1); + } + + override protected function lightToString(param1:Light3D) : String + { + var _loc2_:SpotLight = SpotLight(param1); + return TextUtils.replaceVars("SpotLight color: 0x%1, attenuationBegin: %2, attenuationEnd: %3, hotspot: %4, falloff: %5, x: %6, y: %7, z: %8",_loc2_.color.toString(16),_loc2_.attenuationBegin.toFixed(2),_loc2_.attenuationEnd.toFixed(2),_loc2_.hotspot.toFixed(2),_loc2_.falloff.toFixed(2),_loc2_.x.toFixed(2),_loc2_.y.toFixed(2),_loc2_.z.toFixed(2)); + } + + override protected function modify(param1:IConsole, param2:String, param3:Array) : Light3D + { + var _loc6_:Number = NaN; + var _loc7_:Number = NaN; + var _loc8_:Number = NaN; + var _loc4_:SpotLight = this.getLight(param2); + if(_loc4_ == null) + { + return null; + } + var _loc5_:String = param3.shift(); + switch(_loc5_) + { + case "pos": + _loc4_.x = param3[0]; + _loc4_.y = param3[1]; + _loc4_.z = param3[2]; + break; + case "color": + _loc4_.color = param3[0]; + break; + case "cone": + _loc4_.hotspot = parseNumber(param3[0],0); + _loc4_.falloff = parseNumber(param3[1],0); + break; + case "lookAt": + _loc6_ = parseNumber(param3[0],0); + _loc7_ = parseNumber(param3[1],0); + _loc8_ = parseNumber(param3[2],0); + _loc4_.lookAt(_loc6_,_loc7_,_loc8_); + param1.addText("Looking at " + _loc6_ + ", " + _loc7_ + ", " + _loc8_); + break; + case "att": + _loc4_.attenuationBegin = parseNumber(param3[0]); + _loc4_.attenuationEnd = parseNumber(param3[1]); + break; + default: + param1.addLines(Vector.(["Available commands:","color value","att attenuationBegin attenuationEnd","cone hotspot falloff","pos x y z","lookAt x y z"])); + return null; + } + return _loc4_; + } + + override protected function create(param1:IConsole, param2:Array, param3:int) : Light3D + { + if(param2.length == 0) + { + param1.addText("parameters: color attenuationBegin attenuationEnd hotspot falloff x y z lookX lookY lookZ"); + return null; + } + var _loc4_:int = int(param2[0]); + var _loc5_:Number = parseNumber(param2[1]); + var _loc6_:Number = parseNumber(param2[2]); + var _loc7_:Number = parseNumber(param2[3]); + var _loc8_:Number = parseNumber(param2[4]); + var _loc9_:Number = parseNumber(param2[5]); + var _loc10_:Number = parseNumber(param2[6]); + var _loc11_:Number = parseNumber(param2[7]); + var _loc12_:Number = parseNumber(param2[8]); + var _loc13_:Number = parseNumber(param2[9]); + var _loc14_:Number = parseNumber(param2[10]); + var _loc15_:SpotLight = new SpotLight(_loc4_,_loc5_,_loc6_,_loc7_,_loc8_); + _loc15_.name = "Spot_" + param3; + _loc15_.x = _loc9_; + _loc15_.y = _loc10_; + _loc15_.z = _loc11_; + _loc15_.lookAt(_loc12_,_loc13_,_loc14_); + renderSystem.lights.spotLights.add(_loc15_); + return _loc15_; + } + + override protected function getLigts() : Vector. + { + return Vector.(renderSystem.lights.spotLights.lights); + } + + override protected function del(param1:IConsole, param2:String) : Light3D + { + var _loc3_:SpotLight = this.getLight(param2); + if(_loc3_ != null) + { + renderSystem.lights.spotLights.remove(SpotLight(_loc3_)); + } + return _loc3_; + } + + private function getLight(param1:String) : SpotLight + { + var _loc3_:SpotLight = null; + var _loc2_:Vector. = renderSystem.lights.spotLights.lights; + if(_loc2_ != null) + { + for each(_loc3_ in _loc2_) + { + if(_loc3_.name == param1) + { + return _loc3_; + } + } + } + return null; + } + } +} + diff --git a/src/alternativa/tanks/sounds/ChassisSoundCallback.as b/src/alternativa/tanks/sounds/ChassisSoundCallback.as new file mode 100644 index 0000000..bb15132 --- /dev/null +++ b/src/alternativa/tanks/sounds/ChassisSoundCallback.as @@ -0,0 +1,111 @@ +package alternativa.tanks.sounds +{ + import alternativa.tanks.config.loaders.SoundsLibrary; + import alternativa.tanks.game.entities.tank.IChassisManualControlCallback; + import flash.events.Event; + import flash.media.Sound; + import flash.media.SoundChannel; + + public class ChassisSoundCallback implements IChassisManualControlCallback + { + private var §_-9N§:Sound; + + private var §_-dF§:Sound; + + private var §_-ik§:Sound; + + private var §_-QG§:Sound; + + private var §_-qB§:SoundChannel; + + private var §_-kx§:Boolean = false; + + public function ChassisSoundCallback(param1:SoundsLibrary) + { + super(); + this.§_-9N§ = param1.getSound("startmoving"); + this.§_-dF§ = param1.getSound("endmoving"); + this.§_-ik§ = param1.getSound("move"); + this.§_-QG§ = param1.getSound("idle"); + this.idleLoop(); + } + + public function onControlChanged(param1:int, param2:int, param3:Boolean) : void + { + var _loc4_:Boolean = param1 != 0 || param2 != 0; + if(_loc4_ && !this.§_-kx§) + { + if(this.§_-qB§ != null) + { + this.§_-qB§.stop(); + } + this.startMoving(); + } + else if(!_loc4_ && this.§_-kx§) + { + if(this.§_-qB§ != null) + { + this.§_-qB§.stop(); + } + this.stopMoving(); + } + this.§_-kx§ = _loc4_; + } + + private function stopMoving() : void + { + this.idleLoop(); + } + + private function onStopMoveComplete(param1:Event) : void + { + this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onStopMoveComplete); + this.idleLoop(); + } + + private function startMoving() : void + { + if(this.§_-qB§ != null) + { + this.§_-qB§.stop(); + } + this.§_-qB§ = this.§_-9N§.play(); + this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onStartMoveComplete); + } + + private function onStartMoveComplete(param1:Event) : void + { + this.§_-qB§.stop(); + this.moveLoop(); + } + + private function moveLoop() : void + { + this.§_-qB§ = this.§_-ik§.play(0); + this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); + } + + private function onMoveLoop(param1:Event) : void + { + this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); + this.moveLoop(); + } + + private function idleLoop() : void + { + this.§_-qB§ = this.§_-QG§.play(0); + this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); + } + + private function onIdleLoop(param1:Event) : void + { + this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); + this.idleLoop(); + } + + public function onSync() : void + { + } + } +} + diff --git a/src/package_80/name_287.as b/src/alternativa/tanks/sounds/FlamethrowerSoundWeaponCallback.as similarity index 59% rename from src/package_80/name_287.as rename to src/alternativa/tanks/sounds/FlamethrowerSoundWeaponCallback.as index 24676cb..07e0f91 100644 --- a/src/package_80/name_287.as +++ b/src/alternativa/tanks/sounds/FlamethrowerSoundWeaponCallback.as @@ -1,25 +1,25 @@ -package package_80 +package alternativa.tanks.sounds { + import alternativa.tanks.game.weapons.conicareadamage.IConicAreaWeaponCallback; import flash.events.Event; import flash.media.Sound; import flash.media.SoundChannel; import flash.media.SoundTransform; import flash.utils.Dictionary; - import package_95.name_545; - public class name_287 implements name_545 + public class FlamethrowerSoundWeaponCallback implements IConicAreaWeaponCallback { private var shotSound:Sound; private var channel:SoundChannel; - public function name_287(param1:Sound) + public function FlamethrowerSoundWeaponCallback(param1:Sound) { super(); this.shotSound = param1; } - public function name_548() : void + public function onConicAreaWeaponStart() : void { this.loop(); } @@ -27,25 +27,25 @@ package package_80 private function loop() : void { this.channel = this.shotSound.play(0,0,new SoundTransform(0.25)); - this.channel.addEventListener(Event.SOUND_COMPLETE,this.method_460); + this.channel.addEventListener(Event.SOUND_COMPLETE,this.onLoop); } - private function method_460(param1:Event) : void + private function onLoop(param1:Event) : void { - this.channel.removeEventListener(Event.SOUND_COMPLETE,this.method_460); + this.channel.removeEventListener(Event.SOUND_COMPLETE,this.onLoop); this.loop(); } - public function name_547() : void + public function onConicAreaWeaponStop() : void { if(this.channel != null) { this.channel.stop(); - this.channel.removeEventListener(Event.SOUND_COMPLETE,this.method_460); + this.channel.removeEventListener(Event.SOUND_COMPLETE,this.onLoop); } } - public function name_546(param1:Dictionary) : void + public function onConicAreaWeaponTargetSetChange(param1:Dictionary) : void { } } diff --git a/src/package_80/name_274.as b/src/alternativa/tanks/sounds/SoundInstantShotWeaponCallback.as similarity index 52% rename from src/package_80/name_274.as rename to src/alternativa/tanks/sounds/SoundInstantShotWeaponCallback.as index 51ffcac..00f340b 100644 --- a/src/package_80/name_274.as +++ b/src/alternativa/tanks/sounds/SoundInstantShotWeaponCallback.as @@ -1,19 +1,19 @@ -package package_80 +package alternativa.tanks.sounds { - import flash.media.Sound; import alternativa.tanks.game.weapons.IInstantShotWeaponCallback; + import flash.media.Sound; - public class name_274 implements IInstantShotWeaponCallback + public class SoundInstantShotWeaponCallback implements IInstantShotWeaponCallback { private var shotSound:Sound; - public function name_274(param1:Sound) + public function SoundInstantShotWeaponCallback(param1:Sound) { super(); this.shotSound = param1; } - public function name_526() : void + public function onInstantShot() : void { this.shotSound.play(); } diff --git a/src/alternativa/tanks/sounds/TurretSoundCallback.as b/src/alternativa/tanks/sounds/TurretSoundCallback.as new file mode 100644 index 0000000..d8f7122 --- /dev/null +++ b/src/alternativa/tanks/sounds/TurretSoundCallback.as @@ -0,0 +1,56 @@ +package alternativa.tanks.sounds +{ + import alternativa.tanks.config.loaders.SoundsLibrary; + import alternativa.tanks.game.entities.tank.ITurretManualControlCallback; + import flash.events.Event; + import flash.media.Sound; + import flash.media.SoundChannel; + import flash.media.SoundTransform; + + public class TurretSoundCallback implements ITurretManualControlCallback + { + private var soundLibrary:SoundsLibrary; + + private var §_-At§:Sound; + + private var §_-ha§:SoundChannel = null; + + public function TurretSoundCallback(param1:SoundsLibrary) + { + super(); + this.soundLibrary = param1; + this.§_-At§ = param1.getSound("turret"); + } + + public function onTurretControlChanged(param1:int, param2:Boolean) : void + { + if(this.§_-ha§ != null) + { + this.§_-ha§.stop(); + } + if(param1 != 0) + { + this.playMusic(); + } + } + + private function playMusic() : void + { + if(this.§_-At§ != null) + { + this.§_-ha§ = this.§_-At§.play(0,0,new SoundTransform(0.2)); + this.§_-ha§.addEventListener(Event.SOUND_COMPLETE,this.loopMusic); + } + } + + private function loopMusic(param1:Event) : void + { + if(this.§_-ha§ != null) + { + this.§_-ha§.removeEventListener(Event.SOUND_COMPLETE,this.loopMusic); + this.playMusic(); + } + } + } +} + diff --git a/src/alternativa/tanks/utils/Task.as b/src/alternativa/tanks/utils/Task.as new file mode 100644 index 0000000..d92e3c0 --- /dev/null +++ b/src/alternativa/tanks/utils/Task.as @@ -0,0 +1,31 @@ +package alternativa.tanks.utils +{ + import flash.events.EventDispatcher; + + public class Task extends EventDispatcher + { + private var §_-UZ§:TaskSequence; + + public function Task() + { + super(); + } + + public function run() : void + { + throw new Error("Not implemented"); + } + + internal function set taskSequence(param1:TaskSequence) : void + { + this.§_-UZ§ = param1; + } + + final protected function completeTask() : void + { + dispatchEvent(new TaskEvent(TaskEvent.TASK_COMPLETE,1,1)); + this.§_-UZ§.taskComplete(this); + } + } +} + diff --git a/src/package_40/name_169.as b/src/alternativa/tanks/utils/TaskEvent.as similarity index 69% rename from src/package_40/name_169.as rename to src/alternativa/tanks/utils/TaskEvent.as index 6cd1dda..db706c7 100644 --- a/src/package_40/name_169.as +++ b/src/alternativa/tanks/utils/TaskEvent.as @@ -1,8 +1,8 @@ -package package_40 +package alternativa.tanks.utils { import flash.events.Event; - public class name_169 extends Event + public class TaskEvent extends Event { public static const TASK_COMPLETE:String = "taskComplete"; @@ -12,7 +12,7 @@ package package_40 public var progress:Number = 0; - public function name_169(param1:String, param2:Number, param3:Number) + public function TaskEvent(param1:String, param2:Number, param3:Number) { super(param1); this.total = param3; diff --git a/src/alternativa/tanks/utils/TaskSequence.as b/src/alternativa/tanks/utils/TaskSequence.as new file mode 100644 index 0000000..c48192e --- /dev/null +++ b/src/alternativa/tanks/utils/TaskSequence.as @@ -0,0 +1,64 @@ +package alternativa.tanks.utils +{ + import flash.events.Event; + import flash.events.EventDispatcher; + + public class TaskSequence extends EventDispatcher + { + private var tasks:Vector.; + + private var §_-LN§:int; + + public function TaskSequence() + { + super(); + this.tasks = new Vector.(); + } + + public function get length() : uint + { + return this.tasks.length; + } + + public function addTask(param1:Task) : void + { + if(this.tasks.indexOf(param1) < 0) + { + this.tasks.push(param1); + param1.taskSequence = this; + } + } + + public function run() : void + { + if(this.tasks.length > 0) + { + this.§_-LN§ = 0; + this.runCurrentTask(); + } + else + { + dispatchEvent(new Event(Event.COMPLETE)); + } + } + + private function runCurrentTask() : void + { + this.tasks[this.§_-LN§].run(); + } + + internal function taskComplete(param1:Task) : void + { + dispatchEvent(new TaskEvent(TaskEvent.TASK_COMPLETE,1,this.tasks.length)); + if(++this.§_-LN§ < this.tasks.length) + { + this.runCurrentTask(); + } + else + { + dispatchEvent(new Event(Event.COMPLETE)); + } + } + } +} + diff --git a/src/package_40/name_251.as b/src/alternativa/tanks/utils/TextureUtils.as similarity index 78% rename from src/package_40/name_251.as rename to src/alternativa/tanks/utils/TextureUtils.as index 9702470..334cdc8 100644 --- a/src/package_40/name_251.as +++ b/src/alternativa/tanks/utils/TextureUtils.as @@ -1,17 +1,17 @@ -package package_40 +package alternativa.tanks.utils { import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Rectangle; - public class name_251 + public class TextureUtils { - public function name_251() + public function TextureUtils() { super(); } - public static function name_272(param1:BitmapData, param2:int = 0) : Vector. + public static function parseImageStrip(param1:BitmapData, param2:int = 0) : Vector. { var _loc8_:BitmapData = null; if(param2 == 0) diff --git a/src/package_40/name_564.as b/src/alternativa/tanks/utils/XMLHelper.as similarity index 52% rename from src/package_40/name_564.as rename to src/alternativa/tanks/utils/XMLHelper.as index 91d48a9..c5b7090 100644 --- a/src/package_40/name_564.as +++ b/src/alternativa/tanks/utils/XMLHelper.as @@ -1,13 +1,13 @@ -package package_40 +package alternativa.tanks.utils { - public class name_564 + public class XMLHelper { - public function name_564() + public function XMLHelper() { super(); } - public static function name_565(param1:XML) : Array + public static function parseStringArray(param1:XML) : Array { if(param1 == null) { diff --git a/src/alternativa/types/Byte.as b/src/alternativa/types/Byte.as new file mode 100644 index 0000000..5168caf --- /dev/null +++ b/src/alternativa/types/Byte.as @@ -0,0 +1,11 @@ +package alternativa.types +{ + public class Byte + { + public function Byte() + { + super(); + } + } +} + diff --git a/src/alternativa/types/Float.as b/src/alternativa/types/Float.as new file mode 100644 index 0000000..9e70772 --- /dev/null +++ b/src/alternativa/types/Float.as @@ -0,0 +1,11 @@ +package alternativa.types +{ + public class Float + { + public function Float() + { + super(); + } + } +} + diff --git a/src/package_33/name_155.as b/src/alternativa/types/Long.as similarity index 56% rename from src/package_33/name_155.as rename to src/alternativa/types/Long.as index 8ad3dd1..19a5f4b 100644 --- a/src/package_33/name_155.as +++ b/src/alternativa/types/Long.as @@ -1,93 +1,93 @@ -package package_33 +package alternativa.types { import flash.utils.ByteArray; import flash.utils.Dictionary; - public final class name_155 + public final class Long { private static var longMap:Dictionary = new Dictionary(); - private var var_188:int; + private var §_-Ec§:int; - private var var_187:int; + private var §_-Ti§:int; - public function name_155(high:int, low:int) + public function Long(high:int, low:int) { super(); - this.var_187 = high; - this.var_188 = low; + this.§_-Ti§ = high; + this.§_-Ec§ = low; } - public static function method_298(high:int, low:int) : name_155 + public static function getLong(high:int, low:int) : Long { - var value:name_155 = null; + var value:Long = null; var highToLong:Dictionary = longMap[low]; if(highToLong != null) { value = highToLong[high]; if(value == null) { - value = new name_155(high,low); + value = new Long(high,low); highToLong[high] = value; } } else { longMap[low] = new Dictionary(); - value = new name_155(high,low); + value = new Long(high,low); longMap[low][high] = value; } return value; } - public static function method_301(s:String) : name_155 + public static function fromHexString(s:String) : Long { var len:int = int(s.length); if(len <= 8) { - return method_298(0,int("0x" + s)); + return getLong(0,int("0x" + s)); } - return method_298(int("0x" + s.substr(0,len - 8)),int("0x" + s.substr(len - 8))); + return getLong(int("0x" + s.substr(0,len - 8)),int("0x" + s.substr(len - 8))); } - public static function method_300(value:int) : name_155 + public static function fromInt(value:int) : Long { if(value < 0) { - return method_298(4294967295,value); + return getLong(4294967295,value); } - return method_298(0,value); + return getLong(0,value); } public function get low() : int { - return this.var_188; + return this.§_-Ec§; } public function get high() : int { - return this.var_187; + return this.§_-Ti§; } public function toString() : String { - return this.method_299(this.var_187) + this.method_299(this.var_188); + return this.intToUhex(this.§_-Ti§) + this.intToUhex(this.§_-Ec§); } - public function method_302(result:ByteArray = null) : ByteArray + public function toByteArray(result:ByteArray = null) : ByteArray { if(result == null) { result = new ByteArray(); } result.position = 0; - result.writeInt(this.var_187); - result.writeInt(this.var_188); + result.writeInt(this.§_-Ti§); + result.writeInt(this.§_-Ec§); result.position = 0; return result; } - private function method_299(value:int) : String + private function intToUhex(value:int) : String { var result:String = null; var numZeros:int = 0; diff --git a/src/alternativa/types/Short.as b/src/alternativa/types/Short.as new file mode 100644 index 0000000..f0cd423 --- /dev/null +++ b/src/alternativa/types/Short.as @@ -0,0 +1,11 @@ +package alternativa.types +{ + public class Short + { + public function Short() + { + super(); + } + } +} + diff --git a/src/alternativa/types/UByte.as b/src/alternativa/types/UByte.as new file mode 100644 index 0000000..66276ba --- /dev/null +++ b/src/alternativa/types/UByte.as @@ -0,0 +1,11 @@ +package alternativa.types +{ + public class UByte + { + public function UByte() + { + super(); + } + } +} + diff --git a/src/alternativa/types/UShort.as b/src/alternativa/types/UShort.as new file mode 100644 index 0000000..92b249a --- /dev/null +++ b/src/alternativa/types/UShort.as @@ -0,0 +1,11 @@ +package alternativa.types +{ + public class UShort + { + public function UShort() + { + super(); + } + } +} + diff --git a/src/alternativa/utils/ByteArrayMap.as b/src/alternativa/utils/ByteArrayMap.as index 2424878..0de4585 100644 --- a/src/alternativa/utils/ByteArrayMap.as +++ b/src/alternativa/utils/ByteArrayMap.as @@ -4,27 +4,27 @@ package alternativa.utils public class ByteArrayMap { - private var var_102:Object; + private var §_-Bp§:Object; public function ByteArrayMap(data:Object = null) { super(); - this.var_102 = data == null ? {} : data; + this.§_-Bp§ = data == null ? {} : data; } public function get data() : Object { - return this.var_102; + return this.§_-Bp§; } - public function name_248(key:String) : ByteArray + public function getValue(key:String) : ByteArray { - return this.var_102[key]; + return this.§_-Bp§[key]; } - public function name_59(key:String, value:ByteArray) : void + public function putValue(key:String, value:ByteArray) : void { - this.var_102[key] = value; + this.§_-Bp§[key] = value; } } } diff --git a/src/alternativa/utils/ColorUtils.as b/src/alternativa/utils/ColorUtils.as index 938d544..226f315 100644 --- a/src/alternativa/utils/ColorUtils.as +++ b/src/alternativa/utils/ColorUtils.as @@ -55,12 +55,12 @@ package alternativa.utils return (red < 0 ? 0 : red) + (green < 0 ? 0 : green) + (blue < 0 ? 0 : blue); } - public static function method_552(color:uint, multiplier:Number) : uint + public static function multiply(color:uint, multiplier:Number) : uint { var red:int = ((color & 0xFF0000) >>> 16) * multiplier; var green:int = ((color & 0xFF00) >>> 8) * multiplier; var blue:int = (color & 0xFF) * multiplier; - return name_345(red,green,blue); + return rgb(red,green,blue); } public static function interpolate(a:uint, b:uint, k:Number = 0.5) : uint @@ -71,10 +71,10 @@ package alternativa.utils green += (((b & 0xFF00) >>> 8) - green) * k; var blue:int = a & 0xFF; blue += ((b & 0xFF) - blue) * k; - return name_345(red,green,blue); + return rgb(red,green,blue); } - public static function method_551(fromColor:ColorTransform, toColor:ColorTransform, progress:Number, result:ColorTransform = null) : ColorTransform + public static function interpolateTransform(fromColor:ColorTransform, toColor:ColorTransform, progress:Number, result:ColorTransform = null) : ColorTransform { if(result == null) { @@ -94,10 +94,10 @@ package alternativa.utils public static function random(redMin:uint = 0, redMax:uint = 255, greenMin:uint = 0, greenMax:uint = 255, blueMin:uint = 0, blueMax:uint = 255) : uint { - return name_345(MathUtils.random(redMin,redMax),MathUtils.random(greenMin,greenMax),MathUtils.random(blueMin,blueMax)); + return rgb(MathUtils.random(redMin,redMax),MathUtils.random(greenMin,greenMax),MathUtils.random(blueMin,blueMax)); } - public static function name_345(red:int, green:int, blue:int) : uint + public static function rgb(red:int, green:int, blue:int) : uint { return (red < 0 ? 0 : (Boolean(red >>> 8) ? 16711680 : red << 16)) + (green < 0 ? 0 : (Boolean(green >>> 8) ? 65280 : green << 8)) + (blue < 0 ? 0 : (Boolean(blue >>> 8) ? 255 : blue)); } diff --git a/src/alternativa/utils/ICircularStringBuffer.as b/src/alternativa/utils/ICircularStringBuffer.as index 89da878..a8c0092 100644 --- a/src/alternativa/utils/ICircularStringBuffer.as +++ b/src/alternativa/utils/ICircularStringBuffer.as @@ -12,7 +12,7 @@ package alternativa.utils function set capacity(param1:int) : void; - function name_633(param1:int) : IStringBufferIterator; + function getIterator(param1:int) : IStringBufferIterator; } } diff --git a/src/alternativa/utils/MathUtils.as b/src/alternativa/utils/MathUtils.as index 29842f4..fef2c24 100644 --- a/src/alternativa/utils/MathUtils.as +++ b/src/alternativa/utils/MathUtils.as @@ -31,23 +31,23 @@ package alternativa.utils super(); } - public static function method_806(angle:Number) : Number + public static function toRadian(angle:Number) : Number { return angle * toRad; } - public static function method_801(angle:Number) : Number + public static function toDegree(angle:Number) : Number { return angle * toDeg; } - public static function method_802(angle:Number) : Number + public static function limitAngle(angle:Number) : Number { var res:Number = angle % DEG360; return res > 0 ? (res > DEG180 ? res - DEG360 : res) : (res < -DEG180 ? res + DEG360 : res); } - public static function method_805(a:Number, b:Number) : Number + public static function deltaAngle(a:Number, b:Number) : Number { var delta:Number = b - a; if(delta > DEG180) @@ -74,17 +74,17 @@ package alternativa.utils return Math.random() * (b - a) + a; } - public static function method_807() : Number + public static function randomAngle() : Number { return Math.random() * DEG360; } - public static function method_803(a:Number, b:Number, threshold:Number = 0) : Boolean + public static function equals(a:Number, b:Number, threshold:Number = 0) : Boolean { return b - a <= threshold && b - a >= -threshold; } - public static function method_809(first:Point, second:Point, point:Point) : Number + public static function segmentDistance(first:Point, second:Point, point:Point) : Number { var dx:Number = second.x - first.x; var dy:Number = second.y - first.y; @@ -93,13 +93,13 @@ package alternativa.utils return (dx * py - dy * px) / Math.sqrt(dx * dx + dy * dy); } - public static function method_804(a:Point, b:Point, c:Point, point:Point) : Boolean + public static function triangleHasPoint(a:Point, b:Point, c:Point, point:Point) : Boolean { - if(method_799(c.subtract(a),point.subtract(a)) <= 0) + if(vectorCross(c.subtract(a),point.subtract(a)) <= 0) { - if(method_799(b.subtract(c),point.subtract(c)) <= 0) + if(vectorCross(b.subtract(c),point.subtract(c)) <= 0) { - if(method_799(a.subtract(b),point.subtract(b)) <= 0) + if(vectorCross(a.subtract(b),point.subtract(b)) <= 0) { return true; } @@ -110,26 +110,26 @@ package alternativa.utils return false; } - public static function method_799(a:Point, b:Point) : Number + public static function vectorCross(a:Point, b:Point) : Number { return a.x * b.y - a.y * b.x; } - public static function method_800(a:Point, b:Point) : Number + public static function vectorDot(a:Point, b:Point) : Number { return a.x * b.x + a.y * b.y; } - public static function method_810(a:Point, b:Point) : Number + public static function vectorAngle(a:Point, b:Point) : Number { var len:Number = a.length * b.length; - var cos:Number = len != 0 ? method_800(a,b) / len : 1; + var cos:Number = len != 0 ? vectorDot(a,b) / len : 1; return Math.acos(cos); } - public static function method_808(a:Point, b:Point) : Number + public static function vectorAngleFast(a:Point, b:Point) : Number { - var dot:Number = method_800(a,b); + var dot:Number = vectorDot(a,b); if(Math.abs(dot) > 1) { dot = dot > 0 ? 1 : -1; diff --git a/src/alternativa/utils/Properties.as b/src/alternativa/utils/Properties.as index 1fe83a3..89b611b 100644 --- a/src/alternativa/utils/Properties.as +++ b/src/alternativa/utils/Properties.as @@ -10,17 +10,17 @@ package alternativa.utils this.data = data || new Object(); } - public function method_24(key:String) : String + public function getProperty(key:String) : String { return this.data[key]; } - public function method_25(key:String, defaultValue:String) : String + public function getPropertyDef(key:String, defaultValue:String) : String { return this.data[key] || defaultValue; } - public function method_27(key:String, value:String) : void + public function setProperty(key:String, value:String) : void { if(!value) { @@ -29,7 +29,7 @@ package alternativa.utils this.data[key] = value; } - public function get method_26() : Vector. + public function get propertyNames() : Vector. { var name:String = null; var names:Vector. = new Vector.(); diff --git a/src/alternativa/utils/TextUtils.as b/src/alternativa/utils/TextUtils.as index 1af7c7e..89673fa 100644 --- a/src/alternativa/utils/TextUtils.as +++ b/src/alternativa/utils/TextUtils.as @@ -7,7 +7,7 @@ package alternativa.utils super(); } - public static function name_719(msg:String, ... args) : String + public static function replaceVars(msg:String, ... args) : String { var len:int = int(args.length); for(var i:int = 0; i < len; i++) diff --git a/src/package_57/name_214.as b/src/commons/A3DMatrix.as similarity index 58% rename from src/package_57/name_214.as rename to src/commons/A3DMatrix.as index 7fac1e6..9264c72 100644 --- a/src/package_57/name_214.as +++ b/src/commons/A3DMatrix.as @@ -1,96 +1,96 @@ -package package_57 +package commons { - public class name_214 + public class A3DMatrix { - private var var_316:Number; + private var §_-Cw§:Number; - private var var_317:Number; + private var §_-gS§:Number; - private var var_310:Number; + private var §_-ne§:Number; - private var var_319:Number; + private var §_-72§:Number; - private var var_311:Number; + private var §_-mV§:Number; private var _f:Number; - private var var_312:Number; + private var §_-eD§:Number; - private var var_315:Number; + private var §_-ih§:Number; - private var var_313:Number; + private var §_-Lu§:Number; - private var var_320:Number; + private var §_-cJ§:Number; - private var var_318:Number; + private var §_-SO§:Number; - private var var_314:Number; + private var §_-UI§:Number; - public function name_214(a:Number, b:Number, c:Number, d:Number, e:Number, f:Number, g:Number, h:Number, i:Number, j:Number, k:Number, l:Number) + public function A3DMatrix(a:Number, b:Number, c:Number, d:Number, e:Number, f:Number, g:Number, h:Number, i:Number, j:Number, k:Number, l:Number) { super(); - this.var_316 = a; - this.var_317 = b; - this.var_310 = c; - this.var_319 = d; - this.var_311 = e; + this.§_-Cw§ = a; + this.§_-gS§ = b; + this.§_-ne§ = c; + this.§_-72§ = d; + this.§_-mV§ = e; this._f = f; - this.var_312 = g; - this.var_315 = h; - this.var_313 = i; - this.var_320 = j; - this.var_318 = k; - this.var_314 = l; + this.§_-eD§ = g; + this.§_-ih§ = h; + this.§_-Lu§ = i; + this.§_-cJ§ = j; + this.§_-SO§ = k; + this.§_-UI§ = l; } public function get a() : Number { - return this.var_316; + return this.§_-Cw§; } public function set a(value:Number) : void { - this.var_316 = value; + this.§_-Cw§ = value; } public function get b() : Number { - return this.var_317; + return this.§_-gS§; } public function set b(value:Number) : void { - this.var_317 = value; + this.§_-gS§ = value; } public function get c() : Number { - return this.var_310; + return this.§_-ne§; } public function set c(value:Number) : void { - this.var_310 = value; + this.§_-ne§ = value; } public function get d() : Number { - return this.var_319; + return this.§_-72§; } public function set d(value:Number) : void { - this.var_319 = value; + this.§_-72§ = value; } public function get e() : Number { - return this.var_311; + return this.§_-mV§; } public function set e(value:Number) : void { - this.var_311 = value; + this.§_-mV§ = value; } public function get f() : Number @@ -105,62 +105,62 @@ package package_57 public function get g() : Number { - return this.var_312; + return this.§_-eD§; } public function set g(value:Number) : void { - this.var_312 = value; + this.§_-eD§ = value; } public function get h() : Number { - return this.var_315; + return this.§_-ih§; } public function set h(value:Number) : void { - this.var_315 = value; + this.§_-ih§ = value; } public function get i() : Number { - return this.var_313; + return this.§_-Lu§; } public function set i(value:Number) : void { - this.var_313 = value; + this.§_-Lu§ = value; } public function get j() : Number { - return this.var_320; + return this.§_-cJ§; } public function set j(value:Number) : void { - this.var_320 = value; + this.§_-cJ§ = value; } public function get k() : Number { - return this.var_318; + return this.§_-SO§; } public function set k(value:Number) : void { - this.var_318 = value; + this.§_-SO§ = value; } public function get l() : Number { - return this.var_314; + return this.§_-UI§; } public function set l(value:Number) : void { - this.var_314 = value; + this.§_-UI§ = value; } public function toString() : String diff --git a/src/package_57/name_213.as b/src/commons/Id.as similarity index 60% rename from src/package_57/name_213.as rename to src/commons/Id.as index 3bc03eb..f87d29b 100644 --- a/src/package_57/name_213.as +++ b/src/commons/Id.as @@ -1,23 +1,23 @@ -package package_57 +package commons { - public class name_213 + public class Id { - private var var_101:uint; + private var §_-3I§:uint; - public function name_213(id:uint) + public function Id(id:uint) { super(); - this.var_101 = id; + this.§_-3I§ = id; } public function get id() : uint { - return this.var_101; + return this.§_-3I§; } public function set id(value:uint) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function toString() : String diff --git a/src/name_164.as b/src/name_164.as deleted file mode 100644 index cdde21f..0000000 --- a/src/name_164.as +++ /dev/null @@ -1,15 +0,0 @@ -package -{ - import mx.core.BitmapAsset; - - [ExcludeClass] - [Embed(source="/_assets/14_name_164.jpg")] - public class name_164 extends BitmapAsset - { - public function name_164() - { - super(); - } - } -} - diff --git a/src/name_165.as b/src/name_165.as deleted file mode 100644 index f898102..0000000 --- a/src/name_165.as +++ /dev/null @@ -1,15 +0,0 @@ -package -{ - import mx.core.BitmapAsset; - - [ExcludeClass] - [Embed(source="/_assets/13_name_165.jpg")] - public class name_165 extends BitmapAsset - { - public function name_165() - { - super(); - } - } -} - diff --git a/src/name_166.as b/src/name_166.as deleted file mode 100644 index 9d5c3fa..0000000 --- a/src/name_166.as +++ /dev/null @@ -1,15 +0,0 @@ -package -{ - import mx.core.BitmapAsset; - - [ExcludeClass] - [Embed(source="/_assets/16_name_166.jpg")] - public class name_166 extends BitmapAsset - { - public function name_166() - { - super(); - } - } -} - diff --git a/src/package_101/name_304.as b/src/package_101/name_304.as deleted file mode 100644 index bbd8370..0000000 --- a/src/package_101/name_304.as +++ /dev/null @@ -1,94 +0,0 @@ -package package_101 -{ - import alternativa.tanks.game.GameKernel; - import package_119.name_552; - import package_27.name_501; - import package_46.name_194; - import package_72.class_12; - import alternativa.tanks.game.weapons.IGenericRound; - import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; - import alternativa.tanks.game.weapons.WeaponHit; - import package_76.name_256; - import package_86.name_257; - import package_86.name_540; - import package_90.name_273; - import package_92.name_271; - - public class name_304 implements IGenericRound - { - private static const COLLISION_MASK:int = name_257.STATIC | name_257.WEAPON; - - private static var hitPosition:name_194 = new name_194(); - - private static var filter:name_540 = new name_540(); - - private static var rayHit:name_273 = new name_273(); - - private static var hitInfo:WeaponHit = new WeaponHit(); - - private var impactForce:Number; - - private var weakening:IWeaponDistanceWeakening; - - private var effects:class_12; - - private var callback:name_552; - - public function name_304(impactForce:Number, weakening:IWeaponDistanceWeakening, effects:class_12) - { - super(); - this.impactForce = impactForce; - this.weakening = weakening; - this.effects = effects; - } - - public function method_383(callback:name_552) : void - { - this.callback = callback; - } - - public function method_372(gameKernel:GameKernel, shotId:int, shooter:name_271, barrelOrigin:name_194, barrelLength:Number, shotDirection:name_194, muzzlePosition:name_194) : void - { - var distance:Number = NaN; - var weakeningCoefficient:Number = NaN; - var collisionDetector:name_256 = gameKernel.method_112().name_246().collisionDetector; - filter.body = shooter; - if(collisionDetector.raycast(barrelOrigin,shotDirection,COLLISION_MASK,name_501.BIG_VALUE,filter,rayHit)) - { - distance = rayHit.t - barrelLength; - if(distance < 0) - { - distance = 0; - } - weakeningCoefficient = Number(this.weakening.name_554(distance)); - hitInfo.body = rayHit.primitive.body; - hitInfo.direction.copy(shotDirection); - hitInfo.normal.copy(rayHit.normal); - hitInfo.position.copy(rayHit.position); - hitInfo.distance = distance; - this.method_464(hitInfo.body,hitInfo.position,hitInfo.direction,weakeningCoefficient); - if(this.callback != null) - { - this.callback.name_555(shotId,hitInfo,null); - } - } - filter.body = null; - } - - public function method_465(target:name_271, targetHitPosition:name_194, hitDirection:name_194, distance:Number) : void - { - hitPosition.copy(targetHitPosition); - this.method_464(target,hitPosition,hitDirection,this.weakening.name_554(distance)); - } - - private function method_464(target:name_271, hitPosition:name_194, hitDirection:name_194, weakening:Number) : void - { - if(target != null) - { - target.name_556(hitPosition,hitDirection,this.impactForce * weakening); - } - this.effects.createEffects(hitPosition,weakening,0); - } - } -} - diff --git a/src/package_102/name_355.as b/src/package_102/name_355.as deleted file mode 100644 index ad9d876..0000000 --- a/src/package_102/name_355.as +++ /dev/null @@ -1,18 +0,0 @@ -package package_102 -{ - import flash.utils.Dictionary; - - public interface name_355 - { - function name_360(param1:name_636) : void; - - function method_591(param1:String) : void; - - function dump(param1:String, param2:Array) : String; - - function get method_590() : Dictionary; - - function get method_592() : Vector.; - } -} - diff --git a/src/package_102/name_359.as b/src/package_102/name_359.as deleted file mode 100644 index 8510fe5..0000000 --- a/src/package_102/name_359.as +++ /dev/null @@ -1,99 +0,0 @@ -package package_102 -{ - import flash.utils.Dictionary; - import alternativa.osgi.OSGi; - import alternativa.osgi.service.console.IConsole; - - public class name_359 implements name_355 - { - private var osgi:OSGi; - - private var var_548:Dictionary; - - private var var_547:Vector.; - - public function name_359(osgi:OSGi) - { - super(); - this.osgi = osgi; - var console:IConsole = IConsole(osgi.name_30(IConsole)); - console.name_45("dump",this.method_594); - this.var_548 = new Dictionary(false); - this.var_547 = new Vector.(); - } - - public function name_360(dumper:name_636) : void - { - if(this.var_548[dumper.dumperName] != null) - { - throw new Error("Dumper is already registered"); - } - this.var_548[dumper.dumperName] = dumper; - this.var_547.push(dumper); - } - - public function method_591(dumperName:String) : void - { - var dumper:name_636 = this.var_548[dumperName]; - if(dumper != null) - { - this.var_547.splice(this.var_547.indexOf(dumper),1); - delete this.var_548[dumperName]; - } - } - - public function dump(dumperName:String, params:Array) : String - { - var dumper:name_636 = null; - var index:int = 0; - if(dumperName == null) - { - return this.method_593(); - } - if(dumperName.match(/^\d+$/) != null) - { - index = int(int(dumperName)); - if(index < this.var_547.length) - { - dumper = this.var_547[index]; - } - } - else - { - dumper = this.var_548[dumperName]; - } - if(dumper == null) - { - return "Dumper " + dumperName + " not found. Available dumpers: \n" + this.method_593(); - } - return dumper.dump(params); - } - - public function get method_590() : Dictionary - { - return this.var_548; - } - - public function get method_592() : Vector. - { - return this.var_547; - } - - private function method_593() : String - { - var s:String = ""; - for(var i:int = 0; i < this.var_547.length; i++) - { - s += i.toString() + " " + this.var_547[i].dumperName + "\n"; - } - return s; - } - - private function method_594(console:IConsole, params:Array) : void - { - var dumperName:String = params.shift(); - console.name_145(this.dump(dumperName,params)); - } - } -} - diff --git a/src/package_103/name_361.as b/src/package_103/name_361.as deleted file mode 100644 index 1a219de..0000000 --- a/src/package_103/name_361.as +++ /dev/null @@ -1,40 +0,0 @@ -package package_103 -{ - import alternativa.utils.Properties; - import alternativa.startup.LibraryInfo; - - public class name_361 implements name_365 - { - private var urlParams:Properties; - - private var var_553:Vector.; - - public function name_361(urlParams:Properties, startupLibraryInfos:Vector.) - { - super(); - this.urlParams = urlParams; - this.var_553 = startupLibraryInfos; - } - - public function method_608(parameterName:String) : String - { - return this.urlParams.method_24(parameterName); - } - - public function get method_607() : Vector. - { - return this.urlParams.method_26; - } - - public function get startupLibraryInfos() : Vector. - { - return this.var_553; - } - - public function get method_609() : Boolean - { - return Boolean(this.urlParams.method_24("debug")); - } - } -} - diff --git a/src/package_103/name_365.as b/src/package_103/name_365.as deleted file mode 100644 index dd3c410..0000000 --- a/src/package_103/name_365.as +++ /dev/null @@ -1,16 +0,0 @@ -package package_103 -{ - import alternativa.startup.LibraryInfo; - - public interface name_365 - { - function method_608(param1:String) : String; - - function get method_607() : Vector.; - - function get startupLibraryInfos() : Vector.; - - function get method_609() : Boolean; - } -} - diff --git a/src/package_104/name_358.as b/src/package_104/name_358.as deleted file mode 100644 index a22d81f..0000000 --- a/src/package_104/name_358.as +++ /dev/null @@ -1,32 +0,0 @@ -package package_104 -{ - import flash.display.BitmapData; - - public interface name_358 - { - function method_599(param1:String, param2:String) : void; - - function method_601(param1:String, param2:BitmapData) : void; - - function method_595(param1:String, param2:Boolean) : void; - - function method_600(param1:String, param2:Number) : void; - - function method_598(param1:String, param2:int) : void; - - function method_597(param1:String, ... rest) : String; - - function method_604(param1:String) : BitmapData; - - function method_602(param1:String) : Boolean; - - function method_596(param1:String) : Number; - - function method_603(param1:String) : int; - - function get language() : String; - - function get defaultLanguage() : String; - } -} - diff --git a/src/package_104/name_370.as b/src/package_104/name_370.as deleted file mode 100644 index f2f8c5d..0000000 --- a/src/package_104/name_370.as +++ /dev/null @@ -1,102 +0,0 @@ -package package_104 -{ - import flash.display.BitmapData; - import flash.utils.Dictionary; - - public class name_370 implements name_358 - { - private var strings:Object = {}; - - private var images:Object = {}; - - private var var_550:Object = {}; - - private var numbers:Object = {}; - - private var var_549:Object = {}; - - private var var_552:String; - - private var var_551:String; - - public function name_370(language:String, defaultLanguage:String) - { - super(); - this.var_552 = language; - this.var_551 = defaultLanguage; - this.strings = new Dictionary(); - this.images = new Dictionary(); - } - - public function method_599(id:String, text:String) : void - { - this.strings[id] = text; - } - - public function method_601(id:String, image:BitmapData) : void - { - this.images[id] = image; - } - - public function method_595(id:String, value:Boolean) : void - { - this.var_550[id] = value; - } - - public function method_600(id:String, value:Number) : void - { - this.numbers[id] = value; - } - - public function method_598(id:String, value:int) : void - { - this.var_549[id] = value; - } - - public function method_597(id:String, ... vars) : String - { - var text:String = this.strings[id]; - if(text == null) - { - return id; - } - for(var i:int = 0; i < vars.length; ) - { - text = text.replace("%" + (i + 1),vars[i]); - i++; - } - return text; - } - - public function method_604(id:String) : BitmapData - { - return this.images[id]; - } - - public function method_602(id:String) : Boolean - { - return this.var_550[id]; - } - - public function method_596(id:String) : Number - { - return this.numbers[id]; - } - - public function method_603(id:String) : int - { - return this.var_549[id]; - } - - public function get language() : String - { - return this.var_552; - } - - public function get defaultLanguage() : String - { - return this.var_551; - } - } -} - diff --git a/src/package_105/name_363.as b/src/package_105/name_363.as deleted file mode 100644 index 92b658c..0000000 --- a/src/package_105/name_363.as +++ /dev/null @@ -1,29 +0,0 @@ -package package_105 -{ - import flash.display.DisplayObjectContainer; - import flash.display.Stage; - - public interface name_363 - { - function get stage() : Stage; - - function get method_610() : DisplayObjectContainer; - - function get method_611() : DisplayObjectContainer; - - function get method_614() : DisplayObjectContainer; - - function get method_617() : DisplayObjectContainer; - - function get method_613() : DisplayObjectContainer; - - function get method_616() : DisplayObjectContainer; - - function get method_612() : DisplayObjectContainer; - - function get method_618() : DisplayObjectContainer; - - function get method_615() : DisplayObjectContainer; - } -} - diff --git a/src/package_105/name_364.as b/src/package_105/name_364.as deleted file mode 100644 index 83f5541..0000000 --- a/src/package_105/name_364.as +++ /dev/null @@ -1,104 +0,0 @@ -package package_105 -{ - import flash.display.DisplayObjectContainer; - import flash.display.Sprite; - import flash.display.Stage; - - public class name_364 implements name_363 - { - private var var_43:Stage; - - private var var_557:DisplayObjectContainer; - - private var var_565:DisplayObjectContainer; - - private var var_559:DisplayObjectContainer; - - private var var_558:DisplayObjectContainer; - - private var var_561:DisplayObjectContainer; - - private var var_564:DisplayObjectContainer; - - private var var_560:DisplayObjectContainer; - - private var var_563:DisplayObjectContainer; - - private var var_562:DisplayObjectContainer; - - public function name_364(rootContainer:DisplayObjectContainer) - { - super(); - this.var_43 = rootContainer.stage; - this.var_557 = rootContainer; - this.var_565 = this.method_619(); - this.var_559 = this.method_619(); - this.var_558 = this.method_619(); - this.var_561 = this.method_619(); - this.var_564 = this.method_619(); - this.var_560 = this.method_619(); - this.var_563 = this.method_619(); - this.var_562 = this.method_619(); - } - - private function method_619() : Sprite - { - var sprite:Sprite = new Sprite(); - sprite.mouseEnabled = false; - sprite.tabEnabled = false; - this.var_557.addChild(sprite); - return sprite; - } - - public function get stage() : Stage - { - return this.var_43; - } - - public function get method_610() : DisplayObjectContainer - { - return this.var_557; - } - - public function get method_611() : DisplayObjectContainer - { - return this.var_565; - } - - public function get method_614() : DisplayObjectContainer - { - return this.var_559; - } - - public function get method_617() : DisplayObjectContainer - { - return this.var_558; - } - - public function get method_613() : DisplayObjectContainer - { - return this.var_561; - } - - public function get method_616() : DisplayObjectContainer - { - return this.var_564; - } - - public function get method_612() : DisplayObjectContainer - { - return this.var_560; - } - - public function get method_618() : DisplayObjectContainer - { - return this.var_563; - } - - public function get method_615() : DisplayObjectContainer - { - return this.var_562; - } - } -} - diff --git a/src/package_107/name_362.as b/src/package_107/name_362.as deleted file mode 100644 index 40bada4..0000000 --- a/src/package_107/name_362.as +++ /dev/null @@ -1,16 +0,0 @@ -package package_107 -{ - public interface name_362 - { - function get controlServerAddress() : String; - - function get controlServerPorts() : Vector.; - - function get resourcesRootUrl() : String; - - function method_605(param1:String) : int; - - function method_606(param1:String, param2:int) : void; - } -} - diff --git a/src/package_107/name_369.as b/src/package_107/name_369.as deleted file mode 100644 index f1b9714..0000000 --- a/src/package_107/name_369.as +++ /dev/null @@ -1,52 +0,0 @@ -package package_107 -{ - import flash.net.SharedObject; - - public class name_369 implements name_362 - { - private static const SHARED_OBJECT_NAME:String = "connection"; - - private var var_555:String; - - private var var_554:Vector.; - - private var var_556:String; - - public function name_369(controlServerAddress:String, controlServerPorts:Vector., resourcesRootUrl:String) - { - super(); - this.var_555 = controlServerAddress; - this.var_554 = controlServerPorts; - this.var_556 = resourcesRootUrl; - } - - public function get controlServerAddress() : String - { - return this.var_555; - } - - public function get controlServerPorts() : Vector. - { - return this.var_554; - } - - public function get resourcesRootUrl() : String - { - return this.var_556; - } - - public function method_605(host:String) : int - { - var so:SharedObject = SharedObject.getLocal(SHARED_OBJECT_NAME,"/"); - return so.data[host]; - } - - public function method_606(host:String, port:int) : void - { - var so:SharedObject = SharedObject.getLocal(SHARED_OBJECT_NAME,"/"); - so.data[host] = port; - so.flush(); - } - } -} - diff --git a/src/package_108/name_373.as b/src/package_108/name_373.as deleted file mode 100644 index 46020a0..0000000 --- a/src/package_108/name_373.as +++ /dev/null @@ -1,16 +0,0 @@ -package package_108 -{ - public interface name_373 - { - function add(param1:Object) : void; - - function hasNext() : Boolean; - - function method_626() : Boolean; - - function next() : Object; - - function name_375() : Object; - } -} - diff --git a/src/package_108/name_639.as b/src/package_108/name_639.as deleted file mode 100644 index f89c629..0000000 --- a/src/package_108/name_639.as +++ /dev/null @@ -1,17 +0,0 @@ -package package_108 -{ - internal class name_639 - { - public var data:Object; - - public var next:name_639; - - public var prev:name_639; - - public function name_639() - { - super(); - } - } -} - diff --git a/src/package_108/name_640.as b/src/package_108/name_640.as deleted file mode 100644 index 6faf097..0000000 --- a/src/package_108/name_640.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_108 -{ - import package_127.name_729; - import package_127.name_730; - - internal class name_640 implements name_373 - { - private var list:name_374; - - private var var_568:int; - - private var var_668:name_639; - - private var var_667:name_639; - - public function name_640(list:name_374) - { - super(); - this.list = list; - this.var_568 = list.var_568; - this.var_667 = list.head; - this.var_668 = this.var_667.next; - } - - public function add(data:Object) : void - { - this.method_811(); - var item:name_639 = new name_639(); - item.data = data; - item.prev = this.var_667; - item.next = this.var_668; - this.var_667.next = item; - this.var_668.prev = item; - this.var_667 = item; - this.method_812(); - } - - public function hasNext() : Boolean - { - this.method_811(); - return this.var_668 != this.list.tail; - } - - public function method_626() : Boolean - { - this.method_811(); - return this.var_667 != this.list.head; - } - - public function next() : Object - { - this.method_811(); - if(this.var_668 == this.list.tail) - { - throw new name_729(); - } - this.var_667 = this.var_668; - this.var_668 = this.var_668.next; - return this.var_667.data; - } - - public function name_375() : Object - { - this.method_811(); - if(this.var_667 == this.list.head) - { - throw new name_729(); - } - this.var_668 = this.var_667; - this.var_667 = this.var_667.prev; - return this.var_668.data; - } - - private function method_811() : void - { - if(this.var_568 != this.list.var_568) - { - throw new name_730(); - } - } - - private function method_812() : void - { - ++this.var_568; - this.list.var_568 = this.var_568; - } - } -} - diff --git a/src/package_111/name_456.as b/src/package_111/name_456.as deleted file mode 100644 index e173d3f..0000000 --- a/src/package_111/name_456.as +++ /dev/null @@ -1,36 +0,0 @@ -package package_111 -{ - import flash.utils.ByteArray; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class name_456 implements name_152 - { - public function name_456() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var bytes:ByteArray = ByteArray(object); - name_443.name_446(protocolBuffer,bytes.length); - protocolBuffer.name_483.writeBytes(bytes); - } - - public function method_296(protocolBuffer:name_442) : Object - { - var size:int = name_443.name_445(protocolBuffer); - var bytes:ByteArray = new ByteArray(); - protocolBuffer.reader.readBytes(bytes,0,size); - return bytes; - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_111/name_457.as b/src/package_111/name_457.as deleted file mode 100644 index 335ad62..0000000 --- a/src/package_111/name_457.as +++ /dev/null @@ -1,36 +0,0 @@ -package package_111 -{ - import flash.utils.ByteArray; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class name_457 implements name_152 - { - public function name_457() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var bytes:ByteArray = new ByteArray(); - bytes.writeUTFBytes(String(object)); - var length:int = int(bytes.length); - name_443.name_446(protocolBuffer,length); - protocolBuffer.name_483.writeBytes(bytes,0,length); - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - return protocolBuffer.reader.readUTFBytes(length); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_112/class_33.as b/src/package_112/class_33.as deleted file mode 100644 index dfdf961..0000000 --- a/src/package_112/class_33.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_112 -{ - import package_71.name_333; - - public interface class_33 - { - function method_648(param1:String, param2:XML, param3:Vector.) : name_651; - } -} - diff --git a/src/package_112/name_463.as b/src/package_112/name_463.as deleted file mode 100644 index ae2269d..0000000 --- a/src/package_112/name_463.as +++ /dev/null @@ -1,18 +0,0 @@ -package package_112 -{ - import package_71.name_333; - - public class name_463 implements class_33 - { - public function name_463() - { - super(); - } - - public function method_648(param1:String, param2:XML, param3:Vector.) : name_651 - { - return new name_652(param1,param2,param3); - } - } -} - diff --git a/src/package_112/name_464.as b/src/package_112/name_464.as deleted file mode 100644 index 3838f41..0000000 --- a/src/package_112/name_464.as +++ /dev/null @@ -1,18 +0,0 @@ -package package_112 -{ - import package_71.name_333; - - public class name_464 implements class_33 - { - public function name_464() - { - super(); - } - - public function method_648(param1:String, param2:XML, param3:Vector.) : name_651 - { - return new name_653(param1,param2,param3); - } - } -} - diff --git a/src/package_112/name_652.as b/src/package_112/name_652.as deleted file mode 100644 index bb94a27..0000000 --- a/src/package_112/name_652.as +++ /dev/null @@ -1,21 +0,0 @@ -package package_112 -{ - import alternativa.utils.ByteArrayMap; - import package_71.name_333; - import package_78.name_243; - - public class name_652 extends name_651 - { - public function name_652(param1:String, param2:XML, param3:Vector.) - { - super(param1,param2,param3); - } - - override public function parseModelData(param1:ByteArrayMap) : name_333 - { - var _loc2_:name_243 = new name_243(); - return _loc2_.method_314(param1,var_673); - } - } -} - diff --git a/src/package_112/name_653.as b/src/package_112/name_653.as deleted file mode 100644 index 0d20049..0000000 --- a/src/package_112/name_653.as +++ /dev/null @@ -1,21 +0,0 @@ -package package_112 -{ - import alternativa.utils.ByteArrayMap; - import package_71.name_333; - import package_78.name_731; - - public class name_653 extends name_651 - { - public function name_653(param1:String, param2:XML, param3:Vector.) - { - super(param1,param2,param3); - } - - override public function parseModelData(param1:ByteArrayMap) : name_333 - { - var _loc2_:name_731 = new name_731(); - return _loc2_.method_314(param1,var_673); - } - } -} - diff --git a/src/package_113/class_34.as b/src/package_113/class_34.as deleted file mode 100644 index 20caad8..0000000 --- a/src/package_113/class_34.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_113 -{ - import package_46.name_194; - - public interface class_34 - { - function visitCell(param1:int, param2:int, param3:int, param4:int, param5:Number, param6:Number, param7:int, param8:name_194, param9:name_194) : Boolean; - } -} - diff --git a/src/package_113/name_685.as b/src/package_113/name_685.as deleted file mode 100644 index fdbd8fd..0000000 --- a/src/package_113/name_685.as +++ /dev/null @@ -1,52 +0,0 @@ -package package_113 -{ - import package_76.name_235; - import package_92.name_271; - - public class name_685 - { - private static var poolSize:int; - - private static var pool:Vector. = new Vector.(); - - public var body:name_271; - - public var simplePrimitives:Vector.; - - public var detailedPrimitives:Vector.; - - public var index:int; - - public var i:int; - - public var j:int; - - public var k:int; - - public var timestamp:int; - - public function name_685() - { - super(); - } - - public static function create() : name_685 - { - if(poolSize == 0) - { - return new name_685(); - } - return pool[--poolSize]; - } - - public function destroy() : void - { - this.body = null; - this.simplePrimitives = null; - this.detailedPrimitives = null; - var _loc1_:* = poolSize++; - pool[_loc1_] = this; - } - } -} - diff --git a/src/package_114/name_488.as b/src/package_114/name_488.as deleted file mode 100644 index 82b1629..0000000 --- a/src/package_114/name_488.as +++ /dev/null @@ -1,39 +0,0 @@ -package package_114 -{ - import alternativa.tanks.game.Entity; - - public class name_488 - { - public var name_493:class_35; - - private var var_619:Object; - - public function name_488() - { - super(); - this.var_619 = new Object(); - } - - public function name_486(entity:Entity, eventType:String, eventState:class_35) : void - { - if(this.var_619[eventType] != null) - { - throw new Error("Duplicate event type: " + eventType); - } - this.var_619[eventType] = eventState; - entity.addEventHandler(eventType,this.method_703); - } - - public function method_703(eventName:String, data:*) : void - { - var newState:class_35 = this.var_619[eventName]; - if(newState != this.name_493) - { - this.name_493.stop(); - this.name_493 = newState; - this.name_493.start(data); - } - } - } -} - diff --git a/src/package_114/name_489.as b/src/package_114/name_489.as deleted file mode 100644 index 6edc647..0000000 --- a/src/package_114/name_489.as +++ /dev/null @@ -1,21 +0,0 @@ -package package_114 -{ - public class name_489 implements class_35 - { - public static const INSTANCE:name_489 = new name_489(); - - public function name_489() - { - super(); - } - - public function start(data:*) : void - { - } - - public function stop() : void - { - } - } -} - diff --git a/src/package_115/class_26.as b/src/package_115/class_26.as deleted file mode 100644 index c2c90e0..0000000 --- a/src/package_115/class_26.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_115 -{ - import package_46.name_194; - - public interface class_26 - { - function method_411(param1:int, param2:name_194, param3:name_194, param4:name_194, param5:name_194) : void; - } -} - diff --git a/src/package_116/name_641.as b/src/package_116/name_641.as deleted file mode 100644 index f3806cc..0000000 --- a/src/package_116/name_641.as +++ /dev/null @@ -1,86 +0,0 @@ -package package_116 -{ - import alternativa.engine3d.alternativa3d; - import avmplus.getQualifiedClassName; - import flash.utils.Dictionary; - import flash.utils.getDefinitionByName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_28.name_119; - import package_28.name_129; - import package_28.name_167; - import package_4.*; - - use namespace alternativa3d; - - public class name_641 extends class_4 - { - public var colors:Object; - - public var textures:Object; - - public var transparency:Number = 0; - - public var var_670:String = "diffuse"; - - private var textureMaterial:class_5; - - private var var_669:name_313; - - public function name_641() - { - super(); - this.textures = new Object(); - this.colors = new Object(); - } - - override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void - { - var texture:name_129 = null; - super.alternativa3d::fillResources(resources,resourceType); - for each(texture in this.textures) - { - if(texture != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(texture)) as Class,resourceType))) - { - resources[texture] = true; - } - } - } - - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void - { - var map:name_167 = null; - var colorO:Object = this.colors[this.var_670]; - if(colorO != null) - { - if(this.var_669 == null) - { - this.var_669 = new name_313(int(colorO)); - } - else - { - this.var_669.color = int(colorO); - } - this.var_669.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); - } - else - { - map = this.textures[this.var_670]; - if(map != null) - { - if(this.textureMaterial == null) - { - this.textureMaterial = new class_5(map); - } - else - { - this.textureMaterial.diffuseMap = map; - } - this.textureMaterial.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); - } - } - } - } -} - diff --git a/src/package_117/name_542.as b/src/package_117/name_542.as deleted file mode 100644 index 2dfedb7..0000000 --- a/src/package_117/name_542.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_117 -{ - import package_92.name_271; - - public interface name_542 - { - function name_541(param1:name_271, param2:Number) : Number; - } -} - diff --git a/src/package_118/class_37.as b/src/package_118/class_37.as deleted file mode 100644 index af35c4d..0000000 --- a/src/package_118/class_37.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_118 -{ - public interface class_37 - { - function get radius() : Number; - - function method_758(param1:Number, param2:Number) : Number; - } -} - diff --git a/src/package_118/class_38.as b/src/package_118/class_38.as deleted file mode 100644 index 71f0b5c..0000000 --- a/src/package_118/class_38.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_118 -{ - import package_86.name_655; - import package_92.name_271; - - public interface class_38 extends name_655 - { - function method_759(param1:name_271) : void; - } -} - diff --git a/src/package_118/name_550.as b/src/package_118/name_550.as deleted file mode 100644 index 711163d..0000000 --- a/src/package_118/name_550.as +++ /dev/null @@ -1,146 +0,0 @@ -package package_118 -{ - import alternativa.tanks.game.GameKernel; - import package_119.name_552; - import package_27.name_501; - import package_46.name_194; - import package_72.class_12; - import alternativa.tanks.game.weapons.IGenericRound; - import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; - import alternativa.tanks.game.weapons.WeaponHit; - import package_86.name_257; - import package_86.name_468; - import package_86.name_540; - import package_86.name_654; - import package_90.name_273; - import package_92.name_271; - - public class name_550 implements IGenericRound - { - private static const HIT_POINT_CORRECTION:Number = 1; - - private static var direction:name_194 = new name_194(); - - private static var force:name_194 = new name_194(); - - private static var splashHits:Vector. = new Vector.(); - - private static var rayHit:name_273 = new name_273(); - - private static var filter:name_540 = new name_540(); - - private static var hitInfo:WeaponHit = new WeaponHit(); - - private var directImpactForce:Number; - - private var weakening:IWeaponDistanceWeakening; - - private var splashDamage:class_37; - - private var effects:class_12; - - private var collisionDetector:name_468; - - private var splashTargetFilter:class_38; - - private var callback:name_552; - - public function name_550(directImpactForce:Number, weakening:IWeaponDistanceWeakening, splashDamage:class_37, effects:class_12, collisionDetector:name_468, splashTargetFilter:class_38) - { - super(); - this.directImpactForce = directImpactForce; - this.weakening = weakening; - this.splashDamage = splashDamage; - this.effects = effects; - this.collisionDetector = collisionDetector; - this.splashTargetFilter = splashTargetFilter; - } - - public function method_383(callback:name_552) : void - { - this.callback = callback; - } - - public function method_372(gameKernel:GameKernel, shotId:int, shooter:name_271, barrelOrigin:name_194, barrelLength:Number, shotDirection:name_194, muzzlePosition:name_194) : void - { - var distance:Number = NaN; - var weakeningCoefficient:Number = NaN; - var impactForce:Number = NaN; - var primaryTarget:name_271 = null; - filter.body = shooter; - if(this.collisionDetector.raycast(barrelOrigin,shotDirection,name_257.WEAPON | name_257.STATIC,name_501.BIG_VALUE,filter,rayHit)) - { - distance = rayHit.t - barrelLength; - if(distance < 0) - { - distance = 0; - } - weakeningCoefficient = Number(this.weakening.name_554(distance)); - impactForce = this.directImpactForce * weakeningCoefficient; - primaryTarget = rayHit.primitive.body; - if(primaryTarget != null) - { - primaryTarget.name_556(rayHit.position,shotDirection,impactForce); - } - rayHit.position.method_362(HIT_POINT_CORRECTION,rayHit.normal); - splashHits.length = 0; - this.method_760(rayHit.position,primaryTarget,impactForce,splashHits); - this.effects.createEffects(rayHit.position,weakeningCoefficient,this.splashDamage.radius); - hitInfo.body = primaryTarget; - hitInfo.direction.copy(shotDirection); - hitInfo.distance = distance; - hitInfo.normal.copy(rayHit.normal); - hitInfo.position.copy(rayHit.position); - if(this.callback != null) - { - this.callback.name_555(shotId,hitInfo,splashHits); - } - splashHits.length = 0; - } - filter.body = null; - } - - public function method_465(hitPosition:name_194, primaryTarget:name_271, muzzlePosition:name_194) : void - { - direction.method_366(hitPosition,muzzlePosition); - var weakeningCoefficient:Number = Number(this.weakening.name_554(direction.length())); - var imactForce:Number = this.directImpactForce * weakeningCoefficient; - if(primaryTarget != null) - { - direction.normalize(); - primaryTarget.name_556(hitPosition,direction,imactForce); - } - this.method_760(hitPosition,primaryTarget,imactForce,null); - this.effects.createEffects(hitPosition,weakeningCoefficient,this.splashDamage.radius); - } - - private function method_760(hitPosition:name_194, primaryTarget:name_271, impactForce:Number, splashHits:Vector.) : void - { - var bodyDistance:name_654 = null; - var targetBody:name_271 = null; - var splashImpactForce:Number = NaN; - var weaponHit:WeaponHit = null; - this.splashTargetFilter.method_759(primaryTarget); - var objectsInRadius:Vector. = this.collisionDetector.method_651(hitPosition,this.splashDamage.radius,this.splashTargetFilter); - this.splashTargetFilter.method_759(null); - if(objectsInRadius != null) - { - for each(bodyDistance in objectsInRadius) - { - targetBody = bodyDistance.body; - splashImpactForce = Number(this.splashDamage.method_758(impactForce,bodyDistance.distance)); - force.method_366(targetBody.state.position,hitPosition).normalize().scale(splashImpactForce); - targetBody.name_585(force); - if(splashHits != null) - { - weaponHit = new WeaponHit(); - weaponHit.distance = bodyDistance.distance; - weaponHit.body = targetBody; - splashHits.push(weaponHit); - } - } - } - } - } -} - diff --git a/src/package_119/name_552.as b/src/package_119/name_552.as deleted file mode 100644 index 4b86e1f..0000000 --- a/src/package_119/name_552.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_119 -{ - import alternativa.tanks.game.weapons.WeaponHit; - - public interface name_552 - { - function name_555(param1:int, param2:WeaponHit, param3:Vector.) : void; - } -} - diff --git a/src/package_12/name_15.as b/src/package_12/name_15.as deleted file mode 100644 index 30d9c94..0000000 --- a/src/package_12/name_15.as +++ /dev/null @@ -1,204 +0,0 @@ -package package_12 -{ - import flash.display.Bitmap; - import flash.display.Sprite; - import flash.events.Event; - import flash.events.MouseEvent; - - public class name_15 extends Sprite - { - private static const topLeftIconClass:Class = name_221; - - private static const topRightIconClass:Class = name_222; - - private static const bottomLeftIconClass:Class = name_220; - - private static const fullScreenState1Class:Class = TanksHudDemo_fullScreenState1Class; - - private static const fullScreenState2Class:Class = TanksHudDemo_fullScreenState2Class; - - private static const nextTankState1Class:Class = TanksHudDemo_nextTankState1Class; - - private static const nextTankState2Class:Class = TanksHudDemo_nextTankState2Class; - - private static const GAP_RIGHT:int = 7; - - private static const GAP_BOTTOM:int = 7; - - private static const GAP_BEEWEN_BUTTON:int = 1; - - private var var_60:Bitmap; - - private var var_57:Bitmap; - - private var var_58:Bitmap; - - private var fullScreenButtonState1:Bitmap; - - private var fullScreenButtonState2:Bitmap; - - private var nextTankButtonState1:Bitmap; - - private var nextTankButtonState2:Bitmap; - - private var var_55:Sprite; - - private var var_56:Sprite; - - private var var_59:Boolean; - - public function name_15() - { - super(); - this.init(); - } - - private function init(param1:Event = null) : void - { - tabEnabled = false; - tabChildren = false; - mouseEnabled = false; - this.var_60 = new topLeftIconClass(); - addChild(this.var_60); - this.var_57 = new topRightIconClass(); - addChild(this.var_57); - this.var_58 = new bottomLeftIconClass(); - addChild(this.var_58); - this.var_55 = new Sprite(); - this.var_55.mouseChildren = false; - addChild(this.var_55); - this.fullScreenButtonState1 = new fullScreenState1Class(); - this.var_55.addChild(this.fullScreenButtonState1); - this.fullScreenButtonState2 = new fullScreenState2Class(); - this.var_55.addChild(this.fullScreenButtonState2); - this.var_55.addEventListener(MouseEvent.ROLL_OVER,this.method_132); - this.var_55.addEventListener(MouseEvent.ROLL_OUT,this.method_131); - this.var_55.addEventListener(MouseEvent.CLICK,this.method_134); - this.name_31 = false; - this.var_56 = new Sprite(); - this.var_56.mouseChildren = false; - addChild(this.var_56); - this.nextTankButtonState1 = new nextTankState1Class(); - this.var_56.addChild(this.nextTankButtonState1); - this.nextTankButtonState2 = new nextTankState2Class(); - this.var_56.addChild(this.nextTankButtonState2); - this.nextTankButtonState2.visible = false; - this.var_56.addEventListener(MouseEvent.ROLL_OVER,this.method_136); - this.var_56.addEventListener(MouseEvent.ROLL_OUT,this.method_133); - this.var_56.addEventListener(MouseEvent.CLICK,this.method_135); - } - - public function destroy() : void - { - if(this.var_60 != null) - { - removeChild(this.var_60); - } - if(this.var_57 != null) - { - removeChild(this.var_57); - } - if(this.var_58 != null) - { - removeChild(this.var_58); - } - if(this.var_55 != null) - { - this.var_55.removeEventListener(MouseEvent.ROLL_OVER,this.method_132); - this.var_55.removeEventListener(MouseEvent.ROLL_OUT,this.method_131); - this.var_55.removeEventListener(MouseEvent.CLICK,this.method_134); - removeChild(this.var_55); - } - if(this.var_56 != null) - { - this.var_56.removeEventListener(MouseEvent.ROLL_OVER,this.method_136); - this.var_56.removeEventListener(MouseEvent.ROLL_OUT,this.method_133); - this.var_56.removeEventListener(MouseEvent.CLICK,this.method_135); - removeChild(this.var_56); - } - this.var_60 = null; - this.var_57 = null; - this.var_58 = null; - this.var_55 = null; - this.var_56 = null; - } - - public function name_50(param1:Number, param2:Number) : void - { - if(this.var_57 != null) - { - this.var_57.x = param1 - this.var_57.width; - } - if(this.var_58 != null) - { - this.var_58.y = param2 - this.var_58.height; - } - if(this.var_55 != null) - { - this.var_55.x = param1 - this.var_55.width - GAP_RIGHT; - this.var_55.y = param2 - this.var_55.height - GAP_BOTTOM; - } - if(this.var_56 != null) - { - this.var_56.x = param1 - this.var_55.width - this.var_56.width - GAP_BEEWEN_BUTTON - GAP_RIGHT; - this.var_56.y = param2 - this.var_56.height - GAP_BOTTOM; - } - } - - public function get name_31() : Boolean - { - return this.var_59; - } - - public function set name_31(param1:Boolean) : void - { - this.var_59 = param1; - if(this.var_59 == false) - { - this.fullScreenButtonState2.visible = false; - } - else - { - this.fullScreenButtonState2.visible = true; - } - } - - private function method_132(param1:MouseEvent) : void - { - if(this.var_59 == false) - { - this.fullScreenButtonState2.visible = true; - } - } - - private function method_131(param1:MouseEvent) : void - { - if(this.var_59 == false) - { - this.fullScreenButtonState2.visible = false; - } - } - - private function method_134(param1:MouseEvent) : void - { - this.name_31 = !this.var_59; - dispatchEvent(new Event("CLICK_FULL_SCREEN_BUTTON")); - } - - private function method_136(param1:MouseEvent) : void - { - this.nextTankButtonState2.visible = true; - } - - private function method_133(param1:MouseEvent) : void - { - this.nextTankButtonState2.visible = false; - } - - private function method_135(param1:MouseEvent) : void - { - dispatchEvent(new Event("CLICK_NEXT_TANK_BUTTON")); - } - } -} - diff --git a/src/package_12/name_220.as b/src/package_12/name_220.as deleted file mode 100644 index eac8e8e..0000000 --- a/src/package_12/name_220.as +++ /dev/null @@ -1,15 +0,0 @@ -package package_12 -{ - import mx.core.BitmapAsset; - - [ExcludeClass] - [Embed(source="/_assets/22_package_12.name_220.png")] - public class name_220 extends BitmapAsset - { - public function name_220() - { - super(); - } - } -} - diff --git a/src/package_12/name_221.as b/src/package_12/name_221.as deleted file mode 100644 index 60762c7..0000000 --- a/src/package_12/name_221.as +++ /dev/null @@ -1,15 +0,0 @@ -package package_12 -{ - import mx.core.BitmapAsset; - - [ExcludeClass] - [Embed(source="/_assets/15_package_12.name_221.png")] - public class name_221 extends BitmapAsset - { - public function name_221() - { - super(); - } - } -} - diff --git a/src/package_12/name_222.as b/src/package_12/name_222.as deleted file mode 100644 index 675fc79..0000000 --- a/src/package_12/name_222.as +++ /dev/null @@ -1,15 +0,0 @@ -package package_12 -{ - import mx.core.BitmapAsset; - - [ExcludeClass] - [Embed(source="/_assets/19_package_12.name_222.png")] - public class name_222 extends BitmapAsset - { - public function name_222() - { - super(); - } - } -} - diff --git a/src/package_120/name_606.as b/src/package_120/name_606.as deleted file mode 100644 index 5ff3150..0000000 --- a/src/package_120/name_606.as +++ /dev/null @@ -1,22 +0,0 @@ -package package_120 -{ - import flash.utils.Dictionary; - import package_76.name_235; - import package_76.name_631; - - public class name_606 implements name_631 - { - public var name_605:Dictionary = new Dictionary(); - - public function name_606() - { - super(); - } - - public function name_664(primitive:name_235) : Boolean - { - return this.name_605[primitive.body] == null; - } - } -} - diff --git a/src/package_121/name_732.as b/src/package_121/name_732.as deleted file mode 100644 index d9d3ffb..0000000 --- a/src/package_121/name_732.as +++ /dev/null @@ -1,73 +0,0 @@ -package package_121 -{ - import package_109.name_767; - import package_46.name_194; - import package_76.name_235; - import package_76.name_665; - import package_92.name_630; - import package_92.name_674; - - public class name_732 implements name_665 - { - private var p1:name_194 = new name_194(); - - private var p2:name_194 = new name_194(); - - public function name_732() - { - super(); - } - - public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean - { - var s1:name_767 = null; - var s2:name_767 = null; - var dz:Number = NaN; - if(prim1.body != null) - { - s1 = prim1 as name_767; - s2 = prim2 as name_767; - } - else - { - s1 = prim2 as name_767; - s2 = prim1 as name_767; - } - s1.transform.getAxis(3,this.p1); - s2.transform.getAxis(3,this.p2); - var dx:Number = this.p1.x - this.p2.x; - var dy:Number = this.p1.y - this.p2.y; - dz = this.p1.z - this.p2.z; - var len:Number = dx * dx + dy * dy + dz * dz; - var sum:Number = s1.r + s2.r; - if(len > sum * sum) - { - return false; - } - len = Number(Math.sqrt(len)); - dx /= len; - dy /= len; - dz /= len; - contact.body1 = s1.body; - contact.body2 = s2.body; - contact.normal.x = dx; - contact.normal.y = dy; - contact.normal.z = dz; - contact.name_679 = 1; - var cp:name_674 = contact.points[0]; - cp.penetration = sum - len; - cp.pos.x = this.p1.x - dx * s1.r; - cp.pos.y = this.p1.y - dy * s1.r; - cp.pos.z = this.p1.z - dz * s1.r; - cp.r1.method_366(cp.pos,this.p1); - cp.r2.method_366(cp.pos,this.p2); - return true; - } - - public function haveCollision(prim1:name_235, prim2:name_235) : Boolean - { - return false; - } - } -} - diff --git a/src/package_121/name_733.as b/src/package_121/name_733.as deleted file mode 100644 index ca7a01e..0000000 --- a/src/package_121/name_733.as +++ /dev/null @@ -1,168 +0,0 @@ -package package_121 -{ - import package_109.name_377; - import package_109.name_767; - import package_46.name_194; - import package_76.name_235; - import package_76.name_665; - import package_92.name_630; - import package_92.name_674; - - public class name_733 implements name_665 - { - private var center:name_194 = new name_194(); - - private var var_714:name_194 = new name_194(); - - private var bPos:name_194 = new name_194(); - - private var var_715:name_194 = new name_194(); - - public function name_733() - { - super(); - } - - public function getContact(prim1:name_235, prim2:name_235, contact:name_630) : Boolean - { - var box:name_377 = null; - var sphere:name_767 = prim1 as name_767; - if(sphere == null) - { - sphere = prim2 as name_767; - box = prim1 as name_377; - } - else - { - box = prim2 as name_377; - } - sphere.transform.getAxis(3,this.var_715); - box.transform.getAxis(3,this.bPos); - box.transform.transformPointTransposed(this.var_715,this.center); - var hs:name_194 = box.hs; - var sx:Number = hs.x + sphere.r; - var sy:Number = hs.y + sphere.r; - var sz:Number = hs.z + sphere.r; - if(this.center.x > sx || this.center.x < -sx || this.center.y > sy || this.center.y < -sy || this.center.z > sz || this.center.z < -sz) - { - return false; - } - if(this.center.x > hs.x) - { - this.var_714.x = hs.x; - } - else if(this.center.x < -hs.x) - { - this.var_714.x = -hs.x; - } - else - { - this.var_714.x = this.center.x; - } - if(this.center.y > hs.y) - { - this.var_714.y = hs.y; - } - else if(this.center.y < -hs.y) - { - this.var_714.y = -hs.y; - } - else - { - this.var_714.y = this.center.y; - } - if(this.center.z > hs.z) - { - this.var_714.z = hs.z; - } - else if(this.center.z < -hs.z) - { - this.var_714.z = -hs.z; - } - else - { - this.var_714.z = this.center.z; - } - var distSqr:Number = this.center.subtract(this.var_714).method_365(); - if(distSqr > sphere.r * sphere.r) - { - return false; - } - contact.body1 = sphere.body; - contact.body2 = box.body; - contact.normal.copy(this.var_714).transform4(box.transform).subtract(this.var_715).normalize().reverse(); - contact.name_679 = 1; - var cp:name_674 = contact.points[0]; - cp.penetration = sphere.r - Math.sqrt(distSqr); - cp.pos.copy(contact.normal).scale(-sphere.r).add(this.var_715); - cp.r1.method_366(cp.pos,this.var_715); - cp.r2.method_366(cp.pos,this.bPos); - return true; - } - - public function haveCollision(prim1:name_235, prim2:name_235) : Boolean - { - var box:name_377 = null; - var sphere:name_767 = prim1 as name_767; - if(sphere == null) - { - sphere = prim2 as name_767; - box = prim1 as name_377; - } - else - { - box = prim2 as name_377; - } - sphere.transform.getAxis(3,this.var_715); - box.transform.getAxis(3,this.bPos); - box.transform.transformPointTransposed(this.var_715,this.center); - var hs:name_194 = box.hs; - var sx:Number = hs.x + sphere.r; - var sy:Number = hs.y + sphere.r; - var sz:Number = hs.z + sphere.r; - if(this.center.x > sx || this.center.x < -sx || this.center.y > sy || this.center.y < -sy || this.center.z > sz || this.center.z < -sz) - { - return false; - } - if(this.center.x > hs.x) - { - this.var_714.x = hs.x; - } - else if(this.center.x < -hs.x) - { - this.var_714.x = -hs.x; - } - else - { - this.var_714.x = this.center.x; - } - if(this.center.y > hs.y) - { - this.var_714.y = hs.y; - } - else if(this.center.y < -hs.y) - { - this.var_714.y = -hs.y; - } - else - { - this.var_714.y = this.center.y; - } - if(this.center.z > hs.z) - { - this.var_714.z = hs.z; - } - else if(this.center.z < -hs.z) - { - this.var_714.z = -hs.z; - } - else - { - this.var_714.z = this.center.z; - } - var distSqr:Number = this.center.subtract(this.var_714).method_365(); - return distSqr <= sphere.r * sphere.r; - } - } -} - diff --git a/src/package_122/name_672.as b/src/package_122/name_672.as deleted file mode 100644 index 8a41f43..0000000 --- a/src/package_122/name_672.as +++ /dev/null @@ -1,25 +0,0 @@ -package package_122 -{ - import package_92.name_467; - - public class name_672 - { - public var name_680:Boolean; - - public var world:name_467; - - public function name_672() - { - super(); - } - - public function name_684(dt:Number) : void - { - } - - public function name_683(dt:Number) : void - { - } - } -} - diff --git a/src/package_123/name_706.as b/src/package_123/name_706.as deleted file mode 100644 index 073e610..0000000 --- a/src/package_123/name_706.as +++ /dev/null @@ -1,567 +0,0 @@ -package package_123 -{ - import flash.geom.Matrix3D; - import flash.geom.Vector3D; - import package_124.name_705; - import package_125.name_709; - import package_125.name_759; - import package_125.name_760; - import package_19.name_380; - import package_19.name_528; - import package_21.name_116; - import package_21.name_78; - - use namespace collada; - - public class name_706 extends class_43 - { - public var scene:name_737; - - public var parent:name_706; - - public var skinOrTopmostJoint:Boolean = false; - - private var channels:Vector.; - - private var var_699:Vector.; - - public var nodes:Vector.; - - public var objects:Vector.; - - public var skins:Vector.; - - public function name_706(data:XML, document:name_707, scene:name_737 = null, parent:name_706 = null) - { - super(data,document); - this.scene = scene; - this.parent = parent; - this.method_879(); - } - - public function get method_872() : String - { - var n:String = this.name; - return n == null ? this.id : n; - } - - private function method_879() : void - { - var node:name_706 = null; - var nodesList:XMLList = data.node; - var count:int = int(nodesList.length()); - this.nodes = new Vector.(count); - for(var i:int = 0; i < count; i++) - { - node = new name_706(nodesList[i],document,this.scene,this); - if(node.id != null) - { - document.nodes[node.id] = node; - } - this.nodes[i] = node; - } - } - - internal function registerInstanceControllers() : void - { - var i:int = 0; - var instanceControllerXML:XML = null; - var instanceController:name_757 = null; - var jointNodes:Vector. = null; - var numNodes:int = 0; - var jointNode:name_706 = null; - var j:int = 0; - var instanceControllerXMLs:XMLList = data.instance_controller; - var count:int = int(instanceControllerXMLs.length()); - for(i = 0; i < count; ) - { - this.skinOrTopmostJoint = true; - instanceControllerXML = instanceControllerXMLs[i]; - instanceController = new name_757(instanceControllerXML,document,this); - if(instanceController.method_314()) - { - jointNodes = instanceController.topmostJoints; - numNodes = int(jointNodes.length); - if(numNodes > 0) - { - jointNode = jointNodes[0]; - jointNode.method_875(instanceController); - for(j = 0; j < numNodes; j++) - { - jointNodes[j].skinOrTopmostJoint = true; - } - } - } - i++; - } - count = int(this.nodes.length); - for(i = 0; i < count; i++) - { - this.nodes[i].registerInstanceControllers(); - } - } - - public function name_747(channel:name_742) : void - { - if(this.channels == null) - { - this.channels = new Vector.(); - } - this.channels.push(channel); - } - - public function method_875(controller:name_757) : void - { - if(this.var_699 == null) - { - this.var_699 = new Vector.(); - } - this.var_699.push(controller); - } - - override protected function parseImplementation() : Boolean - { - this.skins = this.method_880(); - this.objects = this.method_878(); - return true; - } - - private function method_874(geometry:XML) : Object - { - var instance:name_758 = null; - var instances:Object = new Object(); - var list:XMLList = geometry.bind_material.technique_common.instance_material; - for(var i:int = 0,var count:int = int(list.length()); i < count; i++) - { - instance = new name_758(list[i],document); - instances[instance.symbol] = instance; - } - return instances; - } - - public function getNodeBySid(sid:String) : name_706 - { - var i:int = 0; - var temp:Vector.> = null; - var children:Vector. = null; - var count:int = 0; - var j:int = 0; - var node:name_706 = null; - if(sid == this.sid) - { - return this; - } - var levelNodes:Vector.> = new Vector.>(); - var levelNodes2:Vector.> = new Vector.>(); - levelNodes.push(this.nodes); - for(var len:int = int(levelNodes.length); len > 0; ) - { - for(i = 0; i < len; i++) - { - children = levelNodes[i]; - count = int(children.length); - for(j = 0; j < count; ) - { - node = children[j]; - if(node.sid == sid) - { - return node; - } - if(node.nodes.length > 0) - { - levelNodes2.push(node.nodes); - } - j++; - } - } - temp = levelNodes; - levelNodes = levelNodes2; - levelNodes2 = temp; - levelNodes2.length = 0; - len = int(levelNodes.length); - } - return null; - } - - public function method_880() : Vector. - { - var instanceController:name_757 = null; - var skinAndAnimatedJoints:name_711 = null; - var skin:name_528 = null; - if(this.var_699 == null) - { - return null; - } - var skins:Vector. = new Vector.(); - for(var i:int = 0,var count:int = int(this.var_699.length); i < count; ) - { - instanceController = this.var_699[i]; - instanceController.method_314(); - skinAndAnimatedJoints = instanceController.method_429(this.method_874(instanceController.data)); - if(skinAndAnimatedJoints != null) - { - skin = name_528(skinAndAnimatedJoints.object); - skin.name = name_708(instanceController.node.name); - skins.push(skinAndAnimatedJoints); - } - i++; - } - return skins.length > 0 ? skins : null; - } - - public function method_878() : Vector. - { - var i:int = 0; - var count:int = 0; - var child:XML = null; - var lightInstance:name_741 = null; - var geom:name_736 = null; - var light:name_116 = null; - var rotXMatrix:Matrix3D = null; - var mesh:name_380 = null; - var objects:Vector. = new Vector.(); - var children:XMLList = data.children(); - for(i = 0,count = int(children.length()); i < count; ) - { - child = children[i]; - switch(child.localName()) - { - case "instance_light": - lightInstance = document.findLight(child.@url[0]); - if(lightInstance != null) - { - light = lightInstance.name_762(); - if(light != null) - { - light.name = name_708(name); - if(lightInstance.name_761) - { - rotXMatrix = new Matrix3D(); - rotXMatrix.appendRotation(180,Vector3D.X_AXIS); - objects.push(new name_711(this.name_710(light,rotXMatrix))); - } - else - { - objects.push(this.name_714(this.name_710(light))); - } - } - } - else - { - document.logger.logNotFoundError(child.@url[0]); - } - break; - case "instance_geometry": - geom = document.findGeometry(child.@url[0]); - if(geom != null) - { - geom.method_314(); - mesh = geom.method_727(this.method_874(child)); - if(mesh != null) - { - mesh.name = name_708(name); - objects.push(this.name_714(this.name_710(mesh))); - } - } - else - { - document.logger.logNotFoundError(child.@url[0]); - } - break; - case "instance_node": - document.logger.logInstanceNodeError(child); - break; - } - i++; - } - return objects.length > 0 ? objects : null; - } - - private function method_873(initialMatrix:Matrix3D = null) : Matrix3D - { - var components:Array = null; - var child:XML = null; - var sid:XML = null; - var matrix:Matrix3D = initialMatrix == null ? new Matrix3D() : initialMatrix; - var children:XMLList = data.children(); - for(var i:int = children.length() - 1; i >= 0; i--) - { - child = children[i]; - sid = child.@sid[0]; - if(sid != null && sid.toString() == "post-rotationY") - { - continue; - } - switch(child.localName()) - { - case "scale": - components = method_866(child); - matrix.appendScale(components[0],components[1],components[2]); - break; - case "rotate": - components = method_866(child); - matrix.appendRotation(components[3],new Vector3D(components[0],components[1],components[2])); - break; - case "translate": - components = method_866(child); - matrix.appendTranslation(components[0] * document.unitScaleFactor,components[1] * document.unitScaleFactor,components[2] * document.unitScaleFactor); - break; - case "matrix": - components = method_866(child); - matrix.append(new Matrix3D(Vector.([components[0],components[4],components[8],components[12],components[1],components[5],components[9],components[13],components[2],components[6],components[10],components[14],components[3] * document.unitScaleFactor,components[7] * document.unitScaleFactor,components[11] * document.unitScaleFactor,components[15]]))); - break; - case "lookat": - break; - case "skew": - document.logger.logSkewError(child); - break; - } - } - return matrix; - } - - public function name_710(object:name_78, prepend:Matrix3D = null, append:Matrix3D = null) : name_78 - { - var matrix:Matrix3D = this.method_873(prepend); - if(append != null) - { - matrix.append(append); - } - var vs:Vector. = matrix.decompose(); - var t:Vector3D = vs[0]; - var r:Vector3D = vs[1]; - var s:Vector3D = vs[2]; - object.x = t.x; - object.y = t.y; - object.z = t.z; - object.rotationX = r.x; - object.rotationY = r.y; - object.rotationZ = r.z; - object.scaleX = s.x; - object.scaleY = s.y; - object.scaleZ = s.z; - return object; - } - - public function name_714(object:name_78) : name_711 - { - var animation:name_705 = this.method_747(object); - if(animation == null) - { - return new name_711(object); - } - object.name = this.method_872; - animation.method_861(object,false); - return new name_711(object,animation); - } - - public function method_747(object:name_78 = null) : name_705 - { - if(this.channels == null || !this.method_877()) - { - return null; - } - var channel:name_742 = this.method_620(name_742.PARAM_MATRIX); - if(channel != null) - { - return this.method_876(channel.tracks); - } - var clip:name_705 = new name_705(); - var components:Vector. = object != null ? null : this.method_873().decompose(); - channel = this.method_620(name_742.PARAM_TRANSLATE); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - channel = this.method_620(name_742.PARAM_TRANSLATE_X); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("x",object == null ? Number(components[0].x) : object.x)); - } - channel = this.method_620(name_742.PARAM_TRANSLATE_Y); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("y",object == null ? Number(components[0].y) : object.y)); - } - channel = this.method_620(name_742.PARAM_TRANSLATE_Z); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("z",object == null ? Number(components[0].z) : object.z)); - } - } - channel = this.method_620(name_742.PARAM_ROTATION_X); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("rotationX",object == null ? Number(components[1].x) : object.rotationX)); - } - channel = this.method_620(name_742.PARAM_ROTATION_Y); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("rotationY",object == null ? Number(components[1].y) : object.rotationY)); - } - channel = this.method_620(name_742.PARAM_ROTATION_Z); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("rotationZ",object == null ? Number(components[1].z) : object.rotationZ)); - } - channel = this.method_620(name_742.PARAM_SCALE); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - channel = this.method_620(name_742.PARAM_SCALE_X); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("scaleX",object == null ? Number(components[2].x) : object.scaleX)); - } - channel = this.method_620(name_742.PARAM_SCALE_Y); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("scaleY",object == null ? Number(components[2].y) : object.scaleY)); - } - channel = this.method_620(name_742.PARAM_SCALE_Z); - if(channel != null) - { - this.method_870(clip,channel.tracks); - } - else - { - clip.name_712(this.method_871("scaleZ",object == null ? Number(components[2].z) : object.scaleZ)); - } - } - if(clip.numTracks > 0) - { - return clip; - } - return null; - } - - private function method_876(tracks:Vector.) : name_705 - { - var clip:name_705 = new name_705(); - for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) - { - clip.name_712(tracks[i]); - } - return clip; - } - - private function method_870(clip:name_705, tracks:Vector.) : void - { - for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) - { - clip.name_712(tracks[i]); - } - } - - private function method_877() : Boolean - { - var channel:name_742 = null; - var result:Boolean = false; - for(var i:int = 0,var count:int = int(this.channels.length); i < count; ) - { - channel = this.channels[i]; - channel.method_314(); - result = channel.name_756 == name_742.PARAM_MATRIX; - result ||= channel.name_756 == name_742.PARAM_TRANSLATE; - result ||= channel.name_756 == name_742.PARAM_TRANSLATE_X; - result ||= channel.name_756 == name_742.PARAM_TRANSLATE_Y; - result ||= channel.name_756 == name_742.PARAM_TRANSLATE_Z; - result ||= channel.name_756 == name_742.PARAM_ROTATION_X; - result ||= channel.name_756 == name_742.PARAM_ROTATION_Y; - result ||= channel.name_756 == name_742.PARAM_ROTATION_Z; - result ||= channel.name_756 == name_742.PARAM_SCALE; - result ||= channel.name_756 == name_742.PARAM_SCALE_X; - result ||= channel.name_756 == name_742.PARAM_SCALE_Y; - result ||= channel.name_756 == name_742.PARAM_SCALE_Z; - if(result) - { - return true; - } - i++; - } - return false; - } - - private function method_620(param:String) : name_742 - { - var channel:name_742 = null; - for(var i:int = 0,var count:int = int(this.channels.length); i < count; ) - { - channel = this.channels[i]; - channel.method_314(); - if(channel.name_756 == param) - { - return channel; - } - i++; - } - return null; - } - - private function method_881(source:Vector., dest:Vector.) : void - { - for(var i:int = 0,var count:int = int(source.length); i < count; i++) - { - dest.push(source[i]); - } - } - - private function method_871(property:String, value:Number) : name_709 - { - var track:name_760 = new name_760(this.method_872,property); - track.method_257(0,value); - return track; - } - - public function name_715() : name_759 - { - var track:name_759 = new name_759(this.method_872); - track.method_257(0,this.method_873()); - return track; - } - - public function get layer() : String - { - var layerXML:XML = data.@layer[0]; - return layerXML == null ? null : layerXML.toString(); - } - } -} - diff --git a/src/package_123/name_711.as b/src/package_123/name_711.as deleted file mode 100644 index 2dba1c2..0000000 --- a/src/package_123/name_711.as +++ /dev/null @@ -1,22 +0,0 @@ -package package_123 -{ - import package_124.name_705; - import package_21.name_78; - - public class name_711 - { - public var object:name_78; - - public var animation:name_705; - - public var jointNode:name_706; - - public function name_711(object:name_78, animation:name_705 = null) - { - super(); - this.object = object; - this.animation = animation; - } - } -} - diff --git a/src/package_123/name_713.as b/src/package_123/name_713.as deleted file mode 100644 index 71ae77a..0000000 --- a/src/package_123/name_713.as +++ /dev/null @@ -1,57 +0,0 @@ -package package_123 -{ - import package_116.name_641; - - use namespace collada; - - public class name_713 extends class_43 - { - public var material:name_641; - - public var var_698:String; - - public var used:Boolean = false; - - public function name_713(data:XML, document:name_707) - { - super(data,document); - } - - private function method_869() : Object - { - var element:XML = null; - var param:name_754 = null; - var params:Object = new Object(); - var list:XMLList = data.instance_effect.setparam; - for each(element in list) - { - param = new name_754(element,document); - params[param.ref] = param; - } - return params; - } - - private function get method_868() : XML - { - return data.instance_effect.@url[0]; - } - - override protected function parseImplementation() : Boolean - { - var effect:name_738 = document.findEffect(this.method_868); - if(effect != null) - { - effect.method_314(); - this.material = effect.name_755(this.method_869()); - this.var_698 = effect.var_698; - if(this.material != null) - { - this.material.name = name_708(name); - } - return true; - } - return false; - } - } -} - diff --git a/src/package_123/name_737.as b/src/package_123/name_737.as deleted file mode 100644 index 0898be7..0000000 --- a/src/package_123/name_737.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_123 -{ - use namespace collada; - - public class name_737 extends class_43 - { - public var nodes:Vector.; - - public function name_737(data:XML, document:name_707) - { - super(data,document); - this.method_879(); - } - - public function method_879() : void - { - var node:name_706 = null; - var nodesList:XMLList = data.node; - var count:int = int(nodesList.length()); - this.nodes = new Vector.(count); - for(var i:int = 0; i < count; i++) - { - node = new name_706(nodesList[i],document,this); - if(node.id != null) - { - document.nodes[node.id] = node; - } - this.nodes[i] = node; - } - } - } -} - diff --git a/src/package_123/name_739.as b/src/package_123/name_739.as deleted file mode 100644 index 34e9f07..0000000 --- a/src/package_123/name_739.as +++ /dev/null @@ -1,135 +0,0 @@ -package package_123 -{ - import flash.geom.Matrix3D; - import package_125.name_709; - import package_125.name_759; - import package_125.name_760; - - use namespace collada; - - public class name_739 extends class_43 - { - private var var_720:Vector.; - - private var values:Vector.; - - private var var_721:int; - - private var var_722:int; - - public function name_739(data:XML, document:name_707) - { - super(data,document); - } - - override protected function parseImplementation() : Boolean - { - var inputSource:name_740 = null; - var outputSource:name_740 = null; - var input:name_784 = null; - var semantic:String = null; - var inputsList:XMLList = data.input; - for(var i:int = 0,var count:int = int(inputsList.length()); i < count; i++) - { - input = new name_784(inputsList[i],document); - semantic = input.semantic; - if(semantic == null) - { - continue; - } - switch(semantic) - { - case "INPUT": - inputSource = input.prepareSource(1); - if(inputSource != null) - { - this.var_720 = inputSource.numbers; - this.var_721 = inputSource.stride; - } - break; - case "OUTPUT": - outputSource = input.prepareSource(1); - if(outputSource != null) - { - this.values = outputSource.numbers; - this.var_722 = outputSource.stride; - } - break; - } - } - return true; - } - - public function name_780(objectName:String, property:String) : name_760 - { - var track:name_760 = null; - var count:int = 0; - var i:int = 0; - if(this.var_720 != null && this.values != null && this.var_721 > 0) - { - track = new name_760(objectName,property); - count = this.var_720.length / this.var_721; - for(i = 0; i < count; i++) - { - track.method_257(this.var_720[int(this.var_721 * i)],this.values[int(this.var_722 * i)]); - } - return track; - } - return null; - } - - public function name_782(objectName:String) : name_709 - { - var track:name_759 = null; - var count:int = 0; - var i:int = 0; - var index:int = 0; - var matrix:Matrix3D = null; - if(this.var_720 != null && this.values != null && this.var_721 != 0) - { - track = new name_759(objectName); - count = this.var_720.length / this.var_721; - for(i = 0; i < count; i++) - { - index = this.var_722 * i; - matrix = new Matrix3D(Vector.([this.values[index],this.values[index + 4],this.values[index + 8],this.values[index + 12],this.values[index + 1],this.values[index + 5],this.values[index + 9],this.values[index + 13],this.values[index + 2],this.values[index + 6],this.values[index + 10],this.values[index + 14],this.values[index + 3],this.values[index + 7],this.values[index + 11],this.values[index + 15]])); - track.method_257(this.var_720[i * this.var_721],matrix); - } - return track; - } - return null; - } - - public function name_779(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector. - { - var xTrack:name_760 = null; - var yTrack:name_760 = null; - var zTrack:name_760 = null; - var count:int = 0; - var i:int = 0; - var index:int = 0; - var time:Number = NaN; - if(this.var_720 != null && this.values != null && this.var_721 != 0) - { - xTrack = new name_760(objectName,xProperty); - xTrack.object = objectName; - yTrack = new name_760(objectName,yProperty); - yTrack.object = objectName; - zTrack = new name_760(objectName,zProperty); - zTrack.object = objectName; - count = this.var_720.length / this.var_721; - for(i = 0; i < count; i++) - { - index = i * this.var_722; - time = this.var_720[i * this.var_721]; - xTrack.method_257(time,this.values[index]); - yTrack.method_257(time,this.values[index + 1]); - zTrack.method_257(time,this.values[index + 2]); - } - return Vector.([xTrack,yTrack,zTrack]); - } - return null; - } - } -} - diff --git a/src/package_124/name_705.as b/src/package_124/name_705.as deleted file mode 100644 index b045ac4..0000000 --- a/src/package_124/name_705.as +++ /dev/null @@ -1,392 +0,0 @@ -package package_124 -{ - import alternativa.engine3d.alternativa3d; - import package_125.name_709; - import package_21.name_78; - - use namespace alternativa3d; - - public class name_705 extends class_42 - { - alternativa3d var var_346:Array; - - public var name:String; - - public var loop:Boolean = true; - - public var length:Number = 0; - - public var animated:Boolean = true; - - private var var_420:Number = 0; - - private var var_696:int = 0; - - private var var_389:Vector. = new Vector.(); - - private var var_695:name_751; - - public function name_705(name:String = null) - { - super(); - this.name = name; - } - - public function get objects() : Array - { - return this.alternativa3d::var_346 == null ? null : [].concat(this.alternativa3d::var_346); - } - - public function set objects(value:Array) : void - { - this.method_855(this.alternativa3d::var_346,alternativa3d::controller,value,alternativa3d::controller); - this.alternativa3d::var_346 = value == null ? null : [].concat(value); - } - - override alternativa3d function setController(value:name_750) : void - { - this.method_855(this.alternativa3d::var_346,alternativa3d::controller,this.alternativa3d::var_346,value); - this.alternativa3d::controller = value; - } - - private function addObject(object:Object) : void - { - if(this.alternativa3d::var_346 == null) - { - this.alternativa3d::var_346 = [object]; - } - else - { - this.alternativa3d::var_346.push(object); - } - if(alternativa3d::controller != null) - { - alternativa3d::controller.alternativa3d::addObject(object); - } - } - - private function method_855(oldObjects:Array, oldController:name_750, newObjects:Array, newController:name_750) : void - { - var i:int = 0; - var count:int = 0; - if(oldController != null && oldObjects != null) - { - for(i = 0,count = int(this.alternativa3d::var_346.length); i < count; i++) - { - oldController.alternativa3d::name_753(oldObjects[i]); - } - } - if(newController != null && newObjects != null) - { - for(i = 0,count = int(newObjects.length); i < count; i++) - { - newController.alternativa3d::addObject(newObjects[i]); - } - } - } - - public function method_862() : void - { - var track:name_709 = null; - var len:Number = NaN; - for(var i:int = 0; i < this.var_696; ) - { - track = this.var_389[i]; - len = track.length; - if(len > this.length) - { - this.length = len; - } - i++; - } - } - - public function name_712(track:name_709) : name_709 - { - if(track == null) - { - throw new Error("Track can not be null"); - } - var _loc2_:* = this.var_696++; - this.var_389[_loc2_] = track; - if(track.length > this.length) - { - this.length = track.length; - } - return track; - } - - public function method_860(track:name_709) : name_709 - { - var t:name_709 = null; - var index:int = int(this.var_389.indexOf(track)); - if(index < 0) - { - throw new ArgumentError("Track not found"); - } - --this.var_696; - for(var j:int = index + 1; index < this.var_696; ) - { - this.var_389[index] = this.var_389[j]; - index++; - j++; - } - this.var_389.length = this.var_696; - this.length = 0; - for(var i:int = 0; i < this.var_696; ) - { - t = this.var_389[i]; - if(t.length > this.length) - { - this.length = t.length; - } - i++; - } - return track; - } - - public function name_716(index:int) : name_709 - { - return this.var_389[index]; - } - - public function get numTracks() : int - { - return this.var_696; - } - - override alternativa3d function update(interval:Number, weight:Number) : void - { - var i:int = 0; - var track:name_709 = null; - var state:name_749 = null; - var oldTime:Number = this.var_420; - if(this.animated) - { - this.var_420 += interval * speed; - if(this.loop) - { - if(this.var_420 < 0) - { - this.var_420 = 0; - } - else if(this.var_420 >= this.length) - { - this.alternativa3d::method_854(oldTime,this.length); - this.var_420 = this.length <= 0 ? 0 : this.var_420 % this.length; - this.alternativa3d::method_854(0,this.var_420); - } - else - { - this.alternativa3d::method_854(oldTime,this.var_420); - } - } - else - { - if(this.var_420 < 0) - { - this.var_420 = 0; - } - else if(this.var_420 >= this.length) - { - this.var_420 = this.length; - } - this.alternativa3d::method_854(oldTime,this.var_420); - } - } - if(weight > 0) - { - for(i = 0; i < this.var_696; ) - { - track = this.var_389[i]; - if(track.object != null) - { - state = alternativa3d::controller.alternativa3d::getState(track.object); - if(state != null) - { - track.alternativa3d::blend(this.var_420,weight,state); - } - } - i++; - } - } - } - - public function get time() : Number - { - return this.var_420; - } - - public function set time(value:Number) : void - { - this.var_420 = value; - } - - public function get method_857() : Number - { - return this.length == 0 ? 0 : this.var_420 / this.length; - } - - public function set method_857(value:Number) : void - { - this.var_420 = value * this.length; - } - - private function method_859(object:Object) : int - { - if(object is name_78) - { - return name_78(object).numChildren; - } - return 0; - } - - private function getChildAt(object:Object, index:int) : Object - { - if(object is name_78) - { - return name_78(object).getChildAt(index); - } - return null; - } - - private function method_856(object:Object) : void - { - var child:Object = null; - for(var i:int = 0,var numChildren:int = this.method_859(object); i < numChildren; i++) - { - child = this.getChildAt(object,i); - this.addObject(child); - this.method_856(child); - } - } - - public function method_861(object:Object, includeDescendants:Boolean) : void - { - this.method_855(this.alternativa3d::var_346,alternativa3d::controller,null,alternativa3d::controller); - this.alternativa3d::var_346 = null; - this.addObject(object); - if(includeDescendants) - { - this.method_856(object); - } - } - - alternativa3d function method_854(start:Number, end:Number) : void - { - for(var notify:name_751 = this.var_695; notify != null; ) - { - if(notify.alternativa3d::var_420 > start) - { - if(notify.alternativa3d::var_420 > end) - { - notify = notify.alternativa3d::next; - continue; - } - notify.alternativa3d::name_752 = alternativa3d::controller.alternativa3d::nearestNotifyers; - alternativa3d::controller.alternativa3d::nearestNotifyers = notify; - } - notify = notify.alternativa3d::next; - } - } - - public function method_858(time:Number, name:String = null) : name_751 - { - var n:name_751 = null; - time = time <= 0 ? 0 : (time >= this.length ? this.length : time); - var notify:name_751 = new name_751(name); - notify.alternativa3d::var_420 = time; - if(this.var_695 == null) - { - this.var_695 = notify; - return notify; - } - if(this.var_695.alternativa3d::var_420 > time) - { - notify.alternativa3d::next = this.var_695; - this.var_695 = notify; - return notify; - } - n = this.var_695; - while(n.alternativa3d::next != null && n.alternativa3d::next.alternativa3d::var_420 <= time) - { - n = n.alternativa3d::next; - } - if(n.alternativa3d::next == null) - { - n.alternativa3d::next = notify; - } - else - { - notify.alternativa3d::next = n.alternativa3d::next; - n.alternativa3d::next = notify; - } - return notify; - } - - public function method_864(offsetFromEnd:Number = 0, name:String = null) : name_751 - { - return this.method_858(this.length - offsetFromEnd,name); - } - - public function method_863(notify:name_751) : name_751 - { - var n:name_751 = null; - if(this.var_695 != null) - { - if(this.var_695 == notify) - { - this.var_695 = this.var_695.alternativa3d::next; - return notify; - } - n = this.var_695; - while(n.alternativa3d::next != null && n.alternativa3d::next != notify) - { - n = n.alternativa3d::next; - } - if(n.alternativa3d::next == notify) - { - n.alternativa3d::next = notify.alternativa3d::next; - return notify; - } - } - throw new Error("Notify not found"); - } - - public function get method_865() : Vector. - { - var result:Vector. = new Vector.(); - var i:int = 0; - for(var notify:name_751 = this.var_695; notify != null; notify = notify.alternativa3d::next) - { - result[i] = notify; - i++; - } - return result; - } - - public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_705 - { - var sliced:name_705 = new name_705(this.name); - sliced.alternativa3d::var_346 = this.alternativa3d::var_346 == null ? null : [].concat(this.alternativa3d::var_346); - for(var i:int = 0; i < this.var_696; i++) - { - sliced.name_712(this.var_389[i].slice(start,end)); - } - return sliced; - } - - public function clone() : name_705 - { - var cloned:name_705 = new name_705(this.name); - cloned.alternativa3d::var_346 = this.alternativa3d::var_346 == null ? null : [].concat(this.alternativa3d::var_346); - for(var i:int = 0; i < this.var_696; i++) - { - cloned.name_712(this.var_389[i]); - } - cloned.length = this.length; - return cloned; - } - } -} - diff --git a/src/package_124/name_750.as b/src/package_124/name_750.as deleted file mode 100644 index 520c9b5..0000000 --- a/src/package_124/name_750.as +++ /dev/null @@ -1,182 +0,0 @@ -package package_124 -{ - import alternativa.engine3d.alternativa3d; - import flash.utils.Dictionary; - import flash.utils.getTimer; - import package_128.name_788; - import package_21.name_78; - - use namespace alternativa3d; - - public class name_750 - { - private var var_734:class_42; - - private var var_346:Vector.; - - private var var_733:Vector. = new Vector.(); - - private var var_735:Dictionary = new Dictionary(); - - private var var_619:Object = new Object(); - - private var var_210:int = -1; - - alternativa3d var nearestNotifyers:name_751; - - public function name_750() - { - super(); - } - - public function get root() : class_42 - { - return this.var_734; - } - - public function set root(value:class_42) : void - { - if(this.var_734 != value) - { - if(this.var_734 != null) - { - this.var_734.alternativa3d::setController(null); - this.var_734.alternativa3d::var_694 = false; - } - if(value != null) - { - value.alternativa3d::setController(this); - value.alternativa3d::var_694 = true; - } - this.var_734 = value; - } - } - - public function update() : void - { - var interval:Number = NaN; - var data:name_749 = null; - var i:int = 0; - var count:int = 0; - var time:int = 0; - var object:name_78 = null; - if(this.var_210 < 0) - { - this.var_210 = getTimer(); - interval = 0; - } - else - { - time = int(getTimer()); - interval = 0.001 * (time - this.var_210); - this.var_210 = time; - } - if(this.var_734 == null) - { - return; - } - for each(data in this.var_619) - { - data.reset(); - } - this.var_734.alternativa3d::update(interval,1); - for(i = 0,count = int(this.var_733.length); i < count; ) - { - object = this.var_733[i]; - data = this.var_619[object.name]; - if(data != null) - { - data.name_683(object); - } - i++; - } - for(var notify:name_751 = this.alternativa3d::nearestNotifyers; notify != null; ) - { - if(notify.willTrigger(name_788.NOTIFY)) - { - notify.dispatchEvent(new name_788(notify)); - } - notify = notify.alternativa3d::name_752; - } - this.alternativa3d::nearestNotifyers = null; - } - - alternativa3d function addObject(object:Object) : void - { - if(object in this.var_735) - { - ++this.var_735[object]; - } - else - { - if(object is name_78) - { - this.var_733.push(object); - } - else - { - this.var_346.push(object); - } - this.var_735[object] = 1; - } - } - - alternativa3d function name_753(object:Object) : void - { - var index:int = 0; - var j:int = 0; - var count:int = 0; - var used:int = int(this.var_735[object]); - used--; - if(used <= 0) - { - if(object is name_78) - { - index = int(this.var_733.indexOf(object)); - count = this.var_733.length - 1; - for(j = index + 1; index < count; ) - { - this.var_733[index] = this.var_733[j]; - index++; - j++; - } - this.var_733.length = count; - } - else - { - index = int(this.var_346.indexOf(object)); - count = this.var_346.length - 1; - for(j = index + 1; index < count; ) - { - this.var_346[index] = this.var_346[j]; - index++; - j++; - } - this.var_346.length = count; - } - delete this.var_735[object]; - } - else - { - this.var_735[object] = used; - } - } - - alternativa3d function getState(name:String) : name_749 - { - var state:name_749 = this.var_619[name]; - if(state == null) - { - state = new name_749(); - this.var_619[name] = state; - } - return state; - } - - public function method_922() : void - { - this.var_210 = -1; - } - } -} - diff --git a/src/package_124/name_751.as b/src/package_124/name_751.as deleted file mode 100644 index 87c5428..0000000 --- a/src/package_124/name_751.as +++ /dev/null @@ -1,32 +0,0 @@ -package package_124 -{ - import alternativa.engine3d.alternativa3d; - import flash.events.EventDispatcher; - - use namespace alternativa3d; - - public class name_751 extends EventDispatcher - { - public var name:String; - - alternativa3d var var_420:Number = 0; - - alternativa3d var next:name_751; - - alternativa3d var var_736:Number; - - alternativa3d var name_752:name_751; - - public function name_751(name:String) - { - super(); - this.name = name; - } - - public function get time() : Number - { - return this.alternativa3d::var_420; - } - } -} - diff --git a/src/package_125/name_760.as b/src/package_125/name_760.as deleted file mode 100644 index 1c644b8..0000000 --- a/src/package_125/name_760.as +++ /dev/null @@ -1,91 +0,0 @@ -package package_125 -{ - import alternativa.engine3d.alternativa3d; - import package_124.name_749; - - use namespace alternativa3d; - - public class name_760 extends name_709 - { - private static var temp:name_778 = new name_778(); - - alternativa3d var name_783:name_778; - - public var property:String; - - public function name_760(object:String, property:String) - { - super(); - this.property = property; - this.object = object; - } - - override alternativa3d function get keyFramesList() : name_748 - { - return this.alternativa3d::name_783; - } - - override alternativa3d function set keyFramesList(value:name_748) : void - { - this.alternativa3d::name_783 = name_778(value); - } - - public function method_257(time:Number, value:Number = 0) : name_748 - { - var key:name_778 = new name_778(); - key.alternativa3d::var_420 = time; - key.value = value; - alternativa3d::method_849(key); - return key; - } - - override alternativa3d function blend(time:Number, weight:Number, state:name_749) : void - { - var prev:name_778 = null; - if(this.property == null) - { - return; - } - var next:name_778 = this.alternativa3d::name_783; - while(next != null && next.alternativa3d::var_420 < time) - { - prev = next; - next = next.alternativa3d::next; - } - if(prev != null) - { - if(next != null) - { - temp.interpolate(prev,next,(time - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420)); - state.method_919(this.property,temp.alternativa3d::name_781,weight); - } - else - { - state.method_919(this.property,prev.alternativa3d::name_781,weight); - } - } - else if(next != null) - { - state.method_919(this.property,next.alternativa3d::name_781,weight); - } - } - - override alternativa3d function createKeyFrame() : name_748 - { - return new name_778(); - } - - override alternativa3d function interpolateKeyFrame(dest:name_748, a:name_748, b:name_748, value:Number) : void - { - name_778(dest).interpolate(name_778(a),name_778(b),value); - } - - override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_709 - { - var track:name_760 = new name_760(object,this.property); - alternativa3d::method_851(track,start,end); - return track; - } - } -} - diff --git a/src/package_125/name_778.as b/src/package_125/name_778.as deleted file mode 100644 index 3f47819..0000000 --- a/src/package_125/name_778.as +++ /dev/null @@ -1,44 +0,0 @@ -package package_125 -{ - import alternativa.engine3d.alternativa3d; - - use namespace alternativa3d; - - public class name_778 extends name_748 - { - alternativa3d var name_781:Number = 0; - - alternativa3d var next:name_778; - - public function name_778() - { - super(); - } - - public function interpolate(a:name_778, b:name_778, c:Number) : void - { - this.alternativa3d::name_781 = (1 - c) * a.alternativa3d::name_781 + c * b.alternativa3d::name_781; - } - - override public function get value() : Object - { - return this.alternativa3d::name_781; - } - - override public function set value(v:Object) : void - { - this.alternativa3d::name_781 = Number(v); - } - - override alternativa3d function get nextKeyFrame() : name_748 - { - return this.alternativa3d::next; - } - - override alternativa3d function set nextKeyFrame(value:name_748) : void - { - this.alternativa3d::next = name_778(value); - } - } -} - diff --git a/src/package_126/name_723.as b/src/package_126/name_723.as deleted file mode 100644 index 4a4870b..0000000 --- a/src/package_126/name_723.as +++ /dev/null @@ -1,25 +0,0 @@ -package package_126 -{ - public class name_723 - { - public static const NONE:name_723 = new name_723("NONE"); - - public static const RED:name_723 = new name_723("RED"); - - public static const BLUE:name_723 = new name_723("BLUE"); - - private var value:String; - - public function name_723(value:String) - { - super(); - this.value = value; - } - - public function toString() : String - { - return this.value; - } - } -} - diff --git a/src/package_127/name_729.as b/src/package_127/name_729.as deleted file mode 100644 index 108c3f5..0000000 --- a/src/package_127/name_729.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_127 -{ - public class name_729 extends Error - { - public function name_729() - { - super(); - } - } -} - diff --git a/src/package_127/name_730.as b/src/package_127/name_730.as deleted file mode 100644 index e445001..0000000 --- a/src/package_127/name_730.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_127 -{ - public class name_730 extends Error - { - public function name_730() - { - super(); - } - } -} - diff --git a/src/package_128/name_788.as b/src/package_128/name_788.as deleted file mode 100644 index 6864568..0000000 --- a/src/package_128/name_788.as +++ /dev/null @@ -1,21 +0,0 @@ -package package_128 -{ - import flash.events.Event; - import package_124.name_751; - - public class name_788 extends Event - { - public static const NOTIFY:String = "notify"; - - public function name_788(notify:name_751) - { - super(NOTIFY); - } - - public function get notify() : name_751 - { - return name_751(target); - } - } -} - diff --git a/src/package_19/name_494.as b/src/package_19/name_494.as deleted file mode 100644 index 2aad8fe..0000000 --- a/src/package_19/name_494.as +++ /dev/null @@ -1,249 +0,0 @@ -package package_19 -{ - import alternativa.engine3d.alternativa3d; - import flash.display3D.Context3D; - import flash.utils.Dictionary; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_386; - import package_21.name_397; - import package_21.name_78; - import package_28.name_119; - import package_30.name_114; - import package_30.name_121; - import package_4.class_4; - - use namespace alternativa3d; - - public class name_494 extends name_78 - { - private static const geometries:Dictionary = new Dictionary(); - - private static var transformProcedureStatic:name_114 = new name_114(["sub t0.z, i0.x, c3.x","sub t0.w, i0.y, c3.y","mul t0.z, t0.z, c3.z","mul t0.w, t0.w, c3.w","mov t1.z, c4.w","sin t1.x, t1.z","cos t1.y, t1.z","mul t1.z, t0.z, t1.y","mul t1.w, t0.w, t1.x","sub t0.x, t1.z, t1.w","mul t1.z, t0.z, t1.x","mul t1.w, t0.w, t1.y","add t0.y, t1.z, t1.w","add t0.x, t0.x, c4.x","add t0.y, t0.y, c4.y","add t0.z, i0.z, c4.z","mov t0.w, i0.w","dp4 o0.x, t0, c0","dp4 o0.y, t0, c1","dp4 o0.z, t0, c2","mov o0.w, t0.w","#c0=trans1","#c1=trans2","#c2=trans3","#c3=size","#c4=coords"]); - - private static var deltaTransformProcedureStatic:name_114 = new name_114(["mov t1.z, c4.w","sin t1.x, t1.z","cos t1.y, t1.z","mul t1.z, i0.x, t1.y","mul t1.w, i0.y, t1.x","sub t0.x, t1.z, t1.w","mul t1.z, i0.x, t1.x","mul t1.w, i0.y, t1.y","add t0.y, t1.z, t1.w","mov t0.z, i0.z","mov t0.w, i0.w","dp3 o0.x, t0, c0","dp3 o0.y, t0, c1","dp3 o0.z, t0, c2","#c0=trans1","#c1=trans2","#c2=trans3","#c3=size","#c4=coords"]); - - public var originX:Number = 0.5; - - public var originY:Number = 0.5; - - public var rotation:Number = 0; - - public var width:Number; - - public var height:Number; - - public var perspectiveScale:Boolean = true; - - public var alwaysOnTop:Boolean = false; - - alternativa3d var surface:name_117; - - public function name_494(width:Number, height:Number, material:class_4 = null) - { - super(); - this.width = width; - this.height = height; - this.alternativa3d::surface = new name_117(); - this.alternativa3d::surface.alternativa3d::object = this; - this.material = material; - this.alternativa3d::surface.indexBegin = 0; - this.alternativa3d::surface.numTriangles = 2; - alternativa3d::transformProcedure = transformProcedureStatic; - alternativa3d::deltaTransformProcedure = deltaTransformProcedureStatic; - } - - public function get material() : class_4 - { - return this.alternativa3d::surface.material; - } - - public function set material(value:class_4) : void - { - this.alternativa3d::surface.material = value; - } - - override alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void - { - if(this.alternativa3d::surface.material != null) - { - this.alternativa3d::surface.material.alternativa3d::fillResources(resources,resourceType); - } - super.alternativa3d::fillResources(resources,hierarchy,resourceType); - } - - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void - { - var debug:int = 0; - var geometry:name_119 = this.alternativa3d::method_704(camera.alternativa3d::context3D); - if(this.alternativa3d::surface.material != null) - { - this.alternativa3d::surface.material.alternativa3d::collectDraws(camera,this.alternativa3d::surface,geometry,lights,lightsLength,this.alwaysOnTop ? name_128.NEXT_LAYER : -1); - } - if(alternativa3d::listening) - { - camera.view.alternativa3d::name_398(this.alternativa3d::surface,geometry,alternativa3d::transformProcedure); - } - if(camera.debug) - { - debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) - { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); - } - } - } - - override alternativa3d function setTransformConstants(drawUnit:name_135, surface:name_117, vertexShader:name_121, camera:name_124) : void - { - var scale:Number = Number(Math.sqrt(alternativa3d::localToCameraTransform.a * alternativa3d::localToCameraTransform.a + alternativa3d::localToCameraTransform.e * alternativa3d::localToCameraTransform.e + alternativa3d::localToCameraTransform.i * alternativa3d::localToCameraTransform.i)); - scale += Math.sqrt(alternativa3d::localToCameraTransform.b * alternativa3d::localToCameraTransform.b + alternativa3d::localToCameraTransform.f * alternativa3d::localToCameraTransform.f + alternativa3d::localToCameraTransform.j * alternativa3d::localToCameraTransform.j); - scale += Math.sqrt(alternativa3d::localToCameraTransform.c * alternativa3d::localToCameraTransform.c + alternativa3d::localToCameraTransform.g * alternativa3d::localToCameraTransform.g + alternativa3d::localToCameraTransform.k * alternativa3d::localToCameraTransform.k); - scale /= 3; - if(!this.perspectiveScale && !camera.orthographic) - { - scale *= alternativa3d::localToCameraTransform.l / camera.alternativa3d::focalLength; - } - drawUnit.alternativa3d::name_412(0,alternativa3d::cameraToLocalTransform); - drawUnit.alternativa3d::name_144(3,this.originX,this.originY,this.width * scale,this.height * scale); - drawUnit.alternativa3d::name_144(4,alternativa3d::localToCameraTransform.d,alternativa3d::localToCameraTransform.h,alternativa3d::localToCameraTransform.l,this.rotation); - } - - alternativa3d function method_704(context:Context3D) : name_119 - { - var attributes:Array = null; - var geometry:name_119 = geometries[context]; - if(geometry == null) - { - geometry = new name_119(4); - attributes = new Array(); - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; - attributes[3] = name_126.NORMAL; - attributes[4] = name_126.NORMAL; - attributes[5] = name_126.NORMAL; - attributes[6] = name_126.TEXCOORDS[0]; - attributes[7] = name_126.TEXCOORDS[0]; - attributes[8] = name_126.TEXCOORDS[1]; - attributes[9] = name_126.TEXCOORDS[1]; - attributes[10] = name_126.TEXCOORDS[2]; - attributes[11] = name_126.TEXCOORDS[2]; - attributes[12] = name_126.TEXCOORDS[3]; - attributes[13] = name_126.TEXCOORDS[3]; - attributes[14] = name_126.TEXCOORDS[4]; - attributes[15] = name_126.TEXCOORDS[4]; - attributes[16] = name_126.TEXCOORDS[5]; - attributes[17] = name_126.TEXCOORDS[5]; - attributes[18] = name_126.TEXCOORDS[6]; - attributes[19] = name_126.TEXCOORDS[6]; - attributes[20] = name_126.TEXCOORDS[7]; - attributes[21] = name_126.TEXCOORDS[7]; - attributes[22] = name_126.TANGENT4; - attributes[23] = name_126.TANGENT4; - attributes[24] = name_126.TANGENT4; - attributes[25] = name_126.TANGENT4; - geometry.addVertexStream(attributes); - geometry.setAttributeValues(name_126.POSITION,Vector.([0,0,0,0,1,0,1,1,0,1,0,0])); - geometry.setAttributeValues(name_126.NORMAL,Vector.([0,0,-1,0,0,-1,0,0,-1,0,0,-1])); - geometry.setAttributeValues(name_126.TEXCOORDS[0],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[1],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[2],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[3],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[4],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[5],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[6],Vector.([0,0,0,1,1,1,1,0])); - geometry.setAttributeValues(name_126.TEXCOORDS[7],Vector.([0,0,0,1,1,1,1,0])); - geometry.indices = Vector.([0,1,3,2,3,1]); - geometry.upload(context); - geometries[context] = geometry; - } - return geometry; - } - - override public function clone() : name_78 - { - var res:name_494 = new name_494(this.width,this.height); - res.clonePropertiesFrom(this); - return res; - } - - override protected function clonePropertiesFrom(source:name_78) : void - { - super.clonePropertiesFrom(source); - var src:name_494 = source as name_494; - this.width = src.width; - this.height = src.height; - this.material = src.material; - this.originX = src.originX; - this.originY = src.originY; - this.rotation = src.rotation; - this.perspectiveScale = src.perspectiveScale; - this.alwaysOnTop = src.alwaysOnTop; - } - - override alternativa3d function updateBoundBox(boundBox:name_386, hierarchy:Boolean, transform:name_139 = null) : void - { - var ax:Number = NaN; - var ay:Number = NaN; - var az:Number = NaN; - var size:Number = NaN; - var ww:Number = this.width; - var hh:Number = this.height; - var w:Number = (this.originX >= 0.5 ? this.originX : 1 - this.originX) * ww; - var h:Number = (this.originY >= 0.5 ? this.originY : 1 - this.originY) * hh; - var radius:Number = Number(Math.sqrt(w * w + h * h)); - var cx:Number = 0; - var cy:Number = 0; - var cz:Number = 0; - if(transform != null) - { - ax = transform.a; - ay = transform.e; - az = transform.i; - size = Number(Math.sqrt(ax * ax + ay * ay + az * az)); - ax = transform.b; - ay = transform.f; - az = transform.j; - size += Math.sqrt(ax * ax + ay * ay + az * az); - ax = transform.c; - ay = transform.g; - az = transform.k; - size += Math.sqrt(ax * ax + ay * ay + az * az); - radius *= size / 3; - cx = transform.d; - cy = transform.h; - cz = transform.l; - } - if(cx - radius < boundBox.minX) - { - boundBox.minX = cx - radius; - } - if(cx + radius > boundBox.maxX) - { - boundBox.maxX = cx + radius; - } - if(cy - radius < boundBox.minY) - { - boundBox.minY = cy - radius; - } - if(cy + radius > boundBox.maxY) - { - boundBox.maxY = cy + radius; - } - if(cz - radius < boundBox.minZ) - { - boundBox.minZ = cz - radius; - } - if(cz + radius > boundBox.maxZ) - { - boundBox.maxZ = cz + radius; - } - } - } -} - diff --git a/src/package_19/name_509.as b/src/package_19/name_509.as deleted file mode 100644 index 689377a..0000000 --- a/src/package_19/name_509.as +++ /dev/null @@ -1,228 +0,0 @@ -package package_19 -{ - import alternativa.engine3d.alternativa3d; - import flash.display3D.Context3DProgramType; - import flash.geom.Vector3D; - import flash.utils.Dictionary; - import flash.utils.getDefinitionByName; - import flash.utils.getQualifiedClassName; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_139; - import package_21.name_386; - import package_21.name_78; - import package_28.name_119; - import package_28.name_694; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - import package_4.name_127; - import package_4.name_28; - - use namespace alternativa3d; - - public class name_509 extends name_78 - { - alternativa3d static const shaderProgram:name_127 = method_709(); - - public var thickness:Number = 1; - - alternativa3d var var_625:Vector. = new Vector.(4,true); - - alternativa3d var geometry:name_694; - - public function name_509(color:uint = 0, alpha:Number = 1, thickness:Number = 0.5) - { - super(); - this.color = color; - this.alpha = alpha; - this.thickness = thickness; - this.alternativa3d::geometry = new name_694(); - } - - private static function method_709() : name_127 - { - var vertexShader:name_121 = new name_121(Context3DProgramType.VERTEX); - var transform:name_114 = new name_114(); - transform.name_140(["mov t0, a0","mov t0.w, c0.y","m34 t0.xyz, t0, c2","m34 t1.xyz, a1, c2","sub t2, t1.xyz, t0.xyz","slt t5.x, t0.z, c1.z","sub t5.y, c0.y, t5.x","add t4.x, t0.z, c0.z","sub t4.y, t0.z, t1.z","add t4.y, t4.y, c0.w","div t4.z, t4.x, t4.y","mul t4.xyz, t4.zzz, t2.xyz","add t3.xyz, t0.xyz, t4.xyz","mul t0, t0, t5.y","mul t3.xyz, t3.xyz, t5.x","add t0, t0, t3.xyz","sub t2, t1.xyz, t0.xyz","crs t3.xyz, t2, t0","nrm t3.xyz, t3.xyz","mul t3.xyz, t3.xyz, a0.w","mul t3.xyz, t3.xyz, c1.w","mul t4.x, t0.z, c1.x","mul t3.xyz, t3.xyz, t4.xxx","add t0.xyz, t0.xyz, t3.xyz","m44 o0, t0, c5"]); - transform.name_122(name_115.ATTRIBUTE,0,"pos1"); - transform.name_122(name_115.ATTRIBUTE,1,"pos2"); - transform.name_122(name_115.CONSTANT,0,"ZERO"); - transform.name_122(name_115.CONSTANT,1,"consts"); - transform.name_122(name_115.CONSTANT,2,"worldView",3); - transform.name_122(name_115.CONSTANT,5,"proj",4); - vertexShader.name_123(transform); - vertexShader.name_142(); - var fragmentShader:name_121 = new name_121(Context3DProgramType.FRAGMENT); - var fp:name_114 = new name_114(); - fp.name_140(["mov o0, c0"]); - fp.name_122(name_115.CONSTANT,0,"color"); - fragmentShader.name_123(fp); - fragmentShader.name_142(); - return new name_127(vertexShader,fragmentShader); - } - - public static function method_710(points:Vector., color:uint = 0, alpha:Number = 1, thickness:Number = 1) : name_509 - { - var p0:Vector3D = null; - var p1:Vector3D = null; - var result:name_509 = new name_509(color,alpha,thickness); - var geometry:name_694 = result.alternativa3d::geometry; - for(var i:uint = 0,var count:uint = points.length - 1; i < count; i += 2) - { - p0 = points[i]; - p1 = points[i + 1]; - geometry.alternativa3d::method_558(p0.x,p0.y,p0.z,p1.x,p1.y,p1.z); - } - result.calculateBoundBox(); - return result; - } - - public static function method_711(points:Vector., color:uint = 0, alpha:Number = 1, thickness:Number = 1) : name_509 - { - var p0:Vector3D = null; - var p1:Vector3D = null; - var result:name_509 = new name_509(color,alpha,thickness); - var geometry:name_694 = result.alternativa3d::geometry; - for(var i:uint = 0,var count:uint = points.length - 1; i < count; i++) - { - p0 = points[i]; - p1 = points[i + 1]; - geometry.alternativa3d::method_558(p0.x,p0.y,p0.z,p1.x,p1.y,p1.z); - } - result.calculateBoundBox(); - return result; - } - - public static function name_511(mesh:name_380, color:uint = 0, alpha:Number = 1, thickness:Number = 1) : name_509 - { - var index:uint = 0; - var v1x:Number = NaN; - var v1y:Number = NaN; - var v1z:Number = NaN; - var v2x:Number = NaN; - var v2y:Number = NaN; - var v2z:Number = NaN; - var v3x:Number = NaN; - var v3y:Number = NaN; - var v3z:Number = NaN; - var result:name_509 = new name_509(color,alpha,thickness); - var geometry:name_119 = mesh.geometry; - var resultGeometry:name_694 = result.alternativa3d::geometry; - var edges:Dictionary = new Dictionary(); - var indices:Vector. = geometry.indices; - var vertices:Vector. = geometry.method_275(name_126.POSITION); - for(var i:int = 0,var count:int = int(indices.length); i < count; ) - { - index = indices[i] * 3; - v1x = vertices[index]; - index++; - v1y = vertices[index]; - index++; - v1z = vertices[index]; - index = indices[int(i + 1)] * 3; - v2x = vertices[index]; - index++; - v2y = vertices[index]; - index++; - v2z = vertices[index]; - index = indices[int(i + 2)] * 3; - v3x = vertices[index]; - index++; - v3y = vertices[index]; - index++; - v3z = vertices[index]; - if(method_708(edges,v1x,v1y,v1z,v2x,v2y,v2z)) - { - resultGeometry.alternativa3d::method_558(v1x,v1y,v1z,v2x,v2y,v2z); - } - if(method_708(edges,v2x,v2y,v2z,v3x,v3y,v3z)) - { - resultGeometry.alternativa3d::method_558(v2x,v2y,v2z,v3x,v3y,v3z); - } - if(method_708(edges,v1x,v1y,v1z,v3x,v3y,v3z)) - { - resultGeometry.alternativa3d::method_558(v1x,v1y,v1z,v3x,v3y,v3z); - } - i += 3; - } - result.calculateBoundBox(); - result.alternativa3d::_x = mesh.alternativa3d::_x; - result.alternativa3d::_y = mesh.alternativa3d::_y; - result.alternativa3d::_z = mesh.alternativa3d::_z; - result.alternativa3d::_rotationX = mesh.alternativa3d::_rotationX; - result.alternativa3d::_rotationY = mesh.alternativa3d::_rotationY; - result.alternativa3d::_rotationZ = mesh.alternativa3d::_rotationZ; - result.alternativa3d::_scaleX = mesh.alternativa3d::_scaleX; - result.alternativa3d::_scaleY = mesh.alternativa3d::_scaleY; - result.alternativa3d::_scaleZ = mesh.alternativa3d::_scaleZ; - return result; - } - - private static function method_708(edges:Dictionary, v1x:Number, v1y:Number, v1z:Number, v2x:Number, v2y:Number, v2z:Number) : Boolean - { - var str:String = null; - if(v1x * v1x + v1y * v1y + v1z * v1z < v2x * v2x + v2y * v2y + v2z * v2z) - { - str = v1x.toString() + v1y.toString() + v1z.toString() + v2x.toString() + v2y.toString() + v2z.toString(); - } - else - { - str = v2x.toString() + v2y.toString() + v2z.toString() + v1x.toString() + v1y.toString() + v1z.toString(); - } - if(Boolean(edges[str])) - { - return false; - } - edges[str] = true; - return true; - } - - public function get alpha() : Number - { - return this.alternativa3d::var_625[3]; - } - - public function set alpha(value:Number) : void - { - this.alternativa3d::var_625[3] = value; - } - - public function get color() : uint - { - return this.alternativa3d::var_625[0] * 255 << 16 | this.alternativa3d::var_625[1] * 255 << 8 | this.alternativa3d::var_625[2] * 255; - } - - public function set color(value:uint) : void - { - this.alternativa3d::var_625[0] = (value >> 16 & 0xFF) / 255; - this.alternativa3d::var_625[1] = (value >> 8 & 0xFF) / 255; - this.alternativa3d::var_625[2] = (value & 0xFF) / 255; - } - - override alternativa3d function updateBoundBox(boundBox:name_386, hierarchy:Boolean, transform:name_139 = null) : void - { - super.alternativa3d::updateBoundBox(boundBox,hierarchy,transform); - if(this.alternativa3d::geometry != null) - { - this.alternativa3d::geometry.alternativa3d::updateBoundBox(boundBox,transform); - } - } - - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void - { - this.alternativa3d::geometry.alternativa3d::name_695(camera,this.alternativa3d::var_625,this.thickness,this,alternativa3d::shaderProgram); - } - - override alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void - { - super.alternativa3d::fillResources(resources,hierarchy,resourceType); - if(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.alternativa3d::geometry)) as Class,resourceType)) - { - resources[this.alternativa3d::geometry] = true; - } - } - } -} - diff --git a/src/package_19/name_53.as b/src/package_19/name_53.as deleted file mode 100644 index da1170e..0000000 --- a/src/package_19/name_53.as +++ /dev/null @@ -1,231 +0,0 @@ -package package_19 -{ - import alternativa.engine3d.alternativa3d; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_78; - import package_28.name_119; - import package_30.name_114; - import package_30.name_121; - import package_4.class_4; - - use namespace alternativa3d; - - public class name_53 extends name_380 - { - public static const LEFT:String = "left"; - - public static const RIGHT:String = "right"; - - public static const BACK:String = "back"; - - public static const FRONT:String = "front"; - - public static const BOTTOM:String = "bottom"; - - public static const TOP:String = "top"; - - private static var transformProcedureStatic:name_114 = new name_114(["sub t0.xyz, i0.xyz, c0.xyz","mul t0.x, t0.x, c0.w","mul t0.y, t0.y, c0.w","mul t0.z, t0.z, c0.w","add o0.xyz, t0.xyz, c0.xyz","mov o0.w, i0.w","#c0=cTrans"]); - - private var var_98:name_117; - - private var var_95:name_117; - - private var var_96:name_117; - - private var var_94:name_117; - - private var var_99:name_117; - - private var var_97:name_117; - - private var size:Number; - - public function name_53(size:Number, left:class_4 = null, right:class_4 = null, back:class_4 = null, front:class_4 = null, bottom:class_4 = null, top:class_4 = null, uvPadding:Number = 0) - { - super(); - size *= 0.5; - this.size = size; - geometry = new name_119(24); - var attributes:Array = new Array(); - attributes[0] = name_126.POSITION; - attributes[1] = name_126.POSITION; - attributes[2] = name_126.POSITION; - attributes[6] = name_126.TEXCOORDS[0]; - attributes[7] = name_126.TEXCOORDS[0]; - geometry.addVertexStream(attributes); - geometry.setAttributeValues(name_126.POSITION,Vector.([-size,-size,size,-size,-size,-size,-size,size,-size,-size,size,size,size,size,size,size,size,-size,size,-size,-size,size,-size,size,size,-size,size,size,-size,-size,-size,-size,-size,-size,-size,size,-size,size,size,-size,size,-size,size,size,-size,size,size,size,-size,size,-size,-size,-size,-size,size,-size,-size,size,size,-size,-size,-size,size,-size,size,size,size,size,size,size,-size,size])); - geometry.setAttributeValues(name_126.TEXCOORDS[0],Vector.([uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding,uvPadding,uvPadding,uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,1 - uvPadding,uvPadding])); - geometry.indices = Vector.([0,1,3,2,3,1,4,5,7,6,7,5,8,9,11,10,11,9,12,13,15,14,15,13,16,17,19,18,19,17,20,21,23,22,23,21]); - this.var_98 = addSurface(left,0,2); - this.var_95 = addSurface(right,6,2); - this.var_96 = addSurface(back,12,2); - this.var_94 = addSurface(front,18,2); - this.var_99 = addSurface(bottom,24,2); - this.var_97 = addSurface(top,30,2); - alternativa3d::transformProcedure = transformProcedureStatic; - } - - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void - { - var surface:name_117 = null; - for(var i:int = 0; i < alternativa3d::var_93; ) - { - surface = alternativa3d::var_92[i]; - if(surface.material != null) - { - surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,name_128.SKY); - } - if(alternativa3d::listening) - { - camera.view.alternativa3d::name_398(surface,geometry,alternativa3d::transformProcedure); - } - i++; - } - } - - override alternativa3d function setTransformConstants(drawUnit:name_135, surface:name_117, vertexShader:name_121, camera:name_124) : void - { - var dx:Number = NaN; - var dy:Number = NaN; - var dz:Number = NaN; - var len:Number = NaN; - var max:Number = 0; - dx = -this.size - alternativa3d::cameraToLocalTransform.d; - dy = -this.size - alternativa3d::cameraToLocalTransform.h; - dz = -this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = this.size - alternativa3d::cameraToLocalTransform.d; - dy = -this.size - alternativa3d::cameraToLocalTransform.h; - dz = -this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = this.size - alternativa3d::cameraToLocalTransform.d; - dy = this.size - alternativa3d::cameraToLocalTransform.h; - dz = -this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = -this.size - alternativa3d::cameraToLocalTransform.d; - dy = this.size - alternativa3d::cameraToLocalTransform.h; - dz = -this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = -this.size - alternativa3d::cameraToLocalTransform.d; - dy = -this.size - alternativa3d::cameraToLocalTransform.h; - dz = this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = this.size - alternativa3d::cameraToLocalTransform.d; - dy = -this.size - alternativa3d::cameraToLocalTransform.h; - dz = this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = this.size - alternativa3d::cameraToLocalTransform.d; - dy = this.size - alternativa3d::cameraToLocalTransform.h; - dz = this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - dx = -this.size - alternativa3d::cameraToLocalTransform.d; - dy = this.size - alternativa3d::cameraToLocalTransform.h; - dz = this.size - alternativa3d::cameraToLocalTransform.l; - len = dx * dx + dy * dy + dz * dz; - if(len > max) - { - max = len; - } - drawUnit.alternativa3d::name_144(0,alternativa3d::cameraToLocalTransform.d,alternativa3d::cameraToLocalTransform.h,alternativa3d::cameraToLocalTransform.l,camera.farClipping / Math.sqrt(max)); - } - - public function name_383(side:String) : name_117 - { - switch(side) - { - case LEFT: - return this.var_98; - case RIGHT: - return this.var_95; - case BACK: - return this.var_96; - case FRONT: - return this.var_94; - case BOTTOM: - return this.var_99; - case TOP: - return this.var_97; - default: - return null; - } - } - - override public function clone() : name_78 - { - var res:name_53 = new name_53(0); - res.clonePropertiesFrom(this); - return res; - } - - override protected function clonePropertiesFrom(source:name_78) : void - { - var surface:name_117 = null; - var newSurface:name_117 = null; - super.clonePropertiesFrom(source); - var src:name_53 = source as name_53; - for(var i:int = 0; i < src.alternativa3d::var_93; ) - { - surface = src.alternativa3d::var_92[i]; - newSurface = alternativa3d::var_92[i]; - if(surface == src.var_98) - { - this.var_98 = newSurface; - } - else if(surface == src.var_95) - { - this.var_95 = newSurface; - } - else if(surface == src.var_96) - { - this.var_96 = newSurface; - } - else if(surface == src.var_94) - { - this.var_94 = newSurface; - } - else if(surface == src.var_99) - { - this.var_99 = newSurface; - } - else if(surface == src.var_97) - { - this.var_97 = newSurface; - } - i++; - } - } - } -} - diff --git a/src/package_19/name_91.as b/src/package_19/name_91.as deleted file mode 100644 index 6fd9531..0000000 --- a/src/package_19/name_91.as +++ /dev/null @@ -1,79 +0,0 @@ -package package_19 -{ - import alternativa.engine3d.alternativa3d; - import package_21.name_116; - import package_21.name_124; - import package_21.name_128; - import package_21.name_135; - import package_21.name_397; - import package_21.name_78; - import package_30.name_114; - import package_30.name_121; - - use namespace alternativa3d; - - public class name_91 extends name_380 - { - private static var transformProcedureStatic:name_114 = new name_114(["sub t0.xyz, c0.xyz, i0.xyz","dp3 t0.w, t0.xyz, c1.xyz","mul t0.w, t0.w, c0.w","nrm t0.xyz, t0.xyz","mul t0.xyz, t0.xyz, t0.w","add o0.xyz, i0.xyz, t0.xyz","mov o0.w, c1.w","#c0=cPos","#c1=cDir"],"DecalTransformProcedure"); - - public var offset:Number; - - public function name_91(offset:Number) - { - super(); - this.offset = offset; - alternativa3d::transformProcedure = transformProcedureStatic; - } - - override alternativa3d function collectDraws(camera:name_124, lights:Vector., lightsLength:int) : void - { - var surface:name_117 = null; - var debug:int = 0; - for(var i:int = 0; i < alternativa3d::var_93; ) - { - surface = alternativa3d::var_92[i]; - if(surface.material != null) - { - surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,name_128.DECALS); - } - if(alternativa3d::listening) - { - camera.view.alternativa3d::name_398(surface,geometry,alternativa3d::transformProcedure); - } - i++; - } - if(camera.debug) - { - debug = int(camera.alternativa3d::checkInDebug(this)); - if(Boolean(debug & name_397.BOUNDS) && boundBox != null) - { - name_397.alternativa3d::name_399(camera,boundBox,alternativa3d::localToCameraTransform); - } - } - } - - override alternativa3d function setTransformConstants(drawUnit:name_135, surface:name_117, vertexShader:name_121, camera:name_124) : void - { - var dx:Number = -alternativa3d::cameraToLocalTransform.c; - var dy:Number = -alternativa3d::cameraToLocalTransform.g; - var dz:Number = -alternativa3d::cameraToLocalTransform.k; - var len:Number = this.offset / Math.sqrt(dx * dx + dy * dy + dz * dz) / camera.alternativa3d::focalLength; - drawUnit.alternativa3d::name_144(vertexShader.getVariableIndex("cPos"),alternativa3d::cameraToLocalTransform.d,alternativa3d::cameraToLocalTransform.h,alternativa3d::cameraToLocalTransform.l,len); - drawUnit.alternativa3d::name_144(vertexShader.getVariableIndex("cDir"),dx,dy,dz,1); - } - - override public function clone() : name_78 - { - var res:name_91 = new name_91(this.offset); - res.clonePropertiesFrom(this); - return res; - } - - override protected function clonePropertiesFrom(source:name_78) : void - { - super.clonePropertiesFrom(source); - this.offset = (source as name_91).offset; - } - } -} - diff --git a/src/package_21/name_135.as b/src/package_21/name_135.as deleted file mode 100644 index e49be67..0000000 --- a/src/package_21/name_135.as +++ /dev/null @@ -1,368 +0,0 @@ -package package_21 -{ - import alternativa.engine3d.alternativa3d; - import flash.display3D.Context3DBlendFactor; - import flash.display3D.Context3DTriangleFace; - import flash.display3D.IndexBuffer3D; - import flash.display3D.Program3D; - import flash.display3D.VertexBuffer3D; - import flash.display3D.textures.TextureBase; - - use namespace alternativa3d; - - public class name_135 - { - alternativa3d var next:name_135; - - alternativa3d var object:name_78; - - alternativa3d var program:Program3D; - - alternativa3d var indexBuffer:IndexBuffer3D; - - alternativa3d var firstIndex:int; - - alternativa3d var numTriangles:int; - - alternativa3d var blendSource:String = "one"; - - alternativa3d var blendDestination:String = "zero"; - - alternativa3d var culling:String = "front"; - - alternativa3d var textures:Vector. = new Vector.(); - - alternativa3d var var_183:Vector. = new Vector.(); - - alternativa3d var var_182:int = 0; - - alternativa3d var vertexBuffers:Vector. = new Vector.(); - - alternativa3d var name_405:Vector. = new Vector.(); - - alternativa3d var name_411:Vector. = new Vector.(); - - alternativa3d var name_409:Vector. = new Vector.(); - - alternativa3d var name_403:int = 0; - - alternativa3d var name_410:Vector. = new Vector.(); - - alternativa3d var name_404:int = 0; - - alternativa3d var name_408:Vector. = new Vector.(28 * 4,true); - - alternativa3d var name_407:int = 0; - - public function name_135() - { - super(); - } - - alternativa3d function clear() : void - { - this.alternativa3d::object = null; - this.alternativa3d::program = null; - this.alternativa3d::indexBuffer = null; - this.alternativa3d::blendSource = Context3DBlendFactor.ONE; - this.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; - this.alternativa3d::culling = Context3DTriangleFace.FRONT; - this.alternativa3d::textures.length = 0; - this.alternativa3d::var_182 = 0; - this.alternativa3d::vertexBuffers.length = 0; - this.alternativa3d::name_403 = 0; - this.alternativa3d::name_404 = 0; - this.alternativa3d::name_407 = 0; - } - - alternativa3d function setTextureAt(sampler:int, texture:TextureBase) : void - { - if(uint(sampler) > 8) - { - throw new Error("Sampler index " + sampler + " is out of bounds."); - } - if(texture == null) - { - throw new Error("Texture is null"); - } - this.alternativa3d::var_183[this.alternativa3d::var_182] = sampler; - this.alternativa3d::textures[this.alternativa3d::var_182] = texture; - ++this.alternativa3d::var_182; - } - - alternativa3d function setVertexBufferAt(index:int, buffer:VertexBuffer3D, bufferOffset:int, format:String) : void - { - if(uint(index) > 8) - { - throw new Error("VertexBuffer index " + index + " is out of bounds."); - } - if(buffer == null) - { - throw new Error("Buffer is null"); - } - this.alternativa3d::name_405[this.alternativa3d::name_403] = index; - this.alternativa3d::vertexBuffers[this.alternativa3d::name_403] = buffer; - this.alternativa3d::name_411[this.alternativa3d::name_403] = bufferOffset; - this.alternativa3d::name_409[this.alternativa3d::name_403] = format; - ++this.alternativa3d::name_403; - } - - alternativa3d function name_426(firstRegister:int, data:Vector., numRegisters:int) : void - { - if(uint(firstRegister + numRegisters) > 128) - { - throw new Error("Register index " + firstRegister + " is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + numRegisters > this.alternativa3d::name_404) - { - this.alternativa3d::name_404 = firstRegister + numRegisters; - this.alternativa3d::name_410.length = this.alternativa3d::name_404 << 2; - } - for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) - { - this.alternativa3d::name_410[offset] = data[i]; - offset++; - i++; - } - } - - alternativa3d function name_144(firstRegister:int, x:Number, y:Number, z:Number, w:Number = 1) : void - { - if(uint(firstRegister + 1) > 128) - { - throw new Error("Register index " + firstRegister + " is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + 1 > this.alternativa3d::name_404) - { - this.alternativa3d::name_404 = firstRegister + 1; - this.alternativa3d::name_410.length = this.alternativa3d::name_404 << 2; - } - this.alternativa3d::name_410[offset] = x; - offset++; - this.alternativa3d::name_410[offset] = y; - offset++; - this.alternativa3d::name_410[offset] = z; - offset++; - this.alternativa3d::name_410[offset] = w; - } - - alternativa3d function name_412(firstRegister:int, transform:name_139) : void - { - if(uint(firstRegister + 3) > 128) - { - throw new Error("Register index " + firstRegister + " is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + 3 > this.alternativa3d::name_404) - { - this.alternativa3d::name_404 = firstRegister + 3; - this.alternativa3d::name_410.length = this.alternativa3d::name_404 << 2; - } - this.alternativa3d::name_410[offset] = transform.a; - offset++; - this.alternativa3d::name_410[offset] = transform.b; - offset++; - this.alternativa3d::name_410[offset] = transform.c; - offset++; - this.alternativa3d::name_410[offset] = transform.d; - offset++; - this.alternativa3d::name_410[offset] = transform.e; - offset++; - this.alternativa3d::name_410[offset] = transform.f; - offset++; - this.alternativa3d::name_410[offset] = transform.g; - offset++; - this.alternativa3d::name_410[offset] = transform.h; - offset++; - this.alternativa3d::name_410[offset] = transform.i; - offset++; - this.alternativa3d::name_410[offset] = transform.j; - offset++; - this.alternativa3d::name_410[offset] = transform.k; - offset++; - this.alternativa3d::name_410[offset] = transform.l; - } - - alternativa3d function name_136(camera:name_124, firstRegister:int, transform:name_139 = null) : void - { - if(uint(firstRegister + 4) > 128) - { - throw new Error("Register index is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + 4 > this.alternativa3d::name_404) - { - this.alternativa3d::name_404 = firstRegister + 4; - this.alternativa3d::name_410.length = this.alternativa3d::name_404 << 2; - } - if(transform != null) - { - this.alternativa3d::name_410[offset] = transform.a * camera.alternativa3d::m0; - offset++; - this.alternativa3d::name_410[offset] = transform.b * camera.alternativa3d::m0; - offset++; - this.alternativa3d::name_410[offset] = transform.c * camera.alternativa3d::m0; - offset++; - this.alternativa3d::name_410[offset] = transform.d * camera.alternativa3d::m0; - offset++; - this.alternativa3d::name_410[offset] = transform.e * camera.alternativa3d::m5; - offset++; - this.alternativa3d::name_410[offset] = transform.f * camera.alternativa3d::m5; - offset++; - this.alternativa3d::name_410[offset] = transform.g * camera.alternativa3d::m5; - offset++; - this.alternativa3d::name_410[offset] = transform.h * camera.alternativa3d::m5; - offset++; - this.alternativa3d::name_410[offset] = transform.i * camera.alternativa3d::m10; - offset++; - this.alternativa3d::name_410[offset] = transform.j * camera.alternativa3d::m10; - offset++; - this.alternativa3d::name_410[offset] = transform.k * camera.alternativa3d::m10; - offset++; - this.alternativa3d::name_410[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14; - offset++; - if(!camera.orthographic) - { - this.alternativa3d::name_410[offset] = transform.i; - offset++; - this.alternativa3d::name_410[offset] = transform.j; - offset++; - this.alternativa3d::name_410[offset] = transform.k; - offset++; - this.alternativa3d::name_410[offset] = transform.l; - } - else - { - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 1; - } - } - else - { - this.alternativa3d::name_410[offset] = camera.alternativa3d::m0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = camera.alternativa3d::m5; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = camera.alternativa3d::m10; - offset++; - this.alternativa3d::name_410[offset] = camera.alternativa3d::m14; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 0; - offset++; - if(!camera.orthographic) - { - this.alternativa3d::name_410[offset] = 1; - offset++; - this.alternativa3d::name_410[offset] = 0; - } - else - { - this.alternativa3d::name_410[offset] = 0; - offset++; - this.alternativa3d::name_410[offset] = 1; - } - } - } - - alternativa3d function name_205(firstRegister:int, data:Vector., numRegisters:int) : void - { - if(uint(firstRegister + numRegisters) > 28) - { - throw new Error("Register index " + firstRegister + " is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + numRegisters > this.alternativa3d::name_407) - { - this.alternativa3d::name_407 = firstRegister + numRegisters; - } - for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) - { - this.alternativa3d::name_408[offset] = data[i]; - offset++; - i++; - } - } - - alternativa3d function name_134(firstRegister:int, x:Number, y:Number, z:Number, w:Number = 1) : void - { - if(uint(firstRegister + 1) > 28) - { - throw new Error("Register index " + firstRegister + " is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + 1 > this.alternativa3d::name_407) - { - this.alternativa3d::name_407 = firstRegister + 1; - } - this.alternativa3d::name_408[offset] = x; - offset++; - this.alternativa3d::name_408[offset] = y; - offset++; - this.alternativa3d::name_408[offset] = z; - offset++; - this.alternativa3d::name_408[offset] = w; - } - - alternativa3d function method_291(firstRegister:int, transform:name_139) : void - { - if(uint(firstRegister + 3) > 28) - { - throw new Error("Register index " + firstRegister + " is out of bounds."); - } - var offset:int = firstRegister << 2; - if(firstRegister + 3 > this.alternativa3d::name_407) - { - this.alternativa3d::name_407 = firstRegister + 3; - } - this.alternativa3d::name_408[offset] = transform.a; - offset++; - this.alternativa3d::name_408[offset] = transform.b; - offset++; - this.alternativa3d::name_408[offset] = transform.c; - offset++; - this.alternativa3d::name_408[offset] = transform.d; - offset++; - this.alternativa3d::name_408[offset] = transform.e; - offset++; - this.alternativa3d::name_408[offset] = transform.f; - offset++; - this.alternativa3d::name_408[offset] = transform.g; - offset++; - this.alternativa3d::name_408[offset] = transform.h; - offset++; - this.alternativa3d::name_408[offset] = transform.i; - offset++; - this.alternativa3d::name_408[offset] = transform.j; - offset++; - this.alternativa3d::name_408[offset] = transform.k; - offset++; - this.alternativa3d::name_408[offset] = transform.l; - } - } -} - diff --git a/src/package_21/name_397.as b/src/package_21/name_397.as deleted file mode 100644 index bbf4fcc..0000000 --- a/src/package_21/name_397.as +++ /dev/null @@ -1,55 +0,0 @@ -package package_21 -{ - import alternativa.engine3d.alternativa3d; - import flash.utils.Dictionary; - import package_19.name_509; - - use namespace alternativa3d; - - public class name_397 - { - public static const BOUNDS:int = 8; - - private static var boundWires:Dictionary = new Dictionary(); - - public function name_397() - { - super(); - } - - private static function method_643() : name_509 - { - var res:name_509 = new name_509(); - res.alternativa3d::geometry.alternativa3d::method_558(-0.5,-0.5,-0.5,0.5,-0.5,-0.5); - res.alternativa3d::geometry.alternativa3d::method_558(0.5,-0.5,-0.5,0.5,0.5,-0.5); - res.alternativa3d::geometry.alternativa3d::method_558(0.5,0.5,-0.5,-0.5,0.5,-0.5); - res.alternativa3d::geometry.alternativa3d::method_558(-0.5,0.5,-0.5,-0.5,-0.5,-0.5); - res.alternativa3d::geometry.alternativa3d::method_558(-0.5,-0.5,0.5,0.5,-0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(0.5,-0.5,0.5,0.5,0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(0.5,0.5,0.5,-0.5,0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(-0.5,0.5,0.5,-0.5,-0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(-0.5,-0.5,-0.5,-0.5,-0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(0.5,-0.5,-0.5,0.5,-0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(0.5,0.5,-0.5,0.5,0.5,0.5); - res.alternativa3d::geometry.alternativa3d::method_558(-0.5,0.5,-0.5,-0.5,0.5,0.5); - return res; - } - - alternativa3d static function name_399(camera:name_124, boundBox:name_386, transform:name_139, color:int = -1) : void - { - var boundWire:name_509 = boundWires[camera.alternativa3d::context3D]; - if(boundWire == null) - { - boundWire = method_643(); - boundWires[camera.alternativa3d::context3D] = boundWire; - boundWire.alternativa3d::geometry.upload(camera.alternativa3d::context3D); - } - boundWire.color = color >= 0 ? uint(color) : 10092288; - boundWire.thickness = 1; - boundWire.alternativa3d::transform.compose((boundBox.minX + boundBox.maxX) * 0.5,(boundBox.minY + boundBox.maxY) * 0.5,(boundBox.minZ + boundBox.maxZ) * 0.5,0,0,0,boundBox.maxX - boundBox.minX,boundBox.maxY - boundBox.minY,boundBox.maxZ - boundBox.minZ); - boundWire.alternativa3d::localToCameraTransform.combine(transform,boundWire.alternativa3d::transform); - boundWire.alternativa3d::collectDraws(camera,null,0); - } - } -} - diff --git a/src/package_25/name_113.as b/src/package_25/name_113.as deleted file mode 100644 index dcb89ad..0000000 --- a/src/package_25/name_113.as +++ /dev/null @@ -1,232 +0,0 @@ -package package_25 -{ - import alternativa.engine3d.alternativa3d; - import flash.geom.Vector3D; - import package_21.name_139; - import package_21.name_386; - - use namespace alternativa3d; - - public class name_113 - { - private static var randomNumbers:Vector.; - - private static const randomNumbersCount:int = 1000; - - private static const vector:Vector3D = new Vector3D(); - - public var name:String; - - public var scale:Number = 1; - - public var boundBox:name_386; - - alternativa3d var next:name_113; - - alternativa3d var name_413:name_113; - - alternativa3d var system:name_98; - - alternativa3d var startTime:Number; - - alternativa3d var lifeTime:Number = 1.7976931348623157e+308; - - alternativa3d var particleList:Particle; - - alternativa3d var aabb:name_386; - - alternativa3d var var_157:Vector3D; - - protected var var_156:Vector3D; - - protected var var_151:Vector.; - - protected var var_152:Vector.; - - protected var var_153:Vector.; - - protected var var_154:Vector.; - - protected var var_148:int = 0; - - private var var_155:int; - - private var var_150:int; - - private var var_147:Vector3D; - - private var var_149:Vector3D; - - public function name_113() - { - var i:int = 0; - this.alternativa3d::aabb = new name_386(); - this.var_151 = new Vector.(); - this.var_152 = new Vector.(); - this.var_153 = new Vector.(); - this.var_154 = new Vector.(); - this.var_147 = new Vector3D(0,0,0); - this.var_149 = new Vector3D(0,0,1); - super(); - if(randomNumbers == null) - { - randomNumbers = new Vector.(); - for(i = 0; i < randomNumbersCount; randomNumbers[i] = Math.random(),i++) - { - } - } - this.var_155 = Math.random() * randomNumbersCount; - } - - public function get position() : Vector3D - { - return this.var_147.clone(); - } - - public function set position(value:Vector3D) : void - { - this.var_147.x = value.x; - this.var_147.y = value.y; - this.var_147.z = value.z; - this.var_147.w = value.w; - if(this.alternativa3d::system != null) - { - this.alternativa3d::name_421(this.alternativa3d::system.alternativa3d::method_247() - this.alternativa3d::startTime); - } - } - - public function get direction() : Vector3D - { - return this.var_149.clone(); - } - - public function set direction(value:Vector3D) : void - { - this.var_149.x = value.x; - this.var_149.y = value.y; - this.var_149.z = value.z; - this.var_149.w = value.w; - if(this.alternativa3d::system != null) - { - this.alternativa3d::name_415(this.alternativa3d::system.alternativa3d::method_247() - this.alternativa3d::startTime); - } - } - - public function stop() : void - { - var time:Number = this.alternativa3d::system.alternativa3d::method_247() - this.alternativa3d::startTime; - for(var i:int = 0; i < this.var_148; ) - { - if(time < this.var_151[i]) - { - break; - } - i++; - } - this.var_148 = i; - } - - protected function get var_5() : name_98 - { - return this.alternativa3d::system; - } - - protected function get method_256() : name_139 - { - return this.alternativa3d::system.alternativa3d::cameraToLocalTransform; - } - - protected function random() : Number - { - var res:Number = randomNumbers[this.var_150]; - ++this.var_150; - if(this.var_150 == randomNumbersCount) - { - this.var_150 = 0; - } - return res; - } - - protected function method_257(time:Number, script:Function) : void - { - this.var_151[this.var_148] = time; - this.var_152[this.var_148] = new Vector3D(); - this.var_153[this.var_148] = new Vector3D(); - this.var_154[this.var_148] = script; - ++this.var_148; - } - - protected function method_258(time:Number) : void - { - this.alternativa3d::lifeTime = time; - } - - alternativa3d function calculateAABB() : void - { - this.alternativa3d::aabb.minX = this.boundBox.minX * this.scale + this.var_147.x; - this.alternativa3d::aabb.minY = this.boundBox.minY * this.scale + this.var_147.y; - this.alternativa3d::aabb.minZ = this.boundBox.minZ * this.scale + this.var_147.z; - this.alternativa3d::aabb.maxX = this.boundBox.maxX * this.scale + this.var_147.x; - this.alternativa3d::aabb.maxY = this.boundBox.maxY * this.scale + this.var_147.y; - this.alternativa3d::aabb.maxZ = this.boundBox.maxZ * this.scale + this.var_147.z; - } - - alternativa3d function name_421(time:Number) : void - { - var pos:Vector3D = null; - for(var i:int = 0; i < this.var_148; ) - { - if(time <= this.var_151[i]) - { - pos = this.var_152[i]; - pos.x = this.var_147.x; - pos.y = this.var_147.y; - pos.z = this.var_147.z; - } - i++; - } - } - - alternativa3d function name_415(time:Number) : void - { - var dir:Vector3D = null; - vector.x = this.var_149.x; - vector.y = this.var_149.y; - vector.z = this.var_149.z; - vector.normalize(); - for(var i:int = 0; i < this.var_148; ) - { - if(time <= this.var_151[i]) - { - dir = this.var_153[i]; - dir.x = vector.x; - dir.y = vector.y; - dir.z = vector.z; - } - i++; - } - } - - alternativa3d function name_418(time:Number) : Boolean - { - var keyTime:Number = NaN; - var script:Function = null; - this.var_150 = this.var_155; - for(var i:int = 0; i < this.var_148; ) - { - keyTime = this.var_151[i]; - if(time < keyTime) - { - break; - } - this.alternativa3d::var_157 = this.var_152[i]; - this.var_156 = this.var_153[i]; - script = this.var_154[i]; - script.call(this,keyTime,time - keyTime); - i++; - } - return i < this.var_148 || this.alternativa3d::particleList != null; - } - } -} - diff --git a/src/package_27/class_7.as b/src/package_27/class_7.as deleted file mode 100644 index 5d32f1a..0000000 --- a/src/package_27/class_7.as +++ /dev/null @@ -1,28 +0,0 @@ -package package_27 -{ - public class class_7 - { - private var var_33:name_170; - - public function class_7() - { - super(); - } - - public function run() : void - { - throw new Error("Not implemented"); - } - - internal function set method_101(value:name_170) : void - { - this.var_33 = value; - } - - final protected function method_102() : void - { - this.var_33.taskComplete(this); - } - } -} - diff --git a/src/package_27/name_170.as b/src/package_27/name_170.as deleted file mode 100644 index fdca280..0000000 --- a/src/package_27/name_170.as +++ /dev/null @@ -1,58 +0,0 @@ -package package_27 -{ - import flash.events.Event; - import flash.events.EventDispatcher; - - public class name_170 extends EventDispatcher - { - private var tasks:Vector.; - - private var var_192:int; - - public function name_170() - { - super(); - this.tasks = new Vector.(); - } - - public function addTask(task:class_7) : void - { - if(this.tasks.indexOf(task) < 0) - { - this.tasks.push(task); - task.method_101 = this; - } - } - - public function run() : void - { - if(this.tasks.length > 0) - { - this.var_192 = 0; - this.method_309(); - } - else - { - dispatchEvent(new Event(Event.COMPLETE)); - } - } - - private function method_309() : void - { - class_7(this.tasks[this.var_192]).run(); - } - - internal function taskComplete(task:class_7) : void - { - if(++this.var_192 < this.tasks.length) - { - this.method_309(); - } - else - { - dispatchEvent(new Event(Event.COMPLETE)); - } - } - } -} - diff --git a/src/package_27/name_180.as b/src/package_27/name_180.as deleted file mode 100644 index 15ef499..0000000 --- a/src/package_27/name_180.as +++ /dev/null @@ -1,44 +0,0 @@ -package package_27 -{ - import flash.utils.getTimer; - - public class name_180 - { - public var var_211:Number = 0; - - public var var_212:Number = 0; - - private var maxTicks:int; - - private var var_208:int; - - private var var_210:int; - - private var var_209:int; - - public function name_180(maxTicks:int) - { - super(); - this.maxTicks = maxTicks; - } - - public function name_188() : void - { - this.var_210 = getTimer(); - } - - public function name_186() : void - { - this.var_209 += getTimer() - this.var_210; - ++this.var_208; - if(this.var_208 >= this.maxTicks) - { - this.var_211 = this.var_209 / this.var_208; - this.var_212 = this.var_208 * 1000 / this.var_209; - this.var_208 = 0; - this.var_209 = 0; - } - } - } -} - diff --git a/src/package_30/name_114.as b/src/package_30/name_114.as deleted file mode 100644 index 8ddf5a5..0000000 --- a/src/package_30/name_114.as +++ /dev/null @@ -1,370 +0,0 @@ -package package_30 -{ - import alternativa.engine3d.alternativa3d; - import flash.utils.ByteArray; - import flash.utils.Endian; - - use namespace alternativa3d; - - public class name_114 - { - public var name:String; - - public var byteCode:ByteArray = new ByteArray(); - - public var name_435:Vector.> = new Vector.>(); - - public var var_177:int = 0; - - public var var_176:int = 0; - - alternativa3d var name_436:uint = 0; - - public function name_114(array:Array = null, name:String = null) - { - super(); - this.byteCode.endian = Endian.LITTLE_ENDIAN; - this.name = name; - if(array != null) - { - this.name_140(array); - } - } - - public static function name_140(source:Array, name:String = null) : name_114 - { - return new name_114(source,name); - } - - public static function method_288(source:String, name:String = null) : name_114 - { - var proc:name_114 = new name_114(null,name); - proc.method_288(source); - return proc; - } - - private function method_287(v:name_434) : void - { - var vars:Vector. = this.name_435[v.type]; - var index:int = v.index; - if(index >= vars.length) - { - vars.length = index + 1; - } - else - { - v.next = vars[index]; - } - vars[index] = v; - } - - public function name_122(type:uint, index:uint, name:String, size:uint = 1) : void - { - for(var v:name_434 = this.name_435[type][index]; v != null; ) - { - v.size = size; - v.name = name; - v = v.next; - } - } - - public function method_288(source:String) : void - { - var commands:Array = source.split("\n"); - this.name_140(commands); - } - - public function name_140(source:Array) : void - { - var cmd:String = null; - var declaration:Array = null; - var decArray:Array = null; - var regType:String = null; - var varIndex:int = 0; - var varName:String = null; - for(var i:int = 0; i < 7; i++) - { - this.name_435[i] = new Vector.(); - } - this.byteCode.length = 0; - this.var_176 = 0; - this.var_177 = 0; - var declarationStrings:Vector. = new Vector.(); - var count:int = int(source.length); - for(i = 0; i < count; i++) - { - cmd = source[i]; - declaration = cmd.match(/# *[acvs]\d{1,3} *= *[a-zA-Z0-9_]*/i); - if(declaration != null && declaration.length > 0) - { - declarationStrings.push(declaration[0]); - } - else - { - this.method_289(cmd); - } - } - for(i = 0,count = int(declarationStrings.length); i < count; ) - { - decArray = declarationStrings[i].split("="); - regType = decArray[0].match(/[acvs]/i); - varIndex = int(int(decArray[0].match(/\d{1,3}/i))); - varName = decArray[1].match(/[a-zA-Z0-9]*/i); - switch(regType.toLowerCase()) - { - case "a": - this.name_122(name_115.ATTRIBUTE,varIndex,varName); - break; - case "c": - this.name_122(name_115.CONSTANT,varIndex,varName); - break; - case "v": - this.name_122(name_115.VARYING,varIndex,varName); - break; - case "s": - this.name_122(name_115.SAMPLER,varIndex,varName); - break; - } - i++; - } - } - - public function method_290(registersCount:uint = 1) : void - { - this.alternativa3d::name_436 = registersCount; - } - - private function method_289(source:String) : void - { - var destination:name_434 = null; - var source1:name_437 = null; - var source2:name_434 = null; - var type:uint = 0; - var s2v:name_437 = null; - var commentIndex:int = int(source.indexOf("//")); - if(commentIndex >= 0) - { - source = source.substr(0,commentIndex); - } - var operands:Array = source.match(/[A-Za-z]+(((\[.+\])|(\d+))(\.[xyzw]{1,4})?(\ *\<.*>)?)?/g); - if(operands.length < 2) - { - return; - } - var opCode:String = operands[0]; - if(opCode == "kil") - { - source1 = new name_437(operands[1]); - } - else - { - destination = new name_440(operands[1]); - source1 = new name_437(operands[2]); - this.method_287(destination); - } - this.method_287(source1); - switch(opCode) - { - case "mov": - type = name_168.MOV; - ++this.var_177; - break; - case "add": - type = name_168.ADD; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "sub": - type = name_168.SUB; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "mul": - type = name_168.MUL; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "div": - type = name_168.DIV; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "rcp": - type = name_168.RCP; - ++this.var_177; - break; - case "min": - type = name_168.MIN; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "max": - type = name_168.MAX; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "frc": - type = name_168.FRC; - ++this.var_177; - break; - case "sqt": - type = name_168.SQT; - ++this.var_177; - break; - case "rsq": - type = name_168.RSQ; - ++this.var_177; - break; - case "pow": - type = name_168.POW; - source2 = new name_437(operands[3]); - this.method_287(source2); - this.var_177 += 3; - break; - case "log": - type = name_168.LOG; - ++this.var_177; - break; - case "exp": - type = name_168.EXP; - ++this.var_177; - break; - case "nrm": - type = name_168.NRM; - this.var_177 += 3; - break; - case "sin": - type = name_168.SIN; - this.var_177 += 8; - break; - case "cos": - type = name_168.COS; - this.var_177 += 8; - break; - case "crs": - type = name_168.CRS; - source2 = new name_437(operands[3]); - this.method_287(source2); - this.var_177 += 2; - break; - case "dp3": - type = name_168.DP3; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "dp4": - type = name_168.DP4; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "abs": - type = name_168.ABS; - ++this.var_177; - break; - case "neg": - type = name_168.NEG; - ++this.var_177; - break; - case "sat": - type = name_168.SAT; - ++this.var_177; - break; - case "m33": - type = name_168.M33; - source2 = new name_437(operands[3]); - this.method_287(source2); - this.var_177 += 3; - break; - case "m44": - type = name_168.M44; - source2 = new name_437(operands[3]); - this.method_287(source2); - this.var_177 += 4; - break; - case "m34": - type = name_168.M34; - source2 = new name_437(operands[3]); - this.method_287(source2); - this.var_177 += 3; - break; - case "kil": - type = name_168.KIL; - ++this.var_177; - break; - case "tex": - type = name_168.TEX; - source2 = new name_441(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "sge": - type = name_168.SGE; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - break; - case "slt": - type = name_168.SLT; - source2 = new name_437(operands[3]); - this.method_287(source2); - ++this.var_177; - } - this.byteCode.writeUnsignedInt(type); - if(destination != null) - { - destination.position = this.byteCode.position; - this.byteCode.writeUnsignedInt(destination.name_438); - } - else - { - this.byteCode.writeUnsignedInt(0); - } - source1.position = this.byteCode.position; - if(source1.relative != null) - { - this.method_287(source1.relative); - source1.relative.position = this.byteCode.position; - } - this.byteCode.writeUnsignedInt(source1.name_438); - this.byteCode.writeUnsignedInt(source1.name_439); - if(source2 != null) - { - s2v = source2 as name_437; - source2.position = this.byteCode.position; - if(s2v != null && s2v.relative != null) - { - this.method_287(s2v.relative); - s2v.relative.position = s2v.position; - } - this.byteCode.writeUnsignedInt(source2.name_438); - this.byteCode.writeUnsignedInt(source2.name_439); - } - else - { - this.byteCode.position = this.byteCode.length = this.byteCode.length + 8; - } - ++this.var_176; - } - - public function name_143() : name_114 - { - var res:name_114 = new name_114(); - res.byteCode = this.byteCode; - res.name_435 = this.name_435; - res.var_177 = this.var_177; - res.alternativa3d::name_436 = this.alternativa3d::name_436; - res.var_176 = this.var_176; - res.name = this.name; - return res; - } - } -} - diff --git a/src/package_32/name_149.as b/src/package_32/name_149.as deleted file mode 100644 index ae2f91f..0000000 --- a/src/package_32/name_149.as +++ /dev/null @@ -1,34 +0,0 @@ -package package_32 -{ - import package_36.class_19; - - public class name_149 extends class_20 - { - private var var_186:class_19; - - private var var_185:int; - - public function name_149(elementCodec:class_19, optional:Boolean, level:int) - { - super(optional); - this.var_186 = elementCodec; - this.var_185 = level; - } - - public function get level() : int - { - return this.var_185; - } - - public function get elementCodec() : class_19 - { - return this.var_186; - } - - override public function toString() : String - { - return "[CollectionCodecInfo " + super.toString() + " element=" + this.elementCodec.toString() + " level=" + this.level + "]"; - } - } -} - diff --git a/src/package_33/name_153.as b/src/package_33/name_153.as deleted file mode 100644 index af6efa5..0000000 --- a/src/package_33/name_153.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_33 -{ - public class name_153 - { - public function name_153() - { - super(); - } - } -} - diff --git a/src/package_33/name_154.as b/src/package_33/name_154.as deleted file mode 100644 index 3bc5bf3..0000000 --- a/src/package_33/name_154.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_33 -{ - public class name_154 - { - public function name_154() - { - super(); - } - } -} - diff --git a/src/package_33/name_156.as b/src/package_33/name_156.as deleted file mode 100644 index 0590946..0000000 --- a/src/package_33/name_156.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_33 -{ - public class name_156 - { - public function name_156() - { - super(); - } - } -} - diff --git a/src/package_33/name_157.as b/src/package_33/name_157.as deleted file mode 100644 index f206483..0000000 --- a/src/package_33/name_157.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_33 -{ - public class name_157 - { - public function name_157() - { - super(); - } - } -} - diff --git a/src/package_33/name_158.as b/src/package_33/name_158.as deleted file mode 100644 index f152e6e..0000000 --- a/src/package_33/name_158.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_33 -{ - public class name_158 - { - public function name_158() - { - super(); - } - } -} - diff --git a/src/package_34/name_150.as b/src/package_34/name_150.as deleted file mode 100644 index 1d4dc94..0000000 --- a/src/package_34/name_150.as +++ /dev/null @@ -1,48 +0,0 @@ -package package_34 -{ - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_70.name_451; - - public class name_150 implements name_152 - { - private var codec:name_152; - - private var var_189:Object; - - public function name_150(codec:name_152) - { - super(); - this.codec = codec; - if(codec is name_451) - { - this.var_189 = name_451(codec).name_452(); - } - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == this.var_189) - { - protocolBuffer.optionalMap.name_444(true); - } - else - { - protocolBuffer.optionalMap.name_444(false); - this.codec.method_295(protocolBuffer,object); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.optionalMap.name_447() ? this.var_189 : this.codec.method_296(protocolBuffer); - } - - public function init(protocol:name_163) : void - { - this.codec.init(protocol); - } - } -} - diff --git a/src/package_35/VectorCodecStringLevel1.as b/src/package_35/VectorCodecStringLevel1.as deleted file mode 100644 index ef297e6..0000000 --- a/src/package_35/VectorCodecStringLevel1.as +++ /dev/null @@ -1,58 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecStringLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecStringLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(String,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = String(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_35/VectorCodecbyteLevel1.as b/src/package_35/VectorCodecbyteLevel1.as deleted file mode 100644 index 93d3295..0000000 --- a/src/package_35/VectorCodecbyteLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_33.name_154; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecbyteLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecbyteLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_154,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = int(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_35/VectorCodecfloatLevel1.as b/src/package_35/VectorCodecfloatLevel1.as deleted file mode 100644 index fc53339..0000000 --- a/src/package_35/VectorCodecfloatLevel1.as +++ /dev/null @@ -1,60 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_33.name_157; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecfloatLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecfloatLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_157,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = Number(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var value:Number = NaN; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_35/VectorCodecintLevel1.as b/src/package_35/VectorCodecintLevel1.as deleted file mode 100644 index c6da699..0000000 --- a/src/package_35/VectorCodecintLevel1.as +++ /dev/null @@ -1,58 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecintLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(int,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = int(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_35/VectorCodeclongLevel1.as b/src/package_35/VectorCodeclongLevel1.as deleted file mode 100644 index f32a0c4..0000000 --- a/src/package_35/VectorCodeclongLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_33.name_155; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodeclongLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_155,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = name_155(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_35/VectorCodeclongLevel2.as b/src/package_35/VectorCodeclongLevel2.as deleted file mode 100644 index 0a986a1..0000000 --- a/src/package_35/VectorCodeclongLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_33.name_155; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodeclongLevel2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_155,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = name_155(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_35/VectorCodeclongLevel3.as b/src/package_35/VectorCodeclongLevel3.as deleted file mode 100644 index c58c5c6..0000000 --- a/src/package_35/VectorCodeclongLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_33.name_155; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodeclongLevel3 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_155,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length3 = name_443.name_445(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = name_155(this.elementCodec.method_296(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.name_444(false); - length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.method_295(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_35/VectorCodecshortLevel1.as b/src/package_35/VectorCodecshortLevel1.as deleted file mode 100644 index d0e047d..0000000 --- a/src/package_35/VectorCodecshortLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_35 -{ - import package_32.name_148; - import package_33.name_158; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecshortLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_158,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = int(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_36/class_19.as b/src/package_36/class_19.as deleted file mode 100644 index 5a21f5f..0000000 --- a/src/package_36/class_19.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_36 -{ - public interface class_19 - { - function method_297() : Boolean; - - function toString() : String; - } -} - diff --git a/src/package_36/name_152.as b/src/package_36/name_152.as deleted file mode 100644 index 11d03af..0000000 --- a/src/package_36/name_152.as +++ /dev/null @@ -1,12 +0,0 @@ -package package_36 -{ - public interface name_152 - { - function init(param1:name_163) : void; - - function method_295(param1:name_442, param2:Object) : void; - - function method_296(param1:name_442) : Object; - } -} - diff --git a/src/package_36/name_163.as b/src/package_36/name_163.as deleted file mode 100644 index a576f17..0000000 --- a/src/package_36/name_163.as +++ /dev/null @@ -1,21 +0,0 @@ -package package_36 -{ - import flash.utils.IDataInput; - import flash.utils.IDataOutput; - - public interface name_163 - { - function name_151(param1:class_19, param2:name_152) : void; - - function name_223(param1:Class, param2:name_152) : void; - - function name_448(param1:class_19) : name_152; - - function method_304(param1:Class) : class_19; - - function method_305(param1:IDataOutput, param2:name_442, param3:name_449) : void; - - function method_303(param1:IDataInput, param2:name_442) : Boolean; - } -} - diff --git a/src/package_36/name_449.as b/src/package_36/name_449.as deleted file mode 100644 index db7acb6..0000000 --- a/src/package_36/name_449.as +++ /dev/null @@ -1,17 +0,0 @@ -package package_36 -{ - public class name_449 - { - public static var NONE:name_449 = new name_449(); - - public static var DEFLATE:name_449 = new name_449(); - - public static var DEFLATE_AUTO:name_449 = new name_449(); - - public function name_449() - { - super(); - } - } -} - diff --git a/src/package_36/name_648.as b/src/package_36/name_648.as deleted file mode 100644 index 69a46bc..0000000 --- a/src/package_36/name_648.as +++ /dev/null @@ -1,128 +0,0 @@ -package package_36 -{ - import flash.utils.ByteArray; - - public class name_648 - { - private var var_671:int; - - private var size:int; - - private var map:ByteArray; - - public function name_648(size:int = 0, source:ByteArray = null) - { - super(); - this.map = new ByteArray(); - if(source != null) - { - this.map.writeBytes(source,0,this.method_814(size)); - } - this.size = size; - this.var_671 = 0; - } - - public function method_816() : int - { - return this.var_671; - } - - public function name_702(value:int) : void - { - this.var_671 = value; - } - - public function reset() : void - { - this.var_671 = 0; - } - - public function clear() : void - { - this.size = 0; - this.var_671 = 0; - } - - public function name_444(isNull:Boolean) : void - { - this.name_480(this.size,isNull); - ++this.size; - } - - public function method_815() : Boolean - { - return this.var_671 < this.size; - } - - public function name_447() : Boolean - { - if(this.var_671 >= this.size) - { - throw new Error("Index out of bounds: " + this.var_671); - } - var res:Boolean = this.name_478(this.var_671); - ++this.var_671; - return res; - } - - public function name_649() : ByteArray - { - return this.map; - } - - public function name_650() : int - { - return this.size; - } - - private function name_478(position:int) : Boolean - { - var targetByte:int = position >> 3; - var targetBit:int = 7 ^ position & 7; - this.map.position = targetByte; - return (this.map.readByte() & 1 << targetBit) != 0; - } - - private function name_480(position:int, value:Boolean) : void - { - var targetByte:int = position >> 3; - var targetBit:int = 7 ^ position & 7; - this.map.position = targetByte; - if(value) - { - this.map.writeByte(int(this.map[targetByte] | 1 << targetBit)); - } - else - { - this.map.writeByte(int(this.map[targetByte] & (0xFF ^ 1 << targetBit))); - } - } - - private function method_814(sizeInBits:int) : int - { - var i:int = sizeInBits >> 3; - var add:int = (sizeInBits & 7) == 0 ? 0 : 1; - return i + add; - } - - public function toString() : String - { - var result:String = "readPosition: " + this.var_671 + " size:" + this.name_650() + " mask:"; - var _readPosition:int = this.var_671; - for(var i:int = this.var_671; i < this.name_650(); i++) - { - result += this.name_447() ? "1" : "0"; - } - this.var_671 = _readPosition; - return result; - } - - public function clone() : name_648 - { - var map:name_648 = new name_648(this.size,this.map); - map.var_671 = this.var_671; - return map; - } - } -} - diff --git a/src/package_37/VectorCodecintLevel1.as b/src/package_37/VectorCodecintLevel1.as deleted file mode 100644 index 7a636f0..0000000 --- a/src/package_37/VectorCodecintLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_37 -{ - import package_32.name_148; - import package_33.name_156; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecintLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_156,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = uint(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_37/VectorCodeclongLevel1.as b/src/package_37/VectorCodeclongLevel1.as deleted file mode 100644 index d5c220d..0000000 --- a/src/package_37/VectorCodeclongLevel1.as +++ /dev/null @@ -1,58 +0,0 @@ -package package_37 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodeclongLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(uint,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = uint(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_37/VectorCodecshortLevel1.as b/src/package_37/VectorCodecshortLevel1.as deleted file mode 100644 index 1bf156c..0000000 --- a/src/package_37/VectorCodecshortLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_37 -{ - import package_32.name_148; - import package_33.name_153; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - - public class VectorCodecshortLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_153,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = uint(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_38/name_159.as b/src/package_38/name_159.as deleted file mode 100644 index 9028186..0000000 --- a/src/package_38/name_159.as +++ /dev/null @@ -1,110 +0,0 @@ -package package_38 -{ - import flash.utils.ByteArray; - import flash.utils.Dictionary; - import flash.utils.IDataInput; - import flash.utils.IDataOutput; - import package_111.name_456; - import package_111.name_457; - import package_32.name_148; - import package_33.name_154; - import package_33.name_155; - import package_33.name_156; - import package_33.name_157; - import package_33.name_158; - import package_34.name_150; - import package_36.*; - import package_39.name_160; - import package_70.name_224; - import package_70.name_225; - import package_70.name_226; - import package_70.name_227; - import package_70.name_228; - import package_70.name_230; - import package_70.name_231; - import package_70.name_232; - import package_70.name_458; - - public class name_159 implements name_163 - { - [Inject] - public static var clientLog:name_160; - - private static const LOG_CHANNEL:String = "protocol"; - - public static var defaultInstance:name_163 = new name_159(); - - private var var_190:Object = new Object(); - - private var var_191:Dictionary = new Dictionary(false); - - public function name_159() - { - super(); - this.name_151(new name_148(int,false),new name_232()); - this.name_151(new name_148(name_158,false),new name_224()); - this.name_151(new name_148(name_154,false),new name_225()); - this.name_151(new name_148(name_156,false),new name_230()); - this.name_151(new name_148(uint,false),new name_228()); - this.name_151(new name_148(Number,false),new name_231()); - this.name_151(new name_148(name_157,false),new name_226()); - this.name_151(new name_148(Boolean,false),new name_458()); - this.name_151(new name_148(name_155,false),new name_227()); - this.name_151(new name_148(String,false),new name_457()); - this.name_151(new name_148(ByteArray,false),new name_456()); - this.name_151(new name_148(int,true),new name_150(new name_232())); - this.name_151(new name_148(name_158,true),new name_150(new name_224())); - this.name_151(new name_148(name_154,true),new name_150(new name_225())); - this.name_151(new name_148(name_156,true),new name_150(new name_230())); - this.name_151(new name_148(uint,true),new name_150(new name_228())); - this.name_151(new name_148(Number,true),new name_150(new name_231())); - this.name_151(new name_148(name_157,true),new name_150(new name_226())); - this.name_151(new name_148(Boolean,true),new name_150(new name_458())); - this.name_151(new name_148(name_155,true),new name_150(new name_227())); - this.name_151(new name_148(String,true),new name_150(new name_457())); - this.name_151(new name_148(ByteArray,true),new name_150(new name_456())); - } - - public function name_151(codecInfo:class_19, codec:name_152) : void - { - this.var_190[codecInfo] = codec; - } - - public function name_223(type:Class, codec:name_152) : void - { - this.var_190[new name_148(type,false)] = codec; - this.var_190[new name_148(type,true)] = new name_150(codec); - } - - public function name_448(codecInfo:class_19) : name_152 - { - var result:name_152 = this.var_190[codecInfo]; - if(result == null) - { - throw Error("Codec not found for " + codecInfo); - } - if(this.var_191[result] == null) - { - result.init(this); - this.var_191[result] = result; - } - return result; - } - - public function method_304(type:Class) : class_19 - { - return new name_148(type,false); - } - - public function method_305(dest:IDataOutput, source:name_442, compressionType:name_449) : void - { - name_162.method_305(dest,source,compressionType); - } - - public function method_303(source:IDataInput, dest:name_442) : Boolean - { - return name_162.method_303(source,dest); - } - } -} - diff --git a/src/package_38/name_443.as b/src/package_38/name_443.as deleted file mode 100644 index 751ae82..0000000 --- a/src/package_38/name_443.as +++ /dev/null @@ -1,64 +0,0 @@ -package package_38 -{ - import package_36.name_442; - - public class name_443 - { - public function name_443() - { - super(); - } - - public static function name_446(protocolBuffer:name_442, length:int) : void - { - var tmp:Number = NaN; - if(length < 0) - { - throw new Error("Length is incorrect (" + length + ")"); - } - if(length < 128) - { - protocolBuffer.name_483.writeByte(int(length & 0x7F)); - } - else if(length < 16384) - { - tmp = (length & 0x3FFF) + 32768; - protocolBuffer.name_483.writeByte(int((tmp & 0xFF00) >> 8)); - protocolBuffer.name_483.writeByte(int(tmp & 0xFF)); - } - else - { - if(length >= 4194304) - { - throw new Error("Length is incorrect (" + length + ")"); - } - tmp = (length & 0x3FFFFF) + 12582912; - protocolBuffer.name_483.writeByte(int((tmp & 0xFF0000) >> 16)); - protocolBuffer.name_483.writeByte(int((tmp & 0xFF00) >> 8)); - protocolBuffer.name_483.writeByte(int(tmp & 0xFF)); - } - } - - public static function name_445(protocolBuffer:name_442) : int - { - var secondByte:int = 0; - var doubleByte:Boolean = false; - var thirdByte:int = 0; - var firstByte:int = int(protocolBuffer.reader.readByte()); - var singleByte:Boolean = (firstByte & 0x80) == 0; - if(singleByte) - { - return firstByte; - } - secondByte = int(protocolBuffer.reader.readByte()); - doubleByte = (firstByte & 0x40) == 0; - if(doubleByte) - { - return ((firstByte & 0x3F) << 8) + (secondByte & 0xFF); - } - thirdByte = int(protocolBuffer.reader.readByte()); - return ((firstByte & 0x3F) << 16) + ((secondByte & 0xFF) << 8) + (thirdByte & 0xFF); - } - } -} - diff --git a/src/package_39/name_160.as b/src/package_39/name_160.as deleted file mode 100644 index de6cbe3..0000000 --- a/src/package_39/name_160.as +++ /dev/null @@ -1,20 +0,0 @@ -package package_39 -{ - public interface name_160 extends name_203 - { - function logError(param1:String, param2:String, ... rest) : void; - - function getChannelStrings(param1:String) : Vector.; - - function addLogListener(param1:name_450) : void; - - function removeLogListener(param1:name_450) : void; - - function addLogChannelListener(param1:String, param2:name_450) : void; - - function removeLogChannelListener(param1:String, param2:name_450) : void; - - function getChannelNames() : Vector.; - } -} - diff --git a/src/package_39/name_203.as b/src/package_39/name_203.as deleted file mode 100644 index 4ffd438..0000000 --- a/src/package_39/name_203.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_39 -{ - public interface name_203 - { - function log(param1:String, param2:String, ... rest) : void; - } -} - diff --git a/src/package_39/name_450.as b/src/package_39/name_450.as deleted file mode 100644 index 20e9b48..0000000 --- a/src/package_39/name_450.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_39 -{ - public interface name_450 - { - function method_622(param1:String, param2:String) : void; - } -} - diff --git a/src/package_4/class_4.as b/src/package_4/class_4.as deleted file mode 100644 index 668a556..0000000 --- a/src/package_4/class_4.as +++ /dev/null @@ -1,85 +0,0 @@ -package package_4 -{ - import alternativa.engine3d.alternativa3d; - import flash.utils.Dictionary; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_77; - import package_28.name_119; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - - use namespace alternativa3d; - - public class class_4 - { - alternativa3d static const _projectProcedure:name_114 = method_73(); - - public var name:String; - - alternativa3d var priority:int = 0; - - public function class_4() - { - super(); - } - - private static function method_73() : name_114 - { - var res:name_114 = new name_114(["m44 o0, i0, c0"],"projectProcedure"); - res.name_122(name_115.CONSTANT,0,"cProjMatrix",4); - return res; - } - - alternativa3d function get canDrawInShadowMap() : Boolean - { - return true; - } - - alternativa3d function method_74(transformProcedure:name_114, vertexShader:name_121) : String - { - vertexShader.name_120("tTransformedPosition"); - vertexShader.name_123(transformProcedure); - vertexShader.name_118(transformProcedure,"aPosition"); - vertexShader.name_125(transformProcedure,"tTransformedPosition"); - return "tTransformedPosition"; - } - - public function getResources(resourceType:Class = null) : Vector. - { - var key:* = undefined; - var res:Vector. = new Vector.(); - var dict:Dictionary = new Dictionary(); - var count:int = 0; - this.alternativa3d::fillResources(dict,resourceType); - for(key in dict) - { - var _loc8_:* = count++; - res[_loc8_] = key as name_77; - } - return res; - } - - alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void - { - } - - alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void - { - } - - public function clone() : class_4 - { - var res:class_4 = new class_4(); - res.clonePropertiesFrom(this); - return res; - } - - protected function clonePropertiesFrom(source:class_4) : void - { - } - } -} - diff --git a/src/package_4/class_5.as b/src/package_4/class_5.as deleted file mode 100644 index 8a0281b..0000000 --- a/src/package_4/class_5.as +++ /dev/null @@ -1,163 +0,0 @@ -package package_4 -{ - import alternativa.engine3d.alternativa3d; - import avmplus.getQualifiedClassName; - import flash.display3D.Context3DBlendFactor; - import flash.display3D.Context3DProgramType; - import flash.display3D.VertexBuffer3D; - import flash.utils.Dictionary; - import flash.utils.getDefinitionByName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_78; - import package_28.name_119; - import package_28.name_129; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - - use namespace alternativa3d; - - public class class_5 extends class_4 - { - alternativa3d static const _samplerSetProcedure:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","mov t0.w, c0.w","mov o0, t0"],"samplerSetProcedure"); - - alternativa3d static const _samplerSetProcedureOpacity:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#s1=sOpacity","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","tex t1, v0, s1 <2d, linear,repeat, miplinear>","mov t0.w, t1.x","mul t0.w, t0.w, c0.w","mov o0, t0"],"samplerSetProcedureOpacity"); - - alternativa3d static const _samplerSetProcedureDiffuseAlpha:name_114 = new name_114(["#v0=vUV","#s0=sTexture","#c0=cAlpha","tex t0, v0, s0 <2d, linear,repeat, miplinear>","mul t0.w, t0.w, c0.w","mov o0, t0"],"samplerSetProcedureDiffuseAlpha"); - - alternativa3d static const _passUVProcedure:name_114 = new name_114(["#v0=vUV","#a0=aUV","mov v0, a0"],"passUVProcedure"); - - private static var _programs:Dictionary = new Dictionary(); - - public var diffuseMap:name_129; - - public var opacityMap:name_129; - - public var alpha:Number = 1; - - public var var_21:Boolean = false; - - public function class_5(diffuseMap:name_129 = null, opacityMap:name_129 = null, alpha:Number = 1) - { - super(); - this.diffuseMap = diffuseMap; - this.opacityMap = opacityMap; - this.alpha = alpha; - } - - override alternativa3d function get canDrawInShadowMap() : Boolean - { - return !this.var_21 && this.opacityMap == null; - } - - override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void - { - super.alternativa3d::fillResources(resources,resourceType); - if(this.diffuseMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) - { - resources[this.diffuseMap] = true; - } - if(this.opacityMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) - { - resources[this.opacityMap] = true; - } - } - - private function method_75(object:name_78) : name_127 - { - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - if(object.alternativa3d::transformProcedure != null) - { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); - } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(alternativa3d::_passUVProcedure); - var outProcedure:name_114 = this.var_21 ? alternativa3d::_samplerSetProcedureDiffuseAlpha : (this.opacityMap != null ? alternativa3d::_samplerSetProcedureOpacity : alternativa3d::_samplerSetProcedure); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - fragmentLinker.name_123(outProcedure); - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); - } - - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void - { - var program:name_127 = null; - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var key:int = this.var_21 ? 2 : (this.opacityMap != null ? 1 : 0); - var optionsPrograms:Vector. = _programs[object.alternativa3d::transformProcedure]; - if(optionsPrograms == null) - { - optionsPrograms = new Vector.(3,true); - _programs[object.alternativa3d::transformProcedure] = optionsPrograms; - program = this.method_75(object); - program.upload(camera.alternativa3d::context3D); - optionsPrograms[key] = program; - } - else - { - program = optionsPrograms[key]; - if(program == null) - { - program = this.method_75(object); - program.upload(camera.alternativa3d::context3D); - optionsPrograms[key] = program; - } - } - if(positionBuffer == null || uvBuffer == null || this.diffuseMap == null || this.diffuseMap.alternativa3d::_texture == null) - { - return; - } - if(!this.var_21 && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) - { - return; - } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cAlpha"),0,0,0,this.alpha); - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.diffuseMap.alternativa3d::_texture); - if(!this.var_21 && this.opacityMap != null) - { - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),this.opacityMap.alternativa3d::_texture); - } - if(this.var_21 || this.opacityMap != null || this.alpha < 1) - { - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); - } - else - { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); - } - } - - override public function clone() : class_4 - { - var res:class_5 = new class_5(null,null,this.alpha); - res.clonePropertiesFrom(this); - return res; - } - - override protected function clonePropertiesFrom(source:class_4) : void - { - super.clonePropertiesFrom(source); - var t:class_5 = source as class_5; - this.diffuseMap = t.diffuseMap; - this.opacityMap = t.opacityMap; - } - } -} - diff --git a/src/package_4/class_9.as b/src/package_4/class_9.as deleted file mode 100644 index 3d411a5..0000000 --- a/src/package_4/class_9.as +++ /dev/null @@ -1,590 +0,0 @@ -package package_4 -{ - import alternativa.engine3d.alternativa3d; - import flash.display.BitmapData; - import flash.display3D.Context3DBlendFactor; - import flash.display3D.Context3DProgramType; - import flash.display3D.VertexBuffer3D; - import flash.utils.Dictionary; - import flash.utils.getDefinitionByName; - import flash.utils.getQualifiedClassName; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_139; - import package_21.name_78; - import package_24.DirectionalLight; - import package_24.OmniLight; - import package_24.SpotLight; - import package_28.name_119; - import package_28.name_129; - import package_28.name_93; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - - use namespace alternativa3d; - - public class class_9 extends class_5 - { - alternativa3d static var fogTexture:name_129; - - alternativa3d static const DISABLED:int = 0; - - alternativa3d static const SIMPLE:int = 1; - - alternativa3d static const ADVANCED:int = 2; - - alternativa3d static var fogMode:int = alternativa3d::DISABLED; - - alternativa3d static var fogNear:Number = 1000; - - alternativa3d static var fogFar:Number = 5000; - - alternativa3d static var fogMaxDensity:Number = 1; - - alternativa3d static var fogColorR:Number = 200 / 255; - - alternativa3d static var fogColorG:Number = 162 / 255; - - alternativa3d static var fogColorB:Number = 200 / 255; - - private static const _programs:Dictionary = new Dictionary(); - - private static const _lightFragmentProcedures:Dictionary = new Dictionary(); - - private static const _passVaryingsProcedure:name_114 = new name_114(["#v0=vPosition","#v1=vViewVector","#c0=cCameraPosition","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"]); - - private static const _passTBNRightProcedure:name_114 = method_123(true); - - private static const _passTBNLeftProcedure:name_114 = method_123(false); - - private static const _ambientLightProcedure:name_114 = new name_114(["#c0=cSurface","mov o0, i0","mov o1, c0.xxxx"],"ambientLightProcedure"); - - private static const _setGlossinessFromConstantProcedure:name_114 = new name_114(["#c0=cSurface","mov o0.w, c0.y"],"setGlossinessFromConstantProcedure"); - - private static const _setGlossinessFromTextureProcedure:name_114 = new name_114(["#v0=vUV","#c0=cSurface","#s0=sGlossiness","tex t0, v0, s0 <2d, repeat, linear, miplinear>","mul o0.w, t0.x, c0.y"],"setGlossinessFromTextureProcedure"); - - private static const _getNormalAndViewTangentProcedure:name_114 = new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal","#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm t1.xyz, v0.xyz","dp3 o0.x, t0.xyz, t1.xyz","nrm t1.xyz, v1.xyz","dp3 o0.y, t0.xyz, t1.xyz","nrm t1.xyz, v2.xyz","dp3 o0.z, t0.xyz, t1.xyz","nrm o0.xyz, o0.xyz","nrm o1.xyz, v4"],"getNormalAndViewTangentProcedure"); - - private static const _getNormalAndViewObjectProcedure:name_114 = new name_114(["#v3=vUV","#v4=vViewVector","#c0=cAmbientColor","#s0=sBump","tex t0, v3, s0 <2d,repeat,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","nrm o0.xyz, t0.xyz","nrm o1.xyz, v4"],"getNormalAndViewObjectProcedure"); - - private static const _applySpecularProcedure:name_114 = new name_114(["#v0=vUV","#s0=sSpecular","tex t0, v0, s0 <2d, repeat,linear,miplinear>","mul o0.xyz, o0.xyz, t0.xyz"],"applySpecularProcedure"); - - private static const _mulLightingProcedure:name_114 = new name_114(["#s0=sTexture","#v0=vUV","#c0=cSurface","tex t0, v0, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t0.xyz, i0.xyz","mul t1.xyz, i1.xyz, c0.z","add t0.xyz, t0.xyz, t1.xyz","mov o0, t0"],"mulLightingProcedure"); - - private static const passSimpleFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst"); - - private static const outputWithSimpleFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mul t0.xyz, c0.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithSimpleFog"); - - private static const postPassAdvancedFogConstProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst"); - - private static const outputWithAdvancedFogProcedure:name_114 = new name_114(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul i0.xyz, i0.xyz, t0.y","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t0.xyz, t1.xyz, t0.x","add i0.xyz, i0.xyz, t0.xyz","mov o0, i0"],"outputWithAdvancedFog"); - - alternativa3d var var_54:Boolean = false; - - alternativa3d var outputAlpha:name_114 = new name_114(["#c0=cSurface","mov i0.w, c0.w","mov o0, i0"],"outputAlpha"); - - alternativa3d var outputDiffuseAlpha:name_114 = new name_114(["#c0=cSurface","mul i0.w, i0.w, c0.w","mov o0, i0"],"outputDiffuseAlpha"); - - alternativa3d var outputOpacity:name_114 = new name_114(["#c0=cSurface","#s0=sOpacity","#v0=vUV","tex t0, v0, s0 <2d, repeat,linear,miplinear>","mul i0.w, t0.x, c0.w","mov o0, i0"],"outputOpacity"); - - public var normalMap:name_129; - - private var var_53:int = 0; - - public var specularMap:name_129; - - public var glossinessMap:name_129; - - public var glossiness:Number = 100; - - public var var_25:Number = 1; - - public function class_9(diffuseMap:name_129, normalMap:name_129, specularMap:name_129 = null, glossinessMap:name_129 = null, opacityMap:name_129 = null) - { - super(diffuseMap); - this.normalMap = normalMap; - this.specularMap = specularMap; - this.glossinessMap = glossinessMap; - this.opacityMap = opacityMap; - } - - private static function method_123(right:Boolean) : name_114 - { - var crsInSpace:String = right ? "crs t1.xyz, i0, i1" : "crs t1.xyz, i1, i0"; - return new name_114(["#v0=vTangent","#v1=vBinormal","#v2=vNormal",crsInSpace,"mul t1.xyz, t1.xyz, i0.w","mov v0.x, i0.x","mov v0.y, t1.x","mov v0.z, i1.x","mov v0.w, i1.w","mov v1.x, i0.y","mov v1.y, t1.y","mov v1.z, i1.y","mov v1.w, i1.w","mov v2.x, i0.z","mov v2.y, t1.z","mov v2.z, i1.z","mov v2.w, i1.w"],"passTBNProcedure"); - } - - public function get method_124() : int - { - return this.var_53; - } - - public function set method_124(value:int) : void - { - if(value != name_204.TANGENT_RIGHT_HANDED && value != name_204.TANGENT_LEFT_HANDED && value != name_204.OBJECT) - { - throw new ArgumentError("Value must be a constant from the NormalMapSpace class"); - } - this.var_53 = value; - } - - alternativa3d function getPassUVProcedure() : name_114 - { - return alternativa3d::_passUVProcedure; - } - - alternativa3d function setPassUVProcedureConstants(destination:name_135, vertexLinker:name_121) : void - { - } - - private function method_75(object:name_78, lights:Vector., directional:DirectionalLight, lightsLength:int) : name_127 - { - var i:int = 0; - var outputProcedure:name_114 = null; - var procedure:name_114 = null; - var nrmProcedure:name_114 = null; - var shadowProc:name_114 = null; - var dirMulShadowProcedure:name_114 = null; - var light:name_116 = null; - var lightFragmentProcedure:name_114 = null; - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - fragmentLinker.name_120("tTotalLight"); - fragmentLinker.name_120("tTotalHighLight"); - fragmentLinker.name_120("tNormal"); - fragmentLinker.name_120("cAmbientColor",name_115.CONSTANT); - fragmentLinker.name_123(_ambientLightProcedure); - fragmentLinker.name_118(_ambientLightProcedure,"cAmbientColor"); - fragmentLinker.name_125(_ambientLightProcedure,"tTotalLight","tTotalHighLight"); - var positionVar:String = "aPosition"; - var normalVar:String = "aNormal"; - var tangentVar:String = "aTangent"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - vertexLinker.name_120(tangentVar,name_115.ATTRIBUTE); - vertexLinker.name_120(normalVar,name_115.ATTRIBUTE); - if(object.alternativa3d::transformProcedure != null) - { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); - } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - vertexLinker.name_123(this.alternativa3d::getPassUVProcedure()); - if(this.glossinessMap != null) - { - fragmentLinker.name_123(_setGlossinessFromTextureProcedure); - fragmentLinker.name_125(_setGlossinessFromTextureProcedure,"tTotalHighLight"); - } - else - { - fragmentLinker.name_123(_setGlossinessFromConstantProcedure); - fragmentLinker.name_125(_setGlossinessFromConstantProcedure,"tTotalHighLight"); - } - if(lightsLength > 0) - { - if(object.alternativa3d::deltaTransformProcedure != null) - { - vertexLinker.name_120("tTransformedNormal"); - procedure = object.alternativa3d::deltaTransformProcedure.name_143(); - vertexLinker.name_123(procedure); - vertexLinker.name_118(procedure,normalVar); - vertexLinker.name_125(procedure,"tTransformedNormal"); - normalVar = "tTransformedNormal"; - vertexLinker.name_120("tTransformedTangent"); - procedure = object.alternativa3d::deltaTransformProcedure.name_143(); - vertexLinker.name_123(procedure); - vertexLinker.name_118(procedure,tangentVar); - vertexLinker.name_125(procedure,"tTransformedTangent"); - tangentVar = "tTransformedTangent"; - } - vertexLinker.name_123(_passVaryingsProcedure); - vertexLinker.name_118(_passVaryingsProcedure,positionVar); - fragmentLinker.name_120("tViewVector"); - if(this.var_53 == name_204.TANGENT_RIGHT_HANDED || this.var_53 == name_204.TANGENT_LEFT_HANDED) - { - nrmProcedure = this.var_53 == name_204.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; - vertexLinker.name_123(nrmProcedure); - vertexLinker.name_118(nrmProcedure,tangentVar,normalVar); - fragmentLinker.name_123(_getNormalAndViewTangentProcedure); - fragmentLinker.name_125(_getNormalAndViewTangentProcedure,"tNormal","tViewVector"); - } - else - { - fragmentLinker.name_123(_getNormalAndViewObjectProcedure); - fragmentLinker.name_125(_getNormalAndViewObjectProcedure,"tNormal","tViewVector"); - } - if(directional != null) - { - vertexLinker.name_123(directional.shadow.getVShader()); - shadowProc = directional.shadow.getFShader(); - fragmentLinker.name_123(shadowProc); - fragmentLinker.name_125(shadowProc,"tTotalLight"); - dirMulShadowProcedure = _lightFragmentProcedures[directional.shadow]; - if(dirMulShadowProcedure == null) - { - dirMulShadowProcedure = new name_114(); - this.method_76(dirMulShadowProcedure,directional,true); - } - fragmentLinker.name_123(dirMulShadowProcedure); - fragmentLinker.name_118(dirMulShadowProcedure,"tNormal","tViewVector","tTotalLight","cAmbientColor"); - fragmentLinker.name_125(dirMulShadowProcedure,"tTotalLight","tTotalHighLight"); - } - for(i = 0; i < lightsLength; ) - { - light = lights[i]; - if(light != directional) - { - lightFragmentProcedure = _lightFragmentProcedures[light]; - if(lightFragmentProcedure == null) - { - lightFragmentProcedure = new name_114(); - lightFragmentProcedure.name = "light" + i.toString(); - if(light is DirectionalLight) - { - this.method_76(lightFragmentProcedure,light,false); - lightFragmentProcedure.name += "Directional"; - } - else if(light is OmniLight) - { - lightFragmentProcedure.name_140(["#c0=c" + light.alternativa3d::name_138 + "Position","#c1=c" + light.alternativa3d::name_138 + "Color","#c2=c" + light.alternativa3d::name_138 + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, o1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx","mul t1.xyz, t0.xyz, t1.w","add o1.xyz, o1.xyz, t1.xyz","mul t0.xyz, t0.xyz, t0.www","add o0.xyz, o0.xyz, t0.xyz"]); - lightFragmentProcedure.name += "Omni"; - } - else if(light is SpotLight) - { - lightFragmentProcedure.name_140(["#c0=c" + light.alternativa3d::name_138 + "Position","#c1=c" + light.alternativa3d::name_138 + "Color","#c2=c" + light.alternativa3d::name_138 + "Radius","#c3=c" + light.alternativa3d::name_138 + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x, t0, i0.xyz","sqt t0.w, t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); - lightFragmentProcedure.name += "Spot"; - } - } - fragmentLinker.name_123(lightFragmentProcedure); - fragmentLinker.name_118(lightFragmentProcedure,"tNormal","tViewVector"); - fragmentLinker.name_125(lightFragmentProcedure,"tTotalLight","tTotalHighLight"); - } - i++; - } - } - if(this.specularMap != null) - { - fragmentLinker.name_123(_applySpecularProcedure); - fragmentLinker.name_125(_applySpecularProcedure,"tTotalHighLight"); - outputProcedure = _applySpecularProcedure; - } - fragmentLinker.name_120("outColor"); - fragmentLinker.name_123(_mulLightingProcedure); - fragmentLinker.name_118(_mulLightingProcedure,"tTotalLight","tTotalHighLight"); - fragmentLinker.name_125(_mulLightingProcedure,"outColor"); - if(var_21) - { - fragmentLinker.name_123(this.alternativa3d::outputDiffuseAlpha); - fragmentLinker.name_118(this.alternativa3d::outputDiffuseAlpha,"outColor"); - outputProcedure = this.alternativa3d::outputDiffuseAlpha; - } - else if(opacityMap != null) - { - fragmentLinker.name_123(this.alternativa3d::outputOpacity); - fragmentLinker.name_118(this.alternativa3d::outputOpacity,"outColor"); - outputProcedure = this.alternativa3d::outputOpacity; - } - else - { - fragmentLinker.name_123(this.alternativa3d::outputAlpha); - fragmentLinker.name_118(this.alternativa3d::outputAlpha,"outColor"); - outputProcedure = this.alternativa3d::outputAlpha; - } - if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED) - { - fragmentLinker.name_125(outputProcedure,"outColor"); - } - if(alternativa3d::fogMode == alternativa3d::SIMPLE) - { - vertexLinker.name_123(passSimpleFogConstProcedure); - vertexLinker.name_118(passSimpleFogConstProcedure,positionVar); - fragmentLinker.name_123(outputWithSimpleFogProcedure); - fragmentLinker.name_118(outputWithSimpleFogProcedure,"outColor"); - } - else if(alternativa3d::fogMode == alternativa3d::ADVANCED) - { - vertexLinker.name_120("tProjected"); - vertexLinker.name_125(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.name_123(postPassAdvancedFogConstProcedure); - vertexLinker.name_118(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); - fragmentLinker.name_123(outputWithAdvancedFogProcedure); - fragmentLinker.name_118(outputWithAdvancedFogProcedure,"outColor"); - } - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); - } - - private function method_76(procedure:name_114, light:name_116, useShadow:Boolean) : void - { - var source:Array = ["#c0=c" + light.alternativa3d::name_138 + "Direction","#c1=c" + light.alternativa3d::name_138 + "Color","add t0.xyz, i1.xyz, c0.xyz","mov t0.w, c0.w","nrm t0.xyz,t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, o1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x"]; - if(useShadow) - { - source.push("mul t0.x, t0.x, i2.x"); - source.push("mul t0.xyz, c1.xyz, t0.xxx"); - source.push("mov o0.xyz, t0.xyz"); - source.push("add o0.xyz, o0.xyz, i3.xyz"); - source.push("mul t0.w, i2.x, t0.w"); - source.push("mul o1.xyz, c1.xyz, t0.www"); - } - else - { - source.push("mul t0.xyz, c1.xyz, t0.xxxx"); - source.push("add o0, o0, t0.xyz"); - source.push("mul t0.xyz, c1.xyz, t0.w"); - source.push("add o1.xyz, o1.xyz, t0.xyz"); - } - procedure.name_140(source); - } - - override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void - { - super.alternativa3d::fillResources(resources,resourceType); - if(this.normalMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) - { - resources[this.normalMap] = true; - } - if(opacityMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(opacityMap)) as Class,resourceType))) - { - resources[opacityMap] = true; - } - if(this.glossinessMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.glossinessMap)) as Class,resourceType))) - { - resources[this.glossinessMap] = true; - } - if(this.specularMap != null && Boolean(name_28.alternativa3d::name_131(getDefinitionByName(getQualifiedClassName(this.specularMap)) as Class,resourceType))) - { - resources[this.specularMap] = true; - } - } - - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void - { - var program:name_127 = null; - var i:int = 0; - var light:name_116 = null; - var directional:DirectionalLight = null; - var camTransform:name_139 = null; - var transform:name_139 = null; - var rScale:Number = NaN; - var len:Number = NaN; - var omni:OmniLight = null; - var spot:SpotLight = null; - var falloff:Number = NaN; - var hotspot:Number = NaN; - var lm:name_139 = null; - var dist:Number = NaN; - var cLocal:name_139 = null; - var halfW:Number = NaN; - var leftX:Number = NaN; - var leftY:Number = NaN; - var rightX:Number = NaN; - var rightY:Number = NaN; - var angle:Number = NaN; - var dx:Number = NaN; - var dy:Number = NaN; - var lens:Number = NaN; - var uScale:Number = NaN; - var uRight:Number = NaN; - var bmd:BitmapData = null; - if(diffuseMap == null || this.normalMap == null || diffuseMap.alternativa3d::_texture == null || this.normalMap.alternativa3d::_texture == null) - { - return; - } - if(!var_21 && opacityMap != null && opacityMap.alternativa3d::_texture == null) - { - return; - } - if(this.glossinessMap != null && this.glossinessMap.alternativa3d::_texture == null) - { - return; - } - if(this.specularMap != null && this.specularMap.alternativa3d::_texture == null) - { - return; - } - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TEXCOORDS[0]); - var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.NORMAL); - var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.TANGENT4); - if(positionBuffer == null || uvBuffer == null) - { - return; - } - var key:String = alternativa3d::fogMode.toString() + this.var_53.toString() + (this.glossinessMap != null ? "G" : "g") + (opacityMap != null ? "O" : "o") + (this.specularMap != null ? "S" : "s") + (var_21 ? "D" : "d"); - for(i = 0; i < lightsLength; i++) - { - light = lights[i]; - if(light is DirectionalLight && directional == null && DirectionalLight(light).shadow != null) - { - directional = DirectionalLight(light); - key += "S"; - } - key += light.alternativa3d::name_138; - } - var programs:Dictionary = _programs[object.alternativa3d::transformProcedure]; - if(programs == null) - { - programs = new Dictionary(false); - _programs[object.alternativa3d::transformProcedure] = programs; - program = this.method_75(object,lights,directional,lightsLength); - program.upload(camera.alternativa3d::context3D); - programs[key] = program; - } - else - { - program = programs[key]; - if(program == null) - { - program = this.method_75(object,lights,directional,lightsLength); - program.upload(camera.alternativa3d::context3D); - programs[key] = program; - } - } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TEXCOORDS[0]],name_126.alternativa3d::FORMATS[name_126.TEXCOORDS[0]]); - object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_205(program.fragmentShader.getVariableIndex("cAmbientColor"),camera.alternativa3d::ambient,1); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.var_25,alpha); - if(lightsLength > 0) - { - if(this.var_53 == name_204.TANGENT_RIGHT_HANDED || this.var_53 == name_204.TANGENT_LEFT_HANDED) - { - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.NORMAL],name_126.alternativa3d::FORMATS[name_126.NORMAL]); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentsBuffer,geometry.alternativa3d::_attributesOffsets[name_126.TANGENT4],name_126.alternativa3d::FORMATS[name_126.TANGENT4]); - } - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sBump"),this.normalMap.alternativa3d::_texture); - camTransform = object.alternativa3d::cameraToLocalTransform; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cCameraPosition"),camTransform.d,camTransform.h,camTransform.l); - for(i = 0; i < lightsLength; ) - { - light = lights[i]; - if(light is DirectionalLight) - { - transform = light.alternativa3d::name_141; - len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); - } - else if(light is OmniLight) - { - omni = light as OmniLight; - transform = light.alternativa3d::name_141; - rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); - rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); - rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); - rScale /= 3; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); - } - else if(light is SpotLight) - { - spot = light as SpotLight; - transform = light.alternativa3d::name_141; - rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); - rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); - rScale += len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - rScale /= 3; - falloff = Number(Math.cos(spot.falloff * 0.5)); - hotspot = Number(Math.cos(spot.hotspot * 0.5)); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Radius"),spot.attenuationEnd * rScale - spot.attenuationBegin * rScale,spot.attenuationBegin * rScale,hotspot == falloff ? 0.000001 : hotspot - falloff,falloff); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_138 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); - } - if(directional != null) - { - directional.shadow.applyShader(drawUnit,program,object,camera); - } - i++; - } - } - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture); - if(!var_21 && opacityMap != null) - { - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture); - } - if(this.glossinessMap != null) - { - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sGlossiness"),this.glossinessMap.alternativa3d::_texture); - } - if(this.specularMap != null) - { - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sSpecular"),this.specularMap.alternativa3d::_texture); - } - this.alternativa3d::setPassUVProcedureConstants(drawUnit,program.vertexShader); - if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED) - { - lm = object.alternativa3d::localToCameraTransform; - dist = alternativa3d::fogFar - alternativa3d::fogNear; - drawUnit.alternativa3d::name_144(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - alternativa3d::fogNear) / dist); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogRange"),alternativa3d::fogMaxDensity,1,0,1 - alternativa3d::fogMaxDensity); - } - if(alternativa3d::fogMode == alternativa3d::SIMPLE) - { - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB); - } - if(alternativa3d::fogMode == alternativa3d::ADVANCED) - { - if(alternativa3d::fogTexture == null) - { - bmd = new BitmapData(32,1,false,16711680); - for(i = 0; i < 32; i++) - { - bmd.setPixel(i,0,i / 32 * 255 << 16); - } - alternativa3d::fogTexture = new name_93(bmd); - alternativa3d::fogTexture.upload(camera.alternativa3d::context3D); - } - cLocal = camera.alternativa3d::localToGlobalTransform; - halfW = camera.view.width / 2; - leftX = -halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; - leftY = -halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; - rightX = halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c; - rightY = halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g; - angle = Math.atan2(leftY,leftX) - Math.PI / 2; - if(angle < 0) - { - angle += Math.PI * 2; - } - dx = rightX - leftX; - dy = rightY - leftY; - lens = Number(Math.sqrt(dx * dx + dy * dy)); - leftX /= lens; - leftY /= lens; - rightX /= lens; - rightY /= lens; - uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; - uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); - drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),alternativa3d::fogTexture.alternativa3d::_texture); - } - if(this.alternativa3d::var_54) - { - if(drawUnit.alternativa3d::object == null) - { - throw new Error(""); - } - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); - } - else if(var_21 || opacityMap != null || alpha < 1) - { - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); - } - else - { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); - } - } - } -} - diff --git a/src/package_4/name_313.as b/src/package_4/name_313.as deleted file mode 100644 index 3b42244..0000000 --- a/src/package_4/name_313.as +++ /dev/null @@ -1,113 +0,0 @@ -package package_4 -{ - import alternativa.engine3d.alternativa3d; - import flash.display3D.Context3DBlendFactor; - import flash.display3D.Context3DProgramType; - import flash.display3D.VertexBuffer3D; - import flash.utils.Dictionary; - import package_19.name_117; - import package_21.name_116; - import package_21.name_124; - import package_21.name_126; - import package_21.name_128; - import package_21.name_135; - import package_21.name_78; - import package_28.name_119; - import package_30.name_114; - import package_30.name_115; - import package_30.name_121; - - use namespace alternativa3d; - - public class name_313 extends class_4 - { - private static var outColorProcedure:name_114 = new name_114(["#c0=cColor","mov o0, c0"],"outColorProcedure"); - - private static var _programs:Dictionary = new Dictionary(); - - public var alpha:Number = 1; - - private var red:Number; - - private var green:Number; - - private var blue:Number; - - public function name_313(color:uint = 8355711, alpha:Number = 1) - { - super(); - this.color = color; - this.alpha = alpha; - alternativa3d::priority = 1; - } - - public function get color() : uint - { - return (this.red * 255 << 16) + (this.green * 255 << 8) + this.blue * 255; - } - - public function set color(value:uint) : void - { - this.red = (value >> 16 & 0xFF) / 255; - this.green = (value >> 8 & 0xFF) / 255; - this.blue = (value & 0xFF) / 255; - } - - private function method_75(object:name_78) : name_127 - { - var vertexLinker:name_121 = new name_121(Context3DProgramType.VERTEX); - var positionVar:String = "aPosition"; - vertexLinker.name_120(positionVar,name_115.ATTRIBUTE); - if(object.alternativa3d::transformProcedure != null) - { - positionVar = alternativa3d::method_74(object.alternativa3d::transformProcedure,vertexLinker); - } - vertexLinker.name_123(alternativa3d::_projectProcedure); - vertexLinker.name_118(alternativa3d::_projectProcedure,positionVar); - var fragmentLinker:name_121 = new name_121(Context3DProgramType.FRAGMENT); - fragmentLinker.name_123(outColorProcedure); - fragmentLinker.name_133(vertexLinker); - return new name_127(vertexLinker,fragmentLinker); - } - - override alternativa3d function collectDraws(camera:name_124, surface:name_117, geometry:name_119, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void - { - var object:name_78 = surface.alternativa3d::object; - var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_126.POSITION); - if(positionBuffer == null) - { - return; - } - var program:name_127 = _programs[object.alternativa3d::transformProcedure]; - if(program == null) - { - program = this.method_75(object); - program.upload(camera.alternativa3d::context3D); - _programs[object.alternativa3d::transformProcedure] = program; - } - var drawUnit:name_135 = camera.alternativa3d::renderer.alternativa3d::name_137(object,program.program,geometry.alternativa3d::name_132,surface.indexBegin,surface.numTriangles,program); - drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_126.POSITION],name_126.alternativa3d::FORMATS[name_126.POSITION]); - object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::name_136(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::name_134(program.fragmentShader.getVariableIndex("cColor"),this.red,this.green,this.blue,this.alpha); - if(this.alpha < 1) - { - drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; - drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.TRANSPARENT_SORT); - } - else - { - camera.alternativa3d::renderer.alternativa3d::name_130(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : name_128.OPAQUE); - } - } - - override public function clone() : class_4 - { - var res:name_313 = new name_313(this.color,this.alpha); - res.clonePropertiesFrom(this); - return res; - } - } -} - diff --git a/src/package_40/class_7.as b/src/package_40/class_7.as deleted file mode 100644 index b7d0893..0000000 --- a/src/package_40/class_7.as +++ /dev/null @@ -1,31 +0,0 @@ -package package_40 -{ - import flash.events.EventDispatcher; - - public class class_7 extends EventDispatcher - { - private var var_33:name_170; - - public function class_7() - { - super(); - } - - public function run() : void - { - throw new Error("Not implemented"); - } - - internal function set method_101(param1:name_170) : void - { - this.var_33 = param1; - } - - final protected function method_102() : void - { - dispatchEvent(new name_169(name_169.TASK_COMPLETE,1,1)); - this.var_33.taskComplete(this); - } - } -} - diff --git a/src/package_40/name_170.as b/src/package_40/name_170.as deleted file mode 100644 index 90b1407..0000000 --- a/src/package_40/name_170.as +++ /dev/null @@ -1,64 +0,0 @@ -package package_40 -{ - import flash.events.Event; - import flash.events.EventDispatcher; - - public class name_170 extends EventDispatcher - { - private var tasks:Vector.; - - private var var_192:int; - - public function name_170() - { - super(); - this.tasks = new Vector.(); - } - - public function get length() : uint - { - return this.tasks.length; - } - - public function addTask(param1:class_7) : void - { - if(this.tasks.indexOf(param1) < 0) - { - this.tasks.push(param1); - param1.method_101 = this; - } - } - - public function run() : void - { - if(this.tasks.length > 0) - { - this.var_192 = 0; - this.method_309(); - } - else - { - dispatchEvent(new Event(Event.COMPLETE)); - } - } - - private function method_309() : void - { - this.tasks[this.var_192].run(); - } - - internal function taskComplete(param1:class_7) : void - { - dispatchEvent(new name_169(name_169.TASK_COMPLETE,1,this.tasks.length)); - if(++this.var_192 < this.tasks.length) - { - this.method_309(); - } - else - { - dispatchEvent(new Event(Event.COMPLETE)); - } - } - } -} - diff --git a/src/package_41/name_173.as b/src/package_41/name_173.as deleted file mode 100644 index ab0bdcf..0000000 --- a/src/package_41/name_173.as +++ /dev/null @@ -1,101 +0,0 @@ -package package_41 -{ - import flash.events.Event; - import flash.media.Sound; - import alternativa.tanks.config.ResourceLoader; - import alternativa.tanks.config.Config; - import alternativa.tanks.config.StringUtils; - import package_40.name_169; - import package_40.name_170; - - public class name_173 extends ResourceLoader - { - private var sounds:Object = {}; - - private var var_34:name_170; - - public function name_173(param1:Config) - { - super("Sounds library loader",param1); - } - - public function name_297(param1:String) : Sound - { - return this.sounds[param1]; - } - - public function method_313(param1:String, param2:Sound) : void - { - this.sounds[param1] = param2; - } - - override public function run() : void - { - var _loc3_:XML = null; - if(config.xml.sounds == null) - { - method_102(); - return; - } - var _loc1_:XML = config.xml.sounds[0]; - var _loc2_:String = StringUtils.name_460(_loc1_.@baseUrl); - this.var_34 = new name_170(); - for each(_loc3_ in _loc1_.sound) - { - this.var_34.addTask(new SoundLoader(_loc3_.@id,_loc2_ + _loc3_.@file,this)); - } - this.var_34.addEventListener(name_169.TASK_COMPLETE,this.method_312); - this.var_34.addEventListener(Event.COMPLETE,this.method_107); - this.var_34.run(); - } - - private function method_312(param1:name_169) : void - { - dispatchEvent(new name_169(name_169.TASK_PROGRESS,1,this.var_34.length)); - } - - private function method_107(param1:Event) : void - { - this.var_34 = null; - method_102(); - } - } -} - -import flash.events.Event; -import flash.events.EventDispatcher; -import flash.media.Sound; -import flash.net.URLRequest; -import package_40.class_7; - -class SoundLoader extends class_7 -{ - private var id:String; - - private var url:String; - - private var library:name_173; - - private var loader:Sound; - - public function SoundLoader(param1:String, param2:String, param3:name_173) - { - super(); - this.id = param1; - this.url = param2; - this.library = param3; - } - - override public function run() : void - { - this.loader = new Sound(); - this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete); - this.loader.load(new URLRequest(this.url)); - } - - private function onLoadingComplete(param1:Event) : void - { - this.library.method_313(this.id,this.loader); - method_102(); - } -} diff --git a/src/package_41/name_461.as b/src/package_41/name_461.as deleted file mode 100644 index 5e76444..0000000 --- a/src/package_41/name_461.as +++ /dev/null @@ -1,44 +0,0 @@ -package package_41 -{ - import flash.events.Event; - import flash.events.EventDispatcher; - import package_112.class_33; - import package_40.name_170; - import package_71.name_333; - - [Event(name="complete",type="flash.events.Event")] - public class name_461 extends EventDispatcher - { - public var parts:Vector.; - - private var var_34:name_170; - - public function name_461() - { - super(); - } - - public function load(param1:String, param2:XMLList, param3:class_33) : void - { - var _loc4_:XML = null; - this.parts = new Vector.(); - this.var_34 = new name_170(); - for each(_loc4_ in param2) - { - this.var_34.addTask(param3.method_648(param1,_loc4_,this.parts)); - } - this.var_34.addEventListener(Event.COMPLETE,this.method_107); - this.var_34.run(); - } - - private function method_107(param1:Event) : void - { - this.var_34 = null; - if(hasEventListener(Event.COMPLETE)) - { - dispatchEvent(new Event(Event.COMPLETE)); - } - } - } -} - diff --git a/src/package_42/name_177.as b/src/package_42/name_177.as deleted file mode 100644 index 6c169be..0000000 --- a/src/package_42/name_177.as +++ /dev/null @@ -1,133 +0,0 @@ -package package_42 -{ - import alternativa.tanks.game.GameTask; - import alternativa.tanks.game.GameKernel; - - public class name_177 extends GameTask implements name_184 - { - private var var_214:Vector.; - - private var var_215:int; - - private var running:Boolean; - - private var gameKernel:GameKernel; - - public function name_177(priority:int, gameKernel:GameKernel) - { - super(priority); - this.gameKernel = gameKernel; - this.var_214 = new Vector.(); - } - - public function addLogicUnit(logicUnit:name_477) : void - { - var actionAddUnit:ActionAddUnit = null; - if(this.running) - { - actionAddUnit = ActionAddUnit(this.gameKernel.method_108().name_110(ActionAddUnit)); - this.method_329(actionAddUnit,logicUnit); - } - else - { - if(this.var_214.indexOf(logicUnit) >= 0) - { - throw new Error("Logic unit already exists"); - } - var _loc3_:* = this.var_215++; - this.var_214[_loc3_] = logicUnit; - } - } - - public function removeLogicUnit(logicUnit:name_477) : void - { - var actionRemoveUnit:ActionRemoveUnit = null; - var index:int = 0; - if(this.running) - { - actionRemoveUnit = ActionRemoveUnit(this.gameKernel.method_108().name_110(ActionRemoveUnit)); - this.method_329(actionRemoveUnit,logicUnit); - } - else - { - index = int(this.var_214.indexOf(logicUnit)); - if(index < 0) - { - throw new Error("Logic unit not found"); - } - this.var_214[index] = this.var_214[--this.var_215]; - this.var_214[this.var_215] = null; - } - } - - override public function run() : void - { - this.running = true; - for(var i:int = 0; i < this.var_215; i++) - { - this.var_214[i].runLogic(); - } - this.running = false; - } - - private function method_329(action:DeferredAction, unit:name_477) : void - { - action.system = this; - action.unit = unit; - this.gameKernel.method_111(action); - } - } -} - -import alternativa.tanks.game.utils.objectpool.PooledObject; -import alternativa.tanks.game.utils.objectpool.ObjectPool; -import package_43.name_190; - -class DeferredAction extends name_190 -{ - public var system:name_184; - - public var unit:name_477; - - public function DeferredAction(objectPool:ObjectPool) - { - super(objectPool); - } - - override public function execute() : void - { - this.doExecute(); - this.system = null; - this.unit = null; - } - - protected function doExecute() : void - { - } -} - -class ActionAddUnit extends DeferredAction -{ - public function ActionAddUnit(objectPool:ObjectPool) - { - super(objectPool); - } - - override protected function doExecute() : void - { - system.addLogicUnit(unit); - } -} - -class ActionRemoveUnit extends DeferredAction -{ - public function ActionRemoveUnit(objectPool:ObjectPool) - { - super(objectPool); - } - - override protected function doExecute() : void - { - system.removeLogicUnit(unit); - } -} diff --git a/src/package_42/name_184.as b/src/package_42/name_184.as deleted file mode 100644 index f3f37e6..0000000 --- a/src/package_42/name_184.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_42 -{ - public interface name_184 - { - function addLogicUnit(param1:name_477) : void; - - function removeLogicUnit(param1:name_477) : void; - } -} - diff --git a/src/package_42/name_477.as b/src/package_42/name_477.as deleted file mode 100644 index 1198e9a..0000000 --- a/src/package_42/name_477.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_42 -{ - public interface name_477 - { - function runLogic() : void; - } -} - diff --git a/src/package_44/name_178.as b/src/package_44/name_178.as deleted file mode 100644 index ac89635..0000000 --- a/src/package_44/name_178.as +++ /dev/null @@ -1,353 +0,0 @@ -package package_44 -{ - import flash.utils.getTimer; - import alternativa.tanks.game.GameTask; - import package_113.name_469; - import alternativa.tanks.game.utils.objectpool.ObjectPoolManager; - import package_43.name_190; - import package_45.name_182; - import package_46.name_194; - import package_76.name_235; - import package_86.name_466; - import package_86.name_468; - import package_90.name_386; - import package_92.name_467; - - public class name_178 extends GameTask - { - private static var USE_GRID_COLLISION_DETECTOR:Boolean = true; - - public var interpolationCoeff:Number; - - private var physicsStep:int = 33; - - private var physicsScene:name_467; - - private var var_202:Vector.; - - private var var_203:int; - - private var var_200:Vector.; - - private var var_205:int; - - private var var_201:Vector.; - - private var var_204:int; - - private var var_207:name_469; - - private var var_206:int; - - private var running:Boolean; - - private var var_10:name_190; - - private var objectPoolManager:ObjectPoolManager; - - public function name_178(priority:int, objectPoolManager:ObjectPoolManager) - { - super(priority); - this.objectPoolManager = objectPoolManager; - this.var_202 = new Vector.(); - this.var_200 = new Vector.(); - this.var_201 = new Vector.(); - this.physicsScene = new name_467(); - this.physicsScene.name_475 = true; - this.physicsScene.name_471 = 5; - this.physicsScene.name_474 = 100; - this.physicsScene.gravity = new name_194(0,0,-1000); - if(USE_GRID_COLLISION_DETECTOR) - { - this.var_207 = new name_469(); - this.physicsScene.collisionDetector = this.var_207; - } - else - { - this.physicsScene.collisionDetector = new name_466(); - } - } - - override protected function onPause() : void - { - this.var_206 = getTimer(); - } - - override protected function onResume() : void - { - this.var_206 = getTimer() - this.var_206; - this.physicsScene.time += this.var_206; - } - - public function method_333() : name_469 - { - return this.var_207; - } - - public function method_331() : int - { - return this.physicsStep; - } - - public function name_246() : name_467 - { - return this.physicsScene; - } - - public function name_382(collisionPrimitives:Vector.) : void - { - var gridCellSize:Number = NaN; - var collisionDetector:name_466 = null; - var bb:name_386 = null; - var size:Number = NaN; - if(USE_GRID_COLLISION_DETECTOR) - { - gridCellSize = 800; - this.var_207.name_472(gridCellSize,collisionPrimitives); - } - else - { - collisionDetector = name_466(this.physicsScene.collisionDetector); - bb = new name_386(); - size = 20000; - bb.method_140(-size,-size,-size,size,size,size); - collisionDetector.name_473(collisionPrimitives,bb); - } - } - - public function addControllerBefore(controller:name_465) : void - { - var deferredActionAddBefore:DeferredActionAddBefore = null; - if(this.running) - { - deferredActionAddBefore = DeferredActionAddBefore(this.objectPoolManager.name_110(DeferredActionAddBefore)); - this.method_329(deferredActionAddBefore,controller); - } - else - { - if(this.var_202.indexOf(controller) >= 0) - { - throw new Error("Controller " + controller + " already exists"); - } - var _loc3_:* = this.var_203++; - this.var_202[_loc3_] = controller; - } - } - - public function addControllerAfter(controller:name_465) : void - { - var deferredActionAddAfter:DeferredActionAddAfter = null; - if(this.running) - { - deferredActionAddAfter = DeferredActionAddAfter(this.objectPoolManager.name_110(DeferredActionAddAfter)); - this.method_329(deferredActionAddAfter,controller); - } - else - { - if(this.var_200.indexOf(controller) >= 0) - { - throw new Error("Controller " + controller + " already exists"); - } - var _loc3_:* = this.var_205++; - this.var_200[_loc3_] = controller; - } - } - - public function method_330(controller:name_465) : void - { - if(this.var_201.indexOf(controller) >= 0) - { - throw new Error("Controller " + controller + " already exists"); - } - var _loc2_:* = this.var_204++; - this.var_201[_loc2_] = controller; - } - - public function removeControllerBefore(controller:name_465) : void - { - var deferredActionRemoveBefore:DeferredActionRemoveBefore = null; - var index:int = 0; - if(this.running) - { - deferredActionRemoveBefore = DeferredActionRemoveBefore(this.objectPoolManager.name_110(DeferredActionRemoveBefore)); - this.method_329(deferredActionRemoveBefore,controller); - } - else - { - index = int(this.var_202.indexOf(controller)); - if(index < 0) - { - throw new Error("Controller " + controller + " not found"); - } - this.var_202[index] = this.var_202[--this.var_203]; - this.var_202[this.var_203] = null; - } - } - - public function removeControllerAfter(controller:name_465) : void - { - var deferredActionRemoveAfter:DeferredActionRemoveAfter = null; - var index:int = 0; - if(this.running) - { - deferredActionRemoveAfter = DeferredActionRemoveAfter(this.objectPoolManager.name_110(DeferredActionRemoveAfter)); - this.method_329(deferredActionRemoveAfter,controller); - } - else - { - index = int(this.var_200.indexOf(controller)); - if(index < 0) - { - throw new Error("Controller " + controller + " not found"); - } - this.var_200[index] = this.var_200[--this.var_205]; - this.var_200[this.var_205] = null; - } - } - - public function method_332(controller:name_465) : void - { - var index:int = int(this.var_201.indexOf(controller)); - if(index < 0) - { - throw new Error("Controller " + controller + " not found"); - } - this.var_201[index] = this.var_201[--this.var_204]; - this.var_201[this.var_204] = null; - } - - override public function start() : void - { - this.physicsScene.time = name_182.time; - } - - override public function run() : void - { - var i:int = 0; - var controller:name_465 = null; - var action:name_190 = null; - var currentTime:int = name_182.time; - if(this.physicsScene.time < currentTime) - { - while(this.physicsScene.time < currentTime) - { - this.running = true; - name_468(this.physicsScene.collisionDetector).name_470(); - for(i = 0; i < this.var_203; i++) - { - controller = this.var_202[i]; - controller.updateBeforeSimulation(this.physicsStep); - } - this.physicsScene.update(this.physicsStep); - name_468(this.physicsScene.collisionDetector).name_470(); - for(i = 0; i < this.var_205; i++) - { - controller = this.var_200[i]; - controller.updateAfterSimulation(this.physicsStep); - } - for(this.running = false; this.var_10 != null; ) - { - action = this.var_10; - this.var_10 = this.var_10.next; - action.next = null; - action.execute(); - action.method_254(); - } - } - } - this.interpolationCoeff = 1 - (this.physicsScene.time - currentTime) / this.physicsStep; - for(i = 0; i < this.var_204; i++) - { - controller = this.var_201[i]; - controller.interpolate(this.interpolationCoeff); - } - } - - private function method_329(deferredAction:DeferredAction, controller:name_465) : void - { - deferredAction.system = this; - deferredAction.controller = controller; - deferredAction.next = this.var_10; - this.var_10 = deferredAction; - } - } -} - -import alternativa.tanks.game.utils.objectpool.PooledObject; -import alternativa.tanks.game.utils.objectpool.ObjectPool; -import package_43.name_190; - -class DeferredAction extends name_190 -{ - public var system:name_178; - - public var controller:name_465; - - public function DeferredAction(objectPool:ObjectPool) - { - super(objectPool); - } - - override public function execute() : void - { - this.doExecute(); - this.system = null; - this.controller = null; - } - - protected function doExecute() : void - { - } -} - -class DeferredActionAddBefore extends DeferredAction -{ - public function DeferredActionAddBefore(objectPool:ObjectPool) - { - super(objectPool); - } - - override protected function doExecute() : void - { - system.addControllerBefore(controller); - } -} - -class DeferredActionAddAfter extends DeferredAction -{ - public function DeferredActionAddAfter(objectPool:ObjectPool) - { - super(objectPool); - } - - override protected function doExecute() : void - { - system.addControllerAfter(controller); - } -} - -class DeferredActionRemoveBefore extends DeferredAction -{ - public function DeferredActionRemoveBefore(objectPool:ObjectPool) - { - super(objectPool); - } - - override protected function doExecute() : void - { - system.removeControllerBefore(controller); - } -} - -class DeferredActionRemoveAfter extends DeferredAction -{ - public function DeferredActionRemoveAfter(objectPool:ObjectPool) - { - super(objectPool); - } - - override protected function doExecute() : void - { - system.removeControllerAfter(controller); - } -} diff --git a/src/package_47/name_193.as b/src/package_47/name_193.as deleted file mode 100644 index 854e8cb..0000000 --- a/src/package_47/name_193.as +++ /dev/null @@ -1,158 +0,0 @@ -package package_47 -{ - import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_19.name_380; - import package_21.name_78; - import package_4.class_5; - import package_46.name_194; - import package_71.name_234; - import package_71.name_277; - import package_75.class_15; - import package_84.name_253; - import package_85.class_22; - import package_85.name_314; - import package_85.name_481; - - use namespace alternativa3d; - - public class name_193 extends EntityComponent implements class_22 - { - private static var vector:name_194 = new name_194(); - - private var turret:name_234; - - private var var_231:name_380; - - private var var_232:name_277; - - private var physicsComponent:class_15; - - private var var_233:class_5; - - private var renderSystem:RenderSystem; - - public function name_193(turret:name_234) - { - super(); - this.setTurret(turret); - } - - public function name_329() : name_78 - { - return this.var_231; - } - - override public function initComponent() : void - { - this.physicsComponent = class_15(entity.getComponentStrict(class_15)); - name_314(entity.getComponentStrict(name_314)).name_60(this); - this.method_343(); - } - - private function method_343() : void - { - var trackedChassisGraphicsComponent:name_253 = null; - if(entity != null) - { - trackedChassisGraphicsComponent = name_253(entity.getComponent(name_253)); - if(trackedChassisGraphicsComponent != null) - { - trackedChassisGraphicsComponent.name_482.addChild(this.var_231); - } - } - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.renderSystem = gameKernel.name_5(); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.removeFromScene(); - this.renderSystem = null; - } - - public function render() : void - { - if(this.turret == null) - { - return; - } - this.physicsComponent.getSkinMountPoint(vector); - this.var_231.x = vector.x; - this.var_231.y = vector.y; - this.var_231.z = vector.z; - this.var_231.rotationZ = this.physicsComponent.getInterpolatedTurretDirection(); - } - - public function setMaterial(materialType:name_481) : void - { - switch(materialType) - { - case name_481.DEAD: - this.var_232.deadMaterial.alpha = 1; - this.var_231.setMaterialToAllSurfaces(this.var_232.deadMaterial); - this.var_233 = this.var_232.deadMaterial; - break; - case name_481.ACTIVATING: - this.var_232.normalMaterial.alpha = 0.5; - this.var_231.setMaterialToAllSurfaces(this.var_232.normalMaterial); - this.var_233 = this.var_232.normalMaterial; - break; - case name_481.NORMAL: - this.var_232.normalMaterial.alpha = 1; - this.var_231.setMaterialToAllSurfaces(this.var_232.normalMaterial); - this.var_233 = this.var_232.normalMaterial; - } - } - - public function addToScene() : void - { - } - - public function removeFromScene() : void - { - } - - public function method_342(value:Number) : void - { - this.var_233.alpha = value; - } - - public function setTurret(value:name_234) : void - { - if(this.turret == value) - { - return; - } - if(this.turret != null) - { - this.var_231.alternativa3d::removeFromParent(); - } - this.turret = value; - if(this.turret != null) - { - this.var_231 = new name_380(); - this.var_231.geometry = this.turret.geometry; - this.var_231.addSurface(this.var_233,0,this.turret.geometry.numTriangles); - this.var_231.calculateBoundBox(); - this.method_343(); - } - } - - public function name_348(materials:name_277) : void - { - this.var_232 = materials; - } - - public function get name_198() : name_380 - { - return this.var_231; - } - } -} - diff --git a/src/package_48/A3D2Transform.as b/src/package_48/A3D2Transform.as deleted file mode 100644 index 441153f..0000000 --- a/src/package_48/A3D2Transform.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_48 -{ - import package_57.name_214; - - public class A3D2Transform - { - private var var_412:name_214; - - public function A3D2Transform(matrix:name_214) - { - super(); - this.var_412 = matrix; - } - - public function get matrix() : name_214 - { - return this.var_412; - } - - public function set matrix(value:name_214) : void - { - this.var_412 = value; - } - - public function toString() : String - { - var result:String = "A3D2Transform ["; - result += "matrix = " + this.matrix + " "; - return result + "]"; - } - } -} - diff --git a/src/package_49/CodecA3D2AmbientLight.as b/src/package_49/CodecA3D2AmbientLight.as deleted file mode 100644 index 752066d..0000000 --- a/src/package_49/CodecA3D2AmbientLight.as +++ /dev/null @@ -1,91 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2AmbientLight; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2AmbientLight implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_259:name_152; - - private var var_252:name_152; - - private var var_257:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - public function CodecA3D2AmbientLight() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_259 = protocol.name_448(new name_148(uint,false)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_257 = protocol.name_448(new name_148(name_157,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.var_259.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","color",value_color); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","id",value_id); - var value_intensity:Number = Number(this.var_257.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","intensity",value_intensity); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","visible",value_visible); - return new A3D2AmbientLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2AmbientLight = A3D2AmbientLight(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_259.method_295(protocolBuffer,struct.color); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_257.method_295(protocolBuffer,struct.intensity); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2Box.as b/src/package_49/CodecA3D2Box.as deleted file mode 100644 index 107d6ff..0000000 --- a/src/package_49/CodecA3D2Box.as +++ /dev/null @@ -1,54 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_32.name_149; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Box; - import alternativa.osgi.OSGi; - - public class CodecA3D2Box implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_284:name_152; - - private var var_252:name_152; - - public function CodecA3D2Box() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_284 = protocol.name_448(new name_149(new name_148(name_157,false),false,1)); - this.var_252 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_box:Vector. = this.var_284.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","box",value_box); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","id",value_id); - return new A3D2Box(value_box,value_id); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Box = A3D2Box(object); - this.var_284.method_295(protocolBuffer,struct.box); - this.var_252.method_295(protocolBuffer,struct.id); - } - } -} - diff --git a/src/package_49/CodecA3D2Decal.as b/src/package_49/CodecA3D2Decal.as deleted file mode 100644 index 68e834b..0000000 --- a/src/package_49/CodecA3D2Decal.as +++ /dev/null @@ -1,105 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_32.name_149; - import package_33.name_155; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Decal; - import package_48.A3D2Surface; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2Decal implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_252:name_152; - - private var var_246:name_152; - - private var var_253:name_152; - - private var var_309:name_152; - - private var var_254:name_152; - - private var var_250:name_152; - - private var var_249:name_152; - - private var var_248:name_152; - - private var var_247:name_152; - - public function CodecA3D2Decal() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_246 = protocol.name_448(new name_148(int,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_309 = protocol.name_448(new name_148(name_157,false)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_250 = protocol.name_448(new name_149(new name_148(A3D2Surface,false),false,1)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_248 = protocol.name_448(new name_149(new name_148(int,false),false,1)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","boundBoxId",value_boundBoxId); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","id",value_id); - var value_indexBufferId:int = int(this.var_246.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","indexBufferId",value_indexBufferId); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","name",value_name); - var value_offset:Number = Number(this.var_309.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","offset",value_offset); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","parentId",value_parentId); - var value_surfaces:Vector. = this.var_250.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","transform",value_transform); - var value_vertexBuffers:Vector. = this.var_248.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","vertexBuffers",value_vertexBuffers); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","visible",value_visible); - return new A3D2Decal(value_boundBoxId,value_id,value_indexBufferId,value_name,value_offset,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Decal = A3D2Decal(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_246.method_295(protocolBuffer,struct.indexBufferId); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_309.method_295(protocolBuffer,struct.offset); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_250.method_295(protocolBuffer,struct.surfaces); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_248.method_295(protocolBuffer,struct.vertexBuffers); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2DirectionalLight.as b/src/package_49/CodecA3D2DirectionalLight.as deleted file mode 100644 index 5c25cca..0000000 --- a/src/package_49/CodecA3D2DirectionalLight.as +++ /dev/null @@ -1,91 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2DirectionalLight; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2DirectionalLight implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_259:name_152; - - private var var_252:name_152; - - private var var_257:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - public function CodecA3D2DirectionalLight() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_259 = protocol.name_448(new name_148(uint,false)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_257 = protocol.name_448(new name_148(name_157,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.var_259.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","color",value_color); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","id",value_id); - var value_intensity:Number = Number(this.var_257.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","intensity",value_intensity); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","visible",value_visible); - return new A3D2DirectionalLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2DirectionalLight = A3D2DirectionalLight(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_259.method_295(protocolBuffer,struct.color); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_257.method_295(protocolBuffer,struct.intensity); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2Joint.as b/src/package_49/CodecA3D2Joint.as deleted file mode 100644 index 519ec87..0000000 --- a/src/package_49/CodecA3D2Joint.as +++ /dev/null @@ -1,78 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Joint; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2Joint implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_252:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - public function CodecA3D2Joint() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","boundBoxId",value_boundBoxId); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","id",value_id); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","parentId",value_parentId); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","visible",value_visible); - return new A3D2Joint(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Joint = A3D2Joint(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2JointBindTransform.as b/src/package_49/CodecA3D2JointBindTransform.as deleted file mode 100644 index db4edba..0000000 --- a/src/package_49/CodecA3D2JointBindTransform.as +++ /dev/null @@ -1,54 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2JointBindTransform; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2JointBindTransform implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_380:name_152; - - private var var_252:name_152; - - public function CodecA3D2JointBindTransform() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_380 = protocol.name_448(new name_148(A3D2Transform,false)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_bindPoseTransform:A3D2Transform = this.var_380.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","bindPoseTransform",value_bindPoseTransform); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","id",value_id); - return new A3D2JointBindTransform(value_bindPoseTransform,value_id); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2JointBindTransform = A3D2JointBindTransform(object); - this.var_380.method_295(protocolBuffer,struct.bindPoseTransform); - this.var_252.method_295(protocolBuffer,struct.id); - } - } -} - diff --git a/src/package_49/CodecA3D2Mesh.as b/src/package_49/CodecA3D2Mesh.as deleted file mode 100644 index 6308486..0000000 --- a/src/package_49/CodecA3D2Mesh.as +++ /dev/null @@ -1,98 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_32.name_149; - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Mesh; - import package_48.A3D2Surface; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2Mesh implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_252:name_152; - - private var var_246:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_250:name_152; - - private var var_249:name_152; - - private var var_248:name_152; - - private var var_247:name_152; - - public function CodecA3D2Mesh() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_246 = protocol.name_448(new name_148(int,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_250 = protocol.name_448(new name_149(new name_148(A3D2Surface,false),false,1)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_248 = protocol.name_448(new name_149(new name_148(int,false),false,1)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","boundBoxId",value_boundBoxId); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","id",value_id); - var value_indexBufferId:int = int(this.var_246.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","indexBufferId",value_indexBufferId); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","parentId",value_parentId); - var value_surfaces:Vector. = this.var_250.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","transform",value_transform); - var value_vertexBuffers:Vector. = this.var_248.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","vertexBuffers",value_vertexBuffers); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","visible",value_visible); - return new A3D2Mesh(value_boundBoxId,value_id,value_indexBufferId,value_name,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Mesh = A3D2Mesh(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_246.method_295(protocolBuffer,struct.indexBufferId); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_250.method_295(protocolBuffer,struct.surfaces); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_248.method_295(protocolBuffer,struct.vertexBuffers); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2Object.as b/src/package_49/CodecA3D2Object.as deleted file mode 100644 index 456b23c..0000000 --- a/src/package_49/CodecA3D2Object.as +++ /dev/null @@ -1,78 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Object; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2Object implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_252:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - public function CodecA3D2Object() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","boundBoxId",value_boundBoxId); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","id",value_id); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","parentId",value_parentId); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","visible",value_visible); - return new A3D2Object(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Object = A3D2Object(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2OmniLight.as b/src/package_49/CodecA3D2OmniLight.as deleted file mode 100644 index 93a7d57..0000000 --- a/src/package_49/CodecA3D2OmniLight.as +++ /dev/null @@ -1,103 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2OmniLight; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2OmniLight implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_260:name_152; - - private var var_258:name_152; - - private var var_244:name_152; - - private var var_259:name_152; - - private var var_252:name_152; - - private var var_257:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - public function CodecA3D2OmniLight() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_260 = protocol.name_448(new name_148(name_157,false)); - this.var_258 = protocol.name_448(new name_148(name_157,false)); - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_259 = protocol.name_448(new name_148(uint,false)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_257 = protocol.name_448(new name_148(name_157,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_attenuationBegin:Number = Number(this.var_260.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationBegin",value_attenuationBegin); - var value_attenuationEnd:Number = Number(this.var_258.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationEnd",value_attenuationEnd); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.var_259.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","color",value_color); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","id",value_id); - var value_intensity:Number = Number(this.var_257.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","intensity",value_intensity); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","visible",value_visible); - return new A3D2OmniLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2OmniLight = A3D2OmniLight(object); - this.var_260.method_295(protocolBuffer,struct.attenuationBegin); - this.var_258.method_295(protocolBuffer,struct.attenuationEnd); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_259.method_295(protocolBuffer,struct.color); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_257.method_295(protocolBuffer,struct.intensity); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2Skin.as b/src/package_49/CodecA3D2Skin.as deleted file mode 100644 index 0c61c7b..0000000 --- a/src/package_49/CodecA3D2Skin.as +++ /dev/null @@ -1,118 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_32.name_149; - import package_33.name_155; - import package_33.name_156; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2JointBindTransform; - import package_48.A3D2Skin; - import package_48.A3D2Surface; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2Skin implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_252:name_152; - - private var var_246:name_152; - - private var var_245:name_152; - - private var var_251:name_152; - - private var var_253:name_152; - - private var var_243:name_152; - - private var var_254:name_152; - - private var var_250:name_152; - - private var var_249:name_152; - - private var var_248:name_152; - - private var var_247:name_152; - - public function CodecA3D2Skin() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_246 = protocol.name_448(new name_148(int,false)); - this.var_245 = protocol.name_448(new name_149(new name_148(A3D2JointBindTransform,false),false,1)); - this.var_251 = protocol.name_448(new name_149(new name_148(name_155,false),false,1)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_243 = protocol.name_448(new name_149(new name_148(name_156,false),false,1)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_250 = protocol.name_448(new name_149(new name_148(A3D2Surface,false),false,1)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_248 = protocol.name_448(new name_149(new name_148(int,false),false,1)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","boundBoxId",value_boundBoxId); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","id",value_id); - var value_indexBufferId:int = int(this.var_246.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","indexBufferId",value_indexBufferId); - var value_jointBindTransforms:Vector. = this.var_245.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","jointBindTransforms",value_jointBindTransforms); - var value_joints:Vector. = this.var_251.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","joints",value_joints); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","name",value_name); - var value_numJoints:Vector. = this.var_243.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","numJoints",value_numJoints); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","parentId",value_parentId); - var value_surfaces:Vector. = this.var_250.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","transform",value_transform); - var value_vertexBuffers:Vector. = this.var_248.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","vertexBuffers",value_vertexBuffers); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","visible",value_visible); - return new A3D2Skin(value_boundBoxId,value_id,value_indexBufferId,value_jointBindTransforms,value_joints,value_name,value_numJoints,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Skin = A3D2Skin(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_246.method_295(protocolBuffer,struct.indexBufferId); - this.var_245.method_295(protocolBuffer,struct.jointBindTransforms); - this.var_251.method_295(protocolBuffer,struct.joints); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_243.method_295(protocolBuffer,struct.numJoints); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_250.method_295(protocolBuffer,struct.surfaces); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_248.method_295(protocolBuffer,struct.vertexBuffers); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2SpotLight.as b/src/package_49/CodecA3D2SpotLight.as deleted file mode 100644 index 42d3bdd..0000000 --- a/src/package_49/CodecA3D2SpotLight.as +++ /dev/null @@ -1,115 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2SpotLight; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - - public class CodecA3D2SpotLight implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_260:name_152; - - private var var_258:name_152; - - private var var_244:name_152; - - private var var_259:name_152; - - private var var_286:name_152; - - private var var_287:name_152; - - private var var_252:name_152; - - private var var_257:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - public function CodecA3D2SpotLight() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_260 = protocol.name_448(new name_148(name_157,false)); - this.var_258 = protocol.name_448(new name_148(name_157,false)); - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_259 = protocol.name_448(new name_148(uint,false)); - this.var_286 = protocol.name_448(new name_148(name_157,false)); - this.var_287 = protocol.name_448(new name_148(name_157,false)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_257 = protocol.name_448(new name_148(name_157,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_attenuationBegin:Number = Number(this.var_260.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationBegin",value_attenuationBegin); - var value_attenuationEnd:Number = Number(this.var_258.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationEnd",value_attenuationEnd); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.var_259.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","color",value_color); - var value_falloff:Number = Number(this.var_286.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","falloff",value_falloff); - var value_hotspot:Number = Number(this.var_287.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","hotspot",value_hotspot); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","id",value_id); - var value_intensity:Number = Number(this.var_257.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","intensity",value_intensity); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","name",value_name); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","visible",value_visible); - return new A3D2SpotLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_falloff,value_hotspot,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2SpotLight = A3D2SpotLight(object); - this.var_260.method_295(protocolBuffer,struct.attenuationBegin); - this.var_258.method_295(protocolBuffer,struct.attenuationEnd); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_259.method_295(protocolBuffer,struct.color); - this.var_286.method_295(protocolBuffer,struct.falloff); - this.var_287.method_295(protocolBuffer,struct.hotspot); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_257.method_295(protocolBuffer,struct.intensity); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_49/CodecA3D2Sprite.as b/src/package_49/CodecA3D2Sprite.as deleted file mode 100644 index c4b1611..0000000 --- a/src/package_49/CodecA3D2Sprite.as +++ /dev/null @@ -1,128 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_33.name_155; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Sprite; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - import package_57.name_213; - - public class CodecA3D2Sprite implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_298:name_152; - - private var var_244:name_152; - - private var var_297:name_152; - - private var var_252:name_152; - - private var var_296:name_152; - - private var var_253:name_152; - - private var var_293:name_152; - - private var var_295:name_152; - - private var var_254:name_152; - - private var var_294:name_152; - - private var var_292:name_152; - - private var var_249:name_152; - - private var var_247:name_152; - - private var var_291:name_152; - - public function CodecA3D2Sprite() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_298 = protocol.name_448(new name_148(Boolean,false)); - this.var_244 = protocol.name_448(new name_148(int,true)); - this.var_297 = protocol.name_448(new name_148(name_157,false)); - this.var_252 = protocol.name_448(new name_148(name_155,false)); - this.var_296 = protocol.name_448(new name_148(name_213,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_293 = protocol.name_448(new name_148(name_157,false)); - this.var_295 = protocol.name_448(new name_148(name_157,false)); - this.var_254 = protocol.name_448(new name_148(name_155,true)); - this.var_294 = protocol.name_448(new name_148(Boolean,false)); - this.var_292 = protocol.name_448(new name_148(name_157,false)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,false)); - this.var_291 = protocol.name_448(new name_148(name_157,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_alwaysOnTop:Boolean = Boolean(this.var_298.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","alwaysOnTop",value_alwaysOnTop); - var value_boundBoxId:int = int(this.var_244.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","boundBoxId",value_boundBoxId); - var value_height:Number = Number(this.var_297.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","height",value_height); - var value_id:name_155 = this.var_252.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","id",value_id); - var value_materialId:name_213 = this.var_296.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","materialId",value_materialId); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","name",value_name); - var value_originX:Number = Number(this.var_293.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originX",value_originX); - var value_originY:Number = Number(this.var_295.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originY",value_originY); - var value_parentId:name_155 = this.var_254.method_296(protocolBuffer) as name_155; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","parentId",value_parentId); - var value_perspectiveScale:Boolean = Boolean(this.var_294.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","perspectiveScale",value_perspectiveScale); - var value_rotation:Number = Number(this.var_292.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","rotation",value_rotation); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","transform",value_transform); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","visible",value_visible); - var value_width:Number = Number(this.var_291.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","width",value_width); - return new A3D2Sprite(value_alwaysOnTop,value_boundBoxId,value_height,value_id,value_materialId,value_name,value_originX,value_originY,value_parentId,value_perspectiveScale,value_rotation,value_transform,value_visible,value_width); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Sprite = A3D2Sprite(object); - this.var_298.method_295(protocolBuffer,struct.alwaysOnTop); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_297.method_295(protocolBuffer,struct.height); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_296.method_295(protocolBuffer,struct.materialId); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_293.method_295(protocolBuffer,struct.originX); - this.var_295.method_295(protocolBuffer,struct.originY); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_294.method_295(protocolBuffer,struct.perspectiveScale); - this.var_292.method_295(protocolBuffer,struct.rotation); - this.var_249.method_295(protocolBuffer,struct.transform); - this.var_247.method_295(protocolBuffer,struct.visible); - this.var_291.method_295(protocolBuffer,struct.width); - } - } -} - diff --git a/src/package_49/CodecA3D2Surface.as b/src/package_49/CodecA3D2Surface.as deleted file mode 100644 index ff5a13f..0000000 --- a/src/package_49/CodecA3D2Surface.as +++ /dev/null @@ -1,58 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Surface; - import alternativa.osgi.OSGi; - - public class CodecA3D2Surface implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_302:name_152; - - private var var_296:name_152; - - private var var_303:name_152; - - public function CodecA3D2Surface() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_302 = protocol.name_448(new name_148(int,false)); - this.var_296 = protocol.name_448(new name_148(int,true)); - this.var_303 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_indexBegin:int = int(this.var_302.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","indexBegin",value_indexBegin); - var value_materialId:int = int(this.var_296.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","materialId",value_materialId); - var value_numTriangles:int = int(this.var_303.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","numTriangles",value_numTriangles); - return new A3D2Surface(value_indexBegin,value_materialId,value_numTriangles); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Surface = A3D2Surface(object); - this.var_302.method_295(protocolBuffer,struct.indexBegin); - this.var_296.method_295(protocolBuffer,struct.materialId); - this.var_303.method_295(protocolBuffer,struct.numTriangles); - } - } -} - diff --git a/src/package_49/CodecA3D2Transform.as b/src/package_49/CodecA3D2Transform.as deleted file mode 100644 index 331f33b..0000000 --- a/src/package_49/CodecA3D2Transform.as +++ /dev/null @@ -1,47 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - import package_57.name_214; - - public class CodecA3D2Transform implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_411:name_152; - - public function CodecA3D2Transform() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_411 = protocol.name_448(new name_148(name_214,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_matrix:name_214 = this.var_411.method_296(protocolBuffer) as name_214; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Transform","matrix",value_matrix); - return new A3D2Transform(value_matrix); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Transform = A3D2Transform(object); - this.var_411.method_295(protocolBuffer,struct.matrix); - } - } -} - diff --git a/src/package_49/VectorCodecA3D2AmbientLightLevel1.as b/src/package_49/VectorCodecA3D2AmbientLightLevel1.as deleted file mode 100644 index 8ada9e2..0000000 --- a/src/package_49/VectorCodecA3D2AmbientLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2AmbientLight; - - public class VectorCodecA3D2AmbientLightLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AmbientLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2AmbientLight,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2AmbientLight(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2BoxLevel1.as b/src/package_49/VectorCodecA3D2BoxLevel1.as deleted file mode 100644 index ecd86d1..0000000 --- a/src/package_49/VectorCodecA3D2BoxLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Box; - - public class VectorCodecA3D2BoxLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2BoxLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Box,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Box(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2DecalLevel1.as b/src/package_49/VectorCodecA3D2DecalLevel1.as deleted file mode 100644 index 912a3af..0000000 --- a/src/package_49/VectorCodecA3D2DecalLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Decal; - - public class VectorCodecA3D2DecalLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DecalLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Decal,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Decal(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2DirectionalLightLevel1.as b/src/package_49/VectorCodecA3D2DirectionalLightLevel1.as deleted file mode 100644 index 06ea0ec..0000000 --- a/src/package_49/VectorCodecA3D2DirectionalLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2DirectionalLight; - - public class VectorCodecA3D2DirectionalLightLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DirectionalLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2DirectionalLight,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2DirectionalLight(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2JointBindTransformLevel1.as b/src/package_49/VectorCodecA3D2JointBindTransformLevel1.as deleted file mode 100644 index 8a56804..0000000 --- a/src/package_49/VectorCodecA3D2JointBindTransformLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2JointBindTransform; - - public class VectorCodecA3D2JointBindTransformLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointBindTransformLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2JointBindTransform,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2JointBindTransform(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2JointLevel1.as b/src/package_49/VectorCodecA3D2JointLevel1.as deleted file mode 100644 index db1038e..0000000 --- a/src/package_49/VectorCodecA3D2JointLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Joint; - - public class VectorCodecA3D2JointLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Joint,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Joint(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2MeshLevel1.as b/src/package_49/VectorCodecA3D2MeshLevel1.as deleted file mode 100644 index 9d5eed7..0000000 --- a/src/package_49/VectorCodecA3D2MeshLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Mesh; - - public class VectorCodecA3D2MeshLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MeshLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Mesh,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Mesh(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2ObjectLevel1.as b/src/package_49/VectorCodecA3D2ObjectLevel1.as deleted file mode 100644 index 94e9552..0000000 --- a/src/package_49/VectorCodecA3D2ObjectLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Object; - - public class VectorCodecA3D2ObjectLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ObjectLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Object,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Object(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2OmniLightLevel1.as b/src/package_49/VectorCodecA3D2OmniLightLevel1.as deleted file mode 100644 index e2c3946..0000000 --- a/src/package_49/VectorCodecA3D2OmniLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2OmniLight; - - public class VectorCodecA3D2OmniLightLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2OmniLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2OmniLight,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2OmniLight(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2SkinLevel1.as b/src/package_49/VectorCodecA3D2SkinLevel1.as deleted file mode 100644 index 658f64a..0000000 --- a/src/package_49/VectorCodecA3D2SkinLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Skin; - - public class VectorCodecA3D2SkinLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SkinLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Skin,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Skin(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2SpotLightLevel1.as b/src/package_49/VectorCodecA3D2SpotLightLevel1.as deleted file mode 100644 index 0ce943a..0000000 --- a/src/package_49/VectorCodecA3D2SpotLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2SpotLight; - - public class VectorCodecA3D2SpotLightLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpotLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2SpotLight,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2SpotLight(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2SpriteLevel1.as b/src/package_49/VectorCodecA3D2SpriteLevel1.as deleted file mode 100644 index 9febdf4..0000000 --- a/src/package_49/VectorCodecA3D2SpriteLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Sprite; - - public class VectorCodecA3D2SpriteLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpriteLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Sprite,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Sprite(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2SurfaceLevel1.as b/src/package_49/VectorCodecA3D2SurfaceLevel1.as deleted file mode 100644 index d0b2cd2..0000000 --- a/src/package_49/VectorCodecA3D2SurfaceLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Surface; - - public class VectorCodecA3D2SurfaceLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SurfaceLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Surface,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Surface(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_49/VectorCodecA3D2TransformLevel1.as b/src/package_49/VectorCodecA3D2TransformLevel1.as deleted file mode 100644 index c6a930f..0000000 --- a/src/package_49/VectorCodecA3D2TransformLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_49 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_48.A3D2Transform; - - public class VectorCodecA3D2TransformLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TransformLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Transform,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Transform(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_50/A3DObject.as b/src/package_50/A3DObject.as deleted file mode 100644 index 103b0bd..0000000 --- a/src/package_50/A3DObject.as +++ /dev/null @@ -1,132 +0,0 @@ -package package_50 -{ - import package_57.name_213; - import package_64.name_212; - - public class A3DObject - { - private var var_268:name_213; - - private var var_336:name_213; - - private var var_101:name_213; - - private var _name:String; - - private var var_270:name_212; - - private var var_92:Vector.; - - private var var_335:A3DTransformation; - - private var var_267:Boolean; - - public function A3DObject(boundBoxId:name_213, geometryId:name_213, id:name_213, name:String, parentId:name_212, surfaces:Vector., transformation:A3DTransformation, visible:Boolean) - { - super(); - this.var_268 = boundBoxId; - this.var_336 = geometryId; - this.var_101 = id; - this._name = name; - this.var_270 = parentId; - this.var_92 = surfaces; - this.var_335 = transformation; - this.var_267 = visible; - } - - public function get boundBoxId() : name_213 - { - return this.var_268; - } - - public function set boundBoxId(value:name_213) : void - { - this.var_268 = value; - } - - public function get geometryId() : name_213 - { - return this.var_336; - } - - public function set geometryId(value:name_213) : void - { - this.var_336 = value; - } - - public function get id() : name_213 - { - return this.var_101; - } - - public function set id(value:name_213) : void - { - this.var_101 = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : name_212 - { - return this.var_270; - } - - public function set parentId(value:name_212) : void - { - this.var_270 = value; - } - - public function get surfaces() : Vector. - { - return this.var_92; - } - - public function set surfaces(value:Vector.) : void - { - this.var_92 = value; - } - - public function get transformation() : A3DTransformation - { - return this.var_335; - } - - public function set transformation(value:A3DTransformation) : void - { - this.var_335 = value; - } - - public function get visible() : Boolean - { - return this.var_267; - } - - public function set visible(value:Boolean) : void - { - this.var_267 = value; - } - - public function toString() : String - { - var result:String = "A3DObject ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "geometryId = " + this.geometryId + " "; - result += "id = " + this.id + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "surfaces = " + this.surfaces + " "; - result += "transformation = " + this.transformation + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/package_50/A3DTransformation.as b/src/package_50/A3DTransformation.as deleted file mode 100644 index 81ba18d..0000000 --- a/src/package_50/A3DTransformation.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_50 -{ - import package_57.name_214; - - public class A3DTransformation - { - private var var_412:name_214; - - public function A3DTransformation(matrix:name_214) - { - super(); - this.var_412 = matrix; - } - - public function get matrix() : name_214 - { - return this.var_412; - } - - public function set matrix(value:name_214) : void - { - this.var_412 = value; - } - - public function toString() : String - { - var result:String = "A3DTransformation ["; - result += "matrix = " + this.matrix + " "; - return result + "]"; - } - } -} - diff --git a/src/package_53/A3DMaterial.as b/src/package_53/A3DMaterial.as deleted file mode 100644 index 2c5dbe8..0000000 --- a/src/package_53/A3DMaterial.as +++ /dev/null @@ -1,117 +0,0 @@ -package package_53 -{ - import package_57.name_213; - - public class A3DMaterial - { - private var var_345:name_213; - - private var var_342:name_213; - - private var var_101:name_213; - - private var var_343:name_213; - - private var var_339:name_213; - - private var var_341:name_213; - - private var var_340:name_213; - - public function A3DMaterial(diffuseMapId:name_213, glossinessMapId:name_213, id:name_213, lightMapId:name_213, normalMapId:name_213, opacityMapId:name_213, specularMapId:name_213) - { - super(); - this.var_345 = diffuseMapId; - this.var_342 = glossinessMapId; - this.var_101 = id; - this.var_343 = lightMapId; - this.var_339 = normalMapId; - this.var_341 = opacityMapId; - this.var_340 = specularMapId; - } - - public function get diffuseMapId() : name_213 - { - return this.var_345; - } - - public function set diffuseMapId(value:name_213) : void - { - this.var_345 = value; - } - - public function get glossinessMapId() : name_213 - { - return this.var_342; - } - - public function set glossinessMapId(value:name_213) : void - { - this.var_342 = value; - } - - public function get id() : name_213 - { - return this.var_101; - } - - public function set id(value:name_213) : void - { - this.var_101 = value; - } - - public function get lightMapId() : name_213 - { - return this.var_343; - } - - public function set lightMapId(value:name_213) : void - { - this.var_343 = value; - } - - public function get normalMapId() : name_213 - { - return this.var_339; - } - - public function set normalMapId(value:name_213) : void - { - this.var_339 = value; - } - - public function get opacityMapId() : name_213 - { - return this.var_341; - } - - public function set opacityMapId(value:name_213) : void - { - this.var_341 = value; - } - - public function get specularMapId() : name_213 - { - return this.var_340; - } - - public function set specularMapId(value:name_213) : void - { - this.var_340 = value; - } - - public function toString() : String - { - var result:String = "A3DMaterial ["; - result += "diffuseMapId = " + this.diffuseMapId + " "; - result += "glossinessMapId = " + this.glossinessMapId + " "; - result += "id = " + this.id + " "; - result += "lightMapId = " + this.lightMapId + " "; - result += "normalMapId = " + this.normalMapId + " "; - result += "opacityMapId = " + this.opacityMapId + " "; - result += "specularMapId = " + this.specularMapId + " "; - return result + "]"; - } - } -} - diff --git a/src/package_56/CodecA3DBox.as b/src/package_56/CodecA3DBox.as deleted file mode 100644 index 325abc7..0000000 --- a/src/package_56/CodecA3DBox.as +++ /dev/null @@ -1,55 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_32.name_149; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_50.A3DBox; - import package_57.name_213; - - public class CodecA3DBox implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_284:name_152; - - private var var_252:name_152; - - public function CodecA3DBox() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_284 = protocol.name_448(new name_149(new name_148(name_157,false),true,1)); - this.var_252 = protocol.name_448(new name_148(name_213,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_box:Vector. = this.var_284.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","box",value_box); - var value_id:name_213 = this.var_252.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","id",value_id); - return new A3DBox(value_box,value_id); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DBox = A3DBox(object); - this.var_284.method_295(protocolBuffer,struct.box); - this.var_252.method_295(protocolBuffer,struct.id); - } - } -} - diff --git a/src/package_56/CodecA3DObject.as b/src/package_56/CodecA3DObject.as deleted file mode 100644 index 5721412..0000000 --- a/src/package_56/CodecA3DObject.as +++ /dev/null @@ -1,93 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_32.name_149; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_50.A3DObject; - import package_50.A3DSurface; - import package_50.A3DTransformation; - import package_57.name_213; - import package_64.name_212; - - public class CodecA3DObject implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_244:name_152; - - private var var_256:name_152; - - private var var_252:name_152; - - private var var_253:name_152; - - private var var_254:name_152; - - private var var_250:name_152; - - private var var_255:name_152; - - private var var_247:name_152; - - public function CodecA3DObject() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_244 = protocol.name_448(new name_148(name_213,true)); - this.var_256 = protocol.name_448(new name_148(name_213,true)); - this.var_252 = protocol.name_448(new name_148(name_213,true)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_254 = protocol.name_448(new name_148(name_212,true)); - this.var_250 = protocol.name_448(new name_149(new name_148(A3DSurface,false),true,1)); - this.var_255 = protocol.name_448(new name_148(A3DTransformation,true)); - this.var_247 = protocol.name_448(new name_148(Boolean,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boundBoxId:name_213 = this.var_244.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","boundBoxId",value_boundBoxId); - var value_geometryId:name_213 = this.var_256.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","geometryId",value_geometryId); - var value_id:name_213 = this.var_252.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","id",value_id); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","name",value_name); - var value_parentId:name_212 = this.var_254.method_296(protocolBuffer) as name_212; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","parentId",value_parentId); - var value_surfaces:Vector. = this.var_250.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","surfaces",value_surfaces); - var value_transformation:A3DTransformation = this.var_255.method_296(protocolBuffer) as A3DTransformation; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","transformation",value_transformation); - var value_visible:Boolean = Boolean(this.var_247.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","visible",value_visible); - return new A3DObject(value_boundBoxId,value_geometryId,value_id,value_name,value_parentId,value_surfaces,value_transformation,value_visible); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DObject = A3DObject(object); - this.var_244.method_295(protocolBuffer,struct.boundBoxId); - this.var_256.method_295(protocolBuffer,struct.geometryId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_254.method_295(protocolBuffer,struct.parentId); - this.var_250.method_295(protocolBuffer,struct.surfaces); - this.var_255.method_295(protocolBuffer,struct.transformation); - this.var_247.method_295(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/package_56/CodecA3DSurface.as b/src/package_56/CodecA3DSurface.as deleted file mode 100644 index ad1a30d..0000000 --- a/src/package_56/CodecA3DSurface.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_50.A3DSurface; - import package_57.name_213; - - public class CodecA3DSurface implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_302:name_152; - - private var var_296:name_152; - - private var var_303:name_152; - - public function CodecA3DSurface() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_302 = protocol.name_448(new name_148(int,false)); - this.var_296 = protocol.name_448(new name_148(name_213,true)); - this.var_303 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_indexBegin:int = int(this.var_302.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","indexBegin",value_indexBegin); - var value_materialId:name_213 = this.var_296.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","materialId",value_materialId); - var value_numTriangles:int = int(this.var_303.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","numTriangles",value_numTriangles); - return new A3DSurface(value_indexBegin,value_materialId,value_numTriangles); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DSurface = A3DSurface(object); - this.var_302.method_295(protocolBuffer,struct.indexBegin); - this.var_296.method_295(protocolBuffer,struct.materialId); - this.var_303.method_295(protocolBuffer,struct.numTriangles); - } - } -} - diff --git a/src/package_56/CodecA3DTransformation.as b/src/package_56/CodecA3DTransformation.as deleted file mode 100644 index 748a237..0000000 --- a/src/package_56/CodecA3DTransformation.as +++ /dev/null @@ -1,47 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_50.A3DTransformation; - import package_57.name_214; - - public class CodecA3DTransformation implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_411:name_152; - - public function CodecA3DTransformation() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_411 = protocol.name_448(new name_148(name_214,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_matrix:name_214 = this.var_411.method_296(protocolBuffer) as name_214; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DTransformation","matrix",value_matrix); - return new A3DTransformation(value_matrix); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DTransformation = A3DTransformation(object); - this.var_411.method_295(protocolBuffer,struct.matrix); - } - } -} - diff --git a/src/package_56/VectorCodecA3DBoxLevel1.as b/src/package_56/VectorCodecA3DBoxLevel1.as deleted file mode 100644 index 6a23727..0000000 --- a/src/package_56/VectorCodecA3DBoxLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DBox; - - public class VectorCodecA3DBoxLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DBoxLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DBox,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DBox(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_56/VectorCodecA3DObjectLevel1.as b/src/package_56/VectorCodecA3DObjectLevel1.as deleted file mode 100644 index 6822374..0000000 --- a/src/package_56/VectorCodecA3DObjectLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DObject; - - public class VectorCodecA3DObjectLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DObjectLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DObject,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DObject(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_56/VectorCodecA3DSurfaceLevel1.as b/src/package_56/VectorCodecA3DSurfaceLevel1.as deleted file mode 100644 index 589133d..0000000 --- a/src/package_56/VectorCodecA3DSurfaceLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DSurface; - - public class VectorCodecA3DSurfaceLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DSurfaceLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DSurface,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DSurface(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_56/VectorCodecA3DTransformationLevel1.as b/src/package_56/VectorCodecA3DTransformationLevel1.as deleted file mode 100644 index d5078ba..0000000 --- a/src/package_56/VectorCodecA3DTransformationLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_56 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_50.A3DTransformation; - - public class VectorCodecA3DTransformationLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DTransformationLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DTransformation,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DTransformation(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_58/CodecA3D2CubeMap.as b/src/package_58/CodecA3D2CubeMap.as deleted file mode 100644 index f1e8abc..0000000 --- a/src/package_58/CodecA3D2CubeMap.as +++ /dev/null @@ -1,82 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_51.A3D2CubeMap; - - public class CodecA3D2CubeMap implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_369:name_152; - - private var var_373:name_152; - - private var var_368:name_152; - - private var var_252:name_152; - - private var var_372:name_152; - - private var var_371:name_152; - - private var var_370:name_152; - - public function CodecA3D2CubeMap() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_369 = protocol.name_448(new name_148(int,true)); - this.var_373 = protocol.name_448(new name_148(int,true)); - this.var_368 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_372 = protocol.name_448(new name_148(int,true)); - this.var_371 = protocol.name_448(new name_148(int,true)); - this.var_370 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_backId:int = int(this.var_369.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","backId",value_backId); - var value_bottomId:int = int(this.var_373.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","bottomId",value_bottomId); - var value_frontId:int = int(this.var_368.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","frontId",value_frontId); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","id",value_id); - var value_leftId:int = int(this.var_372.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","leftId",value_leftId); - var value_rightId:int = int(this.var_371.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","rightId",value_rightId); - var value_topId:int = int(this.var_370.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","topId",value_topId); - return new A3D2CubeMap(value_backId,value_bottomId,value_frontId,value_id,value_leftId,value_rightId,value_topId); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2CubeMap = A3D2CubeMap(object); - this.var_369.method_295(protocolBuffer,struct.backId); - this.var_373.method_295(protocolBuffer,struct.bottomId); - this.var_368.method_295(protocolBuffer,struct.frontId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_372.method_295(protocolBuffer,struct.leftId); - this.var_371.method_295(protocolBuffer,struct.rightId); - this.var_370.method_295(protocolBuffer,struct.topId); - } - } -} - diff --git a/src/package_58/CodecA3D2Image.as b/src/package_58/CodecA3D2Image.as deleted file mode 100644 index 0dcf240..0000000 --- a/src/package_58/CodecA3D2Image.as +++ /dev/null @@ -1,52 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_51.A3D2Image; - - public class CodecA3D2Image implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - private var var_307:name_152; - - public function CodecA3D2Image() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_307 = protocol.name_448(new name_148(String,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","id",value_id); - var value_url:String = this.var_307.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","url",value_url); - return new A3D2Image(value_id,value_url); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Image = A3D2Image(object); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_307.method_295(protocolBuffer,struct.url); - } - } -} - diff --git a/src/package_58/CodecA3D2Map.as b/src/package_58/CodecA3D2Map.as deleted file mode 100644 index 83a37fd..0000000 --- a/src/package_58/CodecA3D2Map.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_33.name_156; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_51.A3D2Map; - - public class CodecA3D2Map implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_322:name_152; - - private var var_252:name_152; - - private var var_321:name_152; - - public function CodecA3D2Map() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_322 = protocol.name_448(new name_148(name_156,false)); - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_321 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_channel:uint = uint(this.var_322.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","channel",value_channel); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","id",value_id); - var value_imageId:int = int(this.var_321.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","imageId",value_imageId); - return new A3D2Map(value_channel,value_id,value_imageId); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Map = A3D2Map(object); - this.var_322.method_295(protocolBuffer,struct.channel); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_321.method_295(protocolBuffer,struct.imageId); - } - } -} - diff --git a/src/package_58/CodecA3D2Material.as b/src/package_58/CodecA3D2Material.as deleted file mode 100644 index 4d5e869..0000000 --- a/src/package_58/CodecA3D2Material.as +++ /dev/null @@ -1,88 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_51.A3D2Material; - - public class CodecA3D2Material implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_386:name_152; - - private var var_383:name_152; - - private var var_252:name_152; - - private var var_384:name_152; - - private var var_385:name_152; - - private var var_382:name_152; - - private var var_418:name_152; - - private var var_381:name_152; - - public function CodecA3D2Material() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_386 = protocol.name_448(new name_148(int,true)); - this.var_383 = protocol.name_448(new name_148(int,true)); - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_384 = protocol.name_448(new name_148(int,true)); - this.var_385 = protocol.name_448(new name_148(int,true)); - this.var_382 = protocol.name_448(new name_148(int,true)); - this.var_418 = protocol.name_448(new name_148(int,true)); - this.var_381 = protocol.name_448(new name_148(int,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_diffuseMapId:int = int(this.var_386.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","diffuseMapId",value_diffuseMapId); - var value_glossinessMapId:int = int(this.var_383.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","glossinessMapId",value_glossinessMapId); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","id",value_id); - var value_lightMapId:int = int(this.var_384.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","lightMapId",value_lightMapId); - var value_normalMapId:int = int(this.var_385.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","normalMapId",value_normalMapId); - var value_opacityMapId:int = int(this.var_382.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","opacityMapId",value_opacityMapId); - var value_reflectionCubeMapId:int = int(this.var_418.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","reflectionCubeMapId",value_reflectionCubeMapId); - var value_specularMapId:int = int(this.var_381.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","specularMapId",value_specularMapId); - return new A3D2Material(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_reflectionCubeMapId,value_specularMapId); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Material = A3D2Material(object); - this.var_386.method_295(protocolBuffer,struct.diffuseMapId); - this.var_383.method_295(protocolBuffer,struct.glossinessMapId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_384.method_295(protocolBuffer,struct.lightMapId); - this.var_385.method_295(protocolBuffer,struct.normalMapId); - this.var_382.method_295(protocolBuffer,struct.opacityMapId); - this.var_418.method_295(protocolBuffer,struct.reflectionCubeMapId); - this.var_381.method_295(protocolBuffer,struct.specularMapId); - } - } -} - diff --git a/src/package_58/VectorCodecA3D2CubeMapLevel1.as b/src/package_58/VectorCodecA3D2CubeMapLevel1.as deleted file mode 100644 index 14017d3..0000000 --- a/src/package_58/VectorCodecA3D2CubeMapLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2CubeMap; - - public class VectorCodecA3D2CubeMapLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2CubeMapLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2CubeMap,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2CubeMap(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_58/VectorCodecA3D2ImageLevel1.as b/src/package_58/VectorCodecA3D2ImageLevel1.as deleted file mode 100644 index ae3f409..0000000 --- a/src/package_58/VectorCodecA3D2ImageLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Image; - - public class VectorCodecA3D2ImageLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ImageLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Image,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Image(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_58/VectorCodecA3D2MapLevel1.as b/src/package_58/VectorCodecA3D2MapLevel1.as deleted file mode 100644 index de17a8a..0000000 --- a/src/package_58/VectorCodecA3D2MapLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Map; - - public class VectorCodecA3D2MapLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MapLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Map,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Map(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_58/VectorCodecA3D2MaterialLevel1.as b/src/package_58/VectorCodecA3D2MaterialLevel1.as deleted file mode 100644 index e1c5103..0000000 --- a/src/package_58/VectorCodecA3D2MaterialLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_58 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_51.A3D2Material; - - public class VectorCodecA3D2MaterialLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MaterialLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Material,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Material(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_59/CodecA3DImage.as b/src/package_59/CodecA3DImage.as deleted file mode 100644 index 9d66e82..0000000 --- a/src/package_59/CodecA3DImage.as +++ /dev/null @@ -1,53 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_53.A3DImage; - import package_57.name_213; - - public class CodecA3DImage implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - private var var_307:name_152; - - public function CodecA3DImage() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(name_213,true)); - this.var_307 = protocol.name_448(new name_148(String,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:name_213 = this.var_252.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","id",value_id); - var value_url:String = this.var_307.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","url",value_url); - return new A3DImage(value_id,value_url); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DImage = A3DImage(object); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_307.method_295(protocolBuffer,struct.url); - } - } -} - diff --git a/src/package_59/CodecA3DMap.as b/src/package_59/CodecA3DMap.as deleted file mode 100644 index d058dac..0000000 --- a/src/package_59/CodecA3DMap.as +++ /dev/null @@ -1,85 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_33.name_156; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_53.A3DMap; - import package_57.name_213; - - public class CodecA3DMap implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_322:name_152; - - private var var_252:name_152; - - private var var_321:name_152; - - private var var_407:name_152; - - private var var_408:name_152; - - private var var_409:name_152; - - private var var_410:name_152; - - public function CodecA3DMap() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_322 = protocol.name_448(new name_148(name_156,false)); - this.var_252 = protocol.name_448(new name_148(name_213,true)); - this.var_321 = protocol.name_448(new name_148(name_213,true)); - this.var_407 = protocol.name_448(new name_148(name_157,true)); - this.var_408 = protocol.name_448(new name_148(name_157,true)); - this.var_409 = protocol.name_448(new name_148(name_157,true)); - this.var_410 = protocol.name_448(new name_148(name_157,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_channel:uint = uint(this.var_322.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","channel",value_channel); - var value_id:name_213 = this.var_252.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","id",value_id); - var value_imageId:name_213 = this.var_321.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","imageId",value_imageId); - var value_uOffset:Number = Number(this.var_407.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uOffset",value_uOffset); - var value_uScale:Number = Number(this.var_408.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uScale",value_uScale); - var value_vOffset:Number = Number(this.var_409.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vOffset",value_vOffset); - var value_vScale:Number = Number(this.var_410.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vScale",value_vScale); - return new A3DMap(value_channel,value_id,value_imageId,value_uOffset,value_uScale,value_vOffset,value_vScale); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DMap = A3DMap(object); - this.var_322.method_295(protocolBuffer,struct.channel); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_321.method_295(protocolBuffer,struct.imageId); - this.var_407.method_295(protocolBuffer,struct.uOffset); - this.var_408.method_295(protocolBuffer,struct.uScale); - this.var_409.method_295(protocolBuffer,struct.vOffset); - this.var_410.method_295(protocolBuffer,struct.vScale); - } - } -} - diff --git a/src/package_59/CodecA3DMaterial.as b/src/package_59/CodecA3DMaterial.as deleted file mode 100644 index 04c9beb..0000000 --- a/src/package_59/CodecA3DMaterial.as +++ /dev/null @@ -1,83 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_53.A3DMaterial; - import package_57.name_213; - - public class CodecA3DMaterial implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_386:name_152; - - private var var_383:name_152; - - private var var_252:name_152; - - private var var_384:name_152; - - private var var_385:name_152; - - private var var_382:name_152; - - private var var_381:name_152; - - public function CodecA3DMaterial() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_386 = protocol.name_448(new name_148(name_213,true)); - this.var_383 = protocol.name_448(new name_148(name_213,true)); - this.var_252 = protocol.name_448(new name_148(name_213,true)); - this.var_384 = protocol.name_448(new name_148(name_213,true)); - this.var_385 = protocol.name_448(new name_148(name_213,true)); - this.var_382 = protocol.name_448(new name_148(name_213,true)); - this.var_381 = protocol.name_448(new name_148(name_213,true)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_diffuseMapId:name_213 = this.var_386.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","diffuseMapId",value_diffuseMapId); - var value_glossinessMapId:name_213 = this.var_383.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","glossinessMapId",value_glossinessMapId); - var value_id:name_213 = this.var_252.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","id",value_id); - var value_lightMapId:name_213 = this.var_384.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","lightMapId",value_lightMapId); - var value_normalMapId:name_213 = this.var_385.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","normalMapId",value_normalMapId); - var value_opacityMapId:name_213 = this.var_382.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","opacityMapId",value_opacityMapId); - var value_specularMapId:name_213 = this.var_381.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","specularMapId",value_specularMapId); - return new A3DMaterial(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_specularMapId); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DMaterial = A3DMaterial(object); - this.var_386.method_295(protocolBuffer,struct.diffuseMapId); - this.var_383.method_295(protocolBuffer,struct.glossinessMapId); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_384.method_295(protocolBuffer,struct.lightMapId); - this.var_385.method_295(protocolBuffer,struct.normalMapId); - this.var_382.method_295(protocolBuffer,struct.opacityMapId); - this.var_381.method_295(protocolBuffer,struct.specularMapId); - } - } -} - diff --git a/src/package_59/VectorCodecA3DImageLevel1.as b/src/package_59/VectorCodecA3DImageLevel1.as deleted file mode 100644 index 04e0d3b..0000000 --- a/src/package_59/VectorCodecA3DImageLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DImage; - - public class VectorCodecA3DImageLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DImageLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DImage,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DImage(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_59/VectorCodecA3DMapLevel1.as b/src/package_59/VectorCodecA3DMapLevel1.as deleted file mode 100644 index 0baed24..0000000 --- a/src/package_59/VectorCodecA3DMapLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DMap; - - public class VectorCodecA3DMapLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMapLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DMap,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DMap(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_59/VectorCodecA3DMapLevel2.as b/src/package_59/VectorCodecA3DMapLevel2.as deleted file mode 100644 index d517a6a..0000000 --- a/src/package_59/VectorCodecA3DMapLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DMap; - - public class VectorCodecA3DMapLevel2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMapLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DMap,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DMap(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_59/VectorCodecA3DMaterialLevel1.as b/src/package_59/VectorCodecA3DMaterialLevel1.as deleted file mode 100644 index e6c57bd..0000000 --- a/src/package_59/VectorCodecA3DMaterialLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_59 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_53.A3DMaterial; - - public class VectorCodecA3DMaterialLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMaterialLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DMaterial,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DMaterial(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_60/CodecA3D2IndexBuffer.as b/src/package_60/CodecA3D2IndexBuffer.as deleted file mode 100644 index 9292b55..0000000 --- a/src/package_60/CodecA3D2IndexBuffer.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_60 -{ - import flash.utils.ByteArray; - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_52.A3D2IndexBuffer; - - public class CodecA3D2IndexBuffer implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_241:name_152; - - private var var_252:name_152; - - private var var_308:name_152; - - public function CodecA3D2IndexBuffer() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_241 = protocol.name_448(new name_148(ByteArray,false)); - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_308 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_byteBuffer:ByteArray = this.var_241.method_296(protocolBuffer) as ByteArray; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","byteBuffer",value_byteBuffer); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","id",value_id); - var value_indexCount:int = int(this.var_308.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","indexCount",value_indexCount); - return new A3D2IndexBuffer(value_byteBuffer,value_id,value_indexCount); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2IndexBuffer = A3D2IndexBuffer(object); - this.var_241.method_295(protocolBuffer,struct.byteBuffer); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_308.method_295(protocolBuffer,struct.indexCount); - } - } -} - diff --git a/src/package_60/CodecA3D2VertexBuffer.as b/src/package_60/CodecA3D2VertexBuffer.as deleted file mode 100644 index 069ef98..0000000 --- a/src/package_60/CodecA3D2VertexBuffer.as +++ /dev/null @@ -1,69 +0,0 @@ -package package_60 -{ - import flash.utils.ByteArray; - import package_32.name_148; - import package_32.name_149; - import package_32.name_209; - import package_33.name_156; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_52.A3D2VertexAttributes; - import package_52.A3D2VertexBuffer; - - public class CodecA3D2VertexBuffer implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_240:name_152; - - private var var_241:name_152; - - private var var_252:name_152; - - private var var_242:name_152; - - public function CodecA3D2VertexBuffer() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_240 = protocol.name_448(new name_149(new name_209(A3D2VertexAttributes,false),false,1)); - this.var_241 = protocol.name_448(new name_148(ByteArray,false)); - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_242 = protocol.name_448(new name_148(name_156,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_attributes:Vector. = this.var_240.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","attributes",value_attributes); - var value_byteBuffer:ByteArray = this.var_241.method_296(protocolBuffer) as ByteArray; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","byteBuffer",value_byteBuffer); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","id",value_id); - var value_vertexCount:uint = uint(this.var_242.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","vertexCount",value_vertexCount); - return new A3D2VertexBuffer(value_attributes,value_byteBuffer,value_id,value_vertexCount); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2VertexBuffer = A3D2VertexBuffer(object); - this.var_240.method_295(protocolBuffer,struct.attributes); - this.var_241.method_295(protocolBuffer,struct.byteBuffer); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_242.method_295(protocolBuffer,struct.vertexCount); - } - } -} - diff --git a/src/package_60/VectorCodecA3D2IndexBufferLevel1.as b/src/package_60/VectorCodecA3D2IndexBufferLevel1.as deleted file mode 100644 index ecb6922..0000000 --- a/src/package_60/VectorCodecA3D2IndexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_60 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2IndexBuffer; - - public class VectorCodecA3D2IndexBufferLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2IndexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2IndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2IndexBuffer(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_60/VectorCodecA3D2VertexAttributesLevel1.as b/src/package_60/VectorCodecA3D2VertexAttributesLevel1.as deleted file mode 100644 index f0cc807..0000000 --- a/src/package_60/VectorCodecA3D2VertexAttributesLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_60 -{ - import package_32.name_209; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2VertexAttributes; - - public class VectorCodecA3D2VertexAttributesLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexAttributesLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_209(A3D2VertexAttributes,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2VertexAttributes(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_60/VectorCodecA3D2VertexBufferLevel1.as b/src/package_60/VectorCodecA3D2VertexBufferLevel1.as deleted file mode 100644 index 3728e9b..0000000 --- a/src/package_60/VectorCodecA3D2VertexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_60 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_52.A3D2VertexBuffer; - - public class VectorCodecA3D2VertexBufferLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2VertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2VertexBuffer(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_61/CodecA3D2AnimationClip.as b/src/package_61/CodecA3D2AnimationClip.as deleted file mode 100644 index 578de84..0000000 --- a/src/package_61/CodecA3D2AnimationClip.as +++ /dev/null @@ -1,72 +0,0 @@ -package package_61 -{ - import package_32.name_148; - import package_32.name_149; - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_55.A3D2AnimationClip; - - public class CodecA3D2AnimationClip implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - private var var_306:name_152; - - private var var_253:name_152; - - private var var_304:name_152; - - private var var_305:name_152; - - public function CodecA3D2AnimationClip() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_306 = protocol.name_448(new name_148(Boolean,false)); - this.var_253 = protocol.name_448(new name_148(String,true)); - this.var_304 = protocol.name_448(new name_149(new name_148(name_155,false),true,1)); - this.var_305 = protocol.name_448(new name_149(new name_148(int,false),false,1)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","id",value_id); - var value_loop:Boolean = Boolean(this.var_306.method_296(protocolBuffer) as Boolean); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","loop",value_loop); - var value_name:String = this.var_253.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","name",value_name); - var value_objectIDs:Vector. = this.var_304.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","objectIDs",value_objectIDs); - var value_tracks:Vector. = this.var_305.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","tracks",value_tracks); - return new A3D2AnimationClip(value_id,value_loop,value_name,value_objectIDs,value_tracks); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2AnimationClip = A3D2AnimationClip(object); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_306.method_295(protocolBuffer,struct.loop); - this.var_253.method_295(protocolBuffer,struct.name); - this.var_304.method_295(protocolBuffer,struct.objectIDs); - this.var_305.method_295(protocolBuffer,struct.tracks); - } - } -} - diff --git a/src/package_61/CodecA3D2Keyframe.as b/src/package_61/CodecA3D2Keyframe.as deleted file mode 100644 index 0f20523..0000000 --- a/src/package_61/CodecA3D2Keyframe.as +++ /dev/null @@ -1,54 +0,0 @@ -package package_61 -{ - import package_32.name_148; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2Transform; - import alternativa.osgi.OSGi; - import package_55.A3D2Keyframe; - - public class CodecA3D2Keyframe implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_395:name_152; - - private var var_249:name_152; - - public function CodecA3D2Keyframe() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_395 = protocol.name_448(new name_148(name_157,false)); - this.var_249 = protocol.name_448(new name_148(A3D2Transform,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_time:Number = Number(this.var_395.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","time",value_time); - var value_transform:A3D2Transform = this.var_249.method_296(protocolBuffer) as A3D2Transform; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","transform",value_transform); - return new A3D2Keyframe(value_time,value_transform); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Keyframe = A3D2Keyframe(object); - this.var_395.method_295(protocolBuffer,struct.time); - this.var_249.method_295(protocolBuffer,struct.transform); - } - } -} - diff --git a/src/package_61/CodecA3D2Track.as b/src/package_61/CodecA3D2Track.as deleted file mode 100644 index 5a34f03..0000000 --- a/src/package_61/CodecA3D2Track.as +++ /dev/null @@ -1,60 +0,0 @@ -package package_61 -{ - import package_32.name_148; - import package_32.name_149; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_55.A3D2Keyframe; - import package_55.A3D2Track; - - public class CodecA3D2Track implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - private var var_394:name_152; - - private var var_393:name_152; - - public function CodecA3D2Track() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(int,false)); - this.var_394 = protocol.name_448(new name_149(new name_148(A3D2Keyframe,false),false,1)); - this.var_393 = protocol.name_448(new name_148(String,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:int = int(this.var_252.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","id",value_id); - var value_keyframes:Vector. = this.var_394.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","keyframes",value_keyframes); - var value_objectName:String = this.var_393.method_296(protocolBuffer) as String; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","objectName",value_objectName); - return new A3D2Track(value_id,value_keyframes,value_objectName); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Track = A3D2Track(object); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_394.method_295(protocolBuffer,struct.keyframes); - this.var_393.method_295(protocolBuffer,struct.objectName); - } - } -} - diff --git a/src/package_61/VectorCodecA3D2AnimationClipLevel1.as b/src/package_61/VectorCodecA3D2AnimationClipLevel1.as deleted file mode 100644 index cf1e17f..0000000 --- a/src/package_61/VectorCodecA3D2AnimationClipLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_61 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2AnimationClip; - - public class VectorCodecA3D2AnimationClipLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AnimationClipLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2AnimationClip,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2AnimationClip(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_61/VectorCodecA3D2KeyframeLevel1.as b/src/package_61/VectorCodecA3D2KeyframeLevel1.as deleted file mode 100644 index 5215f96..0000000 --- a/src/package_61/VectorCodecA3D2KeyframeLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_61 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2Keyframe; - - public class VectorCodecA3D2KeyframeLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2KeyframeLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Keyframe,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Keyframe(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_61/VectorCodecA3D2TrackLevel1.as b/src/package_61/VectorCodecA3D2TrackLevel1.as deleted file mode 100644 index 4f948b8..0000000 --- a/src/package_61/VectorCodecA3D2TrackLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_61 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_55.A3D2Track; - - public class VectorCodecA3D2TrackLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TrackLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3D2Track,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Track(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_62/CodecA3DGeometry.as b/src/package_62/CodecA3DGeometry.as deleted file mode 100644 index 994821b..0000000 --- a/src/package_62/CodecA3DGeometry.as +++ /dev/null @@ -1,62 +0,0 @@ -package package_62 -{ - import package_32.name_148; - import package_32.name_149; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_54.A3DGeometry; - import package_54.A3DIndexBuffer; - import package_54.A3DVertexBuffer; - import package_57.name_213; - - public class CodecA3DGeometry implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - private var var_275:name_152; - - private var var_248:name_152; - - public function CodecA3DGeometry() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(name_213,true)); - this.var_275 = protocol.name_448(new name_148(A3DIndexBuffer,true)); - this.var_248 = protocol.name_448(new name_149(new name_148(A3DVertexBuffer,false),true,1)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:name_213 = this.var_252.method_296(protocolBuffer) as name_213; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","id",value_id); - var value_indexBuffer:A3DIndexBuffer = this.var_275.method_296(protocolBuffer) as A3DIndexBuffer; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","indexBuffer",value_indexBuffer); - var value_vertexBuffers:Vector. = this.var_248.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","vertexBuffers",value_vertexBuffers); - return new A3DGeometry(value_id,value_indexBuffer,value_vertexBuffers); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DGeometry = A3DGeometry(object); - this.var_252.method_295(protocolBuffer,struct.id); - this.var_275.method_295(protocolBuffer,struct.indexBuffer); - this.var_248.method_295(protocolBuffer,struct.vertexBuffers); - } - } -} - diff --git a/src/package_62/CodecA3DIndexBuffer.as b/src/package_62/CodecA3DIndexBuffer.as deleted file mode 100644 index 93e40fb..0000000 --- a/src/package_62/CodecA3DIndexBuffer.as +++ /dev/null @@ -1,53 +0,0 @@ -package package_62 -{ - import flash.utils.ByteArray; - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_54.A3DIndexBuffer; - - public class CodecA3DIndexBuffer implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_241:name_152; - - private var var_308:name_152; - - public function CodecA3DIndexBuffer() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_241 = protocol.name_448(new name_148(ByteArray,true)); - this.var_308 = protocol.name_448(new name_148(int,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_byteBuffer:ByteArray = this.var_241.method_296(protocolBuffer) as ByteArray; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","byteBuffer",value_byteBuffer); - var value_indexCount:int = int(this.var_308.method_296(protocolBuffer) as int); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","indexCount",value_indexCount); - return new A3DIndexBuffer(value_byteBuffer,value_indexCount); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DIndexBuffer = A3DIndexBuffer(object); - this.var_241.method_295(protocolBuffer,struct.byteBuffer); - this.var_308.method_295(protocolBuffer,struct.indexCount); - } - } -} - diff --git a/src/package_62/CodecA3DVertexBuffer.as b/src/package_62/CodecA3DVertexBuffer.as deleted file mode 100644 index f652e4c..0000000 --- a/src/package_62/CodecA3DVertexBuffer.as +++ /dev/null @@ -1,62 +0,0 @@ -package package_62 -{ - import flash.utils.ByteArray; - import package_32.name_148; - import package_32.name_149; - import package_33.name_154; - import package_33.name_156; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_54.A3DVertexBuffer; - - public class CodecA3DVertexBuffer implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_240:name_152; - - private var var_241:name_152; - - private var var_242:name_152; - - public function CodecA3DVertexBuffer() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_240 = protocol.name_448(new name_149(new name_148(name_154,false),true,1)); - this.var_241 = protocol.name_448(new name_148(ByteArray,true)); - this.var_242 = protocol.name_448(new name_148(name_156,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_attributes:Vector. = this.var_240.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","attributes",value_attributes); - var value_byteBuffer:ByteArray = this.var_241.method_296(protocolBuffer) as ByteArray; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","byteBuffer",value_byteBuffer); - var value_vertexCount:uint = uint(this.var_242.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","vertexCount",value_vertexCount); - return new A3DVertexBuffer(value_attributes,value_byteBuffer,value_vertexCount); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DVertexBuffer = A3DVertexBuffer(object); - this.var_240.method_295(protocolBuffer,struct.attributes); - this.var_241.method_295(protocolBuffer,struct.byteBuffer); - this.var_242.method_295(protocolBuffer,struct.vertexCount); - } - } -} - diff --git a/src/package_62/VectorCodecA3DGeometryLevel1.as b/src/package_62/VectorCodecA3DGeometryLevel1.as deleted file mode 100644 index 4100c12..0000000 --- a/src/package_62/VectorCodecA3DGeometryLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_62 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DGeometry; - - public class VectorCodecA3DGeometryLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DGeometryLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DGeometry,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DGeometry(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_62/VectorCodecA3DIndexBufferLevel1.as b/src/package_62/VectorCodecA3DIndexBufferLevel1.as deleted file mode 100644 index ed11cd8..0000000 --- a/src/package_62/VectorCodecA3DIndexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_62 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DIndexBuffer; - - public class VectorCodecA3DIndexBufferLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DIndexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DIndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DIndexBuffer(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_62/VectorCodecA3DVertexBufferLevel1.as b/src/package_62/VectorCodecA3DVertexBufferLevel1.as deleted file mode 100644 index c217c18..0000000 --- a/src/package_62/VectorCodecA3DVertexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_62 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_54.A3DVertexBuffer; - - public class VectorCodecA3DVertexBufferLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DVertexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(A3DVertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DVertexBuffer(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_63/VectorCodecA3DMatrixLevel1.as b/src/package_63/VectorCodecA3DMatrixLevel1.as deleted file mode 100644 index 5b533cb..0000000 --- a/src/package_63/VectorCodecA3DMatrixLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_57.name_214; - - public class VectorCodecA3DMatrixLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMatrixLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_214,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = name_214(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_63/VectorCodecA3DMatrixLevel2.as b/src/package_63/VectorCodecA3DMatrixLevel2.as deleted file mode 100644 index 4b5b902..0000000 --- a/src/package_63/VectorCodecA3DMatrixLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_57.name_214; - - public class VectorCodecA3DMatrixLevel2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMatrixLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_214,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = name_214(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_63/VectorCodecA3DMatrixLevel3.as b/src/package_63/VectorCodecA3DMatrixLevel3.as deleted file mode 100644 index 50ce5bc..0000000 --- a/src/package_63/VectorCodecA3DMatrixLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_57.name_214; - - public class VectorCodecA3DMatrixLevel3 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMatrixLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_214,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length3 = name_443.name_445(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = name_214(this.elementCodec.method_296(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.name_444(false); - length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.method_295(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_63/VectorCodecIdLevel1.as b/src/package_63/VectorCodecIdLevel1.as deleted file mode 100644 index f346541..0000000 --- a/src/package_63/VectorCodecIdLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_57.name_213; - - public class VectorCodecIdLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecIdLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_213,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = name_213(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_63/VectorCodecIdLevel2.as b/src/package_63/VectorCodecIdLevel2.as deleted file mode 100644 index 98099be..0000000 --- a/src/package_63/VectorCodecIdLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_57.name_213; - - public class VectorCodecIdLevel2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecIdLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_213,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = name_213(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_63/VectorCodecIdLevel3.as b/src/package_63/VectorCodecIdLevel3.as deleted file mode 100644 index 5cbeb4e..0000000 --- a/src/package_63/VectorCodecIdLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_57.name_213; - - public class VectorCodecIdLevel3 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecIdLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_213,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length3 = name_443.name_445(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = name_213(this.elementCodec.method_296(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.name_444(false); - length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.method_295(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_63/name_216.as b/src/package_63/name_216.as deleted file mode 100644 index 2604c45..0000000 --- a/src/package_63/name_216.as +++ /dev/null @@ -1,46 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_57.name_213; - - public class name_216 implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - public function name_216() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(uint,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:uint = uint(this.var_252.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","commons.Id","id",value_id); - return new name_213(value_id); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:name_213 = name_213(object); - this.var_252.method_295(protocolBuffer,struct.id); - } - } -} - diff --git a/src/package_63/name_217.as b/src/package_63/name_217.as deleted file mode 100644 index 0e9f025..0000000 --- a/src/package_63/name_217.as +++ /dev/null @@ -1,113 +0,0 @@ -package package_63 -{ - import package_32.name_148; - import package_33.name_157; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_57.name_214; - - public class name_217 implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_333:name_152; - - private var var_327:name_152; - - private var var_331:name_152; - - private var var_329:name_152; - - private var var_326:name_152; - - private var var_328:name_152; - - private var var_332:name_152; - - private var var_325:name_152; - - private var var_334:name_152; - - private var var_330:name_152; - - private var var_324:name_152; - - private var var_323:name_152; - - public function name_217() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_333 = protocol.name_448(new name_148(name_157,false)); - this.var_327 = protocol.name_448(new name_148(name_157,false)); - this.var_331 = protocol.name_448(new name_148(name_157,false)); - this.var_329 = protocol.name_448(new name_148(name_157,false)); - this.var_326 = protocol.name_448(new name_148(name_157,false)); - this.var_328 = protocol.name_448(new name_148(name_157,false)); - this.var_332 = protocol.name_448(new name_148(name_157,false)); - this.var_325 = protocol.name_448(new name_148(name_157,false)); - this.var_334 = protocol.name_448(new name_148(name_157,false)); - this.var_330 = protocol.name_448(new name_148(name_157,false)); - this.var_324 = protocol.name_448(new name_148(name_157,false)); - this.var_323 = protocol.name_448(new name_148(name_157,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_a:Number = Number(this.var_333.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","a",value_a); - var value_b:Number = Number(this.var_327.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","b",value_b); - var value_c:Number = Number(this.var_331.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","c",value_c); - var value_d:Number = Number(this.var_329.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","d",value_d); - var value_e:Number = Number(this.var_326.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","e",value_e); - var value_f:Number = Number(this.var_328.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","f",value_f); - var value_g:Number = Number(this.var_332.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","g",value_g); - var value_h:Number = Number(this.var_325.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","h",value_h); - var value_i:Number = Number(this.var_334.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","i",value_i); - var value_j:Number = Number(this.var_330.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","j",value_j); - var value_k:Number = Number(this.var_324.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","k",value_k); - var value_l:Number = Number(this.var_323.method_296(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","l",value_l); - return new name_214(value_a,value_b,value_c,value_d,value_e,value_f,value_g,value_h,value_i,value_j,value_k,value_l); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:name_214 = name_214(object); - this.var_333.method_295(protocolBuffer,struct.a); - this.var_327.method_295(protocolBuffer,struct.b); - this.var_331.method_295(protocolBuffer,struct.c); - this.var_329.method_295(protocolBuffer,struct.d); - this.var_326.method_295(protocolBuffer,struct.e); - this.var_328.method_295(protocolBuffer,struct.f); - this.var_332.method_295(protocolBuffer,struct.g); - this.var_325.method_295(protocolBuffer,struct.h); - this.var_334.method_295(protocolBuffer,struct.i); - this.var_330.method_295(protocolBuffer,struct.j); - this.var_324.method_295(protocolBuffer,struct.k); - this.var_323.method_295(protocolBuffer,struct.l); - } - } -} - diff --git a/src/package_66/name_211.as b/src/package_66/name_211.as deleted file mode 100644 index 5086c4b..0000000 --- a/src/package_66/name_211.as +++ /dev/null @@ -1,303 +0,0 @@ -package package_66 -{ - import package_48.A3D2AmbientLight; - import package_48.A3D2Box; - import package_48.A3D2Decal; - import package_48.A3D2DirectionalLight; - import package_48.A3D2Joint; - import package_48.A3D2Mesh; - import package_48.A3D2Object; - import package_48.A3D2OmniLight; - import package_48.A3D2Skin; - import package_48.A3D2SpotLight; - import package_48.A3D2Sprite; - import package_51.A3D2CubeMap; - import package_51.A3D2Image; - import package_51.A3D2Map; - import package_51.A3D2Material; - import package_52.A3D2IndexBuffer; - import package_52.A3D2VertexBuffer; - import package_55.A3D2AnimationClip; - import package_55.A3D2Track; - - public class name_211 - { - private var var_397:Vector.; - - private var var_404:Vector.; - - private var var_402:Vector.; - - private var var_349:Vector.; - - private var var_405:Vector.; - - private var var_406:Vector.; - - private var var_401:Vector.; - - private var var_348:Vector.; - - private var var_398:Vector.; - - private var var_392:Vector.; - - private var var_347:Vector.; - - private var var_350:Vector.; - - private var var_400:Vector.; - - private var var_346:Vector.; - - private var var_399:Vector.; - - private var var_396:Vector.; - - private var var_145:Vector.; - - private var var_403:Vector.; - - private var var_277:Vector.; - - public function name_211(ambientLights:Vector., animationClips:Vector., animationTracks:Vector., boxes:Vector., cubeMaps:Vector., decals:Vector., directionalLights:Vector., images:Vector., indexBuffers:Vector., joints:Vector., maps:Vector., materials:Vector., meshes:Vector., objects:Vector., omniLights:Vector., skins:Vector., spotLights:Vector., sprites:Vector., vertexBuffers:Vector.) - { - super(); - this.var_397 = ambientLights; - this.var_404 = animationClips; - this.var_402 = animationTracks; - this.var_349 = boxes; - this.var_405 = cubeMaps; - this.var_406 = decals; - this.var_401 = directionalLights; - this.var_348 = images; - this.var_398 = indexBuffers; - this.var_392 = joints; - this.var_347 = maps; - this.var_350 = materials; - this.var_400 = meshes; - this.var_346 = objects; - this.var_399 = omniLights; - this.var_396 = skins; - this.var_145 = spotLights; - this.var_403 = sprites; - this.var_277 = vertexBuffers; - } - - public function get ambientLights() : Vector. - { - return this.var_397; - } - - public function set ambientLights(value:Vector.) : void - { - this.var_397 = value; - } - - public function get animationClips() : Vector. - { - return this.var_404; - } - - public function set animationClips(value:Vector.) : void - { - this.var_404 = value; - } - - public function get animationTracks() : Vector. - { - return this.var_402; - } - - public function set animationTracks(value:Vector.) : void - { - this.var_402 = value; - } - - public function get boxes() : Vector. - { - return this.var_349; - } - - public function set boxes(value:Vector.) : void - { - this.var_349 = value; - } - - public function get cubeMaps() : Vector. - { - return this.var_405; - } - - public function set cubeMaps(value:Vector.) : void - { - this.var_405 = value; - } - - public function get decals() : Vector. - { - return this.var_406; - } - - public function set decals(value:Vector.) : void - { - this.var_406 = value; - } - - public function get directionalLights() : Vector. - { - return this.var_401; - } - - public function set directionalLights(value:Vector.) : void - { - this.var_401 = value; - } - - public function get images() : Vector. - { - return this.var_348; - } - - public function set images(value:Vector.) : void - { - this.var_348 = value; - } - - public function get indexBuffers() : Vector. - { - return this.var_398; - } - - public function set indexBuffers(value:Vector.) : void - { - this.var_398 = value; - } - - public function get joints() : Vector. - { - return this.var_392; - } - - public function set joints(value:Vector.) : void - { - this.var_392 = value; - } - - public function get maps() : Vector. - { - return this.var_347; - } - - public function set maps(value:Vector.) : void - { - this.var_347 = value; - } - - public function get materials() : Vector. - { - return this.var_350; - } - - public function set materials(value:Vector.) : void - { - this.var_350 = value; - } - - public function get meshes() : Vector. - { - return this.var_400; - } - - public function set meshes(value:Vector.) : void - { - this.var_400 = value; - } - - public function get objects() : Vector. - { - return this.var_346; - } - - public function set objects(value:Vector.) : void - { - this.var_346 = value; - } - - public function get omniLights() : Vector. - { - return this.var_399; - } - - public function set omniLights(value:Vector.) : void - { - this.var_399 = value; - } - - public function get skins() : Vector. - { - return this.var_396; - } - - public function set skins(value:Vector.) : void - { - this.var_396 = value; - } - - public function get spotLights() : Vector. - { - return this.var_145; - } - - public function set spotLights(value:Vector.) : void - { - this.var_145 = value; - } - - public function get sprites() : Vector. - { - return this.var_403; - } - - public function set sprites(value:Vector.) : void - { - this.var_403 = value; - } - - public function get vertexBuffers() : Vector. - { - return this.var_277; - } - - public function set vertexBuffers(value:Vector.) : void - { - this.var_277 = value; - } - - public function toString() : String - { - var result:String = "A3D2 ["; - result += "ambientLights = " + this.ambientLights + " "; - result += "animationClips = " + this.animationClips + " "; - result += "animationTracks = " + this.animationTracks + " "; - result += "boxes = " + this.boxes + " "; - result += "cubeMaps = " + this.cubeMaps + " "; - result += "decals = " + this.decals + " "; - result += "directionalLights = " + this.directionalLights + " "; - result += "images = " + this.images + " "; - result += "indexBuffers = " + this.indexBuffers + " "; - result += "joints = " + this.joints + " "; - result += "maps = " + this.maps + " "; - result += "materials = " + this.materials + " "; - result += "meshes = " + this.meshes + " "; - result += "objects = " + this.objects + " "; - result += "omniLights = " + this.omniLights + " "; - result += "skins = " + this.skins + " "; - result += "spotLights = " + this.spotLights + " "; - result += "sprites = " + this.sprites + " "; - result += "vertexBuffers = " + this.vertexBuffers + " "; - return result + "]"; - } - } -} - diff --git a/src/package_67/VectorCodecA3DLevel1.as b/src/package_67/VectorCodecA3DLevel1.as deleted file mode 100644 index cb68226..0000000 --- a/src/package_67/VectorCodecA3DLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_67 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_65.name_210; - - public class VectorCodecA3DLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_210,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = name_210(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_67/VectorCodecA3DLevel2.as b/src/package_67/VectorCodecA3DLevel2.as deleted file mode 100644 index 317fc6e..0000000 --- a/src/package_67/VectorCodecA3DLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_67 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_65.name_210; - - public class VectorCodecA3DLevel2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_210,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = name_210(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_67/VectorCodecA3DLevel3.as b/src/package_67/VectorCodecA3DLevel3.as deleted file mode 100644 index 4a63066..0000000 --- a/src/package_67/VectorCodecA3DLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_67 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_65.name_210; - - public class VectorCodecA3DLevel3 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3DLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_210,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length3 = name_443.name_445(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = name_210(this.elementCodec.method_296(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.name_444(false); - length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.method_295(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_67/name_219.as b/src/package_67/name_219.as deleted file mode 100644 index 5fdfd13..0000000 --- a/src/package_67/name_219.as +++ /dev/null @@ -1,83 +0,0 @@ -package package_67 -{ - import package_32.name_148; - import package_32.name_149; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_50.A3DBox; - import package_50.A3DObject; - import package_53.A3DImage; - import package_53.A3DMap; - import package_53.A3DMaterial; - import package_54.A3DGeometry; - import package_65.name_210; - - public class name_219 implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_356:name_152; - - private var var_419:name_152; - - private var var_355:name_152; - - private var var_366:name_152; - - private var var_361:name_152; - - private var var_360:name_152; - - public function name_219() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_356 = protocol.name_448(new name_149(new name_148(A3DBox,false),true,1)); - this.var_419 = protocol.name_448(new name_149(new name_148(A3DGeometry,false),true,1)); - this.var_355 = protocol.name_448(new name_149(new name_148(A3DImage,false),true,1)); - this.var_366 = protocol.name_448(new name_149(new name_148(A3DMap,false),true,1)); - this.var_361 = protocol.name_448(new name_149(new name_148(A3DMaterial,false),true,1)); - this.var_360 = protocol.name_448(new name_149(new name_148(A3DObject,false),true,1)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_boxes:Vector. = this.var_356.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","boxes",value_boxes); - var value_geometries:Vector. = this.var_419.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","geometries",value_geometries); - var value_images:Vector. = this.var_355.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","images",value_images); - var value_maps:Vector. = this.var_366.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","maps",value_maps); - var value_materials:Vector. = this.var_361.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","materials",value_materials); - var value_objects:Vector. = this.var_360.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","objects",value_objects); - return new name_210(value_boxes,value_geometries,value_images,value_maps,value_materials,value_objects); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:name_210 = name_210(object); - this.var_356.method_295(protocolBuffer,struct.boxes); - this.var_419.method_295(protocolBuffer,struct.geometries); - this.var_355.method_295(protocolBuffer,struct.images); - this.var_366.method_295(protocolBuffer,struct.maps); - this.var_361.method_295(protocolBuffer,struct.materials); - this.var_360.method_295(protocolBuffer,struct.objects); - } - } -} - diff --git a/src/package_68/VectorCodecA3D2Level1.as b/src/package_68/VectorCodecA3D2Level1.as deleted file mode 100644 index d8b32f9..0000000 --- a/src/package_68/VectorCodecA3D2Level1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_68 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_66.name_211; - - public class VectorCodecA3D2Level1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2Level1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_211,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = name_211(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_68/VectorCodecA3D2Level2.as b/src/package_68/VectorCodecA3D2Level2.as deleted file mode 100644 index 4f6e388..0000000 --- a/src/package_68/VectorCodecA3D2Level2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_68 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_66.name_211; - - public class VectorCodecA3D2Level2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2Level2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_211,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = name_211(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_68/VectorCodecA3D2Level3.as b/src/package_68/VectorCodecA3D2Level3.as deleted file mode 100644 index d175e0d..0000000 --- a/src/package_68/VectorCodecA3D2Level3.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_68 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_66.name_211; - - public class VectorCodecA3D2Level3 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2Level3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_211,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length3 = name_443.name_445(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = name_211(this.elementCodec.method_296(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.name_444(false); - length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.method_295(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_68/name_218.as b/src/package_68/name_218.as deleted file mode 100644 index b309da9..0000000 --- a/src/package_68/name_218.as +++ /dev/null @@ -1,174 +0,0 @@ -package package_68 -{ - import package_32.name_148; - import package_32.name_149; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import package_48.A3D2AmbientLight; - import package_48.A3D2Box; - import package_48.A3D2Decal; - import package_48.A3D2DirectionalLight; - import package_48.A3D2Joint; - import package_48.A3D2Mesh; - import package_48.A3D2Object; - import package_48.A3D2OmniLight; - import package_48.A3D2Skin; - import package_48.A3D2SpotLight; - import package_48.A3D2Sprite; - import alternativa.osgi.OSGi; - import package_51.A3D2CubeMap; - import package_51.A3D2Image; - import package_51.A3D2Map; - import package_51.A3D2Material; - import package_52.A3D2IndexBuffer; - import package_52.A3D2VertexBuffer; - import package_55.A3D2AnimationClip; - import package_55.A3D2Track; - import package_66.name_211; - - public class name_218 implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_351:name_152; - - private var var_365:name_152; - - private var var_364:name_152; - - private var var_356:name_152; - - private var var_352:name_152; - - private var var_353:name_152; - - private var var_359:name_152; - - private var var_355:name_152; - - private var var_358:name_152; - - private var var_251:name_152; - - private var var_366:name_152; - - private var var_361:name_152; - - private var var_362:name_152; - - private var var_360:name_152; - - private var var_354:name_152; - - private var var_363:name_152; - - private var var_357:name_152; - - private var var_367:name_152; - - private var var_248:name_152; - - public function name_218() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_351 = protocol.name_448(new name_149(new name_148(A3D2AmbientLight,false),true,1)); - this.var_365 = protocol.name_448(new name_149(new name_148(A3D2AnimationClip,false),true,1)); - this.var_364 = protocol.name_448(new name_149(new name_148(A3D2Track,false),true,1)); - this.var_356 = protocol.name_448(new name_149(new name_148(A3D2Box,false),true,1)); - this.var_352 = protocol.name_448(new name_149(new name_148(A3D2CubeMap,false),true,1)); - this.var_353 = protocol.name_448(new name_149(new name_148(A3D2Decal,false),true,1)); - this.var_359 = protocol.name_448(new name_149(new name_148(A3D2DirectionalLight,false),true,1)); - this.var_355 = protocol.name_448(new name_149(new name_148(A3D2Image,false),true,1)); - this.var_358 = protocol.name_448(new name_149(new name_148(A3D2IndexBuffer,false),true,1)); - this.var_251 = protocol.name_448(new name_149(new name_148(A3D2Joint,false),true,1)); - this.var_366 = protocol.name_448(new name_149(new name_148(A3D2Map,false),true,1)); - this.var_361 = protocol.name_448(new name_149(new name_148(A3D2Material,false),true,1)); - this.var_362 = protocol.name_448(new name_149(new name_148(A3D2Mesh,false),true,1)); - this.var_360 = protocol.name_448(new name_149(new name_148(A3D2Object,false),true,1)); - this.var_354 = protocol.name_448(new name_149(new name_148(A3D2OmniLight,false),true,1)); - this.var_363 = protocol.name_448(new name_149(new name_148(A3D2Skin,false),true,1)); - this.var_357 = protocol.name_448(new name_149(new name_148(A3D2SpotLight,false),true,1)); - this.var_367 = protocol.name_448(new name_149(new name_148(A3D2Sprite,false),true,1)); - this.var_248 = protocol.name_448(new name_149(new name_148(A3D2VertexBuffer,false),true,1)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_ambientLights:Vector. = this.var_351.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","ambientLights",value_ambientLights); - var value_animationClips:Vector. = this.var_365.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationClips",value_animationClips); - var value_animationTracks:Vector. = this.var_364.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationTracks",value_animationTracks); - var value_boxes:Vector. = this.var_356.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","boxes",value_boxes); - var value_cubeMaps:Vector. = this.var_352.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","cubeMaps",value_cubeMaps); - var value_decals:Vector. = this.var_353.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","decals",value_decals); - var value_directionalLights:Vector. = this.var_359.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","directionalLights",value_directionalLights); - var value_images:Vector. = this.var_355.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","images",value_images); - var value_indexBuffers:Vector. = this.var_358.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","indexBuffers",value_indexBuffers); - var value_joints:Vector. = this.var_251.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","joints",value_joints); - var value_maps:Vector. = this.var_366.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","maps",value_maps); - var value_materials:Vector. = this.var_361.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","materials",value_materials); - var value_meshes:Vector. = this.var_362.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","meshes",value_meshes); - var value_objects:Vector. = this.var_360.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","objects",value_objects); - var value_omniLights:Vector. = this.var_354.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","omniLights",value_omniLights); - var value_skins:Vector. = this.var_363.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","skins",value_skins); - var value_spotLights:Vector. = this.var_357.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","spotLights",value_spotLights); - var value_sprites:Vector. = this.var_367.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","sprites",value_sprites); - var value_vertexBuffers:Vector. = this.var_248.method_296(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","vertexBuffers",value_vertexBuffers); - return new name_211(value_ambientLights,value_animationClips,value_animationTracks,value_boxes,value_cubeMaps,value_decals,value_directionalLights,value_images,value_indexBuffers,value_joints,value_maps,value_materials,value_meshes,value_objects,value_omniLights,value_skins,value_spotLights,value_sprites,value_vertexBuffers); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:name_211 = name_211(object); - this.var_351.method_295(protocolBuffer,struct.ambientLights); - this.var_365.method_295(protocolBuffer,struct.animationClips); - this.var_364.method_295(protocolBuffer,struct.animationTracks); - this.var_356.method_295(protocolBuffer,struct.boxes); - this.var_352.method_295(protocolBuffer,struct.cubeMaps); - this.var_353.method_295(protocolBuffer,struct.decals); - this.var_359.method_295(protocolBuffer,struct.directionalLights); - this.var_355.method_295(protocolBuffer,struct.images); - this.var_358.method_295(protocolBuffer,struct.indexBuffers); - this.var_251.method_295(protocolBuffer,struct.joints); - this.var_366.method_295(protocolBuffer,struct.maps); - this.var_361.method_295(protocolBuffer,struct.materials); - this.var_362.method_295(protocolBuffer,struct.meshes); - this.var_360.method_295(protocolBuffer,struct.objects); - this.var_354.method_295(protocolBuffer,struct.omniLights); - this.var_363.method_295(protocolBuffer,struct.skins); - this.var_357.method_295(protocolBuffer,struct.spotLights); - this.var_367.method_295(protocolBuffer,struct.sprites); - this.var_248.method_295(protocolBuffer,struct.vertexBuffers); - } - } -} - diff --git a/src/package_69/VectorCodecParentIdLevel1.as b/src/package_69/VectorCodecParentIdLevel1.as deleted file mode 100644 index e4b9331..0000000 --- a/src/package_69/VectorCodecParentIdLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package package_69 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_64.name_212; - - public class VectorCodecParentIdLevel1 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecParentIdLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_212,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length:int = name_443.name_445(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = name_212(this.elementCodec.method_296(protocolBuffer)); - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - name_443.name_446(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.method_295(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/package_69/VectorCodecParentIdLevel2.as b/src/package_69/VectorCodecParentIdLevel2.as deleted file mode 100644 index ffc5fed..0000000 --- a/src/package_69/VectorCodecParentIdLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package package_69 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_64.name_212; - - public class VectorCodecParentIdLevel2 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecParentIdLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_212,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = name_212(this.elementCodec.method_296(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.method_295(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_69/VectorCodecParentIdLevel3.as b/src/package_69/VectorCodecParentIdLevel3.as deleted file mode 100644 index d053405..0000000 --- a/src/package_69/VectorCodecParentIdLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_69 -{ - import package_32.name_148; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_38.name_443; - import package_64.name_212; - - public class VectorCodecParentIdLevel3 implements name_152 - { - private var elementCodec:name_152; - - private var optionalElement:Boolean; - - public function VectorCodecParentIdLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:name_163) : void - { - this.elementCodec = protocol.name_448(new name_148(name_212,false)); - if(this.optionalElement) - { - this.elementCodec = new name_150(this.elementCodec); - } - } - - public function method_296(protocolBuffer:name_442) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = name_443.name_445(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length2 = name_443.name_445(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.name_447()) - { - length3 = name_443.name_445(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = name_212(this.elementCodec.method_296(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - name_443.name_446(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.name_444(false); - length2 = int(items2.length); - name_443.name_446(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.name_444(false); - length3 = int(items3.length); - name_443.name_446(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.method_295(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - else - { - protocolBuffer.optionalMap.name_444(true); - } - } - } - } -} - diff --git a/src/package_69/name_215.as b/src/package_69/name_215.as deleted file mode 100644 index 9a4be34..0000000 --- a/src/package_69/name_215.as +++ /dev/null @@ -1,46 +0,0 @@ -package package_69 -{ - import package_32.name_148; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - import package_39.name_160; - import alternativa.osgi.OSGi; - import package_64.name_212; - - public class name_215 implements name_152 - { - public static var log:name_160 = name_160(OSGi.name_8().name_30(name_160)); - - private var var_252:name_152; - - public function name_215() - { - super(); - } - - public function init(protocol:name_163) : void - { - this.var_252 = protocol.name_448(new name_148(uint,false)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - log = name_160(OSGi.name_8().name_30(name_160)); - var value_id:uint = uint(this.var_252.method_296(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.id.ParentId","id",value_id); - return new name_212(value_id); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:name_212 = name_212(object); - this.var_252.method_295(protocolBuffer,struct.id); - } - } -} - diff --git a/src/package_70/name_224.as b/src/package_70/name_224.as deleted file mode 100644 index 6c3cc0f..0000000 --- a/src/package_70/name_224.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_70 -{ - import package_36.name_163; - import package_36.name_442; - - public class name_224 implements name_451 - { - public function name_224() - { - super(); - } - - public function name_452() : Object - { - return int.MIN_VALUE; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeShort(int(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readShort(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_225.as b/src/package_70/name_225.as deleted file mode 100644 index dace750..0000000 --- a/src/package_70/name_225.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_70 -{ - import package_36.name_163; - import package_36.name_442; - - public class name_225 implements name_451 - { - public function name_225() - { - super(); - } - - public function name_452() : Object - { - return int.MAX_VALUE; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeByte(int(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readByte(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_226.as b/src/package_70/name_226.as deleted file mode 100644 index 596ff8f..0000000 --- a/src/package_70/name_226.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_70 -{ - import package_36.name_163; - import package_36.name_442; - - public class name_226 implements name_451 - { - public function name_226() - { - super(); - } - - public function name_452() : Object - { - return Number.NEGATIVE_INFINITY; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeFloat(Number(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readFloat(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_227.as b/src/package_70/name_227.as deleted file mode 100644 index c311fd5..0000000 --- a/src/package_70/name_227.as +++ /dev/null @@ -1,31 +0,0 @@ -package package_70 -{ - import package_33.name_155; - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - - public class name_227 implements name_152 - { - public function name_227() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeInt(name_155(object).high); - protocolBuffer.name_483.writeInt(name_155(object).low); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return name_155.method_298(protocolBuffer.reader.readInt(),protocolBuffer.reader.readInt()); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_228.as b/src/package_70/name_228.as deleted file mode 100644 index af2870c..0000000 --- a/src/package_70/name_228.as +++ /dev/null @@ -1,29 +0,0 @@ -package package_70 -{ - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - - public class name_228 implements name_152 - { - public function name_228() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeUnsignedInt(uint(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readUnsignedInt(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_229.as b/src/package_70/name_229.as deleted file mode 100644 index 228b1e8..0000000 --- a/src/package_70/name_229.as +++ /dev/null @@ -1,29 +0,0 @@ -package package_70 -{ - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - - public class name_229 implements name_152 - { - public function name_229() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeUnsignedInt(uint(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readUnsignedByte(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_230.as b/src/package_70/name_230.as deleted file mode 100644 index ed933f0..0000000 --- a/src/package_70/name_230.as +++ /dev/null @@ -1,29 +0,0 @@ -package package_70 -{ - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - - public class name_230 implements name_152 - { - public function name_230() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - throw new Error("Not implemented"); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readUnsignedShort(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_231.as b/src/package_70/name_231.as deleted file mode 100644 index 38480be..0000000 --- a/src/package_70/name_231.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_70 -{ - import package_36.name_163; - import package_36.name_442; - - public class name_231 implements name_451 - { - public function name_231() - { - super(); - } - - public function name_452() : Object - { - return Number.NEGATIVE_INFINITY; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeDouble(Number(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readDouble(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_232.as b/src/package_70/name_232.as deleted file mode 100644 index c680887..0000000 --- a/src/package_70/name_232.as +++ /dev/null @@ -1,33 +0,0 @@ -package package_70 -{ - import package_36.name_163; - import package_36.name_442; - - public class name_232 implements name_451 - { - public function name_232() - { - super(); - } - - public function name_452() : Object - { - return int.MIN_VALUE; - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeInt(int(object)); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readInt(); - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_70/name_451.as b/src/package_70/name_451.as deleted file mode 100644 index 9e08a96..0000000 --- a/src/package_70/name_451.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_70 -{ - import package_36.name_152; - - public interface name_451 extends name_152 - { - function name_452() : Object; - } -} - diff --git a/src/package_70/name_458.as b/src/package_70/name_458.as deleted file mode 100644 index 844576d..0000000 --- a/src/package_70/name_458.as +++ /dev/null @@ -1,29 +0,0 @@ -package package_70 -{ - import package_36.name_152; - import package_36.name_163; - import package_36.name_442; - - public class name_458 implements name_152 - { - public function name_458() - { - super(); - } - - public function method_295(protocolBuffer:name_442, object:Object) : void - { - protocolBuffer.name_483.writeByte(!!Boolean(object) ? int(int(1)) : int(int(0))); - } - - public function method_296(protocolBuffer:name_442) : Object - { - return protocolBuffer.reader.readByte() != 0; - } - - public function init(protocol:name_163) : void - { - } - } -} - diff --git a/src/package_71/class_10.as b/src/package_71/class_10.as deleted file mode 100644 index 73ee0a7..0000000 --- a/src/package_71/class_10.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_71 -{ - public interface class_10 - { - function onTurretControlChanged(param1:int, param2:Boolean) : void; - } -} - diff --git a/src/package_71/class_29.as b/src/package_71/class_29.as deleted file mode 100644 index a747c50..0000000 --- a/src/package_71/class_29.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_71 -{ - public interface class_29 - { - function method_448(param1:int, param2:int, param3:Boolean) : void; - - function method_447() : void; - } -} - diff --git a/src/package_71/class_30.as b/src/package_71/class_30.as deleted file mode 100644 index 6bb8164..0000000 --- a/src/package_71/class_30.as +++ /dev/null @@ -1,27 +0,0 @@ -package package_71 -{ - import package_46.name_194; - import package_46.name_566; - - public interface class_30 - { - function setChassisControls(param1:int, param2:int, param3:Boolean, param4:Boolean = false) : Boolean; - - function name_201(param1:name_194) : void; - - function name_75(param1:Number, param2:Number, param3:Number) : void; - - function method_478(param1:name_194) : void; - - function setLinearVelocityXYZ(param1:Number, param2:Number, param3:Number) : void; - - function method_477(param1:name_194) : void; - - function setAngularVelocityXYZ(param1:Number, param2:Number, param3:Number) : void; - - function name_352(param1:name_566) : void; - - function method_479(param1:Number, param2:Number, param3:Number) : void; - } -} - diff --git a/src/package_71/name_234.as b/src/package_71/name_234.as deleted file mode 100644 index b01b6bd..0000000 --- a/src/package_71/name_234.as +++ /dev/null @@ -1,20 +0,0 @@ -package package_71 -{ - import package_46.name_194; - import package_86.name_484; - - public class name_234 extends name_333 - { - public var var_422:Vector. = new Vector.(); - - public var var_421:Vector. = new Vector.(); - - public var var_423:name_194 = new name_194(); - - public function name_234() - { - super(); - } - } -} - diff --git a/src/package_71/name_249.as b/src/package_71/name_249.as deleted file mode 100644 index c99b3fc..0000000 --- a/src/package_71/name_249.as +++ /dev/null @@ -1,44 +0,0 @@ -package package_71 -{ - import package_19.name_380; - import package_19.name_528; - import package_46.name_194; - import package_86.name_484; - - public class name_249 extends name_333 - { - public var name_538:name_194 = new name_194(); - - public var name_533:name_194 = new name_194(); - - public var name_536:name_194 = new name_194(); - - public var name_517:name_484; - - public var name_534:Vector. = new Vector.(); - - public var name_535:Vector. = new Vector.(); - - public var name_539:Vector. = new Vector.(); - - public var name_537:Vector. = new Vector.(); - - public var name_597:Number = 1; - - public var name_325:Vector. = new Vector.(); - - public var name_323:Vector. = new Vector.(); - - public var name_337:name_528; - - public var name_340:name_528; - - public var shadow:name_380; - - public function name_249() - { - super(); - } - } -} - diff --git a/src/package_71/name_277.as b/src/package_71/name_277.as deleted file mode 100644 index e8f2150..0000000 --- a/src/package_71/name_277.as +++ /dev/null @@ -1,19 +0,0 @@ -package package_71 -{ - import package_4.class_5; - - public class name_277 - { - public var normalMaterial:class_5; - - public var deadMaterial:class_5; - - public function name_277(normalMaterial:class_5, deadMaterial:class_5) - { - super(); - this.normalMaterial = normalMaterial; - this.deadMaterial = deadMaterial; - } - } -} - diff --git a/src/package_71/name_311.as b/src/package_71/name_311.as deleted file mode 100644 index c0e5f36..0000000 --- a/src/package_71/name_311.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_71 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.GameEvents; - import alternativa.utils.KeyboardUtils; - import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_42.name_477; - import package_75.class_15; - - public class name_311 extends EntityComponent implements name_477 - { - private static const KEY_LEFT:int = KeyboardUtils.Z; - - private static const KEY_RIGHT:int = KeyboardUtils.X; - - private static const KEY_CENTER:int = KeyboardUtils.C; - - private var callback:class_10; - - private var physicsComponent:class_15; - - private var gameKernel:GameKernel; - - private var name_308:Boolean; - - private var center:Boolean; - - private var input:IInput; - - public function name_311(callback:class_10) - { - super(); - if(callback == null) - { - throw new Error("Parameter callback is null"); - } - this.callback = callback; - } - - override public function initComponent() : void - { - this.physicsComponent = class_15(entity.getComponentStrict(class_15)); - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.method_410); - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.method_410); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.method_408); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.method_408); - entity.addEventHandler(name_252.SET_DISABLED_STATE,this.method_408); - entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.method_386); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - this.input = gameKernel.name_66(); - this.input.name_94(KeyboardEventType.KEY_DOWN,this.method_15,KEY_CENTER); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.method_409(); - this.input.name_384(KeyboardEventType.KEY_DOWN,this.method_15,KEY_CENTER); - } - - public function runLogic() : void - { - var turnDirection:int = this.input.name_192(KEY_LEFT) - this.input.name_192(KEY_RIGHT); - if(this.physicsComponent.setTurretControls(turnDirection)) - { - this.callback.onTurretControlChanged(turnDirection,false); - } - if(this.center) - { - this.physicsComponent.centerTurret(true); - this.callback.onTurretControlChanged(0,true); - this.center = false; - } - } - - private function method_410(eventType:String, data:*) : void - { - this.name_108(); - } - - private function method_408(eventType:String, data:*) : void - { - this.method_409(); - } - - private function name_108() : void - { - if(!this.name_308) - { - this.name_308 = true; - this.gameKernel.getLogicSystem1().addLogicUnit(this); - } - } - - private function method_409() : void - { - if(this.name_308) - { - this.name_308 = false; - this.gameKernel.getLogicSystem1().removeLogicUnit(this); - } - } - - private function method_386(eventType:String, eventData:*) : void - { - this.method_409(); - } - - private function method_15(eventType:KeyboardEventType, keyCode:uint) : void - { - } - } -} - diff --git a/src/package_71/name_315.as b/src/package_71/name_315.as deleted file mode 100644 index dffd9c1..0000000 --- a/src/package_71/name_315.as +++ /dev/null @@ -1,132 +0,0 @@ -package package_71 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.GameEvents; - import alternativa.utils.KeyboardUtils; - import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_42.name_477; - import alternativa.tanks.game.weapons.IBasicWeapon; - - public class name_315 extends EntityComponent implements name_477 - { - private static const KEY_FIRE:uint = KeyboardUtils.SPACE; - - private var gameKernel:GameKernel; - - private var name_308:Boolean; - - private var var_442:IBasicWeapon; - - private var var_508:Boolean; - - private var var_507:Boolean; - - public function name_315() - { - super(); - } - - override public function initComponent() : void - { - this.var_442 = IBasicWeapon(entity.getComponentStrict(IBasicWeapon)); - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.method_408); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.method_408); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.method_408); - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.method_410); - entity.addEventHandler(name_252.SET_DISABLED_STATE,this.method_408); - entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.method_386); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - var inputSystem:IInput = gameKernel.name_66(); - inputSystem.name_94(KeyboardEventType.KEY_DOWN,this.method_193,KEY_FIRE); - inputSystem.name_94(KeyboardEventType.KEY_UP,this.method_193,KEY_FIRE); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.method_409(); - var inputSystem:IInput = gameKernel.name_66(); - inputSystem.name_384(KeyboardEventType.KEY_DOWN,this.method_193,KEY_FIRE); - inputSystem.name_384(KeyboardEventType.KEY_UP,this.method_193,KEY_FIRE); - } - - public function runLogic() : void - { - if(this.var_508) - { - this.var_442.method_394(); - if(this.var_507) - { - this.var_442.method_395(); - } - } - if(this.var_507) - { - this.var_442.method_393(); - } - this.var_508 = false; - this.var_507 = false; - } - - private function method_193(eventType:KeyboardEventType, keyCode:uint) : void - { - switch(eventType) - { - case KeyboardEventType.KEY_DOWN: - this.var_508 = true; - if(!this.name_308) - { - this.var_507 = false; - } - break; - case KeyboardEventType.KEY_UP: - this.var_507 = true; - if(!this.name_308) - { - this.var_442.method_393(); - this.var_508 = false; - break; - } - } - } - - private function name_108() : void - { - if(!this.name_308) - { - this.name_308 = true; - this.gameKernel.getLogicSystem1().addLogicUnit(this); - } - } - - private function method_409() : void - { - if(this.name_308) - { - this.name_308 = false; - this.gameKernel.getLogicSystem1().removeLogicUnit(this); - } - } - - private function method_408(eventType:String, data:*) : void - { - this.method_409(); - } - - private function method_410(eventType:String, data:*) : void - { - this.name_108(); - } - - private function method_386(gameType:String, gameData:*) : void - { - this.method_409(); - } - } -} - diff --git a/src/package_71/name_316.as b/src/package_71/name_316.as deleted file mode 100644 index b540400..0000000 --- a/src/package_71/name_316.as +++ /dev/null @@ -1,114 +0,0 @@ -package package_71 -{ - import flash.ui.Keyboard; - import alternativa.osgi.service.console.variables.ConsoleVarInt; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.GameEvents; - import alternativa.tanks.game.subsystems.inputsystem.IInput; - import package_42.name_477; - import package_45.name_182; - - public class name_316 extends EntityComponent implements name_477 - { - private static const KEY_FORWARD:uint = Keyboard.UP; - - private static const KEY_BACK:uint = Keyboard.DOWN; - - private static const KEY_LEFT:uint = Keyboard.LEFT; - - private static const KEY_RIGHT:uint = Keyboard.RIGHT; - - private static var conReverseBackTurn:ConsoleVarInt = new ConsoleVarInt("reverse_back_turn",1,0,1); - - private static const SYNC_INTERVAL:int = 4000; - - private var input:IInput; - - private var physicsComponent:class_30; - - private var gameKernel:GameKernel; - - private var callback:class_29; - - private var name_308:Boolean; - - private var var_503:int; - - public function name_316(callback:class_29) - { - super(); - this.callback = callback; - } - - override public function initComponent() : void - { - this.physicsComponent = class_30(entity.getComponentStrict(class_30)); - entity.addEventHandler(name_252.SET_ACTIVATING_STATE,this.method_410); - entity.addEventHandler(name_252.SET_ACTIVE_STATE,this.method_410); - entity.addEventHandler(name_252.SET_DEAD_STATE,this.method_408); - entity.addEventHandler(name_252.SET_RESPAWN_STATE,this.method_408); - entity.addEventHandler(name_252.SET_DISABLED_STATE,this.method_408); - entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.method_386); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - this.input = gameKernel.name_66(); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.method_409(); - } - - public function runLogic() : void - { - var moveDirection:int = this.input.name_192(KEY_FORWARD) - this.input.name_192(KEY_BACK); - var turnDirection:int = this.input.name_192(KEY_RIGHT) - this.input.name_192(KEY_LEFT); - if(Boolean(this.physicsComponent.setChassisControls(moveDirection,turnDirection,Boolean(conReverseBackTurn.value))) || name_182.time - this.var_503 > SYNC_INTERVAL) - { - if(this.callback != null) - { - this.callback.method_448(moveDirection,turnDirection,Boolean(conReverseBackTurn.value)); - } - this.var_503 = name_182.time; - } - } - - private function method_410(eventType:String, eventData:*) : void - { - this.name_108(); - } - - private function method_408(eventType:String, eventData:*) : void - { - this.method_409(); - } - - private function name_108() : void - { - if(!this.name_308) - { - this.name_308 = true; - this.gameKernel.getLogicSystem1().addLogicUnit(this); - } - } - - private function method_409() : void - { - if(this.name_308) - { - this.name_308 = false; - this.gameKernel.getLogicSystem1().removeLogicUnit(this); - } - } - - private function method_386(gameType:String, gameData:*) : void - { - this.method_409(); - } - } -} - diff --git a/src/package_71/name_318.as b/src/package_71/name_318.as deleted file mode 100644 index 121a956..0000000 --- a/src/package_71/name_318.as +++ /dev/null @@ -1,23 +0,0 @@ -package package_71 -{ - import package_28.name_119; - import package_46.name_194; - - public class name_318 - { - public var name:String; - - public var geometry:name_119; - - public var position:name_194; - - public function name_318(name:String, geometry:name_119, position:name_194) - { - super(); - this.name = name; - this.geometry = geometry; - this.position = position; - } - } -} - diff --git a/src/package_71/name_333.as b/src/package_71/name_333.as deleted file mode 100644 index e1c7c28..0000000 --- a/src/package_71/name_333.as +++ /dev/null @@ -1,20 +0,0 @@ -package package_71 -{ - import alternativa.utils.ByteArrayMap; - import package_28.name_119; - - public class name_333 - { - public var id:String; - - public var geometry:name_119; - - public var textureData:ByteArrayMap = new ByteArrayMap(); - - public function name_333() - { - super(); - } - } -} - diff --git a/src/package_71/name_563.as b/src/package_71/name_563.as deleted file mode 100644 index a9cc611..0000000 --- a/src/package_71/name_563.as +++ /dev/null @@ -1,31 +0,0 @@ -package package_71 -{ - public class name_563 - { - public static const PAUSED:name_563 = new name_563("PAUSED"); - - public static const DEAD:name_563 = new name_563("DEAD"); - - public static const ACTIVATING:name_563 = new name_563("ACTIVATING"); - - public static const ACTIVE:name_563 = new name_563("ACTIVE"); - - public static const IN_RESPAWN:name_563 = new name_563("IN_RESPAWN"); - - public static const DISABLED:name_563 = new name_563("DISABLED"); - - private var stringValue:String; - - public function name_563(code:String) - { - super(); - this.stringValue = code; - } - - public function toString() : String - { - return this.stringValue; - } - } -} - diff --git a/src/package_71/name_720.as b/src/package_71/name_720.as deleted file mode 100644 index e4c9eff..0000000 --- a/src/package_71/name_720.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_71 -{ - public interface name_720 - { - function name_721() : void; - } -} - diff --git a/src/package_72/class_12.as b/src/package_72/class_12.as deleted file mode 100644 index a0909c7..0000000 --- a/src/package_72/class_12.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_72 -{ - import package_46.name_194; - - public interface class_12 - { - function createEffects(param1:name_194, param2:Number, param3:Number) : void; - } -} - diff --git a/src/package_72/name_295.as b/src/package_72/name_295.as deleted file mode 100644 index f9e5f31..0000000 --- a/src/package_72/name_295.as +++ /dev/null @@ -1,122 +0,0 @@ -package package_72 -{ - import flash.media.Sound; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_115.class_26; - import package_28.name_129; - import package_46.name_194; - import package_75.class_15; - - public class name_295 extends EntityComponent implements class_26 - { - private var shotTextureResource:name_129; - - private var shotSound:Sound; - - private var gameKernel:GameKernel; - - private var turret:class_15; - - public function name_295(shotTextureResource:name_129, shotSound:Sound) - { - super(); - this.shotTextureResource = shotTextureResource; - this.shotSound = shotSound; - } - - override public function initComponent() : void - { - this.turret = class_15(entity.getComponentStrict(class_15)); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - } - - public function method_411(barrelIndex:int, barrelOrigin:name_194, muzzlePosition:name_194, gunDirection:name_194, gunElevationAxis:name_194) : void - { - var simpleWeaponShotEffect:SimpleWeaponShotEffect = SimpleWeaponShotEffect(this.gameKernel.method_108().name_110(SimpleWeaponShotEffect)); - simpleWeaponShotEffect.init(barrelIndex,this.turret,this.shotTextureResource,100); - this.gameKernel.name_5().method_37(simpleWeaponShotEffect); - } - } -} - -import alternativa.engine3d.alternativa3d; -import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; -import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; -import alternativa.tanks.game.subsystems.rendersystem.GameCamera; -import package_19.name_380; -import alternativa.tanks.game.utils.objectpool.PooledObject; -import alternativa.tanks.game.utils.objectpool.ObjectPool; -import package_27.name_519; -import package_28.name_129; -import package_4.class_5; -import package_45.name_182; -import package_46.name_194; -import package_75.class_15; - -use namespace alternativa3d; - -class SimpleWeaponShotEffect extends PooledObject implements IGraphicEffect -{ - private static var muzzlePosition:name_194 = new name_194(); - - private static var gunDirection:name_194 = new name_194(); - - private var turret:class_15; - - private var mesh:name_380; - - private var material:class_5; - - private var timeToLive:int; - - private var barrelIndex:int; - - public function SimpleWeaponShotEffect(objectPool:ObjectPool) - { - super(objectPool); - this.mesh = new name_520(40,250,0,250 / 2); - this.material = new class_5(); - this.material.var_21 = true; - this.mesh.setMaterialToAllSurfaces(this.material); - } - - public function init(barrelIndex:int, turret:class_15, textureResource:name_129, timeToLive:int) : void - { - this.barrelIndex = barrelIndex; - this.turret = turret; - this.timeToLive = timeToLive; - this.material.diffuseMap = textureResource; - } - - public function addedToRenderSystem(system:RenderSystem) : void - { - system.method_29(this.mesh.geometry); - system.method_60().addChild(this.mesh); - } - - public function play(camera:GameCamera) : Boolean - { - if(this.timeToLive < 0) - { - return false; - } - this.turret.getGunMuzzleData(this.barrelIndex,muzzlePosition,gunDirection); - name_519.name_521(this.mesh,muzzlePosition,gunDirection,camera.position); - this.timeToLive -= name_182.timeDelta; - return true; - } - - public function destroy() : void - { - this.mesh.alternativa3d::removeFromParent(); - } -} diff --git a/src/package_73/class_13.as b/src/package_73/class_13.as deleted file mode 100644 index 1a6f6d8..0000000 --- a/src/package_73/class_13.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_73 -{ - public interface class_13 - { - function createData(param1:Object) : Object; - } -} - diff --git a/src/package_75/class_15.as b/src/package_75/class_15.as deleted file mode 100644 index b9344e8..0000000 --- a/src/package_75/class_15.as +++ /dev/null @@ -1,41 +0,0 @@ -package package_75 -{ - import package_46.Matrix4; - import package_46.name_194; - import package_71.name_234; - import package_76.name_235; - - public interface class_15 - { - function setTurret(param1:name_234) : void; - - function getTurretDirection() : Number; - - function setTurretDirection(param1:Number) : void; - - function setTurretControls(param1:int) : Boolean; - - function centerTurret(param1:Boolean) : void; - - function setTurretMountPoint(param1:name_194) : void; - - function getTurretPrimitives() : Vector.; - - function getChassisMatrix() : Matrix4; - - function getInterpolatedTurretDirection() : Number; - - function getSkinMountPoint(param1:name_194) : void; - - function getGunData(param1:int, param2:name_194, param3:name_194, param4:name_194) : void; - - function getGunMuzzleData(param1:int, param2:name_194, param3:name_194) : void; - - function getGunMuzzleData2(param1:int, param2:name_194, param3:name_194) : void; - - function getBarrelLength(param1:int) : Number; - - function getBarrelCount() : int; - } -} - diff --git a/src/package_75/name_236.as b/src/package_75/name_236.as deleted file mode 100644 index 6d8da59..0000000 --- a/src/package_75/name_236.as +++ /dev/null @@ -1,26 +0,0 @@ -package package_75 -{ - import package_46.Matrix4; - import package_46.name_194; - import package_92.name_271; - - public interface name_236 - { - function setTurret(param1:class_15) : void; - - function name_503(param1:name_194) : void; - - function name_505(param1:name_194) : void; - - function name_502() : Matrix4; - - function getBody() : name_271; - - function method_473() : Vector.; - - function setDetailedCollisionGroup(param1:int) : void; - - function method_474(param1:String) : Number; - } -} - diff --git a/src/package_76/name_256.as b/src/package_76/name_256.as deleted file mode 100644 index bc40725..0000000 --- a/src/package_76/name_256.as +++ /dev/null @@ -1,20 +0,0 @@ -package package_76 -{ - import package_46.name_194; - import package_90.name_273; - import package_92.name_630; - - public interface name_256 - { - function method_553(param1:name_630) : name_630; - - function raycast(param1:name_194, param2:name_194, param3:int, param4:Number, param5:name_631, param6:name_273) : Boolean; - - function name_324(param1:name_194, param2:name_194, param3:int, param4:Number, param5:name_631, param6:name_273) : Boolean; - - function getContact(param1:name_235, param2:name_235, param3:name_630) : Boolean; - - function method_554(param1:name_235, param2:name_235) : Boolean; - } -} - diff --git a/src/package_76/name_485.as b/src/package_76/name_485.as deleted file mode 100644 index bda537c..0000000 --- a/src/package_76/name_485.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_76 -{ - public interface name_485 - { - function name_662(param1:name_235, param2:name_235) : Boolean; - } -} - diff --git a/src/package_76/name_604.as b/src/package_76/name_604.as deleted file mode 100644 index 4e00df5..0000000 --- a/src/package_76/name_604.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_76 -{ - import package_92.name_271; - - public interface name_604 - { - function acceptBodiesCollision(param1:name_271, param2:name_271) : Boolean; - } -} - diff --git a/src/package_76/name_631.as b/src/package_76/name_631.as deleted file mode 100644 index 6e3515b..0000000 --- a/src/package_76/name_631.as +++ /dev/null @@ -1,8 +0,0 @@ -package package_76 -{ - public interface name_631 - { - function name_664(param1:name_235) : Boolean; - } -} - diff --git a/src/package_76/name_656.as b/src/package_76/name_656.as deleted file mode 100644 index eab12d8..0000000 --- a/src/package_76/name_656.as +++ /dev/null @@ -1,31 +0,0 @@ -package package_76 -{ - import package_90.name_386; - - public class name_656 - { - public var indices:Vector.; - - public var var_674:Vector.; - - public var boundBox:name_386; - - public var parent:name_656; - - public var name_660:CollisionKdTree2D; - - public var axis:int = -1; - - public var coord:Number; - - public var name_658:name_656; - - public var name_657:name_656; - - public function name_656() - { - super(); - } - } -} - diff --git a/src/package_76/name_665.as b/src/package_76/name_665.as deleted file mode 100644 index 40ae0c3..0000000 --- a/src/package_76/name_665.as +++ /dev/null @@ -1,12 +0,0 @@ -package package_76 -{ - import package_92.name_630; - - public interface name_665 - { - function getContact(param1:name_235, param2:name_235, param3:name_630) : Boolean; - - function haveCollision(param1:name_235, param2:name_235) : Boolean; - } -} - diff --git a/src/package_77/class_39.as b/src/package_77/class_39.as deleted file mode 100644 index e1db5ab..0000000 --- a/src/package_77/class_39.as +++ /dev/null @@ -1,24 +0,0 @@ -package package_77 -{ - import package_114.class_35; - - public class class_39 implements class_35 - { - protected var component:name_237; - - public function class_39(component:name_237) - { - super(); - this.component = component; - } - - public function start(data:*) : void - { - } - - public function stop() : void - { - } - } -} - diff --git a/src/package_77/name_237.as b/src/package_77/name_237.as deleted file mode 100644 index 521e4eb..0000000 --- a/src/package_77/name_237.as +++ /dev/null @@ -1,688 +0,0 @@ -package package_77 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.GameEvents; - import package_109.name_377; - import package_114.name_488; - import package_114.name_489; - import package_39.name_160; - import package_44.name_178; - import package_44.name_465; - import package_45.name_182; - import package_46.Matrix3; - import package_46.Matrix4; - import package_46.name_194; - import package_46.name_566; - import alternativa.osgi.OSGi; - import package_71.class_30; - import package_71.name_249; - import package_71.name_252; - import package_75.class_15; - import package_75.name_236; - import package_75.name_309; - import package_76.name_235; - import package_86.name_257; - import package_86.name_468; - import package_86.name_484; - import package_86.name_568; - import package_90.name_386; - import package_92.name_271; - import package_92.name_467; - import package_92.name_575; - - public class name_237 extends EntityComponent implements name_465, name_236, class_30 - { - private static var lastId:int; - - private static const RAY_OFFSET:Number = 5; - - private static var _v:name_194 = new name_194(); - - public var gameKernel:GameKernel; - - public var body:name_271; - - public var name_337:name_515; - - public var name_340:name_515; - - public var maxSpeed:Number = 0; - - private var var_480:ValueSmoother = new ValueSmoother(100,1000,0,0); - - public var maxTurnSpeed:Number = 0; - - private var var_478:ValueSmoother = new ValueSmoother(0.3,10,0,0); - - private var var_477:Number = 0; - - private var var_482:Number = 0; - - private var var_484:Boolean; - - private var var_486:Boolean; - - private var var_475:Vector.; - - public var var_476:Vector.; - - public var var_479:Vector.; - - public var name_288:name_194 = new name_194(); - - public var name_334:name_566 = new name_566(); - - public var var_483:Matrix4 = new Matrix4(); - - public var name_518:name_570 = new name_570(); - - public var moveDirection:int; - - public var turnDirection:int; - - private var hull:name_249; - - private var var_485:name_568; - - private var var_424:name_488; - - private var var_426:Boolean; - - private var turret:class_15; - - private var var_481:Vector.; - - private var mass:Number = 1; - - private var power:Number = 0; - - private var reverseBackTurn:Boolean; - - public function name_237(hull:name_249, mass:Number, power:Number) - { - super(); - this.mass = mass; - this.power = power; - this.var_481 = new Vector.(); - this.body = new name_271(1,Matrix3.IDENTITY); - this.body.id = lastId++; - this.var_475 = new Vector.(); - this.var_479 = new Vector.(); - this.var_476 = new Vector.(); - this.var_485 = new name_568(this.body,this.var_476,this.var_479); - this.method_488(hull); - } - - public function method_473() : Vector. - { - return this.var_481; - } - - public function getBody() : name_271 - { - return this.body; - } - - public function method_474(wheelName:String) : Number - { - var lastHitLength:Number = this.name_337.name_574(wheelName,this.name_518.rayLength); - if(lastHitLength < 0) - { - lastHitLength = this.name_340.name_574(wheelName,this.name_518.rayLength); - } - if(lastHitLength < 0) - { - return 0; - } - return this.name_518.name_579 - lastHitLength; - } - - public function method_492() : Number - { - return this.name_337.name_571; - } - - public function method_495() : Number - { - return this.name_340.name_571; - } - - public function method_488(hull:name_249) : void - { - if(hull == null) - { - throw new ArgumentError("Parameter hull is null"); - } - if(this.hull == hull) - { - return; - } - this.hull = hull; - this.method_485(hull.name_534,this.var_475,name_257.TANK,name_257.TANK | name_257.STATIC); - this.method_485(hull.name_535,this.var_476,name_257.TANK,name_257.TANK); - if(this.turret != null) - { - this.turret.setTurretMountPoint(hull.name_533); - } - this.method_482(); - this.method_489(); - var rayZ:Number = this.method_487(); - this.setSuspensionCollisionMask(name_257.TANK | name_257.STATIC); - this.name_518.rayLength = 75; - this.name_518.name_579 = rayZ - hull.name_538.z; - this.name_518.name_582 = 1000; - this.body.material.name_581 = 0.1; - this.setChassisControls(this.moveDirection,this.turnDirection,true); - var bb:name_386 = new name_386(); - this.calculateBoundBox(bb); - this.method_490(bb); - } - - public function name_335(value:Number, immediate:Boolean) : void - { - if(immediate) - { - this.maxTurnSpeed = value; - this.var_478.reset(value); - } - else - { - this.var_478.targetValue = value; - } - } - - public function name_321(value:Number, immediate:Boolean) : void - { - if(immediate) - { - this.maxSpeed = value; - this.var_480.reset(value); - } - else - { - this.var_480.targetValue = value; - } - } - - private function method_487() : Number - { - var matrix:Matrix4 = new Matrix4(); - matrix.name_201(this.hull.name_538); - this.name_337 = new name_515(this.body,matrix,this.hull.name_325); - this.name_340 = new name_515(this.body,matrix,this.hull.name_323); - return this.name_337.rays[0].getRelativeZ(); - } - - private function method_489() : void - { - var dimensions:name_194 = null; - var xx:Number = NaN; - var yy:Number = NaN; - var zz:Number = NaN; - if(this.mass == Infinity) - { - this.body.invMass = 0; - this.body.invInertia.copy(Matrix3.ZERO); - } - else - { - dimensions = this.hull.name_517.hs.clone(); - dimensions.scale(2); - this.body.invMass = 1 / this.mass; - xx = dimensions.x * dimensions.x; - yy = dimensions.y * dimensions.y; - zz = dimensions.z * dimensions.z; - this.body.invInertia.a = 12 * this.body.invMass / (yy + zz); - this.body.invInertia.f = 12 * this.body.invMass / (zz + xx); - this.body.invInertia.k = 12 * this.body.invMass / (xx + yy); - } - } - - private function calculateBoundBox(boundBox:name_386) : void - { - var collisionPrimitive:name_235 = null; - var primitiveTransform:Matrix4 = null; - boundBox.name_584(); - for each(collisionPrimitive in this.var_475) - { - primitiveTransform = collisionPrimitive.transform; - collisionPrimitive.transform = collisionPrimitive.localTransform || Matrix4.IDENTITY; - boundBox.name_583(collisionPrimitive.calculateAABB()); - collisionPrimitive.transform = primitiveTransform; - } - } - - private function method_490(boundBox:name_386) : void - { - var z:int = (boundBox.maxZ - boundBox.minZ) / 2; - this.method_481(0,boundBox.maxX,boundBox.maxY,z); - this.method_481(1,boundBox.minX,boundBox.maxY,z); - this.method_481(2,boundBox.minX,boundBox.minY,z); - this.method_481(3,boundBox.maxX,boundBox.minY,z); - } - - private function method_481(index:int, x:Number, y:Number, z:Number) : void - { - var point:name_194 = null; - var clientLog:name_160 = null; - clientLog = name_160(OSGi.name_8().name_30(name_160)); - clientLog.log("tank","LegacyTrackedChassisComponent::setBoundPoint() point %1: %2, %3, %4",index,x.toFixed(2),y.toFixed(2),z.toFixed(2)); - if(index < this.var_481.length) - { - point = this.var_481[index]; - } - if(point == null) - { - point = new name_194(); - this.var_481[index] = point; - } - point.reset(x,y,z); - } - - public function method_482() : void - { - var collisionPrimitive:name_235 = null; - var turretPrimitives:Vector. = null; - if(this.body.collisionPrimitives != null) - { - this.body.collisionPrimitives.clear(); - } - this.method_483(this.var_475); - this.method_483(this.var_476); - this.var_479.length = 0; - for each(collisionPrimitive in this.var_475) - { - this.var_479.push(collisionPrimitive); - } - if(this.turret != null) - { - turretPrimitives = this.turret.getTurretPrimitives(); - this.method_483(turretPrimitives); - for each(collisionPrimitive in turretPrimitives) - { - this.var_479.push(collisionPrimitive); - } - } - } - - public function method_478(velocity:name_194) : void - { - this.body.name_587(velocity); - } - - public function method_477(velocity:name_194) : void - { - this.body.method_368(velocity); - } - - public function name_352(orientation:name_566) : void - { - this.body.name_352(orientation); - } - - public function name_75(x:Number, y:Number, z:Number) : void - { - this.body.name_75(x,y,z); - } - - public function method_484(w:Number, x:Number, y:Number, z:Number) : void - { - this.body.method_484(w,x,y,z); - } - - public function method_479(x:Number, y:Number, z:Number) : void - { - var w:Number = 1 - x * x - y * y - z * z; - this.body.method_484(w < 0 ? 0 : Number(Math.sqrt(w)),x,y,z); - } - - public function setLinearVelocityXYZ(x:Number, y:Number, z:Number) : void - { - this.body.name_588(x,y,z); - } - - public function setAngularVelocityXYZ(x:Number, y:Number, z:Number) : void - { - this.body.name_332(x,y,z); - } - - public function name_201(position:name_194) : void - { - this.body.name_201(position); - } - - public function method_494() : void - { - this.body.name_586(); - } - - private function method_486(throttleLeft:Number, throttleRight:Number) : void - { - this.var_477 = throttleLeft; - this.var_482 = throttleRight; - } - - private function method_480(lb:Boolean, rb:Boolean) : void - { - this.var_484 = lb; - this.var_486 = rb; - } - - public function setChassisControls(moveDirection:int, turnDirection:int, reverseBackTurn:Boolean, force:Boolean = false) : Boolean - { - var throttle:Number = NaN; - var throttleLeft:Number = NaN; - var throttleRight:Number = NaN; - var k:Number = NaN; - turnDirection = -turnDirection; - if(force || this.moveDirection != moveDirection || this.turnDirection != turnDirection) - { - this.moveDirection = moveDirection; - this.turnDirection = turnDirection; - this.reverseBackTurn = reverseBackTurn; - throttle = this.power; - throttleLeft = moveDirection * throttle; - throttleRight = moveDirection * throttle; - if(moveDirection == 0) - { - this.method_480(false,false); - k = 0.8; - throttleLeft -= turnDirection * throttle * k; - throttleRight += turnDirection * throttle * k; - } - else - { - k = 0.4; - if(moveDirection == 1) - { - this.method_480(turnDirection == 1,turnDirection == -1); - if(turnDirection == 1) - { - throttleLeft -= throttle * k; - } - if(turnDirection == -1) - { - throttleRight -= throttle * k; - } - } - else if(reverseBackTurn) - { - this.method_480(turnDirection == -1,turnDirection == 1); - if(turnDirection == -1) - { - throttleLeft += throttle * k; - } - if(turnDirection == 1) - { - throttleRight += throttle * k; - } - } - else - { - this.method_480(turnDirection == 1,turnDirection == -1); - if(turnDirection == 1) - { - throttleLeft += throttle * k; - } - if(turnDirection == -1) - { - throttleRight += throttle * k; - } - } - } - this.method_486(throttleLeft,throttleRight); - return true; - } - return false; - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.var_424.name_493.stop(); - this.removeFromScene(); - gameKernel = null; - } - - override public function initComponent() : void - { - name_309(entity.getComponentStrict(name_309)).method_463(this); - this.method_482(); - this.var_424 = new name_488(); - var respawnState:name_569 = new name_569(this); - this.var_424.name_486(entity,name_252.SET_RESPAWN_STATE,respawnState); - this.var_424.name_486(entity,name_252.SET_ACTIVATING_STATE,new name_576(this)); - this.var_424.name_486(entity,name_252.SET_ACTIVE_STATE,new name_572(this)); - this.var_424.name_486(entity,name_252.SET_DEAD_STATE,new name_578(this)); - this.var_424.name_493 = name_489.INSTANCE; - entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.method_386); - } - - public function name_505(point:name_194) : void - { - point.copy(this.hull.name_536); - } - - public function name_502() : Matrix4 - { - return this.var_483; - } - - public function setTurret(turret:class_15) : void - { - this.turret = turret; - if(turret != null) - { - this.method_482(); - } - } - - public function name_503(point:name_194) : void - { - point.copy(this.hull.name_533); - } - - public function updateBeforeSimulation(physicsStep:int) : void - { - var d:Number = NaN; - var limit:Number = NaN; - var dt:Number = name_182.timeDeltaSeconds; - if(this.maxSpeed != this.var_480.targetValue) - { - this.maxSpeed = this.var_480.update(dt); - } - if(this.maxTurnSpeed != this.var_478.targetValue) - { - this.maxTurnSpeed = this.var_478.update(dt); - } - var slipTerm:int = this.var_477 > this.var_482 ? -1 : (this.var_477 < this.var_482 ? 1 : 0); - var world:name_467 = this.body.scene; - var weight:Number = this.mass * world.name_567.length(); - var k:Number = this.var_477 != this.var_482 && !(this.var_484 || this.var_486) && this.body.state.rotation.length() > this.maxTurnSpeed ? 0.1 : 1; - this.name_337.name_573(dt,k * this.var_477,this.maxSpeed,slipTerm,weight,this.name_518,this.var_484); - this.name_340.name_573(dt,k * this.var_482,this.maxSpeed,slipTerm,weight,this.name_518,this.var_486); - var baseMatrix:Matrix3 = this.body.baseMatrix; - if(this.name_340.name_577 >= this.name_340.numRays >> 1 || this.name_337.name_577 >= this.name_337.numRays >> 1) - { - d = world.name_567.x * baseMatrix.c + world.name_567.y * baseMatrix.g + world.name_567.z * baseMatrix.k; - limit = Math.SQRT1_2 * world.name_567.length(); - if(d < -limit || d > limit) - { - _v.x = (baseMatrix.c * d - world.name_567.x) * this.mass; - _v.y = (baseMatrix.g * d - world.name_567.y) * this.mass; - _v.z = (baseMatrix.k * d - world.name_567.z) * this.mass; - this.body.name_585(_v); - } - } - } - - public function updateAfterSimulation(physicsStep:int) : void - { - } - - public function interpolate(interpolationCoeff:Number) : void - { - this.body.interpolate(interpolationCoeff,this.name_288,this.name_334); - this.name_334.normalize(); - this.name_334.toMatrix4(this.var_483); - this.var_483.name_201(this.name_288); - } - - public function method_491(mask:int) : void - { - for(var i:int = 0; i < this.var_476.length; i++) - { - this.var_476[i].collisionMask = mask; - } - } - - public function setDetailedCollisionGroup(collisionGroup:int) : void - { - var collisionPrimitive:name_235 = null; - for each(collisionPrimitive in this.var_475) - { - collisionPrimitive.collisionGroup = collisionGroup; - } - if(this.turret != null) - { - for each(collisionPrimitive in this.turret.getTurretPrimitives()) - { - collisionPrimitive.collisionGroup = collisionGroup; - } - } - } - - public function setSuspensionCollisionMask(collisionMask:int) : void - { - this.name_337.collisionMask = collisionMask; - this.name_340.collisionMask = collisionMask; - } - - public function addToScene() : void - { - var physicsSystem:name_178 = null; - var physicsScene:name_467 = null; - var collisionDetector:name_468 = null; - if(!this.var_426) - { - physicsSystem = this.gameKernel.method_112(); - physicsScene = physicsSystem.name_246(); - collisionDetector = name_468(physicsScene.collisionDetector); - physicsScene.name_592(this.body); - collisionDetector.name_591(this.var_485); - physicsSystem.addControllerBefore(this); - this.var_426 = true; - } - } - - public function removeFromScene() : void - { - var physicsSystem:name_178 = null; - var physicsScene:name_467 = null; - var collisionDetector:name_468 = null; - if(this.var_426) - { - physicsSystem = this.gameKernel.method_112(); - physicsScene = physicsSystem.name_246(); - collisionDetector = name_468(physicsScene.collisionDetector); - physicsScene.name_593(this.body); - collisionDetector.name_590(this.var_485); - physicsSystem.removeControllerBefore(this); - this.var_426 = false; - } - } - - private function method_493(value:Number) : void - { - if(value <= 0) - { - throw new ArgumentError("Mass must have a positive value"); - } - this.body.invMass = 1 / value; - if(this.hull != null) - { - name_575.name_589(value,this.hull.name_517.hs,this.body.invInertia); - } - } - - private function method_485(geometryData:Vector., primitives:Vector., collisionGroup:int, collisionMask:int) : void - { - var boxData:name_484 = null; - var primitive:name_377 = null; - primitives.length = 0; - for each(boxData in geometryData) - { - primitive = new name_377(boxData.hs,collisionGroup,collisionMask); - primitive.localTransform = boxData.matrix.clone(); - primitive.body = this.body; - primitives.push(primitive); - } - } - - private function method_483(primitives:Vector.) : void - { - var collisionPrimitive:name_235 = null; - for each(collisionPrimitive in primitives) - { - this.body.name_580(collisionPrimitive,collisionPrimitive.localTransform); - } - } - - private function method_386(gameType:String, gameData:*) : void - { - this.setChassisControls(0,0,false); - } - } -} - -class ValueSmoother -{ - public var currentValue:Number; - - public var targetValue:Number; - - public var smoothingSpeedUp:Number; - - public var smoothingSpeedDown:Number; - - public function ValueSmoother(smoothingSpeedUp:Number, smoothingSpeedDown:Number, targetValue:Number, currentValue:Number) - { - super(); - this.smoothingSpeedUp = smoothingSpeedUp; - this.smoothingSpeedDown = smoothingSpeedDown; - this.targetValue = targetValue; - this.currentValue = currentValue; - } - - public function reset(value:Number) : void - { - this.currentValue = value; - this.targetValue = value; - } - - public function update(dt:Number) : Number - { - if(this.currentValue < this.targetValue) - { - this.currentValue += this.smoothingSpeedUp * dt; - if(this.currentValue > this.targetValue) - { - this.currentValue = this.targetValue; - } - } - else if(this.currentValue > this.targetValue) - { - this.currentValue -= this.smoothingSpeedDown * dt; - if(this.currentValue < this.targetValue) - { - this.currentValue = this.targetValue; - } - } - return this.currentValue; - } -} diff --git a/src/package_77/name_510.as b/src/package_77/name_510.as deleted file mode 100644 index 2aab0ac..0000000 --- a/src/package_77/name_510.as +++ /dev/null @@ -1,222 +0,0 @@ -package package_77 -{ - import package_46.name_194; - import package_86.name_540; - import package_90.name_273; - import package_92.name_271; - import package_92.name_599; - - public class name_510 - { - private static var _groundUp:name_194; - - private static var _v:name_194 = new name_194(); - - private static var _worldUp:name_194 = new name_194(); - - private static var _groundForward:name_194 = new name_194(); - - private static var _groundRight:name_194 = new name_194(); - - private static var _relVel:name_194 = new name_194(); - - private static var _force:name_194 = new name_194(); - - public var collisionMask:int; - - public var name_692:Number = 0; - - private var body:name_271; - - private var relPos:name_194 = new name_194(); - - private var relDir:name_194 = new name_194(); - - public var worldPos:name_194 = new name_194(); - - public var name_512:name_194 = new name_194(); - - public var name_514:Boolean = false; - - public var name_516:name_273 = new name_273(); - - private var var_626:Number = 0; - - private var var_627:name_540; - - public function name_510(body:name_271, relPos:name_194, relDir:name_194) - { - super(); - this.body = body; - this.relPos.copy(relPos); - this.relDir.copy(relDir); - this.var_627 = new name_540(body); - } - - public function getRelativeZ() : Number - { - return this.relPos.z; - } - - public function method_713(value:name_194) : void - { - this.relPos.copy(value); - } - - public function method_714(x:Number, y:Number, z:Number) : void - { - this.relPos.x = x; - this.relPos.y = y; - this.relPos.z = z; - } - - public function name_693(maxLength:Number) : Boolean - { - this.body.baseMatrix.method_345(this.relDir,this.name_512); - this.body.baseMatrix.method_345(this.relPos,this.worldPos); - var p:name_194 = this.body.state.position; - this.worldPos.x += p.x; - this.worldPos.y += p.y; - this.worldPos.z += p.z; - if(this.name_514) - { - this.var_626 = maxLength - this.name_516.t; - } - this.name_514 = this.body.scene.collisionDetector.raycast(this.worldPos,this.name_512,this.collisionMask,maxLength,this.var_627,this.name_516); - if(this.name_514 && this.name_516.primitive == null) - { - throw new Error("Ray hit error. Body id = " + this.body.id); - } - return this.name_514; - } - - public function name_585(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, springCoeff:Number, data:name_570, fwdBrake:Boolean) : void - { - var bState:name_599 = null; - var slipSpeed:Number = NaN; - var sideFriction:Number = NaN; - var frictionForce:Number = NaN; - var fwdFriction:Number = NaN; - this.name_692 = 0; - if(!this.name_514) - { - return; - } - _groundUp = this.name_516.normal; - _v.x = this.body.baseMatrix.b; - _v.y = this.body.baseMatrix.f; - _v.z = this.body.baseMatrix.j; - _groundRight.x = _v.y * _groundUp.z - _v.z * _groundUp.y; - _groundRight.y = _v.z * _groundUp.x - _v.x * _groundUp.z; - _groundRight.z = _v.x * _groundUp.y - _v.y * _groundUp.x; - var len:Number = _groundRight.x * _groundRight.x + _groundRight.y * _groundRight.y + _groundRight.z * _groundRight.z; - if(len == 0) - { - _groundRight.x = 1; - } - else - { - len = Number(Math.sqrt(len)); - _groundRight.x /= len; - _groundRight.y /= len; - _groundRight.z /= len; - } - _groundForward.x = _groundUp.y * _groundRight.z - _groundUp.z * _groundRight.y; - _groundForward.y = _groundUp.z * _groundRight.x - _groundUp.x * _groundRight.z; - _groundForward.z = _groundUp.x * _groundRight.y - _groundUp.y * _groundRight.x; - var state:name_599 = this.body.state; - _v.x = this.name_516.position.x - state.position.x; - _v.y = this.name_516.position.y - state.position.y; - _v.z = this.name_516.position.z - state.position.z; - var rot:name_194 = state.rotation; - _relVel.x = rot.y * _v.z - rot.z * _v.y + state.velocity.x; - _relVel.y = rot.z * _v.x - rot.x * _v.z + state.velocity.y; - _relVel.z = rot.x * _v.y - rot.y * _v.x + state.velocity.z; - if(this.name_516.primitive.body != null) - { - bState = this.name_516.primitive.body.state; - _v.x = this.name_516.position.x - bState.position.x; - _v.y = this.name_516.position.y - bState.position.y; - _v.z = this.name_516.position.z - bState.position.z; - rot = bState.rotation; - _relVel.x -= rot.y * _v.z - rot.z * _v.y + bState.velocity.x; - _relVel.y -= rot.z * _v.x - rot.x * _v.z + bState.velocity.y; - _relVel.z -= rot.x * _v.y - rot.y * _v.x + bState.velocity.z; - } - var relSpeed:Number = Number(Math.sqrt(_relVel.x * _relVel.x + _relVel.y * _relVel.y + _relVel.z * _relVel.z)); - var fwdSpeed:Number = _relVel.x * _groundForward.x + _relVel.y * _groundForward.y + _relVel.z * _groundForward.z; - this.name_692 = fwdSpeed; - if(throttle > 0 && fwdSpeed < maxSpeed || throttle < 0 && -fwdSpeed < maxSpeed) - { - _v.x = this.worldPos.x + data.name_696 * this.name_512.x; - _v.y = this.worldPos.y + data.name_696 * this.name_512.y; - _v.z = this.worldPos.z + data.name_696 * this.name_512.z; - _force.x = throttle * _groundForward.x; - _force.y = throttle * _groundForward.y; - _force.z = throttle * _groundForward.z; - this.body.name_525(_v,_force); - } - _worldUp.x = this.body.baseMatrix.c; - _worldUp.y = this.body.baseMatrix.g; - _worldUp.z = this.body.baseMatrix.k; - var t:Number = this.name_516.t; - var currDisplacement:Number = data.rayLength - t; - var springForce:Number = springCoeff * currDisplacement * (_worldUp.x * this.name_516.normal.x + _worldUp.y * this.name_516.normal.y + _worldUp.z * this.name_516.normal.z); - var upSpeed:Number = (currDisplacement - this.var_626) / dt; - springForce += upSpeed * data.name_582; - if(springForce < 0) - { - springForce = 0; - } - _force.x = -springForce * this.name_512.x; - _force.y = -springForce * this.name_512.y; - _force.z = -springForce * this.name_512.z; - if(relSpeed > 0.001) - { - slipSpeed = _relVel.dot(_groundRight); - sideFriction = slipTerm == 0 || slipSpeed >= 0 && slipTerm > 0 || slipSpeed <= 0 && slipTerm < 0 ? data.name_698 : 2 * data.name_699; - frictionForce = sideFriction * springForce * slipSpeed / relSpeed; - if(slipSpeed > -data.name_697 && slipSpeed < data.name_697) - { - frictionForce *= slipSpeed / data.name_697; - if(slipSpeed < 0) - { - frictionForce = -frictionForce; - } - } - _force.x -= frictionForce * _groundRight.x; - _force.y -= frictionForce * _groundRight.y; - _force.z -= frictionForce * _groundRight.z; - if(fwdBrake) - { - fwdFriction = 0.3 * data.name_698; - } - else if(fwdSpeed * throttle <= 0) - { - fwdFriction = 0.5 * data.name_698; - } - else - { - fwdFriction = data.name_699; - } - frictionForce = fwdFriction * springForce * fwdSpeed / relSpeed; - if(fwdSpeed > -data.name_697 && fwdSpeed < data.name_697) - { - frictionForce *= fwdSpeed / data.name_697; - if(fwdSpeed < 0) - { - frictionForce = -frictionForce; - } - } - _force.x -= frictionForce * _groundForward.x; - _force.y -= frictionForce * _groundForward.y; - _force.z -= frictionForce * _groundForward.z; - } - _v.x = this.worldPos.x + data.name_696 * this.name_512.x; - _v.y = this.worldPos.y + data.name_696 * this.name_512.y; - _v.z = this.worldPos.z + data.name_696 * this.name_512.z; - this.body.name_525(_v,_force); - } - } -} - diff --git a/src/package_77/name_515.as b/src/package_77/name_515.as deleted file mode 100644 index 5dc4a1c..0000000 --- a/src/package_77/name_515.as +++ /dev/null @@ -1,151 +0,0 @@ -package package_77 -{ - import alternativa.osgi.service.console.variables.ConsoleVarFloat; - import package_27.name_501; - import package_46.Matrix4; - import package_46.name_194; - import package_71.name_318; - import package_92.name_271; - - public class name_515 - { - private static var conSpeedDamping:ConsoleVarFloat = new ConsoleVarFloat("track_damping",0,0,1000); - - public var chassisBody:name_271; - - public var rays:Vector.; - - public var numRays:int; - - public var name_577:int; - - public var name_571:Number = 0; - - private var var_624:Object; - - public function name_515(chassisBody:name_271, matrix:Matrix4, wheels:Vector.) - { - super(); - this.chassisBody = chassisBody; - this.method_706(matrix,wheels); - } - - public function set collisionMask(value:int) : void - { - for(var i:int = 0; i < this.numRays; i++) - { - name_510(this.rays[i]).collisionMask = value; - } - } - - private function method_707(tankWheel:name_318) : Boolean - { - var parts:Array = tankWheel.name.split("_"); - return parts[1] == "1"; - } - - public function method_706(matrix:Matrix4, wheels:Vector.) : void - { - var position:name_194; - var i:int; - var tankWheel:name_318 = null; - var mainWheel:name_318 = null; - var ray:name_510 = null; - var mainWheels:Vector. = new Vector.(); - for each(tankWheel in wheels) - { - if(this.method_707(tankWheel)) - { - mainWheels.push(tankWheel); - } - } - if(mainWheels.length == 0) - { - throw new Error("No main wheels found"); - } - mainWheels.sort(function(a:name_318, b:name_318):Number - { - if(a.position.y > b.position.y) - { - return -1; - } - if(a.position.y < b.position.y) - { - return 1; - } - return 0; - }); - this.var_624 = {}; - this.numRays = mainWheels.length; - this.rays = new Vector.(this.numRays); - position = new name_194(); - for(i = 0; i < this.numRays; i++) - { - mainWheel = mainWheels[i]; - matrix.method_353(mainWheel.position,position); - ray = new name_510(this.chassisBody,position,new name_194(0,0,-1)); - this.rays[i] = ray; - this.var_624[mainWheel.name] = ray; - } - } - - public function name_574(name:String, maxRayLength:Number) : Number - { - var ray:name_510 = this.var_624[name]; - if(ray == null) - { - return -1; - } - return ray.name_514 ? ray.name_516.t : maxRayLength; - } - - public function name_573(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, weight:Number, data:name_570, brake:Boolean) : void - { - var i:int = 0; - var springCoeff:Number = NaN; - var mid:int = 0; - var ray:name_510 = null; - this.name_577 = 0; - for(i = 0; i < this.numRays; ) - { - if(name_510(this.rays[i]).name_693(data.rayLength)) - { - ++this.name_577; - } - i++; - } - if(this.name_577 > 0) - { - this.name_571 = 0; - springCoeff = 0.5 * weight / (this.name_577 * (data.rayLength - data.name_579)); - throttle *= this.numRays / this.name_577; - mid = this.numRays >> 1; - if(Boolean(this.numRays & 1 == 0)) - { - for(i = 0; i < this.numRays; i++) - { - ray = this.rays[i]; - ray.name_585(dt,throttle,maxSpeed,i <= mid ? slipTerm : int(-slipTerm),springCoeff,data,brake); - this.name_571 += ray.name_692; - } - } - else - { - for(i = 0; i < this.numRays; ) - { - ray = this.rays[i]; - ray.name_585(dt,throttle,maxSpeed,i < mid ? slipTerm : (i > mid ? int(-slipTerm) : 0),springCoeff,data,brake); - this.name_571 += ray.name_692; - i++; - } - } - this.name_571 /= this.name_577; - } - else - { - this.name_571 = name_501.name_504(this.name_571,0,conSpeedDamping.value * dt); - } - } - } -} - diff --git a/src/package_77/name_570.as b/src/package_77/name_570.as deleted file mode 100644 index 2a351a9..0000000 --- a/src/package_77/name_570.as +++ /dev/null @@ -1,25 +0,0 @@ -package package_77 -{ - public class name_570 - { - public var rayLength:Number = 0; - - public var name_579:Number = 0; - - public var name_696:Number = 0; - - public var name_582:Number = 0; - - public var name_697:Number = 100; - - public var name_698:Number = 3; - - public var name_699:Number = 0.2; - - public function name_570() - { - super(); - } - } -} - diff --git a/src/package_77/name_572.as b/src/package_77/name_572.as deleted file mode 100644 index 7b1c459..0000000 --- a/src/package_77/name_572.as +++ /dev/null @@ -1,20 +0,0 @@ -package package_77 -{ - import package_86.name_257; - - public class name_572 extends class_39 - { - public function name_572(component:name_237) - { - super(component); - } - - override public function start(data:*) : void - { - component.addToScene(); - component.setDetailedCollisionGroup(name_257.TANK | name_257.WEAPON); - component.setSuspensionCollisionMask(name_257.STATIC | name_257.TANK); - } - } -} - diff --git a/src/package_77/name_576.as b/src/package_77/name_576.as deleted file mode 100644 index 223b812..0000000 --- a/src/package_77/name_576.as +++ /dev/null @@ -1,118 +0,0 @@ -package package_77 -{ - import alternativa.tanks.game.GameKernel; - import package_44.name_178; - import package_71.name_720; - import package_86.name_257; - - public class name_576 extends class_39 - { - private var var_644:ContactFilter; - - public function name_576(component:name_237) - { - super(component); - this.var_644 = new ContactFilter(); - } - - override public function start(data:*) : void - { - var gameKernel:GameKernel = null; - var physicsSystem:name_178 = null; - component.addToScene(); - component.setDetailedCollisionGroup(name_257.TANK); - component.setSuspensionCollisionMask(name_257.STATIC); - component.body.postCollisionFilter = this.var_644; - var callback:name_720 = name_720(data); - if(callback != null) - { - gameKernel = component.gameKernel; - this.var_644.initCallback(callback); - gameKernel.getLogicSystem1().addLogicUnit(this.var_644); - physicsSystem = gameKernel.method_112(); - physicsSystem.addControllerAfter(this.var_644); - physicsSystem.addControllerBefore(this.var_644); - } - } - - override public function stop() : void - { - var gameKernel:GameKernel = null; - var physicsSystem:name_178 = null; - component.body.postCollisionFilter = null; - if(this.var_644.callback != null) - { - gameKernel = component.gameKernel; - gameKernel.getLogicSystem1().removeLogicUnit(this.var_644); - physicsSystem = gameKernel.method_112(); - physicsSystem.removeControllerAfter(this.var_644); - physicsSystem.removeControllerBefore(this.var_644); - this.var_644.callback = null; - } - } - } -} - -import flash.utils.getTimer; -import package_42.name_477; -import package_44.name_465; -import package_45.name_182; -import package_71.name_720; -import package_76.name_604; -import package_92.name_271; - -class ContactFilter implements name_604, name_465, name_477 -{ - private static const MIN_TRANSPARENCY_DURATION:int = 3000; - - public var callback:name_720; - - private var numContacts:int; - - private var canActivate:Boolean; - - private var startTime:int; - - public function ContactFilter() - { - super(); - } - - public function initCallback(callback:name_720) : void - { - this.canActivate = false; - this.startTime = getTimer(); - this.callback = callback; - } - - public function acceptBodiesCollision(body1:name_271, body2:name_271) : Boolean - { - ++this.numContacts; - return false; - } - - public function updateBeforeSimulation(physicsStep:int) : void - { - this.numContacts = 0; - } - - public function updateAfterSimulation(physicsStep:int) : void - { - if(Boolean(this.canActivate) && this.numContacts == 0) - { - this.callback.name_721(); - } - } - - public function interpolate(interpolationCoeff:Number) : void - { - } - - public function runLogic() : void - { - if(name_182.time - this.startTime > MIN_TRANSPARENCY_DURATION) - { - this.canActivate = true; - } - } -} diff --git a/src/package_77/name_578.as b/src/package_77/name_578.as deleted file mode 100644 index 0ed86ae..0000000 --- a/src/package_77/name_578.as +++ /dev/null @@ -1,25 +0,0 @@ -package package_77 -{ - import package_86.name_257; - import package_92.name_271; - - public class name_578 extends class_39 - { - public function name_578(component:name_237) - { - super(component); - } - - override public function start(data:*) : void - { - component.addToScene(); - component.setDetailedCollisionGroup(name_257.TANK | name_257.WEAPON); - component.setSuspensionCollisionMask(name_257.STATIC | name_257.TANK); - component.setChassisControls(0,0,false); - var body:name_271 = component.getBody(); - body.state.velocity.z += 500; - body.state.rotation.reset(2,2,2); - } - } -} - diff --git a/src/package_78/name_243.as b/src/package_78/name_243.as deleted file mode 100644 index 97af2e1..0000000 --- a/src/package_78/name_243.as +++ /dev/null @@ -1,196 +0,0 @@ -package package_78 -{ - import alternativa.utils.ByteArrayMap; - import package_19.name_380; - import package_19.name_528; - import package_21.name_78; - import package_46.Matrix4; - import package_46.name_194; - import package_71.name_249; - import package_71.name_318; - import package_71.name_333; - import package_86.name_484; - - public class name_243 extends name_258 - { - private static var leftSprings:Array; - - private static var rightSprings:Array; - - public static const KEY_TRACKS_DIFFUSE:String = "tracksDiffuseMap"; - - public static const KEY_TRACKS_NORMAL:String = "tracksNormalMap"; - - public static const KEY_TRACKS_OPACITY:String = "tracksOpacityMap"; - - public static const KEY_SHADOW:String = "tracksShadowMap"; - - public static const TRACKS_NORMALMAP_ATF:String = "tracks_normalmap.atf"; - - public static const TRACKS_DIFFUSEMAP_ATF:String = "tracks_diffuse.atf"; - - public static const TRACKS_OPACITYMAP_ATF:String = "tracks_opacity.atf"; - - public static const SHADOW_ATF:String = "shadow.atf"; - - public function name_243() - { - super(); - } - - override protected function doParse(objects:Vector., tankPart:name_333, files:ByteArrayMap) : void - { - super.doParse(objects,tankPart,files); - this.method_423(tankPart,files); - } - - private function method_423(tankPart:name_333, files:ByteArrayMap) : void - { - tankPart.textureData.name_59(KEY_TRACKS_NORMAL,files.name_248(TRACKS_NORMALMAP_ATF)); - tankPart.textureData.name_59(KEY_TRACKS_DIFFUSE,files.name_248(TRACKS_DIFFUSEMAP_ATF)); - tankPart.textureData.name_59(KEY_TRACKS_OPACITY,files.name_248(TRACKS_OPACITYMAP_ATF)); - if(files.name_248(SHADOW_ATF) != null) - { - tankPart.textureData.name_59(KEY_SHADOW,files.name_248(SHADOW_ATF)); - } - } - - override protected function createTankPart() : name_333 - { - return new name_249(); - } - - override protected function getParsingFunctions() : Object - { - return { - "hull":this.method_429, - "mount":this.method_422, - "body":this.method_425, - "box":this.method_421, - "simp":this.method_426, - "sp":this.method_427, - "wh":this.method_428, - "track":this.method_424, - "shadow":this.method_430 - }; - } - - override protected function beginParsing(tankPart:name_333) : void - { - leftSprings = []; - rightSprings = []; - } - - override protected function endParsing(tankPart:name_333) : void - { - this.method_420(name_249(tankPart)); - } - - private function method_429(mesh:name_380, tankHull:name_249) : void - { - tankHull.geometry = mesh.geometry; - } - - private function method_422(mesh:name_380, tankHull:name_249) : void - { - tankHull.name_533.reset(mesh.x,mesh.y,mesh.z); - tankHull.name_536.copy(tankHull.name_533); - } - - private function method_425(mesh:name_380, tankHull:name_249) : void - { - tankHull.name_517 = name_531.name_532(mesh); - } - - private function method_421(mesh:name_380, tankHull:name_249) : void - { - var boxData:name_484 = name_531.name_532(mesh); - tankHull.name_534.push(boxData); - } - - private function method_426(mesh:name_380, tankHull:name_249) : void - { - var boxData:name_484 = name_531.name_532(mesh); - tankHull.name_535.push(boxData); - } - - private function method_427(mesh:name_380, tankHull:name_249) : void - { - var name:String = mesh.name.toLowerCase(); - var type:String = name.substr(2,1); - var index:int = int(int(name.substr(3,1))); - var array:Array = type == "r" ? rightSprings : leftSprings; - array[index] = new name_194(mesh.x,mesh.y,mesh.z); - } - - private function method_428(mesh:name_380, tankHull:name_249) : void - { - var tankWheel:name_318 = new name_318(mesh.name,mesh.geometry,new name_194(mesh.x,mesh.y,mesh.z)); - if(mesh.name.charAt(2) == "l") - { - tankHull.name_325.push(tankWheel); - } - else - { - tankHull.name_323.push(tankWheel); - } - } - - private function method_430(mesh:name_380, tankHull:name_249) : void - { - tankHull.shadow = mesh; - } - - private function method_424(skin:name_528, tankHull:name_249) : void - { - var child:name_78 = null; - for(var i:int = 0; i < skin.numChildren; i++) - { - child = skin.getChildAt(i); - child.name = child.name.toLowerCase(); - } - if(skin.name.toLowerCase().charAt(0) == "l") - { - tankHull.name_337 = skin; - } - else - { - tankHull.name_340 = skin; - } - } - - private function method_420(tankHull:name_249) : void - { - var skinMatrix:Matrix4 = tankHull.name_517.matrix.clone(); - skinMatrix.invert(); - skinMatrix.getAxis(3,tankHull.name_538); - tankHull.name_533.transform4(skinMatrix); - this.method_418(tankHull.name_534,skinMatrix); - this.method_418(tankHull.name_535,skinMatrix); - tankHull.name_539 = this.method_419(leftSprings,skinMatrix); - tankHull.name_537 = this.method_419(rightSprings,skinMatrix); - leftSprings = null; - rightSprings = null; - } - - private function method_418(geometry:Vector., m:Matrix4) : void - { - var cbData:name_484 = null; - for each(cbData in geometry) - { - cbData.matrix.append(m); - } - } - - private function method_419(points:Array, matrix:Matrix4) : Vector. - { - var v:name_194 = null; - for each(v in points) - { - v.transform4(matrix); - } - return Vector.(points); - } - } -} - diff --git a/src/package_78/name_531.as b/src/package_78/name_531.as deleted file mode 100644 index 350c0b7..0000000 --- a/src/package_78/name_531.as +++ /dev/null @@ -1,31 +0,0 @@ -package package_78 -{ - import package_19.name_380; - import package_21.name_386; - import package_46.Matrix4; - import package_46.name_194; - import package_86.name_484; - - public class name_531 - { - public function name_531() - { - super(); - } - - public static function name_532(mesh:name_380) : name_484 - { - mesh.calculateBoundBox(); - var bb:name_386 = mesh.boundBox; - var hs:name_194 = new name_194(0.5 * (bb.maxX - bb.minX),0.5 * (bb.maxY - bb.minY),0.5 * (bb.maxZ - bb.minZ)); - var midPoint:name_194 = new name_194(0.5 * (bb.minX + bb.maxX),0.5 * (bb.minY + bb.maxY),0.5 * (bb.minZ + bb.maxZ)); - var matrix:Matrix4 = new Matrix4(); - matrix.name_196(mesh.rotationX,mesh.rotationY,mesh.rotationZ); - matrix.name_75(mesh.x,mesh.y,mesh.z); - midPoint.transform4(matrix); - matrix.name_201(midPoint); - return new name_484(hs,matrix); - } - } -} - diff --git a/src/package_78/name_731.as b/src/package_78/name_731.as deleted file mode 100644 index e772144..0000000 --- a/src/package_78/name_731.as +++ /dev/null @@ -1,51 +0,0 @@ -package package_78 -{ - import package_19.name_380; - import package_46.name_194; - import package_71.name_234; - import package_71.name_333; - - public class name_731 extends name_258 - { - public function name_731() - { - super(); - } - - override protected function createTankPart() : name_333 - { - return new name_234(); - } - - override protected function getParsingFunctions() : Object - { - return { - "turret":this.method_429, - "fmnt":this.method_886, - "box":this.method_887, - "muzzle":this.method_885 - }; - } - - private function method_429(mesh:name_380, tankTurret:name_234) : void - { - tankTurret.geometry = mesh.geometry; - } - - private function method_886(mesh:name_380, tankTurret:name_234) : void - { - tankTurret.var_423.reset(mesh.x,mesh.y,mesh.z); - } - - private function method_887(mesh:name_380, tankTurret:name_234) : void - { - tankTurret.var_422.push(name_531.name_532(mesh)); - } - - private function method_885(mesh:name_380, tankTurret:name_234) : void - { - tankTurret.var_421.push(new name_194(mesh.x,mesh.y,mesh.z)); - } - } -} - diff --git a/src/package_79/name_261.as b/src/package_79/name_261.as deleted file mode 100644 index de97da0..0000000 --- a/src/package_79/name_261.as +++ /dev/null @@ -1,121 +0,0 @@ -package package_79 -{ - import package_46.Matrix3; - import package_46.name_194; - import alternativa.tanks.game.weapons.IGenericTargetingSystem; - import package_76.name_256; - import package_86.name_257; - import package_86.name_540; - import package_90.name_273; - import package_92.name_271; - - public class name_261 implements IGenericTargetingSystem - { - private static var collisionMask:int = name_257.STATIC | name_257.WEAPON; - - private static var rayDirection:name_194 = new name_194(); - - private var var_469:Number; - - private var var_470:name_194 = new name_194(); - - private var matrix:Matrix3 = new Matrix3(); - - private var rayHit:name_273 = new name_273(); - - private var filter:name_540 = new name_540(); - - private var angleUp:Number; - - private var numRaysUp:int; - - private var angleDown:Number; - - private var numRaysDown:int; - - private var collisionDetector:name_256; - - private var targetValidator:name_326; - - public function name_261(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, collisionDetector:name_256, targetValidator:name_326) - { - super(); - this.angleUp = angleUp; - this.numRaysUp = numRaysUp; - this.angleDown = angleDown; - this.numRaysDown = numRaysDown; - this.collisionDetector = collisionDetector; - this.targetValidator = targetValidator; - } - - public function name_303(validator:name_326) : void - { - this.targetValidator = validator; - } - - public function name_310(collisionDetector:name_256) : void - { - this.collisionDetector = collisionDetector; - } - - public function name_527(shooter:name_271, muzzlePosition:name_194, barrelOrigin:name_194, barrelDirection:name_194, barrelLength:Number, gunElevationAxis:name_194, maxDistance:Number, result:name_194) : void - { - var body:name_271 = null; - this.filter.body = shooter; - this.var_469 = maxDistance + 1; - if(this.collisionDetector.raycast(barrelOrigin,barrelDirection,collisionMask,maxDistance,this.filter,this.rayHit)) - { - this.var_469 = this.rayHit.t; - body = this.rayHit.primitive.body; - if(body == null) - { - if(this.rayHit.t < barrelLength) - { - result.copy(barrelDirection); - return; - } - } - this.var_470.copy(barrelDirection); - } - if(this.numRaysUp > 0) - { - this.method_466(shooter,barrelOrigin,barrelDirection,gunElevationAxis,this.numRaysUp,this.angleUp / this.numRaysUp,maxDistance); - } - if(this.numRaysDown > 0) - { - this.method_466(shooter,barrelOrigin,barrelDirection,gunElevationAxis,this.numRaysDown,-this.angleDown / this.numRaysDown,maxDistance); - } - this.filter.body = null; - if(this.var_469 > maxDistance) - { - result.copy(barrelDirection); - } - else - { - result.copy(this.var_470); - } - } - - private function method_466(shooter:name_271, origin:name_194, barrelDirection:name_194, gunElevationAxis:name_194, numRays:int, angleStep:Number, maxDistance:Number) : void - { - var targetBody:name_271 = null; - this.matrix.method_344(gunElevationAxis,angleStep); - rayDirection.copy(barrelDirection); - for(var i:int = 1; i <= numRays; ) - { - rayDirection.transform3(this.matrix); - if(Boolean(this.collisionDetector.raycast(origin,rayDirection,collisionMask,maxDistance,this.filter,this.rayHit)) && this.rayHit.t < this.var_469) - { - targetBody = this.rayHit.primitive.body; - if(targetBody != null && this.targetValidator.name_541(shooter,targetBody,0,0) > 0) - { - this.var_469 = this.rayHit.t; - this.var_470.copy(rayDirection); - } - } - i++; - } - } - } -} - diff --git a/src/package_79/name_280.as b/src/package_79/name_280.as deleted file mode 100644 index c1e1e93..0000000 --- a/src/package_79/name_280.as +++ /dev/null @@ -1,142 +0,0 @@ -package package_79 -{ - import package_46.Matrix3; - import package_46.name_194; - import package_76.name_256; - import package_86.name_257; - import package_86.name_540; - import package_90.name_273; - import package_92.name_271; - - public class name_280 implements name_622 - { - private static const RICOCHET_NORMAL_OFFSET:Number = 0.01; - - private static var COLLISION_MASK:int = name_257.STATIC | name_257.WEAPON; - - private static var direction:name_194 = new name_194(); - - private static var currDirection:name_194 = new name_194(); - - private static var currOrigin:name_194 = new name_194(); - - private var angleUp:Number; - - private var numRaysUp:int; - - private var angleDown:Number; - - private var numRaysDown:int; - - private var collisionDetector:name_256; - - private var maxRicochets:int; - - private var targetEvaluator:name_326; - - private var rayHit:name_273 = new name_273(); - - private var filter:name_540 = new name_540(); - - private var matrix:Matrix3 = new Matrix3(); - - private var var_509:Number; - - public function name_280(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, maxRicochets:int, collisionDetector:name_256, targetValidator:name_326) - { - super(); - this.angleUp = angleUp; - this.numRaysUp = numRaysUp; - this.angleDown = angleDown; - this.numRaysDown = numRaysDown; - this.maxRicochets = maxRicochets; - this.collisionDetector = collisionDetector; - this.targetEvaluator = targetValidator; - } - - public function name_310(collisionDetector:name_256) : void - { - this.collisionDetector = collisionDetector; - } - - public function name_303(validator:name_326) : void - { - this.targetEvaluator = validator; - } - - public function name_624(shooter:name_271, muzzlePosition:name_194, barrelDirection:name_194, gunElevationAxis:name_194, maxDistance:Number, result:name_194) : void - { - this.var_509 = 0; - this.method_431(shooter,muzzlePosition,barrelDirection,maxDistance,0,result); - this.method_466(shooter,muzzlePosition,barrelDirection,gunElevationAxis,maxDistance,this.angleUp / this.numRaysUp,this.numRaysUp,result); - this.method_466(shooter,muzzlePosition,barrelDirection,gunElevationAxis,maxDistance,-this.angleDown / this.numRaysDown,this.numRaysDown,result); - this.filter.body = null; - if(this.var_509 == 0) - { - result.copy(barrelDirection); - } - } - - private function method_431(shooter:name_271, origin:name_194, direction:name_194, maxDistance:Number, angle:Number, result:name_194) : void - { - var body:name_271 = null; - var distance:Number = NaN; - var targetPriority:Number = NaN; - var normal:name_194 = null; - var remainingDistance:Number = maxDistance; - currOrigin.copy(origin); - currDirection.copy(direction); - this.filter.body = shooter; - for(var ricochetCount:int = 0; remainingDistance > 0; ) - { - if(!this.collisionDetector.raycast(currOrigin,currDirection,COLLISION_MASK,remainingDistance,this.filter,this.rayHit)) - { - return; - } - remainingDistance -= this.rayHit.t; - if(remainingDistance < 0) - { - remainingDistance = 0; - } - body = this.rayHit.primitive.body; - if(body != null) - { - distance = maxDistance - remainingDistance; - targetPriority = Number(this.targetEvaluator.name_541(shooter,body,distance,angle)); - if(targetPriority > this.var_509) - { - this.var_509 = targetPriority; - result.copy(direction); - } - return; - } - ricochetCount++; - if(ricochetCount > this.maxRicochets) - { - return; - } - this.filter.body = null; - normal = this.rayHit.normal; - currDirection.method_362(-2 * currDirection.dot(normal),normal); - currOrigin.copy(this.rayHit.position).method_362(RICOCHET_NORMAL_OFFSET,normal); - } - } - - private function method_466(shooter:name_271, origin:name_194, gunDirection:name_194, gunElevationAxis:name_194, maxDistance:Number, angleStep:Number, numRays:int, result:name_194) : void - { - direction.copy(gunDirection); - this.matrix.method_344(gunElevationAxis,angleStep); - if(angleStep < 0) - { - angleStep = -angleStep; - } - var angle:Number = angleStep; - for(var i:int = 0; i < numRays; i++,angle += angleStep) - { - direction.transform3(this.matrix); - this.method_431(shooter,origin,direction,maxDistance,angle,result); - } - } - } -} - diff --git a/src/package_79/name_282.as b/src/package_79/name_282.as deleted file mode 100644 index 66c28ba..0000000 --- a/src/package_79/name_282.as +++ /dev/null @@ -1,134 +0,0 @@ -package package_79 -{ - import flash.utils.Dictionary; - import package_46.Matrix3; - import package_46.name_194; - import package_76.name_256; - import package_86.name_257; - import package_86.name_540; - import package_90.name_273; - import package_92.name_271; - - public class name_282 - { - private static const COLLISION_MASK:int = name_257.WEAPON | name_257.STATIC; - - private var filter:name_540 = new name_540(); - - private var rayHit:name_273 = new name_273(); - - private var range:Number; - - private var var_452:Number; - - private var numRays:int; - - private var numSteps:int; - - private var collisionDetector:name_256; - - private var sideAxis:name_194 = new name_194(); - - private var rayDirection:name_194 = new name_194(); - - private var var_449:name_194 = new name_194(); - - private var var_450:Matrix3 = new Matrix3(); - - private var var_451:Matrix3 = new Matrix3(); - - private var targetToDistance:Dictionary; - - private var targetEvaluator:name_326; - - public function name_282(range:Number, coneAngle:Number, numRays:int, numSteps:int, collisionDetector:name_256, targetEvaluator:name_326) - { - super(); - this.range = range; - this.var_452 = 0.5 * coneAngle; - this.numRays = numRays; - this.numSteps = numSteps; - this.collisionDetector = collisionDetector; - this.targetEvaluator = targetEvaluator; - } - - public function method_433(shooter:name_271, barrelOrigin:name_194, barrelLength:Number, originOffsetCoeff:Number, gunDirection:name_194, gunElevationAxis:name_194, targetToDistance:Dictionary) : void - { - var key:* = undefined; - var body:name_271 = null; - var actualRange:Number = NaN; - var angleStep:Number = NaN; - var i:int = 0; - var realDistance:Number = NaN; - this.filter.body = shooter; - this.targetToDistance = targetToDistance; - var originOffset:Number = originOffsetCoeff * barrelLength; - if(this.collisionDetector.raycast(barrelOrigin,gunDirection,COLLISION_MASK,barrelLength,this.filter,this.rayHit)) - { - body = this.rayHit.primitive.body; - if(body != null && this.targetEvaluator.name_541(shooter,body,0,0) > 0) - { - targetToDistance[body] = 0; - } - } - else - { - this.sideAxis.copy(gunElevationAxis); - this.var_449.copy(barrelOrigin).method_362(barrelLength - originOffset,gunDirection); - actualRange = this.range + originOffset; - this.method_431(shooter,this.var_449,gunDirection,actualRange); - this.var_451.method_344(gunDirection,Math.PI / this.numSteps); - angleStep = this.var_452 / this.numRays; - for(i = 0; i < this.numSteps; i++) - { - this.method_432(shooter,this.var_449,actualRange,gunDirection,this.sideAxis,this.numRays,angleStep); - this.method_432(shooter,this.var_449,actualRange,gunDirection,this.sideAxis,this.numRays,-angleStep); - this.sideAxis.transform3(this.var_451); - } - } - for(key in targetToDistance) - { - realDistance = targetToDistance[key] - originOffset; - if(realDistance < 0) - { - realDistance = 0; - } - targetToDistance[key] = realDistance; - } - this.filter.body = null; - this.targetToDistance = null; - } - - private function method_432(shooter:name_271, rayOrigin:name_194, rayLength:Number, gunDirection:name_194, rotationAxis:name_194, numRays:int, angleStep:Number) : void - { - this.var_450.method_344(rotationAxis,angleStep); - this.rayDirection.copy(gunDirection); - for(var i:int = 0; i < numRays; i++) - { - this.rayDirection.transform3(this.var_450); - this.method_431(shooter,rayOrigin,this.rayDirection,rayLength); - } - } - - private function method_431(shooter:name_271, rayOrigin:name_194, rayDirection:name_194, rayLength:Number) : void - { - var body:name_271 = null; - var realDistance:Number = NaN; - var storedDistance:Number = NaN; - if(this.collisionDetector.raycast(rayOrigin,rayDirection,COLLISION_MASK,rayLength,this.filter,this.rayHit)) - { - body = this.rayHit.primitive.body; - if(body != null && this.targetEvaluator.name_541(shooter,body,0,0) > 0) - { - realDistance = this.rayHit.t; - storedDistance = Number(this.targetToDistance[body]); - if(Boolean(isNaN(storedDistance)) || storedDistance > realDistance) - { - this.targetToDistance[body] = realDistance; - } - } - } - } - } -} - diff --git a/src/package_79/name_291.as b/src/package_79/name_291.as deleted file mode 100644 index 8187f56..0000000 --- a/src/package_79/name_291.as +++ /dev/null @@ -1,122 +0,0 @@ -package package_79 -{ - import flash.utils.Dictionary; - import package_117.name_542; - import package_120.name_606; - import package_46.Matrix3; - import package_46.name_194; - import alternativa.tanks.game.weapons.IGenericTargetingSystem; - import package_76.name_256; - import package_86.name_257; - import package_90.name_273; - import package_92.name_271; - - public class name_291 implements IGenericTargetingSystem - { - private const COLLISION_MASK:int = name_257.WEAPON | name_257.STATIC; - - private var collisionDetector:name_256; - - private var angleUp:Number; - - private var angleDown:Number; - - private var numRaysUp:int; - - private var numRaysDown:int; - - private var var_504:name_606 = new name_606(); - - private var rayHit:name_273 = new name_273(); - - private var direction:name_194 = new name_194(); - - private var rotationMatrix:Matrix3 = new Matrix3(); - - private var origin:name_194 = new name_194(); - - private var targetEvaluator:name_542; - - public function name_291(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, collisionDetector:name_256, targetEvaluator:name_542) - { - super(); - this.angleUp = angleUp; - this.angleDown = angleDown; - this.numRaysUp = numRaysUp; - this.numRaysDown = numRaysDown; - this.collisionDetector = collisionDetector; - this.targetEvaluator = targetEvaluator; - } - - public function name_527(shooter:name_271, muzzlePosition:name_194, barrelOrigin:name_194, barrelDirection:name_194, barrelLength:Number, gunElevationAxis:name_194, maxDistance:Number, result:name_194) : void - { - var centerLineValue:Number = this.method_522(shooter,barrelOrigin,barrelDirection,barrelLength,maxDistance); - var directionValue:Number = 0; - directionValue = this.method_523(this.numRaysUp,this.angleUp / this.numRaysUp,directionValue,shooter,barrelOrigin,barrelDirection,barrelLength,gunElevationAxis,maxDistance,result); - directionValue = this.method_523(this.numRaysDown,-this.angleDown / this.numRaysDown,directionValue,shooter,barrelOrigin,barrelDirection,barrelLength,gunElevationAxis,maxDistance,result); - if(centerLineValue >= directionValue) - { - result.copy(barrelDirection); - } - } - - private function method_523(numRays:int, angleStep:Number, maxDirectionValue:Number, shooter:name_271, barrelOrigin:name_194, barrelDirection:name_194, barrelLength:Number, gunElevationAxis:name_194, maxDistance:Number, result:name_194) : Number - { - var directionValue:Number = NaN; - this.rotationMatrix.method_344(gunElevationAxis,angleStep); - this.direction.copy(barrelDirection); - for(var i:int = 0; i < numRays; ) - { - this.direction.transform3(this.rotationMatrix); - directionValue = this.method_522(shooter,barrelOrigin,this.direction,barrelLength,maxDistance); - if(directionValue > maxDirectionValue) - { - maxDirectionValue = directionValue; - result.copy(this.direction); - } - i++; - } - return maxDirectionValue; - } - - private function method_522(shooter:name_271, barrelOrigin:name_194, barrelDirection:name_194, barrelLength:Number, maxDistance:Number) : Number - { - var body:name_271 = null; - var distance:Number = NaN; - var targetValue:Number = NaN; - var directionValue:Number = 0; - var firstTarget:Boolean = true; - this.var_504.name_605 = new Dictionary(); - this.var_504.name_605[shooter] = true; - this.origin.copy(barrelOrigin); - while(this.collisionDetector.raycast(this.origin,barrelDirection,this.COLLISION_MASK,maxDistance,this.var_504,this.rayHit)) - { - body = this.rayHit.primitive.body; - if(body == null) - { - break; - } - distance = this.rayHit.t - barrelLength; - if(distance < 0) - { - distance = 0; - } - targetValue = Number(this.targetEvaluator.name_541(body,distance)); - if(firstTarget) - { - if(targetValue < 0) - { - break; - } - firstTarget = false; - } - directionValue += targetValue; - this.var_504.name_605[body] = true; - this.origin.copy(this.rayHit.position); - } - this.var_504.name_605 = null; - return directionValue; - } - } -} - diff --git a/src/package_79/name_326.as b/src/package_79/name_326.as deleted file mode 100644 index 9d6e978..0000000 --- a/src/package_79/name_326.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_79 -{ - import package_92.name_271; - - public interface name_326 - { - function name_541(param1:name_271, param2:name_271, param3:Number, param4:Number) : Number; - } -} - diff --git a/src/package_79/name_622.as b/src/package_79/name_622.as deleted file mode 100644 index a1f3994..0000000 --- a/src/package_79/name_622.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_79 -{ - import package_46.name_194; - import package_92.name_271; - - public interface name_622 - { - function name_624(param1:name_271, param2:name_194, param3:name_194, param4:name_194, param5:Number, param6:name_194) : void; - } -} - diff --git a/src/package_80/name_306.as b/src/package_80/name_306.as deleted file mode 100644 index 7cb3f28..0000000 --- a/src/package_80/name_306.as +++ /dev/null @@ -1,56 +0,0 @@ -package package_80 -{ - import flash.events.Event; - import flash.media.Sound; - import flash.media.SoundChannel; - import flash.media.SoundTransform; - import package_41.name_173; - import package_71.class_10; - - public class name_306 implements class_10 - { - private var soundLibrary:name_173; - - private var var_474:Sound; - - private var var_473:SoundChannel = null; - - public function name_306(param1:name_173) - { - super(); - this.soundLibrary = param1; - this.var_474 = param1.name_297("turret"); - } - - public function onTurretControlChanged(param1:int, param2:Boolean) : void - { - if(this.var_473 != null) - { - this.var_473.stop(); - } - if(param1 != 0) - { - this.method_476(); - } - } - - private function method_476() : void - { - if(this.var_474 != null) - { - this.var_473 = this.var_474.play(0,0,new SoundTransform(0.2)); - this.var_473.addEventListener(Event.SOUND_COMPLETE,this.method_475); - } - } - - private function method_475(param1:Event) : void - { - if(this.var_473 != null) - { - this.var_473.removeEventListener(Event.SOUND_COMPLETE,this.method_475); - this.method_476(); - } - } - } -} - diff --git a/src/package_80/name_312.as b/src/package_80/name_312.as deleted file mode 100644 index 75f8981..0000000 --- a/src/package_80/name_312.as +++ /dev/null @@ -1,111 +0,0 @@ -package package_80 -{ - import flash.events.Event; - import flash.media.Sound; - import flash.media.SoundChannel; - import package_41.name_173; - import package_71.class_29; - - public class name_312 implements class_29 - { - private var var_462:Sound; - - private var var_465:Sound; - - private var var_464:Sound; - - private var var_463:Sound; - - private var var_460:SoundChannel; - - private var var_461:Boolean = false; - - public function name_312(param1:name_173) - { - super(); - this.var_462 = param1.name_297("startmoving"); - this.var_465 = param1.name_297("endmoving"); - this.var_464 = param1.name_297("move"); - this.var_463 = param1.name_297("idle"); - this.method_449(); - } - - public function method_448(param1:int, param2:int, param3:Boolean) : void - { - var _loc4_:Boolean = param1 != 0 || param2 != 0; - if(_loc4_ && !this.var_461) - { - if(this.var_460 != null) - { - this.var_460.stop(); - } - this.method_454(); - } - else if(!_loc4_ && this.var_461) - { - if(this.var_460 != null) - { - this.var_460.stop(); - } - this.method_455(); - } - this.var_461 = _loc4_; - } - - private function method_455() : void - { - this.method_449(); - } - - private function method_453(param1:Event) : void - { - this.var_460.removeEventListener(Event.SOUND_COMPLETE,this.method_453); - this.method_449(); - } - - private function method_454() : void - { - if(this.var_460 != null) - { - this.var_460.stop(); - } - this.var_460 = this.var_462.play(); - this.var_460.addEventListener(Event.SOUND_COMPLETE,this.method_456); - } - - private function method_456(param1:Event) : void - { - this.var_460.stop(); - this.method_450(); - } - - private function method_450() : void - { - this.var_460 = this.var_464.play(0); - this.var_460.addEventListener(Event.SOUND_COMPLETE,this.method_451); - } - - private function method_451(param1:Event) : void - { - this.var_460.removeEventListener(Event.SOUND_COMPLETE,this.method_451); - this.method_450(); - } - - private function method_449() : void - { - this.var_460 = this.var_463.play(0); - this.var_460.addEventListener(Event.SOUND_COMPLETE,this.method_452); - } - - private function method_452(param1:Event) : void - { - this.var_460.removeEventListener(Event.SOUND_COMPLETE,this.method_452); - this.method_449(); - } - - public function method_447() : void - { - } - } -} - diff --git a/src/package_81/name_262.as b/src/package_81/name_262.as deleted file mode 100644 index 66f878e..0000000 --- a/src/package_81/name_262.as +++ /dev/null @@ -1,20 +0,0 @@ -package package_81 -{ - import package_4.class_4; - import package_72.name_242; - - public class name_262 - { - public var frames:Vector.; - - public var colorTransformPoints:Vector.; - - public function name_262(frames:Vector., colorTransformPoints:Vector.) - { - super(); - this.frames = frames; - this.colorTransformPoints = colorTransformPoints; - } - } -} - diff --git a/src/package_81/name_265.as b/src/package_81/name_265.as deleted file mode 100644 index 533c8a0..0000000 --- a/src/package_81/name_265.as +++ /dev/null @@ -1,95 +0,0 @@ -package package_81 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_25.name_250; - import package_28.name_129; - import package_75.class_15; - import package_75.name_236; - import package_76.name_256; - import package_95.class_28; - - public class name_265 extends EntityComponent implements class_28 - { - private static var flamethrowerSmokeAtlas:name_250; - - private static var flamethrowerFlashAtlas:name_250; - - private static var flamethrowerFireAtlas:name_250; - - private var gameKernel:GameKernel; - - private var effect:name_544; - - private var range:Number; - - private var coneAngle:Number; - - private var maxParticles:int; - - private var particleSpeed:Number; - - private var sfxData:name_262; - - private var chassis:name_236; - - private var turret:class_15; - - public function name_265(range:Number, coneAngle:Number, maxParticles:int, particleSpeed:Number, sfxData:name_262) - { - super(); - this.range = range; - this.coneAngle = coneAngle; - this.maxParticles = maxParticles; - this.particleSpeed = particleSpeed; - this.sfxData = sfxData; - this.chassis = this.chassis; - this.turret = this.turret; - } - - public static function init(diffuse:name_129, opacity:name_129) : void - { - flamethrowerSmokeAtlas = new name_250(diffuse,opacity,8,8,0,16,30,true); - flamethrowerFlashAtlas = new name_250(diffuse,opacity,8,8,16,16,60,true); - flamethrowerFireAtlas = new name_250(diffuse,opacity,8,8,32,32,60,false); - } - - override public function initComponent() : void - { - this.turret = class_15(entity.getComponentStrict(class_15)); - this.chassis = name_236(entity.getComponentStrict(name_236)); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.gameKernel = null; - } - - public function start() : void - { - if(this.effect != null) - { - this.effect.method_255(); - } - this.effect = name_544(this.gameKernel.method_108().name_110(name_544)); - var collisionDetector:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - this.effect.init(this.turret,flamethrowerSmokeAtlas,flamethrowerFlashAtlas,flamethrowerFireAtlas); - this.gameKernel.name_5().method_37(this.effect); - } - - public function stop() : void - { - if(this.effect != null) - { - this.effect.method_255(); - } - this.effect = null; - } - } -} - diff --git a/src/package_81/name_717.as b/src/package_81/name_717.as deleted file mode 100644 index b92f4e4..0000000 --- a/src/package_81/name_717.as +++ /dev/null @@ -1,157 +0,0 @@ -package package_81 -{ - import flash.display3D.Context3DBlendFactor; - import flash.geom.Vector3D; - import package_21.name_386; - import package_25.name_113; - import package_25.name_250; - import package_25.name_626; - - public class name_717 extends name_113 - { - private static var smokePrototype1:name_626; - - private static var smokePrototype2:name_626; - - private static var flashPrototype1:name_626; - - private static var flashPrototype2:name_626; - - private static var flashPrototype3:name_626; - - private static var firePrototype:name_626; - - private static var pos:Vector3D = new Vector3D(); - - private static var dir:Vector3D = new Vector3D(); - - private static var liftSpeed:Number = 25; - - private static var windSpeed:Number = 10; - - public function name_717(smoke:name_250, fire:name_250, flash:name_250, live:Number = 1) - { - var keyTime:Number = NaN; - super(); - if(flashPrototype1 == null) - { - flashPrototype1 = new name_626(50,50,flash,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - flashPrototype1.method_257(0 * 0.03333333333333333,0,0.13,0.13,1,1,1,0.8); - flashPrototype1.method_257(2 * 0.03333333333333333,0,0.4,0.4,1,1,1,1); - flashPrototype1.method_257(6 * 0.03333333333333333,0,1.1,1.1,1,1,1,0.8); - flashPrototype1.method_257(11 * 0.03333333333333333,0,1.26,1.26,1,1,1,0.8); - flashPrototype1.method_257(17 * 0.03333333333333333,0,1.47,1.47,1,1,0.3,0); - flashPrototype2 = new name_626(50,50,flash,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - flashPrototype2.method_257(1 * 0.03333333333333333,0,0.13,0.13,1,1,1,0.8); - flashPrototype2.method_257(3 * 0.03333333333333333,0,0.3,0.3,1,1,1,1); - flashPrototype2.method_257(8 * 0.03333333333333333,0,0.8,0.8,1,1,1,0.5); - flashPrototype2.method_257(12 * 0.03333333333333333,0,1.26,1.26,1,1,1,0); - flashPrototype3 = new name_626(50,50,flash,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - flashPrototype3.method_257(2 * 0.03333333333333333,0,0.13,0.13,1,1,1,0.8); - flashPrototype3.method_257(4 * 0.03333333333333333,0,0.3,0.3,1,1,1,1); - flashPrototype3.method_257(8 * 0.03333333333333333,0,0.6,0.6,1,1,1,0); - } - if(firePrototype == null) - { - firePrototype = new name_626(50,50,fire,true); - firePrototype.method_257(6 * 0.03333333333333333,0,1.53,1.53,1,1,1,0); - firePrototype.method_257(11 * 0.03333333333333333,0,1.53,1.53,1,1,1,0.6); - firePrototype.method_257(17 * 0.03333333333333333,0,1.85,1.85,1,0.7,0,0.8); - firePrototype.method_257(24 * 0.03333333333333333,0,1.98,1.98,1,0.3,0,0.2); - } - if(smokePrototype1 == null) - { - smokePrototype1 = new name_626(50,50,smoke,true); - smokePrototype1.method_257(6 * 0.03333333333333333,0,1.51,1.51,1,1,1,0); - smokePrototype1.method_257(11 * 0.03333333333333333,0,1.92,1.92,1,1,1,0.9); - smokePrototype1.method_257(17 * 0.03333333333333333,0,2.49,2.49,0.5,0.5,0.5,1); - smokePrototype1.method_257(24 * 0.03333333333333333,0,2.66,2.66,0,0,0,0); - smokePrototype2 = new name_626(50,50,smoke,false); - smokePrototype2.method_257(15 * 0.03333333333333333,0,1.51,1.51,1,1,1,0); - smokePrototype2.method_257(20 * 0.03333333333333333,0,1.92,1.92,0.8,0.8,0.8,0.3); - smokePrototype2.method_257(26 * 0.03333333333333333,0,2.49,2.49,0.5,0.5,0.5,0.6); - smokePrototype2.method_257(55 * 0.03333333333333333,0,2.66,2.66,0,0,0,0); - } - boundBox = new name_386(); - boundBox.minX = -350; - boundBox.minY = -350; - boundBox.minZ = -350; - boundBox.maxX = 350; - boundBox.maxY = 350; - boundBox.maxZ = 350; - var i:int = 0; - while(true) - { - keyTime = i * 2 * 0.03333333333333333; - if(keyTime >= live) - { - break; - } - method_257(keyTime,this.keyFrame1); - i++; - } - method_258(var_151[var_148 - 1] + smokePrototype2.lifeTime); - } - - private function keyFrame1(keyTime:Number, time:Number) : void - { - var ang:Number = 6 * 3.14 / 180; - dir.x = var_156.x; - dir.y = var_156.y; - dir.z = var_156.z + 0.2; - dir.normalize(); - this.method_531(var_156,ang,pos); - pos.scaleBy(time * 300 + 10); - flashPrototype1.name_627(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); - this.method_531(var_156,ang,pos); - pos.scaleBy((time - 0.03333333333333333) * 150 + 10); - flashPrototype2.name_627(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); - this.method_531(var_156,ang,pos); - pos.scaleBy((time - 0.03333333333333333 - 0.03333333333333333) * 80 + 10); - flashPrototype3.name_627(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); - this.method_531(var_156,ang,pos); - pos.scaleBy(time * 240 + 10); - firePrototype.name_627(this,time,pos,random() * 6.28,1,1,1,-6 * 0.03333333333333333 * firePrototype.atlas.fps); - this.method_531(dir,ang,pos); - pos.scaleBy(time * 300 + 10); - firePrototype.name_627(this,time,pos,random() * 6.28,1,1,1,-6 * 0.03333333333333333 * firePrototype.atlas.fps); - this.method_531(var_156,ang,pos); - pos.scaleBy(time * 300 + 10); - smokePrototype1.name_627(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); - this.method_531(dir,ang,pos); - pos.scaleBy(time * 330 + 10); - smokePrototype1.name_627(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); - this.method_531(dir,ang,pos); - pos.scaleBy(time * 40 + 100 + random() * 120); - pos.x += random() * 50 - 25; - pos.y += random() * 50 - 25; - pos.z += random() * 50 - 25; - this.method_529(time - 15 * 0.03333333333333333,1,pos); - smokePrototype2.name_627(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); - } - - private function method_531(direction:Vector3D, angle:Number, result:Vector3D) : void - { - var x:Number = random() * 2 - 1; - var y:Number = random() * 2 - 1; - var z:Number = random() * 2 - 1; - result.x = direction.z * y - direction.y * z; - result.y = direction.x * z - direction.z * x; - result.z = direction.y * x - direction.x * y; - result.normalize(); - result.scaleBy(Math.sin(angle / 2)); - result.x += direction.x; - result.y += direction.y; - result.z += direction.z; - result.normalize(); - } - - private function method_529(time:Number, factor:Number, result:Vector3D) : void - { - result.x += time * windSpeed * var_5.wind.x; - result.y += time * windSpeed * var_5.wind.y; - result.z += time * windSpeed * var_5.wind.z + time * liftSpeed * factor; - } - } -} - diff --git a/src/package_82/name_247.as b/src/package_82/name_247.as deleted file mode 100644 index 03f158f..0000000 --- a/src/package_82/name_247.as +++ /dev/null @@ -1,68 +0,0 @@ -package package_82 -{ - import flash.geom.Vector3D; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_115.class_26; - import package_25.name_250; - import package_28.name_129; - import package_46.name_194; - import package_75.class_15; - import package_83.name_594; - - public class name_247 extends EntityComponent implements class_26 - { - private static var smokyShotAtlas:name_250; - - private var gameKernel:GameKernel; - - private var turretPhysicsComponent:class_15; - - private var textureResource:name_129; - - private var var_487:Vector3D = new Vector3D(); - - public function name_247(textureResource:name_129) - { - super(); - this.textureResource = textureResource; - } - - public static function init(diffuse:name_129, opacity:name_129) : void - { - smokyShotAtlas = new name_250(diffuse,opacity,8,8,58,1,30,true); - } - - override public function initComponent() : void - { - this.turretPhysicsComponent = class_15(entity.getComponentStrict(class_15)); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - gameKernel.name_5().method_29(this.textureResource); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - gameKernel.name_5().method_28(this.textureResource); - } - - public function method_411(barrelIndex:int, barrelOrigin:name_194, muzzlePosition:name_194, gunDirection:name_194, gunElevationAxis:name_194) : void - { - var eff:name_594 = new name_594(smokyShotAtlas); - this.var_487.x = muzzlePosition.x; - this.var_487.y = muzzlePosition.y; - this.var_487.z = muzzlePosition.z + 20; - eff.position = this.var_487; - this.var_487.x = gunDirection.x; - this.var_487.y = gunDirection.y; - this.var_487.z = gunDirection.z; - eff.direction = this.var_487; - eff.scale = 3; - this.gameKernel.name_5().method_48(eff); - } - } -} - diff --git a/src/package_83/name_269.as b/src/package_83/name_269.as deleted file mode 100644 index c957eb2..0000000 --- a/src/package_83/name_269.as +++ /dev/null @@ -1,34 +0,0 @@ -package package_83 -{ - import alternativa.tanks.game.GameKernel; - import package_118.name_550; - import package_119.name_552; - import package_4.class_4; - import alternativa.tanks.game.weapons.IGenericAmmunition; - import alternativa.tanks.game.weapons.IGenericRound; - import package_86.name_468; - import package_87.name_267; - - public class name_269 implements IGenericAmmunition - { - private var var_468:name_550; - - public function name_269(gameKernel:GameKernel, radius:Number, impactForce:Number, maximumDamageRadius:Number, minimumDamageRadius:Number, minimumDamageCoefficient:Number, callback:name_552, frames:Vector.) - { - super(); - var splashDamage:name_551 = new name_551(radius); - var weaponDistanceWeakening:name_267 = new name_267(maximumDamageRadius,minimumDamageRadius,minimumDamageCoefficient); - var splashDamageEffects:name_270 = new name_270(gameKernel,frames); - var collisionDetector:name_468 = name_468(gameKernel.method_112().name_246().collisionDetector); - var debugSplashTargetFilter:name_549 = new name_549(); - this.var_468 = new name_550(impactForce,weaponDistanceWeakening,splashDamage,splashDamageEffects,collisionDetector,debugSplashTargetFilter); - this.var_468.method_383(callback); - } - - public function getRound() : IGenericRound - { - return this.var_468; - } - } -} - diff --git a/src/package_83/name_270.as b/src/package_83/name_270.as deleted file mode 100644 index e9b24dd..0000000 --- a/src/package_83/name_270.as +++ /dev/null @@ -1,62 +0,0 @@ -package package_83 -{ - import flash.geom.Vector3D; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_25.name_250; - import package_28.name_129; - import package_4.class_4; - import package_46.name_194; - import package_72.class_12; - - public class name_270 implements class_12 - { - private static var smokeAtlas:name_250; - - private static var fireAtlas:name_250; - - private static var flashAtlas:name_250; - - private static var fragmentAtlas:name_250; - - private static var glowAtlas:name_250; - - private static var sparkAtlas:name_250; - - private static const tempVector:Vector3D = new Vector3D(); - - private var gameKernel:GameKernel; - - private var frames:Vector.; - - public function name_270(gameKernel:GameKernel, frames:Vector.) - { - super(); - this.gameKernel = gameKernel; - this.frames = frames; - } - - public static function init(diffuse:name_129, opacity:name_129) : void - { - smokeAtlas = new name_250(diffuse,opacity,8,8,0,16,30,true); - fireAtlas = new name_250(diffuse,opacity,8,8,16,16,30,true); - flashAtlas = new name_250(diffuse,opacity,8,8,32,16,30,true,0.5,0.5); - fragmentAtlas = new name_250(diffuse,opacity,8,8,48,8,30,true); - glowAtlas = new name_250(diffuse,opacity,8,8,56,1,30,true); - sparkAtlas = new name_250(diffuse,opacity,8,8,57,1,30,true); - } - - public function createEffects(position:name_194, weakeningCoefficient:Number, radius:Number) : void - { - var renderSystem:RenderSystem = this.gameKernel.name_5(); - var explosion:name_543 = new name_543(smokeAtlas,fireAtlas,flashAtlas,glowAtlas,sparkAtlas,fragmentAtlas); - tempVector.x = position.x; - tempVector.y = position.y; - tempVector.z = position.z; - explosion.position = tempVector; - explosion.scale = 6; - renderSystem.method_48(explosion); - } - } -} - diff --git a/src/package_83/name_543.as b/src/package_83/name_543.as deleted file mode 100644 index 0a58b1f..0000000 --- a/src/package_83/name_543.as +++ /dev/null @@ -1,327 +0,0 @@ -package package_83 -{ - import flash.display3D.Context3DBlendFactor; - import flash.geom.Vector3D; - import package_21.name_386; - import package_25.name_113; - import package_25.name_250; - import package_25.name_626; - - public class name_543 extends name_113 - { - private static var smokePrototype:name_626; - - private static var firePrototype:name_626; - - private static var flashPrototype:name_626; - - private static var glowPrototype:name_626; - - private static var sparkPrototype:name_626; - - private static var fragmentPrototype:name_626; - - private static const smokeDirections:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); - - private static const smokeDirectionsCount:int = 7; - - private static const sparkDirections:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); - - private static const sparkDirectionsCount:int = 20; - - private static const fragmentDirections:Vector. = Vector.([new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D(),new Vector3D()]); - - private static const fragmentDirectionsCount:int = 20; - - private static var pos:Vector3D = new Vector3D(); - - private static var dir:Vector3D = new Vector3D(); - - private static var gravity:Number = 700; - - private static var movingSpeed:Number = 700; - - private static var liftSpeed:Number = 17; - - private static var windSpeed:Number = 10; - - private static var littleTime:Number = 0.01; - - public function name_543(smoke:name_250, fire:name_250, flash:name_250, glow:name_250, spark:name_250, fragment:name_250) - { - super(); - if(smokePrototype == null) - { - smokePrototype = new name_626(128,128,smoke,false); - smokePrototype.method_257(0 * 0.03333333333333333,0,0.4,0.4,1,1,1,0); - smokePrototype.method_257(2 * 0.03333333333333333,0,0.74,0.74,0.86,0.86,0.86,0.34); - smokePrototype.method_257(4 * 0.03333333333333333,0,0.94,0.94,0.78,0.78,0.78,0.54); - smokePrototype.method_257(6 * 0.03333333333333333,0,1,1,0.75,0.75,0.75,0.6); - smokePrototype.method_257(100 * 0.03333333333333333,0,1.5,1.5,0,0,0,0); - } - if(firePrototype == null) - { - firePrototype = new name_626(128,128,fire,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - firePrototype.method_257(0 * 0.03333333333333333,0,0.4,0.4,1,1,1,0); - firePrototype.method_257(1 * 0.03333333333333333,0,0.85,0.85,1,1,1,0.85); - firePrototype.method_257(2 * 0.03333333333333333,0,1,1,1,1,1,1); - firePrototype.method_257(9 * 0.03333333333333333,0,1,1,0,0,0,0); - } - if(flashPrototype == null) - { - flashPrototype = new name_626(128,128,flash,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - flashPrototype.method_257(0 * 0.03333333333333333,0,0.6,0.6,1,1,1,1); - flashPrototype.method_257(1 * 0.03333333333333333,0,1,1,1,1,1,1); - flashPrototype.method_257(3 * 0.03333333333333333,0,0.95,0.95,1,1,1,0.75); - flashPrototype.method_257(5 * 0.03333333333333333,0,0.79,0.79,1,1,1,0); - } - if(glowPrototype == null) - { - glowPrototype = new name_626(256,256,glow,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - glowPrototype.method_257(0 * 0.03333333333333333,0,0.6,0.6,1,1,1,0.4); - glowPrototype.method_257(1 * 0.03333333333333333,0,1,1,1,1,1,0.45); - glowPrototype.method_257(8 * 0.03333333333333333,0,1,1,1,1,1,0); - } - if(sparkPrototype == null) - { - sparkPrototype = new name_626(8,8,spark,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - sparkPrototype.method_257(0 * 0.03333333333333333,0,1,1,1,1,1,1); - sparkPrototype.method_257(4.5 * 0.03333333333333333,0,0.3,0.3,1,1,0.5,0.5); - } - if(fragmentPrototype == null) - { - fragmentPrototype = new name_626(16,16,fragment,false); - fragmentPrototype.method_257(0 * 0.03333333333333333,0,0.5,0.5,2,1.4,0.7,0.6); - fragmentPrototype.method_257(7 * 0.03333333333333333,0,0.3,0.3,0.6,0.6,0.6,0.5); - } - boundBox = new name_386(); - boundBox.minX = -160; - boundBox.minY = -160; - boundBox.minZ = -90; - boundBox.maxX = 160; - boundBox.maxY = 160; - boundBox.maxZ = 200; - method_257(0 * 0.03333333333333333,this.keyFrame1); - method_257(1 * 0.03333333333333333,this.keyFrame2); - method_257(2 * 0.03333333333333333,this.keyFrame3); - method_257(3 * 0.03333333333333333,this.keyFrame4); - method_257(4 * 0.03333333333333333,this.keyFrame5); - method_257(4.7 * 0.03333333333333333,this.keyFrame6); - method_258(var_151[var_148 - 1] + smokePrototype.lifeTime); - } - - private function keyFrame1(keyTime:Number, time:Number) : void - { - var i:int = 0; - var direction:Vector3D = null; - var t:Number = NaN; - var j:int = 0; - var deg:Number = Math.PI / 180; - var delta:Number = 30 * deg; - var bot:Number = -15 * deg; - var top:Number = 30 * deg; - this.method_531(45 * deg - delta,45 * deg + delta,bot,top,smokeDirections[0]); - this.method_531(135 * deg - delta,135 * deg + delta,bot,top,smokeDirections[1]); - this.method_531(225 * deg - delta,225 * deg + delta,bot,top,smokeDirections[2]); - this.method_531(315 * deg - delta,315 * deg + delta,bot,top,smokeDirections[3]); - this.method_531(0,Math.PI + Math.PI,40 * deg,90 * deg,smokeDirections[4]); - this.method_531(0,Math.PI + Math.PI,40 * deg,90 * deg,smokeDirections[5]); - this.method_531(0,Math.PI + Math.PI,40 * deg,90 * deg,smokeDirections[6]); - (smokeDirections[0] as Vector3D).scaleBy(0.8 + random() * 0.2); - (smokeDirections[1] as Vector3D).scaleBy(0.8 + random() * 0.2); - (smokeDirections[2] as Vector3D).scaleBy(0.8 + random() * 0.2); - (smokeDirections[3] as Vector3D).scaleBy(0.8 + random() * 0.2); - (smokeDirections[4] as Vector3D).scaleBy(1 + random() * 0.2); - (smokeDirections[5] as Vector3D).scaleBy(0.8 + random() * 0.2); - (smokeDirections[6] as Vector3D).scaleBy(0.8 + random() * 0.2); - for(i = 0; i < sparkDirectionsCount; i++) - { - direction = sparkDirections[i]; - this.method_531(0,360 * deg,bot,90 * deg,direction); - direction.scaleBy(0.4 + random() * 0.3); - } - for(i = 0; i < fragmentDirectionsCount; i++) - { - direction = fragmentDirections[i]; - this.method_531(0,360 * deg,bot,90 * deg,direction); - direction.scaleBy(0.4 + random() * 0.3); - } - for(i = 0; i < smokeDirectionsCount; i++) - { - direction = smokeDirections[i]; - this.method_754(keyTime + littleTime,direction,pos); - this.method_529(time,1.17,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,1.17,1.17,1,random() * smokePrototype.atlas.rangeLength); - this.method_754((keyTime + littleTime) * 0.9,direction,pos); - firePrototype.name_627(this,time,pos,random() - 0.5,1.07,1.07,1,random() * firePrototype.atlas.rangeLength); - this.method_754(keyTime + 0 * 0.03333333333333333,direction,pos); - flashPrototype.name_627(this,time,pos,random() - 0.5,0.8,0.8,1,random() * flashPrototype.atlas.rangeLength); - this.method_754(keyTime + 1.3 * 0.03333333333333333,direction,pos); - flashPrototype.name_627(this,time,pos,random() - 0.5,0.5,0.5,1,random() * flashPrototype.atlas.rangeLength); - this.method_754(keyTime + 2 * 0.03333333333333333,direction,pos); - flashPrototype.name_627(this,time,pos,random() - 0.5,0.3,0.3,1,random() * flashPrototype.atlas.rangeLength); - } - pos.x = 0; - pos.y = 0; - pos.z = 0; - flashPrototype.name_627(this,time,pos,random() - 0.5,1,1,1,random() * flashPrototype.atlas.rangeLength); - glowPrototype.name_627(this,time,pos,0,0.75,0.75,1,0); - for(i = 0; i < sparkDirectionsCount >> 1; i++) - { - direction = sparkDirections[i]; - t = keyTime + 0.1; - for(j = 0; j < 8; j++) - { - this.method_754(time + t,direction,pos,0.4); - sparkPrototype.name_627(this,time,pos,0,1 - j * 0.05,1 - j * 0.05,1,0); - t -= 0.003; - } - } - } - - private function keyFrame2(keyTime:Number, time:Number) : void - { - var i:int = 0; - var rnd:Number = NaN; - var direction:Vector3D = null; - var t:Number = NaN; - var j:int = 0; - for(i = 0; i < smokeDirectionsCount; i++) - { - direction = smokeDirections[i]; - this.method_754(keyTime + littleTime,direction,pos); - this.method_529(time,0.95,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,0.95,0.95,1,random() * smokePrototype.atlas.rangeLength); - this.method_754((keyTime + littleTime) * 0.9,direction,pos); - firePrototype.name_627(this,time,pos,random() - 0.5,0.87,0.87,1,random() * firePrototype.atlas.rangeLength); - rnd = 0.5 + random(); - this.method_754(time + littleTime,direction,pos); - fragmentPrototype.name_627(this,time,pos,random() * 6.28,rnd,rnd,1,random() * fragmentPrototype.atlas.rangeLength); - } - for(i = sparkDirectionsCount >> 1; i < sparkDirectionsCount; i++) - { - direction = sparkDirections[i]; - t = keyTime + 0.1; - for(j = 0; j < 8; j++) - { - this.method_754(time + t,direction,pos,0.4); - sparkPrototype.name_627(this,time,pos,0,1 - j * 0.05,1 - j * 0.05,1,0); - t -= 0.003; - } - } - for(i = 0; i < fragmentDirectionsCount; i++) - { - direction = fragmentDirections[i]; - rnd = 0.5 + random(); - this.method_754(time + littleTime,direction,pos); - fragmentPrototype.name_627(this,time,pos,random() * 6.28,rnd,rnd,1,random() * fragmentPrototype.atlas.rangeLength); - } - } - - private function keyFrame3(keyTime:Number, time:Number) : void - { - var direction:Vector3D = null; - for(var i:int = 0; i < smokeDirectionsCount; i++) - { - direction = smokeDirections[i]; - this.method_754(keyTime + littleTime,direction,pos); - this.method_529(time,0.85,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,0.85,0.85,1,random() * smokePrototype.atlas.rangeLength); - this.method_754((keyTime + littleTime) * 0.9,direction,pos); - firePrototype.name_627(this,time,pos,random() - 0.5,0.78,0.78,0.73,random() * firePrototype.atlas.rangeLength); - } - } - - private function keyFrame4(keyTime:Number, time:Number) : void - { - var direction:Vector3D = null; - for(var i:int = 0; i < smokeDirectionsCount; i++) - { - direction = smokeDirections[i]; - this.method_754(keyTime + littleTime,direction,pos); - this.method_529(time,0.7,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,0.7,0.7,1,random() * smokePrototype.atlas.rangeLength); - this.method_754((keyTime + littleTime) * 0.9,direction,pos); - firePrototype.name_627(this,time,pos,random() - 0.5,0.44,0.44,0.53,random() * firePrototype.atlas.rangeLength); - } - } - - private function keyFrame5(keyTime:Number, time:Number) : void - { - var direction:Vector3D = null; - var rnd:Number = NaN; - for(var i:int = 0; i < smokeDirectionsCount; i++) - { - direction = smokeDirections[i]; - this.method_754(keyTime + littleTime,direction,pos); - this.method_529(time,0.4,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,0.4,0.4,1,random() * smokePrototype.atlas.rangeLength); - } - for(var j:int = 0; j < 3; j++) - { - pos.x = random() * 50 - 25; - pos.y = random() * 50 - 25; - pos.z = random() * 20 - 10; - this.method_529(time,0.18,pos); - rnd = 0.5 + random() * 0.5; - smokePrototype.name_627(this,time,pos,random() - 0.5,rnd,rnd,1,random() * smokePrototype.atlas.rangeLength); - pos.x = random() * 10 - 5; - pos.y = random() * 10 - 5; - pos.z = random() * 10 - 5; - rnd = 0.3 + random() * 0.5; - firePrototype.name_627(this,time,pos,random() - 0.5,rnd,rnd,1,random() * firePrototype.atlas.rangeLength); - } - } - - private function keyFrame6(keyTime:Number, time:Number) : void - { - var direction:Vector3D = null; - var rnd:Number = NaN; - for(var i:int = 0; i < smokeDirectionsCount; ) - { - direction = smokeDirections[i]; - if(random() > 0.25) - { - this.method_754(keyTime + littleTime,direction,pos); - this.method_529(time,0.25,pos); - smokePrototype.name_627(this,time,pos,random() - 0.5,0.19,0.19,1,random() * smokePrototype.atlas.rangeLength); - } - i++; - } - for(var j:int = 0; j < 3; j++) - { - pos.x = random() * 50 - 25; - pos.y = random() * 50 - 25; - pos.z = random() * 20 - 10; - this.method_529(time,0.16,pos); - rnd = 0.5 + random() * 0.5; - smokePrototype.name_627(this,time,pos,random() - 0.5,rnd,rnd,1,random() * smokePrototype.atlas.rangeLength); - } - } - - private function method_531(xyBegin:Number, xyEnd:Number, zBegin:Number, zEnd:Number, result:Vector3D) : void - { - var xyAng:Number = xyBegin + random() * (xyEnd - xyBegin); - var zAng:Number = zBegin + random() * (zEnd - zBegin); - var cosZAng:Number = Number(Math.cos(zAng)); - result.x = Math.cos(xyAng) * cosZAng; - result.y = Math.sin(xyAng) * cosZAng; - result.z = Math.sin(zAng); - } - - private function method_754(time:Number, direction:Vector3D, result:Vector3D, gravityInfluence:Number = 1) : void - { - result.x = time * movingSpeed * direction.x; - result.y = time * movingSpeed * direction.y; - result.z = time * movingSpeed * direction.z - time * time * gravity * gravityInfluence; - } - - private function method_529(time:Number, factor:Number, result:Vector3D) : void - { - result.x += time * windSpeed * var_5.wind.x; - result.y += time * windSpeed * var_5.wind.y; - result.z += time * windSpeed * var_5.wind.z + time * liftSpeed * factor; - } - } -} - diff --git a/src/package_83/name_549.as b/src/package_83/name_549.as deleted file mode 100644 index e58781c..0000000 --- a/src/package_83/name_549.as +++ /dev/null @@ -1,27 +0,0 @@ -package package_83 -{ - import package_118.class_38; - import package_46.name_194; - import package_92.name_271; - - public class name_549 implements class_38 - { - private var primaryTarget:name_271; - - public function name_549() - { - super(); - } - - public function method_759(body:name_271) : void - { - this.primaryTarget = body; - } - - public function name_670(center:name_194, body:name_271) : Boolean - { - return body != this.primaryTarget; - } - } -} - diff --git a/src/package_83/name_551.as b/src/package_83/name_551.as deleted file mode 100644 index ddf8a4c..0000000 --- a/src/package_83/name_551.as +++ /dev/null @@ -1,26 +0,0 @@ -package package_83 -{ - import package_118.class_37; - - public class name_551 implements class_37 - { - private var var_643:Number; - - public function name_551(radius:Number) - { - super(); - this.var_643 = radius; - } - - public function get radius() : Number - { - return this.var_643; - } - - public function method_758(basePower:Number, radius:Number) : Number - { - return basePower; - } - } -} - diff --git a/src/package_83/name_594.as b/src/package_83/name_594.as deleted file mode 100644 index 219362c..0000000 --- a/src/package_83/name_594.as +++ /dev/null @@ -1,52 +0,0 @@ -package package_83 -{ - import flash.display3D.Context3DBlendFactor; - import flash.geom.Vector3D; - import package_21.name_386; - import package_25.name_113; - import package_25.name_250; - import package_25.name_626; - - public class name_594 extends name_113 - { - private static var shotPrototype:name_626; - - private static var pos:Vector3D = new Vector3D(); - - public function name_594(shot:name_250) - { - super(); - if(shotPrototype == null) - { - shotPrototype = new name_626(50,50,shot,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); - shotPrototype.method_257(0 * 0.03333333333333333,0,0.85,0.85,1,1,1,0.6); - shotPrototype.method_257(1 * 0.03333333333333333,0,1,1,1,1,1,1); - shotPrototype.method_257(2 * 0.03333333333333333,0,1,1,1,1,1,0.5); - shotPrototype.method_257(3 * 0.03333333333333333,0,1,1,1,1,1,0.5); - } - boundBox = new name_386(); - boundBox.minX = -100; - boundBox.minY = -100; - boundBox.minZ = -100; - boundBox.maxX = 100; - boundBox.maxY = 100; - boundBox.maxZ = 100; - method_257(0 * 0.03333333333333333,this.keyFrame1); - method_258(var_151[var_148 - 1] + shotPrototype.lifeTime); - } - - private function keyFrame1(keyTime:Number, time:Number) : void - { - pos.copyFrom(var_156); - pos.scaleBy(time * 100 + 25); - shotPrototype.name_627(this,time,pos,random() * 6.28,1,1,1,0); - pos.copyFrom(var_156); - pos.scaleBy(time * 300 + 32); - shotPrototype.name_627(this,time,pos,random() * 6.28,0.88,0.88,1,0); - pos.copyFrom(var_156); - pos.scaleBy(time * 400 + 39); - shotPrototype.name_627(this,time,pos,random() * 6.28,0.66,0.66,1,0); - } - } -} - diff --git a/src/package_84/name_253.as b/src/package_84/name_253.as deleted file mode 100644 index f42b19f..0000000 --- a/src/package_84/name_253.as +++ /dev/null @@ -1,436 +0,0 @@ -package package_84 -{ - import alternativa.engine3d.alternativa3d; - import flash.geom.Point; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_19.name_380; - import package_19.name_528; - import package_19.name_91; - import package_21.name_126; - import package_21.name_78; - import package_23.name_208; - import package_29.MouseEvent3D; - import alternativa.tanks.game.entities.tank.graphics.materials.GiShadowMaterial; - import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; - import package_4.class_5; - import package_45.name_182; - import package_46.Matrix4; - import package_46.name_194; - import package_71.*; - import package_77.name_237; - import package_85.class_22; - import package_85.class_31; - import package_85.name_314; - import package_85.name_481; - import package_85.name_596; - - use namespace alternativa3d; - - public class name_253 extends EntityComponent implements class_22, class_31 - { - public static const TANK_CLICK:String = "tankClick"; - - private static var hullMatrix:Matrix4 = new Matrix4(); - - private static var eulerAngles:name_194 = new name_194(); - - private var shadow:name_91; - - private var hull:name_249; - - private var var_488:name_380; - - private var hullMaterials:name_277; - - private var container:name_78; - - private var physicsComponent:name_237; - - private var gameKernel:GameKernel; - - private var var_233:class_5; - - private var name_325:Vector.; - - private var name_323:Vector.; - - private var name_337:name_528; - - private var name_340:name_528; - - private var var_489:name_595; - - private var var_490:name_595; - - private var shadowRenderer:name_208; - - private var var_491:name_596; - - public function name_253(hull:name_249) - { - super(); - this.method_488(hull); - } - - public function name_351() : name_249 - { - return this.hull; - } - - public function name_342(tracksMaterial:TracksMaterial2) : void - { - this.var_489.material = TracksMaterial2(tracksMaterial.clone()); - this.name_337.setMaterialToAllSurfaces(this.var_489.material); - this.var_490.material = TracksMaterial2(tracksMaterial.clone()); - this.name_340.setMaterialToAllSurfaces(this.var_490.material); - } - - public function name_344(material:GiShadowMaterial) : void - { - if(this.shadow != null) - { - this.shadow.setMaterialToAllSurfaces(material); - } - } - - public function name_329() : name_78 - { - return this.var_488; - } - - public function method_496(shadowRenderer:name_208) : void - { - this.shadowRenderer = shadowRenderer; - this.var_491 = null; - if(this.container != null) - { - this.gameKernel.name_5().method_70(shadowRenderer); - } - } - - public function method_488(newHull:name_249) : void - { - var dUdY:Number = NaN; - if(this.hull == newHull) - { - return; - } - if(this.hull != null && this.container != null) - { - this.container.removeChild(this.var_488); - } - this.hull = newHull; - if(this.hull != null) - { - this.var_488 = new name_380(); - this.var_488.geometry = this.hull.geometry; - this.var_488.addSurface(this.var_233,0,this.hull.geometry.numTriangles); - this.var_488.calculateBoundBox(); - this.name_325 = this.method_499(this.var_488,this.hull.name_325); - this.name_323 = this.method_499(this.var_488,this.hull.name_323); - this.name_337 = this.method_497(this.hull.name_337,this.var_488); - this.name_340 = this.method_497(this.hull.name_340,this.var_488); - dUdY = this.method_504(this.name_337); - this.var_489 = new name_595(this.name_337,this.name_325,dUdY); - this.var_490 = new name_595(this.name_340,this.name_323,dUdY); - if(this.hull.shadow != null) - { - this.shadow = new name_91(100); - this.shadow.geometry = this.hull.shadow.geometry; - this.shadow.matrix = this.hull.shadow.matrix; - this.shadow.addSurface(null,0,this.shadow.geometry.numTriangles); - this.shadow.useShadow = false; - this.name_482.addChild(this.shadow); - } - if(this.container != null) - { - this.container.addChild(this.var_488); - } - } - } - - private function method_504(mesh:name_380) : Number - { - var j:int = 0; - var vertexIndex:int = 0; - var vertexBaseIndex:uint = 0; - var v:name_194 = null; - var uv:Point = null; - var ratio:Number = 0; - var indices:Vector. = mesh.geometry.indices; - var vertexCoordinates:Vector. = mesh.geometry.method_275(name_126.POSITION); - var uvs:Vector. = mesh.geometry.method_275(name_126.TEXCOORDS[0]); - var faceVertices:Vector. = Vector.([new name_194(),new name_194(),new name_194()]); - var faceUVs:Vector. = Vector.([new Point(),new Point(),new Point()]); - for(var i:int = 0; i < indices.length; i += 3) - { - for(j = 0; j < 3; j++) - { - vertexIndex = int(indices[i + j]); - vertexBaseIndex = uint(3 * vertexIndex); - v = faceVertices[j]; - v.x = vertexCoordinates[vertexBaseIndex]; - v.y = vertexCoordinates[vertexBaseIndex + 1]; - v.z = vertexCoordinates[vertexBaseIndex + 2]; - v.scale(mesh.scaleX); - uv = faceUVs[j]; - uv.x = uvs[2 * vertexIndex]; - uv.y = uvs[2 * vertexIndex + 1]; - } - ratio = this.method_500(faceVertices,faceUVs,ratio); - } - return ratio; - } - - private function method_500(faceVertices:Vector., faceUVs:Vector., ratio:Number) : Number - { - var v2:name_194 = null; - var p2:Point = null; - var dy:Number = NaN; - var dv:Number = NaN; - var newRatio:Number = NaN; - var v1:name_194 = faceVertices[2]; - var p1:Point = faceUVs[2]; - for(var i:int = 0; i < 3; i++) - { - v2 = faceVertices[i]; - p2 = faceUVs[i]; - dy = Number(Math.abs(v2.y - v1.y)); - dv = Number(Math.abs(p2.y - p1.y)); - if(dy > 100) - { - newRatio = dv / dy; - if(newRatio > ratio) - { - ratio = newRatio; - } - } - v1 = v2; - p1 = p2; - } - return ratio; - } - - private function method_497(tankTrack:name_528, container:name_380) : name_528 - { - var skin:name_528 = name_528(tankTrack.clone()); - skin.calculateBoundBox(); - container.addChild(skin); - return skin; - } - - private function method_499(container:name_78, wheels:Vector.) : Vector. - { - var tankWheel:name_318 = null; - var wheelMesh:name_380 = null; - var position:name_194 = null; - var numWheels:int = int(wheels.length); - var wheelMeshes:Vector. = new Vector.(numWheels); - for(var i:int = 0; i < numWheels; i++) - { - tankWheel = wheels[i]; - wheelMesh = new name_380(); - wheelMesh.name = tankWheel.name; - wheelMesh.geometry = tankWheel.geometry; - wheelMesh.addSurface(this.var_233,0,wheelMesh.geometry.numTriangles); - wheelMesh.calculateBoundBox(); - position = tankWheel.position; - wheelMesh.x = position.x; - wheelMesh.y = position.y; - wheelMesh.z = position.z; - wheelMesh.rotationX = Math.random() * Math.PI * 2; - container.addChild(wheelMesh); - wheelMeshes[i] = wheelMesh; - } - return wheelMeshes; - } - - public function name_343(hullMaterials:name_277) : void - { - this.hullMaterials = hullMaterials; - } - - public function get visible() : Boolean - { - return this.var_488.visible; - } - - public function addToScene() : void - { - var renderSystem:RenderSystem = null; - if(this.container == null) - { - renderSystem = this.gameKernel.name_5(); - this.container = renderSystem.method_46(); - if(this.var_488 != null) - { - this.container.addChild(this.var_488); - if(this.shadowRenderer != null) - { - renderSystem.method_70(this.shadowRenderer); - } - } - this.method_501(); - } - } - - public function removeFromScene() : void - { - if(this.container != null) - { - if(this.var_488 != null) - { - this.container.removeChild(this.var_488); - if(this.shadowRenderer != null) - { - this.gameKernel.name_5().method_65(this.shadowRenderer); - } - } - this.container = null; - } - this.method_503(); - } - - public function get name_482() : name_380 - { - return this.var_488; - } - - override public function initComponent() : void - { - this.physicsComponent = name_237(entity.getComponentStrict(name_237)); - name_314(entity.getComponentStrict(name_314)).name_60(this); - this.var_489.physicsComponent = this.physicsComponent; - this.var_490.physicsComponent = this.physicsComponent; - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - var renderSystem:RenderSystem = gameKernel.name_5(); - this.var_491 = new name_596(this.var_488,renderSystem,this); - if(renderSystem.method_57()) - { - this.var_491.name_111(); - this.var_491 = null; - } - else - { - renderSystem.method_59(this.var_491); - } - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - if(this.var_491 != null) - { - gameKernel.name_5().method_49(this.var_491); - this.var_491 = null; - } - this.removeFromScene(); - gameKernel = null; - } - - public function render() : void - { - if(this.hull == null) - { - return; - } - hullMatrix.method_347(); - hullMatrix.name_201(this.hull.name_538); - hullMatrix.append(this.physicsComponent.var_483); - hullMatrix.name_341(eulerAngles); - this.var_488.x = hullMatrix.d; - this.var_488.y = hullMatrix.h; - this.var_488.z = hullMatrix.l; - this.var_488.rotationX = eulerAngles.x; - this.var_488.rotationY = eulerAngles.y; - this.var_488.rotationZ = eulerAngles.z; - this.method_502(); - } - - private function method_502() : void - { - var dt:Number = NaN; - if(this.var_489 != null) - { - dt = name_182.timeDeltaSeconds; - this.var_489.name_598(this.hull.name_597,this.physicsComponent.method_492(),dt); - this.var_490.name_598(this.hull.name_597,this.physicsComponent.method_495(),dt); - } - } - - public function setMaterial(materialType:name_481) : void - { - switch(materialType) - { - case name_481.DEAD: - this.hullMaterials.deadMaterial.alpha = 1; - this.var_489.material.alpha = 1; - this.var_490.material.alpha = 1; - this.var_488.setMaterialToAllSurfaces(this.hullMaterials.deadMaterial); - this.var_233 = this.hullMaterials.deadMaterial; - break; - case name_481.NORMAL: - this.hullMaterials.normalMaterial.alpha = 1; - this.var_489.material.alpha = 1; - this.var_490.material.alpha = 1; - this.var_488.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); - this.var_233 = this.hullMaterials.normalMaterial; - break; - case name_481.ACTIVATING: - this.hullMaterials.normalMaterial.alpha = 0.5; - this.var_489.material.alpha = 0.5; - this.var_490.material.alpha = 0.5; - this.var_488.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); - this.var_233 = this.hullMaterials.normalMaterial; - } - var numWheels:int = int(this.name_325.length); - for(var i:int = 0; i < numWheels; i++) - { - this.name_325[i].setMaterialToAllSurfaces(this.var_233); - this.name_323[i].setMaterialToAllSurfaces(this.var_233); - } - } - - public function method_342(value:Number) : void - { - this.var_233.alpha = value; - this.var_489.material.alpha = value; - this.var_490.material.alpha = value; - } - - private function method_501() : void - { - if(this.var_488 != null) - { - this.var_488.addEventListener(MouseEvent3D.CLICK,this.method_498); - } - } - - private function method_503() : void - { - if(this.var_488 != null) - { - this.var_488.removeEventListener(MouseEvent3D.CLICK,this.method_498); - } - } - - private function method_505(event:MouseEvent3D) : void - { - } - - private function onMouseOut(event:MouseEvent3D) : void - { - } - - private function method_498(event:MouseEvent3D) : void - { - this.gameKernel.name_61().dispatchEvent(TANK_CLICK,entity); - } - } -} - diff --git a/src/package_84/name_595.as b/src/package_84/name_595.as deleted file mode 100644 index fbad168..0000000 --- a/src/package_84/name_595.as +++ /dev/null @@ -1,119 +0,0 @@ -package package_84 -{ - import package_19.name_380; - import package_19.name_528; - import package_21.name_78; - import alternativa.tanks.game.entities.tank.graphics.materials.TracksMaterial2; - import package_75.name_236; - - public class name_595 - { - public var material:TracksMaterial2; - - public var physicsComponent:name_236; - - private var wheels:Vector.; - - private var var_648:Vector.; - - private var var_647:Vector.; - - private var var_646:Vector.; - - private var dUdY:Number; - - private var var_645:Number = 0; - - private var trackSkin:name_528; - - public function name_595(trackSkin:name_528, wheels:Vector., dUdY:Number) - { - super(); - this.trackSkin = trackSkin; - this.wheels = wheels; - this.dUdY = dUdY; - this.physicsComponent = this.physicsComponent; - this.var_646 = new Vector.(wheels.length); - for(var i:int = 0; i < wheels.length; i++) - { - this.var_646[i] = wheels[i].boundBox.maxY; - } - this.method_775(); - } - - public function name_598(period:Number, speed:Number, dt:Number) : void - { - var wheelMesh:name_380 = null; - var wheelDeltaZ:Number = NaN; - var bone:name_78 = null; - var delta:Number = NaN; - var newOffset:Number = NaN; - var ds:Number = speed * dt; - var numWheels:int = int(this.wheels.length); - for(var i:int = 0; i < numWheels; ) - { - wheelMesh = this.wheels[i]; - wheelMesh.rotationX -= ds / this.var_646[i]; - wheelDeltaZ = Number(this.physicsComponent.method_474(wheelMesh.name)); - wheelMesh.z = this.var_648[i] + wheelDeltaZ; - bone = this.trackSkin.getChildByName(this.method_774(wheelMesh.name)); - if(bone != null) - { - bone.z = this.var_647[i] + wheelDeltaZ; - } - i++; - } - if(period > 0) - { - delta = ds * this.dUdY; - newOffset = this.var_645 + delta; - if(newOffset < 0) - { - while(newOffset < 0) - { - newOffset += period; - } - delta = newOffset - this.var_645; - this.var_645 = newOffset; - } - else if(newOffset < period) - { - this.var_645 = newOffset; - } - else - { - while(newOffset >= period) - { - newOffset -= period; - } - delta = newOffset - this.var_645; - this.var_645 = newOffset; - } - this.material.vOffset = this.var_645; - } - } - - private function method_775() : void - { - var bone:name_78 = null; - this.var_648 = new Vector.(this.wheels.length); - this.var_647 = new Vector.(this.wheels.length); - for(var i:int = 0; i < this.wheels.length; ) - { - this.var_648[i] = this.wheels[i].z; - bone = this.trackSkin.getChildByName(this.method_774(this.wheels[i].name)); - if(bone != null) - { - this.var_647[i] = bone.z; - } - i++; - } - } - - private function method_774(wheelName:String) : String - { - return "bn" + wheelName.substr(2); - } - } -} - diff --git a/src/package_85/class_22.as b/src/package_85/class_22.as deleted file mode 100644 index 6032cda..0000000 --- a/src/package_85/class_22.as +++ /dev/null @@ -1,19 +0,0 @@ -package package_85 -{ - import alternativa.tanks.game.subsystems.rendersystem.IRenderer; - import package_21.name_78; - - public interface class_22 extends IRenderer - { - function addToScene() : void; - - function removeFromScene() : void; - - function setMaterial(param1:name_481) : void; - - function method_342(param1:Number) : void; - - function name_329() : name_78; - } -} - diff --git a/src/package_85/class_31.as b/src/package_85/class_31.as deleted file mode 100644 index 2045cfe..0000000 --- a/src/package_85/class_31.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_85 -{ - import package_23.name_208; - - public interface class_31 - { - function method_496(param1:name_208) : void; - } -} - diff --git a/src/package_85/class_36.as b/src/package_85/class_36.as deleted file mode 100644 index 0106fd6..0000000 --- a/src/package_85/class_36.as +++ /dev/null @@ -1,24 +0,0 @@ -package package_85 -{ - import package_114.class_35; - - public class class_36 implements class_35 - { - protected var component:name_314; - - public function class_36(component:name_314) - { - super(); - this.component = component; - } - - public function start(data:*) : void - { - } - - public function stop() : void - { - } - } -} - diff --git a/src/package_85/name_284.as b/src/package_85/name_284.as deleted file mode 100644 index 7385d6b..0000000 --- a/src/package_85/name_284.as +++ /dev/null @@ -1,145 +0,0 @@ -package package_85 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_4.class_4; - import package_46.name_194; - import package_71.name_252; - import package_72.name_239; - import package_72.name_260; - import package_72.name_264; - import package_75.name_236; - import package_76.name_256; - import package_86.name_257; - import package_90.name_273; - - public class name_284 extends EntityComponent - { - private static const MAX_SHOCK_WAVE_DISTANCE:Number = 1500; - - private static const FULL_SHOCK_WAVE_SIZE_DISTANCE:Number = 300; - - private static const SHOCK_WAVE_FPS:int = 30; - - private static const EXPLOSION_FPS:int = 25; - - private static const SMOKE_FPS:int = 25; - - private var shockWaveStartSize:Number; - - private var shockWaveGrowSpeed:Number; - - private var shockWaveFrames:Vector.; - - private var explosionFrames:Vector.; - - private var smokeFrames:Vector.; - - private var gameKernel:GameKernel; - - public function name_284(shockWaveStartSize:Number, shockWaveGrowSpeed:Number, shockWaveFrames:Vector., explosionFrames:Vector., smokeFrames:Vector.) - { - super(); - this.shockWaveStartSize = shockWaveStartSize; - this.shockWaveGrowSpeed = shockWaveGrowSpeed; - this.shockWaveFrames = shockWaveFrames; - this.explosionFrames = explosionFrames; - this.smokeFrames = smokeFrames; - } - - override public function initComponent() : void - { - entity.addEventHandler(name_252.SET_DEAD_STATE,this.method_446); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - this.gameKernel = null; - } - - private function method_446(eventType:String, eventData:*) : void - { - var chassisPhysicsComponent:name_236 = name_236(entity.getComponentStrict(name_236)); - this.method_162(chassisPhysicsComponent); - this.method_168(chassisPhysicsComponent); - this.method_445(chassisPhysicsComponent); - } - - private function method_162(chassisPhysicsComponent:name_236) : void - { - var actualSize:Number = NaN; - var position:name_194 = null; - var rotation:name_194 = null; - var effect:name_264 = null; - var collisionDetector:name_256 = this.gameKernel.method_112().name_246().collisionDetector; - var origin:name_194 = chassisPhysicsComponent.getBody().state.position; - var result:name_273 = new name_273(); - if(collisionDetector.name_324(origin,name_194.DOWN,name_257.STATIC,MAX_SHOCK_WAVE_DISTANCE,null,result)) - { - if(result.t < FULL_SHOCK_WAVE_SIZE_DISTANCE) - { - actualSize = this.shockWaveStartSize; - } - else - { - actualSize = this.shockWaveStartSize * (MAX_SHOCK_WAVE_DISTANCE - result.t) / (MAX_SHOCK_WAVE_DISTANCE - FULL_SHOCK_WAVE_SIZE_DISTANCE); - } - position = result.position.clone(); - position.z += 1; - rotation = new name_194(); - rotation.x = -Math.acos(result.normal.z); - if(result.normal.z < 0.999) - { - rotation.z = Math.atan2(-result.normal.x,result.normal.y); - } - effect = name_264(this.gameKernel.method_108().name_110(name_264)); - effect.init(actualSize,position,rotation,this.shockWaveFrames,SHOCK_WAVE_FPS,this.shockWaveGrowSpeed); - this.gameKernel.name_5().method_37(effect); - } - } - - private function method_168(chassisPhysicsComponent:name_236) : void - { - var animatedSpriteEffect:name_239 = name_239(this.gameKernel.method_108().name_110(name_239)); - var position:name_194 = chassisPhysicsComponent.getBody().state.position.clone(); - position.z += 100; - var rotation:Number = Math.random() * Math.PI; - animatedSpriteEffect.init(600,600,this.explosionFrames,position,rotation,400,EXPLOSION_FPS,false); - this.gameKernel.name_5().method_37(animatedSpriteEffect); - } - - private function method_445(chassisPhysicsComponent:name_236) : void - { - var angle:Number = NaN; - var speed:Number = NaN; - var movingAnimatedSprite:name_260 = null; - var rotation:Number = NaN; - var minAngle:Number = 10 * Math.PI / 180; - var maxAngle:Number = 60 * Math.PI / 180; - var position:name_194 = chassisPhysicsComponent.getBody().state.position.clone(); - position.z += 100; - var velocity:name_194 = new name_194(); - var rotationAngle:Number = Math.random() * Math.PI; - var direction:name_194 = new name_194(); - for(var i:int = 0; i < 3; i++) - { - direction.x = Math.cos(rotationAngle); - direction.y = Math.sin(rotationAngle); - angle = Math.random() * (maxAngle - minAngle) + minAngle; - speed = 900 + Math.random() * (1000 - 900); - velocity.copy(direction).scale(Math.sin(angle)).add(name_194.UP).normalize().scale(speed); - movingAnimatedSprite = name_260(this.gameKernel.method_108().name_110(name_260)); - rotation = Math.random() * Math.PI; - movingAnimatedSprite.init(400,400,this.smokeFrames,position,velocity,-1000,rotation,SMOKE_FPS,false); - this.gameKernel.name_5().method_37(movingAnimatedSprite); - rotationAngle += 2 / 3 * Math.PI; - } - } - } -} - diff --git a/src/package_85/name_314.as b/src/package_85/name_314.as deleted file mode 100644 index 393a29e..0000000 --- a/src/package_85/name_314.as +++ /dev/null @@ -1,131 +0,0 @@ -package package_85 -{ - import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_114.name_488; - import package_114.name_489; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IRenderer; - import package_45.name_182; - import package_71.name_252; - - use namespace alternativa3d; - - public class name_314 extends EntityComponent implements IRenderer - { - private var var_424:name_488; - - private var components:Vector.; - - private var var_426:Boolean; - - private var var_425:Boolean; - - private var alpha:Number = 1; - - private var gameKernel:GameKernel; - - public function name_314() - { - super(); - this.components = new Vector.(); - } - - override public function initComponent() : void - { - this.var_424 = new name_488(); - this.var_424.name_486(entity,name_252.SET_ACTIVATING_STATE,new name_490(this)); - this.var_424.name_486(entity,name_252.SET_ACTIVE_STATE,new name_491(this)); - this.var_424.name_486(entity,name_252.SET_DEAD_STATE,new name_492(this)); - var respawnState:name_487 = new name_487(this); - this.var_424.name_486(entity,name_252.SET_RESPAWN_STATE,respawnState); - this.var_424.name_493 = name_489.INSTANCE; - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - } - - public function addToScene() : void - { - var tankGraphicsComponent:class_22 = null; - var renderSystem:RenderSystem = null; - if(!this.var_426) - { - for each(tankGraphicsComponent in this.components) - { - tankGraphicsComponent.addToScene(); - } - renderSystem = this.gameKernel.name_5(); - renderSystem.method_63(this); - this.var_426 = true; - } - this.var_425 = false; - this.alpha = 1; - } - - public function removeFromScene() : void - { - if(this.var_426) - { - this.var_425 = true; - } - } - - public function method_376() : void - { - var tankGraphicsComponent:class_22 = null; - this.var_425 = false; - this.var_426 = false; - for each(tankGraphicsComponent in this.components) - { - tankGraphicsComponent.removeFromScene(); - } - this.gameKernel.name_5().method_64(this); - } - - public function setMaterial(materialType:name_481) : void - { - var tankGraphicsComponent:class_22 = null; - for each(tankGraphicsComponent in this.components) - { - tankGraphicsComponent.setMaterial(materialType); - } - } - - public function name_60(component:class_22) : void - { - this.components.push(component); - } - - public function render() : void - { - var tankGraphicsComponent:class_22 = null; - if(this.var_425) - { - if(this.alpha == 0) - { - this.method_376(); - } - this.alpha -= name_182.timeDeltaSeconds; - if(this.alpha < 0) - { - this.alpha = 0; - } - for each(tankGraphicsComponent in this.components) - { - tankGraphicsComponent.method_342(this.alpha); - } - } - var numComponents:int = int(this.components.length); - for(var i:int = 0; i < numComponents; i++) - { - tankGraphicsComponent = this.components[i]; - tankGraphicsComponent.render(); - } - } - } -} - diff --git a/src/package_85/name_319.as b/src/package_85/name_319.as deleted file mode 100644 index 7aa9fc5..0000000 --- a/src/package_85/name_319.as +++ /dev/null @@ -1,231 +0,0 @@ -package package_85 -{ - import alternativa.engine3d.alternativa3d; - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_109.name_377; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IRenderer; - import package_19.name_509; - import package_21.name_78; - import package_4.name_313; - import package_46.Matrix4; - import package_46.name_194; - import package_71.name_249; - import package_77.name_237; - import package_77.name_510; - import package_77.name_515; - import package_84.name_253; - import package_92.name_271; - import package_92.name_513; - import package_94.name_276; - import package_96.name_279; - - use namespace alternativa3d; - - public class name_319 extends EntityComponent implements IRenderer - { - private static var material:name_313 = new name_313(11141120); - - private static var bodyMaterial:name_313 = new name_313(43520); - - private static var eulerAngles:name_194 = new name_194(); - - private var chassis:name_237; - - private var turret:name_276; - - private var var_444:Vector.; - - private var var_443:name_78; - - private var rays:Vector.; - - public function name_319() - { - super(); - } - - override public function initComponent() : void - { - var collisionBox:name_377 = null; - var hs:name_194 = null; - var box:name_279 = null; - var wireFrame:name_509 = null; - this.chassis = name_237(entity.getComponentStrict(name_237)); - this.turret = name_276(entity.getComponentStrict(name_276)); - this.var_444 = new Vector.(); - var body:name_271 = this.chassis.getBody(); - for(var item:name_513 = body.collisionPrimitives.head; item != null; ) - { - collisionBox = name_377(item.primitive); - hs = collisionBox.hs.clone().scale(2); - box = new name_279(hs.x,hs.y,hs.z); - wireFrame = name_509.name_511(box,16711680); - this.var_444.push(new CollisionPrimitive3D(collisionBox,wireFrame)); - item = item.next; - } - var trackedChassisGraphicsComponent:name_253 = name_253(entity.getComponentStrict(name_253)); - var hull:name_249 = trackedChassisGraphicsComponent.name_351(); - hs = hull.name_517.hs.clone().scale(2); - box = new name_279(hs.x,hs.y,hs.z); - this.var_443 = name_509.name_511(box,65280); - this.method_407(); - } - - private function method_407() : void - { - this.rays = new Vector.(); - this.method_406(this.chassis.name_337,this.rays); - this.method_406(this.chassis.name_340,this.rays); - } - - private function method_406(track:name_515, rays:Vector.) : void - { - var ray:name_510 = null; - var box:name_279 = null; - var wireFrame1:name_509 = null; - var wireFrame2:name_509 = null; - for each(ray in track.rays) - { - box = new name_279(10,10,10); - wireFrame1 = name_509.name_511(box,255); - box = new name_279(10,10,10); - wireFrame2 = name_509.name_511(box,65535); - rays.push(new RayEntry(ray,wireFrame1,wireFrame2)); - } - } - - override public function addToGame(gameKernel:GameKernel) : void - { - var collisionPrimitive3D:CollisionPrimitive3D = null; - var rayEntry:RayEntry = null; - var renderSystem:RenderSystem = gameKernel.name_5(); - for each(collisionPrimitive3D in this.var_444) - { - this.method_404(renderSystem,collisionPrimitive3D.skin); - } - this.method_404(renderSystem,this.var_443); - for each(rayEntry in this.rays) - { - this.method_404(renderSystem,rayEntry.originSkin); - this.method_404(renderSystem,rayEntry.endSkin); - } - renderSystem.method_63(this); - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - var collisionPrimitive3D:CollisionPrimitive3D = null; - var rayEntry:RayEntry = null; - var renderSystem:RenderSystem = gameKernel.name_5(); - for each(collisionPrimitive3D in this.var_444) - { - this.method_405(renderSystem,collisionPrimitive3D.skin); - } - for each(rayEntry in this.rays) - { - this.method_405(renderSystem,rayEntry.originSkin); - this.method_405(renderSystem,rayEntry.endSkin); - } - this.method_405(renderSystem,this.var_443); - gameKernel.name_5().method_64(this); - } - - private function method_404(renderSystem:RenderSystem, object:name_78) : void - { - renderSystem.method_46().addChild(object); - renderSystem.method_32(object.getResources()); - } - - private function method_405(renderSystem:RenderSystem, object:name_78) : void - { - object.alternativa3d::removeFromParent(); - renderSystem.method_31(object.getResources()); - } - - public function render() : void - { - var entry:CollisionPrimitive3D = null; - var body:name_271 = null; - var rayEntry:RayEntry = null; - var transform:Matrix4 = null; - var skin:name_78 = null; - var worldPos:name_194 = null; - var rayLength:Number = NaN; - for each(entry in this.var_444) - { - transform = entry.collisionPrimitive.transform; - transform.name_341(eulerAngles); - skin = entry.skin; - skin.x = transform.d; - skin.y = transform.h; - skin.z = transform.l; - skin.rotationX = eulerAngles.x; - skin.rotationY = eulerAngles.y; - skin.rotationZ = eulerAngles.z; - } - body = this.chassis.getBody(); - body.baseMatrix.name_341(eulerAngles); - this.var_443.rotationX = eulerAngles.x; - this.var_443.rotationY = eulerAngles.y; - this.var_443.rotationZ = eulerAngles.z; - this.var_443.x = body.state.position.x; - this.var_443.y = body.state.position.y; - this.var_443.z = body.state.position.z; - for each(rayEntry in this.rays) - { - worldPos = rayEntry.ray.worldPos; - rayEntry.originSkin.x = worldPos.x; - rayEntry.originSkin.y = worldPos.y; - rayEntry.originSkin.z = worldPos.z; - if(rayEntry.ray.name_514) - { - rayLength = rayEntry.ray.name_516.t; - } - else - { - rayLength = this.chassis.name_518.rayLength; - } - rayEntry.endSkin.x = worldPos.x + rayEntry.ray.name_512.x * rayLength; - rayEntry.endSkin.y = worldPos.y + rayEntry.ray.name_512.y * rayLength; - rayEntry.endSkin.z = worldPos.z + rayEntry.ray.name_512.z * rayLength; - } - } - } -} - -import package_21.name_78; -import package_76.name_235; -import package_77.name_510; - -class CollisionPrimitive3D -{ - public var collisionPrimitive:name_235; - - public var skin:name_78; - - public function CollisionPrimitive3D(collisionPrimitive:name_235, skin:name_78) - { - super(); - this.collisionPrimitive = collisionPrimitive; - this.skin = skin; - } -} - -class RayEntry -{ - public var ray:name_510; - - public var originSkin:name_78; - - public var endSkin:name_78; - - public function RayEntry(ray:name_510, originSkin:name_78, endSkin:name_78) - { - super(); - this.ray = ray; - this.originSkin = originSkin; - this.endSkin = endSkin; - } -} diff --git a/src/package_85/name_481.as b/src/package_85/name_481.as deleted file mode 100644 index fb4eb64..0000000 --- a/src/package_85/name_481.as +++ /dev/null @@ -1,25 +0,0 @@ -package package_85 -{ - public class name_481 - { - public static const NORMAL:name_481 = new name_481("NORMAL"); - - public static const ACTIVATING:name_481 = new name_481("ACTIVATING"); - - public static const DEAD:name_481 = new name_481("DEAD"); - - private var stringValue:String; - - public function name_481(stringValue:String) - { - super(); - this.stringValue = stringValue; - } - - public function toString() : String - { - return this.stringValue; - } - } -} - diff --git a/src/package_85/name_487.as b/src/package_85/name_487.as deleted file mode 100644 index fcb9e00..0000000 --- a/src/package_85/name_487.as +++ /dev/null @@ -1,16 +0,0 @@ -package package_85 -{ - public class name_487 extends class_36 - { - public function name_487(component:name_314) - { - super(component); - } - - override public function start(data:*) : void - { - component.removeFromScene(); - } - } -} - diff --git a/src/package_85/name_490.as b/src/package_85/name_490.as deleted file mode 100644 index 2e0c6b0..0000000 --- a/src/package_85/name_490.as +++ /dev/null @@ -1,17 +0,0 @@ -package package_85 -{ - public class name_490 extends class_36 - { - public function name_490(component:name_314) - { - super(component); - } - - override public function start(data:*) : void - { - component.addToScene(); - component.setMaterial(name_481.ACTIVATING); - } - } -} - diff --git a/src/package_85/name_491.as b/src/package_85/name_491.as deleted file mode 100644 index 3de6db7..0000000 --- a/src/package_85/name_491.as +++ /dev/null @@ -1,17 +0,0 @@ -package package_85 -{ - public class name_491 extends class_36 - { - public function name_491(component:name_314) - { - super(component); - } - - override public function start(data:*) : void - { - component.addToScene(); - component.setMaterial(name_481.NORMAL); - } - } -} - diff --git a/src/package_85/name_492.as b/src/package_85/name_492.as deleted file mode 100644 index f86793f..0000000 --- a/src/package_85/name_492.as +++ /dev/null @@ -1,17 +0,0 @@ -package package_85 -{ - public class name_492 extends class_36 - { - public function name_492(component:name_314) - { - super(component); - } - - override public function start(data:*) : void - { - component.addToScene(); - component.setMaterial(name_481.DEAD); - } - } -} - diff --git a/src/package_85/name_596.as b/src/package_85/name_596.as deleted file mode 100644 index f62f5f7..0000000 --- a/src/package_85/name_596.as +++ /dev/null @@ -1,46 +0,0 @@ -package package_85 -{ - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.tanks.game.subsystems.rendersystem.IShadowRendererConstructor; - import package_21.name_78; - import package_23.name_208; - import package_24.DirectionalLight; - - public class name_596 implements IShadowRendererConstructor - { - private var object:name_78; - - private var renderSystem:RenderSystem; - - private var consumer:class_31; - - public function name_596(object:name_78, renderSystem:RenderSystem, consumer:class_31) - { - super(); - this.object = object; - this.renderSystem = renderSystem; - this.consumer = consumer; - } - - public function name_111() : void - { - var worldSize:Number = NaN; - var textureSize:int = 0; - var pcfSize:int = 0; - var directionalShadowRenderer:name_208 = null; - var directionalLights:Vector. = this.renderSystem.lights.directionalLigths.lights; - if(directionalLights != null && directionalLights.length > 0) - { - worldSize = 1300; - textureSize = 256; - pcfSize = 4; - directionalShadowRenderer = new name_208(this.renderSystem.method_42(),textureSize,worldSize,pcfSize); - directionalShadowRenderer.var_235 = this.object; - directionalShadowRenderer.method_371(directionalLights[0]); - this.renderSystem.method_70(directionalShadowRenderer); - this.consumer.method_496(directionalShadowRenderer); - } - } - } -} - diff --git a/src/package_86/name_468.as b/src/package_86/name_468.as deleted file mode 100644 index eb3a600..0000000 --- a/src/package_86/name_468.as +++ /dev/null @@ -1,17 +0,0 @@ -package package_86 -{ - import package_46.name_194; - import package_76.name_256; - - public interface name_468 extends name_256 - { - function method_651(param1:name_194, param2:Number, param3:name_655) : Vector.; - - function name_591(param1:name_568) : void; - - function name_590(param1:name_568) : void; - - function name_470() : void; - } -} - diff --git a/src/package_86/name_500.as b/src/package_86/name_500.as deleted file mode 100644 index d103874..0000000 --- a/src/package_86/name_500.as +++ /dev/null @@ -1,18 +0,0 @@ -package package_86 -{ - import package_109.name_377; - import package_46.Matrix4; - import package_46.name_194; - - public class name_500 extends name_377 - { - public var m:Matrix4; - - public function name_500(hs:name_194, localMatrix:Matrix4, collisionGroup:int, collisionMask:int) - { - super(hs,collisionGroup,collisionMask); - this.m = localMatrix.clone(); - } - } -} - diff --git a/src/package_86/name_540.as b/src/package_86/name_540.as deleted file mode 100644 index 01f5b5b..0000000 --- a/src/package_86/name_540.as +++ /dev/null @@ -1,23 +0,0 @@ -package package_86 -{ - import package_76.name_235; - import package_76.name_631; - import package_92.name_271; - - public class name_540 implements name_631 - { - public var body:name_271; - - public function name_540(body:name_271 = null) - { - super(); - this.body = body; - } - - public function name_664(primitive:name_235) : Boolean - { - return this.body != primitive.body; - } - } -} - diff --git a/src/package_86/name_568.as b/src/package_86/name_568.as deleted file mode 100644 index 924dd07..0000000 --- a/src/package_86/name_568.as +++ /dev/null @@ -1,23 +0,0 @@ -package package_86 -{ - import package_76.name_235; - import package_92.name_271; - - public class name_568 - { - public var body:name_271; - - public var simplePrimitives:Vector.; - - public var detailedPrimitives:Vector.; - - public function name_568(body:name_271, simplePrimitives:Vector., detailedPrimitives:Vector.) - { - super(); - this.body = body; - this.simplePrimitives = simplePrimitives; - this.detailedPrimitives = detailedPrimitives; - } - } -} - diff --git a/src/package_86/name_655.as b/src/package_86/name_655.as deleted file mode 100644 index cc8c04d..0000000 --- a/src/package_86/name_655.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_86 -{ - import package_46.name_194; - import package_92.name_271; - - public interface name_655 - { - function name_670(param1:name_194, param2:name_271) : Boolean; - } -} - diff --git a/src/package_90/name_273.as b/src/package_90/name_273.as deleted file mode 100644 index dca2ae0..0000000 --- a/src/package_90/name_273.as +++ /dev/null @@ -1,30 +0,0 @@ -package package_90 -{ - import package_46.name_194; - import package_76.name_235; - - public class name_273 - { - public var t:Number = 0; - - public var position:name_194 = new name_194(); - - public var normal:name_194 = new name_194(); - - public var primitive:name_235; - - public function name_273() - { - super(); - } - - public function copy(source:name_273) : void - { - this.t = source.t; - this.position.copy(source.position); - this.normal.copy(source.normal); - this.primitive = source.primitive; - } - } -} - diff --git a/src/package_91/name_296.as b/src/package_91/name_296.as deleted file mode 100644 index cd50d21..0000000 --- a/src/package_91/name_296.as +++ /dev/null @@ -1,68 +0,0 @@ -package package_91 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.Entity; - import alternativa.tanks.game.weapons.IEnergyAmmunition; - import alternativa.tanks.game.weapons.IGenericRound; - import alternativa.tanks.game.weapons.IWeaponDistanceWeakening; - import alternativa.tanks.game.weapons.EnergyShotType; - - public class name_296 extends EntityComponent implements IEnergyAmmunition - { - private static var poolSize:int; - - private static var pool:Vector. = new Vector.(); - - private var roundData:name_498; - - private var callback:name_499; - - private var effectsFactory:name_349; - - public function name_296(radius:Number, roundSpeed:Number, maxRicochets:uint, impactForce:Number, weakening:IWeaponDistanceWeakening, effectsFactory:name_349, callback:name_499) - { - super(); - this.roundData = new name_498(radius,roundSpeed,maxRicochets,impactForce,weakening); - this.effectsFactory = effectsFactory; - this.callback = callback; - } - - public static function method_382(entity:Entity) : void - { - var _loc2_:* = poolSize++; - pool[_loc2_] = entity; - } - - public function getRound(shotType:EnergyShotType, maxRange:Number) : IGenericRound - { - var roundEntity:Entity = null; - if(poolSize == 0) - { - roundEntity = this.method_381(); - } - else - { - roundEntity = pool[--poolSize]; - pool[poolSize] = null; - } - var plasmaRoundComponent:name_497 = name_497(roundEntity.getComponentStrict(name_497)); - plasmaRoundComponent.init(shotType,this.roundData,maxRange,this.effectsFactory,this.callback); - return plasmaRoundComponent; - } - - private function method_381() : Entity - { - var entity:Entity = new Entity(Entity.name_74()); - var energyRoundComponent:name_497 = new name_497(); - entity.name_60(energyRoundComponent); - entity.name_64(); - return entity; - } - - public function method_383(callback:name_499) : void - { - this.callback = callback; - } - } -} - diff --git a/src/package_91/name_349.as b/src/package_91/name_349.as deleted file mode 100644 index 93880e9..0000000 --- a/src/package_91/name_349.as +++ /dev/null @@ -1,14 +0,0 @@ -package package_91 -{ - import package_46.name_194; - - public interface name_349 - { - function method_414() : name_522; - - function method_413(param1:name_194) : void; - - function method_412(param1:name_194, param2:name_194, param3:name_194) : void; - } -} - diff --git a/src/package_91/name_497.as b/src/package_91/name_497.as deleted file mode 100644 index 289f201..0000000 --- a/src/package_91/name_497.as +++ /dev/null @@ -1,295 +0,0 @@ -package package_91 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import package_27.name_501; - import package_44.name_178; - import package_44.name_465; - import package_45.name_182; - import package_46.Matrix3; - import package_46.name_194; - import alternativa.tanks.game.weapons.IGenericRound; - import alternativa.tanks.game.weapons.EnergyShotType; - import package_76.name_235; - import package_76.name_256; - import package_76.name_631; - import package_86.name_257; - import package_90.name_273; - import package_92.name_271; - - public class name_497 extends EntityComponent implements name_465, IGenericRound, name_631 - { - private static const NUM_PERIPHERAL_RAYS:int = 8; - - private static const RADIAL_ANGLE_STEP:Number = 2 * Math.PI / NUM_PERIPHERAL_RAYS; - - private static var rayHit:name_273 = new name_273(); - - private static var _rotationMatrix:Matrix3 = new Matrix3(); - - private static var _vector:name_194 = new name_194(); - - private static var _normal:name_194 = new name_194(); - - private var gameKernel:GameKernel; - - private var var_623:name_194 = new name_194(); - - private var var_620:name_194 = new name_194(); - - private var direction:name_194 = new name_194(); - - private var var_621:Number; - - private var shotId:int; - - private var shooter:name_271; - - private var collisionDetector:name_256; - - private var callback:name_499; - - private var roundData:name_498; - - private var maxRange:Number; - - private var effect:name_522; - - private var shotType:EnergyShotType; - - private var ricochetCount:int; - - private var var_622:Vector.; - - private var effectsFactory:name_349; - - public function name_497() - { - super(); - this.var_622 = new Vector.(NUM_PERIPHERAL_RAYS); - for(var i:int = 0; i < NUM_PERIPHERAL_RAYS; i++) - { - this.var_622[i] = new name_194(); - } - } - - public function init(shotType:EnergyShotType, roundData:name_498, maxRange:Number, effectsFactory:name_349, callback:name_499) : void - { - this.shotType = shotType; - this.roundData = roundData; - this.maxRange = maxRange; - this.callback = callback; - this.effectsFactory = effectsFactory; - this.ricochetCount = 0; - } - - override public function initComponent() : void - { - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - var physicsSystem:name_178 = gameKernel.method_112(); - this.collisionDetector = physicsSystem.name_246().collisionDetector; - physicsSystem.addControllerBefore(this); - if(this.shotType == EnergyShotType.NORMAL_SHOT) - { - physicsSystem.method_330(this); - this.effect = this.effectsFactory.method_414(); - } - } - - override public function removeFromGame(gameKernel:GameKernel) : void - { - var physicsSystem:name_178 = gameKernel.method_112(); - physicsSystem.removeControllerBefore(this); - this.gameKernel = null; - this.roundData = null; - this.effectsFactory = null; - this.shooter = null; - this.collisionDetector = null; - if(this.effect != null) - { - physicsSystem.method_332(this); - this.effect.method_255(); - this.effect = null; - } - name_296.method_382(entity); - } - - public function name_664(primitive:name_235) : Boolean - { - return primitive.body != this.shooter; - } - - public function updateBeforeSimulation(physicsStep:int) : void - { - var i:int = 0; - var raycastResult:int = 0; - var filter:name_631 = null; - var hitTime:Number = NaN; - var body:name_271 = null; - var origin:name_194 = null; - var impactForce:Number = NaN; - var deltaDistance:Number = this.roundData.speed * name_182.timeDeltaSeconds; - for(var frameDistance:Number = 0; deltaDistance > name_501.EPSILON; ) - { - raycastResult = 0; - filter = this.ricochetCount == 0 ? this : null; - hitTime = deltaDistance + 1; - body = null; - if(this.collisionDetector.raycast(this.var_620,this.direction,name_257.WEAPON | name_257.STATIC,deltaDistance,filter,rayHit)) - { - raycastResult = 1; - hitTime = rayHit.t; - body = rayHit.primitive.body; - _normal.copy(rayHit.normal); - } - for(i = 0; i < NUM_PERIPHERAL_RAYS; ) - { - origin = this.var_622[i]; - if(this.collisionDetector.raycast(origin,this.direction,name_257.WEAPON,deltaDistance,filter,rayHit)) - { - if(rayHit.t < hitTime) - { - raycastResult = 2; - hitTime = rayHit.t; - body = rayHit.primitive.body; - _normal.copy(rayHit.normal); - } - } - i++; - } - if(raycastResult <= 0) - { - this.var_621 += deltaDistance; - if(this.var_621 > this.maxRange) - { - this.gameKernel.method_109(entity); - } - else - { - this.var_623.copy(this.var_620); - _vector.copy(this.direction).scale(deltaDistance); - this.var_620.add(_vector); - for(i = 0; i < NUM_PERIPHERAL_RAYS; i++) - { - name_194(this.var_622[i]).add(_vector); - } - } - return; - } - this.var_621 += hitTime; - if(this.var_621 >= this.maxRange) - { - this.gameKernel.method_109(entity); - return; - } - if(!(raycastResult == 1 && this.ricochetCount < this.roundData.maxRicochets && body == null)) - { - this.effectsFactory.method_413(rayHit.position); - if(body != null) - { - impactForce = this.roundData.weakening.name_554(this.var_621) * this.roundData.impactForce; - body.name_556(rayHit.position,this.direction,impactForce); - if(this.callback != null) - { - this.callback.name_691(this.shotId,rayHit.position,this.var_621,body); - } - } - this.gameKernel.method_109(entity); - return; - } - ++this.ricochetCount; - frameDistance += hitTime; - this.var_621 += hitTime; - deltaDistance -= hitTime; - _vector.copy(this.var_620).method_362(hitTime,this.direction); - this.effectsFactory.method_412(_vector,_normal,this.direction); - this.var_620.method_362(hitTime,this.direction).method_362(0.01,_normal); - this.direction.method_362(-2 * this.direction.dot(_normal),_normal); - this.var_623.copy(this.var_620).method_362(-frameDistance,this.direction); - this.method_705(this.var_620,this.direction,this.roundData.radius); - } - } - - public function updateAfterSimulation(physicsStep:int) : void - { - } - - public function interpolate(interpolationCoeff:Number) : void - { - _vector.method_366(this.var_620,this.var_623).scale(interpolationCoeff).add(this.var_623); - this.effect.name_201(_vector); - } - - public function method_372(gameKernel:GameKernel, shotId:int, shooter:name_271, barrelOrigin:name_194, barrelLength:Number, shotDirection:name_194, muzzlePosition:name_194) : void - { - this.shotId = shotId; - this.shooter = shooter; - this.direction.copy(shotDirection); - this.var_621 = 0; - switch(this.shotType) - { - case EnergyShotType.CLOSE_SHOT: - this.var_620.copy(barrelOrigin); - break; - case EnergyShotType.NORMAL_SHOT: - this.var_620.copy(muzzlePosition); - } - this.method_705(this.var_620,shotDirection,this.roundData.radius); - gameKernel.name_73(entity); - } - - private function method_705(centerPoint:name_194, shotDirection:name_194, radius:Number) : void - { - var axis:int = 0; - var min:Number = 10; - var d:Number = shotDirection.x < 0 ? -shotDirection.x : shotDirection.x; - if(d < min) - { - min = d; - axis = 0; - } - d = shotDirection.y < 0 ? -shotDirection.y : shotDirection.y; - if(d < min) - { - min = d; - axis = 1; - } - d = shotDirection.z < 0 ? -shotDirection.z : shotDirection.z; - if(d < min) - { - axis = 2; - } - var v:name_194 = new name_194(); - switch(axis) - { - case 0: - v.x = 0; - v.y = shotDirection.z; - v.z = -shotDirection.y; - break; - case 1: - v.x = -shotDirection.z; - v.y = 0; - v.z = shotDirection.x; - break; - case 2: - v.x = shotDirection.y; - v.y = -shotDirection.x; - v.z = 0; - } - v.normalize().scale(radius); - _rotationMatrix.method_344(shotDirection,RADIAL_ANGLE_STEP); - name_194(this.var_622[0]).copy(centerPoint).add(v); - for(var i:int = 1; i < NUM_PERIPHERAL_RAYS; i++) - { - v.transform3(_rotationMatrix); - name_194(this.var_622[i]).copy(centerPoint).add(v); - } - } - } -} - diff --git a/src/package_91/name_499.as b/src/package_91/name_499.as deleted file mode 100644 index eb7734f..0000000 --- a/src/package_91/name_499.as +++ /dev/null @@ -1,11 +0,0 @@ -package package_91 -{ - import package_46.name_194; - import package_92.name_271; - - public interface name_499 - { - function name_691(param1:int, param2:name_194, param3:Number, param4:name_271) : void; - } -} - diff --git a/src/package_91/name_522.as b/src/package_91/name_522.as deleted file mode 100644 index eba60dd..0000000 --- a/src/package_91/name_522.as +++ /dev/null @@ -1,13 +0,0 @@ -package package_91 -{ - import alternativa.tanks.game.subsystems.rendersystem.IGraphicEffect; - import package_46.name_194; - - public interface name_522 extends IGraphicEffect - { - function method_255() : void; - - function name_201(param1:name_194) : void; - } -} - diff --git a/src/package_92/name_271.as b/src/package_92/name_271.as deleted file mode 100644 index 19dd731..0000000 --- a/src/package_92/name_271.as +++ /dev/null @@ -1,346 +0,0 @@ -package package_92 -{ - import package_46.Matrix3; - import package_46.Matrix4; - import package_46.name_194; - import package_46.name_566; - import package_76.name_235; - import package_76.name_604; - import package_90.name_386; - - public class name_271 - { - public static var linDamping:Number = 0.997; - - public static var rotDamping:Number = 0.997; - - private static var _r:name_194 = new name_194(); - - private static var _f:name_194 = new name_194(); - - private static var _q:name_566 = new name_566(); - - public var id:int; - - public var name:String; - - public var scene:name_467; - - public var var_499:Boolean = true; - - public var var_502:Boolean = false; - - public var var_498:int; - - public var var_501:Boolean = false; - - public var var_500:Boolean = true; - - public var aabb:name_386 = new name_386(); - - public var postCollisionFilter:name_604; - - public var state:name_599 = new name_599(); - - public var var_492:name_599 = new name_599(); - - public var var_497:name_194 = new name_194(); - - public var var_496:name_194 = new name_194(); - - public var material:name_600 = new name_600(); - - public var invMass:Number = 1; - - public var invInertia:Matrix3 = new Matrix3(); - - public var var_495:Matrix3 = new Matrix3(); - - public var baseMatrix:Matrix3 = new Matrix3(); - - public var collisionPrimitives:name_601; - - public var var_494:name_194 = new name_194(); - - public var var_493:name_194 = new name_194(); - - public var data:Object; - - public function name_271(invMass:Number, invInertia:Matrix3) - { - super(); - this.invMass = invMass; - this.invInertia.copy(invInertia); - } - - public function name_580(primitive:name_235, localTransform:Matrix4 = null) : void - { - if(primitive == null) - { - throw new ArgumentError("Primitive cannot be null"); - } - if(this.collisionPrimitives == null) - { - this.collisionPrimitives = new name_601(); - } - this.collisionPrimitives.append(primitive); - primitive.method_373(this,localTransform); - } - - public function method_509(primitive:name_235) : void - { - if(this.collisionPrimitives == null) - { - return; - } - primitive.method_373(null); - this.collisionPrimitives.remove(primitive); - if(this.collisionPrimitives.size == 0) - { - this.collisionPrimitives = null; - } - } - - public function interpolate(t:Number, pos:name_194, orientation:name_566) : void - { - var t1:Number = NaN; - t1 = 1 - t; - pos.x = this.var_492.position.x * t1 + this.state.position.x * t; - pos.y = this.var_492.position.y * t1 + this.state.position.y * t; - pos.z = this.var_492.position.z * t1 + this.state.position.z * t; - orientation.w = this.var_492.orientation.w * t1 + this.state.orientation.w * t; - orientation.x = this.var_492.orientation.x * t1 + this.state.orientation.x * t; - orientation.y = this.var_492.orientation.y * t1 + this.state.orientation.y * t; - orientation.z = this.var_492.orientation.z * t1 + this.state.orientation.z * t; - } - - public function method_515(t:Number, pos:name_194, orientation:name_566) : void - { - var t1:Number = NaN; - t1 = 1 - t; - pos.x = this.var_492.position.x * t1 + this.state.position.x * t; - pos.y = this.var_492.position.y * t1 + this.state.position.y * t; - pos.z = this.var_492.position.z * t1 + this.state.position.z * t; - orientation.name_602(this.var_492.orientation,this.state.orientation,t); - } - - public function method_517(t:Number, m:Matrix4) : void - { - var t1:Number = NaN; - t1 = 1 - t; - m.d = this.var_492.position.x * t1 + this.state.position.x * t; - m.h = this.var_492.position.y * t1 + this.state.position.y * t; - m.l = this.var_492.position.z * t1 + this.state.position.z * t; - _q.w = this.var_492.orientation.w * t1 + this.state.orientation.w * t; - _q.x = this.var_492.orientation.x * t1 + this.state.orientation.x * t; - _q.y = this.var_492.orientation.y * t1 + this.state.orientation.y * t; - _q.z = this.var_492.orientation.z * t1 + this.state.orientation.z * t; - _q.normalize(); - _q.toMatrix4(m); - } - - public function method_514(t:Number, m:Matrix4) : void - { - var t1:Number = 1 - t; - m.d = this.var_492.position.x * t1 + this.state.position.x * t; - m.h = this.var_492.position.y * t1 + this.state.position.y * t; - m.l = this.var_492.position.z * t1 + this.state.position.z * t; - _q.name_602(this.var_492.orientation,this.state.orientation,t); - _q.normalize(); - _q.toMatrix4(m); - } - - public function name_201(pos:name_194) : void - { - this.state.position.copy(pos); - } - - public function name_75(x:Number, y:Number, z:Number) : void - { - this.state.position.reset(x,y,z); - } - - public function name_587(vel:name_194) : void - { - this.state.velocity.copy(vel); - } - - public function name_588(x:Number, y:Number, z:Number) : void - { - this.state.velocity.reset(x,y,z); - } - - public function method_368(rot:name_194) : void - { - this.state.rotation.copy(rot); - } - - public function name_332(x:Number, y:Number, z:Number) : void - { - this.state.rotation.reset(x,y,z); - } - - public function name_352(q:name_566) : void - { - this.state.orientation.copy(q); - } - - public function method_484(w:Number, x:Number, y:Number, z:Number) : void - { - this.state.orientation.reset(w,x,y,z); - } - - public function method_518(r:name_194, dir:name_194, magnitude:Number) : void - { - var x:Number = NaN; - var y:Number = NaN; - var d:Number = magnitude * this.invMass; - this.state.velocity.x += d * dir.x; - this.state.velocity.y += d * dir.y; - this.state.velocity.z += d * dir.z; - x = (r.y * dir.z - r.z * dir.y) * magnitude; - y = (r.z * dir.x - r.x * dir.z) * magnitude; - var z:Number = (r.x * dir.y - r.y * dir.x) * magnitude; - this.state.rotation.x += this.var_495.a * x + this.var_495.b * y + this.var_495.c * z; - this.state.rotation.y += this.var_495.e * x + this.var_495.f * y + this.var_495.g * z; - this.state.rotation.z += this.var_495.i * x + this.var_495.j * y + this.var_495.k * z; - } - - public function name_585(f:name_194) : void - { - this.var_494.add(f); - } - - public function method_519(fx:Number, fy:Number, fz:Number) : void - { - this.var_494.x += fx; - this.var_494.y += fy; - this.var_494.z += fz; - } - - public function method_507(px:Number, py:Number, pz:Number, fx:Number, fy:Number, fz:Number) : void - { - var rx:Number = NaN; - this.var_494.x += fx; - this.var_494.y += fy; - this.var_494.z += fz; - var pos:name_194 = this.state.position; - rx = px - pos.x; - var ry:Number = py - pos.y; - var rz:Number = pz - pos.z; - this.var_493.x += ry * fz - rz * fy; - this.var_493.y += rz * fx - rx * fz; - this.var_493.z += rx * fy - ry * fx; - } - - public function name_525(pos:name_194, force:name_194) : void - { - this.var_494.add(force); - this.var_493.add(_r.method_366(pos,this.state.position).method_360(force)); - } - - public function name_556(pos:name_194, force:name_194, scale:Number) : void - { - _f.x = scale * force.x; - _f.y = scale * force.y; - _f.z = scale * force.z; - this.var_494.add(_f); - this.var_493.add(_r.method_366(pos,this.state.position).method_360(_f)); - } - - public function method_516(pos:name_194, force:name_194) : void - { - this.baseMatrix.method_345(pos,_r); - this.baseMatrix.method_345(force,_f); - this.var_494.add(_f); - this.var_493.add(_r.method_360(_f)); - } - - public function method_521(localPos:name_194, worldForce:name_194) : void - { - this.baseMatrix.method_345(localPos,_r); - this.var_494.add(worldForce); - this.var_493.add(_r.method_360(worldForce)); - } - - public function method_520(t:name_194) : void - { - this.var_493.add(t); - } - - internal function method_513() : void - { - this.var_494.x = this.var_494.y = this.var_494.z = 0; - this.var_493.x = this.var_493.y = this.var_493.z = 0; - } - - internal function method_508() : void - { - this.var_497.x = this.var_494.x * this.invMass; - this.var_497.y = this.var_494.y * this.invMass; - this.var_497.z = this.var_494.z * this.invMass; - this.var_496.x = this.var_495.a * this.var_493.x + this.var_495.b * this.var_493.y + this.var_495.c * this.var_493.z; - this.var_496.y = this.var_495.e * this.var_493.x + this.var_495.f * this.var_493.y + this.var_495.g * this.var_493.z; - this.var_496.z = this.var_495.i * this.var_493.x + this.var_495.j * this.var_493.y + this.var_495.k * this.var_493.z; - } - - public function method_512() : void - { - var item:name_513 = null; - var primitive:name_235 = null; - this.state.orientation.toMatrix3(this.baseMatrix); - this.var_495.copy(this.invInertia).append(this.baseMatrix).method_348(this.baseMatrix); - if(this.collisionPrimitives != null) - { - this.aabb.name_584(); - for(item = this.collisionPrimitives.head; item != null; ) - { - primitive = item.primitive; - primitive.transform.method_350(this.baseMatrix,this.state.position); - if(primitive.localTransform != null) - { - primitive.transform.prepend(primitive.localTransform); - } - primitive.calculateAABB(); - this.aabb.name_583(primitive.aabb); - item = item.next; - } - } - } - - public function name_586() : void - { - this.var_492.copy(this.state); - } - - internal function method_506() : void - { - this.state.copy(this.var_492); - } - - internal function method_510(dt:Number) : void - { - this.state.velocity.x += this.var_497.x * dt; - this.state.velocity.y += this.var_497.y * dt; - this.state.velocity.z += this.var_497.z * dt; - this.state.rotation.x += this.var_496.x * dt; - this.state.rotation.y += this.var_496.y * dt; - this.state.rotation.z += this.var_496.z * dt; - this.state.velocity.x *= linDamping; - this.state.velocity.y *= linDamping; - this.state.velocity.z *= linDamping; - this.state.rotation.x *= rotDamping; - this.state.rotation.y *= rotDamping; - this.state.rotation.z *= rotDamping; - } - - internal function method_511(dt:Number) : void - { - this.state.position.x += this.state.velocity.x * dt; - this.state.position.y += this.state.velocity.y * dt; - this.state.position.z += this.state.velocity.z * dt; - this.state.orientation.name_603(this.state.rotation,dt); - } - } -} - diff --git a/src/package_92/name_467.as b/src/package_92/name_467.as deleted file mode 100644 index 4f69868..0000000 --- a/src/package_92/name_467.as +++ /dev/null @@ -1,519 +0,0 @@ -package package_92 -{ - import package_122.name_672; - import package_46.Matrix3; - import package_46.name_194; - import package_76.name_256; - import package_76.name_682; - - public class name_467 - { - private static var lastBodyId:int; - - public const const_2:int = 1000; - - public var var_605:int = 10; - - public var name_471:Number = 0.1; - - public var name_474:Number = 0.5; - - public var var_608:int = 5; - - public var var_603:int = 5; - - public var name_475:Boolean = false; - - public var var_606:int = 10; - - public var var_604:Number = 1; - - public var var_607:Number = 0.01; - - public var name_567:name_194 = new name_194(0,0,-9.8); - - public var var_602:Number = 9.8; - - public var collisionDetector:name_256; - - public var name_605:name_681 = new name_681(); - - public var contacts:name_630; - - public var var_599:Vector. = new Vector.(); - - public var var_598:int; - - public var var_601:int; - - public var time:int; - - private var var_600:name_630; - - private var var_597:name_194 = new name_194(); - - private var _v:name_194 = new name_194(); - - public function name_467() - { - super(); - this.contacts = new name_630(0); - var contact:name_630 = this.contacts; - for(var i:int = 1; i < this.const_2; i++) - { - contact.next = new name_630(i); - contact = contact.next; - } - this.collisionDetector = new name_682(); - } - - public function get gravity() : name_194 - { - return this.name_567.clone(); - } - - public function set gravity(value:name_194) : void - { - this.name_567.copy(value); - this.var_602 = this.name_567.length(); - } - - public function name_592(body:name_271) : void - { - body.id = lastBodyId++; - body.scene = this; - this.name_605.append(body); - } - - public function name_593(body:name_271) : void - { - if(this.name_605.remove(body)) - { - body.scene = null; - } - } - - public function method_679(c:name_672) : void - { - var _loc2_:* = this.var_598++; - this.var_599[_loc2_] = c; - c.world = this; - } - - public function method_678(c:name_672) : Boolean - { - var idx:int = int(this.var_599.indexOf(c)); - if(idx < 0) - { - return false; - } - this.var_599.splice(idx,1); - --this.var_598; - c.world = null; - return true; - } - - private function method_676(dt:Number) : void - { - var body:name_271 = null; - for(var item:name_671 = this.name_605.head; item != null; ) - { - body = item.body; - body.method_508(); - if(body.var_500 && body.var_499 && !body.var_501) - { - body.var_497.x += this.name_567.x; - body.var_497.y += this.name_567.y; - body.var_497.z += this.name_567.z; - } - item = item.next; - } - } - - private function method_673(dt:Number) : void - { - var body:name_271 = null; - var b1:name_271 = null; - var b2:name_271 = null; - var j:int = 0; - var cp:name_674 = null; - var bPos:name_194 = null; - for(var item:name_671 = this.name_605.head; item != null; ) - { - body = item.body; - if(!body.var_501) - { - body.name_586(); - if(this.name_475) - { - body.method_510(dt); - body.method_511(dt); - } - body.method_512(); - } - item = item.next; - } - this.var_600 = this.collisionDetector.method_553(this.contacts); - for(var contact:name_630 = this.contacts; contact != this.var_600; ) - { - b1 = contact.body1; - b2 = contact.body2; - for(j = 0; j < contact.name_679; ) - { - cp = contact.points[j]; - bPos = b1.state.position; - cp.r1.x = cp.pos.x - bPos.x; - cp.r1.y = cp.pos.y - bPos.y; - cp.r1.z = cp.pos.z - bPos.z; - if(b2 != null) - { - bPos = b2.state.position; - cp.r2.x = cp.pos.x - bPos.x; - cp.r2.y = cp.pos.y - bPos.y; - cp.r2.z = cp.pos.z - bPos.z; - } - j++; - } - contact = contact.next; - } - if(this.name_475) - { - for(item = this.name_605.head; item != null; ) - { - body = item.body; - if(!body.var_501) - { - body.method_506(); - body.method_512(); - } - item = item.next; - } - } - } - - private function method_671(dt:Number) : void - { - var b1:name_271 = null; - var b2:name_271 = null; - var j:int = 0; - var cp:name_674 = null; - var constraint:name_672 = null; - for(var contact:name_630 = this.contacts; contact != this.var_600; ) - { - b1 = contact.body1; - b2 = contact.body2; - if(b1.var_501) - { - b1.var_501 = false; - b1.var_498 = 0; - } - if(b2 != null && b2.var_501) - { - b2.var_501 = false; - b2.var_498 = 0; - } - contact.name_673 = b1.material.name_673; - if(b2 != null && b2.material.name_673 < contact.name_673) - { - contact.name_673 = b2.material.name_673; - } - contact.name_581 = b1.material.name_581; - if(b2 != null && b2.material.name_581 < contact.name_581) - { - contact.name_581 = b2.material.name_581; - } - for(j = 0; j < contact.name_679; ) - { - cp = contact.points[j]; - cp.name_676 = 0; - cp.name_675 = 0; - if(b1.var_499) - { - cp.angularInertia1 = this._v.cross2(cp.r1,contact.normal).transform3(b1.var_495).method_360(cp.r1).dot(contact.normal); - cp.name_675 += b1.invMass + cp.angularInertia1; - } - if(b2 != null && b2.var_499) - { - cp.angularInertia2 = this._v.cross2(cp.r2,contact.normal).transform3(b2.var_495).method_360(cp.r2).dot(contact.normal); - cp.name_675 += b2.invMass + cp.angularInertia2; - } - this.method_668(b1,b2,cp,this._v); - cp.name_677 = this._v.dot(contact.normal); - if(cp.name_677 < 0) - { - cp.name_677 = -contact.name_673 * cp.name_677; - } - cp.name_678 = cp.penetration > this.name_471 ? (cp.penetration - this.name_471) / (this.var_605 * dt) : 0; - if(cp.name_678 > this.name_474) - { - cp.name_678 = this.name_474; - } - j++; - } - contact = contact.next; - } - for(var i:int = 0; i < this.var_598; i++) - { - constraint = this.var_599[i]; - constraint.name_684(dt); - } - } - - private function method_669(dt:Number, forceInelastic:Boolean) : void - { - var i:int = 0; - var contact:name_630 = null; - var constraint:name_672 = null; - var iterNum:int = forceInelastic ? this.var_603 : this.var_608; - var forwardLoop:Boolean = false; - for(var iter:int = 0; iter < iterNum; iter++) - { - forwardLoop = !forwardLoop; - for(contact = this.contacts; contact != this.var_600; ) - { - this.method_675(contact,forceInelastic,forwardLoop); - contact = contact.next; - } - for(i = 0; i < this.var_598; i++) - { - constraint = this.var_599[i]; - constraint.name_683(dt); - } - } - } - - private function method_675(contactInfo:name_630, forceInelastic:Boolean, forwardLoop:Boolean) : void - { - var i:int = 0; - var b1:name_271 = contactInfo.body1; - var b2:name_271 = contactInfo.body2; - var normal:name_194 = contactInfo.normal; - if(forwardLoop) - { - for(i = 0; i < contactInfo.name_679; this.method_670(i,b1,b2,contactInfo,normal,forceInelastic),i++) - { - } - } - else - { - for(i = contactInfo.name_679 - 1; i >= 0; this.method_670(i,b1,b2,contactInfo,normal,forceInelastic),i--) - { - } - } - } - - private function method_670(idx:int, b1:name_271, b2:name_271, contact:name_630, normal:name_194, forceInelastic:Boolean) : void - { - var r:name_194 = null; - var m:Matrix3 = null; - var xx:Number = NaN; - var yy:Number = NaN; - var zz:Number = NaN; - var minSpeVel:Number = NaN; - var cp:name_674 = contact.points[idx]; - if(!forceInelastic) - { - cp.name_680 = true; - } - var newVel:Number = 0; - this.method_668(b1,b2,cp,this._v); - var cnormal:name_194 = contact.normal; - var sepVel:Number = this._v.x * cnormal.x + this._v.y * cnormal.y + this._v.z * cnormal.z; - if(forceInelastic) - { - minSpeVel = cp.name_678; - if(sepVel < minSpeVel) - { - cp.name_680 = false; - } - else if(cp.name_680) - { - return; - } - newVel = minSpeVel; - } - else - { - newVel = cp.name_677; - } - var deltaVel:Number = newVel - sepVel; - var impulse:Number = deltaVel / cp.name_675; - var accumImpulse:Number = cp.name_676 + impulse; - if(accumImpulse < 0) - { - accumImpulse = 0; - } - var deltaImpulse:Number = accumImpulse - cp.name_676; - cp.name_676 = accumImpulse; - if(b1.var_499) - { - b1.method_518(cp.r1,normal,deltaImpulse); - } - if(b2 != null && b2.var_499) - { - b2.method_518(cp.r2,normal,-deltaImpulse); - } - this.method_668(b1,b2,cp,this._v); - var tanSpeedByUnitImpulse:Number = 0; - var dot:Number = this._v.x * cnormal.x + this._v.y * cnormal.y + this._v.z * cnormal.z; - this._v.x -= dot * cnormal.x; - this._v.y -= dot * cnormal.y; - this._v.z -= dot * cnormal.z; - var tanSpeed:Number = this._v.length(); - if(tanSpeed < 0.001) - { - return; - } - this.var_597.x = -this._v.x; - this.var_597.y = -this._v.y; - this.var_597.z = -this._v.z; - this.var_597.normalize(); - if(b1.var_499) - { - r = cp.r1; - m = b1.var_495; - this._v.x = r.y * this.var_597.z - r.z * this.var_597.y; - this._v.y = r.z * this.var_597.x - r.x * this.var_597.z; - this._v.z = r.x * this.var_597.y - r.y * this.var_597.x; - xx = m.a * this._v.x + m.b * this._v.y + m.c * this._v.z; - yy = m.e * this._v.x + m.f * this._v.y + m.g * this._v.z; - zz = m.i * this._v.x + m.j * this._v.y + m.k * this._v.z; - this._v.x = yy * r.z - zz * r.y; - this._v.y = zz * r.x - xx * r.z; - this._v.z = xx * r.y - yy * r.x; - tanSpeedByUnitImpulse += b1.invMass + this._v.x * this.var_597.x + this._v.y * this.var_597.y + this._v.z * this.var_597.z; - } - if(b2 != null && b2.var_499) - { - r = cp.r2; - m = b2.var_495; - this._v.x = r.y * this.var_597.z - r.z * this.var_597.y; - this._v.y = r.z * this.var_597.x - r.x * this.var_597.z; - this._v.z = r.x * this.var_597.y - r.y * this.var_597.x; - xx = m.a * this._v.x + m.b * this._v.y + m.c * this._v.z; - yy = m.e * this._v.x + m.f * this._v.y + m.g * this._v.z; - zz = m.i * this._v.x + m.j * this._v.y + m.k * this._v.z; - this._v.x = yy * r.z - zz * r.y; - this._v.y = zz * r.x - xx * r.z; - this._v.z = xx * r.y - yy * r.x; - tanSpeedByUnitImpulse += b2.invMass + this._v.x * this.var_597.x + this._v.y * this.var_597.y + this._v.z * this.var_597.z; - } - var tanImpulse:Number = tanSpeed / tanSpeedByUnitImpulse; - var max:Number = contact.name_581 * cp.name_676; - if(max < 0) - { - if(tanImpulse < max) - { - tanImpulse = max; - } - } - else if(tanImpulse > max) - { - tanImpulse = max; - } - if(b1.var_499) - { - b1.method_518(cp.r1,this.var_597,tanImpulse); - } - if(b2 != null && b2.var_499) - { - b2.method_518(cp.r2,this.var_597,-tanImpulse); - } - } - - private function method_668(body1:name_271, body2:name_271, cp:name_674, result:name_194) : void - { - var rot:name_194 = body1.state.rotation; - var v:name_194 = cp.r1; - var x:Number = rot.y * v.z - rot.z * v.y; - var y:Number = rot.z * v.x - rot.x * v.z; - var z:Number = rot.x * v.y - rot.y * v.x; - v = body1.state.velocity; - result.x = v.x + x; - result.y = v.y + y; - result.z = v.z + z; - if(body2 != null) - { - rot = body2.state.rotation; - v = cp.r2; - x = rot.y * v.z - rot.z * v.y; - y = rot.z * v.x - rot.x * v.z; - z = rot.x * v.y - rot.y * v.x; - v = body2.state.velocity; - result.x -= v.x + x; - result.y -= v.y + y; - result.z -= v.z + z; - } - } - - private function method_672(dt:Number) : void - { - for(var item:name_671 = this.name_605.head; item != null; ) - { - item.body.method_510(dt); - item = item.next; - } - } - - private function method_677(dt:Number) : void - { - var body:name_271 = null; - for(var item:name_671 = this.name_605.head; item != null; ) - { - body = item.body; - if(body.var_499 && !body.var_501) - { - body.method_511(dt); - } - item = item.next; - } - } - - private function method_674() : void - { - var body:name_271 = null; - for(var item:name_671 = this.name_605.head; item != null; ) - { - body = item.body; - body.method_513(); - body.method_512(); - if(body.var_502) - { - if(body.state.velocity.length() < this.var_604 && body.state.rotation.length() < this.var_607) - { - if(!body.var_501) - { - ++body.var_498; - if(body.var_498 >= this.var_606) - { - body.var_501 = true; - } - } - } - else - { - body.var_498 = 0; - body.var_501 = false; - } - } - item = item.next; - } - } - - public function update(delta:int) : void - { - ++this.var_601; - this.time += delta; - var dt:Number = 0.001 * delta; - this.method_676(dt); - this.method_673(dt); - this.method_671(dt); - this.method_669(dt,false); - this.method_672(dt); - this.method_669(dt,true); - this.method_677(dt); - this.method_674(); - } - } -} - diff --git a/src/package_92/name_513.as b/src/package_92/name_513.as deleted file mode 100644 index 47b995d..0000000 --- a/src/package_92/name_513.as +++ /dev/null @@ -1,57 +0,0 @@ -package package_92 -{ - import package_76.name_235; - - public class name_513 - { - private static var poolTop:name_513; - - public var primitive:name_235; - - public var next:name_513; - - public var prev:name_513; - - public function name_513(primitive:name_235) - { - super(); - this.primitive = primitive; - } - - public static function create(primitive:name_235) : name_513 - { - var item:name_513 = null; - if(poolTop == null) - { - item = new name_513(primitive); - } - else - { - item = poolTop; - item.primitive = primitive; - poolTop = item.next; - item.next = null; - } - return item; - } - - public static function method_712() : void - { - for(var curr:name_513 = poolTop; curr != null; ) - { - poolTop = curr.next; - curr.next = null; - curr = poolTop; - } - } - - public function dispose() : void - { - this.primitive = null; - this.prev = null; - this.next = poolTop; - poolTop = this; - } - } -} - diff --git a/src/package_92/name_599.as b/src/package_92/name_599.as deleted file mode 100644 index 09fd044..0000000 --- a/src/package_92/name_599.as +++ /dev/null @@ -1,30 +0,0 @@ -package package_92 -{ - import package_46.name_194; - import package_46.name_566; - - public class name_599 - { - public var position:name_194 = new name_194(); - - public var orientation:name_566 = new name_566(); - - public var velocity:name_194 = new name_194(); - - public var rotation:name_194 = new name_194(); - - public function name_599() - { - super(); - } - - public function copy(state:name_599) : void - { - this.position.copy(state.position); - this.orientation.copy(state.orientation); - this.velocity.copy(state.velocity); - this.rotation.copy(state.rotation); - } - } -} - diff --git a/src/package_92/name_600.as b/src/package_92/name_600.as deleted file mode 100644 index b083c17..0000000 --- a/src/package_92/name_600.as +++ /dev/null @@ -1,15 +0,0 @@ -package package_92 -{ - public class name_600 - { - public var name_673:Number = 0; - - public var name_581:Number = 0.3; - - public function name_600() - { - super(); - } - } -} - diff --git a/src/package_92/name_630.as b/src/package_92/name_630.as deleted file mode 100644 index b43051d..0000000 --- a/src/package_92/name_630.as +++ /dev/null @@ -1,43 +0,0 @@ -package package_92 -{ - import package_46.name_194; - - public class name_630 - { - public var body1:name_271; - - public var body2:name_271; - - public var name_673:Number; - - public var name_581:Number; - - public var normal:name_194 = new name_194(); - - public var points:Vector.; - - public var name_679:int; - - public var var_663:Number = 0; - - public var name_680:Boolean; - - public var next:name_630; - - public var index:int; - - private const const_3:int = 8; - - public function name_630(index:int) - { - this.points = new Vector.(this.const_3,true); - super(); - this.index = index; - for(var i:int = 0; i < this.const_3; i++) - { - this.points[i] = new name_674(); - } - } - } -} - diff --git a/src/package_94/name_276.as b/src/package_94/name_276.as deleted file mode 100644 index b2a9c2f..0000000 --- a/src/package_94/name_276.as +++ /dev/null @@ -1,327 +0,0 @@ -package package_94 -{ - import alternativa.tanks.game.EntityComponent; - import alternativa.tanks.game.GameKernel; - import alternativa.tanks.game.GameEvents; - import package_114.name_488; - import package_114.name_489; - import package_27.name_501; - import package_44.name_465; - import package_46.Matrix4; - import package_46.name_194; - import package_71.name_234; - import package_71.name_252; - import package_75.class_15; - import package_75.name_236; - import package_75.name_309; - import package_76.name_235; - import package_86.name_257; - import package_86.name_484; - import package_86.name_500; - - public class name_276 extends EntityComponent implements class_15, name_465 - { - public var var_430:Number; - - private var turnDirection:int; - - private var direction:Number = 0; - - private var var_433:Number = 0; - - private var maxRotationSpeed:Number = 0; - - private var rotationAcceleration:Number = 0; - - private var var_431:Number = 0; - - private var var_434:Boolean; - - private var chassisComponent:name_236; - - private var gameKernel:GameKernel; - - private var turret:name_234; - - private var primitives:Vector.; - - private var var_432:name_194; - - private var var_426:Boolean; - - private var var_424:name_488; - - private var var_429:Matrix4 = new Matrix4(); - - public function name_276(turret:name_234, maxRotationSpeed:Number, rotationAcceleration:Number) - { - super(); - this.maxRotationSpeed = maxRotationSpeed; - this.rotationAcceleration = rotationAcceleration; - this.primitives = new Vector.(); - this.var_432 = new name_194(); - this.setTurret(turret); - } - - override public function addToGame(gameKernel:GameKernel) : void - { - this.gameKernel = gameKernel; - } - - override public function initComponent() : void - { - this.chassisComponent = name_236(entity.getComponentStrict(name_236)); - this.chassisComponent.name_503(this.var_432); - this.chassisComponent.setTurret(this); - this.method_384(); - name_309(entity.getComponentStrict(name_309)).name_507(this); - this.var_424 = new name_488(); - this.var_424.name_486(entity,name_252.SET_RESPAWN_STATE,new name_487(this)); - var activeState:name_491 = new name_491(this); - this.var_424.name_486(entity,name_252.SET_ACTIVATING_STATE,activeState); - this.var_424.name_486(entity,name_252.SET_ACTIVE_STATE,activeState); - this.var_424.name_486(entity,name_252.SET_DEAD_STATE,new name_492(this)); - this.var_424.name_493 = name_489.INSTANCE; - entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.method_386); - } - - public function getBarrelCount() : int - { - return this.turret.var_421.length; - } - - public function getGunData(barrelIndex:int, barrelOrigin:name_194, gunDirection:name_194, gunElevationAxis:name_194) : void - { - var muzzlePoint:name_194 = this.method_385(barrelIndex); - barrelOrigin.reset(muzzlePoint.x,0,muzzlePoint.z); - barrelOrigin.transform4(this.var_429); - this.var_429.getAxis(0,gunElevationAxis); - this.var_429.getAxis(1,gunDirection); - } - - public function getGunMuzzleData(barrelIndex:int, muzzlePosition:name_194, gunDirection:name_194) : void - { - var localMuzzlePoint:name_194 = this.method_385(barrelIndex); - this.var_429.method_353(localMuzzlePoint,muzzlePosition); - this.var_429.getAxis(1,gunDirection); - } - - public function getGunMuzzleData2(barrelIndex:int, barrelOrigin:name_194, muzzlePosition:name_194) : void - { - var localMuzzlePoint:name_194 = this.method_385(barrelIndex); - barrelOrigin.reset(localMuzzlePoint.x,0,localMuzzlePoint.z); - barrelOrigin.transform4(this.var_429); - this.var_429.method_353(localMuzzlePoint,muzzlePosition); - } - - public function getBarrelLength(barrelIndex:int) : Number - { - return this.turret.var_421[barrelIndex].y; - } - - public function getInterpolatedTurretDirection() : Number - { - return this.var_430; - } - - public function getChassisMatrix() : Matrix4 - { - return this.chassisComponent.name_502(); - } - - public function getSkinMountPoint(vector:name_194) : void - { - this.chassisComponent.name_505(vector); - } - - public function setTurret(turret:name_234) : void - { - if(turret == null) - { - throw new ArgumentError("Parameter turret is null"); - } - if(this.turret == turret) - { - return; - } - this.turret = turret; - this.method_387(name_257.TANK,name_257.TANK | name_257.STATIC); - if(this.chassisComponent != null) - { - this.chassisComponent.setTurret(this); - this.method_384(); - } - } - - public function setTurretMountPoint(point:name_194) : void - { - this.var_432.copy(point); - this.method_384(); - } - - public function getTurretDirection() : Number - { - return this.direction; - } - - public function setTurretDirection(value:Number) : void - { - this.direction = name_501.name_506(value); - this.method_384(); - } - - public function setTurretControls(turretTurnDirection:int) : Boolean - { - if(this.turnDirection == turretTurnDirection) - { - return false; - } - this.turnDirection = turretTurnDirection; - this.var_434 = false; - return true; - } - - public function centerTurret(value:Boolean) : void - { - this.var_434 = value; - } - - public function getTurretPrimitives() : Vector. - { - return this.primitives; - } - - public function updateBeforeSimulation(physicsStep:int) : void - { - var dt:Number = NaN; - this.var_433 = this.direction; - if(!this.var_434 && this.turnDirection == 0) - { - this.var_431 = 0; - } - else - { - dt = 0.001 * physicsStep; - this.var_431 += this.rotationAcceleration * dt; - if(this.var_431 > this.maxRotationSpeed) - { - this.var_431 = this.maxRotationSpeed; - } - if(this.var_434) - { - this.direction = name_501.name_504(this.direction,0,this.var_431 * dt); - if(this.direction == 0) - { - this.var_434 = false; - } - this.method_384(); - } - else - { - this.setTurretDirection(this.direction + this.turnDirection * this.var_431 * dt); - } - } - } - - public function updateAfterSimulation(physicsStep:int) : void - { - } - - public function interpolate(interpolationCoeff:Number) : void - { - var angleDiff:Number = this.direction - this.var_433; - if(angleDiff > Math.PI) - { - angleDiff = 2 * Math.PI - angleDiff; - this.var_430 = this.var_433 - angleDiff * interpolationCoeff; - if(this.var_430 < -Math.PI) - { - this.var_430 += 2 * Math.PI; - } - } - else if(angleDiff < -Math.PI) - { - angleDiff += 2 * Math.PI; - this.var_430 = this.var_433 + angleDiff * interpolationCoeff; - if(this.var_430 > Math.PI) - { - this.var_430 -= 2 * Math.PI; - } - } - else - { - this.var_430 = this.var_433 * (1 - interpolationCoeff) + this.direction * interpolationCoeff; - } - this.var_429.method_347(); - this.var_429.name_196(0,0,this.var_430); - this.var_429.name_201(this.var_432); - this.var_429.append(this.chassisComponent.name_502()); - } - - internal function addToScene() : void - { - if(!this.var_426) - { - this.gameKernel.method_112().addControllerBefore(this); - this.var_426 = true; - } - } - - internal function removeFromScene() : void - { - if(this.var_426) - { - this.gameKernel.method_112().removeControllerBefore(this); - this.var_426 = false; - } - } - - private function method_385(barrelIndex:int) : name_194 - { - return this.turret.var_421[barrelIndex]; - } - - private function method_387(collisionGroup:int, collisionMask:int) : void - { - var boxData:name_484 = null; - var collisioinBox:name_500 = null; - this.primitives.length = 0; - for each(boxData in this.turret.var_422) - { - collisioinBox = new name_500(boxData.hs,boxData.matrix,collisionGroup,collisionMask); - collisioinBox.localTransform = new Matrix4(); - this.primitives.push(collisioinBox); - } - } - - private function method_384() : void - { - var collisionPrimitive:name_500 = null; - var m:Matrix4 = null; - var actualDirection:Number = -this.direction; - var cos:Number = Number(Math.cos(actualDirection)); - var sin:Number = Number(Math.sin(actualDirection)); - var numPrimitives:uint = uint(this.primitives.length); - for(var i:int = 0; i < numPrimitives; i++) - { - collisionPrimitive = name_500(this.primitives[i]); - m = collisionPrimitive.localTransform; - m.method_347(); - m.a = cos; - m.b = sin; - m.e = -sin; - m.f = cos; - m.d = this.var_432.x; - m.h = this.var_432.y; - m.l = this.var_432.z; - m.prepend(collisionPrimitive.m); - } - } - - private function method_386(gameType:String, gameData:*) : void - { - this.setTurretControls(0); - } - } -} - diff --git a/src/package_94/name_491.as b/src/package_94/name_491.as deleted file mode 100644 index e6a6141..0000000 --- a/src/package_94/name_491.as +++ /dev/null @@ -1,25 +0,0 @@ -package package_94 -{ - import package_114.class_35; - - public class name_491 implements class_35 - { - private var component:name_276; - - public function name_491(component:name_276) - { - super(); - this.component = component; - } - - public function start(data:*) : void - { - this.component.addToScene(); - } - - public function stop() : void - { - } - } -} - diff --git a/src/package_94/name_492.as b/src/package_94/name_492.as deleted file mode 100644 index 63d8cf6..0000000 --- a/src/package_94/name_492.as +++ /dev/null @@ -1,26 +0,0 @@ -package package_94 -{ - import package_114.class_35; - - public class name_492 implements class_35 - { - private var component:name_276; - - public function name_492(component:name_276) - { - super(); - this.component = component; - } - - public function start(data:*) : void - { - this.component.setTurretControls(0); - this.component.centerTurret(false); - } - - public function stop() : void - { - } - } -} - diff --git a/src/package_95/class_28.as b/src/package_95/class_28.as deleted file mode 100644 index df4ee2c..0000000 --- a/src/package_95/class_28.as +++ /dev/null @@ -1,10 +0,0 @@ -package package_95 -{ - public interface class_28 - { - function start() : void; - - function stop() : void; - } -} - diff --git a/src/package_95/name_545.as b/src/package_95/name_545.as deleted file mode 100644 index 9476c67..0000000 --- a/src/package_95/name_545.as +++ /dev/null @@ -1,14 +0,0 @@ -package package_95 -{ - import flash.utils.Dictionary; - - public interface name_545 - { - function name_548() : void; - - function name_547() : void; - - function name_546(param1:Dictionary) : void; - } -} - diff --git a/src/package_97/name_292.as b/src/package_97/name_292.as deleted file mode 100644 index 794549f..0000000 --- a/src/package_97/name_292.as +++ /dev/null @@ -1,19 +0,0 @@ -package package_97 -{ - import package_117.name_542; - import package_92.name_271; - - public class name_292 implements name_542 - { - public function name_292() - { - super(); - } - - public function name_541(body:name_271, distance:Number) : Number - { - return 1; - } - } -} - diff --git a/src/package_98/name_290.as b/src/package_98/name_290.as deleted file mode 100644 index d0435f6..0000000 --- a/src/package_98/name_290.as +++ /dev/null @@ -1,53 +0,0 @@ -package package_98 -{ - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import alternativa.osgi.OSGi; - import alternativa.osgi.service.console.IConsole; - - public class name_290 - { - private static const LIGHT_TYPE_AMBIENT:String = "a"; - - private static const LIGHT_TYPE_DIRECTIONAL:String = "d"; - - private static const LIGHT_TYPE_OMNI:String = "o"; - - private static const LIGHT_TYPE_SPOT:String = "s"; - - private var renderSystem:RenderSystem; - - private var var_471:Object = {}; - - public function name_290(param1:RenderSystem) - { - super(); - this.renderSystem = param1; - var _loc2_:IConsole = IConsole(OSGi.name_8().name_30(IConsole)); - _loc2_.name_45("light",this.method_469); - this.var_471[LIGHT_TYPE_AMBIENT] = new name_558(param1); - this.var_471[LIGHT_TYPE_DIRECTIONAL] = new name_559(param1); - this.var_471[LIGHT_TYPE_OMNI] = new name_560(param1); - this.var_471[LIGHT_TYPE_SPOT] = new name_561(param1); - } - - private function method_469(param1:IConsole, param2:Array) : void - { - var _loc3_:String = null; - var _loc4_:name_557 = null; - if(param2.length != 0) - { - _loc3_ = param2.shift(); - _loc4_ = this.var_471[_loc3_]; - if(_loc4_ == null) - { - param1.name_145("Unknown light type"); - } - else - { - _loc4_.name_562(param1,param2); - } - } - } - } -} - diff --git a/src/package_98/name_558.as b/src/package_98/name_558.as deleted file mode 100644 index d21f10b..0000000 --- a/src/package_98/name_558.as +++ /dev/null @@ -1,67 +0,0 @@ -package package_98 -{ - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_21.name_116; - import package_24.name_376; - import alternativa.osgi.service.console.IConsole; - - public class name_558 extends name_557 - { - public function name_558(param1:RenderSystem) - { - super(param1); - } - - override protected function lightToString(param1:name_116) : String - { - return "AmbientLight color: 0x" + name_376(param1).color.toString(16); - } - - override protected function create(param1:IConsole, param2:Array, param3:int) : name_116 - { - var _loc4_:uint = 0; - var _loc5_:name_376 = null; - if(param2.length == 0) - { - param1.name_145("Color is expected"); - return null; - } - _loc4_ = uint(param2[0]); - _loc5_ = new name_376(_loc4_); - _loc5_.name = "Ambient_" + param3; - renderSystem.lights.ambientLight = _loc5_; - return _loc5_; - } - - override protected function modify(param1:IConsole, param2:String, param3:Array) : name_116 - { - var _loc4_:name_376 = renderSystem.lights.ambientLight; - if(_loc4_ != null) - { - if(param3[0] != "color") - { - param1.name_145("Available commands:"); - param1.name_145("color color_value"); - } - else - { - _loc4_.color = param3[1]; - } - } - return _loc4_; - } - - override protected function getLigts() : Vector. - { - return Vector.([renderSystem.lights.ambientLight]); - } - - override protected function del(param1:IConsole, param2:String) : name_116 - { - var _loc3_:name_376 = renderSystem.lights.ambientLight; - renderSystem.lights.ambientLight = null; - return _loc3_; - } - } -} - diff --git a/src/package_98/name_561.as b/src/package_98/name_561.as deleted file mode 100644 index 0e36389..0000000 --- a/src/package_98/name_561.as +++ /dev/null @@ -1,126 +0,0 @@ -package package_98 -{ - import alternativa.utils.TextUtils; - import alternativa.tanks.game.subsystems.rendersystem.RenderSystem; - import package_21.name_116; - import package_24.SpotLight; - import alternativa.osgi.service.console.IConsole; - - public class name_561 extends name_557 - { - public function name_561(param1:RenderSystem) - { - super(param1); - } - - override protected function lightToString(param1:name_116) : String - { - var _loc2_:SpotLight = SpotLight(param1); - return TextUtils.name_719("SpotLight color: 0x%1, attenuationBegin: %2, attenuationEnd: %3, hotspot: %4, falloff: %5, x: %6, y: %7, z: %8",_loc2_.color.toString(16),_loc2_.attenuationBegin.toFixed(2),_loc2_.attenuationEnd.toFixed(2),_loc2_.hotspot.toFixed(2),_loc2_.falloff.toFixed(2),_loc2_.x.toFixed(2),_loc2_.y.toFixed(2),_loc2_.z.toFixed(2)); - } - - override protected function modify(param1:IConsole, param2:String, param3:Array) : name_116 - { - var _loc6_:Number = NaN; - var _loc7_:Number = NaN; - var _loc8_:Number = NaN; - var _loc4_:SpotLight = this.method_762(param2); - if(_loc4_ == null) - { - return null; - } - var _loc5_:String = param3.shift(); - switch(_loc5_) - { - case "pos": - _loc4_.x = param3[0]; - _loc4_.y = param3[1]; - _loc4_.z = param3[2]; - break; - case "color": - _loc4_.color = param3[0]; - break; - case "cone": - _loc4_.hotspot = method_761(param3[0],0); - _loc4_.falloff = method_761(param3[1],0); - break; - case "lookAt": - _loc6_ = method_761(param3[0],0); - _loc7_ = method_761(param3[1],0); - _loc8_ = method_761(param3[2],0); - _loc4_.lookAt(_loc6_,_loc7_,_loc8_); - param1.name_145("Looking at " + _loc6_ + ", " + _loc7_ + ", " + _loc8_); - break; - case "att": - _loc4_.attenuationBegin = method_761(param3[0]); - _loc4_.attenuationEnd = method_761(param3[1]); - break; - default: - param1.method_145(Vector.(["Available commands:","color value","att attenuationBegin attenuationEnd","cone hotspot falloff","pos x y z","lookAt x y z"])); - return null; - } - return _loc4_; - } - - override protected function create(param1:IConsole, param2:Array, param3:int) : name_116 - { - if(param2.length == 0) - { - param1.name_145("parameters: color attenuationBegin attenuationEnd hotspot falloff x y z lookX lookY lookZ"); - return null; - } - var _loc4_:int = int(param2[0]); - var _loc5_:Number = method_761(param2[1]); - var _loc6_:Number = method_761(param2[2]); - var _loc7_:Number = method_761(param2[3]); - var _loc8_:Number = method_761(param2[4]); - var _loc9_:Number = method_761(param2[5]); - var _loc10_:Number = method_761(param2[6]); - var _loc11_:Number = method_761(param2[7]); - var _loc12_:Number = method_761(param2[8]); - var _loc13_:Number = method_761(param2[9]); - var _loc14_:Number = method_761(param2[10]); - var _loc15_:SpotLight = new SpotLight(_loc4_,_loc5_,_loc6_,_loc7_,_loc8_); - _loc15_.name = "Spot_" + param3; - _loc15_.x = _loc9_; - _loc15_.y = _loc10_; - _loc15_.z = _loc11_; - _loc15_.lookAt(_loc12_,_loc13_,_loc14_); - renderSystem.lights.spotLights.add(_loc15_); - return _loc15_; - } - - override protected function getLigts() : Vector. - { - return Vector.(renderSystem.lights.spotLights.lights); - } - - override protected function del(param1:IConsole, param2:String) : name_116 - { - var _loc3_:SpotLight = this.method_762(param2); - if(_loc3_ != null) - { - renderSystem.lights.spotLights.remove(SpotLight(_loc3_)); - } - return _loc3_; - } - - private function method_762(param1:String) : SpotLight - { - var _loc3_:SpotLight = null; - var _loc2_:Vector. = renderSystem.lights.spotLights.lights; - if(_loc2_ != null) - { - for each(_loc3_ in _loc2_) - { - if(_loc3_.name == param1) - { - return _loc3_; - } - } - } - return null; - } - } -} - diff --git a/src/platform/client/a3d/osgi/Activator.as b/src/platform/client/a3d/osgi/Activator.as index bf224ba..9d10218 100644 --- a/src/platform/client/a3d/osgi/Activator.as +++ b/src/platform/client/a3d/osgi/Activator.as @@ -1,210 +1,210 @@ package platform.client.a3d.osgi { - import package_31.class_6; - import package_32.name_148; - import package_32.name_149; - import package_32.name_209; - import package_34.name_150; - import package_36.name_152; - import package_36.name_163; - import package_48.A3D2AmbientLight; - import package_48.A3D2Box; - import package_48.A3D2Decal; - import package_48.A3D2DirectionalLight; - import package_48.A3D2Joint; - import package_48.A3D2JointBindTransform; - import package_48.A3D2Mesh; - import package_48.A3D2Object; - import package_48.A3D2OmniLight; - import package_48.A3D2Skin; - import package_48.A3D2SpotLight; - import package_48.A3D2Sprite; - import package_48.A3D2Surface; - import package_48.A3D2Transform; - import package_49.CodecA3D2AmbientLight; - import package_49.CodecA3D2Box; - import package_49.CodecA3D2Decal; - import package_49.CodecA3D2DirectionalLight; - import package_49.CodecA3D2Joint; - import package_49.CodecA3D2JointBindTransform; - import package_49.CodecA3D2Mesh; - import package_49.CodecA3D2Object; - import package_49.CodecA3D2OmniLight; - import package_49.CodecA3D2Skin; - import package_49.CodecA3D2SpotLight; - import package_49.CodecA3D2Sprite; - import package_49.CodecA3D2Surface; - import package_49.CodecA3D2Transform; - import package_49.VectorCodecA3D2AmbientLightLevel1; - import package_49.VectorCodecA3D2AmbientLightLevel2; - import package_49.VectorCodecA3D2AmbientLightLevel3; - import package_49.VectorCodecA3D2BoxLevel1; - import package_49.VectorCodecA3D2BoxLevel2; - import package_49.VectorCodecA3D2BoxLevel3; - import package_49.VectorCodecA3D2DecalLevel1; - import package_49.VectorCodecA3D2DecalLevel2; - import package_49.VectorCodecA3D2DecalLevel3; - import package_49.VectorCodecA3D2DirectionalLightLevel1; - import package_49.VectorCodecA3D2DirectionalLightLevel2; - import package_49.VectorCodecA3D2DirectionalLightLevel3; - import package_49.VectorCodecA3D2JointBindTransformLevel1; - import package_49.VectorCodecA3D2JointBindTransformLevel2; - import package_49.VectorCodecA3D2JointBindTransformLevel3; - import package_49.VectorCodecA3D2JointLevel1; - import package_49.VectorCodecA3D2JointLevel2; - import package_49.VectorCodecA3D2JointLevel3; - import package_49.VectorCodecA3D2MeshLevel1; - import package_49.VectorCodecA3D2MeshLevel2; - import package_49.VectorCodecA3D2MeshLevel3; - import package_49.VectorCodecA3D2ObjectLevel1; - import package_49.VectorCodecA3D2ObjectLevel2; - import package_49.VectorCodecA3D2ObjectLevel3; - import package_49.VectorCodecA3D2OmniLightLevel1; - import package_49.VectorCodecA3D2OmniLightLevel2; - import package_49.VectorCodecA3D2OmniLightLevel3; - import package_49.VectorCodecA3D2SkinLevel1; - import package_49.VectorCodecA3D2SkinLevel2; - import package_49.VectorCodecA3D2SkinLevel3; - import package_49.VectorCodecA3D2SpotLightLevel1; - import package_49.VectorCodecA3D2SpotLightLevel2; - import package_49.VectorCodecA3D2SpotLightLevel3; - import package_49.VectorCodecA3D2SpriteLevel1; - import package_49.VectorCodecA3D2SpriteLevel2; - import package_49.VectorCodecA3D2SpriteLevel3; - import package_49.VectorCodecA3D2SurfaceLevel1; - import package_49.VectorCodecA3D2SurfaceLevel2; - import package_49.VectorCodecA3D2SurfaceLevel3; - import package_49.VectorCodecA3D2TransformLevel1; - import package_49.VectorCodecA3D2TransformLevel2; - import package_49.VectorCodecA3D2TransformLevel3; + import _codec.commons.CodecA3DMatrix; + import _codec.commons.CodecId; + import _codec.commons.VectorCodecA3DMatrixLevel1; + import _codec.commons.VectorCodecA3DMatrixLevel2; + import _codec.commons.VectorCodecA3DMatrixLevel3; + import _codec.commons.VectorCodecIdLevel1; + import _codec.commons.VectorCodecIdLevel2; + import _codec.commons.VectorCodecIdLevel3; + import _codec.versions.version1.a3d.CodecA3D; + import _codec.versions.version1.a3d.VectorCodecA3DLevel1; + import _codec.versions.version1.a3d.VectorCodecA3DLevel2; + import _codec.versions.version1.a3d.VectorCodecA3DLevel3; + import _codec.versions.version1.a3d.geometry.CodecA3DGeometry; + import _codec.versions.version1.a3d.geometry.CodecA3DIndexBuffer; + import _codec.versions.version1.a3d.geometry.CodecA3DVertexBuffer; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DGeometryLevel1; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DGeometryLevel2; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DGeometryLevel3; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DIndexBufferLevel1; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DIndexBufferLevel2; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DIndexBufferLevel3; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DVertexBufferLevel1; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DVertexBufferLevel2; + import _codec.versions.version1.a3d.geometry.VectorCodecA3DVertexBufferLevel3; + import _codec.versions.version1.a3d.id.CodecParentId; + import _codec.versions.version1.a3d.id.VectorCodecParentIdLevel1; + import _codec.versions.version1.a3d.id.VectorCodecParentIdLevel2; + import _codec.versions.version1.a3d.id.VectorCodecParentIdLevel3; + import _codec.versions.version1.a3d.materials.CodecA3DImage; + import _codec.versions.version1.a3d.materials.CodecA3DMap; + import _codec.versions.version1.a3d.materials.CodecA3DMaterial; + import _codec.versions.version1.a3d.materials.VectorCodecA3DImageLevel1; + import _codec.versions.version1.a3d.materials.VectorCodecA3DImageLevel2; + import _codec.versions.version1.a3d.materials.VectorCodecA3DImageLevel3; + import _codec.versions.version1.a3d.materials.VectorCodecA3DMapLevel1; + import _codec.versions.version1.a3d.materials.VectorCodecA3DMapLevel2; + import _codec.versions.version1.a3d.materials.VectorCodecA3DMapLevel3; + import _codec.versions.version1.a3d.materials.VectorCodecA3DMaterialLevel1; + import _codec.versions.version1.a3d.materials.VectorCodecA3DMaterialLevel2; + import _codec.versions.version1.a3d.materials.VectorCodecA3DMaterialLevel3; + import _codec.versions.version1.a3d.objects.CodecA3DBox; + import _codec.versions.version1.a3d.objects.CodecA3DObject; + import _codec.versions.version1.a3d.objects.CodecA3DSurface; + import _codec.versions.version1.a3d.objects.CodecA3DTransformation; + import _codec.versions.version1.a3d.objects.VectorCodecA3DBoxLevel1; + import _codec.versions.version1.a3d.objects.VectorCodecA3DBoxLevel2; + import _codec.versions.version1.a3d.objects.VectorCodecA3DBoxLevel3; + import _codec.versions.version1.a3d.objects.VectorCodecA3DObjectLevel1; + import _codec.versions.version1.a3d.objects.VectorCodecA3DObjectLevel2; + import _codec.versions.version1.a3d.objects.VectorCodecA3DObjectLevel3; + import _codec.versions.version1.a3d.objects.VectorCodecA3DSurfaceLevel1; + import _codec.versions.version1.a3d.objects.VectorCodecA3DSurfaceLevel2; + import _codec.versions.version1.a3d.objects.VectorCodecA3DSurfaceLevel3; + import _codec.versions.version1.a3d.objects.VectorCodecA3DTransformationLevel1; + import _codec.versions.version1.a3d.objects.VectorCodecA3DTransformationLevel2; + import _codec.versions.version1.a3d.objects.VectorCodecA3DTransformationLevel3; + import _codec.versions.version2.a3d.CodecA3D2; + import _codec.versions.version2.a3d.VectorCodecA3D2Level1; + import _codec.versions.version2.a3d.VectorCodecA3D2Level2; + import _codec.versions.version2.a3d.VectorCodecA3D2Level3; + import _codec.versions.version2.a3d.animation.CodecA3D2AnimationClip; + import _codec.versions.version2.a3d.animation.CodecA3D2Keyframe; + import _codec.versions.version2.a3d.animation.CodecA3D2Track; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2AnimationClipLevel1; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2AnimationClipLevel2; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2AnimationClipLevel3; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2KeyframeLevel1; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2KeyframeLevel2; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2KeyframeLevel3; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2TrackLevel1; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2TrackLevel2; + import _codec.versions.version2.a3d.animation.VectorCodecA3D2TrackLevel3; + import _codec.versions.version2.a3d.geometry.CodecA3D2IndexBuffer; + import _codec.versions.version2.a3d.geometry.CodecA3D2VertexAttributes; + import _codec.versions.version2.a3d.geometry.CodecA3D2VertexBuffer; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2IndexBufferLevel1; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2IndexBufferLevel2; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2IndexBufferLevel3; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexAttributesLevel1; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexAttributesLevel2; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexAttributesLevel3; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexBufferLevel1; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexBufferLevel2; + import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexBufferLevel3; + import _codec.versions.version2.a3d.materials.CodecA3D2CubeMap; + import _codec.versions.version2.a3d.materials.CodecA3D2Image; + import _codec.versions.version2.a3d.materials.CodecA3D2Map; + import _codec.versions.version2.a3d.materials.CodecA3D2Material; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2CubeMapLevel1; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2CubeMapLevel2; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2CubeMapLevel3; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2ImageLevel1; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2ImageLevel2; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2ImageLevel3; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2MapLevel1; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2MapLevel2; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2MapLevel3; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2MaterialLevel1; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2MaterialLevel2; + import _codec.versions.version2.a3d.materials.VectorCodecA3D2MaterialLevel3; + import _codec.versions.version2.a3d.objects.CodecA3D2AmbientLight; + import _codec.versions.version2.a3d.objects.CodecA3D2Box; + import _codec.versions.version2.a3d.objects.CodecA3D2Decal; + import _codec.versions.version2.a3d.objects.CodecA3D2DirectionalLight; + import _codec.versions.version2.a3d.objects.CodecA3D2Joint; + import _codec.versions.version2.a3d.objects.CodecA3D2JointBindTransform; + import _codec.versions.version2.a3d.objects.CodecA3D2Mesh; + import _codec.versions.version2.a3d.objects.CodecA3D2Object; + import _codec.versions.version2.a3d.objects.CodecA3D2OmniLight; + import _codec.versions.version2.a3d.objects.CodecA3D2Skin; + import _codec.versions.version2.a3d.objects.CodecA3D2SpotLight; + import _codec.versions.version2.a3d.objects.CodecA3D2Sprite; + import _codec.versions.version2.a3d.objects.CodecA3D2Surface; + import _codec.versions.version2.a3d.objects.CodecA3D2Transform; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2AmbientLightLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2AmbientLightLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2AmbientLightLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2BoxLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2BoxLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2BoxLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2DecalLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2DecalLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2DecalLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2DirectionalLightLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2DirectionalLightLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2DirectionalLightLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointBindTransformLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointBindTransformLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointBindTransformLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2MeshLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2MeshLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2MeshLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2ObjectLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2ObjectLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2ObjectLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2OmniLightLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2OmniLightLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2OmniLightLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SkinLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SkinLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SkinLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpotLightLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpotLightLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpotLightLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpriteLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpriteLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpriteLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SurfaceLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SurfaceLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2SurfaceLevel3; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2TransformLevel1; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2TransformLevel2; + import _codec.versions.version2.a3d.objects.VectorCodecA3D2TransformLevel3; import alternativa.osgi.OSGi; - import package_50.A3DBox; - import package_50.A3DObject; - import package_50.A3DSurface; - import package_50.A3DTransformation; - import package_51.A3D2CubeMap; - import package_51.A3D2Image; - import package_51.A3D2Map; - import package_51.A3D2Material; - import package_52.A3D2IndexBuffer; - import package_52.A3D2VertexAttributes; - import package_52.A3D2VertexBuffer; - import package_53.A3DImage; - import package_53.A3DMap; - import package_53.A3DMaterial; - import package_54.A3DGeometry; - import package_54.A3DIndexBuffer; - import package_54.A3DVertexBuffer; - import package_55.A3D2AnimationClip; - import package_55.A3D2Keyframe; - import package_55.A3D2Track; - import package_56.CodecA3DBox; - import package_56.CodecA3DObject; - import package_56.CodecA3DSurface; - import package_56.CodecA3DTransformation; - import package_56.VectorCodecA3DBoxLevel1; - import package_56.VectorCodecA3DBoxLevel2; - import package_56.VectorCodecA3DBoxLevel3; - import package_56.VectorCodecA3DObjectLevel1; - import package_56.VectorCodecA3DObjectLevel2; - import package_56.VectorCodecA3DObjectLevel3; - import package_56.VectorCodecA3DSurfaceLevel1; - import package_56.VectorCodecA3DSurfaceLevel2; - import package_56.VectorCodecA3DSurfaceLevel3; - import package_56.VectorCodecA3DTransformationLevel1; - import package_56.VectorCodecA3DTransformationLevel2; - import package_56.VectorCodecA3DTransformationLevel3; - import package_57.name_213; - import package_57.name_214; - import package_58.CodecA3D2CubeMap; - import package_58.CodecA3D2Image; - import package_58.CodecA3D2Map; - import package_58.CodecA3D2Material; - import package_58.VectorCodecA3D2CubeMapLevel1; - import package_58.VectorCodecA3D2CubeMapLevel2; - import package_58.VectorCodecA3D2CubeMapLevel3; - import package_58.VectorCodecA3D2ImageLevel1; - import package_58.VectorCodecA3D2ImageLevel2; - import package_58.VectorCodecA3D2ImageLevel3; - import package_58.VectorCodecA3D2MapLevel1; - import package_58.VectorCodecA3D2MapLevel2; - import package_58.VectorCodecA3D2MapLevel3; - import package_58.VectorCodecA3D2MaterialLevel1; - import package_58.VectorCodecA3D2MaterialLevel2; - import package_58.VectorCodecA3D2MaterialLevel3; - import package_59.CodecA3DImage; - import package_59.CodecA3DMap; - import package_59.CodecA3DMaterial; - import package_59.VectorCodecA3DImageLevel1; - import package_59.VectorCodecA3DImageLevel2; - import package_59.VectorCodecA3DImageLevel3; - import package_59.VectorCodecA3DMapLevel1; - import package_59.VectorCodecA3DMapLevel2; - import package_59.VectorCodecA3DMapLevel3; - import package_59.VectorCodecA3DMaterialLevel1; - import package_59.VectorCodecA3DMaterialLevel2; - import package_59.VectorCodecA3DMaterialLevel3; - import package_60.CodecA3D2IndexBuffer; - import package_60.CodecA3D2VertexAttributes; - import package_60.CodecA3D2VertexBuffer; - import package_60.VectorCodecA3D2IndexBufferLevel1; - import package_60.VectorCodecA3D2IndexBufferLevel2; - import package_60.VectorCodecA3D2IndexBufferLevel3; - import package_60.VectorCodecA3D2VertexAttributesLevel1; - import package_60.VectorCodecA3D2VertexAttributesLevel2; - import package_60.VectorCodecA3D2VertexAttributesLevel3; - import package_60.VectorCodecA3D2VertexBufferLevel1; - import package_60.VectorCodecA3D2VertexBufferLevel2; - import package_60.VectorCodecA3D2VertexBufferLevel3; - import package_61.CodecA3D2AnimationClip; - import package_61.CodecA3D2Keyframe; - import package_61.CodecA3D2Track; - import package_61.VectorCodecA3D2AnimationClipLevel1; - import package_61.VectorCodecA3D2AnimationClipLevel2; - import package_61.VectorCodecA3D2AnimationClipLevel3; - import package_61.VectorCodecA3D2KeyframeLevel1; - import package_61.VectorCodecA3D2KeyframeLevel2; - import package_61.VectorCodecA3D2KeyframeLevel3; - import package_61.VectorCodecA3D2TrackLevel1; - import package_61.VectorCodecA3D2TrackLevel2; - import package_61.VectorCodecA3D2TrackLevel3; - import package_62.CodecA3DGeometry; - import package_62.CodecA3DIndexBuffer; - import package_62.CodecA3DVertexBuffer; - import package_62.VectorCodecA3DGeometryLevel1; - import package_62.VectorCodecA3DGeometryLevel2; - import package_62.VectorCodecA3DGeometryLevel3; - import package_62.VectorCodecA3DIndexBufferLevel1; - import package_62.VectorCodecA3DIndexBufferLevel2; - import package_62.VectorCodecA3DIndexBufferLevel3; - import package_62.VectorCodecA3DVertexBufferLevel1; - import package_62.VectorCodecA3DVertexBufferLevel2; - import package_62.VectorCodecA3DVertexBufferLevel3; - import package_63.VectorCodecA3DMatrixLevel1; - import package_63.VectorCodecA3DMatrixLevel2; - import package_63.VectorCodecA3DMatrixLevel3; - import package_63.VectorCodecIdLevel1; - import package_63.VectorCodecIdLevel2; - import package_63.VectorCodecIdLevel3; - import package_63.name_216; - import package_63.name_217; - import package_64.name_212; - import package_65.name_210; - import package_66.name_211; - import package_67.VectorCodecA3DLevel1; - import package_67.VectorCodecA3DLevel2; - import package_67.VectorCodecA3DLevel3; - import package_67.name_219; - import package_68.VectorCodecA3D2Level1; - import package_68.VectorCodecA3D2Level2; - import package_68.VectorCodecA3D2Level3; - import package_68.name_218; - import package_69.VectorCodecParentIdLevel1; - import package_69.VectorCodecParentIdLevel2; - import package_69.VectorCodecParentIdLevel3; - import package_69.name_215; + import alternativa.osgi.bundle.IBundleActivator; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.codec.OptionalCodecDecorator; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.EnumCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import commons.A3DMatrix; + import commons.Id; + import versions.version1.a3d.A3D; + import versions.version1.a3d.geometry.A3DGeometry; + import versions.version1.a3d.geometry.A3DIndexBuffer; + import versions.version1.a3d.geometry.A3DVertexBuffer; + import versions.version1.a3d.id.ParentId; + import versions.version1.a3d.materials.A3DImage; + import versions.version1.a3d.materials.A3DMap; + import versions.version1.a3d.materials.A3DMaterial; + import versions.version1.a3d.objects.A3DBox; + import versions.version1.a3d.objects.A3DObject; + import versions.version1.a3d.objects.A3DSurface; + import versions.version1.a3d.objects.A3DTransformation; + import versions.version2.a3d.A3D2; + import versions.version2.a3d.animation.A3D2AnimationClip; + import versions.version2.a3d.animation.A3D2Keyframe; + import versions.version2.a3d.animation.A3D2Track; + import versions.version2.a3d.geometry.A3D2IndexBuffer; + import versions.version2.a3d.geometry.A3D2VertexAttributes; + import versions.version2.a3d.geometry.A3D2VertexBuffer; + import versions.version2.a3d.materials.A3D2CubeMap; + import versions.version2.a3d.materials.A3D2Image; + import versions.version2.a3d.materials.A3D2Map; + import versions.version2.a3d.materials.A3D2Material; + import versions.version2.a3d.objects.A3D2AmbientLight; + import versions.version2.a3d.objects.A3D2Box; + import versions.version2.a3d.objects.A3D2Decal; + import versions.version2.a3d.objects.A3D2DirectionalLight; + import versions.version2.a3d.objects.A3D2Joint; + import versions.version2.a3d.objects.A3D2JointBindTransform; + import versions.version2.a3d.objects.A3D2Mesh; + import versions.version2.a3d.objects.A3D2Object; + import versions.version2.a3d.objects.A3D2OmniLight; + import versions.version2.a3d.objects.A3D2Skin; + import versions.version2.a3d.objects.A3D2SpotLight; + import versions.version2.a3d.objects.A3D2Sprite; + import versions.version2.a3d.objects.A3D2Surface; + import versions.version2.a3d.objects.A3D2Transform; - public class Activator implements class_6 + public class Activator implements IBundleActivator { public static var osgi:OSGi; @@ -215,828 +215,828 @@ package platform.client.a3d.osgi public function start(_osgi:OSGi) : void { - var codec:name_152 = null; + var codec:ICodec = null; osgi = _osgi; - var protocol:name_163 = name_163(osgi.name_30(name_163)); + var protocol:IProtocol = IProtocol(osgi.getService(IProtocol)); codec = new CodecA3DImage(); - protocol.name_151(new name_148(A3DImage,false),codec); - protocol.name_151(new name_148(A3DImage,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DImage,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DImage,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DVertexBuffer(); - protocol.name_151(new name_148(A3DVertexBuffer,false),codec); - protocol.name_151(new name_148(A3DVertexBuffer,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DVertexBuffer,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DVertexBuffer,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DGeometry(); - protocol.name_151(new name_148(A3DGeometry,false),codec); - protocol.name_151(new name_148(A3DGeometry,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DGeometry,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DGeometry,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2AmbientLight(); - protocol.name_151(new name_148(A3D2AmbientLight,false),codec); - protocol.name_151(new name_148(A3D2AmbientLight,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2AmbientLight,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2AmbientLight,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2VertexBuffer(); - protocol.name_151(new name_148(A3D2VertexBuffer,false),codec); - protocol.name_151(new name_148(A3D2VertexBuffer,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2VertexBuffer,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2VertexBuffer,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Object(); - protocol.name_151(new name_148(A3D2Object,false),codec); - protocol.name_151(new name_148(A3D2Object,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Object,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Object,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2IndexBuffer(); - protocol.name_151(new name_148(A3D2IndexBuffer,false),codec); - protocol.name_151(new name_148(A3D2IndexBuffer,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2IndexBuffer,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2IndexBuffer,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2SpotLight(); - protocol.name_151(new name_148(A3D2SpotLight,false),codec); - protocol.name_151(new name_148(A3D2SpotLight,true),new name_150(codec)); - codec = new name_218(); - protocol.name_151(new name_148(name_211,false),codec); - protocol.name_151(new name_148(name_211,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2SpotLight,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2SpotLight,true),new OptionalCodecDecorator(codec)); + codec = new CodecA3D2(); + protocol.registerCodec(new TypeCodecInfo(A3D2,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DSurface(); - protocol.name_151(new name_148(A3DSurface,false),codec); - protocol.name_151(new name_148(A3DSurface,true),new name_150(codec)); - codec = new name_216(); - protocol.name_151(new name_148(name_213,false),codec); - protocol.name_151(new name_148(name_213,true),new name_150(codec)); - codec = new name_215(); - protocol.name_151(new name_148(name_212,false),codec); - protocol.name_151(new name_148(name_212,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DSurface,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DSurface,true),new OptionalCodecDecorator(codec)); + codec = new CodecId(); + protocol.registerCodec(new TypeCodecInfo(Id,false),codec); + protocol.registerCodec(new TypeCodecInfo(Id,true),new OptionalCodecDecorator(codec)); + codec = new CodecParentId(); + protocol.registerCodec(new TypeCodecInfo(ParentId,false),codec); + protocol.registerCodec(new TypeCodecInfo(ParentId,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Map(); - protocol.name_151(new name_148(A3D2Map,false),codec); - protocol.name_151(new name_148(A3D2Map,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Map,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Map,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DIndexBuffer(); - protocol.name_151(new name_148(A3DIndexBuffer,false),codec); - protocol.name_151(new name_148(A3DIndexBuffer,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DIndexBuffer,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DIndexBuffer,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DMaterial(); - protocol.name_151(new name_148(A3DMaterial,false),codec); - protocol.name_151(new name_148(A3DMaterial,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DMaterial,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DMaterial,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2DirectionalLight(); - protocol.name_151(new name_148(A3D2DirectionalLight,false),codec); - protocol.name_151(new name_148(A3D2DirectionalLight,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2DirectionalLight,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2DirectionalLight,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Image(); - protocol.name_151(new name_148(A3D2Image,false),codec); - protocol.name_151(new name_148(A3D2Image,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Image,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Image,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Material(); - protocol.name_151(new name_148(A3D2Material,false),codec); - protocol.name_151(new name_148(A3D2Material,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Material,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Material,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Sprite(); - protocol.name_151(new name_148(A3D2Sprite,false),codec); - protocol.name_151(new name_148(A3D2Sprite,true),new name_150(codec)); - codec = new name_217(); - protocol.name_151(new name_148(name_214,false),codec); - protocol.name_151(new name_148(name_214,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Sprite,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Sprite,true),new OptionalCodecDecorator(codec)); + codec = new CodecA3DMatrix(); + protocol.registerCodec(new TypeCodecInfo(A3DMatrix,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DMatrix,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Decal(); - protocol.name_151(new name_148(A3D2Decal,false),codec); - protocol.name_151(new name_148(A3D2Decal,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Decal,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Decal,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Box(); - protocol.name_151(new name_148(A3D2Box,false),codec); - protocol.name_151(new name_148(A3D2Box,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Box,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Box,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DObject(); - protocol.name_151(new name_148(A3DObject,false),codec); - protocol.name_151(new name_148(A3DObject,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DObject,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DObject,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Keyframe(); - protocol.name_151(new name_148(A3D2Keyframe,false),codec); - protocol.name_151(new name_148(A3D2Keyframe,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Keyframe,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Keyframe,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2OmniLight(); - protocol.name_151(new name_148(A3D2OmniLight,false),codec); - protocol.name_151(new name_148(A3D2OmniLight,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2OmniLight,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2OmniLight,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Mesh(); - protocol.name_151(new name_148(A3D2Mesh,false),codec); - protocol.name_151(new name_148(A3D2Mesh,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Mesh,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Mesh,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Surface(); - protocol.name_151(new name_148(A3D2Surface,false),codec); - protocol.name_151(new name_148(A3D2Surface,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Surface,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Surface,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DBox(); - protocol.name_151(new name_148(A3DBox,false),codec); - protocol.name_151(new name_148(A3DBox,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DBox,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DBox,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2CubeMap(); - protocol.name_151(new name_148(A3D2CubeMap,false),codec); - protocol.name_151(new name_148(A3D2CubeMap,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2CubeMap,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2CubeMap,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Transform(); - protocol.name_151(new name_148(A3D2Transform,false),codec); - protocol.name_151(new name_148(A3D2Transform,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Transform,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Transform,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Skin(); - protocol.name_151(new name_148(A3D2Skin,false),codec); - protocol.name_151(new name_148(A3D2Skin,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Skin,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Skin,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2JointBindTransform(); - protocol.name_151(new name_148(A3D2JointBindTransform,false),codec); - protocol.name_151(new name_148(A3D2JointBindTransform,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2JointBindTransform,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2JointBindTransform,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Joint(); - protocol.name_151(new name_148(A3D2Joint,false),codec); - protocol.name_151(new name_148(A3D2Joint,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Joint,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Joint,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DTransformation(); - protocol.name_151(new name_148(A3DTransformation,false),codec); - protocol.name_151(new name_148(A3DTransformation,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DTransformation,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DTransformation,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2Track(); - protocol.name_151(new name_148(A3D2Track,false),codec); - protocol.name_151(new name_148(A3D2Track,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2Track,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2Track,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2AnimationClip(); - protocol.name_151(new name_148(A3D2AnimationClip,false),codec); - protocol.name_151(new name_148(A3D2AnimationClip,true),new name_150(codec)); - codec = new name_219(); - protocol.name_151(new name_148(name_210,false),codec); - protocol.name_151(new name_148(name_210,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3D2AnimationClip,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D2AnimationClip,true),new OptionalCodecDecorator(codec)); + codec = new CodecA3D(); + protocol.registerCodec(new TypeCodecInfo(A3D,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3D,true),new OptionalCodecDecorator(codec)); codec = new CodecA3D2VertexAttributes(); - protocol.name_151(new name_209(A3D2VertexAttributes,false),codec); - protocol.name_151(new name_209(A3D2VertexAttributes,true),new name_150(codec)); + protocol.registerCodec(new EnumCodecInfo(A3D2VertexAttributes,false),codec); + protocol.registerCodec(new EnumCodecInfo(A3D2VertexAttributes,true),new OptionalCodecDecorator(codec)); codec = new CodecA3DMap(); - protocol.name_151(new name_148(A3DMap,false),codec); - protocol.name_151(new name_148(A3DMap,true),new name_150(codec)); + protocol.registerCodec(new TypeCodecInfo(A3DMap,false),codec); + protocol.registerCodec(new TypeCodecInfo(A3DMap,true),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DecalLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Decal,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Decal,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DecalLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Decal,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Decal,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DVertexBufferLevel1(false); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DVertexBufferLevel1(true); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DirectionalLightLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DirectionalLightLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DirectionalLightLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DirectionalLightLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointBindTransformLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointBindTransformLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DObjectLevel3(false); - protocol.name_151(new name_149(new name_148(A3DObject,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DObject,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DObjectLevel3(true); - protocol.name_151(new name_149(new name_148(A3DObject,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DObject,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2IndexBufferLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2IndexBufferLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexBufferLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexBufferLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DBoxLevel1(false); - protocol.name_151(new name_149(new name_148(A3DBox,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DBox,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DBoxLevel1(true); - protocol.name_151(new name_149(new name_148(A3DBox,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DBox,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMaterialLevel1(false); - protocol.name_151(new name_149(new name_148(A3DMaterial,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DMaterial,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMaterialLevel1(true); - protocol.name_151(new name_149(new name_148(A3DMaterial,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DMaterial,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2OmniLightLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2OmniLightLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MapLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Map,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Map,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MapLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Map,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Map,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DVertexBufferLevel3(false); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DVertexBufferLevel3(true); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2Level2(false); - protocol.name_151(new name_149(new name_148(name_211,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_211,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2Level2(true); - protocol.name_151(new name_149(new name_148(name_211,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_211,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AnimationClipLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AnimationClipLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexAttributesLevel1(false); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,false),false,1),codec); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexAttributesLevel1(true); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,true),false,1),codec); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DGeometryLevel1(false); - protocol.name_151(new name_149(new name_148(A3DGeometry,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DGeometry,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DGeometryLevel1(true); - protocol.name_151(new name_149(new name_148(A3DGeometry,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DGeometry,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SkinLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Skin,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Skin,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SkinLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Skin,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Skin,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2OmniLightLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2OmniLightLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecParentIdLevel2(false); - protocol.name_151(new name_149(new name_148(name_212,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_212,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecParentIdLevel2(true); - protocol.name_151(new name_149(new name_148(name_212,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_212,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MapLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Map,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Map,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MapLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Map,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Map,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecIdLevel3(false); - protocol.name_151(new name_149(new name_148(name_213,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_213,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecIdLevel3(true); - protocol.name_151(new name_149(new name_148(name_213,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_213,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DirectionalLightLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DirectionalLightLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2DirectionalLight,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MeshLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Mesh,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Mesh,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MeshLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Mesh,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Mesh,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DecalLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Decal,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Decal,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DecalLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Decal,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Decal,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MeshLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Mesh,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Mesh,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MeshLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Mesh,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Mesh,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MeshLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Mesh,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Mesh,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MeshLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Mesh,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Mesh,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DSurfaceLevel3(false); - protocol.name_151(new name_149(new name_148(A3DSurface,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DSurface,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DSurfaceLevel3(true); - protocol.name_151(new name_149(new name_148(A3DSurface,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DSurface,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Joint,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Joint,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Joint,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Joint,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMatrixLevel2(false); - protocol.name_151(new name_149(new name_148(name_214,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_214,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMatrixLevel2(true); - protocol.name_151(new name_149(new name_148(name_214,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_214,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2IndexBufferLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2IndexBufferLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SurfaceLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Surface,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Surface,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SurfaceLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Surface,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Surface,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Joint,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Joint,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Joint,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Joint,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Joint,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Joint,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Joint,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Joint,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2BoxLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Box,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Box,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2BoxLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Box,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Box,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DTransformationLevel2(false); - protocol.name_151(new name_149(new name_148(A3DTransformation,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DTransformation,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DTransformationLevel2(true); - protocol.name_151(new name_149(new name_148(A3DTransformation,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DTransformation,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AnimationClipLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AnimationClipLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DTransformationLevel1(false); - protocol.name_151(new name_149(new name_148(A3DTransformation,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DTransformation,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DTransformationLevel1(true); - protocol.name_151(new name_149(new name_148(A3DTransformation,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DTransformation,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMatrixLevel3(false); - protocol.name_151(new name_149(new name_148(name_214,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_214,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMatrixLevel3(true); - protocol.name_151(new name_149(new name_148(name_214,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_214,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointBindTransformLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointBindTransformLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ObjectLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Object,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Object,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ObjectLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Object,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Object,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpriteLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Sprite,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Sprite,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpriteLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Sprite,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Sprite,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DBoxLevel2(false); - protocol.name_151(new name_149(new name_148(A3DBox,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DBox,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DBoxLevel2(true); - protocol.name_151(new name_149(new name_148(A3DBox,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DBox,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexBufferLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexBufferLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecParentIdLevel1(false); - protocol.name_151(new name_149(new name_148(name_212,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_212,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecParentIdLevel1(true); - protocol.name_151(new name_149(new name_148(name_212,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_212,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMaterialLevel2(false); - protocol.name_151(new name_149(new name_148(A3DMaterial,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DMaterial,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMaterialLevel2(true); - protocol.name_151(new name_149(new name_148(A3DMaterial,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DMaterial,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TrackLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Track,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Track,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TrackLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Track,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Track,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AmbientLightLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AmbientLightLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMapLevel3(false); - protocol.name_151(new name_149(new name_148(A3DMap,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DMap,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMapLevel3(true); - protocol.name_151(new name_149(new name_148(A3DMap,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DMap,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ImageLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Image,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Image,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ImageLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Image,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Image,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DGeometryLevel2(false); - protocol.name_151(new name_149(new name_148(A3DGeometry,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DGeometry,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DGeometryLevel2(true); - protocol.name_151(new name_149(new name_148(A3DGeometry,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DGeometry,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMapLevel1(false); - protocol.name_151(new name_149(new name_148(A3DMap,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DMap,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMapLevel1(true); - protocol.name_151(new name_149(new name_148(A3DMap,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DMap,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointBindTransformLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2JointBindTransformLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2JointBindTransform,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DSurfaceLevel1(false); - protocol.name_151(new name_149(new name_148(A3DSurface,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DSurface,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DSurfaceLevel1(true); - protocol.name_151(new name_149(new name_148(A3DSurface,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DSurface,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SurfaceLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Surface,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Surface,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SurfaceLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Surface,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Surface,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DIndexBufferLevel3(false); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DIndexBufferLevel3(true); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AnimationClipLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AnimationClipLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2AnimationClip,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DIndexBufferLevel2(false); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DIndexBufferLevel2(true); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpotLightLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpotLightLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DVertexBufferLevel2(false); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DVertexBufferLevel2(true); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DVertexBuffer,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMapLevel2(false); - protocol.name_151(new name_149(new name_148(A3DMap,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DMap,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMapLevel2(true); - protocol.name_151(new name_149(new name_148(A3DMap,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DMap,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpotLightLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpotLightLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DecalLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Decal,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Decal,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2DecalLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Decal,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Decal,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DBoxLevel3(false); - protocol.name_151(new name_149(new name_148(A3DBox,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DBox,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DBoxLevel3(true); - protocol.name_151(new name_149(new name_148(A3DBox,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DBox,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ObjectLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Object,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Object,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ObjectLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Object,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Object,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TrackLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Track,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Track,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TrackLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Track,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Track,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2CubeMapLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2CubeMapLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DGeometryLevel3(false); - protocol.name_151(new name_149(new name_148(A3DGeometry,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DGeometry,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DGeometryLevel3(true); - protocol.name_151(new name_149(new name_148(A3DGeometry,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DGeometry,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMatrixLevel1(false); - protocol.name_151(new name_149(new name_148(name_214,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_214,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMatrixLevel1(true); - protocol.name_151(new name_149(new name_148(name_214,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_214,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SkinLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Skin,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Skin,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SkinLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Skin,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Skin,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DImageLevel3(false); - protocol.name_151(new name_149(new name_148(A3DImage,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DImage,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DImageLevel3(true); - protocol.name_151(new name_149(new name_148(A3DImage,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DImage,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2OmniLightLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2OmniLightLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2OmniLight,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpotLightLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpotLightLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2SpotLight,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DImageLevel1(false); - protocol.name_151(new name_149(new name_148(A3DImage,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DImage,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DImageLevel1(true); - protocol.name_151(new name_149(new name_148(A3DImage,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DImage,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DSurfaceLevel2(false); - protocol.name_151(new name_149(new name_148(A3DSurface,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DSurface,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DSurfaceLevel2(true); - protocol.name_151(new name_149(new name_148(A3DSurface,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DSurface,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2KeyframeLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2KeyframeLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2IndexBufferLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2IndexBufferLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2IndexBuffer,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2KeyframeLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2KeyframeLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TransformLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Transform,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Transform,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TransformLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Transform,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Transform,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DLevel2(false); - protocol.name_151(new name_149(new name_148(name_210,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_210,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DLevel2(true); - protocol.name_151(new name_149(new name_148(name_210,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_210,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AmbientLightLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AmbientLightLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexAttributesLevel3(false); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,false),false,3),codec); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexAttributesLevel3(true); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,true),false,3),codec); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpriteLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Sprite,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Sprite,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpriteLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Sprite,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Sprite,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DImageLevel2(false); - protocol.name_151(new name_149(new name_148(A3DImage,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DImage,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DImageLevel2(true); - protocol.name_151(new name_149(new name_148(A3DImage,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DImage,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DIndexBufferLevel1(false); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DIndexBufferLevel1(true); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DIndexBuffer,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexAttributesLevel2(false); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,false),false,2),codec); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexAttributesLevel2(true); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,true),false,2),codec); - protocol.name_151(new name_149(new name_209(A3D2VertexAttributes,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2CubeMapLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2CubeMapLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DLevel3(false); - protocol.name_151(new name_149(new name_148(name_210,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_210,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DLevel3(true); - protocol.name_151(new name_149(new name_148(name_210,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_210,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2BoxLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Box,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Box,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2BoxLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Box,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Box,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2CubeMapLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2CubeMapLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2CubeMap,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SurfaceLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Surface,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Surface,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SurfaceLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Surface,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Surface,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2BoxLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Box,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Box,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2BoxLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Box,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Box,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecParentIdLevel3(false); - protocol.name_151(new name_149(new name_148(name_212,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_212,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecParentIdLevel3(true); - protocol.name_151(new name_149(new name_148(name_212,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_212,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ImageLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Image,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Image,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ImageLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Image,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Image,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TrackLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Track,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Track,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TrackLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Track,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Track,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DObjectLevel2(false); - protocol.name_151(new name_149(new name_148(A3DObject,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DObject,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DObjectLevel2(true); - protocol.name_151(new name_149(new name_148(A3DObject,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3DObject,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MaterialLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Material,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Material,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MaterialLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Material,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Material,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TransformLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Transform,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Transform,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TransformLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Transform,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Transform,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SkinLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Skin,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Skin,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SkinLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Skin,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Skin,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DLevel1(false); - protocol.name_151(new name_149(new name_148(name_210,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_210,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DLevel1(true); - protocol.name_151(new name_149(new name_148(name_210,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_210,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecIdLevel2(false); - protocol.name_151(new name_149(new name_148(name_213,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_213,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecIdLevel2(true); - protocol.name_151(new name_149(new name_148(name_213,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_213,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ObjectLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Object,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Object,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ObjectLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Object,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Object,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ImageLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Image,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Image,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2ImageLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Image,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Image,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMaterialLevel3(false); - protocol.name_151(new name_149(new name_148(A3DMaterial,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DMaterial,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DMaterialLevel3(true); - protocol.name_151(new name_149(new name_148(A3DMaterial,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DMaterial,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpriteLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Sprite,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Sprite,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2SpriteLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Sprite,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Sprite,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MaterialLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Material,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Material,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MaterialLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Material,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Material,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DTransformationLevel3(false); - protocol.name_151(new name_149(new name_148(A3DTransformation,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DTransformation,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DTransformationLevel3(true); - protocol.name_151(new name_149(new name_148(A3DTransformation,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3DTransformation,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2KeyframeLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2KeyframeLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Keyframe,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecIdLevel1(false); - protocol.name_151(new name_149(new name_148(name_213,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_213,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecIdLevel1(true); - protocol.name_151(new name_149(new name_148(name_213,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_213,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TransformLevel3(false); - protocol.name_151(new name_149(new name_148(A3D2Transform,false),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Transform,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2TransformLevel3(true); - protocol.name_151(new name_149(new name_148(A3D2Transform,true),false,3),codec); - protocol.name_151(new name_149(new name_148(A3D2Transform,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2Level3(false); - protocol.name_151(new name_149(new name_148(name_211,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_211,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2Level3(true); - protocol.name_151(new name_149(new name_148(name_211,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_211,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MapLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2Map,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Map,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MapLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2Map,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2Map,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexBufferLevel2(false); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,false),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2VertexBufferLevel2(true); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,true),false,2),codec); - protocol.name_151(new name_149(new name_148(A3D2VertexBuffer,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MaterialLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2Material,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Material,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2MaterialLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2Material,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2Material,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DObjectLevel1(false); - protocol.name_151(new name_149(new name_148(A3DObject,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DObject,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3DObjectLevel1(true); - protocol.name_151(new name_149(new name_148(A3DObject,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3DObject,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2Level1(false); - protocol.name_151(new name_149(new name_148(name_211,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_211,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2Level1(true); - protocol.name_151(new name_149(new name_148(name_211,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_211,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AmbientLightLevel1(false); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,false),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecA3D2AmbientLightLevel1(true); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,true),false,1),codec); - protocol.name_151(new name_149(new name_148(A3D2AmbientLight,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),true,1),new OptionalCodecDecorator(codec)); } public function stop(osgi:OSGi) : void diff --git a/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as b/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as index 0fc02b3..7ced54e 100644 --- a/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as +++ b/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as @@ -1,50 +1,50 @@ package platform.clients.fp10.libraries.alternativaprotocol { - import package_31.class_6; - import package_32.name_148; - import package_32.name_149; - import package_33.name_153; - import package_33.name_154; - import package_33.name_155; - import package_33.name_156; - import package_33.name_157; - import package_33.name_158; - import package_34.name_150; - import package_35.VectorCodecStringLevel1; - import package_35.VectorCodecStringLevel2; - import package_35.VectorCodecStringLevel3; - import package_35.VectorCodecbyteLevel1; - import package_35.VectorCodecbyteLevel2; - import package_35.VectorCodecbyteLevel3; - import package_35.VectorCodecfloatLevel1; - import package_35.VectorCodecfloatLevel2; - import package_35.VectorCodecfloatLevel3; - import package_35.VectorCodecintLevel1; - import package_35.VectorCodecintLevel2; - import package_35.VectorCodecintLevel3; - import package_35.VectorCodeclongLevel1; - import package_35.VectorCodeclongLevel2; - import package_35.VectorCodeclongLevel3; - import package_35.VectorCodecshortLevel1; - import package_35.VectorCodecshortLevel2; - import package_35.VectorCodecshortLevel3; - import package_36.name_152; - import package_36.name_163; - import package_37.VectorCodecintLevel1; - import package_37.VectorCodecintLevel2; - import package_37.VectorCodecintLevel3; - import package_37.VectorCodeclongLevel1; - import package_37.VectorCodeclongLevel2; - import package_37.VectorCodeclongLevel3; - import package_37.VectorCodecshortLevel1; - import package_37.VectorCodecshortLevel2; - import package_37.VectorCodecshortLevel3; - import package_38.name_159; - import package_38.name_162; - import package_39.name_160; + import _codec.VectorCodecStringLevel1; + import _codec.VectorCodecStringLevel2; + import _codec.VectorCodecStringLevel3; + import _codec.VectorCodecbyteLevel1; + import _codec.VectorCodecbyteLevel2; + import _codec.VectorCodecbyteLevel3; + import _codec.VectorCodecfloatLevel1; + import _codec.VectorCodecfloatLevel2; + import _codec.VectorCodecfloatLevel3; + import _codec.VectorCodecintLevel1; + import _codec.VectorCodecintLevel2; + import _codec.VectorCodecintLevel3; + import _codec.VectorCodeclongLevel1; + import _codec.VectorCodeclongLevel2; + import _codec.VectorCodeclongLevel3; + import _codec.VectorCodecshortLevel1; + import _codec.VectorCodecshortLevel2; + import _codec.VectorCodecshortLevel3; + import _codec.unsigned.VectorCodecintLevel1; + import _codec.unsigned.VectorCodecintLevel2; + import _codec.unsigned.VectorCodecintLevel3; + import _codec.unsigned.VectorCodeclongLevel1; + import _codec.unsigned.VectorCodeclongLevel2; + import _codec.unsigned.VectorCodeclongLevel3; + import _codec.unsigned.VectorCodecshortLevel1; + import _codec.unsigned.VectorCodecshortLevel2; + import _codec.unsigned.VectorCodecshortLevel3; import alternativa.osgi.OSGi; + import alternativa.osgi.bundle.IBundleActivator; + import alternativa.osgi.service.clientlog.IClientLog; + import alternativa.protocol.ICodec; + import alternativa.protocol.IProtocol; + import alternativa.protocol.codec.OptionalCodecDecorator; + import alternativa.protocol.impl.PacketHelper; + import alternativa.protocol.impl.Protocol; + import alternativa.protocol.info.CollectionCodecInfo; + import alternativa.protocol.info.TypeCodecInfo; + import alternativa.types.Byte; + import alternativa.types.Float; + import alternativa.types.Long; + import alternativa.types.Short; + import alternativa.types.UByte; + import alternativa.types.UShort; - public class Activator implements class_6 + public class Activator implements IBundleActivator { public static var osgi:OSGi; @@ -55,173 +55,173 @@ package platform.clients.fp10.libraries.alternativaprotocol public function start(_osgi:OSGi) : void { - var codec:name_152 = null; + var codec:ICodec = null; osgi = _osgi; - var protocol:name_163 = name_159.defaultInstance; + var protocol:IProtocol = Protocol.defaultInstance; codec = new VectorCodecbyteLevel1(false); - protocol.name_151(new name_149(new name_148(name_154,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_154,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecbyteLevel1(true); - protocol.name_151(new name_149(new name_148(name_154,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_154,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecbyteLevel2(false); - protocol.name_151(new name_149(new name_148(name_154,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_154,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecbyteLevel2(true); - protocol.name_151(new name_149(new name_148(name_154,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_154,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecbyteLevel3(false); - protocol.name_151(new name_149(new name_148(name_154,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_154,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecbyteLevel3(true); - protocol.name_151(new name_149(new name_148(name_154,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_154,true),true,3),new name_150(codec)); - codec = new package_35.VectorCodecintLevel1(false); - protocol.name_151(new name_149(new name_148(int,false),false,1),codec); - protocol.name_151(new name_149(new name_148(int,false),true,1),new name_150(codec)); - codec = new package_35.VectorCodecintLevel1(true); - protocol.name_151(new name_149(new name_148(int,true),false,1),codec); - protocol.name_151(new name_149(new name_148(int,true),true,1),new name_150(codec)); - codec = new package_35.VectorCodecintLevel2(false); - protocol.name_151(new name_149(new name_148(int,false),false,2),codec); - protocol.name_151(new name_149(new name_148(int,false),true,2),new name_150(codec)); - codec = new package_35.VectorCodecintLevel2(true); - protocol.name_151(new name_149(new name_148(int,true),false,2),codec); - protocol.name_151(new name_149(new name_148(int,true),true,2),new name_150(codec)); - codec = new package_35.VectorCodecintLevel3(false); - protocol.name_151(new name_149(new name_148(int,false),false,3),codec); - protocol.name_151(new name_149(new name_148(int,false),true,3),new name_150(codec)); - codec = new package_35.VectorCodecintLevel3(true); - protocol.name_151(new name_149(new name_148(int,true),false,3),codec); - protocol.name_151(new name_149(new name_148(int,true),true,3),new name_150(codec)); - codec = new package_35.VectorCodecshortLevel1(false); - protocol.name_151(new name_149(new name_148(name_158,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_158,false),true,1),new name_150(codec)); - codec = new package_35.VectorCodecshortLevel1(true); - protocol.name_151(new name_149(new name_148(name_158,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_158,true),true,1),new name_150(codec)); - codec = new package_35.VectorCodecshortLevel2(false); - protocol.name_151(new name_149(new name_148(name_158,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_158,false),true,2),new name_150(codec)); - codec = new package_35.VectorCodecshortLevel2(true); - protocol.name_151(new name_149(new name_148(name_158,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_158,true),true,2),new name_150(codec)); - codec = new package_35.VectorCodecshortLevel3(false); - protocol.name_151(new name_149(new name_148(name_158,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_158,false),true,3),new name_150(codec)); - codec = new package_35.VectorCodecshortLevel3(true); - protocol.name_151(new name_149(new name_148(name_158,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_158,true),true,3),new name_150(codec)); - codec = new package_35.VectorCodeclongLevel1(false); - protocol.name_151(new name_149(new name_148(name_155,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_155,false),true,1),new name_150(codec)); - codec = new package_35.VectorCodeclongLevel1(true); - protocol.name_151(new name_149(new name_148(name_155,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_155,true),true,1),new name_150(codec)); - codec = new package_35.VectorCodeclongLevel2(false); - protocol.name_151(new name_149(new name_148(name_155,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_155,false),true,2),new name_150(codec)); - codec = new package_35.VectorCodeclongLevel2(true); - protocol.name_151(new name_149(new name_148(name_155,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_155,true),true,2),new name_150(codec)); - codec = new package_35.VectorCodeclongLevel3(false); - protocol.name_151(new name_149(new name_148(name_155,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_155,false),true,3),new name_150(codec)); - codec = new package_35.VectorCodeclongLevel3(true); - protocol.name_151(new name_149(new name_148(name_155,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_155,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecintLevel1(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecintLevel1(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecintLevel2(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecintLevel2(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecintLevel3(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecintLevel3(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecshortLevel1(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecshortLevel1(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecshortLevel2(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecshortLevel2(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecshortLevel3(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodecshortLevel3(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodeclongLevel1(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodeclongLevel1(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodeclongLevel2(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodeclongLevel2(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodeclongLevel3(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.VectorCodeclongLevel3(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecfloatLevel1(false); - protocol.name_151(new name_149(new name_148(name_157,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_157,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecfloatLevel1(true); - protocol.name_151(new name_149(new name_148(name_157,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_157,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecfloatLevel2(false); - protocol.name_151(new name_149(new name_148(name_157,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_157,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecfloatLevel2(true); - protocol.name_151(new name_149(new name_148(name_157,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_157,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecfloatLevel3(false); - protocol.name_151(new name_149(new name_148(name_157,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_157,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecfloatLevel3(true); - protocol.name_151(new name_149(new name_148(name_157,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_157,true),true,3),new name_150(codec)); - codec = new package_37.VectorCodecintLevel1(false); - protocol.name_151(new name_149(new name_148(name_156,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_156,false),true,1),new name_150(codec)); - codec = new package_37.VectorCodecintLevel1(true); - protocol.name_151(new name_149(new name_148(name_156,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_156,true),true,1),new name_150(codec)); - codec = new package_37.VectorCodecintLevel2(false); - protocol.name_151(new name_149(new name_148(name_156,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_156,false),true,2),new name_150(codec)); - codec = new package_37.VectorCodecintLevel2(true); - protocol.name_151(new name_149(new name_148(name_156,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_156,true),true,2),new name_150(codec)); - codec = new package_37.VectorCodecintLevel3(false); - protocol.name_151(new name_149(new name_148(name_156,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_156,false),true,3),new name_150(codec)); - codec = new package_37.VectorCodecintLevel3(true); - protocol.name_151(new name_149(new name_148(name_156,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_156,true),true,3),new name_150(codec)); - codec = new package_37.VectorCodecshortLevel1(false); - protocol.name_151(new name_149(new name_148(name_153,false),false,1),codec); - protocol.name_151(new name_149(new name_148(name_153,false),true,1),new name_150(codec)); - codec = new package_37.VectorCodecshortLevel1(true); - protocol.name_151(new name_149(new name_148(name_153,true),false,1),codec); - protocol.name_151(new name_149(new name_148(name_153,true),true,1),new name_150(codec)); - codec = new package_37.VectorCodecshortLevel2(false); - protocol.name_151(new name_149(new name_148(name_153,false),false,2),codec); - protocol.name_151(new name_149(new name_148(name_153,false),true,2),new name_150(codec)); - codec = new package_37.VectorCodecshortLevel2(true); - protocol.name_151(new name_149(new name_148(name_153,true),false,2),codec); - protocol.name_151(new name_149(new name_148(name_153,true),true,2),new name_150(codec)); - codec = new package_37.VectorCodecshortLevel3(false); - protocol.name_151(new name_149(new name_148(name_153,false),false,3),codec); - protocol.name_151(new name_149(new name_148(name_153,false),true,3),new name_150(codec)); - codec = new package_37.VectorCodecshortLevel3(true); - protocol.name_151(new name_149(new name_148(name_153,true),false,3),codec); - protocol.name_151(new name_149(new name_148(name_153,true),true,3),new name_150(codec)); - codec = new package_37.VectorCodeclongLevel1(false); - protocol.name_151(new name_149(new name_148(uint,false),false,1),codec); - protocol.name_151(new name_149(new name_148(uint,false),true,1),new name_150(codec)); - codec = new package_37.VectorCodeclongLevel1(true); - protocol.name_151(new name_149(new name_148(uint,true),false,1),codec); - protocol.name_151(new name_149(new name_148(uint,true),true,1),new name_150(codec)); - codec = new package_37.VectorCodeclongLevel2(false); - protocol.name_151(new name_149(new name_148(uint,false),false,2),codec); - protocol.name_151(new name_149(new name_148(uint,false),true,2),new name_150(codec)); - codec = new package_37.VectorCodeclongLevel2(true); - protocol.name_151(new name_149(new name_148(uint,true),false,2),codec); - protocol.name_151(new name_149(new name_148(uint,true),true,2),new name_150(codec)); - codec = new package_37.VectorCodeclongLevel3(false); - protocol.name_151(new name_149(new name_148(uint,false),false,3),codec); - protocol.name_151(new name_149(new name_148(uint,false),true,3),new name_150(codec)); - codec = new package_37.VectorCodeclongLevel3(true); - protocol.name_151(new name_149(new name_148(uint,true),false,3),codec); - protocol.name_151(new name_149(new name_148(uint,true),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecintLevel1(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecintLevel1(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecintLevel2(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecintLevel2(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecintLevel3(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecintLevel3(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecshortLevel1(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecshortLevel1(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecshortLevel2(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecshortLevel2(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecshortLevel3(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodecshortLevel3(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodeclongLevel1(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodeclongLevel1(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),true,1),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodeclongLevel2(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodeclongLevel2(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),true,2),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodeclongLevel3(false); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),true,3),new OptionalCodecDecorator(codec)); + codec = new _codec.unsigned.VectorCodeclongLevel3(true); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecStringLevel1(false); - protocol.name_151(new name_149(new name_148(String,false),false,1),codec); - protocol.name_151(new name_149(new name_148(String,false),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecStringLevel1(true); - protocol.name_151(new name_149(new name_148(String,true),false,1),codec); - protocol.name_151(new name_149(new name_148(String,true),true,1),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),false,1),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),true,1),new OptionalCodecDecorator(codec)); codec = new VectorCodecStringLevel2(false); - protocol.name_151(new name_149(new name_148(String,false),false,2),codec); - protocol.name_151(new name_149(new name_148(String,false),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecStringLevel2(true); - protocol.name_151(new name_149(new name_148(String,true),false,2),codec); - protocol.name_151(new name_149(new name_148(String,true),true,2),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),false,2),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),true,2),new OptionalCodecDecorator(codec)); codec = new VectorCodecStringLevel3(false); - protocol.name_151(new name_149(new name_148(String,false),false,3),codec); - protocol.name_151(new name_149(new name_148(String,false),true,3),new name_150(codec)); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),true,3),new OptionalCodecDecorator(codec)); codec = new VectorCodecStringLevel3(true); - protocol.name_151(new name_149(new name_148(String,true),false,3),codec); - protocol.name_151(new name_149(new name_148(String,true),true,3),new name_150(codec)); - osgi.name_161(name_160,name_159,"clientLog"); - osgi.name_161(name_160,name_162,"clientLog"); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),false,3),codec); + protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),true,3),new OptionalCodecDecorator(codec)); + osgi.injectService(IClientLog,Protocol,"clientLog"); + osgi.injectService(IClientLog,PacketHelper,"clientLog"); } public function stop(osgi:OSGi) : void diff --git a/src/tankshudDemo/TanksHudDemo.as b/src/tankshudDemo/TanksHudDemo.as new file mode 100644 index 0000000..c2466ae --- /dev/null +++ b/src/tankshudDemo/TanksHudDemo.as @@ -0,0 +1,204 @@ +package tankshudDemo +{ + import flash.display.Bitmap; + import flash.display.Sprite; + import flash.events.Event; + import flash.events.MouseEvent; + + public class TanksHudDemo extends Sprite + { + private static const topLeftIconClass:Class = TanksHudDemo_topLeftIconClass; + + private static const topRightIconClass:Class = TanksHudDemo_topRightIconClass; + + private static const bottomLeftIconClass:Class = TanksHudDemo_bottomLeftIconClass; + + private static const fullScreenState1Class:Class = TanksHudDemo_fullScreenState1Class; + + private static const fullScreenState2Class:Class = TanksHudDemo_fullScreenState2Class; + + private static const nextTankState1Class:Class = TanksHudDemo_nextTankState1Class; + + private static const nextTankState2Class:Class = TanksHudDemo_nextTankState2Class; + + private static const GAP_RIGHT:int = 7; + + private static const GAP_BOTTOM:int = 7; + + private static const GAP_BEEWEN_BUTTON:int = 1; + + private var §_-d0§:Bitmap; + + private var §_-7U§:Bitmap; + + private var §_-4m§:Bitmap; + + private var fullScreenButtonState1:Bitmap; + + private var fullScreenButtonState2:Bitmap; + + private var nextTankButtonState1:Bitmap; + + private var nextTankButtonState2:Bitmap; + + private var §_-at§:Sprite; + + private var §_-I5§:Sprite; + + private var §_-kn§:Boolean; + + public function TanksHudDemo() + { + super(); + this.init(); + } + + private function init(param1:Event = null) : void + { + tabEnabled = false; + tabChildren = false; + mouseEnabled = false; + this.§_-d0§ = new topLeftIconClass(); + addChild(this.§_-d0§); + this.§_-7U§ = new topRightIconClass(); + addChild(this.§_-7U§); + this.§_-4m§ = new bottomLeftIconClass(); + addChild(this.§_-4m§); + this.§_-at§ = new Sprite(); + this.§_-at§.mouseChildren = false; + addChild(this.§_-at§); + this.fullScreenButtonState1 = new fullScreenState1Class(); + this.§_-at§.addChild(this.fullScreenButtonState1); + this.fullScreenButtonState2 = new fullScreenState2Class(); + this.§_-at§.addChild(this.fullScreenButtonState2); + this.§_-at§.addEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); + this.§_-at§.addEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); + this.§_-at§.addEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); + this.isFullScreen = false; + this.§_-I5§ = new Sprite(); + this.§_-I5§.mouseChildren = false; + addChild(this.§_-I5§); + this.nextTankButtonState1 = new nextTankState1Class(); + this.§_-I5§.addChild(this.nextTankButtonState1); + this.nextTankButtonState2 = new nextTankState2Class(); + this.§_-I5§.addChild(this.nextTankButtonState2); + this.nextTankButtonState2.visible = false; + this.§_-I5§.addEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); + this.§_-I5§.addEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); + this.§_-I5§.addEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); + } + + public function destroy() : void + { + if(this.§_-d0§ != null) + { + removeChild(this.§_-d0§); + } + if(this.§_-7U§ != null) + { + removeChild(this.§_-7U§); + } + if(this.§_-4m§ != null) + { + removeChild(this.§_-4m§); + } + if(this.§_-at§ != null) + { + this.§_-at§.removeEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); + this.§_-at§.removeEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); + this.§_-at§.removeEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); + removeChild(this.§_-at§); + } + if(this.§_-I5§ != null) + { + this.§_-I5§.removeEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); + this.§_-I5§.removeEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); + this.§_-I5§.removeEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); + removeChild(this.§_-I5§); + } + this.§_-d0§ = null; + this.§_-7U§ = null; + this.§_-4m§ = null; + this.§_-at§ = null; + this.§_-I5§ = null; + } + + public function resize(param1:Number, param2:Number) : void + { + if(this.§_-7U§ != null) + { + this.§_-7U§.x = param1 - this.§_-7U§.width; + } + if(this.§_-4m§ != null) + { + this.§_-4m§.y = param2 - this.§_-4m§.height; + } + if(this.§_-at§ != null) + { + this.§_-at§.x = param1 - this.§_-at§.width - GAP_RIGHT; + this.§_-at§.y = param2 - this.§_-at§.height - GAP_BOTTOM; + } + if(this.§_-I5§ != null) + { + this.§_-I5§.x = param1 - this.§_-at§.width - this.§_-I5§.width - GAP_BEEWEN_BUTTON - GAP_RIGHT; + this.§_-I5§.y = param2 - this.§_-I5§.height - GAP_BOTTOM; + } + } + + public function get isFullScreen() : Boolean + { + return this.§_-kn§; + } + + public function set isFullScreen(param1:Boolean) : void + { + this.§_-kn§ = param1; + if(this.§_-kn§ == false) + { + this.fullScreenButtonState2.visible = false; + } + else + { + this.fullScreenButtonState2.visible = true; + } + } + + private function onOverFullScreenBtn(param1:MouseEvent) : void + { + if(this.§_-kn§ == false) + { + this.fullScreenButtonState2.visible = true; + } + } + + private function onOutFullScreenBtn(param1:MouseEvent) : void + { + if(this.§_-kn§ == false) + { + this.fullScreenButtonState2.visible = false; + } + } + + private function onClickFullScreenBtn(param1:MouseEvent) : void + { + this.isFullScreen = !this.§_-kn§; + dispatchEvent(new Event("CLICK_FULL_SCREEN_BUTTON")); + } + + private function onOverNextTankBtn(param1:MouseEvent) : void + { + this.nextTankButtonState2.visible = true; + } + + private function onOutNextTankBtn(param1:MouseEvent) : void + { + this.nextTankButtonState2.visible = false; + } + + private function onClickNextTankBtn(param1:MouseEvent) : void + { + dispatchEvent(new Event("CLICK_NEXT_TANK_BUTTON")); + } + } +} + diff --git a/src/tankshudDemo/TanksHudDemo_bottomLeftIconClass.as b/src/tankshudDemo/TanksHudDemo_bottomLeftIconClass.as new file mode 100644 index 0000000..ae90f2d --- /dev/null +++ b/src/tankshudDemo/TanksHudDemo_bottomLeftIconClass.as @@ -0,0 +1,14 @@ +package tankshudDemo +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + public class TanksHudDemo_bottomLeftIconClass extends BitmapAsset + { + public function TanksHudDemo_bottomLeftIconClass() + { + super(); + } + } +} + diff --git a/src/package_12/TanksHudDemo_fullScreenState1Class.as b/src/tankshudDemo/TanksHudDemo_fullScreenState1Class.as similarity index 66% rename from src/package_12/TanksHudDemo_fullScreenState1Class.as rename to src/tankshudDemo/TanksHudDemo_fullScreenState1Class.as index 557699a..ef051f4 100644 --- a/src/package_12/TanksHudDemo_fullScreenState1Class.as +++ b/src/tankshudDemo/TanksHudDemo_fullScreenState1Class.as @@ -1,9 +1,8 @@ -package package_12 +package tankshudDemo { import mx.core.BitmapAsset; [ExcludeClass] - [Embed(source="/_assets/21_package_12.TanksHudDemo_fullScreenState1Class.png")] public class TanksHudDemo_fullScreenState1Class extends BitmapAsset { public function TanksHudDemo_fullScreenState1Class() diff --git a/src/package_12/TanksHudDemo_fullScreenState2Class.as b/src/tankshudDemo/TanksHudDemo_fullScreenState2Class.as similarity index 66% rename from src/package_12/TanksHudDemo_fullScreenState2Class.as rename to src/tankshudDemo/TanksHudDemo_fullScreenState2Class.as index 30f9b29..97eecda 100644 --- a/src/package_12/TanksHudDemo_fullScreenState2Class.as +++ b/src/tankshudDemo/TanksHudDemo_fullScreenState2Class.as @@ -1,9 +1,8 @@ -package package_12 +package tankshudDemo { import mx.core.BitmapAsset; [ExcludeClass] - [Embed(source="/_assets/18_package_12.TanksHudDemo_fullScreenState2Class.png")] public class TanksHudDemo_fullScreenState2Class extends BitmapAsset { public function TanksHudDemo_fullScreenState2Class() diff --git a/src/package_12/TanksHudDemo_nextTankState1Class.as b/src/tankshudDemo/TanksHudDemo_nextTankState1Class.as similarity index 66% rename from src/package_12/TanksHudDemo_nextTankState1Class.as rename to src/tankshudDemo/TanksHudDemo_nextTankState1Class.as index c4748c1..f5a6dae 100644 --- a/src/package_12/TanksHudDemo_nextTankState1Class.as +++ b/src/tankshudDemo/TanksHudDemo_nextTankState1Class.as @@ -1,9 +1,8 @@ -package package_12 +package tankshudDemo { import mx.core.BitmapAsset; [ExcludeClass] - [Embed(source="/_assets/17_package_12.TanksHudDemo_nextTankState1Class.png")] public class TanksHudDemo_nextTankState1Class extends BitmapAsset { public function TanksHudDemo_nextTankState1Class() diff --git a/src/package_12/TanksHudDemo_nextTankState2Class.as b/src/tankshudDemo/TanksHudDemo_nextTankState2Class.as similarity index 66% rename from src/package_12/TanksHudDemo_nextTankState2Class.as rename to src/tankshudDemo/TanksHudDemo_nextTankState2Class.as index 3dc9892..7c7716c 100644 --- a/src/package_12/TanksHudDemo_nextTankState2Class.as +++ b/src/tankshudDemo/TanksHudDemo_nextTankState2Class.as @@ -1,9 +1,8 @@ -package package_12 +package tankshudDemo { import mx.core.BitmapAsset; [ExcludeClass] - [Embed(source="/_assets/20_package_12.TanksHudDemo_nextTankState2Class.png")] public class TanksHudDemo_nextTankState2Class extends BitmapAsset { public function TanksHudDemo_nextTankState2Class() diff --git a/src/tankshudDemo/TanksHudDemo_topLeftIconClass.as b/src/tankshudDemo/TanksHudDemo_topLeftIconClass.as new file mode 100644 index 0000000..3b0178c --- /dev/null +++ b/src/tankshudDemo/TanksHudDemo_topLeftIconClass.as @@ -0,0 +1,14 @@ +package tankshudDemo +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + public class TanksHudDemo_topLeftIconClass extends BitmapAsset + { + public function TanksHudDemo_topLeftIconClass() + { + super(); + } + } +} + diff --git a/src/tankshudDemo/TanksHudDemo_topRightIconClass.as b/src/tankshudDemo/TanksHudDemo_topRightIconClass.as new file mode 100644 index 0000000..555a257 --- /dev/null +++ b/src/tankshudDemo/TanksHudDemo_topRightIconClass.as @@ -0,0 +1,14 @@ +package tankshudDemo +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + public class TanksHudDemo_topRightIconClass extends BitmapAsset + { + public function TanksHudDemo_topRightIconClass() + { + super(); + } + } +} + diff --git a/src/package_65/name_210.as b/src/versions/version1/a3d/A3D.as similarity index 51% rename from src/package_65/name_210.as rename to src/versions/version1/a3d/A3D.as index 244b58c..d039efe 100644 --- a/src/package_65/name_210.as +++ b/src/versions/version1/a3d/A3D.as @@ -1,95 +1,95 @@ -package package_65 +package versions.version1.a3d { - import package_50.A3DBox; - import package_50.A3DObject; - import package_53.A3DImage; - import package_53.A3DMap; - import package_53.A3DMaterial; - import package_54.A3DGeometry; + import versions.version1.a3d.geometry.A3DGeometry; + import versions.version1.a3d.materials.A3DImage; + import versions.version1.a3d.materials.A3DMap; + import versions.version1.a3d.materials.A3DMaterial; + import versions.version1.a3d.objects.A3DBox; + import versions.version1.a3d.objects.A3DObject; - public class name_210 + public class A3D { - private var var_349:Vector.; + private var §_-0§:Vector.; - private var name_447:Vector.; + private var OptionalMap:Vector.; - private var var_348:Vector.; + private var §_-ce§:Vector.; - private var var_347:Vector.; + private var §_-XJ§:Vector.; - private var var_350:Vector.; + private var §_-22§:Vector.; - private var var_346:Vector.; + private var §_-Kq§:Vector.; - public function name_210(boxes:Vector., geometries:Vector., images:Vector., maps:Vector., materials:Vector., objects:Vector.) + public function A3D(boxes:Vector., geometries:Vector., images:Vector., maps:Vector., materials:Vector., objects:Vector.) { super(); - this.var_349 = boxes; - this.name_447 = geometries; - this.var_348 = images; - this.var_347 = maps; - this.var_350 = materials; - this.var_346 = objects; + this.§_-0§ = boxes; + this.OptionalMap = geometries; + this.§_-ce§ = images; + this.§_-XJ§ = maps; + this.§_-22§ = materials; + this.§_-Kq§ = objects; } public function get boxes() : Vector. { - return this.var_349; + return this.§_-0§; } public function set boxes(value:Vector.) : void { - this.var_349 = value; + this.§_-0§ = value; } public function get geometries() : Vector. { - return this.name_447; + return this.OptionalMap; } public function set geometries(value:Vector.) : void { - this.name_447 = value; + this.OptionalMap = value; } public function get images() : Vector. { - return this.var_348; + return this.§_-ce§; } public function set images(value:Vector.) : void { - this.var_348 = value; + this.§_-ce§ = value; } public function get maps() : Vector. { - return this.var_347; + return this.§_-XJ§; } public function set maps(value:Vector.) : void { - this.var_347 = value; + this.§_-XJ§ = value; } public function get materials() : Vector. { - return this.var_350; + return this.§_-22§; } public function set materials(value:Vector.) : void { - this.var_350 = value; + this.§_-22§ = value; } public function get objects() : Vector. { - return this.var_346; + return this.§_-Kq§; } public function set objects(value:Vector.) : void { - this.var_346 = value; + this.§_-Kq§ = value; } public function toString() : String diff --git a/src/package_54/A3DGeometry.as b/src/versions/version1/a3d/geometry/A3DGeometry.as similarity index 52% rename from src/package_54/A3DGeometry.as rename to src/versions/version1/a3d/geometry/A3DGeometry.as index 675df83..7ce906b 100644 --- a/src/package_54/A3DGeometry.as +++ b/src/versions/version1/a3d/geometry/A3DGeometry.as @@ -1,51 +1,51 @@ -package package_54 +package versions.version1.a3d.geometry { - import package_57.name_213; + import commons.Id; public class A3DGeometry { - private var var_101:name_213; + private var §_-3I§:Id; - private var name_132:A3DIndexBuffer; + private var §_-EM§:A3DIndexBuffer; - private var var_277:Vector.; + private var §_-0B§:Vector.; - public function A3DGeometry(id:name_213, indexBuffer:A3DIndexBuffer, vertexBuffers:Vector.) + public function A3DGeometry(id:Id, indexBuffer:A3DIndexBuffer, vertexBuffers:Vector.) { super(); - this.var_101 = id; - this.name_132 = indexBuffer; - this.var_277 = vertexBuffers; + this.§_-3I§ = id; + this.§_-EM§ = indexBuffer; + this.§_-0B§ = vertexBuffers; } - public function get id() : name_213 + public function get id() : Id { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_213) : void + public function set id(value:Id) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get indexBuffer() : A3DIndexBuffer { - return this.name_132; + return this.§_-EM§; } public function set indexBuffer(value:A3DIndexBuffer) : void { - this.name_132 = value; + this.§_-EM§ = value; } public function get vertexBuffers() : Vector. { - return this.var_277; + return this.§_-0B§; } public function set vertexBuffers(value:Vector.) : void { - this.var_277 = value; + this.§_-0B§ = value; } public function toString() : String diff --git a/src/package_54/A3DIndexBuffer.as b/src/versions/version1/a3d/geometry/A3DIndexBuffer.as similarity index 68% rename from src/package_54/A3DIndexBuffer.as rename to src/versions/version1/a3d/geometry/A3DIndexBuffer.as index 4dff9da..3a04530 100644 --- a/src/package_54/A3DIndexBuffer.as +++ b/src/versions/version1/a3d/geometry/A3DIndexBuffer.as @@ -1,38 +1,38 @@ -package package_54 +package versions.version1.a3d.geometry { import flash.utils.ByteArray; public class A3DIndexBuffer { - private var var_271:ByteArray; + private var §_-79§:ByteArray; - private var var_379:int; + private var §_-m0§:int; public function A3DIndexBuffer(byteBuffer:ByteArray, indexCount:int) { super(); - this.var_271 = byteBuffer; - this.var_379 = indexCount; + this.§_-79§ = byteBuffer; + this.§_-m0§ = indexCount; } public function get byteBuffer() : ByteArray { - return this.var_271; + return this.§_-79§; } public function set byteBuffer(value:ByteArray) : void { - this.var_271 = value; + this.§_-79§ = value; } public function get indexCount() : int { - return this.var_379; + return this.§_-m0§; } public function set indexCount(value:int) : void { - this.var_379 = value; + this.§_-m0§ = value; } public function toString() : String diff --git a/src/package_54/A3DVertexBuffer.as b/src/versions/version1/a3d/geometry/A3DVertexBuffer.as similarity index 66% rename from src/package_54/A3DVertexBuffer.as rename to src/versions/version1/a3d/geometry/A3DVertexBuffer.as index 5906293..3a99c33 100644 --- a/src/package_54/A3DVertexBuffer.as +++ b/src/versions/version1/a3d/geometry/A3DVertexBuffer.as @@ -1,51 +1,51 @@ -package package_54 +package versions.version1.a3d.geometry { import flash.utils.ByteArray; public class A3DVertexBuffer { - private var var_273:Vector.; + private var §_-96§:Vector.; - private var var_271:ByteArray; + private var §_-79§:ByteArray; - private var var_272:uint; + private var §_-g1§:uint; public function A3DVertexBuffer(attributes:Vector., byteBuffer:ByteArray, vertexCount:uint) { super(); - this.var_273 = attributes; - this.var_271 = byteBuffer; - this.var_272 = vertexCount; + this.§_-96§ = attributes; + this.§_-79§ = byteBuffer; + this.§_-g1§ = vertexCount; } public function get attributes() : Vector. { - return this.var_273; + return this.§_-96§; } public function set attributes(value:Vector.) : void { - this.var_273 = value; + this.§_-96§ = value; } public function get byteBuffer() : ByteArray { - return this.var_271; + return this.§_-79§; } public function set byteBuffer(value:ByteArray) : void { - this.var_271 = value; + this.§_-79§ = value; } public function get vertexCount() : uint { - return this.var_272; + return this.§_-g1§; } public function set vertexCount(value:uint) : void { - this.var_272 = value; + this.§_-g1§ = value; } public function toString() : String diff --git a/src/package_64/name_212.as b/src/versions/version1/a3d/id/ParentId.as similarity index 59% rename from src/package_64/name_212.as rename to src/versions/version1/a3d/id/ParentId.as index 3d3950f..7920fa0 100644 --- a/src/package_64/name_212.as +++ b/src/versions/version1/a3d/id/ParentId.as @@ -1,23 +1,23 @@ -package package_64 +package versions.version1.a3d.id { - public class name_212 + public class ParentId { - private var var_101:uint; + private var §_-3I§:uint; - public function name_212(id:uint) + public function ParentId(id:uint) { super(); - this.var_101 = id; + this.§_-3I§ = id; } public function get id() : uint { - return this.var_101; + return this.§_-3I§; } public function set id(value:uint) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function toString() : String diff --git a/src/package_53/A3DImage.as b/src/versions/version1/a3d/materials/A3DImage.as similarity index 50% rename from src/package_53/A3DImage.as rename to src/versions/version1/a3d/materials/A3DImage.as index 294516b..73c681c 100644 --- a/src/package_53/A3DImage.as +++ b/src/versions/version1/a3d/materials/A3DImage.as @@ -1,38 +1,38 @@ -package package_53 +package versions.version1.a3d.materials { - import package_57.name_213; + import commons.Id; public class A3DImage { - private var var_101:name_213; + private var §_-3I§:Id; - private var var_274:String; + private var §_-6D§:String; - public function A3DImage(id:name_213, url:String) + public function A3DImage(id:Id, url:String) { super(); - this.var_101 = id; - this.var_274 = url; + this.§_-3I§ = id; + this.§_-6D§ = url; } - public function get id() : name_213 + public function get id() : Id { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_213) : void + public function set id(value:Id) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get url() : String { - return this.var_274; + return this.§_-6D§; } public function set url(value:String) : void { - this.var_274 = value; + this.§_-6D§ = value; } public function toString() : String diff --git a/src/package_53/A3DMap.as b/src/versions/version1/a3d/materials/A3DMap.as similarity index 50% rename from src/package_53/A3DMap.as rename to src/versions/version1/a3d/materials/A3DMap.as index e5db572..6146780 100644 --- a/src/package_53/A3DMap.as +++ b/src/versions/version1/a3d/materials/A3DMap.as @@ -1,103 +1,103 @@ -package package_53 +package versions.version1.a3d.materials { - import package_57.name_213; + import commons.Id; public class A3DMap { - private var var_338:uint; + private var §_-9y§:uint; - private var var_101:name_213; + private var §_-3I§:Id; - private var var_337:name_213; + private var §_-JE§:Id; - private var var_414:Number; + private var §_-0U§:Number; - private var var_413:Number; + private var §_-5k§:Number; - private var var_415:Number; + private var §_-JZ§:Number; - private var var_416:Number; + private var §_-XP§:Number; - public function A3DMap(channel:uint, id:name_213, imageId:name_213, uOffset:Number, uScale:Number, vOffset:Number, vScale:Number) + public function A3DMap(channel:uint, id:Id, imageId:Id, uOffset:Number, uScale:Number, vOffset:Number, vScale:Number) { super(); - this.var_338 = channel; - this.var_101 = id; - this.var_337 = imageId; - this.var_414 = uOffset; - this.var_413 = uScale; - this.var_415 = vOffset; - this.var_416 = vScale; + this.§_-9y§ = channel; + this.§_-3I§ = id; + this.§_-JE§ = imageId; + this.§_-0U§ = uOffset; + this.§_-5k§ = uScale; + this.§_-JZ§ = vOffset; + this.§_-XP§ = vScale; } public function get channel() : uint { - return this.var_338; + return this.§_-9y§; } public function set channel(value:uint) : void { - this.var_338 = value; + this.§_-9y§ = value; } - public function get id() : name_213 + public function get id() : Id { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_213) : void + public function set id(value:Id) : void { - this.var_101 = value; + this.§_-3I§ = value; } - public function get imageId() : name_213 + public function get imageId() : Id { - return this.var_337; + return this.§_-JE§; } - public function set imageId(value:name_213) : void + public function set imageId(value:Id) : void { - this.var_337 = value; + this.§_-JE§ = value; } public function get uOffset() : Number { - return this.var_414; + return this.§_-0U§; } public function set uOffset(value:Number) : void { - this.var_414 = value; + this.§_-0U§ = value; } public function get uScale() : Number { - return this.var_413; + return this.§_-5k§; } public function set uScale(value:Number) : void { - this.var_413 = value; + this.§_-5k§ = value; } public function get vOffset() : Number { - return this.var_415; + return this.§_-JZ§; } public function set vOffset(value:Number) : void { - this.var_415 = value; + this.§_-JZ§ = value; } public function get vScale() : Number { - return this.var_416; + return this.§_-XP§; } public function set vScale(value:Number) : void { - this.var_416 = value; + this.§_-XP§ = value; } public function toString() : String diff --git a/src/versions/version1/a3d/materials/A3DMaterial.as b/src/versions/version1/a3d/materials/A3DMaterial.as new file mode 100644 index 0000000..45c1dd4 --- /dev/null +++ b/src/versions/version1/a3d/materials/A3DMaterial.as @@ -0,0 +1,117 @@ +package versions.version1.a3d.materials +{ + import commons.Id; + + public class A3DMaterial + { + private var §_-9s§:Id; + + private var §_-bl§:Id; + + private var §_-3I§:Id; + + private var §_-qf§:Id; + + private var §_-QR§:Id; + + private var §_-Jn§:Id; + + private var §_-LA§:Id; + + public function A3DMaterial(diffuseMapId:Id, glossinessMapId:Id, id:Id, lightMapId:Id, normalMapId:Id, opacityMapId:Id, specularMapId:Id) + { + super(); + this.§_-9s§ = diffuseMapId; + this.§_-bl§ = glossinessMapId; + this.§_-3I§ = id; + this.§_-qf§ = lightMapId; + this.§_-QR§ = normalMapId; + this.§_-Jn§ = opacityMapId; + this.§_-LA§ = specularMapId; + } + + public function get diffuseMapId() : Id + { + return this.§_-9s§; + } + + public function set diffuseMapId(value:Id) : void + { + this.§_-9s§ = value; + } + + public function get glossinessMapId() : Id + { + return this.§_-bl§; + } + + public function set glossinessMapId(value:Id) : void + { + this.§_-bl§ = value; + } + + public function get id() : Id + { + return this.§_-3I§; + } + + public function set id(value:Id) : void + { + this.§_-3I§ = value; + } + + public function get lightMapId() : Id + { + return this.§_-qf§; + } + + public function set lightMapId(value:Id) : void + { + this.§_-qf§ = value; + } + + public function get normalMapId() : Id + { + return this.§_-QR§; + } + + public function set normalMapId(value:Id) : void + { + this.§_-QR§ = value; + } + + public function get opacityMapId() : Id + { + return this.§_-Jn§; + } + + public function set opacityMapId(value:Id) : void + { + this.§_-Jn§ = value; + } + + public function get specularMapId() : Id + { + return this.§_-LA§; + } + + public function set specularMapId(value:Id) : void + { + this.§_-LA§ = value; + } + + public function toString() : String + { + var result:String = "A3DMaterial ["; + result += "diffuseMapId = " + this.diffuseMapId + " "; + result += "glossinessMapId = " + this.glossinessMapId + " "; + result += "id = " + this.id + " "; + result += "lightMapId = " + this.lightMapId + " "; + result += "normalMapId = " + this.normalMapId + " "; + result += "opacityMapId = " + this.opacityMapId + " "; + result += "specularMapId = " + this.specularMapId + " "; + return result + "]"; + } + } +} + diff --git a/src/package_50/A3DBox.as b/src/versions/version1/a3d/objects/A3DBox.as similarity index 50% rename from src/package_50/A3DBox.as rename to src/versions/version1/a3d/objects/A3DBox.as index 56a3196..469dc30 100644 --- a/src/package_50/A3DBox.as +++ b/src/versions/version1/a3d/objects/A3DBox.as @@ -1,38 +1,38 @@ -package package_50 +package versions.version1.a3d.objects { - import package_57.name_213; + import commons.Id; public class A3DBox { - private var var_290:Vector.; + private var §_-Ge§:Vector.; - private var var_101:name_213; + private var §_-3I§:Id; - public function A3DBox(box:Vector., id:name_213) + public function A3DBox(box:Vector., id:Id) { super(); - this.var_290 = box; - this.var_101 = id; + this.§_-Ge§ = box; + this.§_-3I§ = id; } public function get box() : Vector. { - return this.var_290; + return this.§_-Ge§; } public function set box(value:Vector.) : void { - this.var_290 = value; + this.§_-Ge§ = value; } - public function get id() : name_213 + public function get id() : Id { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_213) : void + public function set id(value:Id) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function toString() : String diff --git a/src/versions/version1/a3d/objects/A3DObject.as b/src/versions/version1/a3d/objects/A3DObject.as new file mode 100644 index 0000000..35dbddc --- /dev/null +++ b/src/versions/version1/a3d/objects/A3DObject.as @@ -0,0 +1,132 @@ +package versions.version1.a3d.objects +{ + import commons.Id; + import versions.version1.a3d.id.ParentId; + + public class A3DObject + { + private var §_-jD§:Id; + + private var §_-16§:Id; + + private var §_-3I§:Id; + + private var _name:String; + + private var §_-fP§:ParentId; + + private var §_-eW§:Vector.; + + private var §_-UJ§:A3DTransformation; + + private var §_-1u§:Boolean; + + public function A3DObject(boundBoxId:Id, geometryId:Id, id:Id, name:String, parentId:ParentId, surfaces:Vector., transformation:A3DTransformation, visible:Boolean) + { + super(); + this.§_-jD§ = boundBoxId; + this.§_-16§ = geometryId; + this.§_-3I§ = id; + this._name = name; + this.§_-fP§ = parentId; + this.§_-eW§ = surfaces; + this.§_-UJ§ = transformation; + this.§_-1u§ = visible; + } + + public function get boundBoxId() : Id + { + return this.§_-jD§; + } + + public function set boundBoxId(value:Id) : void + { + this.§_-jD§ = value; + } + + public function get geometryId() : Id + { + return this.§_-16§; + } + + public function set geometryId(value:Id) : void + { + this.§_-16§ = value; + } + + public function get id() : Id + { + return this.§_-3I§; + } + + public function set id(value:Id) : void + { + this.§_-3I§ = value; + } + + public function get name() : String + { + return this._name; + } + + public function set name(value:String) : void + { + this._name = value; + } + + public function get parentId() : ParentId + { + return this.§_-fP§; + } + + public function set parentId(value:ParentId) : void + { + this.§_-fP§ = value; + } + + public function get surfaces() : Vector. + { + return this.§_-eW§; + } + + public function set surfaces(value:Vector.) : void + { + this.§_-eW§ = value; + } + + public function get transformation() : A3DTransformation + { + return this.§_-UJ§; + } + + public function set transformation(value:A3DTransformation) : void + { + this.§_-UJ§ = value; + } + + public function get visible() : Boolean + { + return this.§_-1u§; + } + + public function set visible(value:Boolean) : void + { + this.§_-1u§ = value; + } + + public function toString() : String + { + var result:String = "A3DObject ["; + result += "boundBoxId = " + this.boundBoxId + " "; + result += "geometryId = " + this.geometryId + " "; + result += "id = " + this.id + " "; + result += "name = " + this.name + " "; + result += "parentId = " + this.parentId + " "; + result += "surfaces = " + this.surfaces + " "; + result += "transformation = " + this.transformation + " "; + result += "visible = " + this.visible + " "; + return result + "]"; + } + } +} + diff --git a/src/package_50/A3DSurface.as b/src/versions/version1/a3d/objects/A3DSurface.as similarity index 52% rename from src/package_50/A3DSurface.as rename to src/versions/version1/a3d/objects/A3DSurface.as index 7208a41..a536d8a 100644 --- a/src/package_50/A3DSurface.as +++ b/src/versions/version1/a3d/objects/A3DSurface.as @@ -1,51 +1,51 @@ -package package_50 +package versions.version1.a3d.objects { - import package_57.name_213; + import commons.Id; public class A3DSurface { - private var var_299:int; + private var §_-50§:int; - private var var_301:name_213; + private var §_-pS§:Id; - private var var_300:int; + private var §_-4C§:int; - public function A3DSurface(indexBegin:int, materialId:name_213, numTriangles:int) + public function A3DSurface(indexBegin:int, materialId:Id, numTriangles:int) { super(); - this.var_299 = indexBegin; - this.var_301 = materialId; - this.var_300 = numTriangles; + this.§_-50§ = indexBegin; + this.§_-pS§ = materialId; + this.§_-4C§ = numTriangles; } public function get indexBegin() : int { - return this.var_299; + return this.§_-50§; } public function set indexBegin(value:int) : void { - this.var_299 = value; + this.§_-50§ = value; } - public function get materialId() : name_213 + public function get materialId() : Id { - return this.var_301; + return this.§_-pS§; } - public function set materialId(value:name_213) : void + public function set materialId(value:Id) : void { - this.var_301 = value; + this.§_-pS§ = value; } public function get numTriangles() : int { - return this.var_300; + return this.§_-4C§; } public function set numTriangles(value:int) : void { - this.var_300 = value; + this.§_-4C§ = value; } public function toString() : String diff --git a/src/versions/version1/a3d/objects/A3DTransformation.as b/src/versions/version1/a3d/objects/A3DTransformation.as new file mode 100644 index 0000000..d5014bd --- /dev/null +++ b/src/versions/version1/a3d/objects/A3DTransformation.as @@ -0,0 +1,33 @@ +package versions.version1.a3d.objects +{ + import commons.A3DMatrix; + + public class A3DTransformation + { + private var §_-6p§:A3DMatrix; + + public function A3DTransformation(matrix:A3DMatrix) + { + super(); + this.§_-6p§ = matrix; + } + + public function get matrix() : A3DMatrix + { + return this.§_-6p§; + } + + public function set matrix(value:A3DMatrix) : void + { + this.§_-6p§ = value; + } + + public function toString() : String + { + var result:String = "A3DTransformation ["; + result += "matrix = " + this.matrix + " "; + return result + "]"; + } + } +} + diff --git a/src/versions/version2/a3d/A3D2.as b/src/versions/version2/a3d/A3D2.as new file mode 100644 index 0000000..1e1ef59 --- /dev/null +++ b/src/versions/version2/a3d/A3D2.as @@ -0,0 +1,303 @@ +package versions.version2.a3d +{ + import versions.version2.a3d.animation.A3D2AnimationClip; + import versions.version2.a3d.animation.A3D2Track; + import versions.version2.a3d.geometry.A3D2IndexBuffer; + import versions.version2.a3d.geometry.A3D2VertexBuffer; + import versions.version2.a3d.materials.A3D2CubeMap; + import versions.version2.a3d.materials.A3D2Image; + import versions.version2.a3d.materials.A3D2Map; + import versions.version2.a3d.materials.A3D2Material; + import versions.version2.a3d.objects.A3D2AmbientLight; + import versions.version2.a3d.objects.A3D2Box; + import versions.version2.a3d.objects.A3D2Decal; + import versions.version2.a3d.objects.A3D2DirectionalLight; + import versions.version2.a3d.objects.A3D2Joint; + import versions.version2.a3d.objects.A3D2Mesh; + import versions.version2.a3d.objects.A3D2Object; + import versions.version2.a3d.objects.A3D2OmniLight; + import versions.version2.a3d.objects.A3D2Skin; + import versions.version2.a3d.objects.A3D2SpotLight; + import versions.version2.a3d.objects.A3D2Sprite; + + public class A3D2 + { + private var §_-VP§:Vector.; + + private var §_-qp§:Vector.; + + private var §_-Ib§:Vector.; + + private var §_-0§:Vector.; + + private var §_-fK§:Vector.; + + private var §_-Gv§:Vector.; + + private var §_-93§:Vector.; + + private var §_-ce§:Vector.; + + private var §_-jm§:Vector.; + + private var §_-26§:Vector.; + + private var §_-XJ§:Vector.; + + private var §_-22§:Vector.; + + private var §_-jz§:Vector.; + + private var §_-Kq§:Vector.; + + private var §_-fM§:Vector.; + + private var §_-G0§:Vector.; + + private var §_-pd§:Vector.; + + private var §_-Ke§:Vector.; + + private var §_-0B§:Vector.; + + public function A3D2(ambientLights:Vector., animationClips:Vector., animationTracks:Vector., boxes:Vector., cubeMaps:Vector., decals:Vector., directionalLights:Vector., images:Vector., indexBuffers:Vector., joints:Vector., maps:Vector., materials:Vector., meshes:Vector., objects:Vector., omniLights:Vector., skins:Vector., spotLights:Vector., sprites:Vector., vertexBuffers:Vector.) + { + super(); + this.§_-VP§ = ambientLights; + this.§_-qp§ = animationClips; + this.§_-Ib§ = animationTracks; + this.§_-0§ = boxes; + this.§_-fK§ = cubeMaps; + this.§_-Gv§ = decals; + this.§_-93§ = directionalLights; + this.§_-ce§ = images; + this.§_-jm§ = indexBuffers; + this.§_-26§ = joints; + this.§_-XJ§ = maps; + this.§_-22§ = materials; + this.§_-jz§ = meshes; + this.§_-Kq§ = objects; + this.§_-fM§ = omniLights; + this.§_-G0§ = skins; + this.§_-pd§ = spotLights; + this.§_-Ke§ = sprites; + this.§_-0B§ = vertexBuffers; + } + + public function get ambientLights() : Vector. + { + return this.§_-VP§; + } + + public function set ambientLights(value:Vector.) : void + { + this.§_-VP§ = value; + } + + public function get animationClips() : Vector. + { + return this.§_-qp§; + } + + public function set animationClips(value:Vector.) : void + { + this.§_-qp§ = value; + } + + public function get animationTracks() : Vector. + { + return this.§_-Ib§; + } + + public function set animationTracks(value:Vector.) : void + { + this.§_-Ib§ = value; + } + + public function get boxes() : Vector. + { + return this.§_-0§; + } + + public function set boxes(value:Vector.) : void + { + this.§_-0§ = value; + } + + public function get cubeMaps() : Vector. + { + return this.§_-fK§; + } + + public function set cubeMaps(value:Vector.) : void + { + this.§_-fK§ = value; + } + + public function get decals() : Vector. + { + return this.§_-Gv§; + } + + public function set decals(value:Vector.) : void + { + this.§_-Gv§ = value; + } + + public function get directionalLights() : Vector. + { + return this.§_-93§; + } + + public function set directionalLights(value:Vector.) : void + { + this.§_-93§ = value; + } + + public function get images() : Vector. + { + return this.§_-ce§; + } + + public function set images(value:Vector.) : void + { + this.§_-ce§ = value; + } + + public function get indexBuffers() : Vector. + { + return this.§_-jm§; + } + + public function set indexBuffers(value:Vector.) : void + { + this.§_-jm§ = value; + } + + public function get joints() : Vector. + { + return this.§_-26§; + } + + public function set joints(value:Vector.) : void + { + this.§_-26§ = value; + } + + public function get maps() : Vector. + { + return this.§_-XJ§; + } + + public function set maps(value:Vector.) : void + { + this.§_-XJ§ = value; + } + + public function get materials() : Vector. + { + return this.§_-22§; + } + + public function set materials(value:Vector.) : void + { + this.§_-22§ = value; + } + + public function get meshes() : Vector. + { + return this.§_-jz§; + } + + public function set meshes(value:Vector.) : void + { + this.§_-jz§ = value; + } + + public function get objects() : Vector. + { + return this.§_-Kq§; + } + + public function set objects(value:Vector.) : void + { + this.§_-Kq§ = value; + } + + public function get omniLights() : Vector. + { + return this.§_-fM§; + } + + public function set omniLights(value:Vector.) : void + { + this.§_-fM§ = value; + } + + public function get skins() : Vector. + { + return this.§_-G0§; + } + + public function set skins(value:Vector.) : void + { + this.§_-G0§ = value; + } + + public function get spotLights() : Vector. + { + return this.§_-pd§; + } + + public function set spotLights(value:Vector.) : void + { + this.§_-pd§ = value; + } + + public function get sprites() : Vector. + { + return this.§_-Ke§; + } + + public function set sprites(value:Vector.) : void + { + this.§_-Ke§ = value; + } + + public function get vertexBuffers() : Vector. + { + return this.§_-0B§; + } + + public function set vertexBuffers(value:Vector.) : void + { + this.§_-0B§ = value; + } + + public function toString() : String + { + var result:String = "A3D2 ["; + result += "ambientLights = " + this.ambientLights + " "; + result += "animationClips = " + this.animationClips + " "; + result += "animationTracks = " + this.animationTracks + " "; + result += "boxes = " + this.boxes + " "; + result += "cubeMaps = " + this.cubeMaps + " "; + result += "decals = " + this.decals + " "; + result += "directionalLights = " + this.directionalLights + " "; + result += "images = " + this.images + " "; + result += "indexBuffers = " + this.indexBuffers + " "; + result += "joints = " + this.joints + " "; + result += "maps = " + this.maps + " "; + result += "materials = " + this.materials + " "; + result += "meshes = " + this.meshes + " "; + result += "objects = " + this.objects + " "; + result += "omniLights = " + this.omniLights + " "; + result += "skins = " + this.skins + " "; + result += "spotLights = " + this.spotLights + " "; + result += "sprites = " + this.sprites + " "; + result += "vertexBuffers = " + this.vertexBuffers + " "; + return result + "]"; + } + } +} + diff --git a/src/package_55/A3D2AnimationClip.as b/src/versions/version2/a3d/animation/A3D2AnimationClip.as similarity index 60% rename from src/package_55/A3D2AnimationClip.as rename to src/versions/version2/a3d/animation/A3D2AnimationClip.as index 5b621db..57d7b3f 100644 --- a/src/package_55/A3D2AnimationClip.as +++ b/src/versions/version2/a3d/animation/A3D2AnimationClip.as @@ -1,47 +1,47 @@ -package package_55 +package versions.version2.a3d.animation { - import package_33.name_155; + import alternativa.types.Long; public class A3D2AnimationClip { - private var var_101:int; + private var §_-3I§:int; - private var var_388:Boolean; + private var §_-OV§:Boolean; private var _name:String; - private var var_387:Vector.; + private var §_-Cp§:Vector.; - private var var_389:Vector.; + private var §_-cT§:Vector.; - public function A3D2AnimationClip(id:int, loop:Boolean, name:String, objectIDs:Vector., tracks:Vector.) + public function A3D2AnimationClip(id:int, loop:Boolean, name:String, objectIDs:Vector., tracks:Vector.) { super(); - this.var_101 = id; - this.var_388 = loop; + this.§_-3I§ = id; + this.§_-OV§ = loop; this._name = name; - this.var_387 = objectIDs; - this.var_389 = tracks; + this.§_-Cp§ = objectIDs; + this.§_-cT§ = tracks; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get loop() : Boolean { - return this.var_388; + return this.§_-OV§; } public function set loop(value:Boolean) : void { - this.var_388 = value; + this.§_-OV§ = value; } public function get name() : String @@ -54,24 +54,24 @@ package package_55 this._name = value; } - public function get objectIDs() : Vector. + public function get objectIDs() : Vector. { - return this.var_387; + return this.§_-Cp§; } - public function set objectIDs(value:Vector.) : void + public function set objectIDs(value:Vector.) : void { - this.var_387 = value; + this.§_-Cp§ = value; } public function get tracks() : Vector. { - return this.var_389; + return this.§_-cT§; } public function set tracks(value:Vector.) : void { - this.var_389 = value; + this.§_-cT§ = value; } public function toString() : String diff --git a/src/package_55/A3D2Keyframe.as b/src/versions/version2/a3d/animation/A3D2Keyframe.as similarity index 63% rename from src/package_55/A3D2Keyframe.as rename to src/versions/version2/a3d/animation/A3D2Keyframe.as index 63df5d1..fd43753 100644 --- a/src/package_55/A3D2Keyframe.as +++ b/src/versions/version2/a3d/animation/A3D2Keyframe.as @@ -1,38 +1,38 @@ -package package_55 +package versions.version2.a3d.animation { - import package_48.A3D2Transform; + import versions.version2.a3d.objects.A3D2Transform; public class A3D2Keyframe { - private var var_420:Number; + private var §_-qC§:Number; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; public function A3D2Keyframe(time:Number, transform:A3D2Transform) { super(); - this.var_420 = time; - this.var_262 = transform; + this.§_-qC§ = time; + this.§_-bP§ = transform; } public function get time() : Number { - return this.var_420; + return this.§_-qC§; } public function set time(value:Number) : void { - this.var_420 = value; + this.§_-qC§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function toString() : String diff --git a/src/package_55/A3D2Track.as b/src/versions/version2/a3d/animation/A3D2Track.as similarity index 65% rename from src/package_55/A3D2Track.as rename to src/versions/version2/a3d/animation/A3D2Track.as index a1a196a..ab10778 100644 --- a/src/package_55/A3D2Track.as +++ b/src/versions/version2/a3d/animation/A3D2Track.as @@ -1,49 +1,49 @@ -package package_55 +package versions.version2.a3d.animation { public class A3D2Track { - private var var_101:int; + private var §_-3I§:int; - private var var_289:Vector.; + private var §_-1§:Vector.; - private var var_288:String; + private var §_-pa§:String; public function A3D2Track(id:int, keyframes:Vector., objectName:String) { super(); - this.var_101 = id; - this.var_289 = keyframes; - this.var_288 = objectName; + this.§_-3I§ = id; + this.§_-1§ = keyframes; + this.§_-pa§ = objectName; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get keyframes() : Vector. { - return this.var_289; + return this.§_-1§; } public function set keyframes(value:Vector.) : void { - this.var_289 = value; + this.§_-1§ = value; } public function get objectName() : String { - return this.var_288; + return this.§_-pa§; } public function set objectName(value:String) : void { - this.var_288 = value; + this.§_-pa§ = value; } public function toString() : String diff --git a/src/package_52/A3D2IndexBuffer.as b/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as similarity index 66% rename from src/package_52/A3D2IndexBuffer.as rename to src/versions/version2/a3d/geometry/A3D2IndexBuffer.as index 8851e3a..dcedca2 100644 --- a/src/package_52/A3D2IndexBuffer.as +++ b/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as @@ -1,51 +1,51 @@ -package package_52 +package versions.version2.a3d.geometry { import flash.utils.ByteArray; public class A3D2IndexBuffer { - private var var_271:ByteArray; + private var §_-79§:ByteArray; - private var var_101:int; + private var §_-3I§:int; - private var var_379:int; + private var §_-m0§:int; public function A3D2IndexBuffer(byteBuffer:ByteArray, id:int, indexCount:int) { super(); - this.var_271 = byteBuffer; - this.var_101 = id; - this.var_379 = indexCount; + this.§_-79§ = byteBuffer; + this.§_-3I§ = id; + this.§_-m0§ = indexCount; } public function get byteBuffer() : ByteArray { - return this.var_271; + return this.§_-79§; } public function set byteBuffer(value:ByteArray) : void { - this.var_271 = value; + this.§_-79§ = value; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get indexCount() : int { - return this.var_379; + return this.§_-m0§; } public function set indexCount(value:int) : void { - this.var_379 = value; + this.§_-m0§ = value; } public function toString() : String diff --git a/src/package_52/A3D2VertexAttributes.as b/src/versions/version2/a3d/geometry/A3D2VertexAttributes.as similarity index 93% rename from src/package_52/A3D2VertexAttributes.as rename to src/versions/version2/a3d/geometry/A3D2VertexAttributes.as index 796e785..d15d02f 100644 --- a/src/package_52/A3D2VertexAttributes.as +++ b/src/versions/version2/a3d/geometry/A3D2VertexAttributes.as @@ -1,4 +1,4 @@ -package package_52 +package versions.version2.a3d.geometry { public class A3D2VertexAttributes { diff --git a/src/package_52/A3D2VertexBuffer.as b/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as similarity index 65% rename from src/package_52/A3D2VertexBuffer.as rename to src/versions/version2/a3d/geometry/A3D2VertexBuffer.as index 1fbd6d1..2753d66 100644 --- a/src/package_52/A3D2VertexBuffer.as +++ b/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as @@ -1,64 +1,64 @@ -package package_52 +package versions.version2.a3d.geometry { import flash.utils.ByteArray; public class A3D2VertexBuffer { - private var var_273:Vector.; + private var §_-96§:Vector.; - private var var_271:ByteArray; + private var §_-79§:ByteArray; - private var var_101:int; + private var §_-3I§:int; - private var var_272:uint; + private var §_-g1§:uint; public function A3D2VertexBuffer(attributes:Vector., byteBuffer:ByteArray, id:int, vertexCount:uint) { super(); - this.var_273 = attributes; - this.var_271 = byteBuffer; - this.var_101 = id; - this.var_272 = vertexCount; + this.§_-96§ = attributes; + this.§_-79§ = byteBuffer; + this.§_-3I§ = id; + this.§_-g1§ = vertexCount; } public function get attributes() : Vector. { - return this.var_273; + return this.§_-96§; } public function set attributes(value:Vector.) : void { - this.var_273 = value; + this.§_-96§ = value; } public function get byteBuffer() : ByteArray { - return this.var_271; + return this.§_-79§; } public function set byteBuffer(value:ByteArray) : void { - this.var_271 = value; + this.§_-79§ = value; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get vertexCount() : uint { - return this.var_272; + return this.§_-g1§; } public function set vertexCount(value:uint) : void { - this.var_272 = value; + this.§_-g1§ = value; } public function toString() : String diff --git a/src/package_51/A3D2CubeMap.as b/src/versions/version2/a3d/materials/A3D2CubeMap.as similarity index 62% rename from src/package_51/A3D2CubeMap.as rename to src/versions/version2/a3d/materials/A3D2CubeMap.as index b399f4c..606fe07 100644 --- a/src/package_51/A3D2CubeMap.as +++ b/src/versions/version2/a3d/materials/A3D2CubeMap.as @@ -1,101 +1,101 @@ -package package_51 +package versions.version2.a3d.materials { public class A3D2CubeMap { - private var var_279:int; + private var §_-0x§:int; - private var var_283:int; + private var §_-el§:int; - private var var_280:int; + private var §_-5I§:int; - private var var_101:int; + private var §_-3I§:int; - private var var_278:int; + private var §_-ML§:int; - private var var_281:int; + private var §_-K§:int; - private var var_282:int; + private var §_-pW§:int; public function A3D2CubeMap(backId:int, bottomId:int, frontId:int, id:int, leftId:int, rightId:int, topId:int) { super(); - this.var_279 = backId; - this.var_283 = bottomId; - this.var_280 = frontId; - this.var_101 = id; - this.var_278 = leftId; - this.var_281 = rightId; - this.var_282 = topId; + this.§_-0x§ = backId; + this.§_-el§ = bottomId; + this.§_-5I§ = frontId; + this.§_-3I§ = id; + this.§_-ML§ = leftId; + this.§_-K§ = rightId; + this.§_-pW§ = topId; } public function get backId() : int { - return this.var_279; + return this.§_-0x§; } public function set backId(value:int) : void { - this.var_279 = value; + this.§_-0x§ = value; } public function get bottomId() : int { - return this.var_283; + return this.§_-el§; } public function set bottomId(value:int) : void { - this.var_283 = value; + this.§_-el§ = value; } public function get frontId() : int { - return this.var_280; + return this.§_-5I§; } public function set frontId(value:int) : void { - this.var_280 = value; + this.§_-5I§ = value; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get leftId() : int { - return this.var_278; + return this.§_-ML§; } public function set leftId(value:int) : void { - this.var_278 = value; + this.§_-ML§ = value; } public function get rightId() : int { - return this.var_281; + return this.§_-K§; } public function set rightId(value:int) : void { - this.var_281 = value; + this.§_-K§ = value; } public function get topId() : int { - return this.var_282; + return this.§_-pW§; } public function set topId(value:int) : void { - this.var_282 = value; + this.§_-pW§ = value; } public function toString() : String diff --git a/src/package_51/A3D2Image.as b/src/versions/version2/a3d/materials/A3D2Image.as similarity index 65% rename from src/package_51/A3D2Image.as rename to src/versions/version2/a3d/materials/A3D2Image.as index 18c7017..4e9fde7 100644 --- a/src/package_51/A3D2Image.as +++ b/src/versions/version2/a3d/materials/A3D2Image.as @@ -1,36 +1,36 @@ -package package_51 +package versions.version2.a3d.materials { public class A3D2Image { - private var var_101:int; + private var §_-3I§:int; - private var var_274:String; + private var §_-6D§:String; public function A3D2Image(id:int, url:String) { super(); - this.var_101 = id; - this.var_274 = url; + this.§_-3I§ = id; + this.§_-6D§ = url; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get url() : String { - return this.var_274; + return this.§_-6D§; } public function set url(value:String) : void { - this.var_274 = value; + this.§_-6D§ = value; } public function toString() : String diff --git a/src/package_51/A3D2Map.as b/src/versions/version2/a3d/materials/A3D2Map.as similarity index 64% rename from src/package_51/A3D2Map.as rename to src/versions/version2/a3d/materials/A3D2Map.as index 06cab41..2fc341e 100644 --- a/src/package_51/A3D2Map.as +++ b/src/versions/version2/a3d/materials/A3D2Map.as @@ -1,49 +1,49 @@ -package package_51 +package versions.version2.a3d.materials { public class A3D2Map { - private var var_338:uint; + private var §_-9y§:uint; - private var var_101:int; + private var §_-3I§:int; - private var var_337:int; + private var §_-JE§:int; public function A3D2Map(channel:uint, id:int, imageId:int) { super(); - this.var_338 = channel; - this.var_101 = id; - this.var_337 = imageId; + this.§_-9y§ = channel; + this.§_-3I§ = id; + this.§_-JE§ = imageId; } public function get channel() : uint { - return this.var_338; + return this.§_-9y§; } public function set channel(value:uint) : void { - this.var_338 = value; + this.§_-9y§ = value; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get imageId() : int { - return this.var_337; + return this.§_-JE§; } public function set imageId(value:int) : void { - this.var_337 = value; + this.§_-JE§ = value; } public function toString() : String diff --git a/src/package_51/A3D2Material.as b/src/versions/version2/a3d/materials/A3D2Material.as similarity index 63% rename from src/package_51/A3D2Material.as rename to src/versions/version2/a3d/materials/A3D2Material.as index bc9a032..714df73 100644 --- a/src/package_51/A3D2Material.as +++ b/src/versions/version2/a3d/materials/A3D2Material.as @@ -1,114 +1,114 @@ -package package_51 +package versions.version2.a3d.materials { public class A3D2Material { - private var var_345:int; + private var §_-9s§:int; - private var var_342:int; + private var §_-bl§:int; - private var var_101:int; + private var §_-3I§:int; - private var var_343:int; + private var §_-qf§:int; - private var var_339:int; + private var §_-QR§:int; - private var var_341:int; + private var §_-Jn§:int; - private var var_344:int; + private var §_-iG§:int; - private var var_340:int; + private var §_-LA§:int; public function A3D2Material(diffuseMapId:int, glossinessMapId:int, id:int, lightMapId:int, normalMapId:int, opacityMapId:int, reflectionCubeMapId:int, specularMapId:int) { super(); - this.var_345 = diffuseMapId; - this.var_342 = glossinessMapId; - this.var_101 = id; - this.var_343 = lightMapId; - this.var_339 = normalMapId; - this.var_341 = opacityMapId; - this.var_344 = reflectionCubeMapId; - this.var_340 = specularMapId; + this.§_-9s§ = diffuseMapId; + this.§_-bl§ = glossinessMapId; + this.§_-3I§ = id; + this.§_-qf§ = lightMapId; + this.§_-QR§ = normalMapId; + this.§_-Jn§ = opacityMapId; + this.§_-iG§ = reflectionCubeMapId; + this.§_-LA§ = specularMapId; } public function get diffuseMapId() : int { - return this.var_345; + return this.§_-9s§; } public function set diffuseMapId(value:int) : void { - this.var_345 = value; + this.§_-9s§ = value; } public function get glossinessMapId() : int { - return this.var_342; + return this.§_-bl§; } public function set glossinessMapId(value:int) : void { - this.var_342 = value; + this.§_-bl§ = value; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get lightMapId() : int { - return this.var_343; + return this.§_-qf§; } public function set lightMapId(value:int) : void { - this.var_343 = value; + this.§_-qf§ = value; } public function get normalMapId() : int { - return this.var_339; + return this.§_-QR§; } public function set normalMapId(value:int) : void { - this.var_339 = value; + this.§_-QR§ = value; } public function get opacityMapId() : int { - return this.var_341; + return this.§_-Jn§; } public function set opacityMapId(value:int) : void { - this.var_341 = value; + this.§_-Jn§ = value; } public function get reflectionCubeMapId() : int { - return this.var_344; + return this.§_-iG§; } public function set reflectionCubeMapId(value:int) : void { - this.var_344 = value; + this.§_-iG§ = value; } public function get specularMapId() : int { - return this.var_340; + return this.§_-LA§; } public function set specularMapId(value:int) : void { - this.var_340 = value; + this.§_-LA§ = value; } public function toString() : String diff --git a/src/package_48/A3D2AmbientLight.as b/src/versions/version2/a3d/objects/A3D2AmbientLight.as similarity index 57% rename from src/package_48/A3D2AmbientLight.as rename to src/versions/version2/a3d/objects/A3D2AmbientLight.as index 176afe9..0d9a55e 100644 --- a/src/package_48/A3D2AmbientLight.as +++ b/src/versions/version2/a3d/objects/A3D2AmbientLight.as @@ -1,76 +1,76 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2AmbientLight { - private var var_268:int; + private var §_-jD§:int; - private var var_265:uint; + private var §_-Tn§:uint; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_264:Number; + private var §_-74§:Number; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2AmbientLight(boundBoxId:int, color:uint, id:name_155, intensity:Number, name:String, parentId:name_155, transform:A3D2Transform, visible:Boolean) + public function A3D2AmbientLight(boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_265 = color; - this.var_101 = id; - this.var_264 = intensity; + this.§_-jD§ = boundBoxId; + this.§_-Tn§ = color; + this.§_-3I§ = id; + this.§_-74§ = intensity; this._name = name; - this.var_270 = parentId; - this.var_262 = transform; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-bP§ = transform; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } public function get color() : uint { - return this.var_265; + return this.§_-Tn§; } public function set color(value:uint) : void { - this.var_265 = value; + this.§_-Tn§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get intensity() : Number { - return this.var_264; + return this.§_-74§; } public function set intensity(value:Number) : void { - this.var_264 = value; + this.§_-74§ = value; } public function get name() : String @@ -83,34 +83,34 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Box.as b/src/versions/version2/a3d/objects/A3D2Box.as similarity index 65% rename from src/package_48/A3D2Box.as rename to src/versions/version2/a3d/objects/A3D2Box.as index dccf9b9..eb337a9 100644 --- a/src/package_48/A3D2Box.as +++ b/src/versions/version2/a3d/objects/A3D2Box.as @@ -1,36 +1,36 @@ -package package_48 +package versions.version2.a3d.objects { public class A3D2Box { - private var var_290:Vector.; + private var §_-Ge§:Vector.; - private var var_101:int; + private var §_-3I§:int; public function A3D2Box(box:Vector., id:int) { super(); - this.var_290 = box; - this.var_101 = id; + this.§_-Ge§ = box; + this.§_-3I§ = id; } public function get box() : Vector. { - return this.var_290; + return this.§_-Ge§; } public function set box(value:Vector.) : void { - this.var_290 = value; + this.§_-Ge§ = value; } public function get id() : int { - return this.var_101; + return this.§_-3I§; } public function set id(value:int) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Decal.as b/src/versions/version2/a3d/objects/A3D2Decal.as similarity index 55% rename from src/package_48/A3D2Decal.as rename to src/versions/version2/a3d/objects/A3D2Decal.as index fd1b5fc..2703d5d 100644 --- a/src/package_48/A3D2Decal.as +++ b/src/versions/version2/a3d/objects/A3D2Decal.as @@ -1,72 +1,72 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2Decal { - private var var_268:int; + private var §_-jD§:int; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_276:int; + private var §_-Hc§:int; private var _name:String; - private var var_285:Number; + private var §_-3D§:Number; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_92:Vector.; + private var §_-eW§:Vector.; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_277:Vector.; + private var §_-0B§:Vector.; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2Decal(boundBoxId:int, id:name_155, indexBufferId:int, name:String, offset:Number, parentId:name_155, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) + public function A3D2Decal(boundBoxId:int, id:Long, indexBufferId:int, name:String, offset:Number, parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_101 = id; - this.var_276 = indexBufferId; + this.§_-jD§ = boundBoxId; + this.§_-3I§ = id; + this.§_-Hc§ = indexBufferId; this._name = name; - this.var_285 = offset; - this.var_270 = parentId; - this.var_92 = surfaces; - this.var_262 = transform; - this.var_277 = vertexBuffers; - this.var_267 = visible; + this.§_-3D§ = offset; + this.§_-fP§ = parentId; + this.§_-eW§ = surfaces; + this.§_-bP§ = transform; + this.§_-0B§ = vertexBuffers; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get indexBufferId() : int { - return this.var_276; + return this.§_-Hc§; } public function set indexBufferId(value:int) : void { - this.var_276 = value; + this.§_-Hc§ = value; } public function get name() : String @@ -81,62 +81,62 @@ package package_48 public function get offset() : Number { - return this.var_285; + return this.§_-3D§; } public function set offset(value:Number) : void { - this.var_285 = value; + this.§_-3D§ = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get surfaces() : Vector. { - return this.var_92; + return this.§_-eW§; } public function set surfaces(value:Vector.) : void { - this.var_92 = value; + this.§_-eW§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get vertexBuffers() : Vector. { - return this.var_277; + return this.§_-0B§; } public function set vertexBuffers(value:Vector.) : void { - this.var_277 = value; + this.§_-0B§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2DirectionalLight.as b/src/versions/version2/a3d/objects/A3D2DirectionalLight.as similarity index 57% rename from src/package_48/A3D2DirectionalLight.as rename to src/versions/version2/a3d/objects/A3D2DirectionalLight.as index 43e69ad..4ef61d4 100644 --- a/src/package_48/A3D2DirectionalLight.as +++ b/src/versions/version2/a3d/objects/A3D2DirectionalLight.as @@ -1,76 +1,76 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2DirectionalLight { - private var var_268:int; + private var §_-jD§:int; - private var var_265:uint; + private var §_-Tn§:uint; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_264:Number; + private var §_-74§:Number; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2DirectionalLight(boundBoxId:int, color:uint, id:name_155, intensity:Number, name:String, parentId:name_155, transform:A3D2Transform, visible:Boolean) + public function A3D2DirectionalLight(boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_265 = color; - this.var_101 = id; - this.var_264 = intensity; + this.§_-jD§ = boundBoxId; + this.§_-Tn§ = color; + this.§_-3I§ = id; + this.§_-74§ = intensity; this._name = name; - this.var_270 = parentId; - this.var_262 = transform; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-bP§ = transform; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } public function get color() : uint { - return this.var_265; + return this.§_-Tn§; } public function set color(value:uint) : void { - this.var_265 = value; + this.§_-Tn§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get intensity() : Number { - return this.var_264; + return this.§_-74§; } public function set intensity(value:Number) : void { - this.var_264 = value; + this.§_-74§ = value; } public function get name() : String @@ -83,34 +83,34 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Joint.as b/src/versions/version2/a3d/objects/A3D2Joint.as similarity index 54% rename from src/package_48/A3D2Joint.as rename to src/versions/version2/a3d/objects/A3D2Joint.as index 559df44..399036f 100644 --- a/src/package_48/A3D2Joint.as +++ b/src/versions/version2/a3d/objects/A3D2Joint.as @@ -1,50 +1,50 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2Joint { - private var var_268:int; + private var §_-jD§:int; - private var var_101:name_155; + private var §_-3I§:Long; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2Joint(boundBoxId:int, id:name_155, name:String, parentId:name_155, transform:A3D2Transform, visible:Boolean) + public function A3D2Joint(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_101 = id; + this.§_-jD§ = boundBoxId; + this.§_-3I§ = id; this._name = name; - this.var_270 = parentId; - this.var_262 = transform; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-bP§ = transform; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get name() : String @@ -57,34 +57,34 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2JointBindTransform.as b/src/versions/version2/a3d/objects/A3D2JointBindTransform.as similarity index 57% rename from src/package_48/A3D2JointBindTransform.as rename to src/versions/version2/a3d/objects/A3D2JointBindTransform.as index 8a4e371..13c13dc 100644 --- a/src/package_48/A3D2JointBindTransform.as +++ b/src/versions/version2/a3d/objects/A3D2JointBindTransform.as @@ -1,38 +1,38 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2JointBindTransform { - private var var_417:A3D2Transform; + private var §_-NL§:A3D2Transform; - private var var_101:name_155; + private var §_-3I§:Long; - public function A3D2JointBindTransform(bindPoseTransform:A3D2Transform, id:name_155) + public function A3D2JointBindTransform(bindPoseTransform:A3D2Transform, id:Long) { super(); - this.var_417 = bindPoseTransform; - this.var_101 = id; + this.§_-NL§ = bindPoseTransform; + this.§_-3I§ = id; } public function get bindPoseTransform() : A3D2Transform { - return this.var_417; + return this.§_-NL§; } public function set bindPoseTransform(value:A3D2Transform) : void { - this.var_417 = value; + this.§_-NL§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Mesh.as b/src/versions/version2/a3d/objects/A3D2Mesh.as similarity index 55% rename from src/package_48/A3D2Mesh.as rename to src/versions/version2/a3d/objects/A3D2Mesh.as index 7221973..3d09939 100644 --- a/src/package_48/A3D2Mesh.as +++ b/src/versions/version2/a3d/objects/A3D2Mesh.as @@ -1,69 +1,69 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2Mesh { - private var var_268:int; + private var §_-jD§:int; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_276:int; + private var §_-Hc§:int; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_92:Vector.; + private var §_-eW§:Vector.; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_277:Vector.; + private var §_-0B§:Vector.; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2Mesh(boundBoxId:int, id:name_155, indexBufferId:int, name:String, parentId:name_155, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) + public function A3D2Mesh(boundBoxId:int, id:Long, indexBufferId:int, name:String, parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_101 = id; - this.var_276 = indexBufferId; + this.§_-jD§ = boundBoxId; + this.§_-3I§ = id; + this.§_-Hc§ = indexBufferId; this._name = name; - this.var_270 = parentId; - this.var_92 = surfaces; - this.var_262 = transform; - this.var_277 = vertexBuffers; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-eW§ = surfaces; + this.§_-bP§ = transform; + this.§_-0B§ = vertexBuffers; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get indexBufferId() : int { - return this.var_276; + return this.§_-Hc§; } public function set indexBufferId(value:int) : void { - this.var_276 = value; + this.§_-Hc§ = value; } public function get name() : String @@ -76,54 +76,54 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get surfaces() : Vector. { - return this.var_92; + return this.§_-eW§; } public function set surfaces(value:Vector.) : void { - this.var_92 = value; + this.§_-eW§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get vertexBuffers() : Vector. { - return this.var_277; + return this.§_-0B§; } public function set vertexBuffers(value:Vector.) : void { - this.var_277 = value; + this.§_-0B§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Object.as b/src/versions/version2/a3d/objects/A3D2Object.as similarity index 54% rename from src/package_48/A3D2Object.as rename to src/versions/version2/a3d/objects/A3D2Object.as index ae1312a..3425cae 100644 --- a/src/package_48/A3D2Object.as +++ b/src/versions/version2/a3d/objects/A3D2Object.as @@ -1,50 +1,50 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2Object { - private var var_268:int; + private var §_-jD§:int; - private var var_101:name_155; + private var §_-3I§:Long; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2Object(boundBoxId:int, id:name_155, name:String, parentId:name_155, transform:A3D2Transform, visible:Boolean) + public function A3D2Object(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_101 = id; + this.§_-jD§ = boundBoxId; + this.§_-3I§ = id; this._name = name; - this.var_270 = parentId; - this.var_262 = transform; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-bP§ = transform; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get name() : String @@ -57,34 +57,34 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2OmniLight.as b/src/versions/version2/a3d/objects/A3D2OmniLight.as similarity index 57% rename from src/package_48/A3D2OmniLight.as rename to src/versions/version2/a3d/objects/A3D2OmniLight.as index 425a63c..7269dcc 100644 --- a/src/package_48/A3D2OmniLight.as +++ b/src/versions/version2/a3d/objects/A3D2OmniLight.as @@ -1,102 +1,102 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2OmniLight { - private var var_266:Number; + private var §_-Hw§:Number; - private var var_261:Number; + private var §_-AS§:Number; - private var var_268:int; + private var §_-jD§:int; - private var var_265:uint; + private var §_-Tn§:uint; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_264:Number; + private var §_-74§:Number; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2OmniLight(attenuationBegin:Number, attenuationEnd:Number, boundBoxId:int, color:uint, id:name_155, intensity:Number, name:String, parentId:name_155, transform:A3D2Transform, visible:Boolean) + public function A3D2OmniLight(attenuationBegin:Number, attenuationEnd:Number, boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.var_266 = attenuationBegin; - this.var_261 = attenuationEnd; - this.var_268 = boundBoxId; - this.var_265 = color; - this.var_101 = id; - this.var_264 = intensity; + this.§_-Hw§ = attenuationBegin; + this.§_-AS§ = attenuationEnd; + this.§_-jD§ = boundBoxId; + this.§_-Tn§ = color; + this.§_-3I§ = id; + this.§_-74§ = intensity; this._name = name; - this.var_270 = parentId; - this.var_262 = transform; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-bP§ = transform; + this.§_-1u§ = visible; } public function get attenuationBegin() : Number { - return this.var_266; + return this.§_-Hw§; } public function set attenuationBegin(value:Number) : void { - this.var_266 = value; + this.§_-Hw§ = value; } public function get attenuationEnd() : Number { - return this.var_261; + return this.§_-AS§; } public function set attenuationEnd(value:Number) : void { - this.var_261 = value; + this.§_-AS§ = value; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } public function get color() : uint { - return this.var_265; + return this.§_-Tn§; } public function set color(value:uint) : void { - this.var_265 = value; + this.§_-Tn§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get intensity() : Number { - return this.var_264; + return this.§_-74§; } public function set intensity(value:Number) : void { - this.var_264 = value; + this.§_-74§ = value; } public function get name() : String @@ -109,34 +109,34 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Skin.as b/src/versions/version2/a3d/objects/A3D2Skin.as similarity index 53% rename from src/package_48/A3D2Skin.as rename to src/versions/version2/a3d/objects/A3D2Skin.as index fea4a83..d3767af 100644 --- a/src/package_48/A3D2Skin.as +++ b/src/versions/version2/a3d/objects/A3D2Skin.as @@ -1,98 +1,98 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2Skin { - private var var_268:int; + private var §_-jD§:int; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_276:int; + private var §_-Hc§:int; - private var var_391:Vector.; + private var §_-KB§:Vector.; - private var var_392:Vector.; + private var §_-26§:Vector.; private var _name:String; - private var var_390:Vector.; + private var §_-Dr§:Vector.; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_92:Vector.; + private var §_-eW§:Vector.; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_277:Vector.; + private var §_-0B§:Vector.; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2Skin(boundBoxId:int, id:name_155, indexBufferId:int, jointBindTransforms:Vector., joints:Vector., name:String, numJoints:Vector., parentId:name_155, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) + public function A3D2Skin(boundBoxId:int, id:Long, indexBufferId:int, jointBindTransforms:Vector., joints:Vector., name:String, numJoints:Vector., parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) { super(); - this.var_268 = boundBoxId; - this.var_101 = id; - this.var_276 = indexBufferId; - this.var_391 = jointBindTransforms; - this.var_392 = joints; + this.§_-jD§ = boundBoxId; + this.§_-3I§ = id; + this.§_-Hc§ = indexBufferId; + this.§_-KB§ = jointBindTransforms; + this.§_-26§ = joints; this._name = name; - this.var_390 = numJoints; - this.var_270 = parentId; - this.var_92 = surfaces; - this.var_262 = transform; - this.var_277 = vertexBuffers; - this.var_267 = visible; + this.§_-Dr§ = numJoints; + this.§_-fP§ = parentId; + this.§_-eW§ = surfaces; + this.§_-bP§ = transform; + this.§_-0B§ = vertexBuffers; + this.§_-1u§ = visible; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get indexBufferId() : int { - return this.var_276; + return this.§_-Hc§; } public function set indexBufferId(value:int) : void { - this.var_276 = value; + this.§_-Hc§ = value; } public function get jointBindTransforms() : Vector. { - return this.var_391; + return this.§_-KB§; } public function set jointBindTransforms(value:Vector.) : void { - this.var_391 = value; + this.§_-KB§ = value; } - public function get joints() : Vector. + public function get joints() : Vector. { - return this.var_392; + return this.§_-26§; } - public function set joints(value:Vector.) : void + public function set joints(value:Vector.) : void { - this.var_392 = value; + this.§_-26§ = value; } public function get name() : String @@ -107,62 +107,62 @@ package package_48 public function get numJoints() : Vector. { - return this.var_390; + return this.§_-Dr§; } public function set numJoints(value:Vector.) : void { - this.var_390 = value; + this.§_-Dr§ = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get surfaces() : Vector. { - return this.var_92; + return this.§_-eW§; } public function set surfaces(value:Vector.) : void { - this.var_92 = value; + this.§_-eW§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get vertexBuffers() : Vector. { - return this.var_277; + return this.§_-0B§; } public function set vertexBuffers(value:Vector.) : void { - this.var_277 = value; + this.§_-0B§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2SpotLight.as b/src/versions/version2/a3d/objects/A3D2SpotLight.as similarity index 58% rename from src/package_48/A3D2SpotLight.as rename to src/versions/version2/a3d/objects/A3D2SpotLight.as index aa73f9a..7a3b162 100644 --- a/src/package_48/A3D2SpotLight.as +++ b/src/versions/version2/a3d/objects/A3D2SpotLight.as @@ -1,128 +1,128 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; + import alternativa.types.Long; public class A3D2SpotLight { - private var var_266:Number; + private var §_-Hw§:Number; - private var var_261:Number; + private var §_-AS§:Number; - private var var_268:int; + private var §_-jD§:int; - private var var_265:uint; + private var §_-Tn§:uint; - private var var_263:Number; + private var §_-a0§:Number; - private var var_269:Number; + private var §_-GR§:Number; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_264:Number; + private var §_-74§:Number; private var _name:String; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - public function A3D2SpotLight(attenuationBegin:Number, attenuationEnd:Number, boundBoxId:int, color:uint, falloff:Number, hotspot:Number, id:name_155, intensity:Number, name:String, parentId:name_155, transform:A3D2Transform, visible:Boolean) + public function A3D2SpotLight(attenuationBegin:Number, attenuationEnd:Number, boundBoxId:int, color:uint, falloff:Number, hotspot:Number, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.var_266 = attenuationBegin; - this.var_261 = attenuationEnd; - this.var_268 = boundBoxId; - this.var_265 = color; - this.var_263 = falloff; - this.var_269 = hotspot; - this.var_101 = id; - this.var_264 = intensity; + this.§_-Hw§ = attenuationBegin; + this.§_-AS§ = attenuationEnd; + this.§_-jD§ = boundBoxId; + this.§_-Tn§ = color; + this.§_-a0§ = falloff; + this.§_-GR§ = hotspot; + this.§_-3I§ = id; + this.§_-74§ = intensity; this._name = name; - this.var_270 = parentId; - this.var_262 = transform; - this.var_267 = visible; + this.§_-fP§ = parentId; + this.§_-bP§ = transform; + this.§_-1u§ = visible; } public function get attenuationBegin() : Number { - return this.var_266; + return this.§_-Hw§; } public function set attenuationBegin(value:Number) : void { - this.var_266 = value; + this.§_-Hw§ = value; } public function get attenuationEnd() : Number { - return this.var_261; + return this.§_-AS§; } public function set attenuationEnd(value:Number) : void { - this.var_261 = value; + this.§_-AS§ = value; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } public function get color() : uint { - return this.var_265; + return this.§_-Tn§; } public function set color(value:uint) : void { - this.var_265 = value; + this.§_-Tn§ = value; } public function get falloff() : Number { - return this.var_263; + return this.§_-a0§; } public function set falloff(value:Number) : void { - this.var_263 = value; + this.§_-a0§ = value; } public function get hotspot() : Number { - return this.var_269; + return this.§_-GR§; } public function set hotspot(value:Number) : void { - this.var_269 = value; + this.§_-GR§ = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } public function get intensity() : Number { - return this.var_264; + return this.§_-74§; } public function set intensity(value:Number) : void { - this.var_264 = value; + this.§_-74§ = value; } public function get name() : String @@ -135,34 +135,34 @@ package package_48 this._name = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Sprite.as b/src/versions/version2/a3d/objects/A3D2Sprite.as similarity index 57% rename from src/package_48/A3D2Sprite.as rename to src/versions/version2/a3d/objects/A3D2Sprite.as index e3d82e1..1ba2541 100644 --- a/src/package_48/A3D2Sprite.as +++ b/src/versions/version2/a3d/objects/A3D2Sprite.as @@ -1,75 +1,75 @@ -package package_48 +package versions.version2.a3d.objects { - import package_33.name_155; - import package_57.name_213; + import alternativa.types.Long; + import commons.Id; public class A3D2Sprite { - private var var_374:Boolean; + private var §_-CL§:Boolean; - private var var_268:int; + private var §_-jD§:int; private var _height:Number; - private var var_101:name_155; + private var §_-3I§:Long; - private var var_301:name_213; + private var §_-pS§:Id; private var _name:String; - private var var_377:Number; + private var §_-4T§:Number; - private var var_375:Number; + private var §_-TP§:Number; - private var var_270:name_155; + private var §_-fP§:Long; - private var var_378:Boolean; + private var §_-2t§:Boolean; - private var var_376:Number; + private var §_-Vd§:Number; - private var var_262:A3D2Transform; + private var §_-bP§:A3D2Transform; - private var var_267:Boolean; + private var §_-1u§:Boolean; - private var var_110:Number; + private var §_-qj§:Number; - public function A3D2Sprite(alwaysOnTop:Boolean, boundBoxId:int, height:Number, id:name_155, materialId:name_213, name:String, originX:Number, originY:Number, parentId:name_155, perspectiveScale:Boolean, rotation:Number, transform:A3D2Transform, visible:Boolean, width:Number) + public function A3D2Sprite(alwaysOnTop:Boolean, boundBoxId:int, height:Number, id:Long, materialId:Id, name:String, originX:Number, originY:Number, parentId:Long, perspectiveScale:Boolean, rotation:Number, transform:A3D2Transform, visible:Boolean, width:Number) { super(); - this.var_374 = alwaysOnTop; - this.var_268 = boundBoxId; + this.§_-CL§ = alwaysOnTop; + this.§_-jD§ = boundBoxId; this._height = height; - this.var_101 = id; - this.var_301 = materialId; + this.§_-3I§ = id; + this.§_-pS§ = materialId; this._name = name; - this.var_377 = originX; - this.var_375 = originY; - this.var_270 = parentId; - this.var_378 = perspectiveScale; - this.var_376 = rotation; - this.var_262 = transform; - this.var_267 = visible; - this.var_110 = width; + this.§_-4T§ = originX; + this.§_-TP§ = originY; + this.§_-fP§ = parentId; + this.§_-2t§ = perspectiveScale; + this.§_-Vd§ = rotation; + this.§_-bP§ = transform; + this.§_-1u§ = visible; + this.§_-qj§ = width; } public function get alwaysOnTop() : Boolean { - return this.var_374; + return this.§_-CL§; } public function set alwaysOnTop(value:Boolean) : void { - this.var_374 = value; + this.§_-CL§ = value; } public function get boundBoxId() : int { - return this.var_268; + return this.§_-jD§; } public function set boundBoxId(value:int) : void { - this.var_268 = value; + this.§_-jD§ = value; } public function get height() : Number @@ -82,24 +82,24 @@ package package_48 this._height = value; } - public function get id() : name_155 + public function get id() : Long { - return this.var_101; + return this.§_-3I§; } - public function set id(value:name_155) : void + public function set id(value:Long) : void { - this.var_101 = value; + this.§_-3I§ = value; } - public function get materialId() : name_213 + public function get materialId() : Id { - return this.var_301; + return this.§_-pS§; } - public function set materialId(value:name_213) : void + public function set materialId(value:Id) : void { - this.var_301 = value; + this.§_-pS§ = value; } public function get name() : String @@ -114,82 +114,82 @@ package package_48 public function get originX() : Number { - return this.var_377; + return this.§_-4T§; } public function set originX(value:Number) : void { - this.var_377 = value; + this.§_-4T§ = value; } public function get originY() : Number { - return this.var_375; + return this.§_-TP§; } public function set originY(value:Number) : void { - this.var_375 = value; + this.§_-TP§ = value; } - public function get parentId() : name_155 + public function get parentId() : Long { - return this.var_270; + return this.§_-fP§; } - public function set parentId(value:name_155) : void + public function set parentId(value:Long) : void { - this.var_270 = value; + this.§_-fP§ = value; } public function get perspectiveScale() : Boolean { - return this.var_378; + return this.§_-2t§; } public function set perspectiveScale(value:Boolean) : void { - this.var_378 = value; + this.§_-2t§ = value; } public function get rotation() : Number { - return this.var_376; + return this.§_-Vd§; } public function set rotation(value:Number) : void { - this.var_376 = value; + this.§_-Vd§ = value; } public function get transform() : A3D2Transform { - return this.var_262; + return this.§_-bP§; } public function set transform(value:A3D2Transform) : void { - this.var_262 = value; + this.§_-bP§ = value; } public function get visible() : Boolean { - return this.var_267; + return this.§_-1u§; } public function set visible(value:Boolean) : void { - this.var_267 = value; + this.§_-1u§ = value; } public function get width() : Number { - return this.var_110; + return this.§_-qj§; } public function set width(value:Number) : void { - this.var_110 = value; + this.§_-qj§ = value; } public function toString() : String diff --git a/src/package_48/A3D2Surface.as b/src/versions/version2/a3d/objects/A3D2Surface.as similarity index 65% rename from src/package_48/A3D2Surface.as rename to src/versions/version2/a3d/objects/A3D2Surface.as index 711a334..b44707c 100644 --- a/src/package_48/A3D2Surface.as +++ b/src/versions/version2/a3d/objects/A3D2Surface.as @@ -1,49 +1,49 @@ -package package_48 +package versions.version2.a3d.objects { public class A3D2Surface { - private var var_299:int; + private var §_-50§:int; - private var var_301:int; + private var §_-pS§:int; - private var var_300:int; + private var §_-4C§:int; public function A3D2Surface(indexBegin:int, materialId:int, numTriangles:int) { super(); - this.var_299 = indexBegin; - this.var_301 = materialId; - this.var_300 = numTriangles; + this.§_-50§ = indexBegin; + this.§_-pS§ = materialId; + this.§_-4C§ = numTriangles; } public function get indexBegin() : int { - return this.var_299; + return this.§_-50§; } public function set indexBegin(value:int) : void { - this.var_299 = value; + this.§_-50§ = value; } public function get materialId() : int { - return this.var_301; + return this.§_-pS§; } public function set materialId(value:int) : void { - this.var_301 = value; + this.§_-pS§ = value; } public function get numTriangles() : int { - return this.var_300; + return this.§_-4C§; } public function set numTriangles(value:int) : void { - this.var_300 = value; + this.§_-4C§ = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Transform.as b/src/versions/version2/a3d/objects/A3D2Transform.as new file mode 100644 index 0000000..b81b61c --- /dev/null +++ b/src/versions/version2/a3d/objects/A3D2Transform.as @@ -0,0 +1,33 @@ +package versions.version2.a3d.objects +{ + import commons.A3DMatrix; + + public class A3D2Transform + { + private var §_-6p§:A3DMatrix; + + public function A3D2Transform(matrix:A3DMatrix) + { + super(); + this.§_-6p§ = matrix; + } + + public function get matrix() : A3DMatrix + { + return this.§_-6p§; + } + + public function set matrix(value:A3DMatrix) : void + { + this.§_-6p§ = value; + } + + public function toString() : String + { + var result:String = "A3D2Transform ["; + result += "matrix = " + this.matrix + " "; + return result + "]"; + } + } +} +