From c9a017270b773e3a672c4f7bb049433d24b913d5 Mon Sep 17 00:00:00 2001 From: Pyogenics Date: Fri, 9 May 2025 18:28:28 +0100 Subject: [PATCH] Use rename identifiers --- src/?_-5U?/?_-Kr?.as | 209 --- src/?_-9C?.as | 15 - src/?_-9n?/?_-kB?.as | 91 -- src/?_-Fc?/?_-8a?.as | 353 ---- src/?_-I0?/?_-bt?.as | 443 ----- src/?_-I0?/?_-hB?.as | 473 ------ src/?_-Lz?.as | 15 - src/?_-M9?.as | 15 - src/?_-OZ?/?_-FA?.as | 392 ----- src/?_-RG?/A3DMapBuilder.as | 444 ----- src/?_-Wh?/?_-4Q?.as | 231 --- src/?_-YQ?/?_-A3?.as | 1431 ----------------- src/?_-YQ?/?_-DN?.as | 92 -- src/?_-Yj?/TankMaterial2.as | 699 -------- src/?_-aF?/?_-SG?.as | 232 --- src/?_-aa?/?_-i0?.as | 101 -- src/?_-az?/?_-1H?.as | 175 -- src/?_-az?/?_-AG?.as | 216 --- src/?_-cv?/?_-YU?.as | 198 --- src/?_-fj?/?_-1t?.as | 118 -- src/?_-fj?/?_-cx?.as | 688 -------- src/?_-fj?/?_-nL?.as | 151 -- src/?_-nO?/?_-Yk?.as | 133 -- src/?function?/?_-T?.as | 122 -- src/Preloader.as | 98 +- src/TanksTestingTool.as | 286 ++-- src/_assets/{13__-9C.jpg => 13_name_81.jpg} | Bin src/_assets/{14__-M9.jpg => 14_name_83.jpg} | Bin src/_assets/{16__-Lz.jpg => 16_name_82.jpg} | Bin src/_codec/commons/CodecA3DMatrix.as | 96 +- src/_codec/commons/CodecId.as | 8 +- src/_codec/versions/version1/a3d/CodecA3D.as | 48 +- .../version1/a3d/geometry/CodecA3DGeometry.as | 24 +- .../a3d/geometry/CodecA3DIndexBuffer.as | 16 +- .../a3d/geometry/CodecA3DVertexBuffer.as | 24 +- .../versions/version1/a3d/id/CodecParentId.as | 8 +- .../version1/a3d/materials/CodecA3DImage.as | 16 +- .../version1/a3d/materials/CodecA3DMap.as | 56 +- .../a3d/materials/CodecA3DMaterial.as | 56 +- .../version1/a3d/objects/CodecA3DBox.as | 16 +- .../version1/a3d/objects/CodecA3DObject.as | 64 +- .../version1/a3d/objects/CodecA3DSurface.as | 24 +- .../a3d/objects/CodecA3DTransformation.as | 8 +- src/_codec/versions/version2/a3d/CodecA3D2.as | 152 +- .../a3d/animation/CodecA3D2AnimationClip.as | 40 +- .../a3d/animation/CodecA3D2Keyframe.as | 16 +- .../version2/a3d/animation/CodecA3D2Track.as | 24 +- .../a3d/geometry/CodecA3D2IndexBuffer.as | 24 +- .../a3d/geometry/CodecA3D2VertexBuffer.as | 32 +- .../a3d/materials/CodecA3D2CubeMap.as | 56 +- .../version2/a3d/materials/CodecA3D2Image.as | 16 +- .../version2/a3d/materials/CodecA3D2Map.as | 24 +- .../a3d/materials/CodecA3D2Material.as | 64 +- .../a3d/objects/CodecA3D2AmbientLight.as | 64 +- .../version2/a3d/objects/CodecA3D2Box.as | 16 +- .../version2/a3d/objects/CodecA3D2Decal.as | 80 +- .../a3d/objects/CodecA3D2DirectionalLight.as | 64 +- .../version2/a3d/objects/CodecA3D2Joint.as | 48 +- .../objects/CodecA3D2JointBindTransform.as | 16 +- .../version2/a3d/objects/CodecA3D2Mesh.as | 72 +- .../version2/a3d/objects/CodecA3D2Object.as | 48 +- .../a3d/objects/CodecA3D2OmniLight.as | 80 +- .../version2/a3d/objects/CodecA3D2Skin.as | 96 +- .../a3d/objects/CodecA3D2SpotLight.as | 96 +- .../version2/a3d/objects/CodecA3D2Sprite.as | 112 +- .../version2/a3d/objects/CodecA3D2Surface.as | 24 +- .../a3d/objects/CodecA3D2Transform.as | 8 +- .../engine3d/animation/AnimationController.as | 86 +- .../engine3d/animation/AnimationNode.as | 6 +- .../engine3d/animation/AnimationNotify.as | 8 +- .../engine3d/animation/AnimationState.as | 96 +- .../engine3d/animation/keys/Keyframe.as | 6 +- .../engine3d/animation/keys/NumberKey.as | 8 +- .../engine3d/collisions/EllipsoidCollider.as | 204 +-- src/alternativa/engine3d/core/DrawUnit.as | 224 +-- src/alternativa/engine3d/core/Light3D.as | 6 +- src/alternativa/engine3d/core/Object3D.as | 16 +- src/alternativa/engine3d/core/Renderer.as | 34 +- .../engine3d/core/events/Event3D.as | 30 +- .../engine3d/core/events/MouseEvent3D.as | 6 +- src/alternativa/engine3d/effects/Particle.as | 8 +- .../engine3d/effects/ParticlePrototype.as | 84 +- .../engine3d/effects/ParticleSystem.as | 90 +- src/alternativa/engine3d/lights/OmniLight.as | 12 +- src/alternativa/engine3d/lights/SpotLight.as | 102 +- .../engine3d/loaders/ParserCollada.as | 46 +- .../engine3d/loaders/ParserMaterial.as | 16 +- .../engine3d/loaders/collada/DaeChannel.as | 56 +- .../engine3d/loaders/collada/DaeController.as | 94 +- .../engine3d/loaders/collada/DaeDocument.as | 24 +- .../engine3d/loaders/collada/DaeEffect.as | 24 +- .../engine3d/loaders/collada/DaeElement.as | 10 +- .../engine3d/loaders/collada/DaeGeometry.as | 24 +- .../engine3d/loaders/collada/DaeInput.as | 2 +- .../engine3d/loaders/collada/DaeNode.as | 94 +- .../engine3d/loaders/collada/DaeObject.as | 6 +- .../engine3d/loaders/collada/DaeSampler.as | 68 +- .../engine3d/loaders/collada/DaeSource.as | 30 +- .../engine3d/loaders/collada/DaeVertex.as | 16 +- .../engine3d/loaders/collada/DaeVertices.as | 6 +- .../engine3d/materials/FillMaterial.as | 6 +- .../engine3d/materials/StandardMaterial.as | 70 +- .../engine3d/materials/TextureMaterial.as | 22 +- .../materials/compiler/DestinationVariable.as | 12 +- .../engine3d/materials/compiler/Linker.as | 192 +-- .../engine3d/materials/compiler/Procedure.as | 100 +- .../materials/compiler/RelativeVariable.as | 8 +- .../materials/compiler/SamplerVariable.as | 46 +- .../materials/compiler/SourceVariable.as | 8 +- .../engine3d/materials/compiler/Variable.as | 10 +- src/alternativa/engine3d/objects/Decal.as | 4 +- src/alternativa/engine3d/objects/Joint.as | 6 +- src/alternativa/engine3d/objects/Mesh.as | 34 +- src/alternativa/engine3d/objects/Skin.as | 72 +- src/alternativa/engine3d/objects/SkyBox.as | 70 +- src/alternativa/engine3d/objects/WireFrame.as | 16 +- .../engine3d/resources/Geometry.as | 72 +- .../engine3d/resources/WireGeometry.as | 64 +- .../shadows/DirectionalShadowRenderer.as | 88 +- .../engine3d/shadows/ShadowRenderer.as | 4 +- .../engine3d/shadows/ShadowsSystem.as | 34 +- .../engine3d/shadows/StaticShadowRenderer.as | 82 +- .../osgi/bundle/BundleDescriptor.as | 14 +- .../osgi/service/console/Console.as | 210 +-- .../osgi/service/display/Display.as | 62 +- .../osgi/service/dump/DumpService.as | 34 +- .../service/launcherparams/LauncherParams.as | 6 +- .../osgi/service/locale/LocaleService.as | 24 +- .../osgi/service/network/NetworkService.as | 18 +- src/alternativa/physics/Body.as | 148 +- src/alternativa/physics/BodyMaterial.as | 4 +- src/alternativa/physics/Contact.as | 16 +- src/alternativa/physics/ContactPoint.as | 10 +- src/alternativa/physics/PhysicsScene.as | 252 +-- .../physics/collision/CollisionKdNode.as | 8 +- .../collision/colliders/BoxRectCollider.as | 60 +- .../collision/colliders/BoxSphereCollider.as | 74 +- .../colliders/SphereSphereCollider.as | 2 +- .../collision/primitives/CollisionRect.as | 2 +- .../physics/constraints/Constraint.as | 2 +- src/alternativa/protocol/OptionalMap.as | 32 +- src/alternativa/protocol/ProtocolBuffer.as | 24 +- .../protocol/codec/OptionalCodecDecorator.as | 8 +- src/alternativa/protocol/impl/Protocol.as | 16 +- .../protocol/info/CollectionCodecInfo.as | 12 +- .../protocol/info/TypeCodecInfo.as | 6 +- .../tanks/TextureResourceService.as | 46 +- src/alternativa/tanks/config/BlobLibrary.as | 10 +- .../tanks/config/TankPartsLibrary.as | 62 +- .../config/loaders/ImageSequenceLoader.as | 10 +- .../config/loaders/TankPartsBatchLoader.as | 12 +- .../loaders/tankparts/TankHullLoader.as | 4 +- .../loaders/tankparts/TankTurretLoader.as | 4 +- src/alternativa/tanks/game/Entity.as | 16 +- src/alternativa/tanks/game/GameTask.as | 14 +- .../tanks/game/ObjectController.as | 54 +- .../tanks/game/camera/AxisIndicator.as | 8 +- .../tanks/game/camera/FreeCameraController.as | 48 +- .../tanks/game/effects/AnimatedPlaneEffect.as | 10 +- .../game/effects/AnimatedSpriteEffect.as | 6 +- src/alternativa/tanks/game/effects/Blinker.as | 30 +- .../game/effects/MovingAnimatedSprite.as | 6 +- .../tanks/game/entities/EventStates.as | 20 +- .../game/entities/map/A3DMapComponent.as | 48 +- .../game/entities/map/VisibleLightMaterial.as | 6 +- .../tank/BasicWeaponManualControlComponent.as | 34 +- .../tanks/game/entities/tank/TankHull.as | 26 +- .../tanks/game/entities/tank/TankTurret.as | 6 +- .../TrackedChassisManualControlComponent.as | 6 +- .../DirectionalShadowRendererConstructor.as | 2 +- .../tank/graphics/GraphicsControlComponent.as | 34 +- .../tank/graphics/TankExplosionComponent.as | 6 +- .../graphics/chassis/tracked/TrackAnimator.as | 40 +- .../TrackedChassisGraphicsComponent.as | 154 +- .../graphics/materials/GiShadowMaterial.as | 8 +- .../tank/graphics/materials/TankMaterial.as | 68 +- .../graphics/materials/TracksMaterial2.as | 32 +- .../tank/graphics/materials/TreesMaterial.as | 6 +- .../turret/TurretGraphicsComponent.as | 52 +- .../tank/physics/InterpolationComponent.as | 10 +- .../tracked/legacy/LegacySuspensionRay.as | 92 +- .../chassis/tracked/legacy/SuspensionData.as | 12 +- .../physics/turret/TurretPhysicsComponent.as | 120 +- .../tanks/game/physics/TurretCollisioinBox.as | 4 +- .../subsystems/eventsystem/EventSystem.as | 12 +- .../rendersystem/DirectionalLightList.as | 20 +- .../game/subsystems/rendersystem/Lights.as | 34 +- .../subsystems/rendersystem/OmniLightList.as | 20 +- .../subsystems/rendersystem/RenderSystem.as | 184 +-- .../rendersystem/ResourceManager.as | 46 +- .../subsystems/rendersystem/SkyMaterial.as | 20 +- .../subsystems/rendersystem/SpotLightList.as | 20 +- .../subsystems/rendersystem/TextMarker.as | 8 +- .../tanks/game/usertitle/?_-C6?.as | 11 - .../tanks/game/usertitle/component/?_-YR?.as | 166 -- .../component/{?_-CD?.as => class_29.as} | 8 +- .../game/usertitle/component/name_156.as | 166 ++ .../component/{?_-Up?.as => name_441.as} | 4 +- .../component/{?_-po?.as => name_442.as} | 4 +- .../component/{?_-Rd?.as => name_444.as} | 4 +- .../component/{?_-3v?.as => name_455.as} | 4 +- .../usertitle/{?class?.as => name_440.as} | 334 ++-- .../tanks/game/usertitle/name_443.as | 11 + .../game/usertitle/{?_-fe?.as => name_454.as} | 4 +- .../game/usertitle/{?_-Ip?.as => name_557.as} | 76 +- .../game/usertitle/{?_-4R?.as => name_559.as} | 40 +- .../game/usertitle/{?_-K9?.as => name_560.as} | 68 +- .../game/usertitle/{?_-ml?.as => name_592.as} | 4 +- .../tanks/game/utils/PhysicsParsingUtils.as | 4 +- src/alternativa/tanks/game/utils/Task.as | 6 +- .../tanks/game/utils/TaskSequence.as | 8 +- src/alternativa/tanks/game/utils/TimeStat.as | 26 +- src/alternativa/tanks/game/utils/list/List.as | 6 +- .../tanks/game/utils/list/ListIteratorImpl.as | 48 +- .../utils/objectpool/ObjectPoolManager.as | 6 +- .../ContinuousActionGunPlatformComponent.as | 64 +- .../game/weapons/EnergyShotWeaponComponent.as | 74 +- .../weapons/InstantShotWeaponComponent.as | 74 +- .../ammunition/energy/EnergyRoundComponent.as | 58 +- .../plasma/PlasmaRoundEffectsFactory.as | 4 +- .../railgun/MultybodyRaycastFilter.as | 4 +- .../splashhit/debug/DebugSplashDamage.as | 6 +- .../splashhit/debug/DebugSplashDamageAmmo.as | 8 +- .../splashhit/debug/SmokyExplosion.as | 12 +- .../ammunition/splashhit/debug/SmokyShot.as | 12 +- .../ConicAreaWeaponComponent.as | 20 +- .../game/weapons/flamethrower/FlameThrower.as | 28 +- .../flamethrower/FlamethrowerSFXComponent.as | 2 +- .../targeting/ConicAreaTargetingSystem.as | 28 +- .../targeting/EnergyTargetingSystem.as | 10 +- .../targeting/GenericTargetingSystem.as | 20 +- .../targeting/RailgunTargetingSystem.as | 12 +- .../thunder/ThunderShotEffectComponent.as | 18 +- .../tanks/lightsmanager/LightsManager.as | 12 +- .../tanks/sounds/ChassisSoundCallback.as | 58 +- .../tanks/sounds/TurretSoundCallback.as | 20 +- src/alternativa/tanks/utils/Task.as | 6 +- src/alternativa/tanks/utils/TaskSequence.as | 8 +- src/alternativa/types/Long.as | 18 +- src/alternativa/utils/ByteArrayMap.as | 10 +- src/commons/A3DMatrix.as | 88 +- src/commons/Id.as | 8 +- src/name_81.as | 15 + src/name_82.as | 15 + src/name_83.as | 15 + src/package_1/TankMaterial2.as | 699 ++++++++ .../?_-Wb?.as => package_100/class_34.as} | 60 +- .../?_-Np?.as => package_101/name_552.as} | 82 +- .../?_-ew?.as => package_101/name_590.as} | 92 +- src/package_101/name_591.as | 91 ++ src/package_102/name_550.as | 392 +++++ .../?_-S6?.as => package_103/class_37.as} | 174 +- .../?_-X8?.as => package_11/name_288.as} | 56 +- .../?_-2n?.as => package_12/class_31.as} | 50 +- .../?_-oP?.as => package_14/name_3.as} | 76 +- src/package_15/name_102.as | 175 ++ src/package_15/name_17.as | 216 +++ src/package_16/name_18.as | 198 +++ .../?_-Tv?.as => package_16/name_91.as} | 68 +- .../?_-Hr?.as => package_22/name_89.as} | 24 +- src/package_23/name_92.as | 101 ++ .../?_-cS?.as => package_23/name_94.as} | 72 +- src/package_24/name_96.as | 133 ++ src/{?in ? => package_26}/DeferredCommand.as | 2 +- .../DeferredCommandsSystem.as | 2 +- src/package_27/name_98.as | 353 ++++ .../?_-Yf?.as => package_28/name_101.as} | 216 +-- .../?_-18?.as => package_3/name_475.as} | 330 ++-- .../?_-JI?.as => package_33/class_14.as} | 702 ++++---- .../?_-be?.as => package_33/name_135.as} | 100 +- .../?_-KQ?.as => package_37/name_168.as} | 88 +- src/package_37/name_212.as | 122 ++ src/package_4/name_215.as | 443 +++++ src/package_4/name_216.as | 473 ++++++ src/package_42/name_147.as | 688 ++++++++ src/package_42/name_384.as | 151 ++ src/package_42/name_417.as | 118 ++ src/{? var? => package_43}/TankHullParser.as | 34 +- src/{? var? => package_43}/TankPartParser.as | 2 +- .../TankPartParsingUtils.as | 2 +- .../TankTurretParser.as | 8 +- .../?_-q4?.as => package_46/class_26.as} | 160 +- .../?_-B0?.as => package_48/class_24.as} | 118 +- src/package_48/name_77.as | 232 +++ src/package_5/A3DMapBuilder.as | 444 +++++ .../?_-pE?.as => package_5/name_11.as} | 250 +-- .../CollisionKdTree2D.as | 122 +- .../?_-D-?.as => package_51/name_492.as} | 160 +- .../?_-LG?.as => package_51/name_508.as} | 192 +-- src/package_53/name_241.as | 231 +++ .../?_-ZI?.as => package_54/name_354.as} | 366 ++--- .../?_-e5?.as => package_56/name_183.as} | 84 +- .../?_-nR?.as => package_57/name_179.as} | 128 +- .../?_-FW?.as => package_58/name_334.as} | 34 +- src/package_6/name_16.as | 92 ++ src/package_6/name_50.as | 1431 +++++++++++++++++ .../?_-ig?.as => package_62/name_211.as} | 76 +- .../?_-eG?.as => package_79/name_358.as} | 486 +++--- .../?_-m3?.as => package_80/name_311.as} | 28 +- .../?_-Fh?.as => package_83/name_470.as} | 390 ++--- .../?_-Ph?.as => package_84/name_495.as} | 256 +-- .../?_-hu?.as => package_84/name_497.as} | 280 ++-- src/package_9/name_15.as | 209 +++ src/tankshudDemo/TanksHudDemo.as | 130 +- src/versions/version1/a3d/A3D.as | 40 +- .../version1/a3d/geometry/A3DGeometry.as | 24 +- .../version1/a3d/geometry/A3DIndexBuffer.as | 16 +- .../version1/a3d/geometry/A3DVertexBuffer.as | 24 +- src/versions/version1/a3d/id/ParentId.as | 8 +- .../version1/a3d/materials/A3DImage.as | 16 +- src/versions/version1/a3d/materials/A3DMap.as | 56 +- .../version1/a3d/materials/A3DMaterial.as | 56 +- src/versions/version1/a3d/objects/A3DBox.as | 16 +- .../version1/a3d/objects/A3DObject.as | 56 +- .../version1/a3d/objects/A3DSurface.as | 24 +- .../version1/a3d/objects/A3DTransformation.as | 8 +- src/versions/version2/a3d/A3D2.as | 152 +- .../a3d/animation/A3D2AnimationClip.as | 32 +- .../version2/a3d/animation/A3D2Keyframe.as | 16 +- .../version2/a3d/animation/A3D2Track.as | 24 +- .../version2/a3d/geometry/A3D2IndexBuffer.as | 24 +- .../version2/a3d/geometry/A3D2VertexBuffer.as | 32 +- .../version2/a3d/materials/A3D2CubeMap.as | 56 +- .../version2/a3d/materials/A3D2Image.as | 16 +- .../version2/a3d/materials/A3D2Map.as | 24 +- .../version2/a3d/materials/A3D2Material.as | 64 +- .../version2/a3d/objects/A3D2AmbientLight.as | 56 +- src/versions/version2/a3d/objects/A3D2Box.as | 16 +- .../version2/a3d/objects/A3D2Decal.as | 72 +- .../a3d/objects/A3D2DirectionalLight.as | 56 +- .../version2/a3d/objects/A3D2Joint.as | 40 +- .../a3d/objects/A3D2JointBindTransform.as | 16 +- src/versions/version2/a3d/objects/A3D2Mesh.as | 64 +- .../version2/a3d/objects/A3D2Object.as | 40 +- .../version2/a3d/objects/A3D2OmniLight.as | 72 +- src/versions/version2/a3d/objects/A3D2Skin.as | 88 +- .../version2/a3d/objects/A3D2SpotLight.as | 88 +- .../version2/a3d/objects/A3D2Sprite.as | 96 +- .../version2/a3d/objects/A3D2Surface.as | 24 +- .../version2/a3d/objects/A3D2Transform.as | 8 +- 340 files changed, 15000 insertions(+), 15000 deletions(-) delete mode 100644 src/?_-5U?/?_-Kr?.as delete mode 100644 src/?_-9C?.as delete mode 100644 src/?_-9n?/?_-kB?.as delete mode 100644 src/?_-Fc?/?_-8a?.as delete mode 100644 src/?_-I0?/?_-bt?.as delete mode 100644 src/?_-I0?/?_-hB?.as delete mode 100644 src/?_-Lz?.as delete mode 100644 src/?_-M9?.as delete mode 100644 src/?_-OZ?/?_-FA?.as delete mode 100644 src/?_-RG?/A3DMapBuilder.as delete mode 100644 src/?_-Wh?/?_-4Q?.as delete mode 100644 src/?_-YQ?/?_-A3?.as delete mode 100644 src/?_-YQ?/?_-DN?.as delete mode 100644 src/?_-Yj?/TankMaterial2.as delete mode 100644 src/?_-aF?/?_-SG?.as delete mode 100644 src/?_-aa?/?_-i0?.as delete mode 100644 src/?_-az?/?_-1H?.as delete mode 100644 src/?_-az?/?_-AG?.as delete mode 100644 src/?_-cv?/?_-YU?.as delete mode 100644 src/?_-fj?/?_-1t?.as delete mode 100644 src/?_-fj?/?_-cx?.as delete mode 100644 src/?_-fj?/?_-nL?.as delete mode 100644 src/?_-nO?/?_-Yk?.as delete mode 100644 src/?function?/?_-T?.as rename src/_assets/{13__-9C.jpg => 13_name_81.jpg} (100%) rename src/_assets/{14__-M9.jpg => 14_name_83.jpg} (100%) rename src/_assets/{16__-Lz.jpg => 16_name_82.jpg} (100%) delete mode 100644 src/alternativa/tanks/game/usertitle/?_-C6?.as delete mode 100644 src/alternativa/tanks/game/usertitle/component/?_-YR?.as rename src/alternativa/tanks/game/usertitle/component/{?_-CD?.as => class_29.as} (58%) create mode 100644 src/alternativa/tanks/game/usertitle/component/name_156.as rename src/alternativa/tanks/game/usertitle/component/{?_-Up?.as => name_441.as} (70%) rename src/alternativa/tanks/game/usertitle/component/{?_-po?.as => name_442.as} (67%) rename src/alternativa/tanks/game/usertitle/component/{?_-Rd?.as => name_444.as} (70%) rename src/alternativa/tanks/game/usertitle/component/{?_-3v?.as => name_455.as} (76%) rename src/alternativa/tanks/game/usertitle/{?class?.as => name_440.as} (53%) create mode 100644 src/alternativa/tanks/game/usertitle/name_443.as rename src/alternativa/tanks/game/usertitle/{?_-fe?.as => name_454.as} (51%) rename src/alternativa/tanks/game/usertitle/{?_-Ip?.as => name_557.as} (71%) rename src/alternativa/tanks/game/usertitle/{?_-4R?.as => name_559.as} (68%) rename src/alternativa/tanks/game/usertitle/{?_-K9?.as => name_560.as} (52%) rename src/alternativa/tanks/game/usertitle/{?_-ml?.as => name_592.as} (87%) create mode 100644 src/name_81.as create mode 100644 src/name_82.as create mode 100644 src/name_83.as create mode 100644 src/package_1/TankMaterial2.as rename src/{?_-mX?/?_-Wb?.as => package_100/class_34.as} (54%) rename src/{?_-9n?/?_-Np?.as => package_101/name_552.as} (59%) rename src/{?_-9n?/?_-ew?.as => package_101/name_590.as} (52%) create mode 100644 src/package_101/name_591.as create mode 100644 src/package_102/name_550.as rename src/{?_-9j?/?_-S6?.as => package_103/class_37.as} (59%) rename src/{?_-GD?/?_-X8?.as => package_11/name_288.as} (61%) rename src/{?_-O5?/?_-2n?.as => package_12/class_31.as} (61%) rename src/{?_-Uy?/?_-oP?.as => package_14/name_3.as} (65%) create mode 100644 src/package_15/name_102.as create mode 100644 src/package_15/name_17.as create mode 100644 src/package_16/name_18.as rename src/{?_-cv?/?_-Tv?.as => package_16/name_91.as} (56%) rename src/{?return?/?_-Hr?.as => package_22/name_89.as} (67%) create mode 100644 src/package_23/name_92.as rename src/{?_-aa?/?_-cS?.as => package_23/name_94.as} (54%) create mode 100644 src/package_24/name_96.as rename src/{?in ? => package_26}/DeferredCommand.as (91%) rename src/{?in ? => package_26}/DeferredCommandsSystem.as (93%) create mode 100644 src/package_27/name_98.as rename src/{?_-aM?/?_-Yf?.as => package_28/name_101.as} (59%) rename src/{?_-Vh?/?_-18?.as => package_3/name_475.as} (52%) rename src/{?_-8D?/?_-JI?.as => package_33/class_14.as} (75%) rename src/{?_-8D?/?_-be?.as => package_33/name_135.as} (89%) rename src/{?function?/?_-KQ?.as => package_37/name_168.as} (50%) create mode 100644 src/package_37/name_212.as create mode 100644 src/package_4/name_215.as create mode 100644 src/package_4/name_216.as create mode 100644 src/package_42/name_147.as create mode 100644 src/package_42/name_384.as create mode 100644 src/package_42/name_417.as rename src/{? var? => package_43}/TankHullParser.as (84%) rename src/{? var? => package_43}/TankPartParser.as (96%) rename src/{? var? => package_43}/TankPartParsingUtils.as (95%) rename src/{? var? => package_43}/TankTurretParser.as (80%) rename src/{?_-9Z?/?_-q4?.as => package_46/class_26.as} (62%) rename src/{?_-aF?/?_-B0?.as => package_48/class_24.as} (84%) create mode 100644 src/package_48/name_77.as create mode 100644 src/package_5/A3DMapBuilder.as rename src/{?_-RG?/?_-pE?.as => package_5/name_11.as} (51%) rename src/{?_-1e? => package_51}/CollisionKdTree2D.as (67%) rename src/{?_-1e?/?_-D-?.as => package_51/name_492.as} (68%) rename src/{?_-1e?/?_-LG?.as => package_51/name_508.as} (58%) create mode 100644 src/package_53/name_241.as rename src/{?_-fT?/?_-ZI?.as => package_54/name_354.as} (59%) rename src/{?_-K8?/?_-e5?.as => package_56/name_183.as} (61%) rename src/{?_-LL?/?_-nR?.as => package_57/name_179.as} (55%) rename src/{?_-KA?/?_-FW?.as => package_58/name_334.as} (77%) create mode 100644 src/package_6/name_16.as create mode 100644 src/package_6/name_50.as rename src/{?_-ks?/?_-ig?.as => package_62/name_211.as} (55%) rename src/{?_-bJ?/?_-eG?.as => package_79/name_358.as} (64%) rename src/{?_-pe?/?_-m3?.as => package_80/name_311.as} (85%) rename src/{?_-am?/?_-Fh?.as => package_83/name_470.as} (66%) rename src/{?while?/?_-Ph?.as => package_84/name_495.as} (66%) rename src/{?while?/?_-hu?.as => package_84/name_497.as} (67%) create mode 100644 src/package_9/name_15.as diff --git a/src/?_-5U?/?_-Kr?.as b/src/?_-5U?/?_-Kr?.as deleted file mode 100644 index fdd2100..0000000 --- a/src/?_-5U?/?_-Kr?.as +++ /dev/null @@ -1,209 +0,0 @@ -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/?_-9C?.as b/src/?_-9C?.as deleted file mode 100644 index 0be7dc0..0000000 --- a/src/?_-9C?.as +++ /dev/null @@ -1,15 +0,0 @@ -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/?_-9n?/?_-kB?.as b/src/?_-9n?/?_-kB?.as deleted file mode 100644 index ca22dc5..0000000 --- a/src/?_-9n?/?_-kB?.as +++ /dev/null @@ -1,91 +0,0 @@ -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 deleted file mode 100644 index 1fe7259..0000000 --- a/src/?_-Fc?/?_-8a?.as +++ /dev/null @@ -1,353 +0,0 @@ -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/?_-I0?/?_-bt?.as b/src/?_-I0?/?_-bt?.as deleted file mode 100644 index 6ae10ec..0000000 --- a/src/?_-I0?/?_-bt?.as +++ /dev/null @@ -1,443 +0,0 @@ -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 deleted file mode 100644 index 0fa0c15..0000000 --- a/src/?_-I0?/?_-hB?.as +++ /dev/null @@ -1,473 +0,0 @@ -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/?_-Lz?.as b/src/?_-Lz?.as deleted file mode 100644 index df5cba9..0000000 --- a/src/?_-Lz?.as +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 5abe8bd..0000000 --- a/src/?_-M9?.as +++ /dev/null @@ -1,15 +0,0 @@ -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/?_-OZ?/?_-FA?.as b/src/?_-OZ?/?_-FA?.as deleted file mode 100644 index 65533c2..0000000 --- a/src/?_-OZ?/?_-FA?.as +++ /dev/null @@ -1,392 +0,0 @@ -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/?_-RG?/A3DMapBuilder.as b/src/?_-RG?/A3DMapBuilder.as deleted file mode 100644 index f685bd4..0000000 --- a/src/?_-RG?/A3DMapBuilder.as +++ /dev/null @@ -1,444 +0,0 @@ -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/?_-Wh?/?_-4Q?.as b/src/?_-Wh?/?_-4Q?.as deleted file mode 100644 index faecc44..0000000 --- a/src/?_-Wh?/?_-4Q?.as +++ /dev/null @@ -1,231 +0,0 @@ -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 deleted file mode 100644 index a24f6eb..0000000 --- a/src/?_-YQ?/?_-A3?.as +++ /dev/null @@ -1,1431 +0,0 @@ -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 deleted file mode 100644 index a23e8d4..0000000 --- a/src/?_-YQ?/?_-DN?.as +++ /dev/null @@ -1,92 +0,0 @@ -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 deleted file mode 100644 index d8a4399..0000000 --- a/src/?_-Yj?/TankMaterial2.as +++ /dev/null @@ -1,699 +0,0 @@ -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/?_-aF?/?_-SG?.as b/src/?_-aF?/?_-SG?.as deleted file mode 100644 index 1258aba..0000000 --- a/src/?_-aF?/?_-SG?.as +++ /dev/null @@ -1,232 +0,0 @@ -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/?_-aa?/?_-i0?.as b/src/?_-aa?/?_-i0?.as deleted file mode 100644 index e3b2c28..0000000 --- a/src/?_-aa?/?_-i0?.as +++ /dev/null @@ -1,101 +0,0 @@ -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/?_-az?/?_-1H?.as b/src/?_-az?/?_-1H?.as deleted file mode 100644 index 8a39e7f..0000000 --- a/src/?_-az?/?_-1H?.as +++ /dev/null @@ -1,175 +0,0 @@ -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 deleted file mode 100644 index 84d042b..0000000 --- a/src/?_-az?/?_-AG?.as +++ /dev/null @@ -1,216 +0,0 @@ -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/?_-cv?/?_-YU?.as b/src/?_-cv?/?_-YU?.as deleted file mode 100644 index 5467f8f..0000000 --- a/src/?_-cv?/?_-YU?.as +++ /dev/null @@ -1,198 +0,0 @@ -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/?_-fj?/?_-1t?.as b/src/?_-fj?/?_-1t?.as deleted file mode 100644 index 3cba7a7..0000000 --- a/src/?_-fj?/?_-1t?.as +++ /dev/null @@ -1,118 +0,0 @@ -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 deleted file mode 100644 index 6d311c1..0000000 --- a/src/?_-fj?/?_-cx?.as +++ /dev/null @@ -1,688 +0,0 @@ -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 deleted file mode 100644 index da196ce..0000000 --- a/src/?_-fj?/?_-nL?.as +++ /dev/null @@ -1,151 +0,0 @@ -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/?_-nO?/?_-Yk?.as b/src/?_-nO?/?_-Yk?.as deleted file mode 100644 index 19df8ee..0000000 --- a/src/?_-nO?/?_-Yk?.as +++ /dev/null @@ -1,133 +0,0 @@ -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/?function?/?_-T?.as b/src/?function?/?_-T?.as deleted file mode 100644 index 61f02b9..0000000 --- a/src/?function?/?_-T?.as +++ /dev/null @@ -1,122 +0,0 @@ -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/Preloader.as b/src/Preloader.as index dca14b2..14f6e4d 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_21.name_84; + import package_21.name_85; + import package_21.name_86; public class Preloader extends Sprite { - private static const EmbedPreloader:Class = §_-Lz§; + private static const EmbedPreloader:Class = name_82; - private static const EmbedPreloaderA:Class = §_-9C§; + private static const EmbedPreloaderA:Class = name_81; - private static const EmbedProgress:Class = §_-M9§; + private static const EmbedProgress:Class = name_83; private var area:Shape = new Shape(); - private var §_-1q§:Bitmap = new EmbedPreloader(); + private var var_27:Bitmap = new EmbedPreloader(); - private var §_-Za§:Bitmap = new EmbedPreloaderA(); + private var var_28:Bitmap = new EmbedPreloaderA(); private var progress:Bitmap = new EmbedProgress(); private var context:Context3D; - public var maps:Vector.<§_-n4§>; + public var maps:Vector.; - private var §_-dH§:int; + private var var_31:int; private var counter:int; private var baseURL:String; - private var §_-m§:§_-pi§ = new §_-b1§(new BitmapData(1,1,false,8355711)); + private var var_30:name_86 = new name_84(new BitmapData(1,1,false,8355711)); - private var §_-UB§:Number = 0.09803921568627451; + private var var_29:Number = 0.09803921568627451; public function Preloader() { @@ -46,61 +46,61 @@ package addChild(this.area); this.area.alpha = 1; this.progress.alpha = 1; - this.§_-1q§.alpha = 1; - addChild(this.§_-1q§); - addChild(this.§_-Za§); + this.var_27.alpha = 1; + addChild(this.var_27); + addChild(this.var_28); addChild(this.progress); - addEventListener(Event.ADDED_TO_STAGE,this.§_-Id§); - addEventListener(Event.REMOVED_FROM_STAGE,this.§_-99§); + addEventListener(Event.ADDED_TO_STAGE,this.method_26); + addEventListener(Event.REMOVED_FROM_STAGE,this.method_25); this.progress.scaleX = 0.025; } - public function §_-QU§(param1:Number) : void + public function name_68(param1:Number) : void { this.progress.scaleX = param1; if(this.progress.scaleX >= 1) { - this.§_-Dq§(); + this.method_23(); } } - private function §_-Dq§() : void + private function method_23() : void { - addEventListener(Event.ENTER_FRAME,this.§_-ba§); + addEventListener(Event.ENTER_FRAME,this.method_15); } - public function §_-fE§(param1:Number) : void + public function method_27(param1:Number) : void { this.progress.scaleX += param1; if(this.progress.scaleX > 0.5) { - addEventListener(Event.ENTER_FRAME,this.§_-MO§); + addEventListener(Event.ENTER_FRAME,this.method_24); } if(this.progress.scaleX >= 1) { - this.§_-Dq§(); + this.method_23(); } } - private function §_-Id§(param1:Event) : void + private function method_26(param1:Event) : void { - stage.addEventListener(Event.RESIZE,this.§_-7B§); - this.§_-7B§(); + stage.addEventListener(Event.RESIZE,this.method_3); + this.method_3(); } - private function §_-99§(param1:Event) : void + private function method_25(param1:Event) : void { - stage.removeEventListener(Event.RESIZE,this.§_-7B§); + stage.removeEventListener(Event.RESIZE,this.method_3); } - private function §_-ba§(param1:Event) : void + private function method_15(param1:Event) : void { - this.area.alpha -= this.§_-UB§; - this.§_-1q§.alpha -= this.§_-UB§; - this.progress.alpha -= this.§_-UB§; + this.area.alpha -= this.var_29; + this.var_27.alpha -= this.var_29; + this.progress.alpha -= this.var_29; if(this.area.alpha <= 0) { - removeEventListener(Event.ENTER_FRAME,this.§_-ba§); + removeEventListener(Event.ENTER_FRAME,this.method_15); if(parent != null) { parent.removeChild(this); @@ -109,29 +109,29 @@ package } } - private function §_-MO§(param1:Event) : void + private function method_24(param1:Event) : void { - this.§_-Za§.alpha -= this.§_-UB§ * 1.5; - if(this.§_-Za§.alpha <= 0) + this.var_28.alpha -= this.var_29 * 1.5; + if(this.var_28.alpha <= 0) { - removeEventListener(Event.ENTER_FRAME,this.§_-MO§); + removeEventListener(Event.ENTER_FRAME,this.method_24); } } - private function §_-7B§(param1:Event = null) : void + private function method_3(param1:Event = null) : void { this.area.graphics.clear(); - 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.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.area.graphics.beginFill(0); - 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); + 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); } } } diff --git a/src/TanksTestingTool.as b/src/TanksTestingTool.as index a55b9d4..4010035 100644 --- a/src/TanksTestingTool.as +++ b/src/TanksTestingTool.as @@ -1,36 +1,5 @@ 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; @@ -42,21 +11,52 @@ package import flash.events.FullScreenEvent; import flash.events.KeyboardEvent; import flash.ui.Keyboard; + import package_1.TankMaterial2; + import package_1.name_13; + import package_1.name_30; + import package_1.name_31; + import package_1.name_7; + import package_10.name_23; + import package_11.name_4; + import package_12.name_27; + import package_13.name_28; + import package_14.name_3; + import package_15.name_17; + import package_16.name_18; + import package_17.name_28; + import package_18.name_51; + import package_2.name_1; + import package_2.name_10; + import package_2.name_26; + import package_2.name_9; + import package_3.name_12; + import package_3.name_29; + import package_3.name_6; + import package_4.name_24; + import package_4.name_25; + import package_5.name_11; + import package_5.name_2; + import package_6.name_16; + import package_6.name_50; + import package_7.name_32; + import package_7.name_33; + import package_8.name_14; + import package_9.name_15; [SWF(backgroundColor="#333333",frameRate="100",width="1024",height="768")] public class TanksTestingTool extends Sprite { - public static var testTask:§_-A3§; + public static var testTask:name_50; - private var config:§_-YU§; + private var config:name_18; - private var gameKernel:§_-AG§; + private var gameKernel:name_17; - private var §_-6s§:§_-0F§; + private var var_1:name_14; private var stage3D:Stage3D; - private var §_-nZ§:§_-Kr§; + private var var_2:name_15; private var preloader:Preloader = new Preloader(); @@ -65,173 +65,173 @@ package super(); mouseEnabled = false; mouseChildren = false; - this.§_-PK§(); - this.§_-l2§(); - this.§_-33§(); - this.§_-5D§(); - §_-Au§.fadeRadius = 7000; - §_-Au§.spotAngle = 140 * Math.PI / 180; - §_-Au§.fallofAngle = 170 * Math.PI / 180; + this.method_13(); + this.method_17(); + this.method_7(); + this.method_8(); + name_2.fadeRadius = 7000; + name_2.spotAngle = 140 * Math.PI / 180; + name_2.fallofAngle = 170 * Math.PI / 180; this.stage3D = stage.stage3Ds[0]; - this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.§_-9x§); + this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.method_9); this.stage3D.requestContext3D(); } - private function §_-9x§(param1:Event) : void + private function method_9(param1:Event) : void { - switch(§_-Pt§.§_-OP§(this.stage3D.context3D)) + switch(name_29.name_47(this.stage3D.context3D)) { - case §_-Wn§.DXT1: - this.§_-Bw§("cfg.dxt1.xml"); + case name_6.DXT1: + this.method_4("cfg.dxt1.xml"); break; - case §_-Wn§.ETC1: - this.§_-Bw§("cfg.etc1.xml"); + case name_6.ETC1: + this.method_4("cfg.etc1.xml"); break; - case §_-Wn§.PVRTC: - this.§_-Bw§("cfg.pvrtc.xml"); + case name_6.PVRTC: + this.method_4("cfg.pvrtc.xml"); } } - private function §_-5D§() : void + private function method_8() : 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; + new name_9("fog_mode",0,0,3,this.method_1); + new name_1("fog_near",0,0,1000000,this.method_1); + new name_1("fog_far",5000,0,1000000,this.method_1); + new name_1("fog_density",1,0,1,this.method_1); + new name_1("horizon_offset",0,-1000000,1000000,this.method_1); + new name_1("horizon_size",5000,0,1000000,this.method_1); + new name_10("fog_color","0x0",this.method_1); + var _loc1_:name_4 = name_4(name_3.name_8().name_21(name_4)); + _loc1_.name_34("fog_texture",this.method_19); + new name_1("beam_distance",7000,0,1000000,this.method_2); + new name_1("beam_spot",140,0,180,this.method_2); + new name_1("beam_fallof",170,0,180,this.method_2); + new name_1("beam_fallof",170,0,180,this.method_2); + new name_1("camera_smoothing",20,0,200,this.method_6); + name_11.fogMode = name_11.DISABLED; + name_13.fogMode = name_13.DISABLED; + name_7.fogMode = name_7.DISABLED; + TankMaterial2.fogMode = name_7.DISABLED; + name_31.fogMode = name_12.DISABLED; + name_30.fogMode = name_12.DISABLED; } - private function §_-27§(param1:§_-Ju§) : void + private function method_6(param1:name_1) : void { - §_-Jv§.smoothing = param1.value; + name_24.smoothing = param1.value; } - private function §_-1B§(param1:§_-6L§) : void + private function method_2(param1:name_26) : void { - switch(param1.§_-cC§()) + switch(param1.name_22()) { case "beam_distance": - §_-Au§.fadeRadius = §_-Ju§(param1).value; + name_2.fadeRadius = name_1(param1).value; break; case "beam_spot": - §_-Au§.spotAngle = §_-Ju§(param1).value * Math.PI / 180; + name_2.spotAngle = name_1(param1).value * Math.PI / 180; break; case "beam_fallof": - §_-Au§.fallofAngle = §_-Ju§(param1).value * Math.PI / 180; + name_2.fallofAngle = name_1(param1).value * Math.PI / 180; } } - private function §_-JG§(param1:§_-6L§) : void + private function method_1(param1:name_26) : void { var _loc3_:Number = NaN; var _loc4_:Number = NaN; var _loc5_:Number = NaN; - var _loc6_:§_-1I§ = this.gameKernel.§_-DZ§(); - switch(param1.§_-cC§()) + var _loc6_:name_51 = this.gameKernel.name_5(); + switch(param1.name_22()) { case "fog_mode": - _loc6_.§_-ev§(§_-UT§(param1).value); + _loc6_.name_49(name_9(param1).value); break; case "fog_near": - _loc6_.§_-9g§(§_-Ju§(param1).value); + _loc6_.name_37(name_1(param1).value); break; case "fog_far": - _loc6_.§_-H9§(§_-Ju§(param1).value); + _loc6_.name_41(name_1(param1).value); break; case "fog_density": - _loc6_.§_-J0§(§_-Ju§(param1).value); + _loc6_.name_42(name_1(param1).value); break; case "horizon_size": - _loc6_.§_-Jk§(§_-Ju§(param1).value); + _loc6_.name_43(name_1(param1).value); break; case "horizon_offset": - _loc6_.§_-Dd§(§_-Ju§(param1).value); + _loc6_.name_38(name_1(param1).value); break; case "fog_color": - _loc6_.§_-5d§(parseInt(§_-mN§(param1).value,16)); + _loc6_.name_36(parseInt(name_10(param1).value,16)); } } - private function §_-nx§(param1:§_-6A§, param2:Array) : void + private function method_19(param1:name_4, param2:Array) : void { - this.gameKernel.§_-DZ§().§_-FZ§(param2.join(" ")); + this.gameKernel.name_5().name_39(param2.join(" ")); } - private function §_-PK§() : void + private function method_13() : void { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.quality = StageQuality.LOW; } - private function §_-l2§() : void + private function method_17() : void { - 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§()); + new name_3(); + this.var_2 = new name_15(); + this.var_2.start(this,new name_27(loaderInfo.parameters),new Vector.(),new name_32(null,null,null),new Vector.()); + new name_23().start(name_3.name_8()); + new package_13.name_28().start(name_3.name_8()); + new package_17.name_28().start(name_3.name_8()); } - private function §_-33§() : void + private function method_7() : void { - var _loc1_:§_-6A§ = §_-6A§(§_-oP§.§_-nQ§().§_-N6§(§_-6A§)); + var _loc1_:name_4 = name_4(name_3.name_8().name_21(name_4)); _loc1_.width = 100; _loc1_.alpha = 0.8; _loc1_.height = 30; } - private function §_-Bw§(param1:String) : void + private function method_4(param1:String) : void { addChild(this.preloader); - this.config = new §_-YU§(); - this.config.addEventListener(Event.COMPLETE,this.§_-JY§); + this.config = new name_18(); + this.config.addEventListener(Event.COMPLETE,this.method_12); this.config.load(param1,this.preloader); } - private function §_-JY§(param1:Event) : void + private function method_12(param1:Event) : void { - this.§_-G-§(); - this.§_-lN§(); + this.method_10(); + this.method_18(); } - private function §_-lN§() : void + private function method_18() : void { - 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§); + this.var_1 = new name_14(); + stage.addChild(this.var_1); + this.var_1.mouseChildren = true; + this.var_1.mouseEnabled = true; + this.var_1.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.method_11); + this.var_1.addEventListener("CLICK_NEXT_TANK_BUTTON",this.method_16); stage.addChild(this.preloader); - stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); - this.gameKernel.§_-DZ§().§_-GW§().diagramVerticalMargin = 85; - this.gameKernel.§_-DZ§().§_-GW§().diagramHorizontalMargin = 12; - this.§_-7B§(null); + stage.addEventListener(KeyboardEvent.KEY_DOWN,this.method_14); + this.gameKernel.name_5().name_20().diagramVerticalMargin = 85; + this.gameKernel.name_5().name_20().diagramHorizontalMargin = 12; + this.method_3(null); } - private function §_-Ze§(param1:KeyboardEvent) : void + private function method_14(param1:KeyboardEvent) : void { var _loc2_:DisplayObject = null; if(param1.keyCode == Keyboard.G) { - _loc2_ = this.gameKernel.§_-DZ§().§_-G§(); + _loc2_ = this.gameKernel.name_5().name_40(); if(_loc2_.parent != null) { _loc2_.parent.removeChild(_loc2_); @@ -243,19 +243,19 @@ package } } - private function §_-GO§(param1:Event) : void + private function method_11(param1:Event) : void { - stage.displayState = !!this.§_-6s§.§_-8F§ ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; - stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.§_-Tp§); + stage.displayState = !!this.var_1.name_19 ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; + stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.method_5); } - private function §_-Tp§(param1:Event) : void + private function method_5(param1:Event) : void { - stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.§_-Tp§); - this.§_-6s§.§_-8F§ = stage.displayState != StageDisplayState.NORMAL; + stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.method_5); + this.var_1.name_19 = stage.displayState != StageDisplayState.NORMAL; } - private function §_-gC§(param1:Event) : void + private function method_16(param1:Event) : void { if(testTask != null) { @@ -263,34 +263,34 @@ package } } - private function §_-G-§() : void + private function method_10() : void { - 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 = new name_17(stage,this.config.options); + this.gameKernel.name_5().name_48(this.stage3D); + var _loc1_:name_16 = new name_16(this.gameKernel,this.config,this,this.preloader); this.gameKernel.addTask(_loc1_); - stage.addEventListener(Event.RESIZE,this.§_-7B§); - this.§_-7B§(null); - stage.addEventListener(Event.ENTER_FRAME,this.§_-ba§); + stage.addEventListener(Event.RESIZE,this.method_3); + this.method_3(null); + stage.addEventListener(Event.ENTER_FRAME,this.method_15); } - private function §_-ba§(param1:Event) : void + private function method_15(param1:Event) : void { - this.gameKernel.§_-Kf§(); + this.gameKernel.name_45(); } - private function §_-7B§(param1:Event) : void + private function method_3(param1:Event) : void { - var _loc2_:§_-VT§ = null; + var _loc2_:name_25 = null; if(this.gameKernel != null) { - this.gameKernel.§_-DZ§().§_-3N§(0,0,stage.stageWidth,stage.stageHeight); - _loc2_ = this.gameKernel.§_-DZ§().§_-MG§(); + this.gameKernel.name_5().name_35(0,0,stage.stageWidth,stage.stageHeight); + _loc2_ = this.gameKernel.name_5().name_46(); _loc2_.y = stage.stageHeight - _loc2_.size; } - if(this.§_-6s§ != null) + if(this.var_1 != null) { - this.§_-6s§.§_-K6§(stage.stageWidth,stage.stageHeight); + this.var_1.name_44(stage.stageWidth,stage.stageHeight); } } } diff --git a/src/_assets/13__-9C.jpg b/src/_assets/13_name_81.jpg similarity index 100% rename from src/_assets/13__-9C.jpg rename to src/_assets/13_name_81.jpg diff --git a/src/_assets/14__-M9.jpg b/src/_assets/14_name_83.jpg similarity index 100% rename from src/_assets/14__-M9.jpg rename to src/_assets/14_name_83.jpg diff --git a/src/_assets/16__-Lz.jpg b/src/_assets/16_name_82.jpg similarity index 100% rename from src/_assets/16__-Lz.jpg rename to src/_assets/16_name_82.jpg diff --git a/src/_codec/commons/CodecA3DMatrix.as b/src/_codec/commons/CodecA3DMatrix.as index 53eebab..f6fd9c1 100644 --- a/src/_codec/commons/CodecA3DMatrix.as +++ b/src/_codec/commons/CodecA3DMatrix.as @@ -13,29 +13,29 @@ package _codec.commons { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Bx§:ICodec; + private var var_324:ICodec; - private var §_-Qh§:ICodec; + private var var_329:ICodec; - private var §_-ir§:ICodec; + private var var_332:ICodec; - private var §_-p§:ICodec; + private var var_333:ICodec; - private var §_-Kw§:ICodec; + private var var_326:ICodec; - private var §_-PP§:ICodec; + private var var_327:ICodec; - private var §_-e7§:ICodec; + private var var_331:ICodec; - private var §_-QE§:ICodec; + private var var_328:ICodec; - private var §_-SL§:ICodec; + private var var_330:ICodec; - private var §for §:ICodec; + private var var_334:ICodec; - private var §_-Hb§:ICodec; + private var var_325:ICodec; - private var §_-3B§:ICodec; + private var var_323:ICodec; public function CodecA3DMatrix() { @@ -44,46 +44,46 @@ package _codec.commons 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)); + this.var_324 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_329 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_332 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_333 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_326 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_327 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_331 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_328 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_330 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_334 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_325 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_323 = 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); + var value_a:Number = Number(this.var_324.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); + var value_b:Number = Number(this.var_329.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); + var value_c:Number = Number(this.var_332.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); + var value_d:Number = Number(this.var_333.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); + var value_e:Number = Number(this.var_326.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); + var value_f:Number = Number(this.var_327.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); + var value_g:Number = Number(this.var_331.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); + var value_h:Number = Number(this.var_328.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); + var value_i:Number = Number(this.var_330.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); + var value_j:Number = Number(this.var_334.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); + var value_k:Number = Number(this.var_325.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); + var value_l:Number = Number(this.var_323.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); } @@ -95,18 +95,18 @@ package _codec.commons 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); + this.var_324.encode(protocolBuffer,struct.a); + this.var_329.encode(protocolBuffer,struct.b); + this.var_332.encode(protocolBuffer,struct.c); + this.var_333.encode(protocolBuffer,struct.d); + this.var_326.encode(protocolBuffer,struct.e); + this.var_327.encode(protocolBuffer,struct.f); + this.var_331.encode(protocolBuffer,struct.g); + this.var_328.encode(protocolBuffer,struct.h); + this.var_330.encode(protocolBuffer,struct.i); + this.var_334.encode(protocolBuffer,struct.j); + this.var_325.encode(protocolBuffer,struct.k); + this.var_323.encode(protocolBuffer,struct.l); } } } diff --git a/src/_codec/commons/CodecId.as b/src/_codec/commons/CodecId.as index 2b1b3d0..c86a793 100644 --- a/src/_codec/commons/CodecId.as +++ b/src/_codec/commons/CodecId.as @@ -12,7 +12,7 @@ package _codec.commons { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; public function CodecId() { @@ -21,13 +21,13 @@ package _codec.commons public function init(protocol:IProtocol) : void { - this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.var_243 = 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); + var value_id:uint = uint(this.var_243.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","commons.Id","id",value_id); return new Id(value_id); } @@ -39,7 +39,7 @@ package _codec.commons throw new Error("Object is null. Use @ProtocolOptional annotation."); } var struct:Id = Id(object); - this.§_-2o§.encode(protocolBuffer,struct.id); + this.var_243.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version1/a3d/CodecA3D.as b/src/_codec/versions/version1/a3d/CodecA3D.as index cda93e3..22c9b7a 100644 --- a/src/_codec/versions/version1/a3d/CodecA3D.as +++ b/src/_codec/versions/version1/a3d/CodecA3D.as @@ -19,17 +19,17 @@ package _codec.versions.version1.a3d { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-EA§:ICodec; + private var var_359:ICodec; - private var §_-PA§:ICodec; + private var var_419:ICodec; - private var §_-Sd§:ICodec; + private var var_363:ICodec; - private var §_-dB§:ICodec; + private var var_365:ICodec; - private var §_-77§:ICodec; + private var var_354:ICodec; - private var §_-1x§:ICodec; + private var var_351:ICodec; public function CodecA3D() { @@ -38,28 +38,28 @@ package _codec.versions.version1.a3d 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)); + this.var_359 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1)); + this.var_419 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1)); + this.var_363 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1)); + this.var_365 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1)); + this.var_354 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1)); + this.var_351 = 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.; + var value_boxes:Vector. = this.var_359.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.; + var value_geometries:Vector. = this.var_419.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.; + var value_images:Vector. = this.var_363.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.; + var value_maps:Vector. = this.var_365.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.; + var value_materials:Vector. = this.var_354.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.; + var value_objects:Vector. = this.var_351.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); } @@ -71,12 +71,12 @@ package _codec.versions.version1.a3d 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); + this.var_359.encode(protocolBuffer,struct.boxes); + this.var_419.encode(protocolBuffer,struct.geometries); + this.var_363.encode(protocolBuffer,struct.images); + this.var_365.encode(protocolBuffer,struct.maps); + this.var_354.encode(protocolBuffer,struct.materials); + this.var_351.encode(protocolBuffer,struct.objects); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as index 827192f..20df4dc 100644 --- a/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as +++ b/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as @@ -16,11 +16,11 @@ package _codec.versions.version1.a3d.geometry { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-XF§:ICodec; + private var var_275:ICodec; - private var §_-U9§:ICodec; + private var var_250:ICodec; public function CodecA3DGeometry() { @@ -29,19 +29,19 @@ package _codec.versions.version1.a3d.geometry 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)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_275 = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true)); + this.var_250 = 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; + var value_id:Id = this.var_243.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; + var value_indexBuffer:A3DIndexBuffer = this.var_275.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.; + var value_vertexBuffers:Vector. = this.var_250.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); } @@ -53,9 +53,9 @@ package _codec.versions.version1.a3d.geometry 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); + this.var_243.encode(protocolBuffer,struct.id); + this.var_275.encode(protocolBuffer,struct.indexBuffer); + this.var_250.encode(protocolBuffer,struct.vertexBuffers); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as index bd6b08a..5e62dca 100644 --- a/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as +++ b/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as @@ -13,9 +13,9 @@ package _codec.versions.version1.a3d.geometry { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-GN§:ICodec; + private var var_240:ICodec; - private var §_-mz§:ICodec; + private var var_308:ICodec; public function CodecA3DIndexBuffer() { @@ -24,16 +24,16 @@ package _codec.versions.version1.a3d.geometry public function init(protocol:IProtocol) : void { - this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); - this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); + this.var_308 = 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; + var value_byteBuffer:ByteArray = this.var_240.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); + var value_indexCount:int = int(this.var_308.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); } @@ -45,8 +45,8 @@ package _codec.versions.version1.a3d.geometry 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); + this.var_240.encode(protocolBuffer,struct.byteBuffer); + this.var_308.encode(protocolBuffer,struct.indexCount); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as index 1c24a2a..18042bf 100644 --- a/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as +++ b/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as @@ -16,11 +16,11 @@ package _codec.versions.version1.a3d.geometry { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Lj§:ICodec; + private var var_241:ICodec; - private var §_-GN§:ICodec; + private var var_240:ICodec; - private var §_-hc§:ICodec; + private var var_242:ICodec; public function CodecA3DVertexBuffer() { @@ -29,19 +29,19 @@ package _codec.versions.version1.a3d.geometry 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)); + this.var_241 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1)); + this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); + this.var_242 = 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.; + var value_attributes:Vector. = this.var_241.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; + var value_byteBuffer:ByteArray = this.var_240.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); + var value_vertexCount:uint = uint(this.var_242.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); } @@ -53,9 +53,9 @@ package _codec.versions.version1.a3d.geometry 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); + this.var_241.encode(protocolBuffer,struct.attributes); + this.var_240.encode(protocolBuffer,struct.byteBuffer); + this.var_242.encode(protocolBuffer,struct.vertexCount); } } } diff --git a/src/_codec/versions/version1/a3d/id/CodecParentId.as b/src/_codec/versions/version1/a3d/id/CodecParentId.as index aab8a9e..651e082 100644 --- a/src/_codec/versions/version1/a3d/id/CodecParentId.as +++ b/src/_codec/versions/version1/a3d/id/CodecParentId.as @@ -12,7 +12,7 @@ package _codec.versions.version1.a3d.id { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; public function CodecParentId() { @@ -21,13 +21,13 @@ package _codec.versions.version1.a3d.id public function init(protocol:IProtocol) : void { - this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.var_243 = 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); + var value_id:uint = uint(this.var_243.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); } @@ -39,7 +39,7 @@ package _codec.versions.version1.a3d.id throw new Error("Object is null. Use @ProtocolOptional annotation."); } var struct:ParentId = ParentId(object); - this.§_-2o§.encode(protocolBuffer,struct.id); + this.var_243.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as b/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as index b6145cb..452d5a4 100644 --- a/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as +++ b/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as @@ -13,9 +13,9 @@ package _codec.versions.version1.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-aV§:ICodec; + private var var_307:ICodec; public function CodecA3DImage() { @@ -24,16 +24,16 @@ package _codec.versions.version1.a3d.materials public function init(protocol:IProtocol) : void { - this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); - this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_307 = 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; + var value_id:Id = this.var_243.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; + var value_url:String = this.var_307.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); } @@ -45,8 +45,8 @@ package _codec.versions.version1.a3d.materials 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); + this.var_243.encode(protocolBuffer,struct.id); + this.var_307.encode(protocolBuffer,struct.url); } } } diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as index 6f732cc..5fc8bf2 100644 --- a/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as +++ b/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as @@ -15,19 +15,19 @@ package _codec.versions.version1.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-mC§:ICodec; + private var var_322:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-2N§:ICodec; + private var var_321:ICodec; - private var §_-K5§:ICodec; + private var var_407:ICodec; - private var §_-Q5§:ICodec; + private var var_408:ICodec; - private var §_-WH§:ICodec; + private var var_409:ICodec; - private var §_-kh§:ICodec; + private var var_410:ICodec; public function CodecA3DMap() { @@ -36,31 +36,31 @@ package _codec.versions.version1.a3d.materials 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)); + this.var_322 = protocol.getCodec(new TypeCodecInfo(UShort,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_321 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_407 = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.var_408 = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.var_409 = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.var_410 = 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); + var value_channel:uint = uint(this.var_322.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; + var value_id:Id = this.var_243.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; + var value_imageId:Id = this.var_321.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); + var value_uOffset:Number = Number(this.var_407.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); + var value_uScale:Number = Number(this.var_408.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); + var value_vOffset:Number = Number(this.var_409.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); + var value_vScale:Number = Number(this.var_410.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); } @@ -72,13 +72,13 @@ package _codec.versions.version1.a3d.materials 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); + this.var_322.encode(protocolBuffer,struct.channel); + this.var_243.encode(protocolBuffer,struct.id); + this.var_321.encode(protocolBuffer,struct.imageId); + this.var_407.encode(protocolBuffer,struct.uOffset); + this.var_408.encode(protocolBuffer,struct.uScale); + this.var_409.encode(protocolBuffer,struct.vOffset); + this.var_410.encode(protocolBuffer,struct.vScale); } } } diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as index 3218136..6da0c76 100644 --- a/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as +++ b/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as @@ -13,19 +13,19 @@ package _codec.versions.version1.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-9A§:ICodec; + private var var_381:ICodec; - private var §_-hw§:ICodec; + private var var_386:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-Hu§:ICodec; + private var var_384:ICodec; - private var §_-GK§:ICodec; + private var var_383:ICodec; - private var §_-LZ§:ICodec; + private var var_385:ICodec; - private var §_-FU§:ICodec; + private var var_382:ICodec; public function CodecA3DMaterial() { @@ -34,31 +34,31 @@ package _codec.versions.version1.a3d.materials 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)); + this.var_381 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_386 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_384 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_383 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_385 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_382 = 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; + var value_diffuseMapId:Id = this.var_381.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; + var value_glossinessMapId:Id = this.var_386.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; + var value_id:Id = this.var_243.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; + var value_lightMapId:Id = this.var_384.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; + var value_normalMapId:Id = this.var_383.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; + var value_opacityMapId:Id = this.var_385.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; + var value_specularMapId:Id = this.var_382.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); } @@ -70,13 +70,13 @@ package _codec.versions.version1.a3d.materials 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); + this.var_381.encode(protocolBuffer,struct.diffuseMapId); + this.var_386.encode(protocolBuffer,struct.glossinessMapId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_384.encode(protocolBuffer,struct.lightMapId); + this.var_383.encode(protocolBuffer,struct.normalMapId); + this.var_385.encode(protocolBuffer,struct.opacityMapId); + this.var_382.encode(protocolBuffer,struct.specularMapId); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as b/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as index 4439966..e40657c 100644 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as @@ -15,9 +15,9 @@ package _codec.versions.version1.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-pM§:ICodec; + private var var_284:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; public function CodecA3DBox() { @@ -26,16 +26,16 @@ package _codec.versions.version1.a3d.objects 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)); + this.var_284 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1)); + this.var_243 = 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.; + var value_box:Vector. = this.var_284.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; + var value_id:Id = this.var_243.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); } @@ -47,8 +47,8 @@ package _codec.versions.version1.a3d.objects 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); + this.var_284.encode(protocolBuffer,struct.box); + this.var_243.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as b/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as index 8a22acc..0ca1550 100644 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as @@ -17,21 +17,21 @@ package _codec.versions.version1.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-e§:ICodec; + private var var_256:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-Qr§:ICodec; + private var var_248:ICodec; - private var §_-9u§:ICodec; + private var var_255:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3DObject() { @@ -40,34 +40,34 @@ package _codec.versions.version1.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_256 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(ParentId,true)); + this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1)); + this.var_255 = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true)); + this.var_253 = 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; + var value_boundBoxId:Id = this.var_245.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; + var value_geometryId:Id = this.var_256.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; + var value_id:Id = this.var_243.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; + var value_name:String = this.var_251.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; + var value_parentId:ParentId = this.var_254.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.; + var value_surfaces:Vector. = this.var_248.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; + var value_transformation:A3DTransformation = this.var_255.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -79,14 +79,14 @@ package _codec.versions.version1.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_256.encode(protocolBuffer,struct.geometryId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_248.encode(protocolBuffer,struct.surfaces); + this.var_255.encode(protocolBuffer,struct.transformation); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as b/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as index 016fcf3..80f4821 100644 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as @@ -13,11 +13,11 @@ package _codec.versions.version1.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-AL§:ICodec; + private var var_302:ICodec; - private var §_-Av§:ICodec; + private var var_291:ICodec; - private var §_-pJ§:ICodec; + private var var_303:ICodec; public function CodecA3DSurface() { @@ -26,19 +26,19 @@ package _codec.versions.version1.a3d.objects 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)); + this.var_302 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_291 = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.var_303 = 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); + var value_indexBegin:int = int(this.var_302.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; + var value_materialId:Id = this.var_291.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); + var value_numTriangles:int = int(this.var_303.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); } @@ -50,9 +50,9 @@ package _codec.versions.version1.a3d.objects 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); + this.var_302.encode(protocolBuffer,struct.indexBegin); + this.var_291.encode(protocolBuffer,struct.materialId); + this.var_303.encode(protocolBuffer,struct.numTriangles); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as b/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as index 0c2d472..46e2f60 100644 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as +++ b/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as @@ -13,7 +13,7 @@ package _codec.versions.version1.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-dG§:ICodec; + private var var_411:ICodec; public function CodecA3DTransformation() { @@ -22,13 +22,13 @@ package _codec.versions.version1.a3d.objects public function init(protocol:IProtocol) : void { - this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true)); + this.var_411 = 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; + var value_matrix:A3DMatrix = this.var_411.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); } @@ -40,7 +40,7 @@ package _codec.versions.version1.a3d.objects throw new Error("Object is null. Use @ProtocolOptional annotation."); } var struct:A3DTransformation = A3DTransformation(object); - this.§_-dG§.encode(protocolBuffer,struct.matrix); + this.var_411.encode(protocolBuffer,struct.matrix); } } } diff --git a/src/_codec/versions/version2/a3d/CodecA3D2.as b/src/_codec/versions/version2/a3d/CodecA3D2.as index da85f4f..b3f2176 100644 --- a/src/_codec/versions/version2/a3d/CodecA3D2.as +++ b/src/_codec/versions/version2/a3d/CodecA3D2.as @@ -32,43 +32,43 @@ package _codec.versions.version2.a3d { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-8X§:ICodec; + private var var_355:ICodec; - private var §_-Fa§:ICodec; + private var var_360:ICodec; - private var §_-Aj§:ICodec; + private var var_357:ICodec; - private var §_-EA§:ICodec; + private var var_359:ICodec; - private var §_-lJ§:ICodec; + private var var_367:ICodec; - private var §_-9f§:ICodec; + private var var_356:ICodec; - private var §_-GC§:ICodec; + private var var_361:ICodec; - private var §_-Sd§:ICodec; + private var var_363:ICodec; - private var §_-76§:ICodec; + private var var_353:ICodec; - private var §_-3f§:ICodec; + private var var_244:ICodec; - private var §_-dB§:ICodec; + private var var_365:ICodec; - private var §_-77§:ICodec; + private var var_354:ICodec; - private var §_-PJ§:ICodec; + private var var_362:ICodec; - private var §_-1x§:ICodec; + private var var_351:ICodec; - private var §_-aP§:ICodec; + private var var_364:ICodec; - private var §_-e9§:ICodec; + private var var_366:ICodec; - private var §_-3y§:ICodec; + private var var_352:ICodec; - private var §_-E2§:ICodec; + private var var_358:ICodec; - private var §_-U9§:ICodec; + private var var_250:ICodec; public function CodecA3D2() { @@ -77,67 +77,67 @@ package _codec.versions.version2.a3d 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)); + this.var_355 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1)); + this.var_360 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1)); + this.var_357 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1)); + this.var_359 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1)); + this.var_367 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1)); + this.var_356 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1)); + this.var_361 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1)); + this.var_363 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1)); + this.var_353 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1)); + this.var_244 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1)); + this.var_365 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1)); + this.var_354 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1)); + this.var_362 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1)); + this.var_351 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1)); + this.var_364 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1)); + this.var_366 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1)); + this.var_352 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1)); + this.var_358 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1)); + this.var_250 = 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.; + var value_ambientLights:Vector. = this.var_355.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.; + var value_animationClips:Vector. = this.var_360.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.; + var value_animationTracks:Vector. = this.var_357.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.; + var value_boxes:Vector. = this.var_359.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.; + var value_cubeMaps:Vector. = this.var_367.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.; + var value_decals:Vector. = this.var_356.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.; + var value_directionalLights:Vector. = this.var_361.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.; + var value_images:Vector. = this.var_363.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.; + var value_indexBuffers:Vector. = this.var_353.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.; + var value_joints:Vector. = this.var_244.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.; + var value_maps:Vector. = this.var_365.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.; + var value_materials:Vector. = this.var_354.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.; + var value_meshes:Vector. = this.var_362.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.; + var value_objects:Vector. = this.var_351.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.; + var value_omniLights:Vector. = this.var_364.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.; + var value_skins:Vector. = this.var_366.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.; + var value_spotLights:Vector. = this.var_352.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.; + var value_sprites:Vector. = this.var_358.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.; + var value_vertexBuffers:Vector. = this.var_250.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); } @@ -149,25 +149,25 @@ package _codec.versions.version2.a3d 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); + this.var_355.encode(protocolBuffer,struct.ambientLights); + this.var_360.encode(protocolBuffer,struct.animationClips); + this.var_357.encode(protocolBuffer,struct.animationTracks); + this.var_359.encode(protocolBuffer,struct.boxes); + this.var_367.encode(protocolBuffer,struct.cubeMaps); + this.var_356.encode(protocolBuffer,struct.decals); + this.var_361.encode(protocolBuffer,struct.directionalLights); + this.var_363.encode(protocolBuffer,struct.images); + this.var_353.encode(protocolBuffer,struct.indexBuffers); + this.var_244.encode(protocolBuffer,struct.joints); + this.var_365.encode(protocolBuffer,struct.maps); + this.var_354.encode(protocolBuffer,struct.materials); + this.var_362.encode(protocolBuffer,struct.meshes); + this.var_351.encode(protocolBuffer,struct.objects); + this.var_364.encode(protocolBuffer,struct.omniLights); + this.var_366.encode(protocolBuffer,struct.skins); + this.var_352.encode(protocolBuffer,struct.spotLights); + this.var_358.encode(protocolBuffer,struct.sprites); + this.var_250.encode(protocolBuffer,struct.vertexBuffers); } } } diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as index 09826ab..83bc435 100644 --- a/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as +++ b/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as @@ -14,15 +14,15 @@ package _codec.versions.version2.a3d.animation { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-HX§:ICodec; + private var var_304:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-Td§:ICodec; + private var var_305:ICodec; - private var §_-Z-§:ICodec; + private var var_306:ICodec; public function CodecA3D2AnimationClip() { @@ -31,25 +31,25 @@ package _codec.versions.version2.a3d.animation 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)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_304 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_305 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1)); + this.var_306 = 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); + var value_id:int = int(this.var_243.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); + var value_loop:Boolean = Boolean(this.var_304.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; + var value_name:String = this.var_251.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.; + var value_objectIDs:Vector. = this.var_305.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.; + var value_tracks:Vector. = this.var_306.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); } @@ -61,11 +61,11 @@ package _codec.versions.version2.a3d.animation 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); + this.var_243.encode(protocolBuffer,struct.id); + this.var_304.encode(protocolBuffer,struct.loop); + this.var_251.encode(protocolBuffer,struct.name); + this.var_305.encode(protocolBuffer,struct.objectIDs); + this.var_306.encode(protocolBuffer,struct.tracks); } } } diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as index 06edc99..4c6a62c 100644 --- a/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as +++ b/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as @@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.animation { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-dk§:ICodec; + private var var_395:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; public function CodecA3D2Keyframe() { @@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.animation public function init(protocol:IProtocol) : void { - this.§_-dk§ = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); + this.var_395 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_249 = 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); + var value_time:Number = Number(this.var_395.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; + var value_transform:A3D2Transform = this.var_249.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); } @@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.animation 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); + this.var_395.encode(protocolBuffer,struct.time); + this.var_249.encode(protocolBuffer,struct.transform); } } } diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as index 5818548..5983ad5 100644 --- a/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as +++ b/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as @@ -14,11 +14,11 @@ package _codec.versions.version2.a3d.animation { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-Ja§:ICodec; + private var var_394:ICodec; - private var §_-Fo§:ICodec; + private var var_393:ICodec; public function CodecA3D2Track() { @@ -27,19 +27,19 @@ package _codec.versions.version2.a3d.animation 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)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_394 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1)); + this.var_393 = 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); + var value_id:int = int(this.var_243.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.; + var value_keyframes:Vector. = this.var_394.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; + var value_objectName:String = this.var_393.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); } @@ -51,9 +51,9 @@ package _codec.versions.version2.a3d.animation 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); + this.var_243.encode(protocolBuffer,struct.id); + this.var_394.encode(protocolBuffer,struct.keyframes); + this.var_393.encode(protocolBuffer,struct.objectName); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as index 98abf1e..5345964 100644 --- a/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as +++ b/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as @@ -13,11 +13,11 @@ package _codec.versions.version2.a3d.geometry { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-GN§:ICodec; + private var var_240:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-mz§:ICodec; + private var var_308:ICodec; public function CodecA3D2IndexBuffer() { @@ -26,19 +26,19 @@ package _codec.versions.version2.a3d.geometry 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)); + this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_308 = 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; + var value_byteBuffer:ByteArray = this.var_240.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); + var value_id:int = int(this.var_243.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); + var value_indexCount:int = int(this.var_308.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); } @@ -50,9 +50,9 @@ package _codec.versions.version2.a3d.geometry 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); + this.var_240.encode(protocolBuffer,struct.byteBuffer); + this.var_243.encode(protocolBuffer,struct.id); + this.var_308.encode(protocolBuffer,struct.indexCount); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as index 762e42f..26e30e9 100644 --- a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as +++ b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as @@ -17,13 +17,13 @@ package _codec.versions.version2.a3d.geometry { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Lj§:ICodec; + private var var_241:ICodec; - private var §_-GN§:ICodec; + private var var_240:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-hc§:ICodec; + private var var_242:ICodec; public function CodecA3D2VertexBuffer() { @@ -32,22 +32,22 @@ package _codec.versions.version2.a3d.geometry 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)); + this.var_241 = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1)); + this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_242 = 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.; + var value_attributes:Vector. = this.var_241.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; + var value_byteBuffer:ByteArray = this.var_240.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); + var value_id:int = int(this.var_243.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); + var value_vertexCount:uint = uint(this.var_242.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); } @@ -59,10 +59,10 @@ package _codec.versions.version2.a3d.geometry 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); + this.var_241.encode(protocolBuffer,struct.attributes); + this.var_240.encode(protocolBuffer,struct.byteBuffer); + this.var_243.encode(protocolBuffer,struct.id); + this.var_242.encode(protocolBuffer,struct.vertexCount); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as index 0056e7d..05a78cf 100644 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as @@ -12,19 +12,19 @@ package _codec.versions.version2.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Yc§:ICodec; + private var var_372:ICodec; - private var §_-SV§:ICodec; + private var var_370:ICodec; - private var §_-Ni§:ICodec; + private var var_369:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-nb§:ICodec; + private var var_373:ICodec; - private var §_-23§:ICodec; + private var var_368:ICodec; - private var §_-TW§:ICodec; + private var var_371:ICodec; public function CodecA3D2CubeMap() { @@ -33,31 +33,31 @@ package _codec.versions.version2.a3d.materials 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)); + this.var_372 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_370 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_369 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_373 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_368 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_371 = 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); + var value_backId:int = int(this.var_372.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); + var value_bottomId:int = int(this.var_370.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); + var value_frontId:int = int(this.var_369.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); + var value_id:int = int(this.var_243.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); + var value_leftId:int = int(this.var_373.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); + var value_rightId:int = int(this.var_368.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); + var value_topId:int = int(this.var_371.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); } @@ -69,13 +69,13 @@ package _codec.versions.version2.a3d.materials 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); + this.var_372.encode(protocolBuffer,struct.backId); + this.var_370.encode(protocolBuffer,struct.bottomId); + this.var_369.encode(protocolBuffer,struct.frontId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_373.encode(protocolBuffer,struct.leftId); + this.var_368.encode(protocolBuffer,struct.rightId); + this.var_371.encode(protocolBuffer,struct.topId); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as index 25f4ad4..1308753 100644 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as @@ -12,9 +12,9 @@ package _codec.versions.version2.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-aV§:ICodec; + private var var_307:ICodec; public function CodecA3D2Image() { @@ -23,16 +23,16 @@ package _codec.versions.version2.a3d.materials public function init(protocol:IProtocol) : void { - this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false)); - this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_307 = 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); + var value_id:int = int(this.var_243.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; + var value_url:String = this.var_307.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); } @@ -44,8 +44,8 @@ package _codec.versions.version2.a3d.materials 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); + this.var_243.encode(protocolBuffer,struct.id); + this.var_307.encode(protocolBuffer,struct.url); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as index c00f48e..2807a00 100644 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as @@ -13,11 +13,11 @@ package _codec.versions.version2.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-mC§:ICodec; + private var var_322:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-2N§:ICodec; + private var var_321:ICodec; public function CodecA3D2Map() { @@ -26,19 +26,19 @@ package _codec.versions.version2.a3d.materials 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)); + this.var_322 = protocol.getCodec(new TypeCodecInfo(UShort,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_321 = 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); + var value_channel:uint = uint(this.var_322.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); + var value_id:int = int(this.var_243.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); + var value_imageId:int = int(this.var_321.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); } @@ -50,9 +50,9 @@ package _codec.versions.version2.a3d.materials 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); + this.var_322.encode(protocolBuffer,struct.channel); + this.var_243.encode(protocolBuffer,struct.id); + this.var_321.encode(protocolBuffer,struct.imageId); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as index 81504f0..59c1246 100644 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as +++ b/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as @@ -12,21 +12,21 @@ package _codec.versions.version2.a3d.materials { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-9A§:ICodec; + private var var_381:ICodec; - private var §_-hw§:ICodec; + private var var_386:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-Hu§:ICodec; + private var var_384:ICodec; - private var §_-GK§:ICodec; + private var var_383:ICodec; - private var §_-LZ§:ICodec; + private var var_385:ICodec; - private var §_-bz§:ICodec; + private var var_418:ICodec; - private var §_-FU§:ICodec; + private var var_382:ICodec; public function CodecA3D2Material() { @@ -35,34 +35,34 @@ package _codec.versions.version2.a3d.materials 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)); + this.var_381 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_386 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_384 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_383 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_385 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_418 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_382 = 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); + var value_diffuseMapId:int = int(this.var_381.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); + var value_glossinessMapId:int = int(this.var_386.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); + var value_id:int = int(this.var_243.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); + var value_lightMapId:int = int(this.var_384.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); + var value_normalMapId:int = int(this.var_383.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); + var value_opacityMapId:int = int(this.var_385.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); + var value_reflectionCubeMapId:int = int(this.var_418.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); + var value_specularMapId:int = int(this.var_382.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); } @@ -74,14 +74,14 @@ package _codec.versions.version2.a3d.materials 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); + this.var_381.encode(protocolBuffer,struct.diffuseMapId); + this.var_386.encode(protocolBuffer,struct.glossinessMapId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_384.encode(protocolBuffer,struct.lightMapId); + this.var_383.encode(protocolBuffer,struct.normalMapId); + this.var_385.encode(protocolBuffer,struct.opacityMapId); + this.var_418.encode(protocolBuffer,struct.reflectionCubeMapId); + this.var_382.encode(protocolBuffer,struct.specularMapId); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as index 39670fc..2b0d281 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as @@ -15,21 +15,21 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-Po§:ICodec; + private var var_260:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-JX§:ICodec; + private var var_258:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2AmbientLight() { @@ -38,34 +38,34 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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); + var value_color:uint = uint(this.var_260.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; + var value_id:Long = this.var_243.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); + var value_intensity:Number = Number(this.var_258.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -77,14 +77,14 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_260.encode(protocolBuffer,struct.color); + this.var_243.encode(protocolBuffer,struct.id); + this.var_258.encode(protocolBuffer,struct.intensity); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as index a6259d1..ccc575f 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as @@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-pM§:ICodec; + private var var_284:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; public function CodecA3D2Box() { @@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_284 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1)); + this.var_243 = 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.; + var value_box:Vector. = this.var_284.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); + var value_id:int = int(this.var_243.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); } @@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.objects 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); + this.var_284.encode(protocolBuffer,struct.box); + this.var_243.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as index 1ffe631..393f305 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as @@ -17,25 +17,25 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-PO§:ICodec; + private var var_247:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-Zb§:ICodec; + private var var_309:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-Qr§:ICodec; + private var var_248:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-U9§:ICodec; + private var var_250:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2Decal() { @@ -44,40 +44,40 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_309 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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; + var value_id:Long = this.var_243.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); + var value_indexBufferId:int = int(this.var_247.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; + var value_name:String = this.var_251.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); + var value_offset:Number = Number(this.var_309.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; + var value_parentId:Long = this.var_254.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.; + var value_surfaces:Vector. = this.var_248.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; + var value_transform:A3D2Transform = this.var_249.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.; + var value_vertexBuffers:Vector. = this.var_250.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -89,16 +89,16 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_247.encode(protocolBuffer,struct.indexBufferId); + this.var_251.encode(protocolBuffer,struct.name); + this.var_309.encode(protocolBuffer,struct.offset); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_248.encode(protocolBuffer,struct.surfaces); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_250.encode(protocolBuffer,struct.vertexBuffers); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as index 1ddae6b..dc953f6 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as @@ -15,21 +15,21 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-Po§:ICodec; + private var var_260:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-JX§:ICodec; + private var var_258:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2DirectionalLight() { @@ -38,34 +38,34 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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); + var value_color:uint = uint(this.var_260.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; + var value_id:Long = this.var_243.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); + var value_intensity:Number = Number(this.var_258.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -77,14 +77,14 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_260.encode(protocolBuffer,struct.color); + this.var_243.encode(protocolBuffer,struct.id); + this.var_258.encode(protocolBuffer,struct.intensity); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as index 079f912..81cddb6 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as @@ -14,17 +14,17 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2Joint() { @@ -33,28 +33,28 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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; + var value_id:Long = this.var_243.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -66,12 +66,12 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as index e918da7..4f3d6f5 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as @@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Ov§:ICodec; + private var var_380:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; public function CodecA3D2JointBindTransform() { @@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.objects public function init(protocol:IProtocol) : void { - this.§_-Ov§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); - this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_380 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); + this.var_243 = 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; + var value_bindPoseTransform:A3D2Transform = this.var_380.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; + var value_id:Long = this.var_243.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); } @@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.objects 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); + this.var_380.encode(protocolBuffer,struct.bindPoseTransform); + this.var_243.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as index fd477bd..6a0621e 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as @@ -16,23 +16,23 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-PO§:ICodec; + private var var_247:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-Qr§:ICodec; + private var var_248:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-U9§:ICodec; + private var var_250:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2Mesh() { @@ -41,37 +41,37 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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; + var value_id:Long = this.var_243.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); + var value_indexBufferId:int = int(this.var_247.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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.; + var value_surfaces:Vector. = this.var_248.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; + var value_transform:A3D2Transform = this.var_249.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.; + var value_vertexBuffers:Vector. = this.var_250.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -83,15 +83,15 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_247.encode(protocolBuffer,struct.indexBufferId); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_248.encode(protocolBuffer,struct.surfaces); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_250.encode(protocolBuffer,struct.vertexBuffers); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as index 2914a4d..5f72ccc 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as @@ -14,17 +14,17 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2Object() { @@ -33,28 +33,28 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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; + var value_id:Long = this.var_243.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -66,12 +66,12 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as index 69a30ad..0c26133 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as @@ -15,25 +15,25 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-KK§:ICodec; + private var var_259:ICodec; - private var §_-H3§:ICodec; + private var var_257:ICodec; - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-Po§:ICodec; + private var var_260:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-JX§:ICodec; + private var var_258:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2OmniLight() { @@ -42,40 +42,40 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_259 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_257 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = 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); + var value_attenuationBegin:Number = Number(this.var_259.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); + var value_attenuationEnd:Number = Number(this.var_257.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); + var value_boundBoxId:int = int(this.var_245.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); + var value_color:uint = uint(this.var_260.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; + var value_id:Long = this.var_243.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); + var value_intensity:Number = Number(this.var_258.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -87,16 +87,16 @@ package _codec.versions.version2.a3d.objects 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); + this.var_259.encode(protocolBuffer,struct.attenuationBegin); + this.var_257.encode(protocolBuffer,struct.attenuationEnd); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_260.encode(protocolBuffer,struct.color); + this.var_243.encode(protocolBuffer,struct.id); + this.var_258.encode(protocolBuffer,struct.intensity); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as index 387acc3..a8f41d2 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as @@ -18,29 +18,29 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-PO§:ICodec; + private var var_247:ICodec; - private var §_-dR§:ICodec; + private var var_252:ICodec; - private var §_-3f§:ICodec; + private var var_244:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-Mx§:ICodec; + private var var_246:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-Qr§:ICodec; + private var var_248:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-U9§:ICodec; + private var var_250:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2Skin() { @@ -49,46 +49,46 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_252 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1)); + this.var_244 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_246 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.var_253 = 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); + var value_boundBoxId:int = int(this.var_245.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; + var value_id:Long = this.var_243.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); + var value_indexBufferId:int = int(this.var_247.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.; + var value_jointBindTransforms:Vector. = this.var_252.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.; + var value_joints:Vector. = this.var_244.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; + var value_name:String = this.var_251.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.; + var value_numJoints:Vector. = this.var_246.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; + var value_parentId:Long = this.var_254.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.; + var value_surfaces:Vector. = this.var_248.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; + var value_transform:A3D2Transform = this.var_249.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.; + var value_vertexBuffers:Vector. = this.var_250.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -100,18 +100,18 @@ package _codec.versions.version2.a3d.objects 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); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_243.encode(protocolBuffer,struct.id); + this.var_247.encode(protocolBuffer,struct.indexBufferId); + this.var_252.encode(protocolBuffer,struct.jointBindTransforms); + this.var_244.encode(protocolBuffer,struct.joints); + this.var_251.encode(protocolBuffer,struct.name); + this.var_246.encode(protocolBuffer,struct.numJoints); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_248.encode(protocolBuffer,struct.surfaces); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_250.encode(protocolBuffer,struct.vertexBuffers); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as index 5bba2f4..ff012f6 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as @@ -15,29 +15,29 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-KK§:ICodec; + private var var_259:ICodec; - private var §_-H3§:ICodec; + private var var_257:ICodec; - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-Po§:ICodec; + private var var_260:ICodec; - private var §_-GX§:ICodec; + private var var_286:ICodec; - private var §_-YW§:ICodec; + private var var_287:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-JX§:ICodec; + private var var_258:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; public function CodecA3D2SpotLight() { @@ -46,46 +46,46 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_259 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_257 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.var_286 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_287 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = 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); + var value_attenuationBegin:Number = Number(this.var_259.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); + var value_attenuationEnd:Number = Number(this.var_257.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); + var value_boundBoxId:int = int(this.var_245.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); + var value_color:uint = uint(this.var_260.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); + var value_falloff:Number = Number(this.var_286.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); + var value_hotspot:Number = Number(this.var_287.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; + var value_id:Long = this.var_243.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); + var value_intensity:Number = Number(this.var_258.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; + var value_name:String = this.var_251.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; + var value_parentId:Long = this.var_254.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); } @@ -97,18 +97,18 @@ package _codec.versions.version2.a3d.objects 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); + this.var_259.encode(protocolBuffer,struct.attenuationBegin); + this.var_257.encode(protocolBuffer,struct.attenuationEnd); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_260.encode(protocolBuffer,struct.color); + this.var_286.encode(protocolBuffer,struct.falloff); + this.var_287.encode(protocolBuffer,struct.hotspot); + this.var_243.encode(protocolBuffer,struct.id); + this.var_258.encode(protocolBuffer,struct.intensity); + this.var_251.encode(protocolBuffer,struct.name); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as index 943204a..e0b3c28 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as @@ -16,33 +16,33 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-XZ§:ICodec; + private var var_295:ICodec; - private var §_-Dh§:ICodec; + private var var_245:ICodec; - private var §_-X§:ICodec; + private var var_294:ICodec; - private var §_-2o§:ICodec; + private var var_243:ICodec; - private var §_-Av§:ICodec; + private var var_291:ICodec; - private var §_-XW§:ICodec; + private var var_251:ICodec; - private var §_-Pk§:ICodec; + private var var_292:ICodec; - private var §_-j1§:ICodec; + private var var_297:ICodec; - private var §_-jk§:ICodec; + private var var_254:ICodec; - private var §_-Yz§:ICodec; + private var var_296:ICodec; - private var §_-SJ§:ICodec; + private var var_293:ICodec; - private var §_-S2§:ICodec; + private var var_249:ICodec; - private var §_-h9§:ICodec; + private var var_253:ICodec; - private var §_-pD§:ICodec; + private var var_298:ICodec; public function CodecA3D2Sprite() { @@ -51,52 +51,52 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_295 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_294 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.var_291 = protocol.getCodec(new TypeCodecInfo(Id,false)); + this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true)); + this.var_292 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_297 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.var_296 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.var_293 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.var_298 = 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); + var value_alwaysOnTop:Boolean = Boolean(this.var_295.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); + var value_boundBoxId:int = int(this.var_245.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); + var value_height:Number = Number(this.var_294.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; + var value_id:Long = this.var_243.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; + var value_materialId:Id = this.var_291.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; + var value_name:String = this.var_251.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); + var value_originX:Number = Number(this.var_292.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); + var value_originY:Number = Number(this.var_297.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; + var value_parentId:Long = this.var_254.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); + var value_perspectiveScale:Boolean = Boolean(this.var_296.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); + var value_rotation:Number = Number(this.var_293.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; + var value_transform:A3D2Transform = this.var_249.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); + var value_visible:Boolean = Boolean(this.var_253.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); + var value_width:Number = Number(this.var_298.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); } @@ -108,20 +108,20 @@ package _codec.versions.version2.a3d.objects 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); + this.var_295.encode(protocolBuffer,struct.alwaysOnTop); + this.var_245.encode(protocolBuffer,struct.boundBoxId); + this.var_294.encode(protocolBuffer,struct.height); + this.var_243.encode(protocolBuffer,struct.id); + this.var_291.encode(protocolBuffer,struct.materialId); + this.var_251.encode(protocolBuffer,struct.name); + this.var_292.encode(protocolBuffer,struct.originX); + this.var_297.encode(protocolBuffer,struct.originY); + this.var_254.encode(protocolBuffer,struct.parentId); + this.var_296.encode(protocolBuffer,struct.perspectiveScale); + this.var_293.encode(protocolBuffer,struct.rotation); + this.var_249.encode(protocolBuffer,struct.transform); + this.var_253.encode(protocolBuffer,struct.visible); + this.var_298.encode(protocolBuffer,struct.width); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as index 8b2b989..7be9c8d 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as @@ -12,11 +12,11 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-AL§:ICodec; + private var var_302:ICodec; - private var §_-Av§:ICodec; + private var var_291:ICodec; - private var §_-pJ§:ICodec; + private var var_303:ICodec; public function CodecA3D2Surface() { @@ -25,19 +25,19 @@ package _codec.versions.version2.a3d.objects 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)); + this.var_302 = protocol.getCodec(new TypeCodecInfo(int,false)); + this.var_291 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.var_303 = 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); + var value_indexBegin:int = int(this.var_302.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); + var value_materialId:int = int(this.var_291.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); + var value_numTriangles:int = int(this.var_303.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); } @@ -49,9 +49,9 @@ package _codec.versions.version2.a3d.objects 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); + this.var_302.encode(protocolBuffer,struct.indexBegin); + this.var_291.encode(protocolBuffer,struct.materialId); + this.var_303.encode(protocolBuffer,struct.numTriangles); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as index 4748a3a..4405e0f 100644 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as +++ b/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as @@ -13,7 +13,7 @@ package _codec.versions.version2.a3d.objects { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - private var §_-dG§:ICodec; + private var var_411:ICodec; public function CodecA3D2Transform() { @@ -22,13 +22,13 @@ package _codec.versions.version2.a3d.objects public function init(protocol:IProtocol) : void { - this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); + this.var_411 = 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; + var value_matrix:A3DMatrix = this.var_411.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); } @@ -40,7 +40,7 @@ package _codec.versions.version2.a3d.objects throw new Error("Object is null. Use @ProtocolOptional annotation."); } var struct:A3D2Transform = A3D2Transform(object); - this.§_-dG§.encode(protocolBuffer,struct.matrix); + this.var_411.encode(protocolBuffer,struct.matrix); } } } diff --git a/src/alternativa/engine3d/animation/AnimationController.as b/src/alternativa/engine3d/animation/AnimationController.as index 27b80b8..76d9b65 100644 --- a/src/alternativa/engine3d/animation/AnimationController.as +++ b/src/alternativa/engine3d/animation/AnimationController.as @@ -10,17 +10,17 @@ package alternativa.engine3d.animation public class AnimationController { - private var §_-cn§:AnimationNode; + private var var_733:AnimationNode; - private var §_-Kq§:Vector.; + private var var_348:Vector.; - private var §_-62§:Vector. = new Vector.(); + private var var_732:Vector. = new Vector.(); - private var §_-oX§:Dictionary = new Dictionary(); + private var var_734:Dictionary = new Dictionary(); - private var §_-eB§:Object = new Object(); + private var var_619:Object = new Object(); - private var §_-Jl§:int = -1; + private var var_210:int = -1; alternativa3d var nearestNotifyers:AnimationNotify; @@ -31,24 +31,24 @@ package alternativa.engine3d.animation public function get root() : AnimationNode { - return this.§_-cn§; + return this.var_733; } public function set root(value:AnimationNode) : void { - if(this.§_-cn§ != value) + if(this.var_733 != value) { - if(this.§_-cn§ != null) + if(this.var_733 != null) { - this.§_-cn§.alternativa3d::setController(null); - this.§_-cn§.alternativa3d::_-Eo = false; + this.var_733.alternativa3d::setController(null); + this.var_733.alternativa3d::var_694 = false; } if(value != null) { value.alternativa3d::setController(this); - value.alternativa3d::_-Eo = true; + value.alternativa3d::var_694 = true; } - this.§_-cn§ = value; + this.var_733 = value; } } @@ -60,30 +60,30 @@ package alternativa.engine3d.animation var count:int = 0; var _loc6_:int = 0; var object:Object3D = null; - if(this.§_-Jl§ < 0) + if(this.var_210 < 0) { - this.§_-Jl§ = getTimer(); + this.var_210 = getTimer(); interval = 0; } else { _loc6_ = int(getTimer()); - interval = 0.001 * (_loc6_ - this.§_-Jl§); - this.§_-Jl§ = _loc6_; + interval = 0.001 * (_loc6_ - this.var_210); + this.var_210 = _loc6_; } - if(this.§_-cn§ == null) + if(this.var_733 == null) { return; } - for each(data in this.§_-eB§) + for each(data in this.var_619) { data.reset(); } - this.§_-cn§.alternativa3d::update(interval,1); - for(i = 0,count = int(this.§_-62§.length); i < count; ) + this.var_733.alternativa3d::update(interval,1); + for(i = 0,count = int(this.var_732.length); i < count; ) { - object = this.§_-62§[i]; - data = this.§_-eB§[object.name]; + object = this.var_732[i]; + data = this.var_619[object.name]; if(data != null) { data.apply(object); @@ -96,28 +96,28 @@ package alternativa.engine3d.animation { notify.dispatchEvent(new NotifyEvent(notify)); } - notify = notify.alternativa3d::_-XY; + notify = notify.alternativa3d::name_587; } this.alternativa3d::nearestNotifyers = null; } alternativa3d function addObject(object:Object) : void { - if(object in this.§_-oX§) + if(object in this.var_734) { - ++this.§_-oX§[object]; + ++this.var_734[object]; } else { if(object is Object3D) { - this.§_-62§.push(object); + this.var_732.push(object); } else { - this.§_-Kq§.push(object); + this.var_348.push(object); } - this.§_-oX§[object] = 1; + this.var_734[object] = 1; } } @@ -126,56 +126,56 @@ package alternativa.engine3d.animation var index:int = 0; var j:int = 0; var count:int = 0; - var used:int = int(this.§_-oX§[object]); + var used:int = int(this.var_734[object]); used--; if(used <= 0) { if(object is Object3D) { - index = int(this.§_-62§.indexOf(object)); - count = this.§_-62§.length - 1; + index = int(this.var_732.indexOf(object)); + count = this.var_732.length - 1; for(j = index + 1; index < count; ) { - this.§_-62§[index] = this.§_-62§[j]; + this.var_732[index] = this.var_732[j]; index++; j++; } - this.§_-62§.length = count; + this.var_732.length = count; } else { - index = int(this.§_-Kq§.indexOf(object)); - count = this.§_-Kq§.length - 1; + index = int(this.var_348.indexOf(object)); + count = this.var_348.length - 1; for(j = index + 1; index < count; ) { - this.§_-Kq§[index] = this.§_-Kq§[j]; + this.var_348[index] = this.var_348[j]; index++; j++; } - this.§_-Kq§.length = count; + this.var_348.length = count; } - delete this.§_-oX§[object]; + delete this.var_734[object]; } else { - this.§_-oX§[object] = used; + this.var_734[object] = used; } } alternativa3d function getState(name:String) : AnimationState { - var state:AnimationState = this.§_-eB§[name]; + var state:AnimationState = this.var_619[name]; if(state == null) { state = new AnimationState(); - this.§_-eB§[name] = state; + this.var_619[name] = state; } return state; } public function freeze() : void { - this.§_-Jl§ = -1; + this.var_210 = -1; } } } diff --git a/src/alternativa/engine3d/animation/AnimationNode.as b/src/alternativa/engine3d/animation/AnimationNode.as index d912ecd..375f60b 100644 --- a/src/alternativa/engine3d/animation/AnimationNode.as +++ b/src/alternativa/engine3d/animation/AnimationNode.as @@ -6,7 +6,7 @@ package alternativa.engine3d.animation public class AnimationNode { - alternativa3d var §_-Eo§:Boolean = false; + alternativa3d var var_694:Boolean = false; alternativa3d var _parent:AnimationNode; @@ -21,7 +21,7 @@ package alternativa.engine3d.animation public function get isActive() : Boolean { - return this.alternativa3d::_-Eo && this.alternativa3d::controller != null; + return this.alternativa3d::var_694 && this.alternativa3d::controller != null; } public function get parent() : AnimationNode @@ -51,7 +51,7 @@ package alternativa.engine3d.animation alternativa3d function removeNode(node:AnimationNode) : void { node.alternativa3d::setController(null); - node.alternativa3d::_-Eo = false; + node.alternativa3d::var_694 = false; node.alternativa3d::_parent = null; } } diff --git a/src/alternativa/engine3d/animation/AnimationNotify.as b/src/alternativa/engine3d/animation/AnimationNotify.as index 22c9dbb..f779315 100644 --- a/src/alternativa/engine3d/animation/AnimationNotify.as +++ b/src/alternativa/engine3d/animation/AnimationNotify.as @@ -9,13 +9,13 @@ package alternativa.engine3d.animation { public var name:String; - alternativa3d var §_-qC§:Number = 0; + alternativa3d var var_420:Number = 0; alternativa3d var next:AnimationNotify; - alternativa3d var §_-1n§:Number; + alternativa3d var var_735:Number; - alternativa3d var §_-XY§:AnimationNotify; + alternativa3d var name_587:AnimationNotify; public function AnimationNotify(name:String) { @@ -25,7 +25,7 @@ package alternativa.engine3d.animation public function get time() : Number { - return this.alternativa3d::_-qC; + return this.alternativa3d::var_420; } } } diff --git a/src/alternativa/engine3d/animation/AnimationState.as b/src/alternativa/engine3d/animation/AnimationState.as index 49f72a2..762b574 100644 --- a/src/alternativa/engine3d/animation/AnimationState.as +++ b/src/alternativa/engine3d/animation/AnimationState.as @@ -9,15 +9,15 @@ package alternativa.engine3d.animation public class AnimationState { - public var §_-6V§:int = 0; + public var var_731:int = 0; public var transform:TransformKey = new TransformKey(); - public var §_-H1§:Number = 0; + public var var_729:Number = 0; public var numbers:Object = new Object(); - public var §_-NT§:Object = new Object(); + public var var_730:Object = new Object(); public function AnimationState() { @@ -27,36 +27,36 @@ package alternativa.engine3d.animation public function reset() : void { var key:String = null; - this.§_-H1§ = 0; + this.var_729 = 0; for(key in this.numbers) { delete this.numbers[key]; - delete this.§_-NT§[key]; + delete this.var_730[key]; } } public function addWeightedTransform(key:TransformKey, weight:Number) : void { - this.§_-H1§ += weight; - this.transform.interpolate(this.transform,key,weight / this.§_-H1§); + this.var_729 += weight; + this.transform.interpolate(this.transform,key,weight / this.var_729); } public function addWeightedNumber(property:String, value:Number, weight:Number) : void { var current:Number = NaN; - var sum:Number = Number(this.§_-NT§[property]); + var sum:Number = Number(this.var_730[property]); if(sum == sum) { sum += weight; weight /= sum; current = Number(this.numbers[property]); this.numbers[property] = (1 - weight) * current + weight * value; - this.§_-NT§[property] = sum; + this.var_730[property] = sum; } else { this.numbers[property] = value; - this.§_-NT§[property] = weight; + this.var_730[property] = weight; } } @@ -65,7 +65,7 @@ package alternativa.engine3d.animation var sum:Number = NaN; var weight:Number = NaN; var key:String = null; - if(this.§_-H1§ > 0) + if(this.var_729 > 0) { object.x = this.transform.alternativa3d::x; object.y = this.transform.alternativa3d::y; @@ -80,48 +80,48 @@ package alternativa.engine3d.animation switch(key) { case "x": - sum = Number(this.§_-NT§["x"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["x"]); + weight = sum / (sum + this.var_729); object.x = (1 - weight) * object.x + weight * this.numbers["x"]; break; case "y": - sum = Number(this.§_-NT§["y"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["y"]); + weight = sum / (sum + this.var_729); object.y = (1 - weight) * object.y + weight * this.numbers["y"]; break; case "z": - sum = Number(this.§_-NT§["z"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["z"]); + weight = sum / (sum + this.var_729); object.z = (1 - weight) * object.z + weight * this.numbers["z"]; break; case "rotationX": - sum = Number(this.§_-NT§["rotationX"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["rotationX"]); + weight = sum / (sum + this.var_729); object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"]; break; case "rotationY": - sum = Number(this.§_-NT§["rotationY"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["rotationY"]); + weight = sum / (sum + this.var_729); object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"]; break; case "rotationZ": - sum = Number(this.§_-NT§["rotationZ"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["rotationZ"]); + weight = sum / (sum + this.var_729); object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"]; break; case "scaleX": - sum = Number(this.§_-NT§["scaleX"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["scaleX"]); + weight = sum / (sum + this.var_729); object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"]; break; case "scaleY": - sum = Number(this.§_-NT§["scaleY"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["scaleY"]); + weight = sum / (sum + this.var_729); object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"]; break; case "scaleZ": - sum = Number(this.§_-NT§["scaleZ"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["scaleZ"]); + weight = sum / (sum + this.var_729); object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"]; break; default: @@ -136,7 +136,7 @@ package alternativa.engine3d.animation var sum:Number = NaN; var weight:Number = NaN; var key:String = null; - if(this.§_-H1§ > 0) + if(this.var_729 > 0) { object.x = this.transform.alternativa3d::x; object.y = this.transform.alternativa3d::y; @@ -151,48 +151,48 @@ package alternativa.engine3d.animation switch(key) { case "x": - sum = Number(this.§_-NT§["x"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["x"]); + weight = sum / (sum + this.var_729); object.x = (1 - weight) * object.x + weight * this.numbers["x"]; break; case "y": - sum = Number(this.§_-NT§["y"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["y"]); + weight = sum / (sum + this.var_729); object.y = (1 - weight) * object.y + weight * this.numbers["y"]; break; case "z": - sum = Number(this.§_-NT§["z"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["z"]); + weight = sum / (sum + this.var_729); object.z = (1 - weight) * object.z + weight * this.numbers["z"]; break; case "rotationX": - sum = Number(this.§_-NT§["rotationX"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["rotationX"]); + weight = sum / (sum + this.var_729); object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"]; break; case "rotationY": - sum = Number(this.§_-NT§["rotationY"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["rotationY"]); + weight = sum / (sum + this.var_729); object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"]; break; case "rotationZ": - sum = Number(this.§_-NT§["rotationZ"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["rotationZ"]); + weight = sum / (sum + this.var_729); object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"]; break; case "scaleX": - sum = Number(this.§_-NT§["scaleX"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["scaleX"]); + weight = sum / (sum + this.var_729); object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"]; break; case "scaleY": - sum = Number(this.§_-NT§["scaleY"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["scaleY"]); + weight = sum / (sum + this.var_729); object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"]; break; case "scaleZ": - sum = Number(this.§_-NT§["scaleZ"]); - weight = sum / (sum + this.§_-H1§); + sum = Number(this.var_730["scaleZ"]); + weight = sum / (sum + this.var_729); object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"]; break; default: diff --git a/src/alternativa/engine3d/animation/keys/Keyframe.as b/src/alternativa/engine3d/animation/keys/Keyframe.as index d9dbb98..e82c348 100644 --- a/src/alternativa/engine3d/animation/keys/Keyframe.as +++ b/src/alternativa/engine3d/animation/keys/Keyframe.as @@ -6,7 +6,7 @@ package alternativa.engine3d.animation.keys public class Keyframe { - alternativa3d var §_-qC§:Number = 0; + alternativa3d var var_420:Number = 0; public function Keyframe() { @@ -15,7 +15,7 @@ package alternativa.engine3d.animation.keys public function get time() : Number { - return this.alternativa3d::_-qC; + return this.alternativa3d::var_420; } public function get value() : Object @@ -38,7 +38,7 @@ package alternativa.engine3d.animation.keys public function toString() : String { - return "[Keyframe time = " + this.alternativa3d::_-qC.toFixed(2) + " value = " + this.value + "]"; + return "[Keyframe time = " + this.alternativa3d::var_420.toFixed(2) + " value = " + this.value + "]"; } } } diff --git a/src/alternativa/engine3d/animation/keys/NumberKey.as b/src/alternativa/engine3d/animation/keys/NumberKey.as index d46c6e2..e9efd01 100644 --- a/src/alternativa/engine3d/animation/keys/NumberKey.as +++ b/src/alternativa/engine3d/animation/keys/NumberKey.as @@ -6,7 +6,7 @@ package alternativa.engine3d.animation.keys public class NumberKey extends Keyframe { - alternativa3d var §_-4O§:Number = 0; + alternativa3d var name_598:Number = 0; alternativa3d var next:NumberKey; @@ -17,17 +17,17 @@ package alternativa.engine3d.animation.keys public function interpolate(a:NumberKey, b:NumberKey, c:Number) : void { - this.alternativa3d::_-4O = (1 - c) * a.alternativa3d::_-4O + c * b.alternativa3d::_-4O; + this.alternativa3d::name_598 = (1 - c) * a.alternativa3d::name_598 + c * b.alternativa3d::name_598; } override public function get value() : Object { - return this.alternativa3d::_-4O; + return this.alternativa3d::name_598; } override public function set value(v:Object) : void { - this.alternativa3d::_-4O = Number(v); + this.alternativa3d::name_598 = Number(v); } override alternativa3d function get nextKeyFrame() : Keyframe diff --git a/src/alternativa/engine3d/collisions/EllipsoidCollider.as b/src/alternativa/engine3d/collisions/EllipsoidCollider.as index 2c67f1d..7b1b937 100644 --- a/src/alternativa/engine3d/collisions/EllipsoidCollider.as +++ b/src/alternativa/engine3d/collisions/EllipsoidCollider.as @@ -21,15 +21,15 @@ package alternativa.engine3d.collisions private var matrix:Transform3D = new Transform3D(); - private var §_-jX§:Transform3D = new Transform3D(); + private var var_580:Transform3D = new Transform3D(); alternativa3d var geometries:Vector. = new Vector.(); - alternativa3d var §_-QK§:Vector. = new Vector.(); + alternativa3d var name_315:Vector. = new Vector.(); private var vertices:Vector. = new Vector.(); - private var §_-g0§:Vector. = new Vector.(); + private var var_581:Vector. = new Vector.(); private var indices:Vector. = new Vector.(); @@ -39,23 +39,23 @@ package alternativa.engine3d.collisions private var src:Vector3D = new Vector3D(); - private var §_-o5§:Vector3D = new Vector3D(); + private var var_574:Vector3D = new Vector3D(); private var dest:Vector3D = new Vector3D(); - private var §_-SE§:Vector3D = new Vector3D(); + private var var_575:Vector3D = new Vector3D(); - private var §_-pU§:Vector3D = new Vector3D(); + private var var_573:Vector3D = new Vector3D(); alternativa3d var sphere: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_576:Vector3D = new Vector3D(); - private var §_-L9§:Vector3D = new Vector3D(); + private var var_578:Vector3D = new Vector3D(); - private var §_-8B§:Vector3D = new Vector3D(); + private var var_577:Vector3D = new Vector3D(); public function EllipsoidCollider(radiusX:Number, radiusY:Number, radiusZ:Number) { @@ -70,18 +70,18 @@ package alternativa.engine3d.collisions this.alternativa3d::sphere.x = transform.d; this.alternativa3d::sphere.y = transform.h; this.alternativa3d::sphere.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 sax:Number = transform.a * this.var_579.x + transform.b * this.var_579.y + transform.c * this.var_579.z + transform.d; + var say:Number = transform.e * this.var_579.x + transform.f * this.var_579.y + transform.g * this.var_579.z + transform.h; + var saz:Number = transform.i * this.var_579.x + transform.j * this.var_579.y + transform.k * this.var_579.z + transform.l; + var sbx:Number = transform.a * this.var_576.x + transform.b * this.var_576.y + transform.c * this.var_576.z + transform.d; + var sby:Number = transform.e * this.var_576.x + transform.f * this.var_576.y + transform.g * this.var_576.z + transform.h; + var sbz:Number = transform.i * this.var_576.x + transform.j * this.var_576.y + transform.k * this.var_576.z + transform.l; + var scx:Number = transform.a * this.var_578.x + transform.b * this.var_578.y + transform.c * this.var_578.z + transform.d; + var scy:Number = transform.e * this.var_578.x + transform.f * this.var_578.y + transform.g * this.var_578.z + transform.h; + var scz:Number = transform.i * this.var_578.x + transform.j * this.var_578.y + transform.k * this.var_578.z + transform.l; + var sdx:Number = transform.a * this.var_577.x + transform.b * this.var_577.y + transform.c * this.var_577.z + transform.d; + var sdy:Number = transform.e * this.var_577.x + transform.f * this.var_577.y + transform.g * this.var_577.z + transform.h; + var sdz:Number = transform.i * this.var_577.x + transform.j * this.var_577.y + transform.k * this.var_577.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; @@ -162,30 +162,30 @@ package alternativa.engine3d.collisions 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.§_-jX§.copy(this.matrix); - this.§_-jX§.invert(); + this.var_580.copy(this.matrix); + this.var_580.invert(); this.src.x = 0; this.src.y = 0; this.src.z = 0; - 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; + this.var_574.x = this.var_580.a * displacement.x + this.var_580.b * displacement.y + this.var_580.c * displacement.z; + this.var_574.y = this.var_580.e * displacement.x + this.var_580.f * displacement.y + this.var_580.g * displacement.z; + this.var_574.z = this.var_580.i * displacement.x + this.var_580.j * displacement.y + this.var_580.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_579.x = -rad; + this.var_579.y = -rad; + this.var_579.z = -rad; + this.var_576.x = rad; + this.var_576.y = -rad; + this.var_576.z = -rad; + this.var_578.x = rad; + this.var_578.y = rad; + this.var_578.z = -rad; + this.var_577.x = -rad; + this.var_577.y = rad; + this.var_577.z = -rad; if(excludedObjects == null || !excludedObjects[object]) { if(object.alternativa3d::transformChanged) @@ -201,7 +201,7 @@ package alternativa.engine3d.collisions } if(intersects) { - object.alternativa3d::localToGlobalTransform.combine(this.§_-jX§,object.alternativa3d::transform); + object.alternativa3d::localToGlobalTransform.combine(this.var_580,object.alternativa3d::transform); object.alternativa3d::collectGeometry(this,excludedObjects); } if(object.alternativa3d::childrenList != null) @@ -218,11 +218,11 @@ package alternativa.engine3d.collisions for(var i:int = 0; i < geometriesLength; i++) { geometry = this.alternativa3d::geometries[i]; - transform = this.alternativa3d::_-QK[i]; + transform = this.alternativa3d::name_315[i]; geometryIndicesLength = int(geometry.alternativa3d::_indices.length); if(!(geometry.alternativa3d::_numVertices == 0 || geometryIndicesLength == 0)) { - vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::_-GM.length ? geometry.alternativa3d::_-GM[VertexAttributes.POSITION] : null; + vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::var_170.length ? geometry.alternativa3d::var_170[VertexAttributes.POSITION] : null; if(vBuffer != null) { attributesOffset = int(geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION]); @@ -300,13 +300,13 @@ package alternativa.engine3d.collisions indicesLength++; this.indices[indicesLength] = c; indicesLength++; - this.§_-g0§[normalsLength] = normalX; + this.var_581[normalsLength] = normalX; normalsLength++; - this.§_-g0§[normalsLength] = normalY; + this.var_581[normalsLength] = normalY; normalsLength++; - this.§_-g0§[normalsLength] = normalZ; + this.var_581[normalsLength] = normalZ; normalsLength++; - this.§_-g0§[normalsLength] = offset; + this.var_581[normalsLength] = offset; normalsLength++; ++this.numTriangles; } @@ -319,7 +319,7 @@ package alternativa.engine3d.collisions } } this.alternativa3d::geometries.length = 0; - this.alternativa3d::_-QK.length = 0; + this.alternativa3d::name_315.length = 0; } public function calculateDestination(source:Vector3D, displacement:Vector3D, object:Object3D, excludedObjects:Dictionary = null) : Vector3D @@ -341,17 +341,17 @@ package alternativa.engine3d.collisions { break; } - 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) + 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) { break; } @@ -385,39 +385,39 @@ package alternativa.engine3d.collisions { if(this.checkCollision()) { - 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) + 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) { - if(this.§_-pU§.x < this.§_-pU§.z) + if(this.var_573.x < this.var_573.z) { abx = 0; - aby = -this.§_-pU§.z; - abz = Number(this.§_-pU§.y); + aby = -this.var_573.z; + abz = Number(this.var_573.y); } else { - abx = -this.§_-pU§.y; - aby = Number(this.§_-pU§.x); + abx = -this.var_573.y; + aby = Number(this.var_573.x); abz = 0; } } - else if(this.§_-pU§.y < this.§_-pU§.z) + else if(this.var_573.y < this.var_573.z) { - abx = Number(this.§_-pU§.z); + abx = Number(this.var_573.z); aby = 0; - abz = -this.§_-pU§.x; + abz = -this.var_573.x; } else { - abx = -this.§_-pU§.y; - aby = Number(this.§_-pU§.x); + abx = -this.var_573.y; + aby = Number(this.var_573.x); abz = 0; } - 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; + 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; 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; @@ -492,7 +492,7 @@ package alternativa.engine3d.collisions var projectionInsideLength:Number = NaN; var time:Number = NaN; var minTime:Number = 1; - var displacementLength:Number = Number(this.§_-o5§.length); + var displacementLength:Number = Number(this.var_574.length); var indicesLength:int = this.numTriangles * 3; for(var i:int = 0,var j:int = 0; i < indicesLength; ) { @@ -517,13 +517,13 @@ package alternativa.engine3d.collisions cy = this.vertices[index]; index++; cz = this.vertices[index]; - normalX = this.§_-g0§[j]; + normalX = this.var_581[j]; j++; - normalY = this.§_-g0§[j]; + normalY = this.var_581[j]; j++; - normalZ = this.§_-g0§[j]; + normalZ = this.var_581[j]; j++; - offset = this.§_-g0§[j]; + offset = this.var_581[j]; j++; distance = this.src.x * normalX + this.src.y * normalY + this.src.z * normalZ - offset; if(distance < this.radius) @@ -535,9 +535,9 @@ package alternativa.engine3d.collisions else { _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; + pointX = this.src.x + this.var_574.x * _loc33_ - normalX * this.radius; + pointY = this.src.y + this.var_574.y * _loc33_ - normalY * this.radius; + pointZ = this.src.z + this.var_574.z * _loc33_ - normalZ * this.radius; } min = 1e+22; inside = true; @@ -636,11 +636,11 @@ package alternativa.engine3d.collisions deltaX = this.src.x - faceX; deltaY = this.src.y - faceY; deltaZ = this.src.z - faceZ; - if(deltaX * this.§_-o5§.x + deltaY * this.§_-o5§.y + deltaZ * this.§_-o5§.z <= 0) + if(deltaX * this.var_574.x + deltaY * this.var_574.y + deltaZ * this.var_574.z <= 0) { - backX = -this.§_-o5§.x / displacementLength; - backY = -this.§_-o5§.y / displacementLength; - backZ = -this.§_-o5§.z / displacementLength; + backX = -this.var_574.x / displacementLength; + backY = -this.var_574.y / displacementLength; + backZ = -this.var_574.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 alternativa.engine3d.collisions if(time < minTime) { minTime = time; - this.§_-SE§.x = faceX; - this.§_-SE§.y = faceY; - this.§_-SE§.z = faceZ; + this.var_575.x = faceX; + this.var_575.y = faceY; + this.var_575.z = faceZ; if(inside) { - this.§_-pU§.x = normalX; - this.§_-pU§.y = normalY; - this.§_-pU§.z = normalZ; - this.§_-pU§.w = offset; + this.var_573.x = normalX; + this.var_573.y = normalY; + this.var_573.z = normalZ; + this.var_573.w = offset; } else { deltaLength = Number(Math.sqrt(deltaLength)); - 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; + 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; } } } diff --git a/src/alternativa/engine3d/core/DrawUnit.as b/src/alternativa/engine3d/core/DrawUnit.as index 0c4844f..c8e412a 100644 --- a/src/alternativa/engine3d/core/DrawUnit.as +++ b/src/alternativa/engine3d/core/DrawUnit.as @@ -32,27 +32,27 @@ package alternativa.engine3d.core alternativa3d var textures:Vector. = new Vector.(); - alternativa3d var §_-kR§:Vector. = new Vector.(); + alternativa3d var var_183:Vector. = new Vector.(); - alternativa3d var §_-Oq§:int = 0; + alternativa3d var var_182:int = 0; alternativa3d var vertexBuffers:Vector. = new Vector.(); - alternativa3d var §else §:Vector. = new Vector.(); + alternativa3d var name_318:Vector. = new Vector.(); - alternativa3d var §_-nw§:Vector. = new Vector.(); + alternativa3d var name_324:Vector. = new Vector.(); - alternativa3d var §_-EL§:Vector. = new Vector.(); + alternativa3d var name_322:Vector. = new Vector.(); - alternativa3d var §_-3G§:int = 0; + alternativa3d var name_316:int = 0; - alternativa3d var §_-Aq§:Vector. = new Vector.(); + alternativa3d var name_323:Vector. = new Vector.(); - alternativa3d var §_-9X§:int = 0; + alternativa3d var name_317:int = 0; - alternativa3d var §_-Cl§:Vector. = new Vector.(28 * 4,true); + alternativa3d var name_321:Vector. = new Vector.(28 * 4,true); - alternativa3d var §_-Kv§:int = 0; + alternativa3d var name_320:int = 0; public function DrawUnit() { @@ -68,11 +68,11 @@ package alternativa.engine3d.core this.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; this.alternativa3d::culling = Context3DTriangleFace.FRONT; this.alternativa3d::textures.length = 0; - this.alternativa3d::_-Oq = 0; + this.alternativa3d::var_182 = 0; this.alternativa3d::vertexBuffers.length = 0; - this.alternativa3d::_-3G = 0; - this.alternativa3d::_-9X = 0; - this.alternativa3d::_-Kv = 0; + this.alternativa3d::name_316 = 0; + this.alternativa3d::name_317 = 0; + this.alternativa3d::name_320 = 0; } alternativa3d function setTextureAt(sampler:int, texture:TextureBase) : void @@ -85,9 +85,9 @@ package alternativa.engine3d.core { throw new Error("Texture is null"); } - this.alternativa3d::_-kR[this.alternativa3d::_-Oq] = sampler; - this.alternativa3d::textures[this.alternativa3d::_-Oq] = texture; - ++this.alternativa3d::_-Oq; + 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 @@ -100,11 +100,11 @@ package alternativa.engine3d.core { 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; + this.alternativa3d::name_318[this.alternativa3d::name_316] = index; + this.alternativa3d::vertexBuffers[this.alternativa3d::name_316] = buffer; + this.alternativa3d::name_324[this.alternativa3d::name_316] = bufferOffset; + this.alternativa3d::name_322[this.alternativa3d::name_316] = format; + ++this.alternativa3d::name_316; } alternativa3d function setVertexConstantsFromVector(firstRegister:int, data:Vector., numRegisters:int) : void @@ -114,14 +114,14 @@ package alternativa.engine3d.core throw new Error("Register index " + firstRegister + " is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + numRegisters > this.alternativa3d::_-9X) + if(firstRegister + numRegisters > this.alternativa3d::name_317) { - this.alternativa3d::_-9X = firstRegister + numRegisters; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.alternativa3d::name_317 = firstRegister + numRegisters; + this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2; } for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) { - this.alternativa3d::_-Aq[offset] = data[i]; + this.alternativa3d::name_323[offset] = data[i]; offset++; i++; } @@ -134,18 +134,18 @@ package alternativa.engine3d.core throw new Error("Register index " + firstRegister + " is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + 1 > this.alternativa3d::_-9X) + if(firstRegister + 1 > this.alternativa3d::name_317) { - this.alternativa3d::_-9X = firstRegister + 1; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.alternativa3d::name_317 = firstRegister + 1; + this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2; } - this.alternativa3d::_-Aq[offset] = x; + this.alternativa3d::name_323[offset] = x; offset++; - this.alternativa3d::_-Aq[offset] = y; + this.alternativa3d::name_323[offset] = y; offset++; - this.alternativa3d::_-Aq[offset] = z; + this.alternativa3d::name_323[offset] = z; offset++; - this.alternativa3d::_-Aq[offset] = w; + this.alternativa3d::name_323[offset] = w; } alternativa3d function setVertexConstantsFromTransform(firstRegister:int, transform:Transform3D) : void @@ -155,34 +155,34 @@ package alternativa.engine3d.core throw new Error("Register index " + firstRegister + " is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + 3 > this.alternativa3d::_-9X) + if(firstRegister + 3 > this.alternativa3d::name_317) { - this.alternativa3d::_-9X = firstRegister + 3; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.alternativa3d::name_317 = firstRegister + 3; + this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2; } - this.alternativa3d::_-Aq[offset] = transform.a; + this.alternativa3d::name_323[offset] = transform.a; offset++; - this.alternativa3d::_-Aq[offset] = transform.b; + this.alternativa3d::name_323[offset] = transform.b; offset++; - this.alternativa3d::_-Aq[offset] = transform.c; + this.alternativa3d::name_323[offset] = transform.c; offset++; - this.alternativa3d::_-Aq[offset] = transform.d; + this.alternativa3d::name_323[offset] = transform.d; offset++; - this.alternativa3d::_-Aq[offset] = transform.e; + this.alternativa3d::name_323[offset] = transform.e; offset++; - this.alternativa3d::_-Aq[offset] = transform.f; + this.alternativa3d::name_323[offset] = transform.f; offset++; - this.alternativa3d::_-Aq[offset] = transform.g; + this.alternativa3d::name_323[offset] = transform.g; offset++; - this.alternativa3d::_-Aq[offset] = transform.h; + this.alternativa3d::name_323[offset] = transform.h; offset++; - this.alternativa3d::_-Aq[offset] = transform.i; + this.alternativa3d::name_323[offset] = transform.i; offset++; - this.alternativa3d::_-Aq[offset] = transform.j; + this.alternativa3d::name_323[offset] = transform.j; offset++; - this.alternativa3d::_-Aq[offset] = transform.k; + this.alternativa3d::name_323[offset] = transform.k; offset++; - this.alternativa3d::_-Aq[offset] = transform.l; + this.alternativa3d::name_323[offset] = transform.l; } alternativa3d function setProjectionConstants(camera:Camera3D, firstRegister:int, transform:Transform3D = null) : void @@ -192,99 +192,99 @@ package alternativa.engine3d.core throw new Error("Register index is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + 4 > this.alternativa3d::_-9X) + if(firstRegister + 4 > this.alternativa3d::name_317) { - this.alternativa3d::_-9X = firstRegister + 4; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.alternativa3d::name_317 = firstRegister + 4; + this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2; } if(transform != null) { - this.alternativa3d::_-Aq[offset] = transform.a * camera.alternativa3d::m0; + this.alternativa3d::name_323[offset] = transform.a * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.b * camera.alternativa3d::m0; + this.alternativa3d::name_323[offset] = transform.b * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.c * camera.alternativa3d::m0; + this.alternativa3d::name_323[offset] = transform.c * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.d * camera.alternativa3d::m0; + this.alternativa3d::name_323[offset] = transform.d * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.e * camera.alternativa3d::m5; + this.alternativa3d::name_323[offset] = transform.e * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.f * camera.alternativa3d::m5; + this.alternativa3d::name_323[offset] = transform.f * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.g * camera.alternativa3d::m5; + this.alternativa3d::name_323[offset] = transform.g * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.h * camera.alternativa3d::m5; + this.alternativa3d::name_323[offset] = transform.h * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.i * camera.alternativa3d::m10; + this.alternativa3d::name_323[offset] = transform.i * camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = transform.j * camera.alternativa3d::m10; + this.alternativa3d::name_323[offset] = transform.j * camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = transform.k * camera.alternativa3d::m10; + this.alternativa3d::name_323[offset] = transform.k * camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14; + this.alternativa3d::name_323[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14; offset++; if(!camera.orthographic) { - this.alternativa3d::_-Aq[offset] = transform.i; + this.alternativa3d::name_323[offset] = transform.i; offset++; - this.alternativa3d::_-Aq[offset] = transform.j; + this.alternativa3d::name_323[offset] = transform.j; offset++; - this.alternativa3d::_-Aq[offset] = transform.k; + this.alternativa3d::name_323[offset] = transform.k; offset++; - this.alternativa3d::_-Aq[offset] = transform.l; + this.alternativa3d::name_323[offset] = transform.l; } else { - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 1; + this.alternativa3d::name_323[offset] = 1; } } else { - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m0; + this.alternativa3d::name_323[offset] = camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m5; + this.alternativa3d::name_323[offset] = camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m10; + this.alternativa3d::name_323[offset] = camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m14; + this.alternativa3d::name_323[offset] = camera.alternativa3d::m14; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; if(!camera.orthographic) { - this.alternativa3d::_-Aq[offset] = 1; + this.alternativa3d::name_323[offset] = 1; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; } else { - this.alternativa3d::_-Aq[offset] = 0; + this.alternativa3d::name_323[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 1; + this.alternativa3d::name_323[offset] = 1; } } } @@ -296,13 +296,13 @@ package alternativa.engine3d.core throw new Error("Register index " + firstRegister + " is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + numRegisters > this.alternativa3d::_-Kv) + if(firstRegister + numRegisters > this.alternativa3d::name_320) { - this.alternativa3d::_-Kv = firstRegister + numRegisters; + this.alternativa3d::name_320 = firstRegister + numRegisters; } for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) { - this.alternativa3d::_-Cl[offset] = data[i]; + this.alternativa3d::name_321[offset] = data[i]; offset++; i++; } @@ -315,17 +315,17 @@ package alternativa.engine3d.core throw new Error("Register index " + firstRegister + " is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + 1 > this.alternativa3d::_-Kv) + if(firstRegister + 1 > this.alternativa3d::name_320) { - this.alternativa3d::_-Kv = firstRegister + 1; + this.alternativa3d::name_320 = firstRegister + 1; } - this.alternativa3d::_-Cl[offset] = x; + this.alternativa3d::name_321[offset] = x; offset++; - this.alternativa3d::_-Cl[offset] = y; + this.alternativa3d::name_321[offset] = y; offset++; - this.alternativa3d::_-Cl[offset] = z; + this.alternativa3d::name_321[offset] = z; offset++; - this.alternativa3d::_-Cl[offset] = w; + this.alternativa3d::name_321[offset] = w; } alternativa3d function setFragmentConstantsFromTransform(firstRegister:int, transform:Transform3D) : void @@ -335,33 +335,33 @@ package alternativa.engine3d.core throw new Error("Register index " + firstRegister + " is out of bounds."); } var offset:int = firstRegister << 2; - if(firstRegister + 3 > this.alternativa3d::_-Kv) + if(firstRegister + 3 > this.alternativa3d::name_320) { - this.alternativa3d::_-Kv = firstRegister + 3; + this.alternativa3d::name_320 = firstRegister + 3; } - this.alternativa3d::_-Cl[offset] = transform.a; + this.alternativa3d::name_321[offset] = transform.a; offset++; - this.alternativa3d::_-Cl[offset] = transform.b; + this.alternativa3d::name_321[offset] = transform.b; offset++; - this.alternativa3d::_-Cl[offset] = transform.c; + this.alternativa3d::name_321[offset] = transform.c; offset++; - this.alternativa3d::_-Cl[offset] = transform.d; + this.alternativa3d::name_321[offset] = transform.d; offset++; - this.alternativa3d::_-Cl[offset] = transform.e; + this.alternativa3d::name_321[offset] = transform.e; offset++; - this.alternativa3d::_-Cl[offset] = transform.f; + this.alternativa3d::name_321[offset] = transform.f; offset++; - this.alternativa3d::_-Cl[offset] = transform.g; + this.alternativa3d::name_321[offset] = transform.g; offset++; - this.alternativa3d::_-Cl[offset] = transform.h; + this.alternativa3d::name_321[offset] = transform.h; offset++; - this.alternativa3d::_-Cl[offset] = transform.i; + this.alternativa3d::name_321[offset] = transform.i; offset++; - this.alternativa3d::_-Cl[offset] = transform.j; + this.alternativa3d::name_321[offset] = transform.j; offset++; - this.alternativa3d::_-Cl[offset] = transform.k; + this.alternativa3d::name_321[offset] = transform.k; offset++; - this.alternativa3d::_-Cl[offset] = transform.l; + this.alternativa3d::name_321[offset] = transform.l; } } } diff --git a/src/alternativa/engine3d/core/Light3D.as b/src/alternativa/engine3d/core/Light3D.as index 6cbb8c5..96f1afb 100644 --- a/src/alternativa/engine3d/core/Light3D.as +++ b/src/alternativa/engine3d/core/Light3D.as @@ -12,9 +12,9 @@ package alternativa.engine3d.core public var intensity:Number = 1; - alternativa3d var §_-cl§:Transform3D = new Transform3D(); + alternativa3d var name_80:Transform3D = new Transform3D(); - alternativa3d var §_-oG§:String; + alternativa3d var name_79:String; alternativa3d var red:Number; @@ -25,7 +25,7 @@ package alternativa.engine3d.core public function Light3D() { super(); - this.alternativa3d::_-oG = "l" + lastLightNumber.toString(16); + this.alternativa3d::name_79 = "l" + lastLightNumber.toString(16); name = "L" + (lastLightNumber++).toString(); } diff --git a/src/alternativa/engine3d/core/Object3D.as b/src/alternativa/engine3d/core/Object3D.as index 09b2587..6cec517 100644 --- a/src/alternativa/engine3d/core/Object3D.as +++ b/src/alternativa/engine3d/core/Object3D.as @@ -551,7 +551,7 @@ package alternativa.engine3d.core var event3D:Event3D = event as Event3D; if(event3D != null) { - event3D.alternativa3d::_-5E = this; + event3D.alternativa3d::name_314 = this; } var branch:Vector. = new Vector.(); var branchLength:int = 0; @@ -565,8 +565,8 @@ package alternativa.engine3d.core object = branch[i]; if(event3D != null) { - event3D.alternativa3d::_-Kh = object; - event3D.alternativa3d::_-VE = EventPhase.CAPTURING_PHASE; + event3D.alternativa3d::name_313 = object; + event3D.alternativa3d::name_312 = EventPhase.CAPTURING_PHASE; } if(object.alternativa3d::captureListeners != null) { @@ -587,17 +587,17 @@ package alternativa.engine3d.core } if(event3D != null) { - event3D.alternativa3d::_-VE = EventPhase.AT_TARGET; + event3D.alternativa3d::name_312 = EventPhase.AT_TARGET; } for(i = 0; i < branchLength; ) { object = branch[i]; if(event3D != null) { - event3D.alternativa3d::_-Kh = object; + event3D.alternativa3d::name_313 = object; if(i > 0) { - event3D.alternativa3d::_-VE = EventPhase.BUBBLING_PHASE; + event3D.alternativa3d::name_312 = EventPhase.BUBBLING_PHASE; } } if(object.alternativa3d::bubbleListeners != null) @@ -1164,7 +1164,7 @@ package alternativa.engine3d.core for(i = 0; i < lightsLength; ) { light = lights[i]; - light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.alternativa3d::name_80.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); if(light.boundBox == null || light.alternativa3d::checkBound(child)) { camera.alternativa3d::childLights[childLightsLength] = light; @@ -1179,7 +1179,7 @@ package alternativa.engine3d.core for(i = 0; i < lightsLength; ) { light = lights[i]; - light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.alternativa3d::name_80.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); i++; } child.alternativa3d::collectDraws(camera,lights,lightsLength); diff --git a/src/alternativa/engine3d/core/Renderer.as b/src/alternativa/engine3d/core/Renderer.as index 0c7b11b..4990441 100644 --- a/src/alternativa/engine3d/core/Renderer.as +++ b/src/alternativa/engine3d/core/Renderer.as @@ -20,7 +20,7 @@ package alternativa.engine3d.core alternativa3d var camera:Camera3D; - alternativa3d var §_-T5§:Vector. = new Vector.(); + alternativa3d var var_585:Vector. = new Vector.(); public function Renderer() { @@ -31,10 +31,10 @@ package alternativa.engine3d.core { var list:DrawUnit = null; var next:DrawUnit = null; - var drawUnitsLength:int = int(this.alternativa3d::_-T5.length); + var drawUnitsLength:int = int(this.alternativa3d::var_585.length); for(var i:int = 0; i < drawUnitsLength; ) { - list = this.alternativa3d::_-T5[i]; + list = this.alternativa3d::var_585[i]; if(list != null) { switch(i) @@ -90,7 +90,7 @@ package alternativa.engine3d.core } i++; } - this.alternativa3d::_-T5.length = 0; + this.alternativa3d::var_585.length = 0; } alternativa3d function createDrawUnit(object:Object3D, program:Program3D, indexBuffer:IndexBuffer3D, firstIndex:int, numTriangles:int, debugShader:ShaderProgram = null) : DrawUnit @@ -116,12 +116,12 @@ package alternativa.engine3d.core alternativa3d function addDrawUnit(drawUnit:DrawUnit, renderPriority:int) : void { - if(renderPriority >= this.alternativa3d::_-T5.length) + if(renderPriority >= this.alternativa3d::var_585.length) { - this.alternativa3d::_-T5.length = renderPriority + 1; + this.alternativa3d::var_585.length = renderPriority + 1; } - drawUnit.alternativa3d::next = this.alternativa3d::_-T5[renderPriority]; - this.alternativa3d::_-T5[renderPriority] = drawUnit; + drawUnit.alternativa3d::next = this.alternativa3d::var_585[renderPriority]; + this.alternativa3d::var_585[renderPriority] = drawUnit; } protected function renderDrawUnit(drawUnit:DrawUnit, context:Context3D, camera:Camera3D) : void @@ -134,25 +134,25 @@ package alternativa.engine3d.core 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::_-3G; i++) + for(var i:int = 0; i < drawUnit.alternativa3d::name_316; i++) { - bufferIndex = int(drawUnit.alternativa3d::else [i]); + bufferIndex = int(drawUnit.alternativa3d::name_318[i]); bufferBit = 1 << bufferIndex; currentBuffers |= bufferBit; _usedBuffers &= ~bufferBit; - context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]); + context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::name_324[i],drawUnit.alternativa3d::name_322[i]); } - if(drawUnit.alternativa3d::_-9X > 0) + if(drawUnit.alternativa3d::name_317 > 0) { - context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::_-Aq,drawUnit.alternativa3d::_-9X); + context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::name_323,drawUnit.alternativa3d::name_317); } - if(drawUnit.alternativa3d::_-Kv > 0) + if(drawUnit.alternativa3d::name_320 > 0) { - context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::_-Cl,drawUnit.alternativa3d::_-Kv); + context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::name_321,drawUnit.alternativa3d::name_320); } - for(i = 0; i < drawUnit.alternativa3d::_-Oq; ) + for(i = 0; i < drawUnit.alternativa3d::var_182; ) { - textureSampler = int(drawUnit.alternativa3d::_-kR[i]); + textureSampler = int(drawUnit.alternativa3d::var_183[i]); textureBit = 1 << textureSampler; currentTextures |= textureBit; _usedTextures &= ~textureBit; diff --git a/src/alternativa/engine3d/core/events/Event3D.as b/src/alternativa/engine3d/core/events/Event3D.as index 0a3965f..3d9a80d 100644 --- a/src/alternativa/engine3d/core/events/Event3D.as +++ b/src/alternativa/engine3d/core/events/Event3D.as @@ -12,42 +12,42 @@ package alternativa.engine3d.core.events public static const REMOVED:String = "removed3D"; - alternativa3d var §_-5E§:Object3D; + alternativa3d var name_314:Object3D; - alternativa3d var §_-Kh§:Object3D; + alternativa3d var name_313:Object3D; - alternativa3d var §_-iJ§:Boolean; + alternativa3d var var_107:Boolean; - alternativa3d var §_-VE§:uint = 3; + alternativa3d var name_312:uint = 3; alternativa3d var stop:Boolean = false; - alternativa3d var §_-XD§:Boolean = false; + alternativa3d var var_108:Boolean = false; public function Event3D(type:String, bubbles:Boolean = true) { super(type,bubbles); - this.alternativa3d::_-iJ = bubbles; + this.alternativa3d::var_107 = bubbles; } override public function get bubbles() : Boolean { - return this.alternativa3d::_-iJ; + return this.alternativa3d::var_107; } override public function get eventPhase() : uint { - return this.alternativa3d::_-VE; + return this.alternativa3d::name_312; } override public function get target() : Object { - return this.alternativa3d::_-5E; + return this.alternativa3d::name_314; } override public function get currentTarget() : Object { - return this.alternativa3d::_-Kh; + return this.alternativa3d::name_313; } override public function stopPropagation() : void @@ -57,15 +57,15 @@ package alternativa.engine3d.core.events override public function stopImmediatePropagation() : void { - this.alternativa3d::_-XD = true; + this.alternativa3d::var_108 = true; } override public function clone() : Event { - 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; + var result:Event3D = new Event3D(type,this.alternativa3d::var_107); + result.alternativa3d::name_314 = this.alternativa3d::name_314; + result.alternativa3d::name_313 = this.alternativa3d::name_313; + result.alternativa3d::name_312 = this.alternativa3d::name_312; return result; } diff --git a/src/alternativa/engine3d/core/events/MouseEvent3D.as b/src/alternativa/engine3d/core/events/MouseEvent3D.as index 081c08e..5e9e23f 100644 --- a/src/alternativa/engine3d/core/events/MouseEvent3D.as +++ b/src/alternativa/engine3d/core/events/MouseEvent3D.as @@ -47,7 +47,7 @@ package alternativa.engine3d.core.events public var localZ:Number; - alternativa3d var §_-BX§:Surface; + alternativa3d var var_109:Surface; 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) { @@ -65,12 +65,12 @@ package alternativa.engine3d.core.events public function get surface() : Surface { - return this.alternativa3d::_-BX; + return this.alternativa3d::var_109; } override public function clone() : Event { - return new MouseEvent3D(type,alternativa3d::_-iJ,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta); + 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); } override public function toString() : String diff --git a/src/alternativa/engine3d/effects/Particle.as b/src/alternativa/engine3d/effects/Particle.as index 498d5f3..d02b65f 100644 --- a/src/alternativa/engine3d/effects/Particle.as +++ b/src/alternativa/engine3d/effects/Particle.as @@ -30,13 +30,13 @@ package alternativa.engine3d.effects public var originY:Number; - public var §_-q§:Number; + public var name_333:Number; - public var §_-Ts§:Number; + public var name_330:Number; - public var §_-ej§:Number; + public var name_332:Number; - public var §_-W5§:Number; + public var name_331:Number; public var red:Number; diff --git a/src/alternativa/engine3d/effects/ParticlePrototype.as b/src/alternativa/engine3d/effects/ParticlePrototype.as index 07eafe0..2541570 100644 --- a/src/alternativa/engine3d/effects/ParticlePrototype.as +++ b/src/alternativa/engine3d/effects/ParticlePrototype.as @@ -21,23 +21,23 @@ package alternativa.engine3d.effects private var height:Number; - private var §_-gV§:Vector. = new Vector.(); + private var var_151:Vector. = new Vector.(); - private var §_-0r§:Vector. = new Vector.(); + private var var_657:Vector. = new Vector.(); - private var §_-4e§:Vector. = new Vector.(); + private var var_659:Vector. = new Vector.(); - private var §_-Oj§:Vector. = new Vector.(); + private var var_662:Vector. = new Vector.(); - private var §_-07§:Vector. = new Vector.(); + private var var_656:Vector. = new Vector.(); - private var §_-3l§:Vector. = new Vector.(); + private var var_658:Vector. = new Vector.(); - private var §_-7S§:Vector. = new Vector.(); + private var var_660:Vector. = new Vector.(); - private var §_-Ch§:Vector. = new Vector.(); + private var var_661:Vector. = new Vector.(); - private var §_-kf§:int = 0; + private var var_148:int = 0; public function ParticlePrototype(width:Number, height:Number, atlas:TextureAtlas, animated:Boolean = false, blendSource:String = "sourceAlpha", blendDestination:String = "oneMinusSourceAlpha") { @@ -52,23 +52,23 @@ package alternativa.engine3d.effects 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.§_-kf§ - 1; - if(this.§_-kf§ > 0 && time <= this.§_-gV§[lastIndex]) + var lastIndex:int = this.var_148 - 1; + if(this.var_148 > 0 && time <= this.var_151[lastIndex]) { throw new Error("Keys must be successively."); } - 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§; + this.var_151[this.var_148] = time; + this.var_657[this.var_148] = rotation; + this.var_659[this.var_148] = scaleX; + this.var_662[this.var_148] = scaleY; + this.var_656[this.var_148] = red; + this.var_658[this.var_148] = green; + this.var_660[this.var_148] = blue; + this.var_661[this.var_148] = alpha; + ++this.var_148; } - 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 + public function createParticle(effect:name_77, 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; @@ -85,12 +85,12 @@ package alternativa.engine3d.effects var cy:Number = NaN; var cz:Number = NaN; var rot:Number = NaN; - var b:int = this.§_-kf§ - 1; - if(this.atlas.diffuse.alternativa3d::_texture != null && this.§_-kf§ > 1 && time >= this.§_-gV§[0] && time < this.§_-gV§[b]) + 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]) { - for(b = 1; b < this.§_-kf§; ) + for(b = 1; b < this.var_148; ) { - if(time < this.§_-gV§[b]) + if(time < this.var_151[b]) { systemScale = Number(effect.alternativa3d::system.alternativa3d::scale); effectScale = Number(effect.scale); @@ -98,7 +98,7 @@ package alternativa.engine3d.effects wind = effect.alternativa3d::system.wind; gravity = effect.alternativa3d::system.gravity; a = b - 1; - t = (time - this.§_-gV§[a]) / (this.§_-gV§[b] - this.§_-gV§[a]); + t = (time - this.var_151[a]) / (this.var_151[b] - this.var_151[a]); pos = firstFrame + (this.animated ? time * this.atlas.fps : 0); if(this.atlas.loop) { @@ -127,26 +127,26 @@ package alternativa.engine3d.effects particle.opacity = this.atlas.opacity != null ? this.atlas.opacity.alternativa3d::_texture : null; particle.blendSource = this.blendSource; particle.blendDestination = this.blendDestination; - cx = effect.alternativa3d::_-M7.x + position.x * effectScale; - cy = effect.alternativa3d::_-M7.y + position.y * effectScale; - cz = effect.alternativa3d::_-M7.z + position.z * effectScale; + 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; 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.§_-0r§[a] + (this.§_-0r§[b] - this.§_-0r§[a]) * t; + rot = this.var_657[a] + (this.var_657[b] - this.var_657[a]) * t; particle.rotation = scaleX * scaleY > 0 ? rotation + rot : rotation - rot; - 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.width = systemScale * effectScale * scaleX * this.width * (this.var_659[a] + (this.var_659[b] - this.var_659[a]) * t); + particle.height = systemScale * effectScale * scaleY * this.height * (this.var_662[a] + (this.var_662[b] - this.var_662[a]) * t); particle.originX = this.atlas.originX; particle.originY = this.atlas.originY; - 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.name_333 = 1 / this.atlas.columnsCount; + particle.name_330 = 1 / this.atlas.rowsCount; + particle.name_332 = col / this.atlas.columnsCount; + particle.name_331 = row / this.atlas.rowsCount; + particle.red = this.var_656[a] + (this.var_656[b] - this.var_656[a]) * t; + particle.green = this.var_658[a] + (this.var_658[b] - this.var_658[a]) * t; + particle.blue = this.var_660[a] + (this.var_660[b] - this.var_660[a]) * t; + particle.alpha = alpha * (this.var_661[a] + (this.var_661[b] - this.var_661[a]) * t); particle.next = effect.alternativa3d::particleList; effect.alternativa3d::particleList = particle; break; @@ -158,8 +158,8 @@ package alternativa.engine3d.effects public function get lifeTime() : Number { - var lastIndex:int = this.§_-kf§ - 1; - return this.§_-gV§[lastIndex]; + var lastIndex:int = this.var_148 - 1; + return this.var_151[lastIndex]; } } } diff --git a/src/alternativa/engine3d/effects/ParticleSystem.as b/src/alternativa/engine3d/effects/ParticleSystem.as index 9109f82..19752ba 100644 --- a/src/alternativa/engine3d/effects/ParticleSystem.as +++ b/src/alternativa/engine3d/effects/ParticleSystem.as @@ -38,13 +38,13 @@ package alternativa.engine3d.effects private static const limit:int = 31; - public var §_-jW§:Boolean = true; + public var var_141:Boolean = true; public var gravity:Vector3D = new Vector3D(0,0,-1); public var wind:Vector3D = new Vector3D(); - public var §_-IN§:int = 0; + public var name_76:int = 0; public var fogMaxDensity:Number = 0; @@ -54,7 +54,7 @@ package alternativa.engine3d.effects alternativa3d var scale:Number = 1; - alternativa3d var effectList:§_-SG§; + alternativa3d var effectList:name_77; private var drawUnit:DrawUnit = null; @@ -68,19 +68,19 @@ package alternativa.engine3d.effects private var counter:int; - private var §_-La§:Number; + private var var_139:Number; - private var §_-p3§:Number; + private var var_140:Number; - private var §_-ZN§:Vector. = new Vector.(); + private var var_138:Vector. = new Vector.(); - private var §_-hr§:int = 0; + private var var_136:int = 0; private var pause:Boolean = false; - private var §_-pK§:Number; + private var var_135:Number; - private var §_-L5§:Number = 0; + private var var_137:Number = 0; public function ParticleSystem() { @@ -91,7 +91,7 @@ package alternativa.engine3d.effects { if(!this.pause) { - this.§_-pK§ = getTimer() * 0.001; + this.var_135 = getTimer() * 0.001; this.pause = true; } } @@ -100,22 +100,22 @@ package alternativa.engine3d.effects { if(this.pause) { - this.§_-L5§ += getTimer() * 0.001 - this.§_-pK§; + this.var_137 += getTimer() * 0.001 - this.var_135; this.pause = false; } } public function prevFrame() : void { - this.§_-pK§ -= 0.001; + this.var_135 -= 0.001; } public function nextFrame() : void { - this.§_-pK§ += 0.001; + this.var_135 += 0.001; } - public function each(effect:§_-SG§) : §_-SG§ + public function method_21(effect:name_77) : name_77 { if(effect.alternativa3d::system != null) { @@ -123,34 +123,34 @@ package alternativa.engine3d.effects } effect.alternativa3d::startTime = this.alternativa3d::getTime(); effect.alternativa3d::system = this; - effect.alternativa3d::_-is(0); - effect.alternativa3d::_-Af(0); - effect.alternativa3d::implements = this.alternativa3d::effectList; + effect.alternativa3d::name_329(0); + effect.alternativa3d::name_327(0); + effect.alternativa3d::name_326 = this.alternativa3d::effectList; this.alternativa3d::effectList = effect; return effect; } - public function getEffectByName(name:String) : §_-SG§ + public function getEffectByName(name:String) : name_77 { - for(var effect:§_-SG§ = this.alternativa3d::effectList; effect != null; ) + for(var effect:name_77 = this.alternativa3d::effectList; effect != null; ) { if(effect.name == name) { return effect; } - effect = effect.alternativa3d::implements; + effect = effect.alternativa3d::name_326; } return null; } alternativa3d function getTime() : Number { - return this.pause ? this.§_-pK§ - this.§_-L5§ : getTimer() * 0.001 - this.§_-L5§; + return this.pause ? this.var_135 - this.var_137 : getTimer() * 0.001 - this.var_137; } override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { - var visibleEffectList:§_-SG§ = null; + var visibleEffectList:name_77 = null; var effectTime:Number = NaN; var culling:int = 0; var debug:int = 0; @@ -165,7 +165,7 @@ package alternativa.engine3d.effects camera.alternativa3d::calculateFrustum(alternativa3d::cameraToLocalTransform); var conflictAnyway:Boolean = false; var time:Number = this.alternativa3d::getTime(); - for(var effect:§_-SG§ = this.alternativa3d::effectList,var prev:§_-SG§ = null; effect != null; ) + for(var effect:name_77 = this.alternativa3d::effectList,var prev:name_77 = null; effect != null; ) { effectTime = time - effect.alternativa3d::startTime; if(effectTime <= effect.alternativa3d::lifeTime) @@ -178,7 +178,7 @@ package alternativa.engine3d.effects } if(culling >= 0) { - if(effect.alternativa3d::_-Xj(effectTime)) + if(effect.alternativa3d::name_328(effectTime)) { if(effect.alternativa3d::particleList != null) { @@ -187,33 +187,33 @@ package alternativa.engine3d.effects conflictAnyway ||= effect.boundBox == null; } prev = effect; - effect = effect.alternativa3d::implements; + effect = effect.alternativa3d::name_326; } else if(prev != null) { - prev.alternativa3d::implements = effect.alternativa3d::implements; - effect = prev.alternativa3d::implements; + prev.alternativa3d::name_326 = effect.alternativa3d::name_326; + effect = prev.alternativa3d::name_326; } else { - this.alternativa3d::effectList = effect.alternativa3d::implements; + this.alternativa3d::effectList = effect.alternativa3d::name_326; effect = this.alternativa3d::effectList; } } else { prev = effect; - effect = effect.alternativa3d::implements; + effect = effect.alternativa3d::name_326; } } else if(prev != null) { - prev.alternativa3d::implements = effect.alternativa3d::implements; - effect = prev.alternativa3d::implements; + prev.alternativa3d::name_326 = effect.alternativa3d::name_326; + effect = prev.alternativa3d::name_326; } else { - this.alternativa3d::effectList = effect.alternativa3d::implements; + this.alternativa3d::effectList = effect.alternativa3d::name_326; effect = this.alternativa3d::effectList; } } @@ -238,7 +238,7 @@ package alternativa.engine3d.effects this.opacity = null; this.blendSource = null; this.blendDestination = null; - this.§_-hr§ = 0; + this.var_136 = 0; } if(camera.debug) { @@ -294,13 +294,13 @@ package alternativa.engine3d.effects private function flush(camera:Camera3D) : void { - if(this.§_-hr§ == this.§_-ZN§.length) + if(this.var_136 == this.var_138.length) { - this.§_-ZN§[this.§_-hr§] = new Object3D(); + this.var_138[this.var_136] = new Object3D(); } - var object:Object3D = this.§_-ZN§[this.§_-hr§]; - ++this.§_-hr§; - object.alternativa3d::localToCameraTransform.l = (this.§_-La§ + this.§_-p3§) / 2; + var object:Object3D = this.var_138[this.var_136]; + ++this.var_136; + object.alternativa3d::localToCameraTransform.l = (this.var_139 + this.var_140) / 2; this.drawUnit.alternativa3d::object = object; this.drawUnit.alternativa3d::numTriangles = this.counter << 1; if(this.blendDestination == Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA) @@ -314,7 +314,7 @@ package alternativa.engine3d.effects this.drawUnit.alternativa3d::setVertexBufferAt(0,vertexBuffer,0,Context3DVertexBufferFormat.FLOAT_3); this.drawUnit.alternativa3d::setVertexBufferAt(1,vertexBuffer,3,Context3DVertexBufferFormat.FLOAT_3); 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(0,(this.name_76 >> 16 & 0xFF) / 255,(this.name_76 >> 8 & 0xFF) / 255,(this.name_76 & 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) @@ -349,15 +349,15 @@ package alternativa.engine3d.effects this.blendSource = particle.blendSource; this.blendDestination = particle.blendDestination; this.counter = 0; - this.§_-La§ = particle.z; + this.var_139 = particle.z; } offset = this.counter << 2; 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.name_333,particle.name_330,particle.name_332,particle.name_331); this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.red,particle.green,particle.blue,particle.alpha); ++this.counter; - this.§_-p3§ = particle.z; + this.var_140 = particle.z; last = particle; particle = particle.next; } @@ -435,12 +435,12 @@ package alternativa.engine3d.effects return list; } - private function drawConflictEffects(camera:Camera3D, effectList:§_-SG§) : void + private function drawConflictEffects(camera:Camera3D, effectList:name_77) : void { var particleList:Particle = null; - var next:§_-SG§ = null; + var next:name_77 = null; var last:Particle = null; - for(var effect:§_-SG§ = effectList; effect != null; ) + for(var effect:name_77 = effectList; effect != null; ) { next = effect.alternativa3d::next; effect.alternativa3d::next = null; diff --git a/src/alternativa/engine3d/lights/OmniLight.as b/src/alternativa/engine3d/lights/OmniLight.as index 75d1cb5..e8e450a 100644 --- a/src/alternativa/engine3d/lights/OmniLight.as +++ b/src/alternativa/engine3d/lights/OmniLight.as @@ -72,9 +72,9 @@ package alternativa.engine3d.lights override alternativa3d function checkBound(targetObject:Object3D) : Boolean { - 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); + var rScale:Number = Number(Math.sqrt(alternativa3d::name_80.a * alternativa3d::name_80.a + alternativa3d::name_80.e * alternativa3d::name_80.e + alternativa3d::name_80.i * alternativa3d::name_80.i)); + rScale += Math.sqrt(alternativa3d::name_80.b * alternativa3d::name_80.b + alternativa3d::name_80.f * alternativa3d::name_80.f + alternativa3d::name_80.j * alternativa3d::name_80.j); + rScale += Math.sqrt(alternativa3d::name_80.c * alternativa3d::name_80.c + alternativa3d::name_80.g * alternativa3d::name_80.g + alternativa3d::name_80.k * alternativa3d::name_80.k); rScale /= 3; rScale *= this.attenuationEnd; rScale *= rScale; @@ -84,9 +84,9 @@ package alternativa.engine3d.lights var minY:Number = bb.minY; var minZ:Number = bb.minZ; var maxX:Number = bb.maxX; - var px:Number = Number(alternativa3d::_-cl.d); - var py:Number = Number(alternativa3d::_-cl.h); - var pz:Number = Number(alternativa3d::_-cl.l); + var px:Number = Number(alternativa3d::name_80.d); + var py:Number = Number(alternativa3d::name_80.h); + var pz:Number = Number(alternativa3d::name_80.l); var maxY:Number = bb.maxY; var maxZ:Number = bb.maxZ; if(px < minX) diff --git a/src/alternativa/engine3d/lights/SpotLight.as b/src/alternativa/engine3d/lights/SpotLight.as index 0dc1963..90da852 100644 --- a/src/alternativa/engine3d/lights/SpotLight.as +++ b/src/alternativa/engine3d/lights/SpotLight.as @@ -80,22 +80,22 @@ package alternativa.engine3d.lights 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::_-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 ax:Number = alternativa3d::name_80.a * w; + var ay:Number = alternativa3d::name_80.e * w; + var az:Number = alternativa3d::name_80.i * w; + var bx:Number = alternativa3d::name_80.b * l; + var by:Number = alternativa3d::name_80.f * l; + var bz:Number = alternativa3d::name_80.j * l; + var cx:Number = alternativa3d::name_80.c * h; + var cy:Number = alternativa3d::name_80.g * h; + var cz:Number = alternativa3d::name_80.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::_-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; + var dx:Number = alternativa3d::name_80.a * (minX + w) + alternativa3d::name_80.b * (minY + l) + alternativa3d::name_80.c * (minZ + h) + alternativa3d::name_80.d - objectBB.minX - hw; + var dy:Number = alternativa3d::name_80.e * (minX + w) + alternativa3d::name_80.f * (minY + l) + alternativa3d::name_80.g * (minZ + h) + alternativa3d::name_80.h - objectBB.minY - hl; + var dz:Number = alternativa3d::name_80.i * (minX + w) + alternativa3d::name_80.j * (minY + l) + alternativa3d::name_80.k * (minZ + h) + alternativa3d::name_80.l - objectBB.minZ - hh; sum = 0; if(ax >= 0) { @@ -208,7 +208,7 @@ package alternativa.engine3d.lights return false; } sum = 0; - pro = alternativa3d::_-cl.a * ax + alternativa3d::_-cl.e * ay + alternativa3d::_-cl.i * az; + pro = alternativa3d::name_80.a * ax + alternativa3d::name_80.e * ay + alternativa3d::name_80.i * az; if(pro >= 0) { sum += pro; @@ -217,7 +217,7 @@ package alternativa.engine3d.lights { sum -= pro; } - pro = alternativa3d::_-cl.a * bx + alternativa3d::_-cl.e * by + alternativa3d::_-cl.i * bz; + pro = alternativa3d::name_80.a * bx + alternativa3d::name_80.e * by + alternativa3d::name_80.i * bz; if(pro >= 0) { sum += pro; @@ -226,7 +226,7 @@ package alternativa.engine3d.lights { sum -= pro; } - pro = alternativa3d::_-cl.a * cx + alternativa3d::_-cl.e * cy + alternativa3d::_-cl.i * cz; + pro = alternativa3d::name_80.a * cx + alternativa3d::name_80.e * cy + alternativa3d::name_80.i * cz; if(pro >= 0) { sum += pro; @@ -235,31 +235,31 @@ package alternativa.engine3d.lights { sum -= pro; } - if(alternativa3d::_-cl.a >= 0) + if(alternativa3d::name_80.a >= 0) { - sum += alternativa3d::_-cl.a * hw; + sum += alternativa3d::name_80.a * hw; } else { - sum -= alternativa3d::_-cl.a * hw; + sum -= alternativa3d::name_80.a * hw; } - if(alternativa3d::_-cl.e >= 0) + if(alternativa3d::name_80.e >= 0) { - sum += alternativa3d::_-cl.e * hl; + sum += alternativa3d::name_80.e * hl; } else { - sum -= alternativa3d::_-cl.e * hl; + sum -= alternativa3d::name_80.e * hl; } - if(alternativa3d::_-cl.i >= 0) + if(alternativa3d::name_80.i >= 0) { - sum += alternativa3d::_-cl.i * hh; + sum += alternativa3d::name_80.i * hh; } else { - sum -= alternativa3d::_-cl.i * hh; + sum -= alternativa3d::name_80.i * hh; } - pro = alternativa3d::_-cl.a * dx + alternativa3d::_-cl.e * dy + alternativa3d::_-cl.i * dz; + pro = alternativa3d::name_80.a * dx + alternativa3d::name_80.e * dy + alternativa3d::name_80.i * dz; if(pro >= 0) { sum -= pro; @@ -273,7 +273,7 @@ package alternativa.engine3d.lights return false; } sum = 0; - pro = alternativa3d::_-cl.b * ax + alternativa3d::_-cl.f * ay + alternativa3d::_-cl.j * az; + pro = alternativa3d::name_80.b * ax + alternativa3d::name_80.f * ay + alternativa3d::name_80.j * az; if(pro >= 0) { sum += pro; @@ -282,7 +282,7 @@ package alternativa.engine3d.lights { sum -= pro; } - pro = alternativa3d::_-cl.b * bx + alternativa3d::_-cl.f * by + alternativa3d::_-cl.j * bz; + pro = alternativa3d::name_80.b * bx + alternativa3d::name_80.f * by + alternativa3d::name_80.j * bz; if(pro >= 0) { sum += pro; @@ -291,7 +291,7 @@ package alternativa.engine3d.lights { sum -= pro; } - pro = alternativa3d::_-cl.b * cx + alternativa3d::_-cl.f * cy + alternativa3d::_-cl.j * cz; + pro = alternativa3d::name_80.b * cx + alternativa3d::name_80.f * cy + alternativa3d::name_80.j * cz; if(pro >= 0) { sum += pro; @@ -300,31 +300,31 @@ package alternativa.engine3d.lights { sum -= pro; } - if(alternativa3d::_-cl.b >= 0) + if(alternativa3d::name_80.b >= 0) { - sum += alternativa3d::_-cl.b * hw; + sum += alternativa3d::name_80.b * hw; } else { - sum -= alternativa3d::_-cl.b * hw; + sum -= alternativa3d::name_80.b * hw; } - if(alternativa3d::_-cl.f >= 0) + if(alternativa3d::name_80.f >= 0) { - sum += alternativa3d::_-cl.f * hl; + sum += alternativa3d::name_80.f * hl; } else { - sum -= alternativa3d::_-cl.f * hl; + sum -= alternativa3d::name_80.f * hl; } - if(alternativa3d::_-cl.j >= 0) + if(alternativa3d::name_80.j >= 0) { - sum += alternativa3d::_-cl.j * hh; + sum += alternativa3d::name_80.j * hh; } else { - sum -= alternativa3d::_-cl.j * hh; + sum -= alternativa3d::name_80.j * hh; } - pro = alternativa3d::_-cl.b * dx + alternativa3d::_-cl.f * dy + alternativa3d::_-cl.j * dz; + pro = alternativa3d::name_80.b * dx + alternativa3d::name_80.f * dy + alternativa3d::name_80.j * dz; if(pro >= 0) { sum -= pro; @@ -335,7 +335,7 @@ package alternativa.engine3d.lights return false; } sum = 0; - pro = alternativa3d::_-cl.c * ax + alternativa3d::_-cl.g * ay + alternativa3d::_-cl.k * az; + pro = alternativa3d::name_80.c * ax + alternativa3d::name_80.g * ay + alternativa3d::name_80.k * az; if(pro >= 0) { sum += pro; @@ -344,7 +344,7 @@ package alternativa.engine3d.lights { sum -= pro; } - pro = alternativa3d::_-cl.c * bx + alternativa3d::_-cl.g * by + alternativa3d::_-cl.k * bz; + pro = alternativa3d::name_80.c * bx + alternativa3d::name_80.g * by + alternativa3d::name_80.k * bz; if(pro >= 0) { sum += pro; @@ -353,7 +353,7 @@ package alternativa.engine3d.lights { sum -= pro; } - pro = alternativa3d::_-cl.c * cx + alternativa3d::_-cl.g * cy + alternativa3d::_-cl.k * cz; + pro = alternativa3d::name_80.c * cx + alternativa3d::name_80.g * cy + alternativa3d::name_80.k * cz; if(pro >= 0) { sum += pro; @@ -362,31 +362,31 @@ package alternativa.engine3d.lights { sum -= pro; } - if(alternativa3d::_-cl.c >= 0) + if(alternativa3d::name_80.c >= 0) { - sum += alternativa3d::_-cl.c * hw; + sum += alternativa3d::name_80.c * hw; } else { - sum -= alternativa3d::_-cl.c * hw; + sum -= alternativa3d::name_80.c * hw; } - if(alternativa3d::_-cl.g >= 0) + if(alternativa3d::name_80.g >= 0) { - sum += alternativa3d::_-cl.g * hl; + sum += alternativa3d::name_80.g * hl; } else { - sum -= alternativa3d::_-cl.g * hl; + sum -= alternativa3d::name_80.g * hl; } - if(alternativa3d::_-cl.k >= 0) + if(alternativa3d::name_80.k >= 0) { - sum += alternativa3d::_-cl.k * hh; + sum += alternativa3d::name_80.k * hh; } else { - sum -= alternativa3d::_-cl.k * hh; + sum -= alternativa3d::name_80.k * hh; } - pro = alternativa3d::_-cl.c * dx + alternativa3d::_-cl.g * dy + alternativa3d::_-cl.k * dz; + pro = alternativa3d::name_80.c * dx + alternativa3d::name_80.g * dy + alternativa3d::name_80.k * dz; if(pro >= 0) { sum -= pro; diff --git a/src/alternativa/engine3d/loaders/ParserCollada.as b/src/alternativa/engine3d/loaders/ParserCollada.as index 8e402bd..8632546 100644 --- a/src/alternativa/engine3d/loaders/ParserCollada.as +++ b/src/alternativa/engine3d/loaders/ParserCollada.as @@ -1,8 +1,8 @@ package alternativa.engine3d.loaders { import alternativa.engine3d.alternativa3d; - import alternativa.engine3d.animation.§_-FA§; - import alternativa.engine3d.animation.keys.§_-Np§; + import alternativa.engine3d.animation.keys.name_552; + import alternativa.engine3d.animation.name_550; import alternativa.engine3d.core.Light3D; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.loaders.collada.DaeDocument; @@ -24,30 +24,30 @@ package alternativa.engine3d.loaders public var materials:Vector.; - public var §_-eL§:Vector.<§_-FA§>; + public var var_635:Vector.; - private var §_-W6§:Dictionary; + private var var_634:Dictionary; public function ParserCollada() { super(); } - public static function parseAnimation(data:XML) : §_-FA§ + public static function parseAnimation(data:XML) : name_550 { var document:DaeDocument = new DaeDocument(data,0); - var clip:§_-FA§ = new §_-FA§(); + var clip:name_550 = new name_550(); collectAnimation(clip,document.scene.nodes); return clip.numTracks > 0 ? clip : null; } - private static function collectAnimation(clip:§_-FA§, nodes:Vector.) : void + private static function collectAnimation(clip:name_550, nodes:Vector.) : void { var node:DaeNode = null; - var animation:§_-FA§ = null; + var animation:name_550 = null; var t:int = 0; var numTracks:int = 0; - var track:§_-Np§ = null; + var track:name_552 = null; for(var i:int = 0,var count:int = int(nodes.length); i < count; i++) { node = nodes[i]; @@ -56,13 +56,13 @@ package alternativa.engine3d.loaders { for(t = 0,numTracks = int(animation.numTracks); t < numTracks; t++) { - track = animation.§_-QA§(t); - clip.§_-nn§(track); + track = animation.name_553(t); + clip.name_551(track); } } else { - clip.§_-nn§(node.createStaticTransformTrack()); + clip.name_551(node.createStaticTransformTrack()); } collectAnimation(clip,node.nodes); } @@ -73,14 +73,14 @@ package alternativa.engine3d.loaders this.objects = null; this.hierarchy = null; this.lights = null; - this.§_-eL§ = null; + this.var_635 = null; this.materials = null; - this.§_-W6§ = null; + this.var_634 = null; } public function getObjectLayer(object:Object3D) : String { - return this.§_-W6§[object]; + return this.var_634[object]; } private function init(data:XML, units:Number) : DaeDocument @@ -89,9 +89,9 @@ package alternativa.engine3d.loaders this.objects = new Vector.(); this.hierarchy = new Vector.(); this.lights = new Vector.(); - this.§_-eL§ = new Vector.<§_-FA§>(); + this.var_635 = new Vector.(); this.materials = new Vector.(); - this.§_-W6§ = new Dictionary(true); + this.var_634 = new Dictionary(true); return new DaeDocument(data,units); } @@ -129,11 +129,11 @@ package alternativa.engine3d.loaders } if(animatedObject.animation != null) { - this.§_-eL§.push(animatedObject.animation); + this.var_635.push(animatedObject.animation); } if(Boolean(layer)) { - this.§_-W6§[object] = layer; + this.var_634[object] = layer; } return object; } @@ -421,13 +421,13 @@ package alternativa.engine3d.loaders return null; } - public function getAnimationByObject(object:Object) : §_-FA§ + public function getAnimationByObject(object:Object) : name_550 { - var animation:§_-FA§ = null; + var animation:name_550 = null; var objects:Array = null; - for each(animation in this.§_-eL§) + for each(animation in this.var_635) { - objects = animation.alternativa3d::_-Kq; + objects = animation.alternativa3d::var_348; if(objects.indexOf(object) >= 0) { return animation; diff --git a/src/alternativa/engine3d/loaders/ParserMaterial.as b/src/alternativa/engine3d/loaders/ParserMaterial.as index cac400d..e0174af 100644 --- a/src/alternativa/engine3d/loaders/ParserMaterial.as +++ b/src/alternativa/engine3d/loaders/ParserMaterial.as @@ -22,11 +22,11 @@ package alternativa.engine3d.loaders public var transparency:Number = 0; - public var §_-3m§:String = "diffuse"; + public var var_670:String = "diffuse"; private var textureMaterial:TextureMaterial; - private var §_-h7§:FillMaterial; + private var var_669:FillMaterial; public function ParserMaterial() { @@ -51,22 +51,22 @@ package alternativa.engine3d.loaders 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§]; + var colorO:Object = this.colors[this.var_670]; if(colorO != null) { - if(this.§_-h7§ == null) + if(this.var_669 == null) { - this.§_-h7§ = new FillMaterial(int(colorO)); + this.var_669 = new FillMaterial(int(colorO)); } else { - this.§_-h7§.color = int(colorO); + this.var_669.color = int(colorO); } - this.§_-h7§.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); + this.var_669.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); } else { - map = this.textures[this.§_-3m§]; + map = this.textures[this.var_670]; if(map != null) { if(this.textureMaterial == null) diff --git a/src/alternativa/engine3d/loaders/collada/DaeChannel.as b/src/alternativa/engine3d/loaders/collada/DaeChannel.as index 0444b3e..c0b4dfc 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeChannel.as +++ b/src/alternativa/engine3d/loaders/collada/DaeChannel.as @@ -2,8 +2,8 @@ package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.animation.keys.NumberKey; - import alternativa.engine3d.animation.keys.§_-Np§; - import alternativa.engine3d.animation.keys.§_-kB§; + import alternativa.engine3d.animation.keys.name_552; + import alternativa.engine3d.animation.keys.name_591; use namespace alternativa3d; @@ -35,9 +35,9 @@ package alternativa.engine3d.loaders.collada public static const PARAM_MATRIX:String = "matrix"; - public var tracks:Vector.<§_-Np§>; + public var tracks:Vector.; - public var §_-dS§:String = "undefined"; + public var name_589:String = "undefined"; public var animName:String; @@ -129,13 +129,13 @@ package alternativa.engine3d.loaders.collada switch(componentName) { case "X": - this.§_-dS§ = PARAM_TRANSLATE_X; + this.name_589 = PARAM_TRANSLATE_X; break loop1; case "Y": - this.§_-dS§ = PARAM_TRANSLATE_Y; + this.name_589 = PARAM_TRANSLATE_Y; break loop1; case "Z": - this.§_-dS§ = PARAM_TRANSLATE_Z; + this.name_589 = PARAM_TRANSLATE_Z; } break; case "rotate": @@ -143,26 +143,26 @@ package alternativa.engine3d.loaders.collada switch(axis.indexOf(1)) { case 0: - this.§_-dS§ = PARAM_ROTATION_X; + this.name_589 = PARAM_ROTATION_X; break loop1; case 1: - this.§_-dS§ = PARAM_ROTATION_Y; + this.name_589 = PARAM_ROTATION_Y; break loop1; case 2: - this.§_-dS§ = PARAM_ROTATION_Z; + this.name_589 = PARAM_ROTATION_Z; } break; case "scale": switch(componentName) { case "X": - this.§_-dS§ = PARAM_SCALE_X; + this.name_589 = PARAM_SCALE_X; break loop1; case "Y": - this.§_-dS§ = PARAM_SCALE_Y; + this.name_589 = PARAM_SCALE_Y; break loop1; case "Z": - this.§_-dS§ = PARAM_SCALE_Z; + this.name_589 = PARAM_SCALE_Z; } } } @@ -171,55 +171,55 @@ package alternativa.engine3d.loaders.collada switch(transformationName) { case "translate": - this.§_-dS§ = PARAM_TRANSLATE; + this.name_589 = PARAM_TRANSLATE; break; case "scale": - this.§_-dS§ = PARAM_SCALE; + this.name_589 = PARAM_SCALE; break; case "matrix": - this.§_-dS§ = PARAM_MATRIX; + this.name_589 = PARAM_MATRIX; } } } private function parseSampler() : void { - var track:§_-kB§ = null; + var track:name_591 = null; var toRad:Number = NaN; var key:NumberKey = null; var sampler:DaeSampler = document.findSampler(data.@source[0]); if(sampler != null) { sampler.parse(); - if(this.§_-dS§ == PARAM_MATRIX) + if(this.name_589 == PARAM_MATRIX) { - this.tracks = Vector.<§_-Np§>([sampler.parseTransformationTrack(this.animName)]); + this.tracks = Vector.([sampler.parseTransformationTrack(this.animName)]); return; } - if(this.§_-dS§ == PARAM_TRANSLATE) + if(this.name_589 == PARAM_TRANSLATE) { this.tracks = sampler.parsePointsTracks(this.animName,"x","y","z"); return; } - if(this.§_-dS§ == PARAM_SCALE) + if(this.name_589 == PARAM_SCALE) { this.tracks = sampler.parsePointsTracks(this.animName,"scaleX","scaleY","scaleZ"); return; } - if(this.§_-dS§ == PARAM_ROTATION_X || this.§_-dS§ == PARAM_ROTATION_Y || this.§_-dS§ == PARAM_ROTATION_Z) + if(this.name_589 == PARAM_ROTATION_X || this.name_589 == PARAM_ROTATION_Y || this.name_589 == PARAM_ROTATION_Z) { - track = sampler.parseNumbersTrack(this.animName,this.§_-dS§); + track = sampler.parseNumbersTrack(this.animName,this.name_589); toRad = Math.PI / 180; - for(key = track.alternativa3d::_-ku; key != null; key = key.alternativa3d::next) + for(key = track.alternativa3d::name_599; key != null; key = key.alternativa3d::next) { - key.alternativa3d::_-4O *= toRad; + key.alternativa3d::name_598 *= toRad; } - this.tracks = Vector.<§_-Np§>([track]); + this.tracks = Vector.([track]); return; } - 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) + if(this.name_589 == PARAM_TRANSLATE_X || this.name_589 == PARAM_TRANSLATE_Y || this.name_589 == PARAM_TRANSLATE_Z || this.name_589 == PARAM_SCALE_X || this.name_589 == PARAM_SCALE_Y || this.name_589 == PARAM_SCALE_Z) { - this.tracks = Vector.<§_-Np§>([sampler.parseNumbersTrack(this.animName,this.§_-dS§)]); + this.tracks = Vector.([sampler.parseNumbersTrack(this.animName,this.name_589)]); } } else diff --git a/src/alternativa/engine3d/loaders/collada/DaeController.as b/src/alternativa/engine3d/loaders/collada/DaeController.as index 4285d52..fcdf05f 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeController.as +++ b/src/alternativa/engine3d/loaders/collada/DaeController.as @@ -1,7 +1,7 @@ package alternativa.engine3d.loaders.collada { import alternativa.engine3d.*; - import alternativa.engine3d.animation.§_-FA§; + import alternativa.engine3d.animation.name_550; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.core.VertexAttributes; import alternativa.engine3d.loaders.ParserMaterial; @@ -17,25 +17,25 @@ package alternativa.engine3d.loaders.collada public class DaeController extends DaeElement { - private var §_-A6§:Vector.>; + private var var_725:Vector.>; - private var §_-2j§:Array; + private var var_724:Array; private var indices:Array; - private var §_-4h§:DaeInput; + private var var_727:DaeInput; - private var §_-NK§:DaeInput; + private var var_726:DaeInput; - private var §_-5O§:int; + private var var_728:int; private var geometry:Geometry; private var primitives:Vector.; - private var §_-1U§:int = 0; + private var var_723:int = 0; - private var §_-I§:Vector.; + private var var_722:Vector.; public function DaeController(data:XML, document:DaeDocument) { @@ -78,7 +78,7 @@ package alternativa.engine3d.loaders.collada { return false; } - this.§_-2j§ = parseIntsArray(vcountsXML); + this.var_724 = parseIntsArray(vcountsXML); var indicesXML:XML = vertexWeightsXML.v[0]; if(indicesXML == null) { @@ -87,23 +87,23 @@ package alternativa.engine3d.loaders.collada this.indices = parseIntsArray(indicesXML); this.parseInputs(); this.parseJointsBindMatrices(); - for(i = 0; i < this.§_-2j§.length; ) + for(i = 0; i < this.var_724.length; ) { - count = int(this.§_-2j§[i]); - if(this.§_-1U§ < count) + count = int(this.var_724[i]); + if(this.var_723 < count) { - this.§_-1U§ = count; + this.var_723 = count; } i++; } var geom:DaeGeometry = this.daeGeometry; - this.§_-I§ = this.getBindShapeMatrix(); + this.var_722 = this.getBindShapeMatrix(); if(geom != null) { geom.parse(); - vertices = geom.§_-FV§; + vertices = geom.var_715; source = geom.geometry; - localMaxJointsPerVertex = this.§_-1U§ % 2 != 0 ? this.§_-1U§ + 1 : this.§_-1U§; + localMaxJointsPerVertex = this.var_723 % 2 != 0 ? this.var_723 + 1 : this.var_723; this.geometry = new Geometry(); this.geometry.alternativa3d::_indices = source.alternativa3d::_indices.slice(); attributes = source.getVertexStreamAttributes(0); @@ -165,9 +165,9 @@ package alternativa.engine3d.loaders.collada y = Number(data.readFloat()); z = Number(data.readFloat()); data.position -= 12; - 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]); + data.writeFloat(x * this.var_722[0] + y * this.var_722[1] + z * this.var_722[2] + this.var_722[3]); + data.writeFloat(x * this.var_722[4] + y * this.var_722[5] + z * this.var_722[6] + this.var_722[7]); + data.writeFloat(x * this.var_722[8] + y * this.var_722[9] + z * this.var_722[10] + this.var_722[11]); } } @@ -184,9 +184,9 @@ package alternativa.engine3d.loaders.collada var index:int = 0; var jointIndex:int = 0; var weightIndex:int = 0; - var jointsOffset:int = this.§_-4h§.offset; - var weightsOffset:int = this.§_-NK§.offset; - var weightsSource:DaeSource = this.§_-NK§.prepareSource(1); + var jointsOffset:int = this.var_727.offset; + var weightsOffset:int = this.var_726.offset; + var weightsSource:DaeSource = this.var_726.prepareSource(1); var weights:Vector. = weightsSource.numbers; var weightsStride:int = weightsSource.stride; var verticesDict:Dictionary = new Dictionary(); @@ -198,25 +198,25 @@ package alternativa.engine3d.loaders.collada vertex = vertices[i]; if(vertex != null) { - vec = verticesDict[vertex.§_-Eq§]; + vec = verticesDict[vertex.name_600]; if(vec == null) { - vec = verticesDict[vertex.§_-Eq§] = new Vector.(); + vec = verticesDict[vertex.name_600] = new Vector.(); } - vec.push(vertex.§_-AR§); + vec.push(vertex.name_601); } } var vertexIndex:int = 0; - for(i = 0,count = int(this.§_-2j§.length); i < count; i++) + for(i = 0,count = int(this.var_724.length); i < count; i++) { - jointsPerVertex = int(this.§_-2j§[i]); + jointsPerVertex = int(this.var_724[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.§_-5O§ * (vertexIndex + k); + index = this.var_728 * (vertexIndex + k); jointIndex = int(this.indices[int(index + jointsOffset)]); if(jointIndex >= 0) { @@ -254,20 +254,20 @@ package alternativa.engine3d.loaders.collada switch(semantic) { case "JOINT": - if(this.§_-4h§ == null) + if(this.var_727 == null) { - this.§_-4h§ = input; + this.var_727 = input; } break; case "WEIGHT": - if(this.§_-NK§ == null) + if(this.var_726 == null) { - this.§_-NK§ = input; + this.var_726 = input; } break; } } - this.§_-5O§ = maxInputOffset + 1; + this.var_728 = maxInputOffset + 1; } private function parseJointsBindMatrices() : void @@ -290,12 +290,12 @@ package alternativa.engine3d.loaders.collada { stride = jointsSource.stride; count = jointsSource.numbers.length / stride; - this.§_-A6§ = new Vector.>(count); + this.var_725 = new Vector.>(count); for(i = 0; i < count; i++) { index = stride * i; matrix = new Vector.(16); - this.§_-A6§[i] = matrix; + this.var_725[i] = matrix; for(j = 0; j < 16; j++) { matrix[j] = jointsSource.numbers[int(index + j)]; @@ -323,13 +323,13 @@ package alternativa.engine3d.loaders.collada var skinXML:XML = data.skin[0]; if(skinXML != null) { - this.§_-I§ = this.getBindShapeMatrix(); - numJoints = int(this.§_-A6§.length); - skin = new Skin(this.§_-1U§,numJoints); + this.var_722 = this.getBindShapeMatrix(); + numJoints = int(this.var_725.length); + skin = new Skin(this.var_723,numJoints); skin.geometry = this.geometry; joints = this.addJointsToSkin(skin,topmostJoints,this.findNodes(skeletons)); this.setJointsBindMatrices(joints); - skin.§_-WA§ = this.collectRenderedJoints(joints,numJoints); + skin.var_633 = this.collectRenderedJoints(joints,numJoints); if(this.primitives != null) { for(i = 0; i < this.primitives.length; i++) @@ -364,17 +364,17 @@ package alternativa.engine3d.loaders.collada return result; } - private function mergeJointsClips(skin:Skin, joints:Vector.) : §_-FA§ + private function mergeJointsClips(skin:Skin, joints:Vector.) : name_550 { var animatedObject:DaeObject = null; - var clip:§_-FA§ = null; + var clip:name_550 = null; var object:Object3D = null; var t:int = 0; if(!this.hasJointsAnimation(joints)) { return null; } - var result:§_-FA§ = new §_-FA§(); + var result:name_550 = new name_550(); var resultObjects:Array = [skin]; for(var i:int = 0,var count:int = int(joints.length); i < count; i++) { @@ -384,18 +384,18 @@ package alternativa.engine3d.loaders.collada { for(t = 0; t < clip.numTracks; t++) { - result.§_-nn§(clip.§_-QA§(t)); + result.name_551(clip.name_553(t)); } } else { - result.§_-nn§(animatedObject.jointNode.createStaticTransformTrack()); + result.name_551(animatedObject.jointNode.createStaticTransformTrack()); } object = animatedObject.object; object.name = animatedObject.jointNode.animName; resultObjects.push(object); } - result.alternativa3d::_-Kq = resultObjects; + result.alternativa3d::var_348 = resultObjects; return result; } @@ -418,10 +418,10 @@ package alternativa.engine3d.loaders.collada { var animatedJoint:DaeObject = null; var bindMatrix:Vector. = null; - for(var i:int = 0,var count:int = int(this.§_-A6§.length); i < count; i++) + for(var i:int = 0,var count:int = int(this.var_725.length); i < count; i++) { animatedJoint = animatedJoints[i]; - bindMatrix = this.§_-A6§[i]; + bindMatrix = this.var_725[i]; Joint(animatedJoint.object).alternativa3d::setBindPoseMatrix(bindMatrix); } } diff --git a/src/alternativa/engine3d/loaders/collada/DaeDocument.as b/src/alternativa/engine3d/loaders/collada/DaeDocument.as index c99aa64..d141c30 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeDocument.as +++ b/src/alternativa/engine3d/loaders/collada/DaeDocument.as @@ -8,7 +8,7 @@ package alternativa.engine3d.loaders.collada private var data:XML; - internal var §_-DR§:Object; + internal var var_690:Object; internal var arrays:Object; @@ -24,9 +24,9 @@ package alternativa.engine3d.loaders.collada internal var effects:Object; - internal var §_-DW§:Object; + internal var var_691:Object; - internal var §_-GB§:Object; + internal var var_692:Object; public var materials:Object; @@ -83,14 +83,14 @@ package alternativa.engine3d.loaders.collada var geom:DaeGeometry = null; var controller:DaeController = null; var node:DaeNode = null; - this.§_-DR§ = new Object(); + this.var_690 = new Object(); this.arrays = new Object(); for each(element in this.data..source) { source = new DaeSource(element,this); if(source.id != null) { - this.§_-DR§[source.id] = source; + this.var_690[source.id] = source; } } this.lights = new Object(); @@ -139,13 +139,13 @@ package alternativa.engine3d.loaders.collada this.geometries[geom.id] = geom; } } - this.§_-DW§ = new Object(); + this.var_691 = new Object(); for each(element in this.data.library_controllers.controller) { controller = new DaeController(element,this); if(controller.id != null) { - this.§_-DW§[controller.id] = controller; + this.var_691[controller.id] = controller; } } this.nodes = new Object(); @@ -198,13 +198,13 @@ package alternativa.engine3d.loaders.collada var sampler:DaeSampler = null; var channel:DaeChannel = null; var node:DaeNode = null; - this.§_-GB§ = new Object(); + this.var_692 = new Object(); for each(element in this.data.library_animations..sampler) { sampler = new DaeSampler(element,this); if(sampler.id != null) { - this.§_-GB§[sampler.id] = sampler; + this.var_692[sampler.id] = sampler; } } for each(element in this.data.library_animations..channel) @@ -225,7 +225,7 @@ package alternativa.engine3d.loaders.collada public function findSource(url:XML) : DaeSource { - return this.§_-DR§[this.getLocalID(url)]; + return this.var_690[this.getLocalID(url)]; } public function findLight(url:XML) : DaeLight @@ -275,12 +275,12 @@ package alternativa.engine3d.loaders.collada public function findController(url:XML) : DaeController { - return this.§_-DW§[this.getLocalID(url)]; + return this.var_691[this.getLocalID(url)]; } public function findSampler(url:XML) : DaeSampler { - return this.§_-GB§[this.getLocalID(url)]; + return this.var_692[this.getLocalID(url)]; } } } diff --git a/src/alternativa/engine3d/loaders/collada/DaeEffect.as b/src/alternativa/engine3d/loaders/collada/DaeEffect.as index 0e2965f..099d471 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeEffect.as +++ b/src/alternativa/engine3d/loaders/collada/DaeEffect.as @@ -9,11 +9,11 @@ package alternativa.engine3d.loaders.collada { public static var commonAlways:Boolean = false; - private var §_-3x§:Object; + private var var_717:Object; - private var §_-El§:Object; + private var var_718:Object; - private var §_-3H§:Object; + private var var_716:Object; private var diffuse:DaeEffectParam; @@ -66,26 +66,26 @@ package alternativa.engine3d.loaders.collada var reflectiveXML:XML = null; var emissionXML:XML = null; var specularXML:XML = null; - this.§_-3x§ = new Object(); + this.var_717 = new Object(); for each(element in data.newparam) { param = new DaeParam(element,document); - this.§_-3x§[param.sid] = param; + this.var_717[param.sid] = param; } - this.§_-El§ = new Object(); + this.var_718 = new Object(); for each(element in data.profile_COMMON.newparam) { param = new DaeParam(element,document); - this.§_-El§[param.sid] = param; + this.var_718[param.sid] = param; } - this.§_-3H§ = new Object(); + this.var_716 = new Object(); technique = data.profile_COMMON.technique[0]; if(technique != null) { for each(element in technique.newparam) { param = new DaeParam(element,document); - this.§_-3H§[param.sid] = param; + this.var_716[param.sid] = param; } } shader = data.profile_COMMON.technique.*.(localName() == "constant" || localName() == "lambert" || localName() == "phong" || localName() == "blinn")[0]; @@ -153,17 +153,17 @@ package alternativa.engine3d.loaders.collada { return param; } - param = this.§_-3H§[name]; + param = this.var_716[name]; if(param != null) { return param; } - param = this.§_-El§[name]; + param = this.var_718[name]; if(param != null) { return param; } - return this.§_-3x§[name]; + return this.var_717[name]; } private function float4ToUint(value:Array, alpha:Boolean = true) : uint diff --git a/src/alternativa/engine3d/loaders/collada/DaeElement.as b/src/alternativa/engine3d/loaders/collada/DaeElement.as index 78cb00b..94ec590 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeElement.as +++ b/src/alternativa/engine3d/loaders/collada/DaeElement.as @@ -12,7 +12,7 @@ package alternativa.engine3d.loaders.collada public var data:XML; - private var §_-Ba§:int = -1; + private var var_697:int = -1; public function DaeElement(data:XML, document:DaeDocument) { @@ -35,12 +35,12 @@ package alternativa.engine3d.loaders.collada public function parse() : Boolean { - if(this.§_-Ba§ < 0) + if(this.var_697 < 0) { - this.§_-Ba§ = this.parseImplementation() ? 1 : 0; - return this.§_-Ba§ != 0; + this.var_697 = this.parseImplementation() ? 1 : 0; + return this.var_697 != 0; } - return this.§_-Ba§ != 0; + return this.var_697 != 0; } protected function parseImplementation() : Boolean diff --git a/src/alternativa/engine3d/loaders/collada/DaeGeometry.as b/src/alternativa/engine3d/loaders/collada/DaeGeometry.as index fba812d..81fcd66 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeGeometry.as +++ b/src/alternativa/engine3d/loaders/collada/DaeGeometry.as @@ -13,7 +13,7 @@ package alternativa.engine3d.loaders.collada public class DaeGeometry extends DaeElement { - internal var §_-FV§:Vector.; + internal var var_715:Vector.; internal var primitives:Vector.; @@ -53,9 +53,9 @@ package alternativa.engine3d.loaders.collada { this.parsePrimitives(); this.vertices.parse(); - numVertices = this.vertices.§_-E6§.numbers.length / this.vertices.§_-E6§.stride; + numVertices = this.vertices.name_597.numbers.length / this.vertices.name_597.stride; this.geometry = new Geometry(); - this.§_-FV§ = new Vector.(numVertices); + this.var_715 = new Vector.(numVertices); channels = 0; for(i = 0; i < this.primitives.length; ) { @@ -63,8 +63,8 @@ package alternativa.engine3d.loaders.collada p.parse(); if(p.verticesEquals(this.vertices)) { - numVertices = int(this.§_-FV§.length); - channels |= p.fillGeometry(this.geometry,this.§_-FV§); + numVertices = int(this.var_715.length); + channels |= p.fillGeometry(this.geometry,this.var_715); } i++; } @@ -105,14 +105,14 @@ package alternativa.engine3d.loaders.collada i++; } this.geometry.addVertexStream(attributes); - numVertices = int(this.§_-FV§.length); + numVertices = int(this.var_715.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.§_-FV§[i]; + vertex = this.var_715[i]; if(vertex != null) { data.position = 4 * numMappings * i; @@ -125,12 +125,12 @@ package alternativa.engine3d.loaders.collada data.writeFloat(vertex.normal.y); data.writeFloat(vertex.normal.z); } - if(vertex.§_-hC§ != null) + if(vertex.name_596 != null) { - data.writeFloat(vertex.§_-hC§.x); - data.writeFloat(vertex.§_-hC§.y); - data.writeFloat(vertex.§_-hC§.z); - data.writeFloat(vertex.§_-hC§.w); + data.writeFloat(vertex.name_596.x); + data.writeFloat(vertex.name_596.y); + data.writeFloat(vertex.name_596.z); + data.writeFloat(vertex.name_596.w); } for(j = 0; j < vertex.uvs.length; ) { diff --git a/src/alternativa/engine3d/loaders/collada/DaeInput.as b/src/alternativa/engine3d/loaders/collada/DaeInput.as index a9cfd67..1394658 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeInput.as +++ b/src/alternativa/engine3d/loaders/collada/DaeInput.as @@ -28,7 +28,7 @@ package alternativa.engine3d.loaders.collada public function get setNum() : int { - var attr:XML = data.@set[0]; + var attr:XML = data.@name_616[0]; return attr == null ? 0 : int(parseInt(attr.toString(),10)); } diff --git a/src/alternativa/engine3d/loaders/collada/DaeNode.as b/src/alternativa/engine3d/loaders/collada/DaeNode.as index dcf330f..d7cef3c 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeNode.as +++ b/src/alternativa/engine3d/loaders/collada/DaeNode.as @@ -1,9 +1,9 @@ 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.animation.keys.name_552; + import alternativa.engine3d.animation.keys.name_590; + import alternativa.engine3d.animation.keys.name_591; + import alternativa.engine3d.animation.name_550; import alternativa.engine3d.core.Light3D; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.objects.Mesh; @@ -23,7 +23,7 @@ package alternativa.engine3d.loaders.collada private var channels:Vector.; - private var §_-DE§:Vector.; + private var var_698:Vector.; public var nodes:Vector.; @@ -112,11 +112,11 @@ package alternativa.engine3d.loaders.collada public function addInstanceController(controller:DaeInstanceController) : void { - if(this.§_-DE§ == null) + if(this.var_698 == null) { - this.§_-DE§ = new Vector.(); + this.var_698 = new Vector.(); } - this.§_-DE§.push(controller); + this.var_698.push(controller); } override protected function parseImplementation() : Boolean @@ -188,14 +188,14 @@ package alternativa.engine3d.loaders.collada var instanceController:DaeInstanceController = null; var skinAndAnimatedJoints:DaeObject = null; var skin:Skin = null; - if(this.§_-DE§ == null) + if(this.var_698 == null) { return null; } var skins:Vector. = new Vector.(); - for(var i:int = 0,var count:int = int(this.§_-DE§.length); i < count; ) + for(var i:int = 0,var count:int = int(this.var_698.length); i < count; ) { - instanceController = this.§_-DE§[i]; + instanceController = this.var_698[i]; instanceController.parse(); skinAndAnimatedJoints = instanceController.parseSkin(this.parseInstanceMaterials(instanceController.data)); if(skinAndAnimatedJoints != null) @@ -345,17 +345,17 @@ package alternativa.engine3d.loaders.collada public function applyAnimation(object:Object3D) : DaeObject { - var animation:§_-FA§ = this.parseAnimation(object); + var animation:name_550 = this.parseAnimation(object); if(animation == null) { return new DaeObject(object); } object.name = this.animName; - animation.§_-L6§(object,false); + animation.method_360(object,false); return new DaeObject(object,animation); } - public function parseAnimation(object:Object3D = null) : §_-FA§ + public function parseAnimation(object:Object3D = null) : name_550 { if(this.channels == null || !this.hasTransformationAnimation()) { @@ -366,7 +366,7 @@ package alternativa.engine3d.loaders.collada { return this.createClip(channel.tracks); } - var clip:§_-FA§ = new §_-FA§(); + var clip:name_550 = new name_550(); var components:Vector. = object != null ? null : this.getMatrix().decompose(); channel = this.getChannel(DaeChannel.PARAM_TRANSLATE); if(channel != null) @@ -382,7 +382,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x)); + clip.name_551(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x)); } channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Y); if(channel != null) @@ -391,7 +391,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y)); + clip.name_551(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y)); } channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Z); if(channel != null) @@ -400,7 +400,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z)); + clip.name_551(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z)); } } channel = this.getChannel(DaeChannel.PARAM_ROTATION_X); @@ -410,7 +410,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX)); + clip.name_551(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX)); } channel = this.getChannel(DaeChannel.PARAM_ROTATION_Y); if(channel != null) @@ -419,7 +419,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY)); + clip.name_551(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY)); } channel = this.getChannel(DaeChannel.PARAM_ROTATION_Z); if(channel != null) @@ -428,7 +428,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ)); + clip.name_551(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ)); } channel = this.getChannel(DaeChannel.PARAM_SCALE); if(channel != null) @@ -444,7 +444,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX)); + clip.name_551(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX)); } channel = this.getChannel(DaeChannel.PARAM_SCALE_Y); if(channel != null) @@ -453,7 +453,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY)); + clip.name_551(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY)); } channel = this.getChannel(DaeChannel.PARAM_SCALE_Z); if(channel != null) @@ -462,7 +462,7 @@ package alternativa.engine3d.loaders.collada } else { - clip.§_-nn§(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ)); + clip.name_551(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ)); } } if(clip.numTracks > 0) @@ -472,21 +472,21 @@ package alternativa.engine3d.loaders.collada return null; } - private function createClip(tracks:Vector.<§_-Np§>) : §_-FA§ + private function createClip(tracks:Vector.) : name_550 { - var clip:§_-FA§ = new §_-FA§(); + var clip:name_550 = new name_550(); for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) { - clip.§_-nn§(tracks[i]); + clip.name_551(tracks[i]); } return clip; } - private function addTracksToClip(clip:§_-FA§, tracks:Vector.<§_-Np§>) : void + private function addTracksToClip(clip:name_550, tracks:Vector.) : void { for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) { - clip.§_-nn§(tracks[i]); + clip.name_551(tracks[i]); } } @@ -498,18 +498,18 @@ package alternativa.engine3d.loaders.collada { 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; + result = channel.name_589 == DaeChannel.PARAM_MATRIX; + result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE; + result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_X; + result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_Y; + result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_Z; + result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_X; + result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_Y; + result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_Z; + result ||= channel.name_589 == DaeChannel.PARAM_SCALE; + result ||= channel.name_589 == DaeChannel.PARAM_SCALE_X; + result ||= channel.name_589 == DaeChannel.PARAM_SCALE_Y; + result ||= channel.name_589 == DaeChannel.PARAM_SCALE_Z; if(result) { return true; @@ -526,7 +526,7 @@ package alternativa.engine3d.loaders.collada { channel = this.channels[i]; channel.parse(); - if(channel.§_-dS§ == param) + if(channel.name_589 == param) { return channel; } @@ -535,7 +535,7 @@ package alternativa.engine3d.loaders.collada return null; } - private function concatTracks(source:Vector.<§_-Np§>, dest:Vector.<§_-Np§>) : void + private function concatTracks(source:Vector., dest:Vector.) : void { for(var i:int = 0,var count:int = int(source.length); i < count; i++) { @@ -543,16 +543,16 @@ package alternativa.engine3d.loaders.collada } } - private function createValueStaticTrack(property:String, value:Number) : §_-Np§ + private function createValueStaticTrack(property:String, value:Number) : name_552 { - var track:§_-kB§ = new §_-kB§(this.animName,property); + var track:name_591 = new name_591(this.animName,property); track.addKey(0,value); return track; } - public function createStaticTransformTrack() : §_-ew§ + public function createStaticTransformTrack() : name_590 { - var track:§_-ew§ = new §_-ew§(this.animName); + var track:name_590 = new name_590(this.animName); track.addKey(0,this.getMatrix()); return track; } diff --git a/src/alternativa/engine3d/loaders/collada/DaeObject.as b/src/alternativa/engine3d/loaders/collada/DaeObject.as index 2b140b6..a46f090 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeObject.as +++ b/src/alternativa/engine3d/loaders/collada/DaeObject.as @@ -1,17 +1,17 @@ package alternativa.engine3d.loaders.collada { - import alternativa.engine3d.animation.§_-FA§; + import alternativa.engine3d.animation.name_550; import alternativa.engine3d.core.Object3D; public class DaeObject { public var object:Object3D; - public var animation:§_-FA§; + public var animation:name_550; public var jointNode:DaeNode; - public function DaeObject(object:Object3D, animation:§_-FA§ = null) + public function DaeObject(object:Object3D, animation:name_550 = null) { super(); this.object = object; diff --git a/src/alternativa/engine3d/loaders/collada/DaeSampler.as b/src/alternativa/engine3d/loaders/collada/DaeSampler.as index ac099ed..c8041e9 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeSampler.as +++ b/src/alternativa/engine3d/loaders/collada/DaeSampler.as @@ -1,21 +1,21 @@ package alternativa.engine3d.loaders.collada { - import alternativa.engine3d.animation.keys.§_-Np§; - import alternativa.engine3d.animation.keys.§_-ew§; - import alternativa.engine3d.animation.keys.§_-kB§; + import alternativa.engine3d.animation.keys.name_552; + import alternativa.engine3d.animation.keys.name_590; + import alternativa.engine3d.animation.keys.name_591; import flash.geom.Matrix3D; use namespace collada; public class DaeSampler extends DaeElement { - private var §_-G6§:Vector.; + private var var_719:Vector.; private var values:Vector.; - private var §_-JC§:int; + private var var_720:int; - private var §_-7i§:int; + private var var_721:int; public function DaeSampler(data:XML, document:DaeDocument) { @@ -43,8 +43,8 @@ package alternativa.engine3d.loaders.collada inputSource = input.prepareSource(1); if(inputSource != null) { - this.§_-G6§ = inputSource.numbers; - this.§_-JC§ = inputSource.stride; + this.var_719 = inputSource.numbers; + this.var_720 = inputSource.stride; } break; case "OUTPUT": @@ -52,7 +52,7 @@ package alternativa.engine3d.loaders.collada if(outputSource != null) { this.values = outputSource.numbers; - this.§_-7i§ = outputSource.stride; + this.var_721 = outputSource.stride; } break; } @@ -60,73 +60,73 @@ package alternativa.engine3d.loaders.collada return true; } - public function parseNumbersTrack(objectName:String, property:String) : §_-kB§ + public function parseNumbersTrack(objectName:String, property:String) : name_591 { - var track:§_-kB§ = null; + var track:name_591 = null; var count:int = 0; var i:int = 0; - if(this.§_-G6§ != null && this.values != null && this.§_-JC§ > 0) + if(this.var_719 != null && this.values != null && this.var_720 > 0) { - track = new §_-kB§(objectName,property); - count = this.§_-G6§.length / this.§_-JC§; + track = new name_591(objectName,property); + count = this.var_719.length / this.var_720; for(i = 0; i < count; i++) { - track.addKey(this.§_-G6§[int(this.§_-JC§ * i)],this.values[int(this.§_-7i§ * i)]); + track.addKey(this.var_719[int(this.var_720 * i)],this.values[int(this.var_721 * i)]); } return track; } return null; } - public function parseTransformationTrack(objectName:String) : §_-Np§ + public function parseTransformationTrack(objectName:String) : name_552 { - var track:§_-ew§ = null; + var track:name_590 = 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) + if(this.var_719 != null && this.values != null && this.var_720 != 0) { - track = new §_-ew§(objectName); - count = this.§_-G6§.length / this.§_-JC§; + track = new name_590(objectName); + count = this.var_719.length / this.var_720; for(i = 0; i < count; i++) { - index = this.§_-7i§ * i; + index = this.var_721 * 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); + track.addKey(this.var_719[i * this.var_720],matrix); } return track; } return null; } - public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<§_-Np§> + public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector. { - var xTrack:§_-kB§ = null; - var yTrack:§_-kB§ = null; - var zTrack:§_-kB§ = null; + var xTrack:name_591 = null; + var yTrack:name_591 = null; + var zTrack:name_591 = 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) + if(this.var_719 != null && this.values != null && this.var_720 != 0) { - xTrack = new §_-kB§(objectName,xProperty); + xTrack = new name_591(objectName,xProperty); xTrack.object = objectName; - yTrack = new §_-kB§(objectName,yProperty); + yTrack = new name_591(objectName,yProperty); yTrack.object = objectName; - zTrack = new §_-kB§(objectName,zProperty); + zTrack = new name_591(objectName,zProperty); zTrack.object = objectName; - count = this.§_-G6§.length / this.§_-JC§; + count = this.var_719.length / this.var_720; for(i = 0; i < count; i++) { - index = i * this.§_-7i§; - time = this.§_-G6§[i * this.§_-JC§]; + index = i * this.var_721; + time = this.var_719[i * this.var_720]; 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 Vector.([xTrack,yTrack,zTrack]); } return null; } diff --git a/src/alternativa/engine3d/loaders/collada/DaeSource.as b/src/alternativa/engine3d/loaders/collada/DaeSource.as index 423ae7f..99214e2 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeSource.as +++ b/src/alternativa/engine3d/loaders/collada/DaeSource.as @@ -4,15 +4,15 @@ package alternativa.engine3d.loaders.collada public class DaeSource extends DaeElement { - private const §_-XM§:String = "float_array"; + private const const_7:String = "float_array"; - private const §_-g6§:String = "int_array"; + private const const_9:String = "int_array"; - private const §_-ZJ§:String = "Name_array"; + private const const_8:String = "Name_array"; public var numbers:Vector.; - public var §_-op§:Vector.; + public var var_550:Vector.; public var names:Vector.; @@ -34,9 +34,9 @@ package alternativa.engine3d.loaders.collada child = children[i]; switch(child.localName()) { - case this.§_-XM§: - case this.§_-g6§: - case this.§_-ZJ§: + case this.const_7: + case this.const_9: + case this.const_8: _loc5_ = new DaeArray(child,document); if(_loc5_.id != null) { @@ -119,13 +119,13 @@ package alternativa.engine3d.loaders.collada var arrStride:int = int(Math.max(this.numValidParams(params),stride)); switch(type) { - case this.§_-XM§: + case this.const_7: this.numbers = new Vector.(int(arrStride * count)); break; - case this.§_-g6§: - this.§_-op§ = new Vector.(int(arrStride * count)); + case this.const_9: + this.var_550 = new Vector.(int(arrStride * count)); break; - case this.§_-ZJ§: + case this.const_8: this.names = new Vector.(int(arrStride * count)); } var curr:int = 0; @@ -136,7 +136,7 @@ package alternativa.engine3d.loaders.collada { switch(type) { - case this.§_-XM§: + case this.const_7: for(j = 0; j < count; j++) { value = array[int(offset + stride * j + i)]; @@ -147,13 +147,13 @@ package alternativa.engine3d.loaders.collada this.numbers[int(arrStride * j + curr)] = parseFloat(value); } break; - case this.§_-g6§: + case this.const_9: for(j = 0; j < count; j++) { - this.§_-op§[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10); + this.var_550[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10); } break; - case this.§_-ZJ§: + case this.const_8: for(j = 0; j < count; j++) { this.names[int(arrStride * j + curr)] = array[int(offset + stride * j + i)]; diff --git a/src/alternativa/engine3d/loaders/collada/DaeVertex.as b/src/alternativa/engine3d/loaders/collada/DaeVertex.as index 678672a..3641cb7 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeVertex.as +++ b/src/alternativa/engine3d/loaders/collada/DaeVertex.as @@ -4,9 +4,9 @@ package alternativa.engine3d.loaders.collada public class DaeVertex { - public var §_-Eq§:int; + public var name_600:int; - public var §_-AR§:int; + public var name_601:int; public var indices:Vector. = new Vector.(); @@ -20,7 +20,7 @@ package alternativa.engine3d.loaders.collada public var normal:Vector3D; - public var §_-hC§:Vector3D; + public var name_596:Vector3D; public function DaeVertex() { @@ -55,12 +55,12 @@ package alternativa.engine3d.loaders.collada var biNormalX:Number = biNormalData[int(biNormalOffset++)]; var biNormalY:Number = biNormalData[int(biNormalOffset++)]; var biNormalZ:Number = biNormalData[biNormalOffset]; - 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; + this.name_596 = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]); + var crossX:Number = this.normal.y * this.name_596.z - this.normal.z * this.name_596.y; + var crossY:Number = this.normal.z * this.name_596.x - this.normal.x * this.name_596.z; + var crossZ:Number = this.normal.x * this.name_596.y - this.normal.y * this.name_596.x; var dot:Number = crossX * biNormalX + crossY * biNormalY + crossZ * biNormalZ; - this.§_-hC§.w = dot < 0 ? -1 : 1; + this.name_596.w = dot < 0 ? -1 : 1; } public function appendUV(data:Vector., dataIndex:int, stride:int) : void diff --git a/src/alternativa/engine3d/loaders/collada/DaeVertices.as b/src/alternativa/engine3d/loaders/collada/DaeVertices.as index e4a2a0f..aed1260 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeVertices.as +++ b/src/alternativa/engine3d/loaders/collada/DaeVertices.as @@ -7,7 +7,7 @@ package alternativa.engine3d.loaders.collada public class DaeVertices extends DaeElement { - public var §_-E6§:DaeSource; + public var name_597:DaeSource; public function DaeVertices(data:XML, document:DaeDocument) { @@ -20,8 +20,8 @@ package alternativa.engine3d.loaders.collada inputXML = data.input.(@semantic == "POSITION")[0]; if(inputXML != null) { - this.§_-E6§ = new DaeInput(inputXML,document).prepareSource(3); - if(this.§_-E6§ != null) + this.name_597 = new DaeInput(inputXML,document).prepareSource(3); + if(this.name_597 != null) { return true; } diff --git a/src/alternativa/engine3d/materials/FillMaterial.as b/src/alternativa/engine3d/materials/FillMaterial.as index 43de80b..5382d2e 100644 --- a/src/alternativa/engine3d/materials/FillMaterial.as +++ b/src/alternativa/engine3d/materials/FillMaterial.as @@ -53,7 +53,7 @@ package alternativa.engine3d.materials this.blue = (value & 0xFF) / 255; } - private function final(object:Object3D) : ShaderProgram + private function method_22(object:Object3D) : ShaderProgram { var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; @@ -81,11 +81,11 @@ package alternativa.engine3d.materials var program:ShaderProgram = _programs[object.alternativa3d::transformProcedure]; if(program == null) { - program = this.final(object); + program = this.method_22(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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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); diff --git a/src/alternativa/engine3d/materials/StandardMaterial.as b/src/alternativa/engine3d/materials/StandardMaterial.as index ba4a458..c0c36a5 100644 --- a/src/alternativa/engine3d/materials/StandardMaterial.as +++ b/src/alternativa/engine3d/materials/StandardMaterial.as @@ -84,7 +84,7 @@ package alternativa.engine3d.materials 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 var_54:Boolean = false; alternativa3d var outputAlpha:Procedure = new Procedure(["#c0=cSurface","mov i0.w, c0.w","mov o0, i0"],"outputAlpha"); @@ -94,7 +94,7 @@ package alternativa.engine3d.materials public var normalMap:TextureResource; - private var §_-NH§:int = 0; + private var var_53:int = 0; public var specularMap:TextureResource; @@ -102,7 +102,7 @@ package alternativa.engine3d.materials public var glossiness:Number = 100; - public var §_-kj§:Number = 1; + public var var_26:Number = 1; public function StandardMaterial(diffuseMap:TextureResource, normalMap:TextureResource, specularMap:TextureResource = null, glossinessMap:TextureResource = null, opacityMap:TextureResource = null) { @@ -121,7 +121,7 @@ package alternativa.engine3d.materials public function get normalMapSpace() : int { - return this.§_-NH§; + return this.var_53; } public function set normalMapSpace(value:int) : void @@ -130,7 +130,7 @@ package alternativa.engine3d.materials { throw new ArgumentError("Value must be a constant from the NormalMapSpace class"); } - this.§_-NH§ = value; + this.var_53 = value; } alternativa3d function getPassUVProcedure() : Procedure @@ -142,7 +142,7 @@ package alternativa.engine3d.materials { } - private function final(object:Object3D, lights:Vector., directional:DirectionalLight, lightsLength:int) : ShaderProgram + private function method_22(object:Object3D, lights:Vector., directional:DirectionalLight, lightsLength:int) : ShaderProgram { var i:int = 0; var outputProcedure:Procedure = null; @@ -204,9 +204,9 @@ package alternativa.engine3d.materials vertexLinker.addProcedure(_passVaryingsProcedure); vertexLinker.setInputParams(_passVaryingsProcedure,positionVar); fragmentLinker.declareVariable("tViewVector"); - if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + if(this.var_53 == NormalMapSpace.TANGENT_RIGHT_HANDED || this.var_53 == NormalMapSpace.TANGENT_LEFT_HANDED) { - nrmProcedure = this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; + nrmProcedure = this.var_53 == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; vertexLinker.addProcedure(nrmProcedure); vertexLinker.setInputParams(nrmProcedure,tangentVar,normalVar); fragmentLinker.addProcedure(_getNormalAndViewTangentProcedure); @@ -250,12 +250,12 @@ package alternativa.engine3d.materials } 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.compileFromArray(["#c0=c" + light.alternativa3d::name_79 + "Position","#c1=c" + light.alternativa3d::name_79 + "Color","#c2=c" + light.alternativa3d::name_79 + "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.compileFromArray(["#c0=c" + light.alternativa3d::name_79 + "Position","#c1=c" + light.alternativa3d::name_79 + "Color","#c2=c" + light.alternativa3d::name_79 + "Radius","#c3=c" + light.alternativa3d::name_79 + "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"; } } @@ -276,7 +276,7 @@ package alternativa.engine3d.materials fragmentLinker.addProcedure(_mulLightingProcedure); fragmentLinker.setInputParams(_mulLightingProcedure,"tTotalLight","tTotalHighLight"); fragmentLinker.setOutputParams(_mulLightingProcedure,"outColor"); - if(§_-L4§) + if(var_21) { fragmentLinker.addProcedure(this.alternativa3d::outputDiffuseAlpha); fragmentLinker.setInputParams(this.alternativa3d::outputDiffuseAlpha,"outColor"); @@ -320,7 +320,7 @@ package alternativa.engine3d.materials 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"]; + var source:Array = ["#c0=c" + light.alternativa3d::name_79 + "Direction","#c1=c" + light.alternativa3d::name_79 + "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"); @@ -394,7 +394,7 @@ package alternativa.engine3d.materials { return; } - if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!var_21 && opacityMap != null && opacityMap.alternativa3d::_texture == null) { return; } @@ -415,7 +415,7 @@ package alternativa.engine3d.materials { 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"); + 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]; @@ -424,14 +424,14 @@ package alternativa.engine3d.materials directional = DirectionalLight(light); key += "S"; } - key += light.alternativa3d::_-oG; + key += light.alternativa3d::name_79; } 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 = this.method_22(object,lights,directional,lightsLength); program.upload(camera.alternativa3d::context3D); programs[key] = program; } @@ -440,21 +440,21 @@ package alternativa.engine3d.materials program = programs[key]; if(program == null) { - program = this.final(object,lights,directional,lightsLength); + program = this.method_22(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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.var_26,alpha); if(lightsLength > 0) { - if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + if(this.var_53 == NormalMapSpace.TANGENT_RIGHT_HANDED || this.var_53 == 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]); @@ -467,37 +467,37 @@ package alternativa.engine3d.materials light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = light as OmniLight; - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is SpotLight) { spot = light as SpotLight; - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "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::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } if(directional != null) { @@ -507,7 +507,7 @@ package alternativa.engine3d.materials } } drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture); - if(!§_-L4§ && opacityMap != null) + if(!var_21 && opacityMap != null) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture); } @@ -566,7 +566,7 @@ package alternativa.engine3d.materials 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(this.alternativa3d::var_54) { if(drawUnit.alternativa3d::object == null) { @@ -574,7 +574,7 @@ package alternativa.engine3d.materials } camera.alternativa3d::renderer.alternativa3d::addDrawUnit(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : RenderPriority.OPAQUE); } - else if(§_-L4§ || opacityMap != null || alpha < 1) + else if(var_21 || opacityMap != null || alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; diff --git a/src/alternativa/engine3d/materials/TextureMaterial.as b/src/alternativa/engine3d/materials/TextureMaterial.as index 3c95e1a..b278ea7 100644 --- a/src/alternativa/engine3d/materials/TextureMaterial.as +++ b/src/alternativa/engine3d/materials/TextureMaterial.as @@ -40,7 +40,7 @@ package alternativa.engine3d.materials public var alpha:Number = 1; - public var §_-L4§:Boolean = false; + public var var_21:Boolean = false; public function TextureMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1) { @@ -52,7 +52,7 @@ package alternativa.engine3d.materials override alternativa3d function get canDrawInShadowMap() : Boolean { - return !this.§_-L4§ && this.opacityMap == null; + return !this.var_21 && this.opacityMap == null; } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void @@ -68,7 +68,7 @@ package alternativa.engine3d.materials } } - private function final(object:Object3D) : ShaderProgram + private function method_22(object:Object3D) : ShaderProgram { var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; @@ -80,7 +80,7 @@ package alternativa.engine3d.materials 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 outProcedure:Procedure = this.var_21 ? alternativa3d::_samplerSetProcedureDiffuseAlpha : (this.opacityMap != null ? alternativa3d::_samplerSetProcedureOpacity : alternativa3d::_samplerSetProcedure); var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); fragmentLinker.addProcedure(outProcedure); fragmentLinker.setOppositeLinker(vertexLinker); @@ -93,13 +93,13 @@ package alternativa.engine3d.materials 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 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.final(object); + program = this.method_22(object); program.upload(camera.alternativa3d::context3D); optionsPrograms[key] = program; } @@ -108,7 +108,7 @@ package alternativa.engine3d.materials program = optionsPrograms[key]; if(program == null) { - program = this.final(object); + program = this.method_22(object); program.upload(camera.alternativa3d::context3D); optionsPrograms[key] = program; } @@ -117,22 +117,22 @@ package alternativa.engine3d.materials { return; } - if(!this.§_-L4§ && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) + if(!this.var_21 && 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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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) + if(!this.var_21 && this.opacityMap != null) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),this.opacityMap.alternativa3d::_texture); } - if(this.§_-L4§ || this.opacityMap != null || this.alpha < 1) + if(this.var_21 || this.opacityMap != null || this.alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; diff --git a/src/alternativa/engine3d/materials/compiler/DestinationVariable.as b/src/alternativa/engine3d/materials/compiler/DestinationVariable.as index 0d71fce..5ad91f0 100644 --- a/src/alternativa/engine3d/materials/compiler/DestinationVariable.as +++ b/src/alternativa/engine3d/materials/compiler/DestinationVariable.as @@ -33,23 +33,23 @@ package alternativa.engine3d.materials.compiler { regmask = 15; } - §_-0J§ = regmask << 16 | index; + name_345 = regmask << 16 | index; switch(strType) { case "t": - §_-0J§ |= 33554432; + name_345 |= 33554432; type = 2; break; case "o": - §_-0J§ |= 50331648; + name_345 |= 50331648; type = 3; break; case "v": - §_-0J§ |= 67108864; + name_345 |= 67108864; type = 4; break; case "i": - §_-0J§ |= 100663296; + name_345 |= 100663296; type = 6; break; default: @@ -60,7 +60,7 @@ package alternativa.engine3d.materials.compiler override public function writeToByteArray(byteCode:ByteArray, newIndex:int, newType:int) : void { byteCode.position = position; - byteCode.writeUnsignedInt(§_-0J§ & ~0x0F00FFFF | newIndex | newType << 24); + byteCode.writeUnsignedInt(name_345 & ~0x0F00FFFF | newIndex | newType << 24); } } } diff --git a/src/alternativa/engine3d/materials/compiler/Linker.as b/src/alternativa/engine3d/materials/compiler/Linker.as index 727599c..e741165 100644 --- a/src/alternativa/engine3d/materials/compiler/Linker.as +++ b/src/alternativa/engine3d/materials/compiler/Linker.as @@ -10,58 +10,58 @@ package alternativa.engine3d.materials.compiler public class Linker { - public var §_-RT§:int = 0; + public var var_177:int = 0; - public var §_-A§:int = 0; + public var var_176:int = 0; public var type:String; - private var §_-2L§:Vector. = new Vector.(); + private var var_128:Vector. = new Vector.(); - private var §_-RU§:ByteArray = new ByteArray(); + private var var_175:ByteArray = new ByteArray(); - private var §_-8Z§:Boolean; + private var var_174:Boolean; - alternativa3d var §_-3r§:Object; + alternativa3d var var_173:Object; - private var §_-c§:Object = new Object(); + private var var_180:Object = new Object(); - private var §_-T1§:Linker; + private var var_178:Linker; - private var §_-W8§:Dictionary = new Dictionary(); + private var var_179:Dictionary = new Dictionary(); - private var §_-f-§:Dictionary = new Dictionary(); + private var var_181:Dictionary = new Dictionary(); - private var §_-Jf§:Vector. = new Vector.(6,true); + private var var_172:Vector. = new Vector.(6,true); public function Linker(programType:String) { super(); - this.§_-RU§.endian = Endian.LITTLE_ENDIAN; + this.var_175.endian = Endian.LITTLE_ENDIAN; this.type = programType; - this.§_-RU§.writeByte(160); - this.§_-RU§.writeUnsignedInt(1); - this.§_-RU§.writeByte(161); - this.§_-RU§.writeByte(programType == Context3DProgramType.FRAGMENT ? 1 : 0); + this.var_175.writeByte(160); + this.var_175.writeUnsignedInt(1); + this.var_175.writeByte(161); + this.var_175.writeByte(programType == Context3DProgramType.FRAGMENT ? 1 : 0); } public function clear() : void { - 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(); + this.var_175.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_174 = false; + this.var_176 = 0; + this.var_177 = 0; + this.alternativa3d::var_173 = null; + this.var_179 = new Dictionary(); + this.var_181 = new Dictionary(); } public function addProcedure(procedure:Procedure) : void { - this.§_-8Z§ = true; - this.§_-2L§.push(procedure); + this.var_174 = true; + this.var_128.push(procedure); } public function declareVariable(name:String, type:uint = 2) : void @@ -71,26 +71,26 @@ package alternativa.engine3d.materials.compiler v.index = -1; v.type = type; v.name = name; - this.§_-c§[name] = v; + this.var_180[name] = v; } public function setInputParams(procedure:Procedure, ... args) : void { - this.§_-W8§[procedure] = args; + this.var_179[procedure] = args; } public function setOutputParams(procedure:Procedure, ... args) : void { - this.§_-f-§[procedure] = args; + this.var_181[procedure] = args; } public function getVariableIndex(name:String) : int { - if(this.§_-8Z§) + if(this.var_174) { this.link(); } - var variable:Variable = this.alternativa3d::_-3r[name]; + var variable:Variable = this.alternativa3d::var_173[name]; if(variable == null) { throw new Error("Variable \"" + name + "\" not found"); @@ -100,11 +100,11 @@ package alternativa.engine3d.materials.compiler public function findVariable(name:String) : int { - if(this.§_-8Z§) + if(this.var_174) { this.link(); } - var variable:Variable = this.alternativa3d::_-3r[name]; + var variable:Variable = this.alternativa3d::var_173[name]; if(variable == null) { return -1; @@ -114,26 +114,26 @@ package alternativa.engine3d.materials.compiler public function containsVariable(name:String) : Boolean { - if(this.§_-8Z§) + if(this.var_174) { this.link(); } - return this.alternativa3d::_-3r[name] != null; + return this.alternativa3d::var_173[name] != null; } public function getByteCode() : ByteArray { - if(this.§_-8Z§) + if(this.var_174) { this.link(); } - return this.§_-RU§; + return this.var_175; } public function setOppositeLinker(linker:Linker) : void { - this.§_-T1§ = linker; - this.§_-8Z§ = true; + this.var_178 = linker; + this.var_174 = true; } public function link() : void @@ -150,28 +150,28 @@ package alternativa.engine3d.materials.compiler var vars:Vector. = null; var inParam:Variable = null; var outParam:Variable = null; - if(this.§_-8Z§) + if(this.var_174) { - 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 = new Object(); + this.var_175.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[v.name] = v; + this.alternativa3d::var_173[v.name] = v; } - for(i = 0; i < this.§_-2L§.length; i++) + for(i = 0; i < this.var_128.length; i++) { - p = this.§_-2L§[i]; - this.§_-A§ += p.§_-A§; - this.§_-RT§ += p.§_-RT§; - input = this.§_-W8§[p]; - output = this.§_-f-§[p]; + p = this.var_128[i]; + this.var_176 += p.var_176; + this.var_177 += p.var_177; + input = this.var_179[p]; + output = this.var_181[p]; code = new ByteArray(); code.endian = Endian.LITTLE_ENDIAN; p.byteCode.position = 0; @@ -182,21 +182,21 @@ package alternativa.engine3d.materials.compiler for(j = 0; j < numParams; ) { param = input[j]; - v = this.alternativa3d::_-3r[param]; + v = this.alternativa3d::var_173[param]; if(v == null) { throw new Error("Input parameter not set. paramName = " + param); } - if(p.§_-d2§[6].length > j) + if(p.name_343[6].length > j) { - inParam = p.§_-d2§[6][j]; + inParam = p.name_343[6][j]; if(inParam == null) { throw new Error("Input parameter set, but not exist in code. paramName = " + param + ", register = i" + j.toString()); } - if(this.§_-c§[v.name] != null && v.index < 0) + if(this.var_180[v.name] != null && v.index < 0) { - v.index = int(this.§_-Jf§[v.type]++); + v.index = int(this.var_172[v.type]++); } while(inParam != null) { @@ -213,25 +213,25 @@ package alternativa.engine3d.materials.compiler for(j = 0; j < numParams; j++) { param = output[j]; - v = this.alternativa3d::_-3r[param]; + v = this.alternativa3d::var_173[param]; if(v == null) { - if(!(j == 0 && i == this.§_-2L§.length - 1)) + if(!(j == 0 && i == this.var_128.length - 1)) { throw new Error("Output parameter have not declared. paramName = " + param); } } else { - if(this.§_-c§[v.name] != null && v.index < 0) + if(this.var_180[v.name] != null && v.index < 0) { if(v.type != 2) { throw new Error("Wrong output type:" + VariableType.TYPE_NAMES[v.type]); } - v.index = int(this.§_-Jf§[v.type]++); + v.index = int(this.var_172[v.type]++); } - outParam = p.§_-d2§[3][j]; + outParam = p.name_343[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 alternativa.engine3d.materials.compiler } } } - vars = p.§_-d2§[2]; + vars = p.name_343[2]; for(j = 0; j < vars.length; j++) { v = vars[j]; @@ -252,19 +252,19 @@ package alternativa.engine3d.materials.compiler { while(v != null) { - v.writeToByteArray(code,v.index + this.§_-Jf§[2],VariableType.TEMPORARY); + v.writeToByteArray(code,v.index + this.var_172[2],VariableType.TEMPORARY); v = v.next; } } } - 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_172[VariableType.CONSTANT] += p.alternativa3d::name_344; + this.resolveVariablesUsages(code,p.name_343[0],VariableType.ATTRIBUTE); + this.resolveVariablesUsages(code,p.name_343[1],VariableType.CONSTANT); + this.resolveVaryings(code,p.name_343[4]); + this.resolveVariablesUsages(code,p.name_343[5],VariableType.SAMPLER); + this.var_175.writeBytes(code,0,code.length); } - this.§_-8Z§ = false; + this.var_174 = false; } } @@ -273,17 +273,17 @@ package alternativa.engine3d.materials.compiler var vUsage:Variable = null; var variable:Variable = null; var type:uint = VariableType.VARYING; - if(this.§_-T1§ != null && this.§_-T1§.§_-8Z§) + if(this.var_178 != null && this.var_178.var_174) { - this.§_-T1§.link(); + this.var_178.link(); } - var oppositeVariables:Object = this.§_-T1§ != null ? this.§_-T1§.alternativa3d::_-3r : null; + var oppositeVariables:Object = this.var_178 != null ? this.var_178.alternativa3d::var_173 : null; for(var j:uint = 0; j < variableUsages.length; j++) { vUsage = variableUsages[j]; if(vUsage != null) { - variable = this.alternativa3d::_-3r[vUsage.name]; + variable = this.alternativa3d::var_173[vUsage.name]; if(variable == null) { variable = Variable.create(); @@ -291,7 +291,7 @@ package alternativa.engine3d.materials.compiler { throw new Error("Varying is not assigned. Use \'assignVariableName\' method. register = " + vUsage.index); } - this.alternativa3d::_-3r[vUsage.name] = variable; + this.alternativa3d::var_173[vUsage.name] = variable; variable.name = vUsage.name; if(oppositeVariables != null) { @@ -303,8 +303,8 @@ package alternativa.engine3d.materials.compiler } else { - variable.index = this.§_-Jf§[type]; - this.§_-Jf§[type] += vUsage.size; + variable.index = this.var_172[type]; + this.var_172[type] += vUsage.size; } variable.type = type; } @@ -326,26 +326,26 @@ package alternativa.engine3d.materials.compiler vUsage = variableUsages[j]; if(vUsage != null) { - variable = this.alternativa3d::_-3r[vUsage.name]; + variable = this.alternativa3d::var_173[vUsage.name]; if(variable == null) { variable = Variable.create(); if(vUsage.name != null) { - this.alternativa3d::_-3r[vUsage.name] = variable; + this.alternativa3d::var_173[vUsage.name] = variable; } else if(!vUsage.isRelative) { throw new Error(VariableType.TYPE_NAMES[type] + " is not assigned. Use \"assignVariableName\" method. register = " + vUsage.index); } variable.name = vUsage.name; - variable.index = this.§_-Jf§[type]; - this.§_-Jf§[type] += vUsage.size; + variable.index = this.var_172[type]; + this.var_172[type] += vUsage.size; variable.type = type; } else if(variable.index < 0) { - variable.index = int(this.§_-Jf§[type]++); + variable.index = int(this.var_172[type]++); } while(vUsage != null) { @@ -364,9 +364,9 @@ package alternativa.engine3d.materials.compiler var result:String = "LINKER:\n"; var totalCodes:uint = 0; var totalCommands:uint = 0; - for(var i:int = 0; i < this.§_-2L§.length; i++) + for(var i:int = 0; i < this.var_128.length; i++) { - p = this.§_-2L§[i]; + p = this.var_128[i]; if(p.name != null) { result += p.name + "("; @@ -375,7 +375,7 @@ package alternativa.engine3d.materials.compiler { result += "#" + i.toString() + "("; } - args = this.§_-W8§[p]; + args = this.var_179[p]; if(args != null) { for each(str in args) @@ -385,7 +385,7 @@ package alternativa.engine3d.materials.compiler result = result.substr(0,result.length - 1); } result += ")"; - args = this.§_-f-§[p]; + args = this.var_181[p]; if(args != null) { result += "->("; @@ -396,9 +396,9 @@ package alternativa.engine3d.materials.compiler result = result.substr(0,result.length - 1); result += ")"; } - result += " [IS:" + p.§_-RT§.toString() + ", CMDS:" + p.§_-A§.toString() + "]\n"; - totalCodes += p.§_-RT§; - totalCommands += p.§_-A§; + result += " [IS:" + p.var_177.toString() + ", CMDS:" + p.var_176.toString() + "]\n"; + totalCodes += p.var_177; + totalCommands += p.var_176; } 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 index a801839..b9c403d 100644 --- a/src/alternativa/engine3d/materials/compiler/Procedure.as +++ b/src/alternativa/engine3d/materials/compiler/Procedure.as @@ -12,13 +12,13 @@ package alternativa.engine3d.materials.compiler public var byteCode:ByteArray = new ByteArray(); - public var §_-d2§:Vector.> = new Vector.>(); + public var name_343:Vector.> = new Vector.>(); - public var §_-RT§:int = 0; + public var var_177:int = 0; - public var §_-A§:int = 0; + public var var_176:int = 0; - alternativa3d var §_-in§:uint = 0; + alternativa3d var name_344:uint = 0; public function Procedure(array:Array = null, name:String = null) { @@ -45,7 +45,7 @@ package alternativa.engine3d.materials.compiler private function addVariableUsage(v:Variable) : void { - var vars:Vector. = this.§_-d2§[v.type]; + var vars:Vector. = this.name_343[v.type]; var index:int = v.index; if(index >= vars.length) { @@ -60,7 +60,7 @@ package alternativa.engine3d.materials.compiler public function assignVariableName(type:uint, index:uint, name:String, size:uint = 1) : void { - for(var v:Variable = this.§_-d2§[type][index]; v != null; ) + for(var v:Variable = this.name_343[type][index]; v != null; ) { v.size = size; v.name = name; @@ -84,11 +84,11 @@ package alternativa.engine3d.materials.compiler var varName:String = null; for(var i:int = 0; i < 7; i++) { - this.§_-d2§[i] = new Vector.(); + this.name_343[i] = new Vector.(); } this.byteCode.length = 0; - this.§_-A§ = 0; - this.§_-RT§ = 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++) @@ -131,7 +131,7 @@ package alternativa.engine3d.materials.compiler public function assignConstantsArray(registersCount:uint = 1) : void { - this.alternativa3d::_-in = registersCount; + this.alternativa3d::name_344 = registersCount; } private function writeCommand(source:String) : void @@ -167,161 +167,161 @@ package alternativa.engine3d.materials.compiler { case "mov": type = CommandType.MOV; - ++this.§_-RT§; + ++this.var_177; break; case "add": type = CommandType.ADD; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "sub": type = CommandType.SUB; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "mul": type = CommandType.MUL; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "div": type = CommandType.DIV; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "rcp": type = CommandType.RCP; - ++this.§_-RT§; + ++this.var_177; break; case "min": type = CommandType.MIN; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "max": type = CommandType.MAX; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "frc": type = CommandType.FRC; - ++this.§_-RT§; + ++this.var_177; break; case "sqt": type = CommandType.SQT; - ++this.§_-RT§; + ++this.var_177; break; case "rsq": type = CommandType.RSQ; - ++this.§_-RT§; + ++this.var_177; break; case "pow": type = CommandType.POW; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 3; + this.var_177 += 3; break; case "log": type = CommandType.LOG; - ++this.§_-RT§; + ++this.var_177; break; case "exp": type = CommandType.EXP; - ++this.§_-RT§; + ++this.var_177; break; case "nrm": type = CommandType.NRM; - this.§_-RT§ += 3; + this.var_177 += 3; break; case "sin": type = CommandType.SIN; - this.§_-RT§ += 8; + this.var_177 += 8; break; case "cos": type = CommandType.COS; - this.§_-RT§ += 8; + this.var_177 += 8; break; case "crs": type = CommandType.CRS; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 2; + this.var_177 += 2; break; case "dp3": type = CommandType.DP3; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "dp4": type = CommandType.DP4; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "abs": type = CommandType.ABS; - ++this.§_-RT§; + ++this.var_177; break; case "neg": type = CommandType.NEG; - ++this.§_-RT§; + ++this.var_177; break; case "sat": type = CommandType.SAT; - ++this.§_-RT§; + ++this.var_177; break; case "m33": type = CommandType.M33; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 3; + this.var_177 += 3; break; case "m44": type = CommandType.M44; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 4; + this.var_177 += 4; break; case "m34": type = CommandType.M34; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 3; + this.var_177 += 3; break; case "kil": type = CommandType.KIL; - ++this.§_-RT§; + ++this.var_177; break; case "tex": type = CommandType.TEX; source2 = new SamplerVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "sge": type = CommandType.SGE; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; break; case "slt": type = CommandType.SLT; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.var_177; } this.byteCode.writeUnsignedInt(type); if(destination != null) { destination.position = this.byteCode.position; - this.byteCode.writeUnsignedInt(destination.§_-0J§); + this.byteCode.writeUnsignedInt(destination.name_345); } else { @@ -333,8 +333,8 @@ package alternativa.engine3d.materials.compiler this.addVariableUsage(source1.relative); source1.relative.position = this.byteCode.position; } - this.byteCode.writeUnsignedInt(source1.§_-0J§); - this.byteCode.writeUnsignedInt(source1.§_-oc§); + this.byteCode.writeUnsignedInt(source1.name_345); + this.byteCode.writeUnsignedInt(source1.name_346); if(source2 != null) { s2v = source2 as SourceVariable; @@ -344,24 +344,24 @@ package alternativa.engine3d.materials.compiler this.addVariableUsage(s2v.relative); s2v.relative.position = s2v.position; } - this.byteCode.writeUnsignedInt(source2.§_-0J§); - this.byteCode.writeUnsignedInt(source2.§_-oc§); + this.byteCode.writeUnsignedInt(source2.name_345); + this.byteCode.writeUnsignedInt(source2.name_346); } else { this.byteCode.position = this.byteCode.length = this.byteCode.length + 8; } - ++this.§_-A§; + ++this.var_176; } 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_343 = this.name_343; + res.var_177 = this.var_177; + res.alternativa3d::name_344 = this.alternativa3d::name_344; + res.var_176 = this.var_176; res.name = this.name; return res; } diff --git a/src/alternativa/engine3d/materials/compiler/RelativeVariable.as b/src/alternativa/engine3d/materials/compiler/RelativeVariable.as index 15c3ac6..515e811 100644 --- a/src/alternativa/engine3d/materials/compiler/RelativeVariable.as +++ b/src/alternativa/engine3d/materials/compiler/RelativeVariable.as @@ -43,10 +43,10 @@ package alternativa.engine3d.materials.compiler { throw new Error("Error: index offset " + reloffset + " out of bounds. [0..255]"); } - §_-0J§ = reloffset << 16 | index; - §_-oc§ |= type << 8; - §_-oc§ |= relsel << 16; - §_-oc§ |= 1 << 31; + name_345 = reloffset << 16 | index; + name_346 |= type << 8; + name_346 |= relsel << 16; + name_346 |= 1 << 31; } override public function writeToByteArray(byteCode:ByteArray, newIndex:int, newType:int) : void diff --git a/src/alternativa/engine3d/materials/compiler/SamplerVariable.as b/src/alternativa/engine3d/materials/compiler/SamplerVariable.as index c17c9fb..1b6696a 100644 --- a/src/alternativa/engine3d/materials/compiler/SamplerVariable.as +++ b/src/alternativa/engine3d/materials/compiler/SamplerVariable.as @@ -13,19 +13,19 @@ package alternativa.engine3d.materials.compiler switch(strType) { case "s": - §_-oc§ = VariableType.SAMPLER; + name_346 = VariableType.SAMPLER; break; case "i": - §_-oc§ = VariableType.INPUT; + name_346 = VariableType.INPUT; } index = parseInt(source.match(/\d+/g)[0],10); - §_-0J§ = index; + name_345 = index; var optsi:int = int(source.search(/<.*>/g)); if(optsi != -1) { opts = source.substring(optsi).match(/(\w+)/g); } - type = §_-oc§; + type = name_346; var optsLength:uint = uint(opts.length); for(var i:int = 0; i < optsLength; ) { @@ -33,51 +33,51 @@ package alternativa.engine3d.materials.compiler switch(op) { case "2d": - §_-oc§ &= ~0xF000; + name_346 &= ~0xF000; break; case "3d": - §_-oc§ &= ~0xF000; - §_-oc§ |= 8192; + name_346 &= ~0xF000; + name_346 |= 8192; break; case "cube": - §_-oc§ &= ~0xF000; - §_-oc§ |= 4096; + name_346 &= ~0xF000; + name_346 |= 4096; break; case "mipnearest": - §_-oc§ &= ~0x0F000000; - §_-oc§ |= 16777216; + name_346 &= ~0x0F000000; + name_346 |= 16777216; break; case "miplinear": - §_-oc§ &= ~0x0F000000; - §_-oc§ |= 33554432; + name_346 &= ~0x0F000000; + name_346 |= 33554432; break; case "mipnone": case "nomip": - §_-oc§ &= ~0x0F000000; + name_346 &= ~0x0F000000; break; case "nearest": - §_-oc§ &= ~4026531840; + name_346 &= ~4026531840; break; case "linear": - §_-oc§ &= ~4026531840; - §_-oc§ |= 268435456; + name_346 &= ~4026531840; + name_346 |= 268435456; break; case "centroid": - §_-oc§ |= 4294967296; + name_346 |= 4294967296; break; case "single": - §_-oc§ |= 8589934592; + name_346 |= 8589934592; break; case "depth": - §_-oc§ |= 17179869184; + name_346 |= 17179869184; break; case "repeat": case "wrap": - §_-oc§ &= ~0xF00000; - §_-oc§ |= 1048576; + name_346 &= ~0xF00000; + name_346 |= 1048576; break; case "clamp": - §_-oc§ &= ~0xF00000; + name_346 &= ~0xF00000; break; } i++; diff --git a/src/alternativa/engine3d/materials/compiler/SourceVariable.as b/src/alternativa/engine3d/materials/compiler/SourceVariable.as index 54efd81..e642a5d 100644 --- a/src/alternativa/engine3d/materials/compiler/SourceVariable.as +++ b/src/alternativa/engine3d/materials/compiler/SourceVariable.as @@ -50,7 +50,7 @@ package alternativa.engine3d.materials.compiler { regmask = 228; } - §_-0J§ = regmask << 24 | index; + name_345 = regmask << 24 | index; switch(strType) { case "a": @@ -74,12 +74,12 @@ package alternativa.engine3d.materials.compiler default: throw new ArgumentError("Wrong source register type, must be \"a\" or \"c\" or \"t\" or \"o\" or \"v\" or \"i\", var = " + source); } - §_-oc§ = type; + name_346 = type; if(isRel) { this.relative = new RelativeVariable(relreg[0]); - §_-0J§ |= this.relative.§_-0J§; - §_-oc§ |= this.relative.§_-oc§; + name_345 |= this.relative.name_345; + name_346 |= this.relative.name_346; isRelative = true; } } diff --git a/src/alternativa/engine3d/materials/compiler/Variable.as b/src/alternativa/engine3d/materials/compiler/Variable.as index 339252d..3da3dfd 100644 --- a/src/alternativa/engine3d/materials/compiler/Variable.as +++ b/src/alternativa/engine3d/materials/compiler/Variable.as @@ -18,13 +18,13 @@ package alternativa.engine3d.materials.compiler public var next:Variable; - public var §_-0J§:uint; + public var name_345:uint; - public var §_-oc§:uint; + public var name_346:uint; public var isRelative:Boolean; - private var §_-RS§:uint = 1; + private var var_32:uint = 1; public function Variable() { @@ -51,12 +51,12 @@ package alternativa.engine3d.materials.compiler public function get size() : uint { - return this.§_-RS§; + return this.var_32; } public function set size(value:uint) : void { - this.§_-RS§ = value; + this.var_32 = value; } public function writeToByteArray(byteCode:ByteArray, newIndex:int, newType:int) : void diff --git a/src/alternativa/engine3d/objects/Decal.as b/src/alternativa/engine3d/objects/Decal.as index bf0d13d..4be4e28 100644 --- a/src/alternativa/engine3d/objects/Decal.as +++ b/src/alternativa/engine3d/objects/Decal.as @@ -29,9 +29,9 @@ package alternativa.engine3d.objects { var surface:Surface = null; var debug:int = 0; - for(var i:int = 0; i < alternativa3d::_-Oy; ) + for(var i:int = 0; i < alternativa3d::var_93; ) { - surface = alternativa3d::_-eW[i]; + surface = alternativa3d::var_92[i]; if(surface.material != null) { surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,RenderPriority.DECALS); diff --git a/src/alternativa/engine3d/objects/Joint.as b/src/alternativa/engine3d/objects/Joint.as index db99c64..8d32945 100644 --- a/src/alternativa/engine3d/objects/Joint.as +++ b/src/alternativa/engine3d/objects/Joint.as @@ -8,11 +8,11 @@ package alternativa.engine3d.objects public class Joint extends Object3D { - alternativa3d var §_-Dy§:Transform3D = new Transform3D(); + alternativa3d var name_549:Transform3D = new Transform3D(); alternativa3d var bindPoseTransform:Transform3D = new Transform3D(); - private var §_-ar§:Transform3D = new Transform3D(); + private var var_689:Transform3D = new Transform3D(); public function Joint() { @@ -28,7 +28,7 @@ package alternativa.engine3d.objects { if(this.alternativa3d::bindPoseTransform != null) { - this.alternativa3d::_-Dy.combine(alternativa3d::localToGlobalTransform,this.alternativa3d::bindPoseTransform); + this.alternativa3d::name_549.combine(alternativa3d::localToGlobalTransform,this.alternativa3d::bindPoseTransform); } } diff --git a/src/alternativa/engine3d/objects/Mesh.as b/src/alternativa/engine3d/objects/Mesh.as index 0cd0bd0..eeca193 100644 --- a/src/alternativa/engine3d/objects/Mesh.as +++ b/src/alternativa/engine3d/objects/Mesh.as @@ -20,9 +20,9 @@ package alternativa.engine3d.objects { public var geometry:Geometry; - alternativa3d var §_-eW§:Vector. = new Vector.(); + alternativa3d var var_92:Vector. = new Vector.(); - alternativa3d var §_-Oy§:int = 0; + alternativa3d var var_93:int = 0; public function Mesh() { @@ -43,7 +43,7 @@ package alternativa.engine3d.objects else if(this.geometry != null) { minTime = 1e+22; - for each(s in this.alternativa3d::_-eW) + for each(s in this.alternativa3d::var_92) { data = this.geometry.alternativa3d::intersectRay(origin,direction,s.indexBegin,s.numTriangles); if(data != null && data.time < minTime) @@ -73,26 +73,26 @@ package alternativa.engine3d.objects res.material = material; res.indexBegin = indexBegin; res.numTriangles = numTriangles; - var _loc5_:* = this.alternativa3d::_-Oy++; - this.alternativa3d::_-eW[_loc5_] = res; + var _loc5_:* = this.alternativa3d::var_93++; + this.alternativa3d::var_92[_loc5_] = res; return res; } public function getSurface(index:int) : Surface { - return this.alternativa3d::_-eW[index]; + return this.alternativa3d::var_92[index]; } public function get numSurfaces() : int { - return this.alternativa3d::_-Oy; + return this.alternativa3d::var_93; } public function setMaterialToAllSurfaces(material:Material) : void { - for(var i:int = 0; i < this.alternativa3d::_-eW.length; i++) + for(var i:int = 0; i < this.alternativa3d::var_92.length; i++) { - this.alternativa3d::_-eW[i].material = material; + this.alternativa3d::var_92[i].material = material; } } @@ -117,9 +117,9 @@ package alternativa.engine3d.objects { resources[this.geometry] = true; } - for(var i:int = 0; i < this.alternativa3d::_-Oy; ) + for(var i:int = 0; i < this.alternativa3d::var_93; ) { - s = this.alternativa3d::_-eW[i]; + s = this.alternativa3d::var_92[i]; if(s.material != null) { s.material.alternativa3d::fillResources(resources,resourceType); @@ -133,9 +133,9 @@ package alternativa.engine3d.objects { var surface:Surface = null; var debug:int = 0; - for(var i:int = 0; i < this.alternativa3d::_-Oy; ) + for(var i:int = 0; i < this.alternativa3d::var_93; ) { - surface = this.alternativa3d::_-eW[i]; + surface = this.alternativa3d::var_92[i]; if(surface.material != null) { surface.material.alternativa3d::collectDraws(camera,surface,this.geometry,lights,lightsLength); @@ -159,7 +159,7 @@ package alternativa.engine3d.objects override alternativa3d function collectGeometry(collider:EllipsoidCollider, excludedObjects:Dictionary) : void { collider.alternativa3d::geometries.push(this.geometry); - collider.alternativa3d::_-QK.push(alternativa3d::localToGlobalTransform); + collider.alternativa3d::name_315.push(alternativa3d::localToGlobalTransform); } override public function clone() : Object3D @@ -175,9 +175,9 @@ package alternativa.engine3d.objects super.clonePropertiesFrom(source); var mesh:Mesh = source as Mesh; this.geometry = mesh.geometry; - this.alternativa3d::_-Oy = 0; - this.alternativa3d::_-eW.length = 0; - for each(s in mesh.alternativa3d::_-eW) + this.alternativa3d::var_93 = 0; + this.alternativa3d::var_92.length = 0; + for each(s in mesh.alternativa3d::var_92) { this.addSurface(s.material,s.indexBegin,s.numTriangles); } diff --git a/src/alternativa/engine3d/objects/Skin.as b/src/alternativa/engine3d/objects/Skin.as index 4244cd0..b94bd57 100644 --- a/src/alternativa/engine3d/objects/Skin.as +++ b/src/alternativa/engine3d/objects/Skin.as @@ -24,13 +24,13 @@ package alternativa.engine3d.objects private static var _deltaTransformProcedures:Dictionary = new Dictionary(); - public var §_-WA§:Vector.; + public var var_633:Vector.; - alternativa3d var §_-Cq§:Vector.>; + alternativa3d var var_630:Vector.>; - alternativa3d var §_-fB§:Vector.; + alternativa3d var var_631:Vector.; - alternativa3d var §do §:Vector.; + alternativa3d var var_632:Vector.; private var numJoints:int = 0; @@ -41,19 +41,19 @@ package alternativa.engine3d.objects super(); this.numJoints = numJoints; this.maxInfluences = maxInfluences; - this.§_-WA§ = new Vector.(); - this.alternativa3d::_-Cq = new Vector.>(); - this.alternativa3d::_-fB = new Vector.(); - this.alternativa3d::do = new Vector.(); + this.var_633 = new Vector.(); + this.alternativa3d::var_630 = new Vector.>(); + this.alternativa3d::var_631 = new Vector.(); + this.alternativa3d::var_632 = new Vector.(); alternativa3d::transformProcedure = this.calculateTransformProcedure(maxInfluences,numJoints); alternativa3d::deltaTransformProcedure = this.calculateDeltaTransformProcedure(maxInfluences,numJoints); } override public function addSurface(material:Material, indexBegin:uint, numTriangles:uint) : Surface { - this.alternativa3d::_-fB[alternativa3d::_-Oy] = alternativa3d::transformProcedure; - this.alternativa3d::do [alternativa3d::_-Oy] = alternativa3d::deltaTransformProcedure; - this.alternativa3d::_-Cq[alternativa3d::_-Oy] = this.§_-WA§; + this.alternativa3d::var_631[alternativa3d::var_93] = alternativa3d::transformProcedure; + this.alternativa3d::var_632[alternativa3d::var_93] = alternativa3d::deltaTransformProcedure; + this.alternativa3d::var_630[alternativa3d::var_93] = this.var_633; return super.addSurface(material,indexBegin,numTriangles); } @@ -340,16 +340,16 @@ package alternativa.engine3d.objects var lastMaxIndex:uint = 0; var lastSurfaceIndex:uint = 0; var lastIndicesCount:uint = 0; - this.alternativa3d::_-Cq.length = 0; + this.alternativa3d::var_630.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::_-Oy; i++) + for(var i:int = 0; i < alternativa3d::var_93; i++) { outIndices = new Vector.(); outVertices = new ByteArray(); outJointsMaps = new Vector.(); outVertices.endian = Endian.LITTLE_ENDIAN; - maxIndex = this.divideSurface(limit,iterations,alternativa3d::_-eW[i],jointsOffsets,jointsBufferNumMappings * 4,jointsBufferData,outVertices,outIndices,outSurfaces,outJointsMaps); + maxIndex = this.divideSurface(limit,iterations,alternativa3d::var_92[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 alternativa.engine3d.objects for(j = 0,count = int(outJointsMaps.length); j < count; j++) { maxJoints = 0; - vec = this.alternativa3d::_-Cq[j + lastSurfaceIndex] = new Vector.(); + vec = this.alternativa3d::var_630[j + lastSurfaceIndex] = new Vector.(); joints = outJointsMaps[j]; for(key in joints) { @@ -367,7 +367,7 @@ package alternativa.engine3d.objects { vec.length = index + 1; } - vec[index] = this.§_-WA§[uint(key / 3)]; + vec[index] = this.var_633[uint(key / 3)]; maxJoints++; } } @@ -380,14 +380,14 @@ package alternativa.engine3d.objects totalVertices.writeBytes(outVertices,0,outVertices.length); lastMaxIndex += maxIndex; } - 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++) + alternativa3d::var_92 = outSurfaces; + alternativa3d::var_93 = outSurfaces.length; + this.alternativa3d::var_631.length = alternativa3d::var_93; + this.alternativa3d::var_632.length = alternativa3d::var_93; + for(i = 0; i < alternativa3d::var_93; i++) { - 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); + this.alternativa3d::var_631[i] = this.calculateTransformProcedure(this.maxInfluences,this.alternativa3d::var_630[i].length); + this.alternativa3d::var_632[i] = this.calculateDeltaTransformProcedure(this.maxInfluences,this.alternativa3d::var_630[i].length); } var newGeometry:Geometry = new Geometry(); newGeometry.alternativa3d::_indices = totalIndices; @@ -453,11 +453,11 @@ package alternativa.engine3d.objects this.calculateJointsTransforms(child); child = child.alternativa3d::next; } - for(var i:int = 0; i < alternativa3d::_-Oy; ) + for(var i:int = 0; i < alternativa3d::var_93; ) { - surface = alternativa3d::_-eW[i]; - alternativa3d::transformProcedure = this.alternativa3d::_-fB[i]; - alternativa3d::deltaTransformProcedure = this.alternativa3d::do [i]; + surface = alternativa3d::var_92[i]; + alternativa3d::transformProcedure = this.alternativa3d::var_631[i]; + alternativa3d::deltaTransformProcedure = this.alternativa3d::var_632[i]; if(surface.material != null) { surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength); @@ -489,12 +489,12 @@ package alternativa.engine3d.objects 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::_-eW.indexOf(surface)); - var joints:Vector. = this.alternativa3d::_-Cq[surfaceIndex]; + var surfaceIndex:int = int(alternativa3d::var_92.indexOf(surface)); + var joints:Vector. = this.alternativa3d::var_630[surfaceIndex]; for(i = 0,count = int(joints.length); i < count; i++) { joint = joints[i]; - drawUnit.alternativa3d::setVertexConstantsFromTransform(i * 3,joint.alternativa3d::_-Dy); + drawUnit.alternativa3d::setVertexConstantsFromTransform(i * 3,joint.alternativa3d::name_549); } } @@ -618,15 +618,15 @@ package alternativa.engine3d.objects { super.clonePropertiesFrom(source); var skin:Skin = Skin(source); - if(skin.§_-WA§ != null) + if(skin.var_633 != null) { - this.§_-WA§ = this.cloneJointsVector(skin.§_-WA§,skin); + this.var_633 = this.cloneJointsVector(skin.var_633,skin); } - for(var i:int = 0; i < alternativa3d::_-Oy; ) + for(var i:int = 0; i < alternativa3d::var_93; ) { - 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); + this.alternativa3d::var_630[i] = this.cloneJointsVector(skin.alternativa3d::var_630[i],skin); + this.alternativa3d::var_631[i] = this.calculateTransformProcedure(this.maxInfluences,this.alternativa3d::var_630[i].length); + this.alternativa3d::var_632[i] = this.calculateDeltaTransformProcedure(this.maxInfluences,this.alternativa3d::var_630[i].length); i++; } } diff --git a/src/alternativa/engine3d/objects/SkyBox.as b/src/alternativa/engine3d/objects/SkyBox.as index 1dc12f3..dd5b125 100644 --- a/src/alternativa/engine3d/objects/SkyBox.as +++ b/src/alternativa/engine3d/objects/SkyBox.as @@ -30,17 +30,17 @@ package alternativa.engine3d.objects 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 var_98:Surface; - private var §_-69§:Surface; + private var var_95:Surface; - private var §_-EB§:Surface; + private var var_96:Surface; - private var §_-iw§:Surface; + private var var_99:Surface; - private var §_-1V§:Surface; + private var var_94:Surface; - private var §_-Oz§:Surface; + private var var_97:Surface; private var size:Number; @@ -60,21 +60,21 @@ package alternativa.engine3d.objects 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); + this.var_98 = addSurface(left,0,2); + this.var_95 = addSurface(right,6,2); + this.var_96 = addSurface(back,12,2); + this.var_99 = addSurface(front,18,2); + this.var_94 = addSurface(bottom,24,2); + this.var_97 = 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; ) + for(var i:int = 0; i < alternativa3d::var_93; ) { - surface = alternativa3d::_-eW[i]; + surface = alternativa3d::var_92[i]; if(surface.material != null) { surface.material.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,RenderPriority.SKY); @@ -166,17 +166,17 @@ package alternativa.engine3d.objects switch(side) { case LEFT: - return this.§_-gj§; + return this.var_98; case RIGHT: - return this.§_-69§; + return this.var_95; case BACK: - return this.§_-EB§; + return this.var_96; case FRONT: - return this.§_-iw§; + return this.var_99; case BOTTOM: - return this.§_-1V§; + return this.var_94; case TOP: - return this.§_-Oz§; + return this.var_97; default: return null; } @@ -195,33 +195,33 @@ package alternativa.engine3d.objects var newSurface:Surface = null; super.clonePropertiesFrom(source); var src:SkyBox = source as SkyBox; - for(var i:int = 0; i < src.alternativa3d::_-Oy; ) + for(var i:int = 0; i < src.alternativa3d::var_93; ) { - surface = src.alternativa3d::_-eW[i]; - newSurface = alternativa3d::_-eW[i]; - if(surface == src.§_-gj§) + surface = src.alternativa3d::var_92[i]; + newSurface = alternativa3d::var_92[i]; + if(surface == src.var_98) { - this.§_-gj§ = newSurface; + this.var_98 = newSurface; } - else if(surface == src.§_-69§) + else if(surface == src.var_95) { - this.§_-69§ = newSurface; + this.var_95 = newSurface; } - else if(surface == src.§_-EB§) + else if(surface == src.var_96) { - this.§_-EB§ = newSurface; + this.var_96 = newSurface; } - else if(surface == src.§_-iw§) + else if(surface == src.var_99) { - this.§_-iw§ = newSurface; + this.var_99 = newSurface; } - else if(surface == src.§_-1V§) + else if(surface == src.var_94) { - this.§_-1V§ = newSurface; + this.var_94 = newSurface; } - else if(surface == src.§_-Oz§) + else if(surface == src.var_97) { - this.§_-Oz§ = newSurface; + this.var_97 = newSurface; } i++; } diff --git a/src/alternativa/engine3d/objects/WireFrame.as b/src/alternativa/engine3d/objects/WireFrame.as index 5f24446..855aaad 100644 --- a/src/alternativa/engine3d/objects/WireFrame.as +++ b/src/alternativa/engine3d/objects/WireFrame.as @@ -28,7 +28,7 @@ package alternativa.engine3d.objects public var thickness:Number = 1; - alternativa3d var §_-lc§:Vector. = new Vector.(4,true); + alternativa3d var var_625:Vector. = new Vector.(4,true); alternativa3d var geometry:WireGeometry; @@ -181,24 +181,24 @@ package alternativa.engine3d.objects public function get alpha() : Number { - return this.alternativa3d::_-lc[3]; + return this.alternativa3d::var_625[3]; } public function set alpha(value:Number) : void { - this.alternativa3d::_-lc[3] = value; + this.alternativa3d::var_625[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; + 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::_-lc[0] = (value >> 16 & 0xFF) / 255; - this.alternativa3d::_-lc[1] = (value >> 8 & 0xFF) / 255; - this.alternativa3d::_-lc[2] = (value & 0xFF) / 255; + 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:BoundBox, hierarchy:Boolean, transform:Transform3D = null) : void @@ -212,7 +212,7 @@ package alternativa.engine3d.objects 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); + this.alternativa3d::geometry.alternativa3d::getDrawUnits(camera,this.alternativa3d::var_625,this.thickness,this,alternativa3d::shaderProgram); } override alternativa3d function fillResources(resources:Dictionary, hierarchy:Boolean = false, resourceType:Class = null) : void diff --git a/src/alternativa/engine3d/resources/Geometry.as b/src/alternativa/engine3d/resources/Geometry.as index 9377aae..7ec6791 100644 --- a/src/alternativa/engine3d/resources/Geometry.as +++ b/src/alternativa/engine3d/resources/Geometry.as @@ -21,17 +21,17 @@ package alternativa.engine3d.resources { alternativa3d var _vertexStreams:Vector. = new Vector.(); - alternativa3d var §_-EM§:IndexBuffer3D; + alternativa3d var name_78:IndexBuffer3D; alternativa3d var _numVertices:int; alternativa3d var _indices:Vector. = new Vector.(); - alternativa3d var §_-GM§:Vector. = new Vector.(); + alternativa3d var var_170:Vector. = new Vector.(); alternativa3d var _attributesOffsets:Vector. = new Vector.(); - private var §_-QD§:Vector. = new Vector.(); + private var var_171:Vector. = new Vector.(); public function Geometry(numVertices:int = 0) { @@ -102,7 +102,7 @@ package alternativa.engine3d.resources { if(attribute != 0) { - if(attribute < this.alternativa3d::_-GM.length && this.alternativa3d::_-GM[attribute] != null) + if(attribute < this.alternativa3d::var_170.length && this.alternativa3d::var_170[attribute] != null) { throw new Error("Attribute " + attribute + " already used in this geometry."); } @@ -111,16 +111,16 @@ package alternativa.engine3d.resources { throw new Error("Standard attributes must be predefined size."); } - if(this.alternativa3d::_-GM.length < attribute) + if(this.alternativa3d::var_170.length < attribute) { - this.alternativa3d::_-GM.length = attribute + 1; + this.alternativa3d::var_170.length = attribute + 1; this.alternativa3d::_attributesOffsets.length = attribute + 1; - this.§_-QD§.length = attribute + 1; + this.var_171.length = attribute + 1; } startIndex = i - stride; - this.alternativa3d::_-GM[attribute] = vBuffer; + this.alternativa3d::var_170[attribute] = vBuffer; this.alternativa3d::_attributesOffsets[attribute] = startIndex; - this.§_-QD§[attribute] = stride; + this.var_171[attribute] = stride; } stride = 1; } @@ -150,13 +150,13 @@ package alternativa.engine3d.resources public function hasAttribute(attribute:uint) : Boolean { - return attribute < this.alternativa3d::_-GM.length && this.alternativa3d::_-GM[attribute] != null; + return attribute < this.alternativa3d::var_170.length && this.alternativa3d::var_170[attribute] != null; } public function findVertexStreamByAttribute(attribute:uint) : int { var i:int = 0; - var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; if(vBuffer != null) { for(i = 0; i < this.alternativa3d::_vertexStreams.length; ) @@ -173,7 +173,7 @@ package alternativa.engine3d.resources public function getAttributeOffset(attribute:uint) : int { - var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); @@ -185,12 +185,12 @@ package alternativa.engine3d.resources { var srcIndex:int = 0; var j:int = 0; - var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); } - var stride:int = this.§_-QD§[attribute]; + var stride:int = this.var_171[attribute]; if(values == null || values.length != stride * this.alternativa3d::_numVertices) { throw new Error("Values count must be the same."); @@ -213,13 +213,13 @@ package alternativa.engine3d.resources { var dstIndex:int = 0; var j:int = 0; - var vBuffer:VertexStream = attribute < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[attribute] : null; + var vBuffer:VertexStream = attribute < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); } var data:ByteArray = vBuffer.data; - var stride:int = this.§_-QD§[attribute]; + var stride:int = this.var_171[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,7 +237,7 @@ package alternativa.engine3d.resources override public function get isUploaded() : Boolean { - return this.alternativa3d::_-EM != null; + return this.alternativa3d::name_78 != null; } override public function upload(context3D:Context3D) : void @@ -247,10 +247,10 @@ package alternativa.engine3d.resources var numMappings:int = 0; var data:ByteArray = null; var numBuffers:int = int(this.alternativa3d::_vertexStreams.length); - if(this.alternativa3d::_-EM != null) + if(this.alternativa3d::name_78 != null) { - this.alternativa3d::_-EM.dispose(); - this.alternativa3d::_-EM = null; + this.alternativa3d::name_78.dispose(); + this.alternativa3d::name_78 = null; for(i = 0; i < numBuffers; i++) { vBuffer = this.alternativa3d::_vertexStreams[i]; @@ -276,8 +276,8 @@ package alternativa.engine3d.resources i++; } var numIndices:int = int(this.alternativa3d::_indices.length); - this.alternativa3d::_-EM = context3D.createIndexBuffer(numIndices); - this.alternativa3d::_-EM.uploadFromVector(this.alternativa3d::_indices,0,numIndices); + this.alternativa3d::name_78 = context3D.createIndexBuffer(numIndices); + this.alternativa3d::name_78.uploadFromVector(this.alternativa3d::_indices,0,numIndices); } override public function dispose() : void @@ -285,10 +285,10 @@ package alternativa.engine3d.resources var numBuffers:int = 0; var i:int = 0; var vBuffer:VertexStream = null; - if(this.alternativa3d::_-EM != null) + if(this.alternativa3d::name_78 != null) { - this.alternativa3d::_-EM.dispose(); - this.alternativa3d::_-EM = null; + this.alternativa3d::name_78.dispose(); + this.alternativa3d::name_78 = null; numBuffers = int(this.alternativa3d::_vertexStreams.length); for(i = 0; i < numBuffers; i++) { @@ -301,25 +301,25 @@ package alternativa.engine3d.resources public function updateIndexBufferInContextFromVector(data:Vector., startOffset:int, count:int) : void { - if(this.alternativa3d::_-EM == null) + if(this.alternativa3d::name_78 == null) { throw new Error("Geometry must be uploaded."); } - this.alternativa3d::_-EM.uploadFromVector(data,startOffset,count); + this.alternativa3d::name_78.uploadFromVector(data,startOffset,count); } public function updateIndexBufferInContextFromByteArray(data:ByteArray, byteArrayOffset:int, startOffset:int, count:int) : void { - if(this.alternativa3d::_-EM == null) + if(this.alternativa3d::name_78 == null) { throw new Error("Geometry must be uploaded."); } - this.alternativa3d::_-EM.uploadFromByteArray(data,byteArrayOffset,startOffset,count); + this.alternativa3d::name_78.uploadFromByteArray(data,byteArrayOffset,startOffset,count); } public function updateVertexBufferInContextFromVector(index:int, data:Vector., startVertex:int, numVertices:int) : void { - if(this.alternativa3d::_-EM == null) + if(this.alternativa3d::name_78 == null) { throw new Error("Geometry must be uploaded."); } @@ -328,7 +328,7 @@ package alternativa.engine3d.resources public function updateVertexBufferInContextFromByteArray(index:int, data:ByteArray, byteArrayOffset:int, startVertex:int, numVertices:int) : void { - if(this.alternativa3d::_-EM == null) + if(this.alternativa3d::name_78 == null) { throw new Error("Geometry must be uploaded."); } @@ -426,14 +426,14 @@ package alternativa.engine3d.resources var minTime:Number = 1e+22; 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) + if(VertexAttributes.POSITION >= this.alternativa3d::var_170.length || (positionStream = this.alternativa3d::var_170[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::_-GM.length && (uvStream = this.alternativa3d::_-GM[uvAttribute]) != null; + var hasUV:Boolean = uvAttribute < this.alternativa3d::var_170.length && (uvStream = this.alternativa3d::var_170[uvAttribute]) != null; if(hasUV) { uvBuffer = uvStream.data; @@ -607,9 +607,9 @@ package alternativa.engine3d.resources alternativa3d function getVertexBuffer(attribute:int) : VertexBuffer3D { var stream:VertexStream = null; - if(attribute < this.alternativa3d::_-GM.length) + if(attribute < this.alternativa3d::var_170.length) { - stream = this.alternativa3d::_-GM[attribute]; + stream = this.alternativa3d::var_170[attribute]; return stream != null ? stream.buffer : null; } return null; @@ -623,7 +623,7 @@ package alternativa.engine3d.resources var x:Number = NaN; var y:Number = NaN; var z:Number = NaN; - var vBuffer:VertexStream = VertexAttributes.POSITION < this.alternativa3d::_-GM.length ? this.alternativa3d::_-GM[VertexAttributes.POSITION] : null; + var vBuffer:VertexStream = VertexAttributes.POSITION < this.alternativa3d::var_170.length ? this.alternativa3d::var_170[VertexAttributes.POSITION] : null; if(vBuffer == null) { throw new Error("Cannot calculate BoundBox without data."); diff --git a/src/alternativa/engine3d/resources/WireGeometry.as b/src/alternativa/engine3d/resources/WireGeometry.as index 34c329b..6337e2e 100644 --- a/src/alternativa/engine3d/resources/WireGeometry.as +++ b/src/alternativa/engine3d/resources/WireGeometry.as @@ -19,25 +19,25 @@ package alternativa.engine3d.resources public class WireGeometry extends Resource { - private const §_-VA§:uint = 65500; + private const const_6:uint = 65500; - private const §_-Pp§:Number = 2 * Math.tan(Math.PI / 6); + private const const_5:Number = 2 * Math.tan(Math.PI / 6); - private const §_-SS§:uint = 7; + private const const_4:uint = 7; alternativa3d var vertexBuffers:Vector.; alternativa3d var indexBuffers:Vector.; - private var §_-Rz§:Vector.; + private var var_688:Vector.; private var vertices:Vector.>; private var indices:Vector.>; - private var §_-ix§:int = 0; + private var var_686:int = 0; - private var §_-dP§:uint = 0; + private var var_687:uint = 0; public function WireGeometry() { @@ -53,7 +53,7 @@ package alternativa.engine3d.resources var inds:Vector. = null; var vBuffer:VertexBuffer3D = null; var iBuffer:IndexBuffer3D = null; - for(var i:int = 0; i <= this.§_-ix§; ) + for(var i:int = 0; i <= this.var_686; ) { if(this.alternativa3d::vertexBuffers[i] != null) { @@ -63,12 +63,12 @@ package alternativa.engine3d.resources { this.alternativa3d::indexBuffers[i].dispose(); } - if(this.§_-Rz§[i] > 0) + if(this.var_688[i] > 0) { verts = this.vertices[i]; inds = this.indices[i]; - vBuffer = this.alternativa3d::vertexBuffers[i] = context3D.createVertexBuffer(verts.length / this.§_-SS§,this.§_-SS§); - vBuffer.uploadFromVector(verts,0,verts.length / this.§_-SS§); + vBuffer = this.alternativa3d::vertexBuffers[i] = context3D.createVertexBuffer(verts.length / this.const_4,this.const_4); + vBuffer.uploadFromVector(verts,0,verts.length / this.const_4); iBuffer = this.alternativa3d::indexBuffers[i] = context3D.createIndexBuffer(inds.length); iBuffer.uploadFromVector(inds,0,inds.length); } @@ -78,7 +78,7 @@ package alternativa.engine3d.resources override public function dispose() : void { - for(var i:int = 0; i <= this.§_-ix§; ) + for(var i:int = 0; i <= this.var_686; ) { if(this.alternativa3d::vertexBuffers[i] != null) { @@ -96,7 +96,7 @@ package alternativa.engine3d.resources override public function get isUploaded() : Boolean { - for(var i:int = 0; i <= this.§_-ix§; ) + for(var i:int = 0; i <= this.var_686; ) { if(this.alternativa3d::vertexBuffers[i] == null) { @@ -118,8 +118,8 @@ package alternativa.engine3d.resources this.indices = new Vector.>(); this.vertices[0] = new Vector.(); this.indices[0] = new Vector.(); - this.§_-Rz§ = new Vector.(1); - this.§_-dP§ = 0; + this.var_688 = new Vector.(1); + this.var_687 = 0; } alternativa3d function updateBoundBox(boundBox:BoundBox, transform:Transform3D = null) : void @@ -177,7 +177,7 @@ package alternativa.engine3d.resources { boundBox.maxZ = z; } - j += this.§_-SS§; + j += this.const_4; } } } @@ -191,17 +191,17 @@ package alternativa.engine3d.resources { shader.upload(camera.alternativa3d::context3D); } - for(var i:int = 0; i <= this.§_-ix§; ) + for(var i:int = 0; i <= this.var_686; ) { iBuffer = this.alternativa3d::indexBuffers[i]; vBuffer = this.alternativa3d::vertexBuffers[i]; if(iBuffer != null && vBuffer != null) { - drawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,shader.program,iBuffer,0,this.§_-Rz§[i],shader); + drawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,shader.program,iBuffer,0,this.var_688[i],shader); drawUnit.alternativa3d::setVertexBufferAt(0,vBuffer,0,Context3DVertexBufferFormat.FLOAT_4); drawUnit.alternativa3d::setVertexBufferAt(1,vBuffer,4,Context3DVertexBufferFormat.FLOAT_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::setVertexConstantsFromNumbers(1,-this.const_5 / 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]); @@ -222,26 +222,26 @@ package alternativa.engine3d.resources alternativa3d function addLine(v1x:Number, v1y:Number, v1z:Number, v2x:Number, v2y:Number, v2z:Number) : void { - 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) + 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) { - 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; + 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; } else { - this.§_-Rz§[this.§_-ix§] += 2; + this.var_688[this.var_686] += 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.§_-dP§,this.§_-dP§ + 1,this.§_-dP§ + 2,this.§_-dP§ + 3,this.§_-dP§ + 2,this.§_-dP§ + 1); - this.§_-dP§ += 4; + 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; } } } diff --git a/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as b/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as index 9490297..d95d7a0 100644 --- a/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as +++ b/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as @@ -49,31 +49,31 @@ package alternativa.engine3d.shadows public var offset:Vector3D = new Vector3D(); - public var §_-qg§:Object3D; + public var var_235:Object3D; private var context:Context3D; private var shadowMap:Texture; - private var §_-FQ§:Number; + private var var_236:Number; private var light:DirectionalLight; - alternativa3d var §_-UK§:Matrix3D = new Matrix3D(); + alternativa3d var var_238:Matrix3D = new Matrix3D(); private var debugObject:Mesh; - public var §_-Vg§:TextureMaterial = new TextureMaterial(); + public var var_237:TextureMaterial = new TextureMaterial(); - private var §_-Ez§:TextureResource = new ExternalTextureResource("null"); + private var var_239:TextureResource = new ExternalTextureResource("null"); - private var §_-M§:Number = 0; + private var var_164:Number = 0; private var pcfOffsets:Vector.; - private var §_-1a§:Boolean = false; + private var var_167:Boolean = false; - private var §_-bD§:Matrix3D = new Matrix3D(); + private var var_169:Matrix3D = new Matrix3D(); private var uvMatrix:Matrix3D = new Matrix3D(); @@ -85,18 +85,18 @@ package alternativa.engine3d.shadows { super(); this.context = context; - this.§_-FQ§ = worldSize; - this.§_-M§ = pcfSize / worldSize / 255; - if(this.§_-M§ > 0) + this.var_236 = worldSize; + this.var_164 = pcfSize / worldSize / 255; + if(this.var_164 > 0) { - 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.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.shadowMap = context.createTexture(size,size,Context3DTextureFormat.BGRA,true); - 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.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 Box(worldSize,worldSize,1,1,1,1,false,this.var_237); this.debugObject.geometry.upload(context); } @@ -161,12 +161,12 @@ package alternativa.engine3d.shadows 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::_-Oy; i++) + for(var i:int = 0; i < mesh.alternativa3d::var_93; i++) { - surface = mesh.alternativa3d::_-eW[i]; + surface = mesh.alternativa3d::var_92[i]; if(!(surface.material == null || !surface.material.alternativa3d::canDrawInShadowMap)) { - context.drawTriangles(mesh.geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles); + context.drawTriangles(mesh.geometry.alternativa3d::name_78,surface.indexBegin,surface.numTriangles); } } context.setVertexBufferAt(0,null); @@ -299,13 +299,13 @@ package alternativa.engine3d.shadows public function get worldSize() : Number { - return this.§_-FQ§; + return this.var_236; } public function set worldSize(value:Number) : void { - this.§_-FQ§ = value; - var newDebug:Mesh = new Box(this.§_-FQ§,this.§_-FQ§,1,1,1,1,false,this.§_-Vg§); + this.var_236 = value; + var newDebug:Mesh = new Box(this.var_236,this.var_236,1,1,1,1,false,this.var_237); newDebug.geometry.upload(this.context); if(this.debugObject.alternativa3d::_parent != null) { @@ -318,7 +318,7 @@ package alternativa.engine3d.shadows public function setLight(value:DirectionalLight) : void { this.light = value; - if(this.§_-1a§) + if(this.var_167) { this.light.addChild(this.debugObject); } @@ -326,13 +326,13 @@ package alternativa.engine3d.shadows override public function get debug() : Boolean { - return this.§_-1a§; + return this.var_167; } override public function set debug(value:Boolean) : void { - this.§_-1a§ = value; - if(this.§_-1a§) + this.var_167 = value; + if(this.var_167) { if(this.light != null) { @@ -348,7 +348,7 @@ package alternativa.engine3d.shadows override alternativa3d function cullReciever(boundBox:BoundBox, object:Object3D) : Boolean { alternativa3d::copyMatrixFromTransform(matrix,object.alternativa3d::localToGlobalTransform); - matrix.append(this.alternativa3d::_-UK); + matrix.append(this.alternativa3d::var_238); return alternativa3d::cullObjectImplementation(boundBox,matrix); } @@ -356,12 +356,12 @@ package alternativa.engine3d.shadows { var root:Object3D = null; active = true; - 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; ) + 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; ) { 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.§_-qg§.alternativa3d::localToCameraTransform.append(root.alternativa3d::localToGlobalTransform); + this.var_235.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,25 +372,25 @@ package alternativa.engine3d.shadows } this.light.alternativa3d::globalToLocalTransform.copy(this.light.alternativa3d::localToGlobalTransform); this.light.alternativa3d::globalToLocalTransform.invert(); - this.§_-qg§.alternativa3d::localToCameraTransform.append(this.light.alternativa3d::globalToLocalTransform); - var t:Transform3D = this.§_-qg§.alternativa3d::localToCameraTransform; + this.var_235.alternativa3d::localToCameraTransform.append(this.light.alternativa3d::globalToLocalTransform); + var t:Transform3D = this.var_235.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.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.calculateShadowMapProjection(this.var_169,this.uvMatrix,this.center,this.var_236,this.var_236,this.var_236); + alternativa3d::copyMatrixFromTransform(this.alternativa3d::var_238,this.light.alternativa3d::globalToLocalTransform); + this.alternativa3d::var_238.append(this.uvMatrix); this.debugObject.x = this.center.x; this.debugObject.y = this.center.y; - this.debugObject.z = this.center.z - this.§_-FQ§ / 2; - this.§_-Vg§.diffuseMap = null; + this.debugObject.z = this.center.z - this.var_236 / 2; + this.var_237.diffuseMap = null; this.context.setRenderToTexture(this.shadowMap,true,0,0); this.context.clear(1,1,1,1); cleanContext(this.context); - alternativa3d::drawObjectToShadowMap(this.context,this.§_-qg§,this.light,this.§_-bD§); + alternativa3d::drawObjectToShadowMap(this.context,this.var_235,this.light,this.var_169); this.context.setRenderToBackBuffer(); cleanContext(this.context); - this.§_-Vg§.diffuseMap = this.§_-Ez§; + this.var_237.diffuseMap = this.var_239; } private function calculateShadowMapProjection(matrix:Matrix3D, uvMatrix:Matrix3D, offset:Vector3D, width:Number, height:Number, length:Number) : void @@ -426,19 +426,19 @@ package alternativa.engine3d.shadows override public function getFShader(index:int = 0) : Procedure { - return initFShader(false,this.§_-M§ > 0,index); + return initFShader(false,this.var_164 > 0,index); } override public function getFIntensityShader() : Procedure { - return initFShader(false,this.§_-M§ > 0,0,true); + return initFShader(false,this.var_164 > 0,0,true); } 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::copyMatrixFromTransform(objectToShadowMap,localToGlobal); - objectToShadowMap.append(this.alternativa3d::_-UK); + objectToShadowMap.append(this.alternativa3d::var_238); objectToShadowMap.copyRawDataTo(vector,0,true); drawUnit.alternativa3d::setVertexConstantsFromVector(program.vertexShader.getVariableIndex(index + "cTOSHADOW"),vector,4); drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex(index + "cConstants"),constants,1); @@ -446,7 +446,7 @@ package alternativa.engine3d.shadows { 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.§_-M§ > 0) + if(this.var_164 > 0) { drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cDPCF0"),this.pcfOffsets,this.pcfOffsets.length / 4); } diff --git a/src/alternativa/engine3d/shadows/ShadowRenderer.as b/src/alternativa/engine3d/shadows/ShadowRenderer.as index 42ab3a1..34a2dff 100644 --- a/src/alternativa/engine3d/shadows/ShadowRenderer.as +++ b/src/alternativa/engine3d/shadows/ShadowRenderer.as @@ -20,7 +20,7 @@ package alternativa.engine3d.shadows private static const boundVertices:Vector. = new Vector.(24); - alternativa3d var §if§:String; + alternativa3d var var_104:String; public var active:Boolean = false; @@ -28,7 +28,7 @@ package alternativa.engine3d.shadows { super(); ++counter; - this.alternativa3d::if = "M" + counter.toString(); + this.alternativa3d::var_104 = "M" + counter.toString(); } alternativa3d function get needMultiplyBlend() : Boolean diff --git a/src/alternativa/engine3d/shadows/ShadowsSystem.as b/src/alternativa/engine3d/shadows/ShadowsSystem.as index be02ac0..2793217 100644 --- a/src/alternativa/engine3d/shadows/ShadowsSystem.as +++ b/src/alternativa/engine3d/shadows/ShadowsSystem.as @@ -12,15 +12,15 @@ package alternativa.engine3d.shadows public var renderers:Vector. = new Vector.(); - private var §_-jy§:Dictionary = new Dictionary(); + private var var_12:Dictionary = new Dictionary(); - private var §_-gR§:int; + private var var_161:int; - private var §_-i-§:int; + private var var_158:int; - private var §_-O0§:Vector. = new Vector.(); + private var var_159:Vector. = new Vector.(); - private var §_-aJ§:int; + private var var_160:int; public function ShadowsSystem() { @@ -34,7 +34,7 @@ package alternativa.engine3d.shadows { return; } - this.§_-i-§ = 0; + this.var_158 = 0; var num:int = int(this.renderers.length); for(var i:int = 0; i < num; ) { @@ -42,8 +42,8 @@ package alternativa.engine3d.shadows renderer.update(); if(renderer.active) { - this.§_-O0§[this.§_-i-§] = renderer; - ++this.§_-i-§; + this.var_159[this.var_158] = renderer; + ++this.var_158; } i++; } @@ -52,8 +52,8 @@ package alternativa.engine3d.shadows root.alternativa3d::composeTransforms(); } root.alternativa3d::localToGlobalTransform.copy(root.alternativa3d::transform); - this.§_-gR§ = 0; - this.§_-aJ§ = 0; + this.var_161 = 0; + this.var_160 = 0; this.recursive(root); } @@ -74,21 +74,21 @@ package alternativa.engine3d.shadows child.alternativa3d::composeTransforms(); } child.alternativa3d::localToGlobalTransform.combine(object.alternativa3d::localToGlobalTransform,child.alternativa3d::transform); - for(i = 0; i < this.§_-i-§; ) + for(i = 0; i < this.var_158; ) { - renderer = this.§_-O0§[i]; + renderer = this.var_159[i]; if(child.useShadow) { if(child.boundBox == null || renderer.alternativa3d::cullReciever(child.boundBox,child)) { - ++this.§_-gR§; + ++this.var_161; if(value == null) { - value = this.§_-jy§[child]; + value = this.var_12[child]; if(value == null) { value = new Vector.(); - this.§_-jy§[child] = value; + this.var_12[child] = value; } else { @@ -109,9 +109,9 @@ package alternativa.engine3d.shadows private function setRenderers(object:Object3D, renderers:Vector., numShadowRenderers:int) : void { - if(numShadowRenderers > this.§_-aJ§) + if(numShadowRenderers > this.var_160) { - this.§_-aJ§ = numShadowRenderers; + this.var_160 = numShadowRenderers; } if(numShadowRenderers > MAX_SHADOWMAPS) { diff --git a/src/alternativa/engine3d/shadows/StaticShadowRenderer.as b/src/alternativa/engine3d/shadows/StaticShadowRenderer.as index c4c616e..310e9f9 100644 --- a/src/alternativa/engine3d/shadows/StaticShadowRenderer.as +++ b/src/alternativa/engine3d/shadows/StaticShadowRenderer.as @@ -44,23 +44,23 @@ package alternativa.engine3d.shadows private var partSize:Number; - private var §_-f7§:Vector.> = new Vector.>(); + private var var_162:Vector.> = new Vector.>(); - private var §_-md§:Vector.> = new Vector.>(); + private var var_166:Vector.> = new Vector.>(); private var light:DirectionalLight; - private var §_-65§:Transform3D = new Transform3D(); + private var var_168:Transform3D = new Transform3D(); - private var §_-1a§:Boolean = false; + private var var_167:Boolean = false; - private var §_-4u§:Object3D; + private var var_163:Object3D; - private var §_-Mf§:Dictionary = new Dictionary(); + private var var_165:Dictionary = new Dictionary(); - private var §_-M§:Number = 0; + private var var_164:Number = 0; - private var §_-bD§:Matrix3D = new Matrix3D(); + private var var_169:Matrix3D = new Matrix3D(); private var rawData:Vector. = new Vector.(16); @@ -69,7 +69,7 @@ package alternativa.engine3d.shadows super(); this.context = context; this.partSize = partSize; - this.§_-M§ = pcfSize; + this.var_164 = pcfSize; constants[3] = 1 - this.alpha; } @@ -266,32 +266,32 @@ package alternativa.engine3d.shadows public function addReciever(object:Object3D) : void { - this.§_-Mf§[object] = true; + this.var_165[object] = true; } public function removeReciever(object:Object3D) : void { - delete this.§_-Mf§[object]; + delete this.var_165[object]; } public function dispose() : void { var textures:Vector. = null; var texture:Texture = null; - for each(textures in this.§_-f7§) + for each(textures in this.var_162) { for each(texture in textures) { texture.dispose(); } } - this.§_-f7§.length = 0; - this.§_-md§.length = 0; + this.var_162.length = 0; + this.var_166.length = 0; } override alternativa3d function cullReciever(boundBox:BoundBox, object:Object3D) : Boolean { - return this.§_-Mf§[object]; + return this.var_165[object]; } public function calculateShadows(object:Object3D, light:DirectionalLight, widthPartsCount:int = 1, heightPartsCount:int = 1, overlap:Number = 0) : void @@ -327,7 +327,7 @@ package alternativa.engine3d.shadows } light.alternativa3d::globalToLocalTransform.copy(light.alternativa3d::localToGlobalTransform); light.alternativa3d::globalToLocalTransform.invert(); - this.§_-65§.copy(light.alternativa3d::globalToLocalTransform); + this.var_168.copy(light.alternativa3d::globalToLocalTransform); object.alternativa3d::localToCameraTransform.append(light.alternativa3d::globalToLocalTransform); this.bounds.reset(); alternativa3d::calculateBoundBox(this.bounds,object); @@ -340,10 +340,10 @@ package alternativa.engine3d.shadows var halfOverlap:Number = overlap * 0.5; var partWorldWidth:Number = (frustumMaxX - frustumMinX) / widthPartsCount; var partWorldHeight:Number = (frustumMaxY - frustumMinY) / heightPartsCount; - this.§_-4u§ = new Object3D(); - if(this.§_-1a§) + this.var_163 = new Object3D(); + if(this.var_167) { - light.addChild(this.§_-4u§); + light.addChild(this.var_163); } for(var xIndex:int = 0; xIndex < widthPartsCount; ) { @@ -382,34 +382,34 @@ package alternativa.engine3d.shadows height = partWorldHeight + overlap; } uvMatrix = new Matrix3D(); - this.calculateShadowMapProjection(this.§_-bD§,uvMatrix,leftX,leftY,frustumMinZ,leftX + width,leftY + height,frustumMaxZ); + this.calculateShadowMapProjection(this.var_169,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); cleanContext(this.context); - DirectionalShadowRenderer.alternativa3d::drawObjectToShadowMap(this.context,object,light,this.§_-bD§); + DirectionalShadowRenderer.alternativa3d::drawObjectToShadowMap(this.context,object,light,this.var_169); cleanContext(this.context); maps.push(shadowMap); matrices.push(uvMatrix); texture = new ExternalTextureResource(null); texture.alternativa3d::_texture = shadowMap; material = new TextureMaterial(texture); - material.§_-L4§ = true; + material.var_21 = 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.§_-4u§.addChild(debugObject); + this.var_163.addChild(debugObject); } - this.§_-f7§.push(maps); - this.§_-md§.push(matrices); + this.var_162.push(maps); + this.var_166.push(matrices); xIndex++; } this.context.setRenderToBackBuffer(); - if(this.§_-M§ > 0) + if(this.var_164 > 0) { - offset = this.§_-M§ / partWorldWidth; + offset = this.var_164 / partWorldWidth; pcfOffsets = Vector.([-offset,-offset,0,1 / 4,-offset,offset,0,1,offset,-offset,0,1,offset,offset,0,1]); } } @@ -433,24 +433,24 @@ package alternativa.engine3d.shadows override public function get debug() : Boolean { - return this.§_-1a§; + return this.var_167; } override public function set debug(value:Boolean) : void { - this.§_-1a§ = value; - if(this.§_-4u§ != null) + this.var_167 = value; + if(this.var_163 != null) { if(value) { if(this.light != null) { - this.light.addChild(this.§_-4u§); + this.light.addChild(this.var_163); } } - else if(this.§_-4u§.alternativa3d::_parent != null) + else if(this.var_163.alternativa3d::_parent != null) { - this.§_-4u§.alternativa3d::removeFromParent(); + this.var_163.alternativa3d::removeFromParent(); } } } @@ -462,23 +462,23 @@ package alternativa.engine3d.shadows override public function getFShader(index:int = 0) : Procedure { - return initFShader(false,this.§_-M§ > 0,index); + return initFShader(false,this.var_164 > 0,index); } override public function getFIntensityShader() : Procedure { - return initFShader(false,this.§_-M§ > 0,0,true); + return initFShader(false,this.var_164 > 0,0,true); } 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.§_-65§); + objectToShadowMap.append(this.var_168); 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.§_-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 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_166[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]; @@ -488,7 +488,7 @@ package alternativa.engine3d.shadows objectToUVMap.transpose(); drawUnit.alternativa3d::setVertexConstantsFromVector(program.vertexShader.getVariableIndex("cTOSHADOW"),objectToUVMap.rawData,4); drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cConstants"),constants,1); - if(this.§_-M§ > 0) + if(this.var_164 > 0) { drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cPCF0"),pcfOffsets,pcfOffsets.length >> 2); } diff --git a/src/alternativa/osgi/bundle/BundleDescriptor.as b/src/alternativa/osgi/bundle/BundleDescriptor.as index 46cb70d..f03f6a8 100644 --- a/src/alternativa/osgi/bundle/BundleDescriptor.as +++ b/src/alternativa/osgi/bundle/BundleDescriptor.as @@ -13,9 +13,9 @@ package alternativa.osgi.bundle private var _name:String; - private var §_-lF§:Vector.; + private var var_566:Vector.; - private var §_-7V§:Properties; + private var var_567:Properties; public function BundleDescriptor(properties:Properties) { @@ -23,7 +23,7 @@ package alternativa.osgi.bundle var isActivatorExists:Boolean = false; var activatorClass:Class = null; super(); - this.§_-7V§ = properties || new Properties(); + this.var_567 = properties || new Properties(); this._name = properties.getProperty("Bundle-Name"); clientLog.log(LOG_CHANNEL,"BundleDescriptor: Bundle name: %1",this._name); var activatorClassNames:Array = [properties.getProperty("Bundle-Activator")]; @@ -31,14 +31,14 @@ package alternativa.osgi.bundle { activatorClassNames.push(this._name.toLowerCase() + ".Activator"); } - this.§_-lF§ = new Vector.(); + this.var_566 = new Vector.(); for each(activatorClassName in activatorClassNames) { isActivatorExists = Boolean(ApplicationDomain.currentDomain.hasDefinition(activatorClassName)); if(isActivatorExists) { activatorClass = Class(ApplicationDomain.currentDomain.getDefinition(activatorClassName)); - this.§_-lF§.push(IBundleActivator(new activatorClass())); + this.var_566.push(IBundleActivator(new activatorClass())); clientLog.log(LOG_CHANNEL,"BundleDescriptor: Activator has been created: %1",activatorClassName); } else @@ -55,12 +55,12 @@ package alternativa.osgi.bundle public function get activators() : Vector. { - return this.§_-lF§; + return this.var_566; } public function get properties() : Properties { - return this.§_-7V§; + return this.var_567; } } } diff --git a/src/alternativa/osgi/service/console/Console.as b/src/alternativa/osgi/service/console/Console.as index 4b9dd10..53f15ac 100644 --- a/src/alternativa/osgi/service/console/Console.as +++ b/src/alternativa/osgi/service/console/Console.as @@ -36,49 +36,49 @@ package alternativa.osgi.service.console private var container:Sprite = new Sprite(); - private var §_-mB§:Sprite; + private var var_538:Sprite; private var input:TextField; - private var §_-2O§:Vector. = new Vector.(); + private var var_531:Vector. = new Vector.(); - private var §_-V8§:int; + private var var_546:int; - private var §_-k3§:int; + private var var_543:int; - private var §_-5f§:int = 0; + private var var_545:int = 0; - private var §_-Y3§:Boolean; + private var var_544:Boolean; private var visible:Boolean; - private var §_-Fe§:Array = []; + private var var_533:Array = []; - private var §_-hY§:int = 0; + private var var_532:int = 0; - private var §_-Pl§:Object = {}; + private var var_540:Object = {}; - private var §_-I9§:Object = {}; + private var var_536:Object = {}; - private var §_-HF§:int; + private var var_529:int; - private var §_-6U§:int; + private var var_541:int; - private var §_-gO§:int; + private var var_530:int; private var buffer:ICircularStringBuffer; - private var §_-Nl§:int; + private var var_535:int; - private var §_-Gl§:int; + private var var_534:int; private var align:int; - private var §_-0P§:uint = 16777215; + private var var_539:uint = 16777215; - private var §_-Su§:uint = 0; + private var var_537:uint = 0; - private var §_-S9§:Number = 1; + private var var_542:Number = 1; private var filter:String; @@ -113,12 +113,12 @@ package alternativa.osgi.service.console public function addVariable(variable:ConsoleVar) : void { - this.§_-I9§[variable.getName()] = variable; + this.var_536[variable.getName()] = variable; } public function removeVariable(variableName:String) : void { - delete this.§_-I9§[variableName]; + delete this.var_536[variableName]; } public function set horizontalAlignment(value:int) : void @@ -147,7 +147,7 @@ package alternativa.osgi.service.console public function addText(text:String) : void { - var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; + var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; var linesAdded:int = this.addLine(text); if(needScroll) { @@ -157,7 +157,7 @@ package alternativa.osgi.service.console public function addPrefixedText(prefix:String, text:String) : void { - var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; + var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; var linesAdded:int = this.addPrefixedLine(prefix,text); if(needScroll) { @@ -169,7 +169,7 @@ package alternativa.osgi.service.console { var linesAdded:int = 0; var line:String = null; - var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; + var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; for each(line in lines) { linesAdded += this.addLine(line); @@ -184,7 +184,7 @@ package alternativa.osgi.service.console { var linesAdded:int = 0; var line:String = null; - var needScroll:Boolean = this.buffer.size - this.§_-gO§ <= this.§_-HF§; + var needScroll:Boolean = this.buffer.size - this.var_530 <= this.var_529; for each(line in lines) { linesAdded += this.addPrefixedLine(prefix,line); @@ -231,34 +231,34 @@ package alternativa.osgi.service.console { widthPercent = this.clamp(widthPercent,1,100); heightPercent = this.clamp(heightPercent,1,100); - if(widthPercent == this.§_-Nl§ && heightPercent == this.§_-Gl§) + if(widthPercent == this.var_535 && heightPercent == this.var_534) { return; } - this.§_-Nl§ = widthPercent; - this.§_-Gl§ = heightPercent; + this.var_535 = widthPercent; + this.var_534 = heightPercent; this.updateSize(); this.updateAlignment(); } public function set width(widthPercent:int) : void { - this.setSize(widthPercent,this.§_-Gl§); + this.setSize(widthPercent,this.var_534); } public function get width() : int { - return this.§_-Nl§; + return this.var_535; } public function set height(heightPercent:int) : void { - this.setSize(this.§_-Nl§,heightPercent); + this.setSize(this.var_535,heightPercent); } public function get height() : int { - return this.§_-Gl§; + return this.var_534; } public function setCommandHandler(commandName:String, handler:Function) : void @@ -271,7 +271,7 @@ package alternativa.osgi.service.console { throw new ArgumentError("Handler is null"); } - this.§_-Pl§[commandName] = handler; + this.var_540[commandName] = handler; } public function removeCommandHandler(commandName:String) : void @@ -280,7 +280,7 @@ package alternativa.osgi.service.console { throw new ArgumentError("Command name is null or empty"); } - delete this.§_-Pl§[commandName]; + delete this.var_540[commandName]; } public function hideDelayed(delay:uint) : void @@ -295,22 +295,22 @@ package alternativa.osgi.service.console { return; } - var len:int = int(this.§_-Fe§.length); - if(len == 0 || this.§_-Fe§[len - 1] != text) + var len:int = int(this.var_533.length); + if(len == 0 || this.var_533[len - 1] != text) { - this.§_-Fe§.push(text); + this.var_533.push(text); } - this.§_-hY§ = len + 1; + this.var_532 = len + 1; var tokens:Array = text.match(TOKENIZER); var commandName:String = tokens.shift(); - var variable:ConsoleVar = this.§_-I9§[commandName]; + var variable:ConsoleVar = this.var_536[commandName]; if(variable != null) { variable.processConsoleInput(this,tokens); } else { - _loc6_ = this.§_-Pl§[commandName]; + _loc6_ = this.var_540[commandName]; if(_loc6_ != null) { _loc6_.call(null,this,tokens); @@ -320,13 +320,13 @@ package alternativa.osgi.service.console public function set alpha(value:Number) : void { - this.§_-S9§ = value; + this.var_542 = value; this.updateSize(); } public function get alpha() : Number { - return this.§_-S9§; + return this.var_542; } 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.§_-V8§ = tf.textWidth; - this.§_-k3§ = tf.textHeight + 4; + this.var_546 = tf.textWidth; + this.var_543 = tf.textHeight + 4; stage.removeChild(tf); } @@ -358,38 +358,38 @@ package alternativa.osgi.service.console private function initOutput() : void { - this.§_-mB§ = new Sprite(); - this.§_-mB§.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); - this.container.addChild(this.§_-mB§); + this.var_538 = new Sprite(); + this.var_538.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); + this.container.addChild(this.var_538); } private function resizeOutput(w:int, h:int) : void { - this.§_-HF§ = h / (this.§_-k3§ + this.§_-5f§); - this.§_-6U§ = w / this.§_-V8§ - 1; + this.var_529 = h / (this.var_543 + this.var_545); + this.var_541 = w / this.var_546 - 1; this.updateTextFields(w); this.scrollOutput(0); - var g:Graphics = this.§_-mB§.graphics; + var g:Graphics = this.var_538.graphics; g.clear(); - g.beginFill(this.§_-0P§,this.§_-S9§); + g.beginFill(this.var_539,this.var_542); g.drawRect(0,0,w,h); g.endFill(); } private function updateTextFields(w:int) : void { - for(var tf:TextField = null; this.§_-2O§.length > this.§_-HF§; ) + for(var tf:TextField = null; this.var_531.length > this.var_529; ) { - this.§_-mB§.removeChild(this.§_-2O§.pop()); + this.var_538.removeChild(this.var_531.pop()); } - while(this.§_-2O§.length < this.§_-HF§) + while(this.var_531.length < this.var_529) { this.createTextField(); } - var lineHeight:int = this.§_-k3§ + this.§_-5f§; - for(var i:int = 0; i < this.§_-2O§.length; i++) + var lineHeight:int = this.var_543 + this.var_545; + for(var i:int = 0; i < this.var_531.length; i++) { - tf = this.§_-2O§[i]; + tf = this.var_531[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.§_-k3§; + tf.height = this.var_543; tf.defaultTextFormat = DEFAULT_TEXT_FORMAT; tf.tabEnabled = false; tf.selectable = true; - this.§_-mB§.addChild(tf); - this.§_-2O§.push(tf); + this.var_538.addChild(tf); + this.var_531.push(tf); } private function scrollOutput(delta:int) : void { - this.§_-gO§ += delta; - if(this.§_-gO§ + this.§_-HF§ > this.buffer.size) + this.var_530 += delta; + if(this.var_530 + this.var_529 > this.buffer.size) { - this.§_-gO§ = this.buffer.size - this.§_-HF§; + this.var_530 = this.buffer.size - this.var_529; } - if(this.§_-gO§ < 0) + if(this.var_530 < 0) { - this.§_-gO§ = 0; + this.var_530 = 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.getIterator(this.§_-gO§); - while(pageLineIndex < this.§_-HF§ && Boolean(iterator.hasNext())) + var iterator:IStringBufferIterator = this.buffer.getIterator(this.var_530); + while(pageLineIndex < this.var_529 && Boolean(iterator.hasNext())) { - TextField(this.§_-2O§[pageLineIndex++]).text = iterator.getNext(); + TextField(this.var_531[pageLineIndex++]).text = iterator.getNext(); } - while(pageLineIndex < this.§_-HF§) + while(pageLineIndex < this.var_529) { - TextField(this.§_-2O§[pageLineIndex++]).text = ""; + TextField(this.var_531[pageLineIndex++]).text = ""; } } @@ -446,7 +446,7 @@ package alternativa.osgi.service.console { if(this.isToggleKey(e)) { - this.§_-Y3§ = true; + this.var_544 = true; } switch(e.keyCode) { @@ -468,10 +468,10 @@ package alternativa.osgi.service.console this.historyDown(); break; case Keyboard.PAGE_UP: - this.scrollOutput(-this.§_-HF§); + this.scrollOutput(-this.var_529); break; case Keyboard.PAGE_DOWN: - this.scrollOutput(this.§_-HF§); + this.scrollOutput(this.var_529); } e.stopPropagation(); } @@ -486,10 +486,10 @@ package alternativa.osgi.service.console private function onTextInput(e:TextEvent) : void { - if(this.§_-Y3§) + if(this.var_544) { e.preventDefault(); - this.§_-Y3§ = false; + this.var_544 = false; } } @@ -509,26 +509,26 @@ package alternativa.osgi.service.console private function historyUp() : void { - if(this.§_-hY§ == 0) + if(this.var_532 == 0) { return; } - --this.§_-hY§; - var command:String = this.§_-Fe§[this.§_-hY§]; + --this.var_532; + var command:String = this.var_533[this.var_532]; this.input.text = command == null ? "" : command; } private function historyDown() : void { - ++this.§_-hY§; - if(this.§_-hY§ >= this.§_-Fe§.length) + ++this.var_532; + if(this.var_532 >= this.var_533.length) { - this.§_-hY§ = this.§_-Fe§.length; + this.var_532 = this.var_533.length; this.input.text = ""; } else { - this.input.text = this.§_-Fe§[this.§_-hY§]; + this.input.text = this.var_533[this.var_532]; } } @@ -565,9 +565,9 @@ package alternativa.osgi.service.console { for(i = 0; i < line.length; ) { - this.buffer.add(line.substr(i,this.§_-6U§)); + this.buffer.add(line.substr(i,this.var_541)); linesAdded++; - i += this.§_-6U§; + i += this.var_541; } } } @@ -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.§_-6U§ - prefix.length; + var effectiveLineWidth:int = this.var_541 - 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.§_-Gl§ * this.stage.stageHeight; - var pixelWidth:int = 0.01 * this.§_-Nl§ * this.stage.stageWidth; + var pixelHeight:int = 0.01 * this.var_534 * this.stage.stageHeight; + var pixelWidth:int = 0.01 * this.var_535 * this.stage.stageWidth; var outputHeight:int = pixelHeight - INPUT_HEIGHT; this.resizeOutput(pixelWidth,outputHeight); this.input.y = outputHeight; @@ -679,7 +679,7 @@ package alternativa.osgi.service.console { var commandName:String = null; var list:Array = []; - for(commandName in this.§_-Pl§) + for(commandName in this.var_540) { list.push(commandName); } @@ -718,11 +718,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.addText("Width=" + this.§_-Nl§); + this.addText("Width=" + this.var_535); } else { - this.setSize(int(params[0]),this.§_-Gl§); + this.setSize(int(params[0]),this.var_534); } } @@ -730,11 +730,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.addText("Height=" + this.§_-Gl§); + this.addText("Height=" + this.var_534); } else { - this.setSize(this.§_-Nl§,int(params[0])); + this.setSize(this.var_535,int(params[0])); } } @@ -742,7 +742,7 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.addText("Alpha=" + this.§_-S9§); + this.addText("Alpha=" + this.var_542); } else { @@ -754,14 +754,14 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.addText("Background color = " + this.§_-0P§); + this.addText("Background color = " + this.var_539); } else { - this.§_-0P§ = uint(params[0]); + this.var_539 = uint(params[0]); this.updateSize(); - this.input.backgroundColor = this.§_-0P§; - this.addText("Background color set to " + this.§_-0P§); + this.input.backgroundColor = this.var_539; + this.addText("Background color set to " + this.var_539); } } @@ -770,20 +770,20 @@ package alternativa.osgi.service.console var _loc3_:TextField = null; if(params.length == 0) { - this.addText("Foreground color = " + this.§_-Su§); + this.addText("Foreground color = " + this.var_537); } else { - this.§_-Su§ = uint(params[0]); - DEFAULT_TEXT_FORMAT.color = this.§_-Su§; - this.input.textColor = this.§_-Su§; + this.var_537 = uint(params[0]); + DEFAULT_TEXT_FORMAT.color = this.var_537; + this.input.textColor = this.var_537; this.input.defaultTextFormat = DEFAULT_TEXT_FORMAT; - for each(_loc3_ in this.§_-2O§) + for each(_loc3_ in this.var_531) { - _loc3_.textColor = this.§_-Su§; + _loc3_.textColor = this.var_537; _loc3_.defaultTextFormat = DEFAULT_TEXT_FORMAT; } - this.addText("Foreground color set to " + this.§_-Su§); + this.addText("Foreground color set to " + this.var_537); } } @@ -816,11 +816,11 @@ package alternativa.osgi.service.console var variable:ConsoleVar = null; var s:String = null; var vars:Array = []; - for(name in this.§_-I9§) + for(name in this.var_536) { if(start == null || start == "" || name.indexOf(start) == 0) { - variable = this.§_-I9§[name]; + variable = this.var_536[name]; vars.push(showValues ? name + " = " + variable.toString() : name); } } diff --git a/src/alternativa/osgi/service/display/Display.as b/src/alternativa/osgi/service/display/Display.as index 0a22f91..f8c8689 100644 --- a/src/alternativa/osgi/service/display/Display.as +++ b/src/alternativa/osgi/service/display/Display.as @@ -6,39 +6,39 @@ package alternativa.osgi.service.display public class Display implements IDisplay { - private var §_-We§:Stage; + private var var_43:Stage; - private var §_-j§:DisplayObjectContainer; + private var var_557:DisplayObjectContainer; - private var §finally§:DisplayObjectContainer; + private var var_565:DisplayObjectContainer; - private var §_-TJ§:DisplayObjectContainer; + private var var_563:DisplayObjectContainer; - private var §_-6o§:DisplayObjectContainer; + private var var_559:DisplayObjectContainer; - private var §_-Xl§:DisplayObjectContainer; + private var var_564:DisplayObjectContainer; - private var §_-Ha§:DisplayObjectContainer; + private var var_560:DisplayObjectContainer; - private var §_-5X§:DisplayObjectContainer; + private var var_558:DisplayObjectContainer; - private var §_-Qq§:DisplayObjectContainer; + private var var_562:DisplayObjectContainer; - private var §_-Ow§:DisplayObjectContainer; + private var var_561: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(); + this.var_43 = rootContainer.stage; + this.var_557 = rootContainer; + this.var_565 = this.addLayerSprite(); + this.var_563 = this.addLayerSprite(); + this.var_559 = this.addLayerSprite(); + this.var_564 = this.addLayerSprite(); + this.var_560 = this.addLayerSprite(); + this.var_558 = this.addLayerSprite(); + this.var_562 = this.addLayerSprite(); + this.var_561 = this.addLayerSprite(); } private function addLayerSprite() : Sprite @@ -46,58 +46,58 @@ package alternativa.osgi.service.display var sprite:Sprite = new Sprite(); sprite.mouseEnabled = false; sprite.tabEnabled = false; - this.§_-j§.addChild(sprite); + this.var_557.addChild(sprite); return sprite; } public function get stage() : Stage { - return this.§_-We§; + return this.var_43; } public function get mainContainer() : DisplayObjectContainer { - return this.§_-j§; + return this.var_557; } public function get backgroundLayer() : DisplayObjectContainer { - return this.§finally§; + return this.var_565; } public function get contentLayer() : DisplayObjectContainer { - return this.§_-TJ§; + return this.var_563; } public function get contentUILayer() : DisplayObjectContainer { - return this.§_-6o§; + return this.var_559; } public function get systemLayer() : DisplayObjectContainer { - return this.§_-Xl§; + return this.var_564; } public function get systemUILayer() : DisplayObjectContainer { - return this.§_-Ha§; + return this.var_560; } public function get dialogsLayer() : DisplayObjectContainer { - return this.§_-5X§; + return this.var_558; } public function get noticesLayer() : DisplayObjectContainer { - return this.§_-Qq§; + return this.var_562; } public function get cursorLayer() : DisplayObjectContainer { - return this.§_-Ow§; + return this.var_561; } } } diff --git a/src/alternativa/osgi/service/dump/DumpService.as b/src/alternativa/osgi/service/dump/DumpService.as index 5d2bda3..f738c3f 100644 --- a/src/alternativa/osgi/service/dump/DumpService.as +++ b/src/alternativa/osgi/service/dump/DumpService.as @@ -8,9 +8,9 @@ package alternativa.osgi.service.dump { private var osgi:OSGi; - private var §_-gQ§:Dictionary; + private var var_548:Dictionary; - private var §_-G8§:Vector.; + private var var_547:Vector.; public function DumpService(osgi:OSGi) { @@ -18,27 +18,27 @@ package alternativa.osgi.service.dump this.osgi = osgi; var console:IConsole = IConsole(osgi.getService(IConsole)); console.setCommandHandler("dump",this.hadleConsoleCommand); - this.§_-gQ§ = new Dictionary(false); - this.§_-G8§ = new Vector.(); + this.var_548 = new Dictionary(false); + this.var_547 = new Vector.(); } public function registerDumper(dumper:IDumper) : void { - if(this.§_-gQ§[dumper.dumperName] != null) + if(this.var_548[dumper.dumperName] != null) { throw new Error("Dumper is already registered"); } - this.§_-gQ§[dumper.dumperName] = dumper; - this.§_-G8§.push(dumper); + this.var_548[dumper.dumperName] = dumper; + this.var_547.push(dumper); } public function unregisterDumper(dumperName:String) : void { - var dumper:IDumper = this.§_-gQ§[dumperName]; + var dumper:IDumper = this.var_548[dumperName]; if(dumper != null) { - this.§_-G8§.splice(this.§_-G8§.indexOf(dumper),1); - delete this.§_-gQ§[dumperName]; + this.var_547.splice(this.var_547.indexOf(dumper),1); + delete this.var_548[dumperName]; } } @@ -53,14 +53,14 @@ package alternativa.osgi.service.dump if(dumperName.match(/^\d+$/) != null) { index = int(int(dumperName)); - if(index < this.§_-G8§.length) + if(index < this.var_547.length) { - dumper = this.§_-G8§[index]; + dumper = this.var_547[index]; } } else { - dumper = this.§_-gQ§[dumperName]; + dumper = this.var_548[dumperName]; } if(dumper == null) { @@ -71,20 +71,20 @@ package alternativa.osgi.service.dump public function get dumpersByName() : Dictionary { - return this.§_-gQ§; + return this.var_548; } public function get dumpersList() : Vector. { - return this.§_-G8§; + return this.var_547; } private function getDumperList() : String { var s:String = ""; - for(var i:int = 0; i < this.§_-G8§.length; i++) + for(var i:int = 0; i < this.var_547.length; i++) { - s += i.toString() + " " + this.§_-G8§[i].dumperName + "\n"; + s += i.toString() + " " + this.var_547[i].dumperName + "\n"; } return s; } diff --git a/src/alternativa/osgi/service/launcherparams/LauncherParams.as b/src/alternativa/osgi/service/launcherparams/LauncherParams.as index d7c6419..6ac493a 100644 --- a/src/alternativa/osgi/service/launcherparams/LauncherParams.as +++ b/src/alternativa/osgi/service/launcherparams/LauncherParams.as @@ -7,13 +7,13 @@ package alternativa.osgi.service.launcherparams { private var urlParams:Properties; - private var §_-QJ§:Vector.; + private var var_553:Vector.; public function LauncherParams(urlParams:Properties, startupLibraryInfos:Vector.) { super(); this.urlParams = urlParams; - this.§_-QJ§ = startupLibraryInfos; + this.var_553 = startupLibraryInfos; } public function getParameter(parameterName:String) : String @@ -28,7 +28,7 @@ package alternativa.osgi.service.launcherparams public function get startupLibraryInfos() : Vector. { - return this.§_-QJ§; + return this.var_553; } public function get isDebug() : Boolean diff --git a/src/alternativa/osgi/service/locale/LocaleService.as b/src/alternativa/osgi/service/locale/LocaleService.as index 12b6db6..6af7e11 100644 --- a/src/alternativa/osgi/service/locale/LocaleService.as +++ b/src/alternativa/osgi/service/locale/LocaleService.as @@ -9,21 +9,21 @@ package alternativa.osgi.service.locale private var images:Object = {}; - private var §_-bK§:Object = {}; + private var var_549:Object = {}; private var numbers:Object = {}; - private var §_-op§:Object = {}; + private var var_550:Object = {}; - private var §_-VI§:String; + private var var_552:String; - private var §_-4p§:String; + private var var_551:String; public function LocaleService(language:String, defaultLanguage:String) { super(); - this.§_-VI§ = language; - this.§_-4p§ = defaultLanguage; + this.var_552 = language; + this.var_551 = defaultLanguage; this.strings = new Dictionary(); this.images = new Dictionary(); } @@ -40,7 +40,7 @@ package alternativa.osgi.service.locale public function setBoolean(id:String, value:Boolean) : void { - this.§_-bK§[id] = value; + this.var_549[id] = value; } public function setNumber(id:String, value:Number) : void @@ -50,7 +50,7 @@ package alternativa.osgi.service.locale public function setInt(id:String, value:int) : void { - this.§_-op§[id] = value; + this.var_550[id] = value; } public function getText(id:String, ... vars) : String @@ -75,7 +75,7 @@ package alternativa.osgi.service.locale public function getBoolean(id:String) : Boolean { - return this.§_-bK§[id]; + return this.var_549[id]; } public function getNumber(id:String) : Number @@ -85,17 +85,17 @@ package alternativa.osgi.service.locale public function getInt(id:String) : int { - return this.§_-op§[id]; + return this.var_550[id]; } public function get language() : String { - return this.§_-VI§; + return this.var_552; } public function get defaultLanguage() : String { - return this.§_-4p§; + return this.var_551; } } } diff --git a/src/alternativa/osgi/service/network/NetworkService.as b/src/alternativa/osgi/service/network/NetworkService.as index b0d8fe8..7d8fc7c 100644 --- a/src/alternativa/osgi/service/network/NetworkService.as +++ b/src/alternativa/osgi/service/network/NetworkService.as @@ -6,33 +6,33 @@ package alternativa.osgi.service.network { private static const SHARED_OBJECT_NAME:String = "connection"; - private var §_-oQ§:String; + private var var_556:String; - private var §_-O7§:Vector.; + private var var_555:Vector.; - private var §_-5u§:String; + private var var_554:String; public function NetworkService(controlServerAddress:String, controlServerPorts:Vector., resourcesRootUrl:String) { super(); - this.§_-oQ§ = controlServerAddress; - this.§_-O7§ = controlServerPorts; - this.§_-5u§ = resourcesRootUrl; + this.var_556 = controlServerAddress; + this.var_555 = controlServerPorts; + this.var_554 = resourcesRootUrl; } public function get controlServerAddress() : String { - return this.§_-oQ§; + return this.var_556; } public function get controlServerPorts() : Vector. { - return this.§_-O7§; + return this.var_555; } public function get resourcesRootUrl() : String { - return this.§_-5u§; + return this.var_554; } public function getLastPort(host:String) : int diff --git a/src/alternativa/physics/Body.as b/src/alternativa/physics/Body.as index 14638a1..7cf2e0a 100644 --- a/src/alternativa/physics/Body.as +++ b/src/alternativa/physics/Body.as @@ -26,15 +26,15 @@ package alternativa.physics public var scene:PhysicsScene; - public var §_-Sb§:Boolean = true; + public var var_500:Boolean = true; - public var §_-N4§:Boolean = false; + public var var_499:Boolean = false; - public var §_-ia§:int; + public var var_502:int; - public var §_-N0§:Boolean = false; + public var var_498:Boolean = false; - public var §_-fA§:Boolean = true; + public var var_501:Boolean = true; public var aabb:BoundBox = new BoundBox(); @@ -42,11 +42,11 @@ package alternativa.physics public var state:BodyState = new BodyState(); - public var §_-U3§:BodyState = new BodyState(); + public var var_492:BodyState = new BodyState(); - public var §_-1G§:Vector3 = new Vector3(); + public var var_496:Vector3 = new Vector3(); - public var §_-fR§:Vector3 = new Vector3(); + public var var_497:Vector3 = new Vector3(); public var material:BodyMaterial = new BodyMaterial(); @@ -54,15 +54,15 @@ package alternativa.physics public var invInertia:Matrix3 = new Matrix3(); - public var §_-nX§:Matrix3 = new Matrix3(); + public var var_495:Matrix3 = new Matrix3(); public var baseMatrix:Matrix3 = new Matrix3(); public var collisionPrimitives:CollisionPrimitiveList; - public var §_-iu§:Vector3 = new Vector3(); + public var var_494:Vector3 = new Vector3(); - public var §_-Xr§:Vector3 = new Vector3(); + public var var_493:Vector3 = new Vector3(); public var data:Object; @@ -105,36 +105,36 @@ package alternativa.physics { 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; + 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 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); + 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.slerp(this.var_492.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; + 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); } @@ -142,10 +142,10 @@ package alternativa.physics 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); + 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.slerp(this.var_492.orientation,this.state.orientation,t); _q.normalize(); _q.toMatrix4(m); } @@ -201,42 +201,42 @@ package alternativa.physics 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; + 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 addForce(f:Vector3) : void { - this.§_-iu§.add(f); + this.var_494.add(f); } public function addForceXYZ(fx:Number, fy:Number, fz:Number) : void { - this.§_-iu§.x += fx; - this.§_-iu§.y += fy; - this.§_-iu§.z += fz; + this.var_494.x += fx; + this.var_494.y += fy; + this.var_494.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; + this.var_494.x += fx; + this.var_494.y += fy; + this.var_494.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; + 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 addWorldForce(pos:Vector3, force:Vector3) : void { - this.§_-iu§.add(force); - this.§_-Xr§.add(_r.diff(pos,this.state.position).cross(force)); + this.var_494.add(force); + this.var_493.add(_r.diff(pos,this.state.position).cross(force)); } public function addWorldForceScaled(pos:Vector3, force:Vector3, scale:Number) : void @@ -244,44 +244,44 @@ package alternativa.physics _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)); + this.var_494.add(_f); + this.var_493.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)); + this.var_494.add(_f); + this.var_493.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)); + this.var_494.add(worldForce); + this.var_493.add(_r.cross(worldForce)); } public function addTorque(t:Vector3) : void { - this.§_-Xr§.add(t); + this.var_493.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; + 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 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; + this.var_496.x = this.var_494.x * this.invMass; + this.var_496.y = this.var_494.y * this.invMass; + this.var_496.z = this.var_494.z * this.invMass; + this.var_497.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_497.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_497.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 calcDerivedData() : void @@ -289,10 +289,10 @@ package alternativa.physics 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); + this.var_495.copy(this.invInertia).append(this.baseMatrix).prependTransposed(this.baseMatrix); if(this.collisionPrimitives != null) { - this.aabb.§_-GT§(); + this.aabb.name_426(); for(item = this.collisionPrimitives.head; item != null; ) { primitive = item.primitive; @@ -302,7 +302,7 @@ package alternativa.physics primitive.transform.prepend(primitive.localTransform); } primitive.calculateAABB(); - this.aabb.§_-EH§(primitive.aabb); + this.aabb.name_424(primitive.aabb); item = item.next; } } @@ -310,22 +310,22 @@ package alternativa.physics public function saveState() : void { - this.§_-U3§.copy(this.state); + this.var_492.copy(this.state); } internal function restoreState() : void { - this.state.copy(this.§_-U3§); + this.state.copy(this.var_492); } 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 += this.var_496.x * dt; + this.state.velocity.y += this.var_496.y * dt; + this.state.velocity.z += this.var_496.z * dt; + this.state.rotation.x += this.var_497.x * dt; + this.state.rotation.y += this.var_497.y * dt; + this.state.rotation.z += this.var_497.z * dt; this.state.velocity.x *= linDamping; this.state.velocity.y *= linDamping; this.state.velocity.z *= linDamping; diff --git a/src/alternativa/physics/BodyMaterial.as b/src/alternativa/physics/BodyMaterial.as index c5d8567..31e8aa2 100644 --- a/src/alternativa/physics/BodyMaterial.as +++ b/src/alternativa/physics/BodyMaterial.as @@ -2,9 +2,9 @@ package alternativa.physics { public class BodyMaterial { - public var §_-Pe§:Number = 0; + public var name_501:Number = 0; - public var §_-J1§:Number = 0.3; + public var name_422:Number = 0.3; public function BodyMaterial() { diff --git a/src/alternativa/physics/Contact.as b/src/alternativa/physics/Contact.as index 83186b6..0a1a516 100644 --- a/src/alternativa/physics/Contact.as +++ b/src/alternativa/physics/Contact.as @@ -8,32 +8,32 @@ package alternativa.physics public var body2:Body; - public var §_-Pe§:Number; + public var name_501:Number; - public var §_-J1§:Number; + public var name_422:Number; public var normal:Vector3 = new Vector3(); public var points:Vector.; - public var §_-P3§:int; + public var name_506:int; - public var §_-HA§:Number = 0; + public var var_663:Number = 0; - public var §_-CV§:Boolean; + public var name_507:Boolean; public var next:Contact; public var index:int; - private const §_-29§:int = 8; + private const const_3:int = 8; public function Contact(index:int) { - this.points = new Vector.(this.§_-29§,true); + this.points = new Vector.(this.const_3,true); super(); this.index = index; - for(var i:int = 0; i < this.§_-29§; i++) + for(var i:int = 0; i < this.const_3; i++) { this.points[i] = new ContactPoint(); } diff --git a/src/alternativa/physics/ContactPoint.as b/src/alternativa/physics/ContactPoint.as index d888352..414d49e 100644 --- a/src/alternativa/physics/ContactPoint.as +++ b/src/alternativa/physics/ContactPoint.as @@ -12,11 +12,11 @@ package alternativa.physics public var feature2:int; - public var §_-0C§:Number; + public var name_503:Number; - public var §_-A-§:Number; + public var name_505:Number; - public var §_-DS§:Number; + public var name_502:Number; public var angularInertia1:Number; @@ -26,9 +26,9 @@ package alternativa.physics public var r2:Vector3 = new Vector3(); - public var §_-Dv§:Number; + public var name_504:Number; - public var §_-CV§:Boolean; + public var name_507:Boolean; public function ContactPoint() { diff --git a/src/alternativa/physics/PhysicsScene.as b/src/alternativa/physics/PhysicsScene.as index 20a65b6..2999baa 100644 --- a/src/alternativa/physics/PhysicsScene.as +++ b/src/alternativa/physics/PhysicsScene.as @@ -3,54 +3,54 @@ package alternativa.physics import alternativa.math.Matrix3; import alternativa.math.Vector3; import alternativa.physics.collision.ICollisionDetector; - import alternativa.physics.collision.§_-LG§; + import alternativa.physics.collision.name_508; import alternativa.physics.constraints.Constraint; public class PhysicsScene { private static var lastBodyId:int; - public const §_-ga§:int = 1000; + public const const_2:int = 1000; - public var §_-kv§:int = 10; + public var var_608:int = 10; - public var §_-YB§:Number = 0.1; + public var name_360:Number = 0.1; - public var dynamic:Number = 0.5; + public var name_365:Number = 0.5; - public var §_-Yi§:int = 5; + public var var_605:int = 5; - public var §_-2I§:int = 5; + public var var_602:int = 5; - public var §_-06§:Boolean = false; + public var name_366:Boolean = false; - public var §_-Y6§:int = 10; + public var var_604:int = 10; - public var §_-cc§:Number = 1; + public var var_606:Number = 1; - public var §_-GG§:Number = 0.01; + public var var_603:Number = 0.01; - public var §_-MX§:Vector3 = new Vector3(0,0,-9.8); + public var name_403:Vector3 = new Vector3(0,0,-9.8); - public var §_-fz§:Number = 9.8; + public var var_607:Number = 9.8; public var collisionDetector:ICollisionDetector; - public var §_-By§:BodyList = new BodyList(); + public var name_438:BodyList = new BodyList(); public var contacts:Contact; - public var §_-7e§:Vector. = new Vector.(); + public var var_599:Vector. = new Vector.(); - public var §_-0v§:int; + public var var_598:int; - public var §_-hA§:int; + public var var_601:int; public var time:int; - private var §_-lh§:Contact; + private var var_600:Contact; - private var §_-MN§:Vector3 = new Vector3(); + private var var_597:Vector3 = new Vector3(); private var _v:Vector3 = new Vector3(); @@ -59,35 +59,35 @@ package alternativa.physics super(); this.contacts = new Contact(0); var contact:Contact = this.contacts; - for(var i:int = 1; i < this.§_-ga§; i++) + for(var i:int = 1; i < this.const_2; i++) { contact.next = new Contact(i); contact = contact.next; } - this.collisionDetector = new §_-LG§(); + this.collisionDetector = new name_508(); } public function get gravity() : Vector3 { - return this.§_-MX§.clone(); + return this.name_403.clone(); } public function set gravity(value:Vector3) : void { - this.§_-MX§.copy(value); - this.§_-fz§ = this.§_-MX§.length(); + this.name_403.copy(value); + this.var_607 = this.name_403.length(); } public function addBody(body:Body) : void { body.id = lastBodyId++; body.scene = this; - this.§_-By§.append(body); + this.name_438.append(body); } public function removeBody(body:Body) : void { - if(this.§_-By§.remove(body)) + if(this.name_438.remove(body)) { body.scene = null; } @@ -95,20 +95,20 @@ package alternativa.physics public function addConstraint(c:Constraint) : void { - var _loc2_:* = this.§_-0v§++; - this.§_-7e§[_loc2_] = c; + var _loc2_:* = this.var_598++; + this.var_599[_loc2_] = c; c.world = this; } public function removeConstraint(c:Constraint) : Boolean { - var idx:int = int(this.§_-7e§.indexOf(c)); + var idx:int = int(this.var_599.indexOf(c)); if(idx < 0) { return false; } - this.§_-7e§.splice(idx,1); - --this.§_-0v§; + this.var_599.splice(idx,1); + --this.var_598; c.world = null; return true; } @@ -116,15 +116,15 @@ package alternativa.physics private function applyForces(dt:Number) : void { var body:Body = null; - for(var item:BodyListItem = this.§_-By§.head; item != null; ) + for(var item:BodyListItem = this.name_438.head; item != null; ) { body = item.body; body.calcAccelerations(); - if(body.§_-fA§ && body.§_-Sb§ && !body.§_-N0§) + if(body.var_501 && body.var_500 && !body.var_498) { - body.§_-1G§.x += this.§_-MX§.x; - body.§_-1G§.y += this.§_-MX§.y; - body.§_-1G§.z += this.§_-MX§.z; + body.var_496.x += this.name_403.x; + body.var_496.y += this.name_403.y; + body.var_496.z += this.name_403.z; } item = item.next; } @@ -138,13 +138,13 @@ package alternativa.physics var j:int = 0; var cp:ContactPoint = null; var bPos:Vector3 = null; - for(var item:BodyListItem = this.§_-By§.head; item != null; ) + for(var item:BodyListItem = this.name_438.head; item != null; ) { body = item.body; - if(!body.§_-N0§) + if(!body.var_498) { body.saveState(); - if(this.§_-06§) + if(this.name_366) { body.integrateVelocity(dt); body.integratePosition(dt); @@ -153,12 +153,12 @@ package alternativa.physics } item = item.next; } - this.§_-lh§ = this.collisionDetector.getAllContacts(this.contacts); - for(var contact:Contact = this.contacts; contact != this.§_-lh§; ) + this.var_600 = this.collisionDetector.getAllContacts(this.contacts); + for(var contact:Contact = this.contacts; contact != this.var_600; ) { b1 = contact.body1; b2 = contact.body2; - for(j = 0; j < contact.§_-P3§; ) + for(j = 0; j < contact.name_506; ) { cp = contact.points[j]; bPos = b1.state.position; @@ -176,12 +176,12 @@ package alternativa.physics } contact = contact.next; } - if(this.§_-06§) + if(this.name_366) { - for(item = this.§_-By§.head; item != null; ) + for(item = this.name_438.head; item != null; ) { body = item.body; - if(!body.§_-N0§) + if(!body.var_498) { body.restoreState(); body.calcDerivedData(); @@ -198,63 +198,63 @@ package alternativa.physics var j:int = 0; var cp:ContactPoint = null; var constraint:Constraint = null; - for(var contact:Contact = this.contacts; contact != this.§_-lh§; ) + for(var contact:Contact = this.contacts; contact != this.var_600; ) { b1 = contact.body1; b2 = contact.body2; - if(b1.§_-N0§) + if(b1.var_498) { - b1.§_-N0§ = false; - b1.§_-ia§ = 0; + b1.var_498 = false; + b1.var_502 = 0; } - if(b2 != null && b2.§_-N0§) + if(b2 != null && b2.var_498) { - b2.§_-N0§ = false; - b2.§_-ia§ = 0; + b2.var_498 = false; + b2.var_502 = 0; } - contact.§_-Pe§ = b1.material.§_-Pe§; - if(b2 != null && b2.material.§_-Pe§ < contact.§_-Pe§) + contact.name_501 = b1.material.name_501; + if(b2 != null && b2.material.name_501 < contact.name_501) { - contact.§_-Pe§ = b2.material.§_-Pe§; + contact.name_501 = b2.material.name_501; } - contact.§_-J1§ = b1.material.§_-J1§; - if(b2 != null && b2.material.§_-J1§ < contact.§_-J1§) + contact.name_422 = b1.material.name_422; + if(b2 != null && b2.material.name_422 < contact.name_422) { - contact.§_-J1§ = b2.material.§_-J1§; + contact.name_422 = b2.material.name_422; } - for(j = 0; j < contact.§_-P3§; ) + for(j = 0; j < contact.name_506; ) { cp = contact.points[j]; - cp.§_-Dv§ = 0; - cp.§_-DS§ = 0; - if(b1.§_-Sb§) + cp.name_504 = 0; + cp.name_502 = 0; + if(b1.var_500) { - cp.angularInertia1 = this._v.cross2(cp.r1,contact.normal).transform3(b1.§_-nX§).cross(cp.r1).dot(contact.normal); - cp.§_-DS§ += b1.invMass + cp.angularInertia1; + cp.angularInertia1 = this._v.cross2(cp.r1,contact.normal).transform3(b1.var_495).cross(cp.r1).dot(contact.normal); + cp.name_502 += b1.invMass + cp.angularInertia1; } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.var_500) { - cp.angularInertia2 = this._v.cross2(cp.r2,contact.normal).transform3(b2.§_-nX§).cross(cp.r2).dot(contact.normal); - cp.§_-DS§ += b2.invMass + cp.angularInertia2; + cp.angularInertia2 = this._v.cross2(cp.r2,contact.normal).transform3(b2.var_495).cross(cp.r2).dot(contact.normal); + cp.name_502 += b2.invMass + cp.angularInertia2; } this.calcSepVelocity(b1,b2,cp,this._v); - cp.§_-0C§ = this._v.dot(contact.normal); - if(cp.§_-0C§ < 0) + cp.name_503 = this._v.dot(contact.normal); + if(cp.name_503 < 0) { - cp.§_-0C§ = -contact.§_-Pe§ * cp.§_-0C§; + cp.name_503 = -contact.name_501 * cp.name_503; } - cp.§_-A-§ = cp.penetration > this.§_-YB§ ? (cp.penetration - this.§_-YB§) / (this.§_-kv§ * dt) : 0; - if(cp.§_-A-§ > this.dynamic) + cp.name_505 = cp.penetration > this.name_360 ? (cp.penetration - this.name_360) / (this.var_608 * dt) : 0; + if(cp.name_505 > this.name_365) { - cp.§_-A-§ = this.dynamic; + cp.name_505 = this.name_365; } j++; } contact = contact.next; } - for(var i:int = 0; i < this.§_-0v§; i++) + for(var i:int = 0; i < this.var_598; i++) { - constraint = this.§_-7e§[i]; + constraint = this.var_599[i]; constraint.preProcess(dt); } } @@ -264,19 +264,19 @@ package alternativa.physics var i:int = 0; var contact:Contact = null; var constraint:Constraint = null; - var iterNum:int = forceInelastic ? this.§_-2I§ : this.§_-Yi§; + var iterNum:int = forceInelastic ? this.var_602 : this.var_605; var forwardLoop:Boolean = false; for(var iter:int = 0; iter < iterNum; iter++) { forwardLoop = !forwardLoop; - for(contact = this.contacts; contact != this.§_-lh§; ) + for(contact = this.contacts; contact != this.var_600; ) { this.resolveContact(contact,forceInelastic,forwardLoop); contact = contact.next; } - for(i = 0; i < this.§_-0v§; i++) + for(i = 0; i < this.var_598; i++) { - constraint = this.§_-7e§[i]; + constraint = this.var_599[i]; constraint.apply(dt); } } @@ -290,13 +290,13 @@ package alternativa.physics var normal:Vector3 = contactInfo.normal; if(forwardLoop) { - for(i = 0; i < contactInfo.§_-P3§; this.resolveContactPoint(i,b1,b2,contactInfo,normal,forceInelastic),i++) + for(i = 0; i < contactInfo.name_506; 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--) + for(i = contactInfo.name_506 - 1; i >= 0; this.resolveContactPoint(i,b1,b2,contactInfo,normal,forceInelastic),i--) { } } @@ -313,7 +313,7 @@ package alternativa.physics var cp:ContactPoint = contact.points[idx]; if(!forceInelastic) { - cp.§_-CV§ = true; + cp.name_507 = true; } var newVel:Number = 0; this.calcSepVelocity(b1,b2,cp,this._v); @@ -321,12 +321,12 @@ package alternativa.physics var sepVel:Number = this._v.x * cnormal.x + this._v.y * cnormal.y + this._v.z * cnormal.z; if(forceInelastic) { - minSpeVel = cp.§_-A-§; + minSpeVel = cp.name_505; if(sepVel < minSpeVel) { - cp.§_-CV§ = false; + cp.name_507 = false; } - else if(cp.§_-CV§) + else if(cp.name_507) { return; } @@ -334,22 +334,22 @@ package alternativa.physics } else { - newVel = cp.§_-0C§; + newVel = cp.name_503; } var deltaVel:Number = newVel - sepVel; - var impulse:Number = deltaVel / cp.§_-DS§; - var accumImpulse:Number = cp.§_-Dv§ + impulse; + var impulse:Number = deltaVel / cp.name_502; + var accumImpulse:Number = cp.name_504 + impulse; if(accumImpulse < 0) { accumImpulse = 0; } - var deltaImpulse:Number = accumImpulse - cp.§_-Dv§; - cp.§_-Dv§ = accumImpulse; - if(b1.§_-Sb§) + var deltaImpulse:Number = accumImpulse - cp.name_504; + cp.name_504 = accumImpulse; + if(b1.var_500) { b1.applyRelPosWorldImpulse(cp.r1,normal,deltaImpulse); } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.var_500) { b2.applyRelPosWorldImpulse(cp.r2,normal,-deltaImpulse); } @@ -364,42 +364,42 @@ package alternativa.physics { 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§) + 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_500) { 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; + 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.§_-MN§.x + this._v.y * this.§_-MN§.y + this._v.z * this.§_-MN§.z; + 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.§_-Sb§) + if(b2 != null && b2.var_500) { 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; + 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.§_-MN§.x + this._v.y * this.§_-MN§.y + this._v.z * this.§_-MN§.z; + 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.§_-J1§ * cp.§_-Dv§; + var max:Number = contact.name_422 * cp.name_504; if(max < 0) { if(tanImpulse < max) @@ -411,13 +411,13 @@ package alternativa.physics { tanImpulse = max; } - if(b1.§_-Sb§) + if(b1.var_500) { - b1.applyRelPosWorldImpulse(cp.r1,this.§_-MN§,tanImpulse); + b1.applyRelPosWorldImpulse(cp.r1,this.var_597,tanImpulse); } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.var_500) { - b2.applyRelPosWorldImpulse(cp.r2,this.§_-MN§,-tanImpulse); + b2.applyRelPosWorldImpulse(cp.r2,this.var_597,-tanImpulse); } } @@ -448,7 +448,7 @@ package alternativa.physics private function intergateVelocities(dt:Number) : void { - for(var item:BodyListItem = this.§_-By§.head; item != null; ) + for(var item:BodyListItem = this.name_438.head; item != null; ) { item.body.integrateVelocity(dt); item = item.next; @@ -458,10 +458,10 @@ package alternativa.physics private function integratePositions(dt:Number) : void { var body:Body = null; - for(var item:BodyListItem = this.§_-By§.head; item != null; ) + for(var item:BodyListItem = this.name_438.head; item != null; ) { body = item.body; - if(body.§_-Sb§ && !body.§_-N0§) + if(body.var_500 && !body.var_498) { body.integratePosition(dt); } @@ -472,28 +472,28 @@ package alternativa.physics private function postPhysics() : void { var body:Body = null; - for(var item:BodyListItem = this.§_-By§.head; item != null; ) + for(var item:BodyListItem = this.name_438.head; item != null; ) { body = item.body; body.clearAccumulators(); body.calcDerivedData(); - if(body.§_-N4§) + if(body.var_499) { - if(body.state.velocity.length() < this.§_-cc§ && body.state.rotation.length() < this.§_-GG§) + if(body.state.velocity.length() < this.var_606 && body.state.rotation.length() < this.var_603) { - if(!body.§_-N0§) + if(!body.var_498) { - ++body.§_-ia§; - if(body.§_-ia§ >= this.§_-Y6§) + ++body.var_502; + if(body.var_502 >= this.var_604) { - body.§_-N0§ = true; + body.var_498 = true; } } } else { - body.§_-ia§ = 0; - body.§_-N0§ = false; + body.var_502 = 0; + body.var_498 = false; } } item = item.next; @@ -502,7 +502,7 @@ package alternativa.physics public function update(delta:int) : void { - ++this.§_-hA§; + ++this.var_601; this.time += delta; var dt:Number = 0.001 * delta; this.applyForces(dt); diff --git a/src/alternativa/physics/collision/CollisionKdNode.as b/src/alternativa/physics/collision/CollisionKdNode.as index e662080..e0f7562 100644 --- a/src/alternativa/physics/collision/CollisionKdNode.as +++ b/src/alternativa/physics/collision/CollisionKdNode.as @@ -6,21 +6,21 @@ package alternativa.physics.collision { public var indices:Vector.; - public var §_-Xt§:Vector.; + public var var_674:Vector.; public var boundBox:BoundBox; public var parent:CollisionKdNode; - public var §_-da§:CollisionKdTree2D; + public var name_487:CollisionKdTree2D; public var axis:int = -1; public var coord:Number; - public var §_-75§:CollisionKdNode; + public var name_484:CollisionKdNode; - public var §_-Gm§:CollisionKdNode; + public var name_483:CollisionKdNode; public function CollisionKdNode() { diff --git a/src/alternativa/physics/collision/colliders/BoxRectCollider.as b/src/alternativa/physics/collision/colliders/BoxRectCollider.as index 4e86d13..17c753e 100644 --- a/src/alternativa/physics/collision/colliders/BoxRectCollider.as +++ b/src/alternativa/physics/collision/colliders/BoxRectCollider.as @@ -6,7 +6,7 @@ package alternativa.physics.collision.colliders import alternativa.physics.ContactPoint; import alternativa.physics.collision.CollisionPrimitive; import alternativa.physics.collision.primitives.CollisionRect; - import alternativa.physics.collision.primitives.§_-m3§; + import alternativa.physics.collision.primitives.name_311; public class BoxRectCollider extends BoxCollider { @@ -28,9 +28,9 @@ package alternativa.physics.collision.colliders private var axis22:Vector3 = new Vector3(); - private var §_-Wt§:int; + private var var_675:int; - private var §_-hK§:Number; + private var var_676:Number; private var points1:Vector. = new Vector.(8,true); @@ -53,27 +53,27 @@ package alternativa.physics.collision.colliders { return false; } - var box:§_-m3§ = prim1 as §_-m3§; + var box:name_311 = prim1 as name_311; if(box == null) { - box = prim2 as §_-m3§; + box = prim2 as name_311; rect = prim1 as CollisionRect; } else { rect = prim2 as CollisionRect; } - if(this.§_-Wt§ < 4) + if(this.var_675 < 4) { - if(!this.findFaceContactPoints(box,rect,this.vectorToBox,this.§_-Wt§,contact)) + if(!this.findFaceContactPoints(box,rect,this.vectorToBox,this.var_675,contact)) { return false; } } else { - this.§_-Wt§ -= 4; - if(!this.findEdgesIntersection(box,rect,this.vectorToBox,int(this.§_-Wt§ / 2),this.§_-Wt§ % 2,contact)) + this.var_675 -= 4; + if(!this.findEdgesIntersection(box,rect,this.vectorToBox,int(this.var_675 / 2),this.var_675 % 2,contact)) { return false; } @@ -91,14 +91,14 @@ package alternativa.physics.collision.colliders override public function haveCollision(prim1:CollisionPrimitive, prim2:CollisionPrimitive) : Boolean { - var box:§_-m3§ = null; + var box:name_311 = null; var rect:CollisionRect = null; var rectTransform:Matrix4 = null; - this.§_-hK§ = 10000000000; - box = prim1 as §_-m3§; + this.var_676 = 10000000000; + box = prim1 as name_311; if(box == null) { - box = prim2 as §_-m3§; + box = prim2 as name_311; rect = prim1 as CollisionRect; } else @@ -159,7 +159,7 @@ package alternativa.physics.collision.colliders return true; } - private function findFaceContactPoints(box:§_-m3§, rect:CollisionRect, vectorToBox:Vector3, faceAxisIdx:int, contact:Contact) : Boolean + private function findFaceContactPoints(box:name_311, rect:CollisionRect, vectorToBox:Vector3, faceAxisIdx:int, contact:Contact) : Boolean { var pnum:int = 0; var i:int = 0; @@ -206,13 +206,13 @@ package alternativa.physics.collision.colliders boxTransform.transformPointsN(this.points1,this.points2,4); rectTransform.transformPointsTransposedN(this.points2,this.points1,4); pnum = this.clipByRect(rect.hs); - contact.§_-P3§ = 0; + contact.name_506 = 0; for(i = 0; i < pnum; ) { v = this.points1[i]; if(v.z < this.epsilon) { - cp = contact.points[contact.§_-P3§++]; + cp = contact.points[contact.name_506++]; cp.penetration = -v.z; cpPos = cp.pos; cpPos.x = rectTransform.a * v.x + rectTransform.b * v.y + rectTransform.c * v.z + rectTransform.d; @@ -249,14 +249,14 @@ package alternativa.physics.collision.colliders rectTransform.transformPointsN(this.points1,this.points2,4); boxTransform.transformPointsTransposedN(this.points2,this.points1,4); pnum = this.clipByBox(box.hs,faceAxisIdx); - contact.§_-P3§ = 0; + contact.name_506 = 0; for(i = 0; i < pnum; ) { v = this.points1[i]; _loc21_ = this.getPointBoxPenetration(box.hs,v,faceAxisIdx,negativeFace); if(_loc21_ > -this.epsilon) { - cp = contact.points[contact.§_-P3§++]; + cp = contact.points[contact.name_506++]; cp.penetration = _loc21_; cpPos = cp.pos; cpPos.x = boxTransform.a * v.x + boxTransform.b * v.y + boxTransform.c * v.z + boxTransform.d; @@ -392,7 +392,7 @@ package alternativa.physics.collision.colliders return clipHighY(hs.y,pnum,this.points2,this.points1,this.epsilon); } - private function findEdgesIntersection(box:§_-m3§, rect:CollisionRect, vectorToBox:Vector3, axisIdx1:int, axisIdx2:int, contact:Contact) : Boolean + private function findEdgesIntersection(box:name_311, rect:CollisionRect, vectorToBox:Vector3, axisIdx1:int, axisIdx2:int, contact:Contact) : Boolean { var halfLen1:Number = NaN; var halfLen2:Number = NaN; @@ -483,9 +483,9 @@ package alternativa.physics.collision.colliders 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.§_-P3§ = 1; + contact.name_506 = 1; var cp:ContactPoint = contact.points[0]; - cp.penetration = this.§_-hK§; + cp.penetration = this.var_676; 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); @@ -501,22 +501,22 @@ package alternativa.physics.collision.colliders return true; } - private function testMainAxis(box:§_-m3§, rect:CollisionRect, axis:Vector3, axisIndex:int, vectorToBox:Vector3) : Boolean + private function testMainAxis(box:name_311, rect:CollisionRect, axis:Vector3, axisIndex:int, vectorToBox:Vector3) : Boolean { var overlap:Number = this.overlapOnAxis(box,rect,axis,vectorToBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.var_676) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.var_676 = overlap; + this.var_675 = axisIndex; } return true; } - private function testDerivedAxis(box:§_-m3§, rect:CollisionRect, axis1:Vector3, axis2:Vector3, axisIndex:int, vectorToBox:Vector3) : Boolean + private function testDerivedAxis(box:name_311, 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; @@ -535,15 +535,15 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.var_676) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.var_676 = overlap; + this.var_675 = axisIndex; } return true; } - public function overlapOnAxis(box:§_-m3§, rect:CollisionRect, axis:Vector3, vectorToBox:Vector3) : Number + public function overlapOnAxis(box:name_311, 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 index 38e2381..78c1de8 100644 --- a/src/alternativa/physics/collision/colliders/BoxSphereCollider.as +++ b/src/alternativa/physics/collision/colliders/BoxSphereCollider.as @@ -6,17 +6,17 @@ package alternativa.physics.collision.colliders import alternativa.physics.collision.CollisionPrimitive; import alternativa.physics.collision.ICollider; import alternativa.physics.collision.primitives.CollisionSphere; - import alternativa.physics.collision.primitives.§_-m3§; + import alternativa.physics.collision.primitives.name_311; public class BoxSphereCollider implements ICollider { private var center:Vector3 = new Vector3(); - private var §_-ZR§:Vector3 = new Vector3(); + private var var_713:Vector3 = new Vector3(); private var bPos:Vector3 = new Vector3(); - private var §_-dt§:Vector3 = new Vector3(); + private var var_714:Vector3 = new Vector3(); public function BoxSphereCollider() { @@ -25,20 +25,20 @@ package alternativa.physics.collision.colliders public function getContact(prim1:CollisionPrimitive, prim2:CollisionPrimitive, contact:Contact) : Boolean { - var box:§_-m3§ = null; + var box:name_311 = null; var sphere:CollisionSphere = prim1 as CollisionSphere; if(sphere == null) { sphere = prim2 as CollisionSphere; - box = prim1 as §_-m3§; + box = prim1 as name_311; } else { - box = prim2 as §_-m3§; + box = prim2 as name_311; } - sphere.transform.getAxis(3,this.§_-dt§); + sphere.transform.getAxis(3,this.var_714); box.transform.getAxis(3,this.bPos); - box.transform.transformPointTransposed(this.§_-dt§,this.center); + box.transform.transformPointTransposed(this.var_714,this.center); var hs:Vector3 = box.hs; var sx:Number = hs.x + sphere.r; var sy:Number = hs.y + sphere.r; @@ -49,73 +49,73 @@ package alternativa.physics.collision.colliders } if(this.center.x > hs.x) { - this.§_-ZR§.x = hs.x; + this.var_713.x = hs.x; } else if(this.center.x < -hs.x) { - this.§_-ZR§.x = -hs.x; + this.var_713.x = -hs.x; } else { - this.§_-ZR§.x = this.center.x; + this.var_713.x = this.center.x; } if(this.center.y > hs.y) { - this.§_-ZR§.y = hs.y; + this.var_713.y = hs.y; } else if(this.center.y < -hs.y) { - this.§_-ZR§.y = -hs.y; + this.var_713.y = -hs.y; } else { - this.§_-ZR§.y = this.center.y; + this.var_713.y = this.center.y; } if(this.center.z > hs.z) { - this.§_-ZR§.z = hs.z; + this.var_713.z = hs.z; } else if(this.center.z < -hs.z) { - this.§_-ZR§.z = -hs.z; + this.var_713.z = -hs.z; } else { - this.§_-ZR§.z = this.center.z; + this.var_713.z = this.center.z; } - var distSqr:Number = this.center.subtract(this.§_-ZR§).lengthSqr(); + var distSqr:Number = this.center.subtract(this.var_713).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; + contact.normal.copy(this.var_713).transform4(box.transform).subtract(this.var_714).normalize().reverse(); + contact.name_506 = 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.pos.copy(contact.normal).scale(-sphere.r).add(this.var_714); + cp.r1.diff(cp.pos,this.var_714); cp.r2.diff(cp.pos,this.bPos); return true; } public function haveCollision(prim1:CollisionPrimitive, prim2:CollisionPrimitive) : Boolean { - var box:§_-m3§ = null; + var box:name_311 = null; var sphere:CollisionSphere = prim1 as CollisionSphere; if(sphere == null) { sphere = prim2 as CollisionSphere; - box = prim1 as §_-m3§; + box = prim1 as name_311; } else { - box = prim2 as §_-m3§; + box = prim2 as name_311; } - sphere.transform.getAxis(3,this.§_-dt§); + sphere.transform.getAxis(3,this.var_714); box.transform.getAxis(3,this.bPos); - box.transform.transformPointTransposed(this.§_-dt§,this.center); + box.transform.transformPointTransposed(this.var_714,this.center); var hs:Vector3 = box.hs; var sx:Number = hs.x + sphere.r; var sy:Number = hs.y + sphere.r; @@ -126,41 +126,41 @@ package alternativa.physics.collision.colliders } if(this.center.x > hs.x) { - this.§_-ZR§.x = hs.x; + this.var_713.x = hs.x; } else if(this.center.x < -hs.x) { - this.§_-ZR§.x = -hs.x; + this.var_713.x = -hs.x; } else { - this.§_-ZR§.x = this.center.x; + this.var_713.x = this.center.x; } if(this.center.y > hs.y) { - this.§_-ZR§.y = hs.y; + this.var_713.y = hs.y; } else if(this.center.y < -hs.y) { - this.§_-ZR§.y = -hs.y; + this.var_713.y = -hs.y; } else { - this.§_-ZR§.y = this.center.y; + this.var_713.y = this.center.y; } if(this.center.z > hs.z) { - this.§_-ZR§.z = hs.z; + this.var_713.z = hs.z; } else if(this.center.z < -hs.z) { - this.§_-ZR§.z = -hs.z; + this.var_713.z = -hs.z; } else { - this.§_-ZR§.z = this.center.z; + this.var_713.z = this.center.z; } - var distSqr:Number = this.center.subtract(this.§_-ZR§).lengthSqr(); + var distSqr:Number = this.center.subtract(this.var_713).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 index e6498f0..d60b555 100644 --- a/src/alternativa/physics/collision/colliders/SphereSphereCollider.as +++ b/src/alternativa/physics/collision/colliders/SphereSphereCollider.as @@ -53,7 +53,7 @@ package alternativa.physics.collision.colliders contact.normal.x = dx; contact.normal.y = dy; contact.normal.z = dz; - contact.§_-P3§ = 1; + contact.name_506 = 1; var cp:ContactPoint = contact.points[0]; cp.penetration = sum - len; cp.pos.x = this.p1.x - dx * s1.r; diff --git a/src/alternativa/physics/collision/primitives/CollisionRect.as b/src/alternativa/physics/collision/primitives/CollisionRect.as index b6485a2..e2b7837 100644 --- a/src/alternativa/physics/collision/primitives/CollisionRect.as +++ b/src/alternativa/physics/collision/primitives/CollisionRect.as @@ -11,7 +11,7 @@ package alternativa.physics.collision.primitives public var hs:Vector3 = new Vector3(); - public var §_-ng§:Boolean = true; + public var var_572:Boolean = true; public function CollisionRect(hs:Vector3, collisionGroup:int, collisionMask:int) { diff --git a/src/alternativa/physics/constraints/Constraint.as b/src/alternativa/physics/constraints/Constraint.as index b7f4ae2..3f9d367 100644 --- a/src/alternativa/physics/constraints/Constraint.as +++ b/src/alternativa/physics/constraints/Constraint.as @@ -4,7 +4,7 @@ package alternativa.physics.constraints public class Constraint { - public var §_-CV§:Boolean; + public var name_507:Boolean; public var world:PhysicsScene; diff --git a/src/alternativa/protocol/OptionalMap.as b/src/alternativa/protocol/OptionalMap.as index 319f5bc..8e32335 100644 --- a/src/alternativa/protocol/OptionalMap.as +++ b/src/alternativa/protocol/OptionalMap.as @@ -4,7 +4,7 @@ package alternativa.protocol public class OptionalMap { - private var §_-bU§:int; + private var var_671:int; private var size:int; @@ -19,28 +19,28 @@ package alternativa.protocol this.map.writeBytes(source,0,this.convertSize(size)); } this.size = size; - this.§_-bU§ = 0; + this.var_671 = 0; } public function getReadPosition() : int { - return this.§_-bU§; + return this.var_671; } public function setReadPosition(value:int) : void { - this.§_-bU§ = value; + this.var_671 = value; } public function reset() : void { - this.§_-bU§ = 0; + this.var_671 = 0; } public function clear() : void { this.size = 0; - this.§_-bU§ = 0; + this.var_671 = 0; } public function addBit(isNull:Boolean) : void @@ -51,17 +51,17 @@ package alternativa.protocol public function hasNextBit() : Boolean { - return this.§_-bU§ < this.size; + return this.var_671 < this.size; } public function OptionalMap() : Boolean { - if(this.§_-bU§ >= this.size) + if(this.var_671 >= this.size) { - throw new Error("Index out of bounds: " + this.§_-bU§); + throw new Error("Index out of bounds: " + this.var_671); } - var res:Boolean = this.getBit(this.§_-bU§); - ++this.§_-bU§; + var res:Boolean = this.getBit(this.var_671); + ++this.var_671; return res; } @@ -107,20 +107,20 @@ package alternativa.protocol 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++) + var result:String = "readPosition: " + this.var_671 + " size:" + this.getSize() + " mask:"; + var _readPosition:int = this.var_671; + for(var i:int = this.var_671; i < this.getSize(); i++) { result += this.OptionalMap() ? "1" : "0"; } - this.§_-bU§ = _readPosition; + this.var_671 = _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§; + map.var_671 = this.var_671; return map; } } diff --git a/src/alternativa/protocol/ProtocolBuffer.as b/src/alternativa/protocol/ProtocolBuffer.as index 24a6b56..bca49ba 100644 --- a/src/alternativa/protocol/ProtocolBuffer.as +++ b/src/alternativa/protocol/ProtocolBuffer.as @@ -6,48 +6,48 @@ package alternativa.protocol public class ProtocolBuffer { - private var §_-R§:IDataOutput; + private var var_587:IDataOutput; - private var §_-ch§:IDataInput; + private var var_588:IDataInput; - private var §_-7s§:OptionalMap; + private var var_586:OptionalMap; public function ProtocolBuffer(output:IDataOutput, input:IDataInput, optionalMap:OptionalMap) { super(); - this.§_-R§ = output; - this.§_-ch§ = input; - this.§_-7s§ = optionalMap; + this.var_587 = output; + this.var_588 = input; + this.var_586 = optionalMap; } public function get writer() : IDataOutput { - return this.§_-R§; + return this.var_587; } public function set writer(value:IDataOutput) : void { - this.§_-R§ = value; + this.var_587 = value; } public function get reader() : IDataInput { - return this.§_-ch§; + return this.var_588; } public function set reader(value:IDataInput) : void { - this.§_-ch§ = value; + this.var_588 = value; } public function get optionalMap() : OptionalMap { - return this.§_-7s§; + return this.var_586; } public function set optionalMap(value:OptionalMap) : void { - this.§_-7s§ = value; + this.var_586 = value; } public function toString() : String diff --git a/src/alternativa/protocol/codec/OptionalCodecDecorator.as b/src/alternativa/protocol/codec/OptionalCodecDecorator.as index 6ad934a..215c760 100644 --- a/src/alternativa/protocol/codec/OptionalCodecDecorator.as +++ b/src/alternativa/protocol/codec/OptionalCodecDecorator.as @@ -9,7 +9,7 @@ package alternativa.protocol.codec { private var codec:ICodec; - private var §_-In§:Object; + private var var_189:Object; public function OptionalCodecDecorator(codec:ICodec) { @@ -17,13 +17,13 @@ package alternativa.protocol.codec this.codec = codec; if(codec is IPrimitiveCodec) { - this.§_-In§ = IPrimitiveCodec(codec).nullValue(); + this.var_189 = IPrimitiveCodec(codec).nullValue(); } } public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { - if(object == this.§_-In§) + if(object == this.var_189) { protocolBuffer.optionalMap.addBit(true); } @@ -36,7 +36,7 @@ package alternativa.protocol.codec public function decode(protocolBuffer:ProtocolBuffer) : Object { - return protocolBuffer.optionalMap.OptionalMap() ? this.§_-In§ : this.codec.decode(protocolBuffer); + return protocolBuffer.optionalMap.OptionalMap() ? this.var_189 : this.codec.decode(protocolBuffer); } public function init(protocol:IProtocol) : void diff --git a/src/alternativa/protocol/impl/Protocol.as b/src/alternativa/protocol/impl/Protocol.as index ef84765..322be60 100644 --- a/src/alternativa/protocol/impl/Protocol.as +++ b/src/alternativa/protocol/impl/Protocol.as @@ -34,9 +34,9 @@ package alternativa.protocol.impl public static var defaultInstance:IProtocol = new Protocol(); - private var §_-5c§:Object = new Object(); + private var var_190:Object = new Object(); - private var §_-RY§:Dictionary = new Dictionary(false); + private var var_191:Dictionary = new Dictionary(false); public function Protocol() { @@ -67,26 +67,26 @@ package alternativa.protocol.impl public function registerCodec(codecInfo:ICodecInfo, codec:ICodec) : void { - this.§_-5c§[codecInfo] = codec; + this.var_190[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); + this.var_190[new TypeCodecInfo(type,false)] = codec; + this.var_190[new TypeCodecInfo(type,true)] = new OptionalCodecDecorator(codec); } public function getCodec(codecInfo:ICodecInfo) : ICodec { - var result:ICodec = this.§_-5c§[codecInfo]; + var result:ICodec = this.var_190[codecInfo]; if(result == null) { throw Error("Codec not found for " + codecInfo); } - if(this.§_-RY§[result] == null) + if(this.var_191[result] == null) { result.init(this); - this.§_-RY§[result] = result; + this.var_191[result] = result; } return result; } diff --git a/src/alternativa/protocol/info/CollectionCodecInfo.as b/src/alternativa/protocol/info/CollectionCodecInfo.as index 546871a..a7fcc5b 100644 --- a/src/alternativa/protocol/info/CollectionCodecInfo.as +++ b/src/alternativa/protocol/info/CollectionCodecInfo.as @@ -4,25 +4,25 @@ package alternativa.protocol.info public class CollectionCodecInfo extends CodecInfo { - private var §_-jo§:ICodecInfo; + private var var_186:ICodecInfo; - private var §_-fp§:int; + private var var_185:int; public function CollectionCodecInfo(elementCodec:ICodecInfo, optional:Boolean, level:int) { super(optional); - this.§_-jo§ = elementCodec; - this.§_-fp§ = level; + this.var_186 = elementCodec; + this.var_185 = level; } public function get level() : int { - return this.§_-fp§; + return this.var_185; } public function get elementCodec() : ICodecInfo { - return this.§_-jo§; + return this.var_186; } override public function toString() : String diff --git a/src/alternativa/protocol/info/TypeCodecInfo.as b/src/alternativa/protocol/info/TypeCodecInfo.as index 78fd457..6160d82 100644 --- a/src/alternativa/protocol/info/TypeCodecInfo.as +++ b/src/alternativa/protocol/info/TypeCodecInfo.as @@ -4,17 +4,17 @@ package alternativa.protocol.info public class TypeCodecInfo extends CodecInfo { - private var §_-hx§:Class; + private var var_184:Class; public function TypeCodecInfo(type:Class, optional:Boolean) { super(optional); - this.§_-hx§ = type; + this.var_184 = type; } public function get type() : Class { - return this.§_-hx§; + return this.var_184; } override public function toString() : String diff --git a/src/alternativa/tanks/TextureResourceService.as b/src/alternativa/tanks/TextureResourceService.as index 10d6877..2413d22 100644 --- a/src/alternativa/tanks/TextureResourceService.as +++ b/src/alternativa/tanks/TextureResourceService.as @@ -13,22 +13,22 @@ package alternativa.tanks { public var gameKernel:GameKernel; - private var §_-9P§:IGenericTargetEvaluator; + private var var_453:IGenericTargetEvaluator; - private var §_-bW§:IRailgunTargetEvaluator; + private var var_454:IRailgunTargetEvaluator; - private var §_-ci§:IGenericTargetEvaluator; + private var var_455:IGenericTargetEvaluator; - private var §_-L1§:Dictionary; + private var var_456:Dictionary; - private var §_-ee§:Dictionary; + private var var_457:Dictionary; public function TextureResourceService(param1:GameKernel) { super(); this.gameKernel = param1; - this.§_-L1§ = new Dictionary(); - this.§_-ee§ = new Dictionary(); + this.var_456 = new Dictionary(); + this.var_457 = new Dictionary(); } public function getCompressedTextureResource(param1:ByteArray) : ATFTextureResource @@ -68,22 +68,22 @@ package alternativa.tanks private function getCompressedResourceSafe(param1:ByteArray, param2:Boolean) : ATFTextureResource { - var _loc3_:ATFTextureResource = this.§_-L1§[param1]; + var _loc3_:ATFTextureResource = this.var_456[param1]; if(_loc3_ == null && param2) { _loc3_ = new ATFTextureResource(param1); - this.§_-L1§[param1] = _loc3_; + this.var_456[param1] = _loc3_; } return _loc3_; } private function getBitmapResourceSafe(param1:BitmapData, param2:Boolean) : BitmapTextureResource { - var _loc3_:BitmapTextureResource = this.§_-ee§[param1]; + var _loc3_:BitmapTextureResource = this.var_457[param1]; if(_loc3_ == null && param2) { _loc3_ = new BitmapTextureResource(param1); - this.§_-ee§[param1] = _loc3_; + this.var_457[param1] = _loc3_; } return _loc3_; } @@ -91,51 +91,51 @@ package alternativa.tanks public function clear() : void { this.gameKernel = null; - this.§_-9P§ = null; - this.§_-bW§ = null; - this.§_-ci§ = null; + this.var_453 = null; + this.var_454 = null; + this.var_455 = null; } public function getGenericTargetEvaluator() : IGenericTargetEvaluator { - if(this.§_-9P§ == null) + if(this.var_453 == null) { throw new Error("Generic target evaluator is not set"); } - return this.§_-9P§; + return this.var_453; } public function setGenericTargetEvaluator(param1:IGenericTargetEvaluator) : void { - this.§_-9P§ = param1; + this.var_453 = param1; } public function getRailgunTargetEvaluator() : IRailgunTargetEvaluator { - if(this.§_-bW§ == null) + if(this.var_454 == null) { throw new Error("Railgun target evaluator is not set"); } - return this.§_-bW§; + return this.var_454; } public function setRailgunTargetEvaluator(param1:IRailgunTargetEvaluator) : void { - this.§_-bW§ = param1; + this.var_454 = param1; } public function getFlamethrowerTargetEvaluator() : IGenericTargetEvaluator { - if(this.§_-ci§ == null) + if(this.var_455 == null) { throw new Error("Flame/freeze target evaluator is not set"); } - return this.§_-ci§; + return this.var_455; } public function setFlamethrowerTargetEvaluator(param1:IGenericTargetEvaluator) : void { - this.§_-ci§ = param1; + this.var_455 = param1; } } } diff --git a/src/alternativa/tanks/config/BlobLibrary.as b/src/alternativa/tanks/config/BlobLibrary.as index 79dd9b5..900f6c6 100644 --- a/src/alternativa/tanks/config/BlobLibrary.as +++ b/src/alternativa/tanks/config/BlobLibrary.as @@ -2,19 +2,19 @@ package alternativa.tanks.config { public class BlobLibrary { - private var §_-GF§:Object; + private var var_199:Object; public function BlobLibrary() { super(); - this.§_-GF§ = new Object(); + this.var_199 = new Object(); } public function get categoryIds() : Vector. { var _loc2_:String = null; var _loc1_:Vector. = new Vector.(); - for(_loc2_ in this.§_-GF§) + for(_loc2_ in this.var_199) { _loc1_.push(_loc2_); } @@ -23,12 +23,12 @@ package alternativa.tanks.config public function getCategory(param1:String) : BlobCategory { - return this.§_-GF§[param1]; + return this.var_199[param1]; } public function setCategory(param1:String, param2:BlobCategory) : void { - this.§_-GF§[param1] = param2; + this.var_199[param1] = param2; } } } diff --git a/src/alternativa/tanks/config/TankPartsLibrary.as b/src/alternativa/tanks/config/TankPartsLibrary.as index c37eb5e..0781235 100644 --- a/src/alternativa/tanks/config/TankPartsLibrary.as +++ b/src/alternativa/tanks/config/TankPartsLibrary.as @@ -13,15 +13,15 @@ package alternativa.tanks.config public class TankPartsLibrary extends ResourceLoader { - private var §_-SB§:Vector.; + private var var_196:Vector.; - private var §_-dl§:Vector.; + private var var_197:Vector.; - private var §_-cy§:Vector.; + private var var_198:Vector.; - private var §_-Ic§:TankPartsBatchLoader; + private var var_194:TankPartsBatchLoader; - private var §_-1D§:ImageSequenceLoader; + private var var_195:ImageSequenceLoader; public function TankPartsLibrary(param1:Config) { @@ -30,52 +30,52 @@ package alternativa.tanks.config public function get numHulls() : int { - return this.§_-SB§.length; + return this.var_196.length; } public function getHull(param1:int) : TankHull { - return TankHull(this.§_-SB§[param1]); + return TankHull(this.var_196[param1]); } public function getHullByID(param1:String) : TankHull { - return this.findPartByID(param1,this.§_-SB§) as TankHull; + return this.findPartByID(param1,this.var_196) as TankHull; } public function getHullIndex(param1:String) : int { - return this.getPartIndex(param1,this.§_-SB§); + return this.getPartIndex(param1,this.var_196); } public function get numTurrets() : int { - return this.§_-dl§.length; + return this.var_197.length; } public function getTurret(param1:int) : TankTurret { - return TankTurret(this.§_-dl§[param1]); + return TankTurret(this.var_197[param1]); } public function getTurretByID(param1:String) : TankTurret { - return this.findPartByID(param1,this.§_-dl§) as TankTurret; + return this.findPartByID(param1,this.var_197) as TankTurret; } public function getTurretIndex(param1:String) : int { - return this.getPartIndex(param1,this.§_-dl§); + return this.getPartIndex(param1,this.var_197); } public function get numColormaps() : int { - return this.§_-cy§.length; + return this.var_198.length; } public function getColormap(param1:int) : BitmapData { - return this.§_-cy§[param1]; + return this.var_198[param1]; } override public function run() : void @@ -114,47 +114,47 @@ package alternativa.tanks.config private function loadHulls() : void { - this.§_-Ic§ = new TankPartsBatchLoader(); - this.§_-Ic§.addEventListener(Event.COMPLETE,this.onHullsLoadingComplete); - this.§_-Ic§.load(this.getBaseUrl(),config.xml.tankParts.hull,new TankHullLoaderFactory()); + this.var_194 = new TankPartsBatchLoader(); + this.var_194.addEventListener(Event.COMPLETE,this.onHullsLoadingComplete); + this.var_194.load(this.getBaseUrl(),config.xml.tankParts.hull,new TankHullLoaderFactory()); } private function onHullsLoadingComplete(param1:Event) : void { dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,3)); - this.§_-Ic§.removeEventListener(Event.COMPLETE,this.onHullsLoadingComplete); - this.§_-SB§ = this.§_-Ic§.parts; + this.var_194.removeEventListener(Event.COMPLETE,this.onHullsLoadingComplete); + this.var_196 = this.var_194.parts; this.loadTurrets(); } private function loadTurrets() : void { - this.§_-Ic§.addEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); - this.§_-Ic§.load(this.getBaseUrl(),config.xml.tankParts.turret,new TankTurretLoaderFactory()); + this.var_194.addEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); + this.var_194.load(this.getBaseUrl(),config.xml.tankParts.turret,new TankTurretLoaderFactory()); } private function onTurretsLoadingComplete(param1:Event) : void { dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,3)); - this.§_-Ic§.removeEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); - this.§_-dl§ = this.§_-Ic§.parts; - this.§_-Ic§ = null; + this.var_194.removeEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); + this.var_197 = this.var_194.parts; + this.var_194 = null; this.loadColormaps(); } private function loadColormaps() : void { - this.§_-1D§ = new ImageSequenceLoader(); - this.§_-1D§.addEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); - this.§_-1D§.load(StringUtils.makeCorrectBaseUrl(config.xml.colorings.@baseUrl),config.xml.colorings.image); + this.var_195 = new ImageSequenceLoader(); + this.var_195.addEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); + this.var_195.load(StringUtils.makeCorrectBaseUrl(config.xml.colorings.@baseUrl),config.xml.colorings.image); } private function onColormapsLoadingComplete(param1:Event) : void { dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,3)); - this.§_-cy§ = this.§_-1D§.images; - this.§_-1D§.removeEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); - this.§_-1D§ = null; + this.var_198 = this.var_195.images; + this.var_195.removeEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); + this.var_195 = null; completeTask(); } diff --git a/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as b/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as index d46588c..9f270f8 100644 --- a/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as +++ b/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as @@ -18,7 +18,7 @@ package alternativa.tanks.config.loaders private var loader:Loader; - private var §_-lW§:int; + private var var_589:int; public function ImageSequenceLoader() { @@ -31,15 +31,15 @@ package alternativa.tanks.config.loaders this.imagesXml = param2; this.loader = new Loader(); this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE,this.onImageLoadingComplete); - this.§_-lW§ = -1; + this.var_589 = -1; this.images = new Vector.(); this.loadNextImage(); } private function loadNextImage() : void { - ++this.§_-lW§; - if(this.§_-lW§ == this.imagesXml.length()) + ++this.var_589; + if(this.var_589 == this.imagesXml.length()) { this.loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,this.onImageLoadingComplete); this.loader.unload(); @@ -53,7 +53,7 @@ package alternativa.tanks.config.loaders } else { - this.loader.load(new URLRequest(this.baseUrl + this.imagesXml[this.§_-lW§].@file)); + this.loader.load(new URLRequest(this.baseUrl + this.imagesXml[this.var_589].@file)); } } diff --git a/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as b/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as index 40c47ad..d0058d4 100644 --- a/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as +++ b/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as @@ -11,7 +11,7 @@ package alternativa.tanks.config.loaders { public var parts:Vector.; - private var §_-d5§:TaskSequence; + private var var_34:TaskSequence; public function TankPartsBatchLoader() { @@ -22,18 +22,18 @@ package alternativa.tanks.config.loaders { var _loc4_:XML = null; this.parts = new Vector.(); - this.§_-d5§ = new TaskSequence(); + this.var_34 = new TaskSequence(); for each(_loc4_ in param2) { - this.§_-d5§.addTask(param3.createLoader(param1,_loc4_,this.parts)); + this.var_34.addTask(param3.createLoader(param1,_loc4_,this.parts)); } - this.§_-d5§.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.§_-d5§.run(); + this.var_34.addEventListener(Event.COMPLETE,this.onSequenceComplete); + this.var_34.run(); } private function onSequenceComplete(param1:Event) : void { - this.§_-d5§ = null; + this.var_34 = null; if(hasEventListener(Event.COMPLETE)) { dispatchEvent(new Event(Event.COMPLETE)); diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as index 718fb0a..1385507 100644 --- a/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as +++ b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as @@ -1,8 +1,8 @@ package alternativa.tanks.config.loaders.tankparts { - import § var§.TankHullParser; import alternativa.tanks.game.entities.tank.TankPart; import alternativa.utils.ByteArrayMap; + import package_43.TankHullParser; public class TankHullLoader extends TankPartLoader { @@ -14,7 +14,7 @@ package alternativa.tanks.config.loaders.tankparts override public function parseModelData(param1:ByteArrayMap) : TankPart { var _loc2_:TankHullParser = new TankHullParser(); - return _loc2_.parse(param1,§_-P9§); + return _loc2_.parse(param1,var_673); } } } diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as index 06fd5b1..4bf76cc 100644 --- a/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as +++ b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as @@ -1,8 +1,8 @@ package alternativa.tanks.config.loaders.tankparts { - import § var§.TankTurretParser; import alternativa.tanks.game.entities.tank.TankPart; import alternativa.utils.ByteArrayMap; + import package_43.TankTurretParser; public class TankTurretLoader extends TankPartLoader { @@ -14,7 +14,7 @@ package alternativa.tanks.config.loaders.tankparts override public function parseModelData(param1:ByteArrayMap) : TankPart { var _loc2_:TankTurretParser = new TankTurretParser(); - return _loc2_.parse(param1,§_-P9§); + return _loc2_.parse(param1,var_673); } } } diff --git a/src/alternativa/tanks/game/Entity.as b/src/alternativa/tanks/game/Entity.as index f4c8299..527d752 100644 --- a/src/alternativa/tanks/game/Entity.as +++ b/src/alternativa/tanks/game/Entity.as @@ -4,20 +4,20 @@ package alternativa.tanks.game { private static var lastId:int; - private var §_-3I§:int; + private var var_101:int; private var components:Vector.; - private var §_-ax§:Object; + private var var_100:Object; internal var index:int = -1; public function Entity(id:int) { super(); - this.§_-3I§ = id; + this.var_101 = id; this.components = new Vector.(); - this.§_-ax§ = new Object(); + this.var_100 = new Object(); } public static function generateId() : int @@ -27,7 +27,7 @@ package alternativa.tanks.game public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function addComponent(component:EntityComponent) : void @@ -90,7 +90,7 @@ package alternativa.tanks.game { var numListeners:uint = 0; var i:int = 0; - var listeners:Vector. = this.§_-ax§[eventType]; + var listeners:Vector. = this.var_100[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.§_-ax§[eventType]; + var handlers:Vector. = this.var_100[eventType]; if(handlers == null) { handlers = new Vector.(); - this.§_-ax§[eventType] = handlers; + this.var_100[eventType] = handlers; } handlers.push(handler); } diff --git a/src/alternativa/tanks/game/GameTask.as b/src/alternativa/tanks/game/GameTask.as index e1a4eba..aeffd2b 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 §_-Uw§:TaskManager; + public var var_4:TaskManager; public var priority:int; - protected var §_-iS§:Boolean; + protected var var_3:Boolean; public function GameTask(priority:int) { @@ -28,7 +28,7 @@ package alternativa.tanks.game final public function get paused() : Boolean { - return this.§_-iS§; + return this.var_3; } final public function set paused(value:Boolean) : void @@ -45,18 +45,18 @@ package alternativa.tanks.game final public function pause() : void { - if(!this.§_-iS§) + if(!this.var_3) { - this.§_-iS§ = true; + this.var_3 = true; this.onPause(); } } final public function resume() : void { - if(this.§_-iS§) + if(this.var_3) { - this.§_-iS§ = false; + this.var_3 = false; this.onResume(); } } diff --git a/src/alternativa/tanks/game/ObjectController.as b/src/alternativa/tanks/game/ObjectController.as index 4650c48..17305fc 100644 --- a/src/alternativa/tanks/game/ObjectController.as +++ b/src/alternativa/tanks/game/ObjectController.as @@ -11,7 +11,7 @@ package alternativa.tanks.game private static var vector:Vector3 = new Vector3(); - private var §_-G7§:Object3D; + private var var_234:Object3D; public function ObjectController() { @@ -20,64 +20,64 @@ package alternativa.tanks.game public function get object() : Object3D { - return this.§_-G7§; + return this.var_234; } public function set object(value:Object3D) : void { - this.§_-G7§ = value; + this.var_234 = value; } public function setPosition(x:Number, y:Number, z:Number) : void { - this.§_-G7§.x = x; - this.§_-G7§.y = y; - this.§_-G7§.z = z; + this.var_234.x = x; + this.var_234.y = y; + this.var_234.z = z; } public function setRotation(rx:Number, ry:Number, rz:Number) : void { - this.§_-G7§.rotationX = rx; - this.§_-G7§.rotationY = ry; - this.§_-G7§.rotationZ = rz; + this.var_234.rotationX = rx; + this.var_234.rotationY = ry; + this.var_234.rotationZ = rz; } public function moveRelative(dx:Number, dy:Number, dz:Number) : void { - matrix.setRotationMatrix(this.§_-G7§.rotationX,this.§_-G7§.rotationY,this.§_-G7§.rotationZ); + matrix.setRotationMatrix(this.var_234.rotationX,this.var_234.rotationY,this.var_234.rotationZ); vector.reset(dx,dy,dz); vector.transform3(matrix); - this.§_-G7§.x += vector.x; - this.§_-G7§.y += vector.y; - this.§_-G7§.z += vector.z; + this.var_234.x += vector.x; + this.var_234.y += vector.y; + this.var_234.z += vector.z; } public function move(dx:Number, dy:Number, dz:Number) : void { - this.§_-G7§.x += dx; - this.§_-G7§.y += dy; - this.§_-G7§.z += dz; + this.var_234.x += dx; + this.var_234.y += dy; + this.var_234.z += dz; } public function rotate(rdx:Number, rdy:Number, rdz:Number) : void { - this.§_-G7§.rotationX += rdx; - this.§_-G7§.rotationY += rdy; - this.§_-G7§.rotationZ += rdz; + this.var_234.rotationX += rdx; + this.var_234.rotationY += rdy; + this.var_234.rotationZ += rdz; } public function lookAtXYZ(x:Number, y:Number, z:Number) : void { - 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) + 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 Camera3D) { - this.§_-G7§.rotationX -= 0.5 * Math.PI; + this.var_234.rotationX -= 0.5 * Math.PI; } - this.§_-G7§.rotationY = 0; - this.§_-G7§.rotationZ = -Math.atan2(dx,dy); + this.var_234.rotationY = 0; + this.var_234.rotationZ = -Math.atan2(dx,dy); } } } diff --git a/src/alternativa/tanks/game/camera/AxisIndicator.as b/src/alternativa/tanks/game/camera/AxisIndicator.as index 5682201..871112f 100644 --- a/src/alternativa/tanks/game/camera/AxisIndicator.as +++ b/src/alternativa/tanks/game/camera/AxisIndicator.as @@ -5,14 +5,14 @@ package alternativa.tanks.game.camera public class AxisIndicator extends Shape { - private var §_-RS§:int; + private var var_32:int; private var axis:Vector. = Vector.([0,0,0,0,0,0]); public function AxisIndicator(size:int) { super(); - this.§_-RS§ = size; + this.var_32 = 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.§_-RS§ / 2; + var halfSize:int = this.var_32 / 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.§_-RS§; + return this.var_32; } } } diff --git a/src/alternativa/tanks/game/camera/FreeCameraController.as b/src/alternativa/tanks/game/camera/FreeCameraController.as index 2eee923..d31f6c7 100644 --- a/src/alternativa/tanks/game/camera/FreeCameraController.as +++ b/src/alternativa/tanks/game/camera/FreeCameraController.as @@ -38,17 +38,17 @@ package alternativa.tanks.game.camera private static var vector:Vector3 = new Vector3(); - public var §_-eX§:Number = 0.01; + public var var_49:Number = 0.01; - public var §_-ma§:Number = 0.01; + public var var_50:Number = 0.01; public var speed:Number = 500; - public var §_-NF§:Number = 3; + public var var_48:Number = 3; - private var §_-ls§:Number = 0; + private var var_47:Number = 0; - private var §_-Z3§:Number = 0; + private var var_46:Number = 0; private var currentPosition:Vector3D = new Vector3D(); @@ -60,7 +60,7 @@ package alternativa.tanks.game.camera private var parentMatrix:Matrix4 = new Matrix4(); - private var §_-Kj§:Matrix4 = new Matrix4(); + private var var_45:Matrix4 = new Matrix4(); public function FreeCameraController(camera:GameCamera, input:IInput) { @@ -68,8 +68,8 @@ package alternativa.tanks.game.camera this.input = input; this.controller = new ObjectController(); this.controller.object = camera; - this.§_-Z3§ = camera.rotationX; - this.§_-ls§ = camera.rotationZ; + this.var_46 = camera.rotationX; + this.var_47 = camera.rotationZ; this.currentPosition.x = camera.x; this.currentPosition.y = camera.y; this.currentPosition.z = camera.z; @@ -78,8 +78,8 @@ package alternativa.tanks.game.camera public function enable() : void { var object:Object3D = this.controller.object; - this.§_-Z3§ = object.rotationX; - this.§_-ls§ = object.rotationZ; + this.var_46 = object.rotationX; + this.var_47 = object.rotationZ; this.currentPosition.x = object.x; this.currentPosition.y = object.y; this.currentPosition.z = object.z; @@ -96,8 +96,8 @@ package alternativa.tanks.game.camera public function lookAtXYZ(x:Number, y:Number, z:Number) : void { this.controller.lookAtXYZ(x,y,z); - this.§_-Z3§ = this.controller.object.rotationX; - this.§_-ls§ = this.controller.object.rotationZ; + this.var_46 = this.controller.object.rotationX; + this.var_47 = this.controller.object.rotationZ; } public function setTarget(value:Entity) : void @@ -128,14 +128,14 @@ package alternativa.tanks.game.camera } if(this.input.mouseButtonPressed()) { - yaw = -this.input.getMouseDeltaX() * this.§_-eX§; - pitch = -this.input.getMouseDeltaY() * this.§_-ma§; - this.§_-ls§ += yaw; - this.§_-Z3§ += pitch; + yaw = -this.input.getMouseDeltaX() * this.var_49; + pitch = -this.input.getMouseDeltaY() * this.var_50; + this.var_47 += yaw; + this.var_46 += pitch; } var object:Object3D = this.controller.object; - var drX:Number = this.§_-Z3§ - object.rotationX; - var drZ:Number = this.§_-ls§ - object.rotationZ; + var drX:Number = this.var_46 - object.rotationX; + var drZ:Number = this.var_47 - object.rotationZ; if(drX != 0 || drZ != 0) { if(smoothing > 0) @@ -153,7 +153,7 @@ package alternativa.tanks.game.camera if(moved) { vector.normalize(); - vector.scale(this.speed * timeDelta * (1 + this.input.getKeyState(KEY_SPEED) * (this.§_-NF§ - 1))); + vector.scale(this.speed * timeDelta * (1 + this.input.getKeyState(KEY_SPEED) * (this.var_48 - 1))); } matrix.setRotationMatrix(object.rotationX,object.rotationY,object.rotationZ); vector.reset(vector.x,vector.y,vector.z); @@ -180,9 +180,9 @@ package alternativa.tanks.game.camera if(targeted && this.target != null) { this.updateTargetState(); - dx = this.§_-Kj§.d - object.x; - dy = this.§_-Kj§.h - object.y; - dz = this.§_-Kj§.l - object.z; + dx = this.var_45.d - object.x; + dy = this.var_45.h - object.y; + dz = this.var_45.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,8 +192,8 @@ package alternativa.tanks.game.camera private function updateTargetState() : void { this.setMatrixFromObject(this.target.parent,this.parentMatrix); - this.setMatrixFromObject(this.target,this.§_-Kj§); - this.§_-Kj§.append(this.parentMatrix); + this.setMatrixFromObject(this.target,this.var_45); + this.var_45.append(this.parentMatrix); } private function setMatrixFromObject(object:Object3D, matrix:Matrix4) : void diff --git a/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as b/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as index fe63da0..d6daad5 100644 --- a/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as +++ b/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as @@ -24,7 +24,7 @@ package alternativa.tanks.game.effects private var fps:Number; - private var §_-5m§:Number; + private var var_472:Number; private var numFrames:int; @@ -52,7 +52,7 @@ package alternativa.tanks.game.effects this.frames = frames; this.fps = fps; this.sizeGrowSpeed = sizeGrowSpeed; - this.§_-5m§ = 0; + this.var_472 = 0; this.numFrames = frames.length; this.size = startSize; this.plane.scaleX = startSize; @@ -74,16 +74,16 @@ package alternativa.tanks.game.effects public function play(camera:GameCamera) : Boolean { - if(this.§_-5m§ >= this.numFrames) + if(this.var_472 >= this.numFrames) { return false; } - this.plane.setMaterialToAllSurfaces(this.frames[int(this.§_-5m§)]); + this.plane.setMaterialToAllSurfaces(this.frames[int(this.var_472)]); this.plane.scaleX = this.size; this.plane.scaleY = this.size; var dt:Number = TimeSystem.timeDeltaSeconds; this.size += this.sizeGrowSpeed * dt; - this.§_-5m§ += this.fps * dt; + this.var_472 += this.fps * dt; return true; } diff --git a/src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as b/src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as index 75a4377..98c478d 100644 --- a/src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as +++ b/src/alternativa/tanks/game/effects/AnimatedSpriteEffect.as @@ -19,7 +19,7 @@ package alternativa.tanks.game.effects private var offsetToCamera:Number; - private var §_-iD§:Number; + private var var_458:Number; private var currFrame:Number; @@ -41,7 +41,7 @@ package alternativa.tanks.game.effects this.initSprite(width,height,rotation,originX,originY); this.frames = frames; this.offsetToCamera = offsetToCamera; - this.§_-iD§ = 0.001 * fps; + this.var_458 = 0.001 * fps; this.position.copy(position); this.loop = loop; this.numFrames = frames.length; @@ -72,7 +72,7 @@ package alternativa.tanks.game.effects 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.§_-iD§ * TimeSystem.timeDelta; + this.currFrame += this.var_458 * TimeSystem.timeDelta; if(this.loop) { while(this.currFrame >= this.numFrames) diff --git a/src/alternativa/tanks/game/effects/Blinker.as b/src/alternativa/tanks/game/effects/Blinker.as index 7db156c..3051fb6 100644 --- a/src/alternativa/tanks/game/effects/Blinker.as +++ b/src/alternativa/tanks/game/effects/Blinker.as @@ -18,11 +18,11 @@ package alternativa.tanks.game.effects private var speed:Number; - private var §_-Jr§:Number; + private var var_737:Number; - private var §_-KH§:int; + private var var_738:int; - private var §_-EE§:int; + private var var_736:int; public function Blinker(initialInterval:int, minInterval:int, intervalDecrement:int, minValue:Number, maxValue:Number, speedCoeff:Number) { @@ -33,15 +33,15 @@ package alternativa.tanks.game.effects this.minValue = minValue; this.maxValue = maxValue; this.speedCoeff = speedCoeff; - this.§_-Jr§ = maxValue - minValue; + this.var_737 = maxValue - minValue; } public function init(now:int) : void { this.value = this.maxValue; - this.§_-EE§ = this.initialInterval; + this.var_736 = this.initialInterval; this.speed = this.getSpeed(-1); - this.§_-KH§ = now + this.§_-EE§; + this.var_738 = now + this.var_736; } public function setMaxValue(value:Number) : void @@ -51,7 +51,7 @@ package alternativa.tanks.game.effects return; } this.maxValue = value; - this.§_-Jr§ = this.maxValue - this.minValue; + this.var_737 = this.maxValue - this.minValue; } public function setMinValue(value:Number) : void @@ -61,7 +61,7 @@ package alternativa.tanks.game.effects return; } this.minValue = value; - this.§_-Jr§ = this.maxValue - this.minValue; + this.var_737 = this.maxValue - this.minValue; } public function updateValue(now:int, delta:int) : Number @@ -75,17 +75,17 @@ package alternativa.tanks.game.effects { this.value = this.minValue; } - if(now >= this.§_-KH§) + if(now >= this.var_738) { - if(this.§_-EE§ > this.minInterval) + if(this.var_736 > this.minInterval) { - this.§_-EE§ -= this.intervalDecrement; - if(this.§_-EE§ < this.minInterval) + this.var_736 -= this.intervalDecrement; + if(this.var_736 < this.minInterval) { - this.§_-EE§ = this.minInterval; + this.var_736 = this.minInterval; } } - this.§_-KH§ = now + this.§_-EE§; + this.var_738 = now + this.var_736; if(this.speed < 0) { this.speed = this.getSpeed(1); @@ -100,7 +100,7 @@ package alternativa.tanks.game.effects private function getSpeed(direction:Number) : Number { - return direction * this.speedCoeff * this.§_-Jr§ / this.§_-EE§; + return direction * this.speedCoeff * this.var_737 / this.var_736; } } } diff --git a/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as b/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as index 6ec0c03..cf04dfd 100644 --- a/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as +++ b/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as @@ -15,7 +15,7 @@ package alternativa.tanks.game.effects { private var sprite:Sprite3D; - private var §_-iD§:Number; + private var var_458:Number; private var currFrame:Number; @@ -40,7 +40,7 @@ package alternativa.tanks.game.effects { this.initSprite(width,height,rotation,originX,originY); this.frames = frames; - this.§_-iD§ = 0.001 * fps; + this.var_458 = 0.001 * fps; this.position.copy(position); this.velocity.copy(velocity); this.acceleration = acceleration; @@ -86,7 +86,7 @@ package alternativa.tanks.game.effects this.velocity.z *= speed; } this.sprite.material = this.frames[int(this.currFrame)]; - this.currFrame += this.§_-iD§ * TimeSystem.timeDelta; + this.currFrame += this.var_458 * TimeSystem.timeDelta; if(this.loop) { while(this.currFrame >= this.numFrames) diff --git a/src/alternativa/tanks/game/entities/EventStates.as b/src/alternativa/tanks/game/entities/EventStates.as index 5fd27d9..311a698 100644 --- a/src/alternativa/tanks/game/entities/EventStates.as +++ b/src/alternativa/tanks/game/entities/EventStates.as @@ -4,34 +4,34 @@ package alternativa.tanks.game.entities public class EventStates { - public var §_-Ah§:IComponentState; + public var name_371:IComponentState; - private var §_-eB§:Object; + private var var_619:Object; public function EventStates() { super(); - this.§_-eB§ = new Object(); + this.var_619 = new Object(); } public function setEventState(entity:Entity, eventType:String, eventState:IComponentState) : void { - if(this.§_-eB§[eventType] != null) + if(this.var_619[eventType] != null) { throw new Error("Duplicate event type: " + eventType); } - this.§_-eB§[eventType] = eventState; + this.var_619[eventType] = eventState; entity.addEventHandler(eventType,this.onEvent); } public function onEvent(eventName:String, data:*) : void { - var newState:IComponentState = this.§_-eB§[eventName]; - if(newState != this.§_-Ah§) + var newState:IComponentState = this.var_619[eventName]; + if(newState != this.name_371) { - this.§_-Ah§.stop(); - this.§_-Ah§ = newState; - this.§_-Ah§.start(data); + this.name_371.stop(); + this.name_371 = newState; + this.name_371.start(data); } } } diff --git a/src/alternativa/tanks/game/entities/map/A3DMapComponent.as b/src/alternativa/tanks/game/entities/map/A3DMapComponent.as index 82bcaad..1c4f7f9 100644 --- a/src/alternativa/tanks/game/entities/map/A3DMapComponent.as +++ b/src/alternativa/tanks/game/entities/map/A3DMapComponent.as @@ -26,7 +26,7 @@ package alternativa.tanks.game.entities.map 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.physics.collision.primitives.name_311; import alternativa.tanks.game.EntityComponent; import alternativa.tanks.game.GameKernel; import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; @@ -53,15 +53,15 @@ package alternativa.tanks.game.entities.map private var skyboxSize:Number; - private var §_-Zy§:A3DMapBuilder; + private var var_89:A3DMapBuilder; private var gameKernel:GameKernel; - private var §_-9h§:Number = 1.5; + private var var_90:Number = 1.5; private var listener:IA3DMapComponentListener; - private var §_-RZ§:Boolean = true; + private var var_91:Boolean = true; public function A3DMapComponent(files:ByteArrayMap, skyboxFiles:ByteArrayMap, skyboxSize:Number, listener:IA3DMapComponentListener) { @@ -124,13 +124,13 @@ package alternativa.tanks.game.entities.map var light:Light3D = null; var renderSystem:RenderSystem = gameKernel.getRenderSystem(); var mapGeometryContainer:Object3D = renderSystem.getMapGeometryContainer(); - for each(object in this.§_-Zy§.objects) + for each(object in this.var_89.objects) { mapGeometryContainer.removeChild(object); } renderSystem.releaseResources(mapGeometryContainer.getResources(true)); lights = renderSystem.lights; - for each(light in this.§_-Zy§.lights) + for each(light in this.var_89.lights) { if(light is DirectionalLight) { @@ -155,9 +155,9 @@ package alternativa.tanks.game.entities.map private function buildRealMap() : void { - this.§_-Zy§ = new A3DMapBuilder(); - this.§_-Zy§.addEventListener(Event.COMPLETE,this.onBuildingComplete); - this.§_-Zy§.buildMap(this.files); + this.var_89 = new A3DMapBuilder(); + this.var_89.addEventListener(Event.COMPLETE,this.onBuildingComplete); + this.var_89.buildMap(this.files); } private function onBuildingComplete(event:Event) : void @@ -188,7 +188,7 @@ package alternativa.tanks.game.entities.map } var renderSystem:RenderSystem = this.gameKernel.getRenderSystem(); var lights:Lights = renderSystem.lights; - for each(light in this.§_-Zy§.lights) + for each(light in this.var_89.lights) { if(light is DirectionalLight) { @@ -236,7 +236,7 @@ package alternativa.tanks.game.entities.map var object:Object3D = null; var renderSystem:RenderSystem = this.gameKernel.getRenderSystem(); var mapGeometryContainer:Object3D = renderSystem.getMapGeometryContainer(); - for each(object in this.§_-Zy§.objects) + for each(object in this.var_89.objects) { mapGeometryContainer.addChild(object); } @@ -252,11 +252,11 @@ package alternativa.tanks.game.entities.map var renderSystem:RenderSystem = null; var physicsContainer:Object3D = null; var physicsSystem:PhysicsSystem = this.gameKernel.getPhysicsSystem(); - physicsSystem.initCollisionGeometry(this.§_-Zy§.collisionPrimitives); + physicsSystem.initCollisionGeometry(this.var_89.collisionPrimitives); if(this.gameKernel.options[MapOptions.VISUALIZE_PHYSICS] != null) { renderSystem = this.gameKernel.getRenderSystem(); - physicsContainer = this.createPhysicsVisualObjects(this.§_-Zy§.collisionPrimitives); + physicsContainer = this.createPhysicsVisualObjects(this.var_89.collisionPrimitives); physicsContainer.visible = false; renderSystem.addContainer(PHYSICS_GEOMETRY,physicsContainer,true); } @@ -272,9 +272,9 @@ package alternativa.tanks.game.entities.map for(var i:int = 0; i < numCollisionPrimitives; ) { collisionPrimitive = collisionPrimitives[i]; - if(collisionPrimitive is §_-m3§) + if(collisionPrimitive is name_311) { - physicsVisualContainer.addChild(this.createPhysicsVisualBox(§_-m3§(collisionPrimitive),boxMaterial)); + physicsVisualContainer.addChild(this.createPhysicsVisualBox(name_311(collisionPrimitive),boxMaterial)); } else if(collisionPrimitive is CollisionTriangle) { @@ -285,7 +285,7 @@ package alternativa.tanks.game.entities.map return physicsVisualContainer; } - private function createPhysicsVisualBox(collisionBox:§_-m3§, material:Material) : Box + private function createPhysicsVisualBox(collisionBox:name_311, material:Material) : Box { var size:Vector3 = collisionBox.hs.clone().scale(2); var box:Box = new Box(size.x,size.y,size.z); @@ -385,27 +385,27 @@ package alternativa.tanks.game.entities.map private function toggleDecals() : void { var d:Decal = null; - this.§_-RZ§ = !this.§_-RZ§; - for each(d in this.§_-Zy§.decals) + this.var_91 = !this.var_91; + for each(d in this.var_89.decals) { - d.visible = this.§_-RZ§; + d.visible = this.var_91; } } private function get decalsOffset() : Number { - return this.§_-9h§; + return this.var_90; } private function set decalsOffset(value:Number) : void { var decal:Decal = null; - this.§_-9h§ = value; - for each(decal in this.§_-Zy§.decals) + this.var_90 = value; + for each(decal in this.var_89.decals) { - decal.offset = this.§_-9h§; + decal.offset = this.var_90; } - IConsole(OSGi.getInstance().getService(IConsole)).addText("Decals offset: " + this.§_-9h§); + IConsole(OSGi.getInstance().getService(IConsole)).addText("Decals offset: " + this.var_90); } private function toggleGeometry(containerId:String) : void diff --git a/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as b/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as index 07fd078..532200f 100644 --- a/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as +++ b/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as @@ -57,7 +57,7 @@ package alternativa.tanks.game.entities.map } } - private function final(targetObject:Object3D) : ShaderProgram + private function method_22(targetObject:Object3D) : ShaderProgram { var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); @@ -105,11 +105,11 @@ package alternativa.tanks.game.entities.map var program:ShaderProgram = _programs[object.alternativa3d::transformProcedure]; if(program == null) { - program = this.final(object); + program = this.method_22(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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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]); diff --git a/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as b/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as index cf34b77..2d4d6fa 100644 --- a/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as +++ b/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as @@ -17,11 +17,11 @@ package alternativa.tanks.game.entities.tank private var enabled:Boolean; - private var §_-lp§:IBasicWeapon; + private var var_442:IBasicWeapon; - private var §_-89§:Boolean; + private var var_508:Boolean; - private var §_-ZM§:Boolean; + private var var_507:Boolean; public function BasicWeaponManualControlComponent() { @@ -30,7 +30,7 @@ package alternativa.tanks.game.entities.tank override public function initComponent() : void { - this.§_-lp§ = IBasicWeapon(entity.getComponentStrict(IBasicWeapon)); + this.var_442 = 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); @@ -57,20 +57,20 @@ package alternativa.tanks.game.entities.tank public function runLogic() : void { - if(this.§_-89§) + if(this.var_508) { - this.§_-lp§.pullTrigger(); - if(this.§_-ZM§) + this.var_442.pullTrigger(); + if(this.var_507) { - this.§_-lp§.forceUpdate(); + this.var_442.forceUpdate(); } } - if(this.§_-ZM§) + if(this.var_507) { - this.§_-lp§.releaseTrigger(); + this.var_442.releaseTrigger(); } - this.§_-89§ = false; - this.§_-ZM§ = false; + this.var_508 = false; + this.var_507 = false; } private function onKey(eventType:KeyboardEventType, keyCode:uint) : void @@ -78,18 +78,18 @@ package alternativa.tanks.game.entities.tank switch(eventType) { case KeyboardEventType.KEY_DOWN: - this.§_-89§ = true; + this.var_508 = true; if(!this.enabled) { - this.§_-ZM§ = false; + this.var_507 = false; } break; case KeyboardEventType.KEY_UP: - this.§_-ZM§ = true; + this.var_507 = true; if(!this.enabled) { - this.§_-lp§.releaseTrigger(); - this.§_-89§ = false; + this.var_442.releaseTrigger(); + this.var_508 = false; break; } } diff --git a/src/alternativa/tanks/game/entities/tank/TankHull.as b/src/alternativa/tanks/game/entities/tank/TankHull.as index d93b985..bd900e8 100644 --- a/src/alternativa/tanks/game/entities/tank/TankHull.as +++ b/src/alternativa/tanks/game/entities/tank/TankHull.as @@ -7,31 +7,31 @@ package alternativa.tanks.game.entities.tank public class TankHull extends TankPart { - public var §_-Sh§:Vector3 = new Vector3(); + public var name_400:Vector3 = new Vector3(); - public var §_-Rj§:Vector3 = new Vector3(); + public var name_395:Vector3 = new Vector3(); - public var §_-EN§:Vector3 = new Vector3(); + public var name_398:Vector3 = new Vector3(); - public var §_-eh§:BoxData; + public var name_388:BoxData; - public var §_-AE§:Vector. = new Vector.(); + public var name_396:Vector. = new Vector.(); - public var §_-KR§:Vector. = new Vector.(); + public var name_397:Vector. = new Vector.(); - public var §_-j9§:Vector. = new Vector.(); + public var name_401:Vector. = new Vector.(); - public var §_-Hd§:Vector. = new Vector.(); + public var name_399:Vector. = new Vector.(); - public var §_-DH§:Number = 1; + public var name_437:Number = 1; - public var §_-EY§:Vector. = new Vector.(); + public var name_247:Vector. = new Vector.(); - public var §_-M4§:Vector. = new Vector.(); + public var name_245:Vector. = new Vector.(); - public var §_-Ei§:Skin; + public var name_261:Skin; - public var §_-iA§:Skin; + public var name_266:Skin; public var shadow:Mesh; diff --git a/src/alternativa/tanks/game/entities/tank/TankTurret.as b/src/alternativa/tanks/game/entities/tank/TankTurret.as index be12f4a..e3280b1 100644 --- a/src/alternativa/tanks/game/entities/tank/TankTurret.as +++ b/src/alternativa/tanks/game/entities/tank/TankTurret.as @@ -5,11 +5,11 @@ package alternativa.tanks.game.entities.tank public class TankTurret extends TankPart { - public var §_-Of§:Vector. = new Vector.(); + public var var_423:Vector. = new Vector.(); - public var §_-O3§:Vector. = new Vector.(); + public var var_422:Vector. = new Vector.(); - public var §_-G3§:Vector3 = new Vector3(); + public var var_421:Vector3 = new Vector3(); public function TankTurret() { diff --git a/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as b/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as index 5a30feb..9448637 100644 --- a/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as +++ b/src/alternativa/tanks/game/entities/tank/TrackedChassisManualControlComponent.as @@ -33,7 +33,7 @@ package alternativa.tanks.game.entities.tank private var enabled:Boolean; - private var §_-de§:int; + private var var_503:int; public function TrackedChassisManualControlComponent(callback:IChassisManualControlCallback) { @@ -67,13 +67,13 @@ package alternativa.tanks.game.entities.tank { 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(Boolean(this.physicsComponent.setChassisControls(moveDirection,turnDirection,Boolean(conReverseBackTurn.value))) || TimeSystem.time - this.var_503 > SYNC_INTERVAL) { if(this.callback != null) { this.callback.onControlChanged(moveDirection,turnDirection,Boolean(conReverseBackTurn.value)); } - this.§_-de§ = TimeSystem.time; + this.var_503 = TimeSystem.time; } } diff --git a/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as b/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as index 215dcf9..3de70fc 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/DirectionalShadowRendererConstructor.as @@ -35,7 +35,7 @@ package alternativa.tanks.game.entities.tank.graphics textureSize = 256; pcfSize = 4; directionalShadowRenderer = new DirectionalShadowRenderer(this.renderSystem.getContext3D(),textureSize,worldSize,pcfSize); - directionalShadowRenderer.§_-qg§ = this.object; + directionalShadowRenderer.var_235 = 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 index fa37cb1..dc34c84 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as @@ -14,13 +14,13 @@ package alternativa.tanks.game.entities.tank.graphics public class GraphicsControlComponent extends EntityComponent implements IRenderer { - private var §_-z§:EventStates; + private var var_424:EventStates; private var components:Vector.; - private var §case §:Boolean; + private var var_426:Boolean; - private var §_-DV§:Boolean; + private var var_425:Boolean; private var alpha:Number = 1; @@ -34,13 +34,13 @@ package alternativa.tanks.game.entities.tank.graphics 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)); + this.var_424 = new EventStates(); + this.var_424.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,new ActivatingState(this)); + this.var_424.setEventState(entity,TankEvents.SET_ACTIVE_STATE,new ActiveState(this)); + this.var_424.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; + this.var_424.setEventState(entity,TankEvents.SET_RESPAWN_STATE,respawnState); + this.var_424.name_371 = EmptyState.INSTANCE; } override public function addToGame(gameKernel:GameKernel) : void @@ -52,7 +52,7 @@ package alternativa.tanks.game.entities.tank.graphics { var tankGraphicsComponent:ITankGraphicsComponent = null; var renderSystem:RenderSystem = null; - if(!this.§case §) + if(!this.var_426) { for each(tankGraphicsComponent in this.components) { @@ -60,25 +60,25 @@ package alternativa.tanks.game.entities.tank.graphics } renderSystem = this.gameKernel.getRenderSystem(); renderSystem.addRenderer(this); - this.§case § = true; + this.var_426 = true; } - this.§_-DV§ = false; + this.var_425 = false; this.alpha = 1; } public function removeFromScene() : void { - if(this.§case §) + if(this.var_426) { - this.§_-DV§ = true; + this.var_425 = true; } } public function doRemoveFromScene() : void { var tankGraphicsComponent:ITankGraphicsComponent = null; - this.§_-DV§ = false; - this.§case § = false; + this.var_425 = false; + this.var_426 = false; for each(tankGraphicsComponent in this.components) { tankGraphicsComponent.removeFromScene(); @@ -103,7 +103,7 @@ package alternativa.tanks.game.entities.tank.graphics public function render() : void { var tankGraphicsComponent:ITankGraphicsComponent = null; - if(this.§_-DV§) + if(this.var_425) { if(this.alpha == 0) { diff --git a/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as index ead717f..53410cb 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/TankExplosionComponent.as @@ -99,7 +99,7 @@ package alternativa.tanks.game.entities.tank.graphics } effect = AnimatedPlaneEffect(this.gameKernel.getObjectPoolManager().getObject(AnimatedPlaneEffect)); effect.init(actualSize,position,rotation,this.shockWaveFrames,SHOCK_WAVE_FPS,this.shockWaveGrowSpeed); - this.gameKernel.getRenderSystem().each(effect); + this.gameKernel.getRenderSystem().method_21(effect); } } @@ -110,7 +110,7 @@ package alternativa.tanks.game.entities.tank.graphics 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); + this.gameKernel.getRenderSystem().method_21(animatedSpriteEffect); } private function createSmoke(chassisPhysicsComponent:IChassisPhysicsComponent) : void @@ -136,7 +136,7 @@ package alternativa.tanks.game.entities.tank.graphics 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); + this.gameKernel.getRenderSystem().method_21(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 index c37016f..3fe3e79 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackAnimator.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackAnimator.as @@ -14,15 +14,15 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked private var wheels:Vector.; - private var §_-9d§:Vector.; + private var var_646:Vector.; - private var §_-MZ§:Vector.; + private var var_647:Vector.; - private var §_-oo§:Vector.; + private var var_648:Vector.; private var dUdY:Number; - private var §_-cr§:Number = 0; + private var var_645:Number = 0; private var trackSkin:Skin; @@ -33,10 +33,10 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked this.wheels = wheels; this.dUdY = dUdY; this.physicsComponent = this.physicsComponent; - this.§_-oo§ = new Vector.(wheels.length); + this.var_648 = new Vector.(wheels.length); for(var i:int = 0; i < wheels.length; i++) { - this.§_-oo§[i] = wheels[i].boundBox.maxY; + this.var_648[i] = wheels[i].boundBox.maxY; } this.initZCoords(); } @@ -53,32 +53,32 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked for(var i:int = 0; i < numWheels; ) { wheelMesh = this.wheels[i]; - wheelMesh.rotationX -= ds / this.§_-oo§[i]; + wheelMesh.rotationX -= ds / this.var_648[i]; wheelDeltaZ = Number(this.physicsComponent.getWheelDeltaZ(wheelMesh.name)); - wheelMesh.z = this.§_-9d§[i] + wheelDeltaZ; + wheelMesh.z = this.var_646[i] + wheelDeltaZ; bone = this.trackSkin.getChildByName(this.getBoneName(wheelMesh.name)); if(bone != null) { - bone.z = this.§_-MZ§[i] + wheelDeltaZ; + bone.z = this.var_647[i] + wheelDeltaZ; } i++; } if(period > 0) { delta = ds * this.dUdY; - newOffset = this.§_-cr§ + delta; + newOffset = this.var_645 + delta; if(newOffset < 0) { while(newOffset < 0) { newOffset += period; } - delta = newOffset - this.§_-cr§; - this.§_-cr§ = newOffset; + delta = newOffset - this.var_645; + this.var_645 = newOffset; } else if(newOffset < period) { - this.§_-cr§ = newOffset; + this.var_645 = newOffset; } else { @@ -86,25 +86,25 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked { newOffset -= period; } - delta = newOffset - this.§_-cr§; - this.§_-cr§ = newOffset; + delta = newOffset - this.var_645; + this.var_645 = newOffset; } - this.material.vOffset = this.§_-cr§; + this.material.vOffset = this.var_645; } } private function initZCoords() : void { var bone:Object3D = null; - this.§_-9d§ = new Vector.(this.wheels.length); - this.§_-MZ§ = new Vector.(this.wheels.length); + this.var_646 = new Vector.(this.wheels.length); + this.var_647 = new Vector.(this.wheels.length); for(var i:int = 0; i < this.wheels.length; ) { - this.§_-9d§[i] = this.wheels[i].z; + this.var_646[i] = this.wheels[i].z; bone = this.trackSkin.getChildByName(this.getBoneName(this.wheels[i].name)); if(bone != null) { - this.§_-MZ§[i] = bone.z; + this.var_647[i] = bone.z; } i++; } 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 index 2431796..d5f2d76 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackedChassisGraphicsComponent.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/chassis/tracked/TrackedChassisGraphicsComponent.as @@ -40,7 +40,7 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked private var hull:TankHull; - private var §_-nh§:Mesh; + private var var_488:Mesh; private var hullMaterials:TankPartMaterials; @@ -50,23 +50,23 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked private var gameKernel:GameKernel; - private var §_-Gf§:TextureMaterial; + private var var_233:TextureMaterial; - private var §_-EY§:Vector.; + private var name_247:Vector.; - private var §_-M4§:Vector.; + private var name_245:Vector.; - private var §_-Ei§:Skin; + private var name_261:Skin; - private var §_-iA§:Skin; + private var name_266:Skin; - private var §_-dh§:TrackAnimator; + private var var_489:TrackAnimator; - private var §_-R4§:TrackAnimator; + private var var_490:TrackAnimator; private var shadowRenderer:DirectionalShadowRenderer; - private var §_-5s§:DirectionalShadowRendererConstructor; + private var var_491:DirectionalShadowRendererConstructor; public function TrackedChassisGraphicsComponent(hull:TankHull) { @@ -81,10 +81,10 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked 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); + this.var_489.material = TracksMaterial2(tracksMaterial.clone()); + this.name_261.setMaterialToAllSurfaces(this.var_489.material); + this.var_490.material = TracksMaterial2(tracksMaterial.clone()); + this.name_266.setMaterialToAllSurfaces(this.var_490.material); } public function setShadowMaterial(material:GiShadowMaterial) : void @@ -97,13 +97,13 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked public function getObject3D() : Object3D { - return this.§_-nh§; + return this.var_488; } public function setShadowRenderer(shadowRenderer:DirectionalShadowRenderer) : void { this.shadowRenderer = shadowRenderer; - this.§_-5s§ = null; + this.var_491 = null; if(this.container != null) { this.gameKernel.getRenderSystem().addShadowRenderer(shadowRenderer); @@ -119,22 +119,22 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked } if(this.hull != null && this.container != null) { - this.container.removeChild(this.§_-nh§); + this.container.removeChild(this.var_488); } 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); + this.var_488 = new Mesh(); + 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_247 = this.createWheels(this.var_488,this.hull.name_247); + this.name_245 = this.createWheels(this.var_488,this.hull.name_245); + this.name_261 = this.createTrackMesh(this.hull.name_261,this.var_488); + this.name_266 = this.createTrackMesh(this.hull.name_266,this.var_488); + dUdY = this.getRatio(this.name_261); + this.var_489 = new TrackAnimator(this.name_261,this.name_247,dUdY); + this.var_490 = new TrackAnimator(this.name_266,this.name_245,dUdY); if(this.hull.shadow != null) { this.shadow = new Decal(100); @@ -146,7 +146,7 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked } if(this.container != null) { - this.container.addChild(this.§_-nh§); + this.container.addChild(this.var_488); } } } @@ -234,7 +234,7 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked wheelMesh = new Mesh(); wheelMesh.name = tankWheel.name; wheelMesh.geometry = tankWheel.geometry; - wheelMesh.addSurface(this.§_-Gf§,0,wheelMesh.geometry.numTriangles); + wheelMesh.addSurface(this.var_233,0,wheelMesh.geometry.numTriangles); wheelMesh.calculateBoundBox(); position = tankWheel.position; wheelMesh.x = position.x; @@ -254,7 +254,7 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked public function get visible() : Boolean { - return this.§_-nh§.visible; + return this.var_488.visible; } public function addToScene() : void @@ -264,9 +264,9 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked { renderSystem = this.gameKernel.getRenderSystem(); this.container = renderSystem.getDynamicObjectsContainer(); - if(this.§_-nh§ != null) + if(this.var_488 != null) { - this.container.addChild(this.§_-nh§); + this.container.addChild(this.var_488); if(this.shadowRenderer != null) { renderSystem.addShadowRenderer(this.shadowRenderer); @@ -280,9 +280,9 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked { if(this.container != null) { - if(this.§_-nh§ != null) + if(this.var_488 != null) { - this.container.removeChild(this.§_-nh§); + this.container.removeChild(this.var_488); if(this.shadowRenderer != null) { this.gameKernel.getRenderSystem().removeShadowRenderer(this.shadowRenderer); @@ -295,39 +295,39 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked public function get hullMesh() : Mesh { - return this.§_-nh§; + return this.var_488; } 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; + 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.getRenderSystem(); - this.§_-5s§ = new DirectionalShadowRendererConstructor(this.§_-nh§,renderSystem,this); + this.var_491 = new DirectionalShadowRendererConstructor(this.var_488,renderSystem,this); if(renderSystem.isShadowSystemReady()) { - this.§_-5s§.createShadowRenderer(); - this.§_-5s§ = null; + this.var_491.createShadowRenderer(); + this.var_491 = null; } else { - renderSystem.addShadowRendererConstructor(this.§_-5s§); + renderSystem.addShadowRendererConstructor(this.var_491); } } override public function removeFromGame(gameKernel:GameKernel) : void { - if(this.§_-5s§ != null) + if(this.var_491 != null) { - gameKernel.getRenderSystem().removeShadowRendererConstructor(this.§_-5s§); - this.§_-5s§ = null; + gameKernel.getRenderSystem().removeShadowRendererConstructor(this.var_491); + this.var_491 = null; } this.removeFromScene(); gameKernel = null; @@ -340,26 +340,26 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked return; } hullMatrix.toIdentity(); - hullMatrix.setPosition(this.hull.§_-Sh§); - hullMatrix.append(this.physicsComponent.§_-YH§); + hullMatrix.setPosition(this.hull.name_400); + hullMatrix.append(this.physicsComponent.var_483); 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.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.animateTracks(); } private function animateTracks() : void { var dt:Number = NaN; - if(this.§_-dh§ != null) + if(this.var_489 != null) { dt = TimeSystem.timeDeltaSeconds; - this.§_-dh§.animate(this.hull.§_-DH§,this.physicsComponent.getLeftTrackSpeed(),dt); - this.§_-R4§.animate(this.hull.§_-DH§,this.physicsComponent.getRightTrackSpeed(),dt); + this.var_489.animate(this.hull.name_437,this.physicsComponent.getLeftTrackSpeed(),dt); + this.var_490.animate(this.hull.name_437,this.physicsComponent.getRightTrackSpeed(),dt); } } @@ -369,53 +369,53 @@ package alternativa.tanks.game.entities.tank.graphics.chassis.tracked { 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; + 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 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; + 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 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; + 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.§_-EY§.length); + var numWheels:int = int(this.name_247.length); for(var i:int = 0; i < numWheels; i++) { - this.§_-EY§[i].setMaterialToAllSurfaces(this.§_-Gf§); - this.§_-M4§[i].setMaterialToAllSurfaces(this.§_-Gf§); + this.name_247[i].setMaterialToAllSurfaces(this.var_233); + this.name_245[i].setMaterialToAllSurfaces(this.var_233); } } public function setAlpha(value:Number) : void { - this.§_-Gf§.alpha = value; - this.§_-dh§.material.alpha = value; - this.§_-R4§.material.alpha = value; + this.var_233.alpha = value; + this.var_489.material.alpha = value; + this.var_490.material.alpha = value; } private function enableMouseListeners() : void { - if(this.§_-nh§ != null) + if(this.var_488 != null) { - this.§_-nh§.addEventListener(MouseEvent3D.CLICK,this.onMouseClick); + this.var_488.addEventListener(MouseEvent3D.CLICK,this.onMouseClick); } } private function disableMouseListeners() : void { - if(this.§_-nh§ != null) + if(this.var_488 != null) { - this.§_-nh§.removeEventListener(MouseEvent3D.CLICK,this.onMouseClick); + this.var_488.removeEventListener(MouseEvent3D.CLICK,this.onMouseClick); } } 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 077e8a2..6d505b2 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as @@ -83,7 +83,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials } } - private function final(object:Object3D) : ShaderProgram + private function method_22(object:Object3D) : ShaderProgram { var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; @@ -152,7 +152,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials if(programs == null) { programs = new Vector.(3,true); - program = this.final(object); + program = this.method_22(object); program.upload(camera.alternativa3d::context3D); programs[fogMode] = program; _programs[object.alternativa3d::transformProcedure] = programs; @@ -162,12 +162,12 @@ package alternativa.tanks.game.entities.tank.graphics.materials program = programs[fogMode]; if(program == null) { - program = this.final(object); + program = this.method_22(object); program.upload(camera.alternativa3d::context3D); programs[fogMode] = program; } } - var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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); 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 0a11161..546e9b8 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial.as @@ -95,19 +95,19 @@ package alternativa.tanks.game.entities.tank.graphics.materials public var surfaceMap:TextureResource; - public var §_-jM§:Number = 1; + public var var_25:Number = 1; - public var §_-Sf§:Number = 1; + public var var_24:Number = 1; - public var §_-d4§:Number = 1; + public var var_23:Number = 1; public var normalMap:TextureResource; public var glossiness:Number = 100; - public var §_-kj§:Number = 1; + public var var_26:Number = 1; - alternativa3d var §_-Vr§:Boolean = false; + alternativa3d var var_22:Boolean = false; public function TankMaterial(colorMap:TextureResource = null, diffuseMap:TextureResource = null, normalMap:TextureResource = null, surfaceMap:TextureResource = null) { @@ -131,7 +131,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { } - private function final(targetObject:Object3D, lights:Vector., directional:DirectionalLight, lightsLength:int) : ShaderProgram + private function method_22(targetObject:Object3D, lights:Vector., directional:DirectionalLight, lightsLength:int) : ShaderProgram { var i:int = 0; var procedure:Procedure = null; @@ -194,7 +194,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials vertexLinker.addProcedure(_passVaryingsProcedure); vertexLinker.setInputParams(_passVaryingsProcedure,positionVar); fragmentLinker.declareVariable("tViewVector"); - if(this.alternativa3d::_-Vr) + if(this.alternativa3d::var_22) { vertexLinker.addProcedure(_passTBNProcedure); vertexLinker.setInputParams(_passTBNProcedure,tangentVar,normalVar); @@ -238,12 +238,12 @@ package alternativa.tanks.game.entities.tank.graphics.materials } 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.compileFromArray(["#c0=c" + light.alternativa3d::name_79 + "Position","#c1=c" + light.alternativa3d::name_79 + "Color","#c2=c" + light.alternativa3d::name_79 + "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.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.compileFromArray(["#c0=c" + light.alternativa3d::name_79 + "Position","#c1=c" + light.alternativa3d::name_79 + "Color","#c2=c" + light.alternativa3d::name_79 + "Radius","#c3=c" + light.alternativa3d::name_79 + "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"; } } @@ -264,7 +264,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials fragmentLinker.addProcedure(_applySpecularProcedure); fragmentLinker.setOutputParams(_applySpecularProcedure,"tTotalHighLight"); } - if(§_-L4§) + if(var_21) { fragmentLinker.addProcedure(_mulLightingProcedureWithDiffuseAlpha); fragmentLinker.setInputParams(_mulLightingProcedureWithDiffuseAlpha,"tTotalLight","tTotalHighLight","outColor"); @@ -300,7 +300,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials 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, c0.xyz","sat t0.x, t0.x"]; + var source:Array = ["#c0=c" + light.alternativa3d::name_79 + "Direction","#c1=c" + light.alternativa3d::name_79 + "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"); @@ -374,7 +374,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { return; } - if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!var_21 && opacityMap != null && opacityMap.alternativa3d::_texture == null) { return; } @@ -392,7 +392,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials return; } lightsLength = lightsLength > 5 ? 5 : lightsLength; - var key:String = fogMode.toString() + (this.alternativa3d::_-Vr ? "T" : "t") + (opacityMap != null ? "O" : "o") + (this.surfaceMap != null ? "S" : "s") + (§_-L4§ ? "D" : "d"); + var key:String = fogMode.toString() + (this.alternativa3d::var_22 ? "T" : "t") + (opacityMap != null ? "O" : "o") + (this.surfaceMap != null ? "S" : "s") + (var_21 ? "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::_-oG; + key += light.alternativa3d::name_79; } var dict:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(dict == null) { dict = new Dictionary(); _programs[object.alternativa3d::transformProcedure] = dict; - program = this.final(object,lights,directional,lightsLength); + program = this.method_22(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.final(object,lights,directional,lightsLength); + program = this.method_22(object,lights,directional,lightsLength); program.upload(camera.alternativa3d::context3D); dict[key] = program; } } - var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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("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::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAmbientColor"),this.var_23 * camera.alternativa3d::ambient[0],this.var_23 * camera.alternativa3d::ambient[1],this.var_23 * camera.alternativa3d::ambient[2]); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.var_26,alpha); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cTiling"),this.var_25,this.var_24,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,7 +442,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials } if(lightsLength > 0) { - if(this.alternativa3d::_-Vr) + if(this.alternativa3d::var_22) { 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]); @@ -455,37 +455,37 @@ package alternativa.tanks.game.entities.tank.graphics.materials light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = light as OmniLight; - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is SpotLight) { spot = light as SpotLight; - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "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::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } if(directional != null) { @@ -541,7 +541,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials 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(§_-L4§ || opacityMap != null || alpha < 1) + if(var_21 || opacityMap != null || alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; 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 ad0b282..7319b6f 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TracksMaterial2.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TracksMaterial2.as @@ -99,7 +99,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials public var glossiness:Number = 100; - public var §_-kj§:Number = 1; + public var var_26:Number = 1; 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"); @@ -123,12 +123,12 @@ package alternativa.tanks.game.entities.tank.graphics.materials private static function directionalProcedure(light:Light3D, add:Boolean) : Procedure { - 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"); + return new Procedure(["#c0=c" + light.alternativa3d::name_79 + "Direction","#c1=c" + light.alternativa3d::name_79 + "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:Light3D, add:Boolean) : Procedure { - 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"); + return new Procedure(["#c0=c" + light.alternativa3d::name_79 + "Position","#c1=c" + light.alternativa3d::name_79 + "Color","#c2=c" + light.alternativa3d::name_79 + "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 @@ -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::_-oG; + lightsKey += light.alternativa3d::name_79; actualLightsLength++; } i++; @@ -338,7 +338,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { 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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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) { @@ -440,7 +440,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials 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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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]); @@ -454,26 +454,26 @@ package alternativa.tanks.game.entities.tank.graphics.materials light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = OmniLight(light); - transform = light.alternativa3d::_-cl; + transform = light.alternativa3d::name_80; 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); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } i++; } - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.§_-kj§,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.var_26,1); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sDiffuse"),diffuseMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sBump"),this.normalMap.alternativa3d::_texture); return drawUnit; @@ -528,7 +528,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials var bmd:BitmapData = null; var i:int = 0; 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); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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); @@ -584,7 +584,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials override public function clone() : Material { var cloned:TracksMaterial2 = new TracksMaterial2(diffuseMap,this.normalMap); - cloned.§_-kj§ = this.§_-kj§; + cloned.var_26 = this.var_26; 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 de0fffb..028ad86 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as @@ -38,7 +38,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials alternativa3d::outputDiffuseAlpha = alternativa3d::outputAlpha; 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::_-ES = true; + this.alternativa3d::var_54 = true; } public static function get fogMode() : int @@ -138,9 +138,9 @@ package alternativa.tanks.game.entities.tank.graphics.materials var cloned:TreesMaterial = new TreesMaterial(diffuseMap,normalMap,specularMap,glossinessMap); cloned.opacityMap = opacityMap; cloned.alpha = alpha; - cloned.§_-L4§ = §_-L4§; + cloned.var_21 = var_21; cloned.glossiness = glossiness; - cloned.§_-kj§ = §_-kj§; + cloned.var_26 = var_26; cloned.normalMapSpace = normalMapSpace; cloned.uOffset = this.uOffset; cloned.vOffset = this.vOffset; diff --git a/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as index 83eafe7..cbe2437 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/turret/TurretGraphicsComponent.as @@ -24,13 +24,13 @@ package alternativa.tanks.game.entities.tank.graphics.turret private var turret:TankTurret; - private var §_-Pf§:Mesh; + private var var_231:Mesh; - private var §_-a§:TankPartMaterials; + private var var_232:TankPartMaterials; private var physicsComponent:ITurretPhysicsComponent; - private var §_-Gf§:TextureMaterial; + private var var_233:TextureMaterial; private var renderSystem:RenderSystem; @@ -42,7 +42,7 @@ package alternativa.tanks.game.entities.tank.graphics.turret public function getObject3D() : Object3D { - return this.§_-Pf§; + return this.var_231; } override public function initComponent() : void @@ -60,7 +60,7 @@ package alternativa.tanks.game.entities.tank.graphics.turret trackedChassisGraphicsComponent = TrackedChassisGraphicsComponent(entity.getComponent(TrackedChassisGraphicsComponent)); if(trackedChassisGraphicsComponent != null) { - trackedChassisGraphicsComponent.hullMesh.addChild(this.§_-Pf§); + trackedChassisGraphicsComponent.hullMesh.addChild(this.var_231); } } } @@ -83,10 +83,10 @@ package alternativa.tanks.game.entities.tank.graphics.turret 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(); + 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:MaterialType) : void @@ -94,19 +94,19 @@ package alternativa.tanks.game.entities.tank.graphics.turret switch(materialType) { case MaterialType.DEAD: - this.§_-a§.deadMaterial.alpha = 1; - this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.deadMaterial); - this.§_-Gf§ = this.§_-a§.deadMaterial; + this.var_232.deadMaterial.alpha = 1; + this.var_231.setMaterialToAllSurfaces(this.var_232.deadMaterial); + this.var_233 = this.var_232.deadMaterial; break; case MaterialType.ACTIVATING: - this.§_-a§.normalMaterial.alpha = 0.5; - this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.normalMaterial); - this.§_-Gf§ = this.§_-a§.normalMaterial; + this.var_232.normalMaterial.alpha = 0.5; + this.var_231.setMaterialToAllSurfaces(this.var_232.normalMaterial); + this.var_233 = this.var_232.normalMaterial; break; case MaterialType.NORMAL: - this.§_-a§.normalMaterial.alpha = 1; - this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.normalMaterial); - this.§_-Gf§ = this.§_-a§.normalMaterial; + this.var_232.normalMaterial.alpha = 1; + this.var_231.setMaterialToAllSurfaces(this.var_232.normalMaterial); + this.var_233 = this.var_232.normalMaterial; } } @@ -120,7 +120,7 @@ package alternativa.tanks.game.entities.tank.graphics.turret public function setAlpha(value:Number) : void { - this.§_-Gf§.alpha = value; + this.var_233.alpha = value; } public function setTurret(value:TankTurret) : void @@ -131,27 +131,27 @@ package alternativa.tanks.game.entities.tank.graphics.turret } if(this.turret != null) { - this.§_-Pf§.alternativa3d::removeFromParent(); + this.var_231.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.var_231 = new Mesh(); + this.var_231.geometry = this.turret.geometry; + this.var_231.addSurface(this.var_233,0,this.turret.geometry.numTriangles); + this.var_231.calculateBoundBox(); this.addToChassisSkin(); } } public function setTurretMaterials(materials:TankPartMaterials) : void { - this.§_-a§ = materials; + this.var_232 = materials; } public function get turretMesh() : Mesh { - return this.§_-Pf§; + return this.var_231; } } } diff --git a/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as b/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as index 1203006..8af99e6 100644 --- a/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as +++ b/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as @@ -13,7 +13,7 @@ package alternativa.tanks.game.entities.tank.physics private var gameKernel:GameKernel; - private var §case §:Boolean; + private var var_426:Boolean; public function InterpolationComponent() { @@ -77,19 +77,19 @@ package alternativa.tanks.game.entities.tank.physics private function addToScene() : void { - if(!this.§case §) + if(!this.var_426) { this.gameKernel.getPhysicsSystem().addInterpolationController(this); - this.§case § = true; + this.var_426 = true; } } private function removeFromScene() : void { - if(this.§case §) + if(this.var_426) { this.gameKernel.getPhysicsSystem().removeInterpolationController(this); - this.§case § = false; + this.var_426 = false; } } } 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 index f03533c..d7f8bd9 100644 --- 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 @@ -24,7 +24,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public var collisionMask:int; - public var §_-bv§:Number = 0; + public var name_515:Number = 0; private var body:Body; @@ -34,15 +34,15 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public var worldPos:Vector3 = new Vector3(); - public var §_-Py§:Vector3 = new Vector3(); + public var name_379:Vector3 = new Vector3(); - public var §_-n3§:Boolean = false; + public var name_382:Boolean = false; - public var §_-ZA§:RayHit = new RayHit(); + public var name_385:RayHit = new RayHit(); - private var §_-Du§:Number = 0; + private var var_627:Number = 0; - private var § do§:SimpleRaycastFilter; + private var var_626:SimpleRaycastFilter; public function LegacySuspensionRay(body:Body, relPos:Vector3, relDir:Vector3) { @@ -50,7 +50,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy this.body = body; this.relPos.copy(relPos); this.relDir.copy(relDir); - this.§ do§ = new SimpleRaycastFilter(body); + this.var_626 = new SimpleRaycastFilter(body); } public function getRelativeZ() : Number @@ -72,22 +72,22 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public function calculateIntersection(maxLength:Number) : Boolean { - this.body.baseMatrix.transformVector(this.relDir,this.§_-Py§); + this.body.baseMatrix.transformVector(this.relDir,this.name_379); 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§) + if(this.name_382) { - this.§_-Du§ = maxLength - this.§_-ZA§.t; + this.var_627 = maxLength - this.name_385.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) + this.name_382 = this.body.scene.collisionDetector.raycast(this.worldPos,this.name_379,this.collisionMask,maxLength,this.var_626,this.name_385); + if(this.name_382 && this.name_385.primitive == null) { throw new Error("Ray hit error. Body id = " + this.body.id); } - return this.§_-n3§; + return this.name_382; } public function addForce(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, springCoeff:Number, data:SuspensionData, fwdBrake:Boolean) : void @@ -97,12 +97,12 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var sideFriction:Number = NaN; var frictionForce:Number = NaN; var fwdFriction:Number = NaN; - this.§_-bv§ = 0; - if(!this.§_-n3§) + this.name_515 = 0; + if(!this.name_382) { return; } - _groundUp = this.§_-ZA§.normal; + _groundUp = this.name_385.normal; _v.x = this.body.baseMatrix.b; _v.y = this.body.baseMatrix.f; _v.z = this.body.baseMatrix.j; @@ -125,19 +125,19 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy _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; + _v.x = this.name_385.position.x - state.position.x; + _v.y = this.name_385.position.y - state.position.y; + _v.z = this.name_385.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) + if(this.name_385.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; + bState = this.name_385.primitive.body.state; + _v.x = this.name_385.position.x - bState.position.x; + _v.y = this.name_385.position.y - bState.position.y; + _v.z = this.name_385.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; @@ -145,12 +145,12 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy } 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; + this.name_515 = 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; + _v.x = this.worldPos.x + data.name_518 * this.name_379.x; + _v.y = this.worldPos.y + data.name_518 * this.name_379.y; + _v.z = this.worldPos.z + data.name_518 * this.name_379.z; _force.x = throttle * _groundForward.x; _force.y = throttle * _groundForward.y; _force.z = throttle * _groundForward.z; @@ -159,26 +159,26 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy _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 t:Number = this.name_385.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§; + var springForce:Number = springCoeff * currDisplacement * (_worldUp.x * this.name_385.normal.x + _worldUp.y * this.name_385.normal.y + _worldUp.z * this.name_385.normal.z); + var upSpeed:Number = (currDisplacement - this.var_627) / dt; + springForce += upSpeed * data.name_423; if(springForce < 0) { springForce = 0; } - _force.x = -springForce * this.§_-Py§.x; - _force.y = -springForce * this.§_-Py§.y; - _force.z = -springForce * this.§_-Py§.z; + _force.x = -springForce * this.name_379.x; + _force.y = -springForce * this.name_379.y; + _force.z = -springForce * this.name_379.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§; + sideFriction = slipTerm == 0 || slipSpeed >= 0 && slipTerm > 0 || slipSpeed <= 0 && slipTerm < 0 ? data.name_520 : 2 * data.name_521; frictionForce = sideFriction * springForce * slipSpeed / relSpeed; - if(slipSpeed > -data.§_-d7§ && slipSpeed < data.§_-d7§) + if(slipSpeed > -data.name_519 && slipSpeed < data.name_519) { - frictionForce *= slipSpeed / data.§_-d7§; + frictionForce *= slipSpeed / data.name_519; if(slipSpeed < 0) { frictionForce = -frictionForce; @@ -189,20 +189,20 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy _force.z -= frictionForce * _groundRight.z; if(fwdBrake) { - fwdFriction = 0.3 * data.§_-4W§; + fwdFriction = 0.3 * data.name_520; } else if(fwdSpeed * throttle <= 0) { - fwdFriction = 0.5 * data.§_-4W§; + fwdFriction = 0.5 * data.name_520; } else { - fwdFriction = data.§_-VW§; + fwdFriction = data.name_521; } frictionForce = fwdFriction * springForce * fwdSpeed / relSpeed; - if(fwdSpeed > -data.§_-d7§ && fwdSpeed < data.§_-d7§) + if(fwdSpeed > -data.name_519 && fwdSpeed < data.name_519) { - frictionForce *= fwdSpeed / data.§_-d7§; + frictionForce *= fwdSpeed / data.name_519; if(fwdSpeed < 0) { frictionForce = -frictionForce; @@ -212,9 +212,9 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy _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; + _v.x = this.worldPos.x + data.name_518 * this.name_379.x; + _v.y = this.worldPos.y + data.name_518 * this.name_379.y; + _v.z = this.worldPos.z + data.name_518 * this.name_379.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 index 95ab724..6ad8895 100644 --- 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 @@ -4,17 +4,17 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy { public var rayLength:Number = 0; - public var §_-Fw§:Number = 0; + public var name_420:Number = 0; - public var §_-Ko§:Number = 0; + public var name_518:Number = 0; - public var §_-WZ§:Number = 0; + public var name_423:Number = 0; - public var §_-d7§:Number = 100; + public var name_519:Number = 100; - public var §_-4W§:Number = 3; + public var name_520:Number = 3; - public var §_-VW§:Number = 0.2; + public var name_521:Number = 0.2; public function SuspensionData() { diff --git a/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as b/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as index 940b5be..3928409 100644 --- a/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as +++ b/src/alternativa/tanks/game/entities/tank/physics/turret/TurretPhysicsComponent.as @@ -21,21 +21,21 @@ package alternativa.tanks.game.entities.tank.physics.turret public class TurretPhysicsComponent extends EntityComponent implements ITurretPhysicsComponent, IPhysicsController { - public var §_-JR§:Number; + public var var_430:Number; private var turnDirection:int; private var direction:Number = 0; - private var §_-De§:Number = 0; + private var var_433:Number = 0; private var maxRotationSpeed:Number = 0; private var rotationAcceleration:Number = 0; - private var §_-nr§:Number = 0; + private var var_432:Number = 0; - private var §_-fV§:Boolean; + private var var_434:Boolean; private var chassisComponent:IChassisPhysicsComponent; @@ -45,13 +45,13 @@ package alternativa.tanks.game.entities.tank.physics.turret private var primitives:Vector.; - private var §_-CH§:Vector3; + private var var_431:Vector3; - private var §case §:Boolean; + private var var_426:Boolean; - private var §_-z§:EventStates; + private var var_424:EventStates; - private var §_-pP§:Matrix4 = new Matrix4(); + private var var_429:Matrix4 = new Matrix4(); public function TurretPhysicsComponent(turret:TankTurret, maxRotationSpeed:Number, rotationAcceleration:Number) { @@ -59,7 +59,7 @@ package alternativa.tanks.game.entities.tank.physics.turret this.maxRotationSpeed = maxRotationSpeed; this.rotationAcceleration = rotationAcceleration; this.primitives = new Vector.(); - this.§_-CH§ = new Vector3(); + this.var_431 = new Vector3(); this.setTurret(turret); } @@ -71,57 +71,57 @@ package alternativa.tanks.game.entities.tank.physics.turret override public function initComponent() : void { this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); - this.chassisComponent.getTurretMountPoint(this.§_-CH§); + this.chassisComponent.getTurretMountPoint(this.var_431); 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)); + this.var_424 = new EventStates(); + this.var_424.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; + this.var_424.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,activeState); + this.var_424.setEventState(entity,TankEvents.SET_ACTIVE_STATE,activeState); + this.var_424.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); + this.var_424.name_371 = EmptyState.INSTANCE; entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); } public function getBarrelCount() : int { - return this.turret.§_-O3§.length; + return this.turret.var_422.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); + barrelOrigin.transform4(this.var_429); + this.var_429.getAxis(0,gunElevationAxis); + this.var_429.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); + this.var_429.transformPoint(localMuzzlePoint,muzzlePosition); + this.var_429.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); + barrelOrigin.transform4(this.var_429); + this.var_429.transformPoint(localMuzzlePoint,muzzlePosition); } public function getBarrelLength(barrelIndex:int) : Number { - return this.turret.§_-O3§[barrelIndex].y; + return this.turret.var_422[barrelIndex].y; } public function getInterpolatedTurretDirection() : Number { - return this.§_-JR§; + return this.var_430; } public function getChassisMatrix() : Matrix4 @@ -155,7 +155,7 @@ package alternativa.tanks.game.entities.tank.physics.turret public function setTurretMountPoint(point:Vector3) : void { - this.§_-CH§.copy(point); + this.var_431.copy(point); this.updatePrimitves(); } @@ -177,13 +177,13 @@ package alternativa.tanks.game.entities.tank.physics.turret return false; } this.turnDirection = turretTurnDirection; - this.§_-fV§ = false; + this.var_434 = false; return true; } public function centerTurret(value:Boolean) : void { - this.§_-fV§ = value; + this.var_434 = value; } public function getTurretPrimitives() : Vector. @@ -194,31 +194,31 @@ package alternativa.tanks.game.entities.tank.physics.turret public function updateBeforeSimulation(physicsStep:int) : void { var _loc2_:Number = NaN; - this.§_-De§ = this.direction; - if(!this.§_-fV§ && this.turnDirection == 0) + this.var_433 = this.direction; + if(!this.var_434 && this.turnDirection == 0) { - this.§_-nr§ = 0; + this.var_432 = 0; } else { _loc2_ = 0.001 * physicsStep; - this.§_-nr§ += this.rotationAcceleration * _loc2_; - if(this.§_-nr§ > this.maxRotationSpeed) + this.var_432 += this.rotationAcceleration * _loc2_; + if(this.var_432 > this.maxRotationSpeed) { - this.§_-nr§ = this.maxRotationSpeed; + this.var_432 = this.maxRotationSpeed; } - if(this.§_-fV§) + if(this.var_434) { - this.direction = GameMathUtils.advanceValueTowards(this.direction,0,this.§_-nr§ * _loc2_); + this.direction = GameMathUtils.advanceValueTowards(this.direction,0,this.var_432 * _loc2_); if(this.direction == 0) { - this.§_-fV§ = false; + this.var_434 = false; } this.updatePrimitves(); } else { - this.setTurretDirection(this.direction + this.turnDirection * this.§_-nr§ * _loc2_); + this.setTurretDirection(this.direction + this.turnDirection * this.var_432 * _loc2_); } } } @@ -229,56 +229,56 @@ package alternativa.tanks.game.entities.tank.physics.turret public function interpolate(interpolationCoeff:Number) : void { - var angleDiff:Number = this.direction - this.§_-De§; + var angleDiff:Number = this.direction - this.var_433; if(angleDiff > Math.PI) { angleDiff = 2 * Math.PI - angleDiff; - this.§_-JR§ = this.§_-De§ - angleDiff * interpolationCoeff; - if(this.§_-JR§ < -Math.PI) + this.var_430 = this.var_433 - angleDiff * interpolationCoeff; + if(this.var_430 < -Math.PI) { - this.§_-JR§ += 2 * Math.PI; + this.var_430 += 2 * Math.PI; } } else if(angleDiff < -Math.PI) { angleDiff += 2 * Math.PI; - this.§_-JR§ = this.§_-De§ + angleDiff * interpolationCoeff; - if(this.§_-JR§ > Math.PI) + this.var_430 = this.var_433 + angleDiff * interpolationCoeff; + if(this.var_430 > Math.PI) { - this.§_-JR§ -= 2 * Math.PI; + this.var_430 -= 2 * Math.PI; } } else { - this.§_-JR§ = this.§_-De§ * (1 - interpolationCoeff) + this.direction * interpolationCoeff; + this.var_430 = this.var_433 * (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()); + this.var_429.toIdentity(); + this.var_429.setRotationMatrix(0,0,this.var_430); + this.var_429.setPosition(this.var_431); + this.var_429.append(this.chassisComponent.getInterpolatedMatrix()); } internal function addToScene() : void { - if(!this.§case §) + if(!this.var_426) { this.gameKernel.getPhysicsSystem().addControllerBefore(this); - this.§case § = true; + this.var_426 = true; } } internal function removeFromScene() : void { - if(this.§case §) + if(this.var_426) { this.gameKernel.getPhysicsSystem().removeControllerBefore(this); - this.§case § = false; + this.var_426 = false; } } private function getLocalMuzzlePoint(barrelIndex:int) : Vector3 { - return this.turret.§_-O3§[barrelIndex]; + return this.turret.var_422[barrelIndex]; } private function createTurretPrimitives(collisionGroup:int, collisionMask:int) : void @@ -286,7 +286,7 @@ package alternativa.tanks.game.entities.tank.physics.turret var boxData:BoxData = null; var collisioinBox:TurretCollisioinBox = null; this.primitives.length = 0; - for each(boxData in this.turret.§_-Of§) + for each(boxData in this.turret.var_423) { collisioinBox = new TurretCollisioinBox(boxData.hs,boxData.matrix,collisionGroup,collisionMask); collisioinBox.localTransform = new Matrix4(); @@ -311,9 +311,9 @@ package alternativa.tanks.game.entities.tank.physics.turret 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.d = this.var_431.x; + m.h = this.var_431.y; + m.l = this.var_431.z; m.prepend(collisionPrimitive.m); } } diff --git a/src/alternativa/tanks/game/physics/TurretCollisioinBox.as b/src/alternativa/tanks/game/physics/TurretCollisioinBox.as index 2764a0b..c0e6728 100644 --- a/src/alternativa/tanks/game/physics/TurretCollisioinBox.as +++ b/src/alternativa/tanks/game/physics/TurretCollisioinBox.as @@ -2,9 +2,9 @@ package alternativa.tanks.game.physics { import alternativa.math.Matrix4; import alternativa.math.Vector3; - import alternativa.physics.collision.primitives.§_-m3§; + import alternativa.physics.collision.primitives.name_311; - public class TurretCollisioinBox extends §_-m3§ + public class TurretCollisioinBox extends name_311 { public var m:Matrix4; diff --git a/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as b/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as index f5da55a..9fa97b0 100644 --- a/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as +++ b/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as @@ -10,30 +10,30 @@ package alternativa.tanks.game.subsystems.eventsystem private var eventQueue2:List; - private var §_-iZ§:Object; + private var var_213:Object; public function EventSystem(priority:int) { super(priority); this.eventQueue1 = new List(); this.eventQueue2 = new List(); - this.§_-iZ§ = new Object(); + this.var_213 = new Object(); } public function addEventListener(eventType:String, listener:IGameEventListener) : void { - var listeners:List = this.§_-iZ§[eventType]; + var listeners:List = this.var_213[eventType]; if(listeners == null) { listeners = new List(); - this.§_-iZ§[eventType] = listeners; + this.var_213[eventType] = listeners; } listeners.add(listener); } public function removeEventListener(eventType:String, listener:IGameEventListener) : void { - var listeners:List = this.§_-iZ§[eventType]; + var listeners:List = this.var_213[eventType]; if(listeners != null) { listeners.remove(listener); @@ -55,7 +55,7 @@ package alternativa.tanks.game.subsystems.eventsystem this.eventQueue1 = this.eventQueue2; for(this.eventQueue2 = tmp; (event = GameEvent(this.eventQueue2.poll())) != null; ) { - listeners = this.§_-iZ§[event.eventType]; + listeners = this.var_213[event.eventType]; if(listeners != null) { iterator = listeners.listIterator(); diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as index 563a431..adc6c35 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as @@ -7,47 +7,47 @@ package alternativa.tanks.game.subsystems.rendersystem { private var container:Object3D; - private var §_-9k§:Vector.; + private var var_16:Vector.; public function DirectionalLightList(container:Object3D) { super(); this.container = container; - this.§_-9k§ = new Vector.(); + this.var_16 = new Vector.(); } public function add(light:DirectionalLight) : void { - if(this.§_-9k§.indexOf(light) < 0) + if(this.var_16.indexOf(light) < 0) { - this.§_-9k§.push(light); + this.var_16.push(light); this.container.addChild(light); } } public function remove(light:DirectionalLight) : void { - var index:int = int(this.§_-9k§.indexOf(light)); + var index:int = int(this.var_16.indexOf(light)); if(index >= 0) { - this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; - this.§_-9k§.length -= 1; + this.var_16[index] = this.var_16[this.var_16.length - 1]; + this.var_16.length -= 1; } } public function get size() : int { - return this.§_-9k§.length; + return this.var_16.length; } public function get lights() : Vector. { - return Vector.(this.§_-9k§); + return Vector.(this.var_16); } public function getLightAt(i:int) : DirectionalLight { - return this.§_-9k§[i]; + return this.var_16[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as b/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as index 1e20679..948ba79 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as @@ -7,57 +7,57 @@ package alternativa.tanks.game.subsystems.rendersystem { private var container:Object3D; - private var §_-e8§:AmbientLight; + private var var_142:AmbientLight; - private var §_-qW§:DirectionalLightList; + private var var_145:DirectionalLightList; - private var §_-hD§:OmniLightList; + private var var_143:OmniLightList; - private var §_-pd§:SpotLightList; + private var var_144:SpotLightList; public function Lights(container:Object3D) { super(); this.container = container; - this.§_-qW§ = new DirectionalLightList(container); - this.§_-hD§ = new OmniLightList(container); - this.§_-pd§ = new SpotLightList(container); + this.var_145 = new DirectionalLightList(container); + this.var_143 = new OmniLightList(container); + this.var_144 = new SpotLightList(container); } public function set ambientLight(light:AmbientLight) : void { - if(this.§_-e8§ != light) + if(this.var_142 != light) { - if(this.§_-e8§ != null) + if(this.var_142 != null) { - this.container.removeChild(this.§_-e8§); + this.container.removeChild(this.var_142); } - this.§_-e8§ = light; - if(this.§_-e8§ != null) + this.var_142 = light; + if(this.var_142 != null) { - this.container.addChild(this.§_-e8§); + this.container.addChild(this.var_142); } } } public function get ambientLight() : AmbientLight { - return this.§_-e8§; + return this.var_142; } public function get directionalLigths() : DirectionalLightList { - return this.§_-qW§; + return this.var_145; } public function get omniLigths() : OmniLightList { - return this.§_-hD§; + return this.var_143; } public function get spotLights() : SpotLightList { - return this.§_-pd§; + return this.var_144; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as index 1baa8b5..3d18e1c 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as @@ -7,47 +7,47 @@ package alternativa.tanks.game.subsystems.rendersystem { private var container:Object3D; - private var §_-9k§:Vector.; + private var var_16:Vector.; public function OmniLightList(container:Object3D) { super(); this.container = container; - this.§_-9k§ = new Vector.(); + this.var_16 = new Vector.(); } public function add(light:OmniLight) : void { - if(this.§_-9k§.indexOf(light) < 0) + if(this.var_16.indexOf(light) < 0) { - this.§_-9k§.push(light); + this.var_16.push(light); this.container.addChild(light); } } public function remove(light:OmniLight) : void { - var index:int = int(this.§_-9k§.indexOf(light)); + var index:int = int(this.var_16.indexOf(light)); if(index >= 0) { - this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; - this.§_-9k§.length -= 1; + this.var_16[index] = this.var_16[this.var_16.length - 1]; + this.var_16.length -= 1; } } public function get size() : int { - return this.§_-9k§.length; + return this.var_16.length; } public function get lights() : Vector. { - return Vector.(this.§_-9k§); + return Vector.(this.var_16); } public function getLightAt(i:int) : OmniLight { - return this.§_-9k§[i]; + return this.var_16[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as b/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as index a212439..9147b6c 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as @@ -6,7 +6,7 @@ package alternativa.tanks.game.subsystems.rendersystem import alternativa.engine3d.core.View; import alternativa.engine3d.core.events.MouseEvent3D; import alternativa.engine3d.effects.ParticleSystem; - import alternativa.engine3d.effects.§_-SG§; + import alternativa.engine3d.effects.name_77; import alternativa.engine3d.lights.DirectionalLight; import alternativa.engine3d.objects.Decal; import alternativa.engine3d.resources.BitmapTextureResource; @@ -66,39 +66,39 @@ package alternativa.tanks.game.subsystems.rendersystem private var effectsContainer:Object3D; - private var §_-jy§:Object = {}; + private var var_12:Object = {}; private var view:View; private var camera:GameCamera; - private var §_-lk§:ICameraController; + private var var_13:ICameraController; private var axisIndicator:AxisIndicator; private var renderers:RendererList; - private var §_-WV§:RendererList; + private var var_10:RendererList; private var effects:Vector.; private var numEffects:int; - private var §_-EX§:Boolean = true; + private var var_14:Boolean = true; - private var §_-qH§:Object = {}; + private var var_8:Object = {}; - private var §_-9k§:Lights; + private var var_16:Lights; - private var §for§:Boolean; + private var var_20:Boolean; - private var §_-7w§:Boolean; + private var var_19:Boolean; private var objectPoolManager:ObjectPoolManager = new ObjectPoolManager(); - private var §_-1h§:Vector.; + private var var_18:Vector.; - private var §_-i6§:BitFlags = new BitFlags(); + private var var_17:BitFlags = new BitFlags(); private var stage:Stage; @@ -106,26 +106,26 @@ package alternativa.tanks.game.subsystems.rendersystem private var resourceManager:ResourceManager; - private var §_-aD§:ShadowsSystem; + private var var_9:ShadowsSystem; private var staticShadowRenderer:StaticShadowRenderer; - private var §_-pR§:Vector.; + private var var_11:Vector.; - private var §_-MI§:Vector.; + private var var_7:Vector.; - private var §_-qS§:Boolean; + private var var_15:Boolean; - private var §_-Qk§:BitmapTextureResource; + private var var_5:BitmapTextureResource; - private var §_-Ta§:ParticleSystem; + private var var_6:ParticleSystem; public function RenderSystem(priority:int, stage:Stage) { super(priority); this.stage = stage; this.renderers = new RendererList(); - this.§_-WV§ = new RendererList(); + this.var_10 = new RendererList(); this.effects = new Vector.(); this.rootContainer = new Object3D(); this.rootContainer.name = "root"; @@ -134,7 +134,7 @@ package alternativa.tanks.game.subsystems.rendersystem this.lightsContainer = this.createContainer(LIGHTS_CONTAINER_ID); this.dynamicObjectsContainer = this.createContainer(DYNAMIC_OBJECTS_CONTAINER_ID); this.effectsContainer = this.createContainer(EFFECTS_CONTAINER_ID); - this.§_-9k§ = new Lights(this.lightsContainer); + this.var_16 = new Lights(this.lightsContainer); this.view = new View(100,100,false,6710886,1,4); this.view.hideLogo(); this.camera = new GameCamera(10,50000); @@ -144,15 +144,15 @@ package alternativa.tanks.game.subsystems.rendersystem var giLight:DirectionalLight = new DirectionalLight(9222892); giLight.intensity = 0.5; giLight.rotationX = Math.PI; - 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.var_6 = new ParticleSystem(); + this.var_6.gravity = new Vector3D(0,0,-1); + this.var_6.wind = new Vector3D(1,0,0); + this.rootContainer.addChild(this.var_6); this.axisIndicator = new AxisIndicator(100); this.resourceManager = new ResourceManager(); - this.§_-aD§ = new ShadowsSystem(); + this.var_9 = new ShadowsSystem(); this.staticShadowRenderer = new StaticShadowRenderer(null,1024,4); - this.§_-pR§ = new Vector.(); + this.var_11 = new Vector.(); this.rootContainer.addEventListener(MouseEvent3D.CLICK,this.onClick); } @@ -170,7 +170,7 @@ package alternativa.tanks.game.subsystems.rendersystem public function get lights() : Lights { - return this.§_-9k§; + return this.var_16; } public function setFogMode(mode:int) : void @@ -184,11 +184,11 @@ package alternativa.tanks.game.subsystems.rendersystem GiShadowMaterial.fogMode = mode; if(mode == 1) { - this.§_-Ta§.fogFar = MapMaterial.fogFar; + this.var_6.fogFar = MapMaterial.fogFar; } else { - this.§_-Ta§.fogFar = 0; + this.var_6.fogFar = 0; } } @@ -200,7 +200,7 @@ package alternativa.tanks.game.subsystems.rendersystem TracksMaterial2.fogNear = value; TreesMaterial.fogNear = value; GiShadowMaterial.fogNear = value; - this.§_-Ta§.fogNear = value; + this.var_6.fogNear = value; } public function setFogFar(value:Number) : void @@ -211,7 +211,7 @@ package alternativa.tanks.game.subsystems.rendersystem TracksMaterial2.fogFar = value; TreesMaterial.fogFar = value; GiShadowMaterial.fogFar = value; - this.§_-Ta§.fogFar = value; + this.var_6.fogFar = value; } public function setMaxFogDensity(value:Number) : void @@ -223,7 +223,7 @@ package alternativa.tanks.game.subsystems.rendersystem TreesMaterial.fogMaxDensity = value; SkyMaterial.fogMaxDensity = value; GiShadowMaterial.fogMaxDensity = value; - this.§_-Ta§.fogMaxDensity = value; + this.var_6.fogMaxDensity = value; } public function setFogColor(color:uint) : void @@ -252,7 +252,7 @@ package alternativa.tanks.game.subsystems.rendersystem GiShadowMaterial.fogColorR = r; GiShadowMaterial.fogColorG = g; GiShadowMaterial.fogColorB = b; - this.§_-Ta§.§_-IN§ = color; + this.var_6.name_76 = color; } public function setFogHorizonSize(value:Number) : void @@ -275,7 +275,7 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.§_-pR§.push(fogInitializator); + this.var_11.push(fogInitializator); } } @@ -285,37 +285,37 @@ package alternativa.tanks.game.subsystems.rendersystem { throw new Error("Context3D is not available. Use setFogTextureParams() instead."); } - if(this.§_-Qk§ != null) + if(this.var_5 != null) { - this.releaseResource(this.§_-Qk§); + this.releaseResource(this.var_5); } - 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§); + this.var_5 = new BitmapTextureResource(bitmapData); + this.useResource(this.var_5); + MapMaterial.setFogTexture(this.var_5); + TankMaterial.setFogTexture(this.var_5); + TankMaterial2.setFogTexture(this.var_5); + GiShadowMaterial.setFogTexture(this.var_5); + TracksMaterial2.setFogTexture(this.var_5); + TreesMaterial.setFogTexture(this.var_5); + SkyMaterial.setFogTexture(this.var_5); } public function isShadowSystemReady() : Boolean { - return this.§_-qS§; + return this.var_15; } public function setShadowSystemReady() : void { var shadowRendererConstructor:IShadowRendererConstructor = null; - this.§_-qS§ = true; - if(this.§_-MI§ != null) + this.var_15 = true; + if(this.var_7 != null) { - for each(shadowRendererConstructor in this.§_-MI§) + for each(shadowRendererConstructor in this.var_7) { shadowRendererConstructor.createShadowRenderer(); } - this.§_-MI§ = null; + this.var_7 = null; } } @@ -325,37 +325,37 @@ package alternativa.tanks.game.subsystems.rendersystem { throw new ArgumentError("Parameter shadowRendererConstructor is null"); } - if(this.§_-qS§) + if(this.var_15) { throw new Error("Cannot add constructor: shadow system is ready"); } - if(this.§_-MI§ == null) + if(this.var_7 == null) { - this.§_-MI§ = new Vector.(); + this.var_7 = new Vector.(); } - var index:int = int(this.§_-MI§.indexOf(shadowRendererConstructor)); + var index:int = int(this.var_7.indexOf(shadowRendererConstructor)); if(index < 0) { - this.§_-MI§.push(shadowRendererConstructor); + this.var_7.push(shadowRendererConstructor); } } public function removeShadowRendererConstructor(shadowRendererConstructor:IShadowRendererConstructor) : void { var index:int = 0; - if(this.§_-MI§ != null) + if(this.var_7 != null) { - index = int(this.§_-MI§.indexOf(shadowRendererConstructor)); + index = int(this.var_7.indexOf(shadowRendererConstructor)); if(index >= 0) { - this.§_-MI§.splice(index,1); + this.var_7.splice(index,1); } } } public function getShadowSystem() : ShadowsSystem { - return this.§_-aD§; + return this.var_9; } public function setAntialiasing(value:int) : void @@ -374,18 +374,18 @@ package alternativa.tanks.game.subsystems.rendersystem { throw new ArgumentError("Parameter renderer is null"); } - if(this.§_-aD§.renderers.indexOf(renderer) < 0) + if(this.var_9.renderers.indexOf(renderer) < 0) { - this.§_-aD§.renderers.push(renderer); + this.var_9.renderers.push(renderer); } } public function removeShadowRenderer(renderer:ShadowRenderer) : void { - var index:int = int(this.§_-aD§.renderers.indexOf(renderer)); + var index:int = int(this.var_9.renderers.indexOf(renderer)); if(index >= 0) { - this.§_-aD§.renderers.splice(index,1); + this.var_9.renderers.splice(index,1); } } @@ -448,7 +448,7 @@ package alternativa.tanks.game.subsystems.rendersystem public function getContainer(containerId:String) : Object3D { - return this.§_-jy§[containerId]; + return this.var_12[containerId]; } public function uploadResource(resource:Resource) : void @@ -462,7 +462,7 @@ package alternativa.tanks.game.subsystems.rendersystem { throw new Error("Container with id \"" + containerId + "\" already exists"); } - this.§_-jy§[containerId] = container; + this.var_12[containerId] = container; this.rootContainer.addChild(container); if(uploadResources) { @@ -478,11 +478,11 @@ package alternativa.tanks.game.subsystems.rendersystem public function getOverlay(name:String) : Sprite { var view:View = null; - var overlay:Sprite = this.§_-qH§[name]; + var overlay:Sprite = this.var_8[name]; if(overlay == null) { overlay = new Sprite(); - this.§_-qH§[name] = overlay; + this.var_8[name] = overlay; view = this.camera.view; overlay.x = view.x + (view.width >> 1); overlay.y = view.y + (view.height >> 1); @@ -493,10 +493,10 @@ package alternativa.tanks.game.subsystems.rendersystem public function removeOverlay(name:String) : void { - var overlay:Sprite = this.§_-qH§[name]; + var overlay:Sprite = this.var_8[name]; if(overlay != null) { - delete this.§_-qH§[name]; + delete this.var_8[name]; overlay.parent.removeChild(overlay); } } @@ -537,15 +537,15 @@ package alternativa.tanks.game.subsystems.rendersystem public function addPostRenderer(renderer:IRenderer) : void { - this.§_-WV§.add(renderer); + this.var_10.add(renderer); } public function removePostRenderer(renderer:IRenderer) : void { - this.§_-WV§.remove(renderer); + this.var_10.remove(renderer); } - public function each(effect:IGraphicEffect) : void + public function method_21(effect:IGraphicEffect) : void { if(this.effects.indexOf(effect) >= 0) { @@ -556,18 +556,18 @@ package alternativa.tanks.game.subsystems.rendersystem effect.addedToRenderSystem(this); } - public function addA3DEffect(effect:§_-SG§) : void + public function addA3DEffect(effect:name_77) : void { - this.§_-Ta§.each(effect); + this.var_6.method_21(effect); } public function setCameraController(controller:ICameraController) : void { - if(this.§_-lk§ == controller) + if(this.var_13 == controller) { return; } - this.§_-lk§ = controller; + this.var_13 = controller; controller.enable(); } @@ -578,13 +578,13 @@ package alternativa.tanks.game.subsystems.rendersystem public function disableCameraController() : void { - this.§_-EX§ = false; + this.var_14 = false; false; } public function enableCameraController() : void { - this.§_-EX§ = true; + this.var_14 = true; true; } @@ -596,7 +596,7 @@ package alternativa.tanks.game.subsystems.rendersystem view.y = y; view.width = width; view.height = height; - for each(var _loc9_ in this.§_-qH§) + for each(var _loc9_ in this.var_8) { overlay = _loc9_; _loc9_; @@ -612,7 +612,7 @@ package alternativa.tanks.game.subsystems.rendersystem override public function start() : void { - var input:IInput = IInput(§_-Uw§.getTaskInterface(IInput)); + var input:IInput = IInput(var_4.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); @@ -621,7 +621,7 @@ package alternativa.tanks.game.subsystems.rendersystem override public function stop() : void { var overlay:Sprite = null; - for each(var _loc4_ in this.§_-qH§) + for each(var _loc4_ in this.var_8) { overlay = _loc4_; _loc4_; @@ -643,7 +643,7 @@ package alternativa.tanks.game.subsystems.rendersystem { return; } - for each(var _loc7_ in this.§_-qH§) + for each(var _loc7_ in this.var_8) { overlay = _loc7_; _loc7_; @@ -654,14 +654,14 @@ package alternativa.tanks.game.subsystems.rendersystem renderer = this.renderers.renderers[i]; renderer.render(); } - if(this.§_-lk§ != null && this.§_-EX§) + if(this.var_13 != null && this.var_14) { - this.§_-lk§.update(); + this.var_13.update(); } this.camera.calculateAxis(); - for(i = 0; i < this.§_-WV§.numRenderers; i++) + for(i = 0; i < this.var_10.numRenderers; i++) { - renderer = this.§_-WV§.renderers[i]; + renderer = this.var_10.renderers[i]; renderer.render(); } for(i = 0; i < this.numEffects; ) @@ -681,7 +681,7 @@ package alternativa.tanks.game.subsystems.rendersystem this.axisIndicator.update(this.camera); } this.camera.startTimer(); - this.§_-aD§.update(this.rootContainer); + this.var_9.update(this.rootContainer); this.camera.render(this.stage3d); this.camera.stopTimer(); } @@ -695,7 +695,7 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.§_-pR§.push(staticShadowInitializer); + this.var_11.push(staticShadowInitializer); } } @@ -708,7 +708,7 @@ package alternativa.tanks.game.subsystems.rendersystem { var container:Object3D = new Object3D(); container.name = id; - this.§_-jy§[id] = container; + this.var_12[id] = container; this.rootContainer.addChild(container); return container; } @@ -724,13 +724,13 @@ package alternativa.tanks.game.subsystems.rendersystem context3D.enableErrorChecking = false; this.resourceManager.setContext(context3D); this.staticShadowRenderer.context = context3D; - for each(var _loc5_ in this.§_-pR§) + for each(var _loc5_ in this.var_11) { deferredAction = _loc5_; _loc5_; deferredAction.execute(this.stage3d); } - this.§_-pR§ = null; + this.var_11 = null; } private function onToggleDebugKey(eventType:KeyboardEventType, keyCode:uint) : void @@ -757,7 +757,7 @@ package alternativa.tanks.game.subsystems.rendersystem object = objects[i]; textMarker = TextMarker(this.objectPoolManager.getObject(TextMarker)); textMarker.init(this.getOverlay("markers"),object.name || "[none]",object); - this.each(textMarker); + this.method_21(textMarker); markers[i] = textMarker; } return markers; @@ -769,7 +769,7 @@ package alternativa.tanks.game.subsystems.rendersystem private function updateDebugMode() : void { - this.camera.debug = this.§_-i6§.flags != 0; + this.camera.debug = this.var_17.flags != 0; } private function toggleLightDebug() : void diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as b/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as index cfe584f..0e95d0c 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/ResourceManager.as @@ -8,14 +8,14 @@ package alternativa.tanks.game.subsystems.rendersystem { private var context:Context3D; - private var §_-hg§:Dictionary; + private var var_106:Dictionary; - private var §_-Wf§:Vector.; + private var var_105:Vector.; public function ResourceManager() { super(); - this.§_-hg§ = new Dictionary(); + this.var_106 = new Dictionary(); } public function useResource(resource:Resource) : void @@ -31,8 +31,8 @@ package alternativa.tanks.game.subsystems.rendersystem { resource.upload(this.context); } - var refCount:int = int(this.§_-hg§[resource]); - this.§_-hg§[resource] = refCount + 1; + var refCount:int = int(this.var_106[resource]); + this.var_106[resource] = refCount + 1; } public function useResources(resources:Vector.) : void @@ -46,7 +46,7 @@ package alternativa.tanks.game.subsystems.rendersystem public function releaseResource(resource:Resource) : void { - var refCount:int = int(this.§_-hg§[resource]); + var refCount:int = int(this.var_106[resource]); if(refCount > 0) { if(refCount == 1) @@ -55,7 +55,7 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.§_-hg§[resource] = refCount - 1; + this.var_106[resource] = refCount - 1; } } } @@ -85,13 +85,13 @@ package alternativa.tanks.game.subsystems.rendersystem { var resource:Resource = null; this.context = context; - if(this.§_-Wf§ != null) + if(this.var_105 != null) { - for each(resource in this.§_-Wf§) + for each(resource in this.var_105) { resource.upload(context); } - this.§_-Wf§ = null; + this.var_105 = null; } } @@ -100,13 +100,13 @@ package alternativa.tanks.game.subsystems.rendersystem var resource:* = undefined; if(this.context != null) { - for(resource in this.§_-hg§) + for(resource in this.var_106) { Resource(resource).dispose(); } } - this.§_-Wf§ = null; - this.§_-hg§ = new Dictionary(); + this.var_105 = null; + this.var_106 = new Dictionary(); } private function doRelease(resource:Resource) : void @@ -118,41 +118,41 @@ package alternativa.tanks.game.subsystems.rendersystem index = this.getQueuedIndex(resource); if(index >= 0) { - num = int(this.§_-Wf§.length); + num = int(this.var_105.length); if(num == 1) { - this.§_-Wf§ = null; + this.var_105 = null; } else { - this.§_-Wf§[index] = this.§_-Wf§[--num]; - this.§_-Wf§.length = num; + this.var_105[index] = this.var_105[--num]; + this.var_105.length = num; } } } else { resource.dispose(); - delete this.§_-hg§[resource]; + delete this.var_106[resource]; } } private function getQueuedIndex(resource:Resource) : int { - if(this.§_-Wf§ == null) + if(this.var_105 == null) { return -1; } - return this.§_-Wf§.indexOf(resource); + return this.var_105.indexOf(resource); } private function queue(resource:Resource) : void { - if(this.§_-Wf§ == null) + if(this.var_105 == null) { - this.§_-Wf§ = new Vector.(); + this.var_105 = new Vector.(); } - this.§_-Wf§.push(resource); + this.var_105.push(resource); } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as b/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as index 4c7833e..96b1fa6 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as @@ -76,7 +76,7 @@ package alternativa.tanks.game.subsystems.rendersystem public var alpha:Number = 1; - public var §_-L4§:Boolean = false; + public var var_21:Boolean = false; public function SkyMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1) { @@ -104,7 +104,7 @@ package alternativa.tanks.game.subsystems.rendersystem } } - private function final(targetObject:Object3D, key:int, fogMode:int) : ShaderProgram + private function method_22(targetObject:Object3D, key:int, fogMode:int) : ShaderProgram { var outputProcedure:Procedure = null; var vertexLinker:Linker = new Linker(Context3DProgramType.VERTEX); @@ -181,7 +181,7 @@ package alternativa.tanks.game.subsystems.rendersystem { return; } - if(!this.§_-L4§ && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) + if(!this.var_21 && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) { return; } @@ -198,15 +198,15 @@ package alternativa.tanks.game.subsystems.rendersystem optionsPrograms = []; _programs[object.alternativa3d::transformProcedure] = optionsPrograms; } - if(!this.§_-L4§ && !this.opacityMap) + if(!this.var_21 && !this.opacityMap) { key = 0; } - else if(!this.§_-L4§ && Boolean(this.opacityMap)) + else if(!this.var_21 && Boolean(this.opacityMap)) { key = 1; } - else if(this.§_-L4§) + else if(this.var_21) { key = 2; } @@ -214,18 +214,18 @@ package alternativa.tanks.game.subsystems.rendersystem program = optionsPrograms[key]; if(program == null) { - program = this.final(object,key,fogMode); + program = this.method_22(object,key,fogMode); program.upload(camera.alternativa3d::context3D); optionsPrograms[key] = program; } - var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::name_78,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(Boolean(this.opacityMap) && !this.§_-L4§) + if(Boolean(this.opacityMap) && !this.var_21) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),this.opacityMap.alternativa3d::_texture); } @@ -277,7 +277,7 @@ package alternativa.tanks.game.subsystems.rendersystem 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.§_-L4§ || this.opacityMap != null || this.alpha < 1) + if(this.var_21 || this.opacityMap != null || this.alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as index ba28533..e8f367c 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/SpotLightList.as @@ -7,47 +7,47 @@ package alternativa.tanks.game.subsystems.rendersystem { private var container:Object3D; - private var §_-9k§:Vector.; + private var var_16:Vector.; public function SpotLightList(container:Object3D) { super(); this.container = container; - this.§_-9k§ = new Vector.(); + this.var_16 = new Vector.(); } public function add(light:SpotLight) : void { - if(this.§_-9k§.indexOf(light) < 0) + if(this.var_16.indexOf(light) < 0) { - this.§_-9k§.push(light); + this.var_16.push(light); this.container.addChild(light); } } public function remove(light:SpotLight) : void { - var index:int = int(this.§_-9k§.indexOf(light)); + var index:int = int(this.var_16.indexOf(light)); if(index >= 0) { - this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; - this.§_-9k§.length -= 1; + this.var_16[index] = this.var_16[this.var_16.length - 1]; + this.var_16.length -= 1; } } public function get size() : int { - return this.§_-9k§.length; + return this.var_16.length; } public function get lights() : Vector. { - return Vector.(this.§_-9k§); + return Vector.(this.var_16); } public function getLightAt(i:int) : SpotLight { - return this.§_-9k§[i]; + return this.var_16[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as b/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as index d84d203..151663f 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as @@ -19,7 +19,7 @@ package alternativa.tanks.game.subsystems.rendersystem private var tf:TextField; - private var §_-Ee§:Boolean; + private var var_146:Boolean; private var anchor:Object3D; @@ -37,12 +37,12 @@ package alternativa.tanks.game.subsystems.rendersystem this.tf.visible = false; this.anchor = anchor; this.tf.text = text; - this.§_-Ee§ = true; + this.var_146 = true; } public function kill() : void { - this.§_-Ee§ = false; + this.var_146 = false; } public function play(camera:GameCamera) : Boolean @@ -60,7 +60,7 @@ package alternativa.tanks.game.subsystems.rendersystem { this.tf.visible = false; } - return this.§_-Ee§; + return this.var_146; } public function addedToRenderSystem(system:RenderSystem) : void diff --git a/src/alternativa/tanks/game/usertitle/?_-C6?.as b/src/alternativa/tanks/game/usertitle/?_-C6?.as deleted file mode 100644 index bbb4764..0000000 --- a/src/alternativa/tanks/game/usertitle/?_-C6?.as +++ /dev/null @@ -1,11 +0,0 @@ -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/component/?_-YR?.as b/src/alternativa/tanks/game/usertitle/component/?_-YR?.as deleted file mode 100644 index 416811b..0000000 --- a/src/alternativa/tanks/game/usertitle/component/?_-YR?.as +++ /dev/null @@ -1,166 +0,0 @@ -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/?_-CD?.as b/src/alternativa/tanks/game/usertitle/component/class_29.as similarity index 58% rename from src/alternativa/tanks/game/usertitle/component/?_-CD?.as rename to src/alternativa/tanks/game/usertitle/component/class_29.as index dfb1eee..c470e54 100644 --- a/src/alternativa/tanks/game/usertitle/component/?_-CD?.as +++ b/src/alternativa/tanks/game/usertitle/component/class_29.as @@ -1,12 +1,12 @@ package alternativa.tanks.game.usertitle.component { - import §_-78§.§_-YX§; + import package_82.class_30; - public class §_-CD§ implements §_-YX§ + public class class_29 implements class_30 { - protected var component:§_-YR§; + protected var component:name_156; - public function §_-CD§(component:§_-YR§) + public function class_29(component:name_156) { super(); this.component = component; diff --git a/src/alternativa/tanks/game/usertitle/component/name_156.as b/src/alternativa/tanks/game/usertitle/component/name_156.as new file mode 100644 index 0000000..02e425b --- /dev/null +++ b/src/alternativa/tanks/game/usertitle/component/name_156.as @@ -0,0 +1,166 @@ +package alternativa.tanks.game.usertitle.component +{ + import alternativa.tanks.game.usertitle.name_440; + import alternativa.tanks.game.usertitle.name_443; + import alternativa.tanks.game.usertitle.name_454; + import package_15.class_18; + import package_15.name_17; + import package_18.class_19; + import package_18.name_51; + import package_30.name_103; + import package_38.name_145; + import package_39.name_164; + import package_40.name_439; + import package_41.name_146; + import package_82.name_409; + + public class name_156 extends class_18 implements class_19 + { + private static const REMOTE_LABEL_OFFSET_Z:int = 200; + + private static var position:name_145 = new name_145(); + + private var var_505:name_440; + + private var chassisComponent:name_146; + + private var var_442:name_439; + + private var localPlayer:Boolean; + + private var var_424:name_409; + + private var gameKernel:name_17; + + private var var_426:Boolean; + + private var var_506:name_441; + + private var titleRenderer:name_443; + + public function name_156(maxHealth:int, rankIcon:name_454, name:String, localPlayer:Boolean, label:name_455, configFlags:int, titleRenderer:name_443) + { + super(); + this.var_505 = new name_440(maxHealth,rankIcon,label); + this.localPlayer = localPlayer; + this.titleRenderer = titleRenderer; + this.var_505.name_447(name); + this.var_505.name_452(configFlags); + } + + public function name_251() : Boolean + { + return this.var_426; + } + + public function method_198() : Boolean + { + return this.localPlayer; + } + + public function method_197(maxHealth:int) : void + { + this.var_505.method_197(maxHealth); + } + + public function name_265(indicatorId:int, duration:int) : void + { + this.var_505.name_265(indicatorId,duration); + } + + public function name_254(indicatorId:int) : void + { + this.var_505.name_254(indicatorId); + } + + override public function initComponent() : void + { + this.chassisComponent = name_146(entity.getComponentStrict(name_146)); + this.var_442 = name_439(entity.getComponent(name_439)); + this.var_424 = new name_409(); + this.var_506 = new name_441(this); + this.var_424.name_404(entity,name_164.SET_ACTIVATING_STATE,this.var_506); + this.var_424.name_404(entity,name_164.SET_ACTIVE_STATE,this.var_506); + this.var_424.name_404(entity,name_164.SET_DEAD_STATE,new name_444(this)); + var offSceneState:name_442 = new name_442(this); + this.var_424.name_404(entity,name_164.SET_RESPAWN_STATE,offSceneState); + this.var_424.name_371 = offSceneState; + entity.addEventHandler(name_164.SET_HEALTH,this.method_195); + } + + private function method_195(eventType:String, data:*) : void + { + this.setHealth(Number(data)); + } + + override public function addToGame(gameKernel:name_17) : void + { + this.gameKernel = gameKernel; + this.var_505.name_448(gameKernel.name_5()); + } + + override public function removeFromGame(gameKernel:name_17) : void + { + this.var_424.name_371.stop(); + this.removeFromScene(); + } + + public function addToScene() : void + { + var renderSystem:name_51 = null; + if(!this.var_426) + { + renderSystem = this.gameKernel.name_5(); + if(this.localPlayer) + { + this.var_505.name_450(); + } + this.var_505.name_453(renderSystem.name_386()); + renderSystem.name_387(this); + this.var_426 = true; + } + } + + public function removeFromScene() : void + { + if(this.var_426) + { + this.var_505.name_449(); + this.gameKernel.name_5().name_381(this); + this.var_426 = false; + } + } + + public function setHealth(health:Number) : void + { + this.var_505.setHealth(health); + } + + public function method_196(rankId:int) : void + { + this.var_505.method_196(rankId); + } + + public function render() : void + { + this.chassisComponent.method_193(position); + position.transform4(this.chassisComponent.method_191()); + if(this.localPlayer && this.var_442 != null) + { + this.var_505.name_451(this.var_442.name_446() * 100); + } + else + { + position.z += REMOTE_LABEL_OFFSET_Z; + } + this.titleRenderer.name_445(entity,this); + this.var_505.update(position,name_103.time,name_103.timeDelta); + } + + public function getTitle() : name_440 + { + return this.var_505; + } + } +} + diff --git a/src/alternativa/tanks/game/usertitle/component/?_-Up?.as b/src/alternativa/tanks/game/usertitle/component/name_441.as similarity index 70% rename from src/alternativa/tanks/game/usertitle/component/?_-Up?.as rename to src/alternativa/tanks/game/usertitle/component/name_441.as index ec87494..8f62536 100644 --- a/src/alternativa/tanks/game/usertitle/component/?_-Up?.as +++ b/src/alternativa/tanks/game/usertitle/component/name_441.as @@ -1,8 +1,8 @@ package alternativa.tanks.game.usertitle.component { - public class §_-Up§ extends §_-CD§ + public class name_441 extends class_29 { - public function §_-Up§(component:§_-YR§) + public function name_441(component:name_156) { super(component); } diff --git a/src/alternativa/tanks/game/usertitle/component/?_-po?.as b/src/alternativa/tanks/game/usertitle/component/name_442.as similarity index 67% rename from src/alternativa/tanks/game/usertitle/component/?_-po?.as rename to src/alternativa/tanks/game/usertitle/component/name_442.as index e7e1508..153bbb0 100644 --- a/src/alternativa/tanks/game/usertitle/component/?_-po?.as +++ b/src/alternativa/tanks/game/usertitle/component/name_442.as @@ -1,8 +1,8 @@ package alternativa.tanks.game.usertitle.component { - public class §_-po§ extends §_-CD§ + public class name_442 extends class_29 { - public function §_-po§(component:§_-YR§) + public function name_442(component:name_156) { super(component); } diff --git a/src/alternativa/tanks/game/usertitle/component/?_-Rd?.as b/src/alternativa/tanks/game/usertitle/component/name_444.as similarity index 70% rename from src/alternativa/tanks/game/usertitle/component/?_-Rd?.as rename to src/alternativa/tanks/game/usertitle/component/name_444.as index 9b25326..9f6e286 100644 --- a/src/alternativa/tanks/game/usertitle/component/?_-Rd?.as +++ b/src/alternativa/tanks/game/usertitle/component/name_444.as @@ -1,8 +1,8 @@ package alternativa.tanks.game.usertitle.component { - public class §_-Rd§ extends §_-CD§ + public class name_444 extends class_29 { - public function §_-Rd§(component:§_-YR§) + public function name_444(component:name_156) { super(component); } diff --git a/src/alternativa/tanks/game/usertitle/component/?_-3v?.as b/src/alternativa/tanks/game/usertitle/component/name_455.as similarity index 76% rename from src/alternativa/tanks/game/usertitle/component/?_-3v?.as rename to src/alternativa/tanks/game/usertitle/component/name_455.as index 96e091a..e6525ed 100644 --- a/src/alternativa/tanks/game/usertitle/component/?_-3v?.as +++ b/src/alternativa/tanks/game/usertitle/component/name_455.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.usertitle.component { import flash.display.IBitmapDrawable; - public interface §_-3v§ + public interface name_455 { function set text(param1:String) : void; @@ -12,7 +12,7 @@ package alternativa.tanks.game.usertitle.component function set textColor(param1:uint) : void; - function §_-Qc§() : IBitmapDrawable; + function method_303() : IBitmapDrawable; } } diff --git a/src/alternativa/tanks/game/usertitle/?class?.as b/src/alternativa/tanks/game/usertitle/name_440.as similarity index 53% rename from src/alternativa/tanks/game/usertitle/?class?.as rename to src/alternativa/tanks/game/usertitle/name_440.as index 8f75869..3aadb8e 100644 --- a/src/alternativa/tanks/game/usertitle/?class?.as +++ b/src/alternativa/tanks/game/usertitle/name_440.as @@ -1,23 +1,23 @@ package alternativa.tanks.game.usertitle { - 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 alternativa.tanks.game.usertitle.component.name_455; 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_14.name_3; + import package_18.name_562; + import package_19.name_372; + import package_21.name_84; + import package_3.class_5; + import package_32.name_180; + import package_33.name_130; + import package_38.name_145; + import package_99.name_558; - public class §class§ + public class name_440 { 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.([§_-Ip§.TYPE_HEALTH,§_-Ip§.TYPE_ARMOR,§_-Ip§.TYPE_POWER,§_-Ip§.TYPE_NITRO]); + private static const indicatorTypes:Vector. = Vector.([name_557.TYPE_HEALTH,name_557.TYPE_ARMOR,name_557.TYPE_POWER,name_557.TYPE_NITRO]); private static var teamTypeSkin:Dictionary = new Dictionary(); - teamTypeSkin[§_-BN§.NONE] = §_-4R§.HEALTHBAR_DM; - teamTypeSkin[§_-BN§.BLUE] = §_-4R§.HEALTHBAR_BLUE; - teamTypeSkin[§_-BN§.RED] = §_-4R§.HEALTHBAR_RED; + teamTypeSkin[name_558.NONE] = name_559.HEALTHBAR_DM; + teamTypeSkin[name_558.BLUE] = name_559.HEALTHBAR_BLUE; + teamTypeSkin[name_558.RED] = name_559.HEALTHBAR_RED; private var flags:int; - private var sprite:§_-hW§; + private var sprite:name_372; - private var §_-iy§:Rectangle; + private var var_650:Rectangle; - private var material:§_-pZ§; + private var material:class_5; - private var textureResource:§_-b1§; + private var textureResource:name_84; private var texture:BitmapData; - private var label:§_-3v§; + private var label:name_455; private var labelText:String; - private var rankIcon:§_-fe§; + private var rankIcon:name_454; private var rankId:int; - private var §_-f1§:§_-K9§; + private var var_652:name_560; - private var §_-ie§:§_-K9§; + private var var_654:name_560; - private var §_-os§:Vector.<§_-Ip§>; + private var var_649:Vector.; - private var §_-8o§:int; + private var var_651:int; - private var §_-oS§:int; + private var var_655:int; - private var §_-P4§:Boolean; + private var var_653:Boolean; private var maxHealth:int; @@ -119,76 +119,76 @@ package alternativa.tanks.game.usertitle private var weaponStatus:Number; - private var teamType:§_-BN§ = §_-BN§.NONE; + private var teamType:name_558 = name_558.NONE; - private var resourceManager:§_-B-§; + private var resourceManager:name_562; - public function §class§(maxHealth:int, rankIcon:§_-fe§, label:§_-3v§) + public function name_440(maxHealth:int, rankIcon:name_454, label:name_455) { super(); this.maxHealth = maxHealth; this.rankIcon = rankIcon; this.label = label; this.resourceManager = this.resourceManager; - this.textureResource = new §_-b1§(null); - this.material = new §_-pZ§(this.textureResource); - this.material.§_-L4§ = true; - this.sprite = new §_-hW§(100,100,this.material); + this.textureResource = new name_84(null); + this.material = new class_5(this.textureResource); + this.material.var_21 = true; + this.sprite = new name_372(100,100,this.material); this.sprite.material = this.material; this.sprite.perspectiveScale = false; this.setDeadState(); } - public function §_-58§(resourceManager:§_-B-§) : void + public function name_448(resourceManager:name_562) : void { this.resourceManager = resourceManager; } - public function §_-S5§() : void + public function name_450() : void { this.sprite.alwaysOnTop = true; } - public function §_-a7§(maxHealth:int) : void + public function method_197(maxHealth:int) : void { this.maxHealth = maxHealth; } - public function §_-Wx§() : void + public function method_323() : void { - this.§_-I7§(BIT_STATE_HIDDEN); + this.method_308(BIT_STATE_HIDDEN); } - public function §_-cI§() : void + public function method_324() : void { - this.§_-F2§(BIT_STATE_HIDDEN); + this.method_307(BIT_STATE_HIDDEN); } public function setDeadState() : void { - this.§_-I7§(BIT_STATE_DEAD); + this.method_308(BIT_STATE_DEAD); } public function clearDeadState() : void { - this.§_-F2§(BIT_STATE_DEAD); + this.method_307(BIT_STATE_DEAD); } - public function §_-bG§() : Boolean + public function method_320() : Boolean { return (this.flags & HIDDEN_STATE_FLAGS) == 0; } - public function §_-ag§(configFlags:int) : void + public function name_452(configFlags:int) : void { - if(!this.§_-qq§(configFlags)) + if(!this.method_304(configFlags)) { - this.§_-I7§(configFlags); - this.§_-Z1§(); + this.method_308(configFlags); + this.method_312(); } } - public function §_-NR§(teamType:§_-BN§) : void + public function method_322(teamType:name_558) : 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.§_-qq§(bit)) + if(this.method_304(bit)) { - this.§_-Xw§(bit); + this.method_305(bit); } } } } - public function §_-Qx§(rankId:int) : void + public function method_196(rankId:int) : void { if(this.rankId != rankId) { this.rankId = rankId; - if(this.§_-qq§(BIT_LABEL)) + if(this.method_304(BIT_LABEL)) { - this.§_-Xw§(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); + this.method_305(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); } } } - public function §_-03§(labelText:String) : void + public function name_447(labelText:String) : void { if(this.labelText != labelText) { this.labelText = labelText; - if(this.§_-qq§(BIT_LABEL)) + if(this.method_304(BIT_LABEL)) { - this.§_-Z1§(); - this.§_-Xw§(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); + this.method_312(); + this.method_305(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.§_-qq§(BIT_HEALTH)) + if(this.method_304(BIT_HEALTH)) { - this.§_-Xw§(BIT_HEALTH); + this.method_305(BIT_HEALTH); } } } - public function §_-XE§(weaponStatus:Number) : void + public function name_451(weaponStatus:Number) : void { if(this.weaponStatus != weaponStatus) { this.weaponStatus = weaponStatus; - if(this.§_-qq§(BIT_WEAPON)) + if(this.method_304(BIT_WEAPON)) { - this.§_-Xw§(BIT_WEAPON); + this.method_305(BIT_WEAPON); } } } - public function §_-0W§(indicatorId:int, duration:int) : void + public function name_265(indicatorId:int, duration:int) : void { - var indicator:§_-Ip§ = null; - if(this.§_-qq§(BIT_EFFECTS)) + var indicator:name_557 = null; + if(this.method_304(BIT_EFFECTS)) { - indicator = this.§_-Ty§(indicatorId); + indicator = this.method_310(indicatorId); if(indicator != null) { - if(indicator.§_-gZ§()) + if(indicator.name_561()) { - this.§_-Ka§(1); + this.method_309(1); } indicator.show(duration); } } } - public function §_-kd§(indicatorId:int) : void + public function name_254(indicatorId:int) : void { - var indicator:§_-Ip§ = null; - if(this.§_-qq§(BIT_EFFECTS)) + var indicator:name_557 = null; + if(this.method_304(BIT_EFFECTS)) { - indicator = this.§_-Ty§(indicatorId); + indicator = this.method_310(indicatorId); if(indicator != null) { indicator.hide(); @@ -283,94 +283,94 @@ package alternativa.tanks.game.usertitle } } - public function §_-5i§() : void + public function method_321() : void { var indicatorId:int = 0; - if(this.§_-os§ != null && this.§_-qq§(BIT_EFFECTS)) + if(this.var_649 != null && this.method_304(BIT_EFFECTS)) { for each(indicatorId in indicatorTypes) { - this.§_-kd§(indicatorId); + this.name_254(indicatorId); } } } - internal function §_-nC§(indicator:§_-Ip§) : void + internal function method_325(indicator:name_557) : void { indicator.clear(this.texture); - this.§_-Ka§(-1); + this.method_309(-1); } - public function update(pos:§_-bj§, time:int, timeDelta:int) : void + public function update(pos:name_145, time:int, timeDelta:int) : void { var reloadResource:Boolean = false; - var effectIndicator:§_-Ip§ = null; - this.§_-Vi§(pos); - this.§_-mM§(timeDelta); - if(this.§_-c7§(DIRTY_MASK)) + var effectIndicator:name_557 = null; + this.name_230(pos); + this.method_318(timeDelta); + if(this.method_313(DIRTY_MASK)) { reloadResource = true; - if(this.§_-ki§(BIT_LABEL)) + if(this.method_306(BIT_LABEL)) { - this.§_-o9§(); + this.method_319(); } - if(this.§_-ki§(BIT_HEALTH)) + if(this.method_306(BIT_HEALTH)) { - this.§_-f1§.§_-gM§(teamTypeSkin[this.teamType]); - this.§_-f1§.progress = MAX_PROGRESS * this.health / this.maxHealth; - this.§_-f1§.draw(this.texture); + this.var_652.name_564(teamTypeSkin[this.teamType]); + this.var_652.progress = MAX_PROGRESS * this.health / this.maxHealth; + this.var_652.draw(this.texture); } - if(this.§_-ki§(BIT_WEAPON)) + if(this.method_306(BIT_WEAPON)) { - this.§_-ie§.progress = this.weaponStatus; - this.§_-ie§.draw(this.texture); + this.var_654.progress = this.weaponStatus; + this.var_654.draw(this.texture); } - if(this.§_-ki§(BIT_EFFECTS)) + if(this.method_306(BIT_EFFECTS)) { - for each(effectIndicator in this.§_-os§) + for each(effectIndicator in this.var_649) { - effectIndicator.§_-mo§(); + effectIndicator.name_565(); } } - this.§_-F2§(DIRTY_MASK); + this.method_307(DIRTY_MASK); } - if(this.§_-qq§(BIT_EFFECTS)) + if(this.method_304(BIT_EFFECTS)) { - reloadResource = this.§_-Hh§(time,timeDelta) || reloadResource; + reloadResource = this.method_315(time,timeDelta) || reloadResource; } if(reloadResource) { - this.resourceManager.§_-bL§(this.textureResource); + this.resourceManager.name_563(this.textureResource); } } - private function §_-ki§(bit:int) : Boolean + private function method_306(bit:int) : Boolean { var mask:int = bit | bit << 8; return (mask & this.flags) == mask; } - private function §_-Hh§(now:int, delta:int) : Boolean + private function method_315(now:int, delta:int) : Boolean { - var indicator:§_-Ip§ = null; + var indicator:name_557 = null; var i:int = 0; var wereUpdated:Boolean = false; var x:int = 0; - var num:int = int(this.§_-os§.length); - if(this.§_-P4§) + var num:int = int(this.var_649.length); + if(this.var_653) { - this.§_-P4§ = false; - x = this.§_-iy§.width + TEXTURE_MARGIN_2 - this.§_-8o§ * EFFECTS_ICON_SIZE - (this.§_-8o§ - 1) * EFFECTS_SPACING_X >> 1; + 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; for(i = 0; i < num; ) { - indicator = this.§_-os§[i]; - if(indicator.§_-bG§()) + indicator = this.var_649[i]; + if(indicator.method_320()) { indicator.clear(this.texture); } - if(!indicator.§_-gZ§()) + if(!indicator.name_561()) { - indicator.§_-Vi§(x,this.§_-oS§); + indicator.name_230(x,this.var_655); x += EFFECTS_ICON_SIZE + EFFECTS_SPACING_X; } i++; @@ -379,41 +379,41 @@ package alternativa.tanks.game.usertitle } for(i = 0; i < num; ) { - indicator = this.§_-os§[i]; + indicator = this.var_649[i]; wereUpdated = indicator.update(now,delta,this.texture) || wereUpdated; i++; } return wereUpdated; } - private function §_-Ka§(increment:int) : void + private function method_309(increment:int) : void { - this.§_-8o§ += increment; - this.§_-P4§ = true; + this.var_651 += increment; + this.var_653 = true; } - private function §_-Z1§() : void + private function method_312() : void { - if(this.§_-c7§(CONFIG_FLAGS)) + if(this.method_313(CONFIG_FLAGS)) { - this.§_-Op§(); - this.§_-8n§(); + this.method_316(); + this.method_314(); } } - private function §_-Op§() : void + private function method_316() : void { var width:int = 0; var height:int = 0; var numEffects:int = 0; var w:int = 0; - if(this.§_-qq§(BIT_LABEL)) + if(this.method_304(BIT_LABEL)) { this.label.text = this.labelText || ""; width = RANK_ICON_SIZE + LABEL_SPACING + this.label.textWidth; height = LABEL_HEIGHT; } - if(this.§_-qq§(BIT_HEALTH)) + if(this.method_304(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.§_-qq§(BIT_WEAPON)) + if(this.method_304(BIT_WEAPON)) { height += WEAPON_BAR_SPACING_Y + BAR_HEIGHT; } } - if(this.§_-qq§(BIT_EFFECTS)) + if(this.method_304(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.§_-Uv§(width); + width = this.method_311(width); height += 2 * TEXTURE_MARGIN; - height = this.§_-Uv§(height); + height = this.method_311(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.§_-iy§ = this.texture.rect; - this.§_-Xw§(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); + this.var_650 = this.texture.rect; + this.method_305(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); } } - private function §_-Uv§(value:int) : int + private function method_311(value:int) : int { for(var power:int = 2; value > power; ) { @@ -471,39 +471,39 @@ package alternativa.tanks.game.usertitle return power; } - private function §_-8n§() : void + private function method_314() : void { var left:int = 0; var top:int = TEXTURE_MARGIN; - if(this.§_-qq§(BIT_LABEL)) + if(this.method_304(BIT_LABEL)) { top += LABEL_HEIGHT; } - if(this.§_-qq§(BIT_HEALTH)) + if(this.method_304(BIT_HEALTH)) { - if(this.§_-qq§(BIT_LABEL)) + if(this.method_304(BIT_LABEL)) { top += HEALTH_BAR_SPACING_Y; } - left = this.§_-iy§.width - BAR_WIDTH >> 1; - this.§_-f1§ = new §_-K9§(left,top,MAX_PROGRESS,BAR_WIDTH,teamTypeSkin[this.teamType]); + left = this.var_650.width - BAR_WIDTH >> 1; + this.var_652 = new name_560(left,top,MAX_PROGRESS,BAR_WIDTH,teamTypeSkin[this.teamType]); top += BAR_HEIGHT; - if(this.§_-qq§(BIT_WEAPON)) + if(this.method_304(BIT_WEAPON)) { top += WEAPON_BAR_SPACING_Y; - this.§_-ie§ = new §_-K9§(left,top,MAX_PROGRESS,BAR_WIDTH,§_-4R§.WEAPONBAR); + this.var_654 = new name_560(left,top,MAX_PROGRESS,BAR_WIDTH,name_559.WEAPONBAR); top += BAR_HEIGHT; } } - if(this.§_-qq§(BIT_EFFECTS)) + if(this.method_304(BIT_EFFECTS)) { top += EFFECTS_SPACING_Y; - this.§_-oS§ = top; - this.§_-ez§(); + this.var_655 = top; + this.method_317(); } } - public function §_-p6§(container:§_-OX§) : void + public function name_453(container:name_130) : void { if(this.sprite.parent == null) { @@ -511,7 +511,7 @@ package alternativa.tanks.game.usertitle } } - public function §_-Md§() : void + public function name_449() : void { if(this.sprite.parent != null) { @@ -519,73 +519,73 @@ package alternativa.tanks.game.usertitle } } - public function §_-Vi§(pos:§_-bj§) : void + public function name_230(pos:name_145) : void { this.sprite.x = pos.x; this.sprite.y = pos.y; this.sprite.z = pos.z; } - private function §_-Xw§(configBit:int) : void + private function method_305(configBit:int) : void { this.flags |= configBit << 8; } - private function §_-o9§() : void + private function method_319() : void { - var clientLog:§_-5-§ = null; + var clientLog:name_180 = null; var tmpBitmapData:BitmapData = this.texture.clone(); - tmpBitmapData.fillRect(this.§_-iy§,0); + tmpBitmapData.fillRect(this.var_650,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.§null §(this.rankId); - clientLog = §_-5-§(§_-oP§.§_-nQ§().§_-N6§(§_-5-§)); + var icon:BitmapData = this.rankIcon.method_302(this.rankId); + clientLog = name_180(name_3.name_8().name_21(name_180)); 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:§_-4R§ = teamTypeSkin[this.teamType]; + var skin:name_559 = teamTypeSkin[this.teamType]; this.label.textColor = skin.color; - tmpBitmapData.draw(this.label.§_-Qc§(),matrix,null,null,null,true); - this.texture.applyFilter(tmpBitmapData,this.§_-iy§,new Point(),filter); + tmpBitmapData.draw(this.label.method_303(),matrix,null,null,null,true); + this.texture.applyFilter(tmpBitmapData,this.var_650,new Point(),filter); tmpBitmapData.dispose(); } - private function §_-ez§() : void + private function method_317() : void { var indicatorType:int = 0; - if(this.§_-os§ != null) + if(this.var_649 != null) { return; } - this.§_-os§ = new Vector.<§_-Ip§>(); + this.var_649 = new Vector.(); for each(indicatorType in indicatorTypes) { - if(indicatorType == §_-Ip§.TYPE_HEALTH) + if(indicatorType == name_557.TYPE_HEALTH) { - this.§_-os§.push(new §_-Ip§(indicatorType,100000,this,300,0)); + this.var_649.push(new name_557(indicatorType,100000,this,300,0)); } else { - this.§_-os§.push(new §_-Ip§(indicatorType,EFFECT_WARNING_TIME,this,300,30)); + this.var_649.push(new name_557(indicatorType,EFFECT_WARNING_TIME,this,300,30)); } } } - private function §_-Ty§(effectId:int) : §_-Ip§ + private function method_310(effectId:int) : name_557 { var len:int = 0; var i:int = 0; - var indicator:§_-Ip§ = null; - if(this.§_-os§ != null) + var indicator:name_557 = null; + if(this.var_649 != null) { - len = int(this.§_-os§.length); + len = int(this.var_649.length); for(i = 0; i < len; ) { - indicator = this.§_-os§[i]; + indicator = this.var_649[i]; if(indicator.effectId == effectId) { return indicator; @@ -596,26 +596,26 @@ package alternativa.tanks.game.usertitle return null; } - private function §_-mM§(delta:int) : void + private function method_318(delta:int) : void { } - private function §_-I7§(mask:int) : void + private function method_308(mask:int) : void { this.flags |= mask; } - private function §_-F2§(mask:int) : void + private function method_307(mask:int) : void { this.flags &= ~mask; } - private function §_-c7§(mask:int) : Boolean + private function method_313(mask:int) : Boolean { return (this.flags & mask) != 0; } - private function §_-qq§(mask:int) : Boolean + private function method_304(mask:int) : Boolean { return (this.flags & mask) == mask; } diff --git a/src/alternativa/tanks/game/usertitle/name_443.as b/src/alternativa/tanks/game/usertitle/name_443.as new file mode 100644 index 0000000..86bc1da --- /dev/null +++ b/src/alternativa/tanks/game/usertitle/name_443.as @@ -0,0 +1,11 @@ +package alternativa.tanks.game.usertitle +{ + import alternativa.tanks.game.usertitle.component.name_156; + import package_15.name_53; + + public interface name_443 + { + function name_445(param1:name_53, param2:name_156) : void; + } +} + diff --git a/src/alternativa/tanks/game/usertitle/?_-fe?.as b/src/alternativa/tanks/game/usertitle/name_454.as similarity index 51% rename from src/alternativa/tanks/game/usertitle/?_-fe?.as rename to src/alternativa/tanks/game/usertitle/name_454.as index c196e59..22114bc 100644 --- a/src/alternativa/tanks/game/usertitle/?_-fe?.as +++ b/src/alternativa/tanks/game/usertitle/name_454.as @@ -2,9 +2,9 @@ package alternativa.tanks.game.usertitle { import flash.display.BitmapData; - public interface §_-fe§ + public interface name_454 { - function §null §(param1:int) : BitmapData; + function method_302(param1:int) : BitmapData; } } diff --git a/src/alternativa/tanks/game/usertitle/?_-Ip?.as b/src/alternativa/tanks/game/usertitle/name_557.as similarity index 71% rename from src/alternativa/tanks/game/usertitle/?_-Ip?.as rename to src/alternativa/tanks/game/usertitle/name_557.as index 06de121..b192f31 100644 --- a/src/alternativa/tanks/game/usertitle/?_-Ip?.as +++ b/src/alternativa/tanks/game/usertitle/name_557.as @@ -7,9 +7,9 @@ package alternativa.tanks.game.usertitle import flash.geom.Rectangle; import flash.utils.Dictionary; import flash.utils.getTimer; - import §function§.§_-Lf§; + import package_37.name_593; - public class §_-Ip§ + public class name_557 { 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 §_-oz§:int; + private var var_712:int; private var icon:BitmapData; @@ -56,46 +56,46 @@ package alternativa.tanks.game.usertitle private var colorTransform:ColorTransform = new ColorTransform(); - private var §_-im§:int; + private var var_711:int; - private var §_-Jj§:§_-Lf§; + private var var_708:name_593; private var alpha:Number = 1; - private var §_-aw§:Boolean; + private var var_710:Boolean; private var x:int; private var y:int; - private var userTitle:§class§; + private var userTitle:name_440; private var state:int; - private var §_-VQ§:Boolean; + private var var_709:Boolean; - public function §_-Ip§(effectId:int, blinkingTime:int, userTitle:§class§, initialBlinkInterval:int, blinkIntervalDecrement:int) + public function name_557(effectId:int, blinkingTime:int, userTitle:name_440, initialBlinkInterval:int, blinkIntervalDecrement:int) { super(); - this.§_-oz§ = effectId; + this.var_712 = effectId; this.icon = icons[effectId]; this.blinkingTime = blinkingTime; this.userTitle = userTitle; - this.§_-Jj§ = new §_-Lf§(initialBlinkInterval,20,blinkIntervalDecrement,MIN_ALPHA,1,10); + this.var_708 = new name_593(initialBlinkInterval,20,blinkIntervalDecrement,MIN_ALPHA,1,10); this.state = STATE_HIDDEN; } public function get effectId() : int { - return this.§_-oz§; + return this.var_712; } - public function §_-bG§() : Boolean + public function method_320() : Boolean { return (this.state & STATE_VISIBLE) != 0; } - public function §_-gZ§() : Boolean + public function name_561() : 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.§_-aw§ = true; + this.var_710 = true; } - this.§_-im§ = getTimer() + duration - this.blinkingTime; - this.§_-VQ§ = false; + this.var_711 = getTimer() + duration - this.blinkingTime; + this.var_709 = 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.§_-nC§(this); + this.userTitle.method_325(this); this.state = STATE_HIDDEN; return; } @@ -129,12 +129,12 @@ package alternativa.tanks.game.usertitle return; } this.state |= STATE_HIDING; - this.§_-Jj§.§_-iO§(0); - if(!this.§_-VQ§) + this.var_708.name_594(0); + if(!this.var_709) { - this.§_-im§ = 0; - this.§_-Jj§.init(getTimer()); - this.§_-VQ§ = true; + this.var_711 = 0; + this.var_708.init(getTimer()); + this.var_709 = true; } } @@ -149,16 +149,16 @@ package alternativa.tanks.game.usertitle texture.fillRect(iconRect,0); } - public function §_-Vi§(x:int, y:int) : void + public function name_230(x:int, y:int) : void { this.x = x; this.y = y; - this.§_-aw§ = true; + this.var_710 = true; } - public function §_-mo§() : void + public function name_565() : void { - this.§_-aw§ = true; + this.var_710 = true; } public function update(now:int, delta:int, texture:BitmapData) : Boolean @@ -168,15 +168,15 @@ package alternativa.tanks.game.usertitle { return false; } - if(this.§_-aw§) + if(this.var_710) { this.draw(texture); - this.§_-aw§ = false; + this.var_710 = false; updated = true; } - if(now > this.§_-im§) + if(now > this.var_711) { - this.§_-2Z§(now,delta,texture); + this.method_367(now,delta,texture); updated = true; } if(this.state == STATE_PREPARED) @@ -186,12 +186,12 @@ package alternativa.tanks.game.usertitle return updated; } - private function §_-2Z§(now:int, delta:int, texture:BitmapData) : void + private function method_367(now:int, delta:int, texture:BitmapData) : void { var newAlpha:Number = NaN; - if(this.§_-VQ§) + if(this.var_709) { - newAlpha = Number(this.§_-Jj§.§_-5N§(now,delta)); + newAlpha = Number(this.var_708.name_595(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.§_-nC§(this); + this.userTitle.method_325(this); this.state = STATE_HIDDEN; } } else { - this.§_-Jj§.§_-iO§(MIN_ALPHA); - this.§_-Jj§.init(now); - this.§_-VQ§ = true; + this.var_708.name_594(MIN_ALPHA); + this.var_708.init(now); + this.var_709 = true; } } diff --git a/src/alternativa/tanks/game/usertitle/?_-4R?.as b/src/alternativa/tanks/game/usertitle/name_559.as similarity index 68% rename from src/alternativa/tanks/game/usertitle/?_-4R?.as rename to src/alternativa/tanks/game/usertitle/name_559.as index 7b7ff98..6609ece 100644 --- a/src/alternativa/tanks/game/usertitle/?_-4R?.as +++ b/src/alternativa/tanks/game/usertitle/name_559.as @@ -3,7 +3,7 @@ package alternativa.tanks.game.usertitle import flash.display.Bitmap; import flash.display.BitmapData; - public class §_-4R§ + public class name_559 { 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:§_-4R§ = new §_-4R§(COLOR_DM,hpGreenEmpty,hpGreenFull,4); + public static const HEALTHBAR_DM:name_559 = new name_559(COLOR_DM,hpGreenEmpty,hpGreenFull,4); - public static const HEALTHBAR_BLUE:§_-4R§ = new §_-4R§(COLOR_TEAM_BLUE,hpBlueEmpty,hpBlueFull,4); + public static const HEALTHBAR_BLUE:name_559 = new name_559(COLOR_TEAM_BLUE,hpBlueEmpty,hpBlueFull,4); - public static const HEALTHBAR_RED:§_-4R§ = new §_-4R§(COLOR_TEAM_RED,hpRedEmpty,hpRedFull,4); + public static const HEALTHBAR_RED:name_559 = new name_559(COLOR_TEAM_RED,hpRedEmpty,hpRedFull,4); - public static const WEAPONBAR:§_-4R§ = new §_-4R§(0,weaponEmpty,weaponFull,4); + public static const WEAPONBAR:name_559 = new name_559(0,weaponEmpty,weaponFull,4); - public var §_-XU§:BitmapData; + public var var_701:BitmapData; - public var §_-9Y§:BitmapData; + public var var_699:BitmapData; - public var §_-GY§:BitmapData; + public var var_700:BitmapData; - public var §_-j2§:BitmapData; + public var var_702:BitmapData; - public var §_-py§:BitmapData; + public var var_704:BitmapData; - public var §_-oU§:BitmapData; + public var var_703:BitmapData; public var color:uint; - public function §_-4R§(color:uint, emptyBitmap:BitmapData, fullBitmap:BitmapData, tipWidth:int) + public function name_559(color:uint, emptyBitmap:BitmapData, fullBitmap:BitmapData, tipWidth:int) { super(); this.color = color; - 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; + var parts:name_592 = new name_592(emptyBitmap,tipWidth); + this.var_701 = parts.left; + this.var_700 = parts.right; + this.var_704 = parts.center; + parts = new name_592(fullBitmap,tipWidth); + this.var_699 = parts.left; + this.var_702 = parts.right; + this.var_703 = parts.center; } } } diff --git a/src/alternativa/tanks/game/usertitle/?_-K9?.as b/src/alternativa/tanks/game/usertitle/name_560.as similarity index 52% rename from src/alternativa/tanks/game/usertitle/?_-K9?.as rename to src/alternativa/tanks/game/usertitle/name_560.as index bd5619b..d8c426f 100644 --- a/src/alternativa/tanks/game/usertitle/?_-K9?.as +++ b/src/alternativa/tanks/game/usertitle/name_560.as @@ -6,7 +6,7 @@ package alternativa.tanks.game.usertitle import flash.geom.Matrix; import flash.geom.Rectangle; - public class §_-K9§ + public class name_560 { private static var canvas:Shape = new Shape(); @@ -16,13 +16,13 @@ package alternativa.tanks.game.usertitle private var barWidth:int; - private var skin:§_-4R§; + private var skin:name_559; - private var §_-oy§:int; + private var var_705:int; - private var §_-Da§:int; + private var var_706:int; - private var §_-H2§:int; + private var var_707:int; private var x:int; @@ -30,27 +30,27 @@ package alternativa.tanks.game.usertitle private var rect:Rectangle; - public function §_-K9§(x:int, y:int, maxValue:int, barWidth:int, skin:§_-4R§) + public function name_560(x:int, y:int, maxValue:int, barWidth:int, skin:name_559) { super(); this.x = x; this.y = y; this.maxValue = maxValue; this.barWidth = barWidth; - this.§_-gM§(skin); - this.rect = new Rectangle(x,y,barWidth,this.§_-Da§); + this.name_564(skin); + this.rect = new Rectangle(x,y,barWidth,this.var_706); } - public function §_-gM§(skin:§_-4R§) : void + public function name_564(skin:name_559) : void { this.skin = skin; - this.§_-oy§ = skin.§_-XU§.width; - this.§_-Da§ = skin.§_-XU§.height; + this.var_705 = skin.var_701.width; + this.var_706 = skin.var_701.height; } public function get progress() : int { - return this.§_-H2§; + return this.var_707; } public function set progress(value:int) : void @@ -63,7 +63,7 @@ package alternativa.tanks.game.usertitle { value = this.maxValue; } - this.§_-H2§ = value; + this.var_707 = 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.§_-H2§ / this.maxValue; - var w:int = this.barWidth - this.§_-oy§; - if(displayWidth >= this.§_-oy§) + var displayWidth:int = this.barWidth * this.var_707 / this.maxValue; + var w:int = this.barWidth - this.var_705; + if(displayWidth >= this.var_705) { if(displayWidth == this.barWidth) { - this.§_-6J§(g,this.skin.§_-9Y§,this.skin.§_-j2§,this.skin.§_-oU§); + this.method_365(g,this.skin.var_699,this.skin.var_702,this.skin.var_703); bgStart = displayWidth; } else { - g.beginBitmapFill(this.skin.§_-9Y§,null,false); - g.drawRect(0,0,this.§_-oy§,this.§_-Da§); - if(displayWidth > this.§_-oy§) + g.beginBitmapFill(this.skin.var_699,null,false); + g.drawRect(0,0,this.var_705,this.var_706); + if(displayWidth > this.var_705) { if(displayWidth > w) { displayWidth = w; } bgStart = displayWidth; - this.§_-SU§(g,this.skin.§_-oU§,this.§_-oy§,displayWidth - this.§_-oy§); + this.method_366(g,this.skin.var_703,this.var_705,displayWidth - this.var_705); } else { - bgStart = this.§_-oy§; + bgStart = this.var_705; } } } if(bgStart == 0) { - this.§_-6J§(g,this.skin.§_-XU§,this.skin.§_-GY§,this.skin.§_-py§); + this.method_365(g,this.skin.var_701,this.skin.var_700,this.skin.var_704); } else if(bgStart < this.barWidth) { - this.§_-SU§(g,this.skin.§_-py§,bgStart,w - bgStart); + this.method_366(g,this.skin.var_704,bgStart,w - bgStart); matrix.tx = w; - g.beginBitmapFill(this.skin.§_-GY§,matrix,false); - g.drawRect(w,0,this.§_-oy§,this.§_-Da§); + g.beginBitmapFill(this.skin.var_700,matrix,false); + g.drawRect(w,0,this.var_705,this.var_706); } g.endFill(); texture.fillRect(this.rect,0); @@ -118,24 +118,24 @@ package alternativa.tanks.game.usertitle texture.draw(canvas,matrix); } - private function §_-6J§(g:Graphics, leftTip:BitmapData, rightTip:BitmapData, center:BitmapData) : void + private function method_365(g:Graphics, leftTip:BitmapData, rightTip:BitmapData, center:BitmapData) : void { - var w:int = this.barWidth - this.§_-oy§; + var w:int = this.barWidth - this.var_705; g.beginBitmapFill(leftTip,null,false); - g.drawRect(0,0,this.§_-oy§,this.§_-Da§); - matrix.tx = this.§_-oy§; + g.drawRect(0,0,this.var_705,this.var_706); + matrix.tx = this.var_705; g.beginBitmapFill(center,matrix,true); - g.drawRect(this.§_-oy§,0,w - this.§_-oy§,this.§_-Da§); + g.drawRect(this.var_705,0,w - this.var_705,this.var_706); matrix.tx = w; g.beginBitmapFill(rightTip,matrix,false); - g.drawRect(w,0,this.§_-oy§,this.§_-Da§); + g.drawRect(w,0,this.var_705,this.var_706); } - private function §_-SU§(g:Graphics, center:BitmapData, x:int, width:int) : void + private function method_366(g:Graphics, center:BitmapData, x:int, width:int) : void { matrix.tx = x; g.beginBitmapFill(center,matrix,true); - g.drawRect(x,0,width,this.§_-Da§); + g.drawRect(x,0,width,this.var_706); } } } diff --git a/src/alternativa/tanks/game/usertitle/?_-ml?.as b/src/alternativa/tanks/game/usertitle/name_592.as similarity index 87% rename from src/alternativa/tanks/game/usertitle/?_-ml?.as rename to src/alternativa/tanks/game/usertitle/name_592.as index 13f65f9..86e49a7 100644 --- a/src/alternativa/tanks/game/usertitle/?_-ml?.as +++ b/src/alternativa/tanks/game/usertitle/name_592.as @@ -4,7 +4,7 @@ package alternativa.tanks.game.usertitle import flash.geom.Point; import flash.geom.Rectangle; - public class §_-ml§ + public class name_592 { public var left:BitmapData; @@ -12,7 +12,7 @@ package alternativa.tanks.game.usertitle public var center:BitmapData; - public function §_-ml§(bar:BitmapData, tipWidth:int) + public function name_592(bar:BitmapData, tipWidth:int) { super(); var h:int = int(bar.height); diff --git a/src/alternativa/tanks/game/utils/PhysicsParsingUtils.as b/src/alternativa/tanks/game/utils/PhysicsParsingUtils.as index 51550a4..aa3e740 100644 --- a/src/alternativa/tanks/game/utils/PhysicsParsingUtils.as +++ b/src/alternativa/tanks/game/utils/PhysicsParsingUtils.as @@ -7,7 +7,7 @@ package alternativa.tanks.game.utils 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.physics.collision.primitives.name_311; public class PhysicsParsingUtils { @@ -30,7 +30,7 @@ package alternativa.tanks.game.utils halfSize.y = maxY - minY; halfSize.z = maxZ - minZ; halfSize.scale(0.5); - var collisionBox:§_-m3§ = new §_-m3§(halfSize,collisionGroup,collisionMask); + var collisionBox:name_311 = new name_311(halfSize,collisionGroup,collisionMask); collisionBox.transform.setMatrix(mesh.x,mesh.y,mesh.z,mesh.rotationX,mesh.rotationY,mesh.rotationZ); var midPoint:Vector3 = new Vector3(0.5 * (maxX + minX),0.5 * (maxY + minY),0.5 * (maxZ + minZ)); midPoint.transform4(collisionBox.transform); diff --git a/src/alternativa/tanks/game/utils/Task.as b/src/alternativa/tanks/game/utils/Task.as index b497ad0..5f6edbd 100644 --- a/src/alternativa/tanks/game/utils/Task.as +++ b/src/alternativa/tanks/game/utils/Task.as @@ -2,7 +2,7 @@ package alternativa.tanks.game.utils { public class Task { - private var §_-UZ§:TaskSequence; + private var var_33:TaskSequence; public function Task() { @@ -16,12 +16,12 @@ package alternativa.tanks.game.utils internal function set taskSequence(value:TaskSequence) : void { - this.§_-UZ§ = value; + this.var_33 = value; } final protected function completeTask() : void { - this.§_-UZ§.taskComplete(this); + this.var_33.taskComplete(this); } } } diff --git a/src/alternativa/tanks/game/utils/TaskSequence.as b/src/alternativa/tanks/game/utils/TaskSequence.as index d84190a..beddd91 100644 --- a/src/alternativa/tanks/game/utils/TaskSequence.as +++ b/src/alternativa/tanks/game/utils/TaskSequence.as @@ -7,7 +7,7 @@ package alternativa.tanks.game.utils { private var tasks:Vector.; - private var §_-LN§:int; + private var var_192:int; public function TaskSequence() { @@ -28,7 +28,7 @@ package alternativa.tanks.game.utils { if(this.tasks.length > 0) { - this.§_-LN§ = 0; + this.var_192 = 0; this.runCurrentTask(); } else @@ -39,12 +39,12 @@ package alternativa.tanks.game.utils private function runCurrentTask() : void { - Task(this.tasks[this.§_-LN§]).run(); + Task(this.tasks[this.var_192]).run(); } internal function taskComplete(task:Task) : void { - if(++this.§_-LN§ < this.tasks.length) + if(++this.var_192 < this.tasks.length) { this.runCurrentTask(); } diff --git a/src/alternativa/tanks/game/utils/TimeStat.as b/src/alternativa/tanks/game/utils/TimeStat.as index 9e86c22..bee3006 100644 --- a/src/alternativa/tanks/game/utils/TimeStat.as +++ b/src/alternativa/tanks/game/utils/TimeStat.as @@ -4,17 +4,17 @@ package alternativa.tanks.game.utils public class TimeStat { - public var §_-IZ§:Number = 0; + public var var_212:Number = 0; - public var §_-6u§:Number = 0; + public var var_211:Number = 0; private var maxTicks:int; - private var §_-Et§:int; + private var var_208:int; - private var §_-Jl§:int; + private var var_210:int; - private var §_-45§:int; + private var var_209:int; public function TimeStat(maxTicks:int) { @@ -24,19 +24,19 @@ package alternativa.tanks.game.utils public function startTick() : void { - this.§_-Jl§ = getTimer(); + this.var_210 = getTimer(); } public function stopTick() : void { - this.§_-45§ += getTimer() - this.§_-Jl§; - ++this.§_-Et§; - if(this.§_-Et§ >= this.maxTicks) + this.var_209 += getTimer() - this.var_210; + ++this.var_208; + if(this.var_208 >= this.maxTicks) { - this.§_-IZ§ = this.§_-45§ / this.§_-Et§; - this.§_-6u§ = this.§_-Et§ * 1000 / this.§_-45§; - this.§_-Et§ = 0; - this.§_-45§ = 0; + this.var_212 = this.var_209 / this.var_208; + this.var_211 = this.var_208 * 1000 / this.var_209; + this.var_208 = 0; + this.var_209 = 0; } } } diff --git a/src/alternativa/tanks/game/utils/list/List.as b/src/alternativa/tanks/game/utils/list/List.as index 1527c68..d002e7f 100644 --- a/src/alternativa/tanks/game/utils/list/List.as +++ b/src/alternativa/tanks/game/utils/list/List.as @@ -6,7 +6,7 @@ package alternativa.tanks.game.utils.list internal var tail:ListItem; - internal var §_-M0§:int; + internal var var_568:int; public function List() { @@ -30,7 +30,7 @@ package alternativa.tanks.game.utils.list newItem.prev = this.tail.prev; this.tail.prev = newItem; newItem.prev.next = newItem; - ++this.§_-M0§; + ++this.var_568; } public function remove(data:Object) : Boolean @@ -99,7 +99,7 @@ package alternativa.tanks.game.utils.list item.next.prev = item.prev; item.next = null; item.prev = null; - ++this.§_-M0§; + ++this.var_568; } } } diff --git a/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as b/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as index 4b39420..91abe74 100644 --- a/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as +++ b/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as @@ -7,19 +7,19 @@ package alternativa.tanks.game.utils.list { private var list:List; - private var §_-M0§:int; + private var var_568:int; - private var §_-9H§:ListItem; + private var var_668:ListItem; - private var §_-4o§:ListItem; + private var var_667:ListItem; public function ListIteratorImpl(list:List) { super(); this.list = list; - this.§_-M0§ = list.§_-M0§; - this.§_-4o§ = list.head; - this.§_-9H§ = this.§_-4o§.next; + this.var_568 = list.var_568; + this.var_667 = list.head; + this.var_668 = this.var_667.next; } public function add(data:Object) : void @@ -27,53 +27,53 @@ package alternativa.tanks.game.utils.list 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; + 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.incChangeCounter(); } public function hasNext() : Boolean { this.validateList(); - return this.§_-9H§ != this.list.tail; + return this.var_668 != this.list.tail; } public function hasPrevious() : Boolean { this.validateList(); - return this.§_-4o§ != this.list.head; + return this.var_667 != this.list.head; } public function next() : Object { this.validateList(); - if(this.§_-9H§ == this.list.tail) + if(this.var_668 == this.list.tail) { throw new NoSuchElementError(); } - this.§_-4o§ = this.§_-9H§; - this.§_-9H§ = this.§_-9H§.next; - return this.§_-4o§.data; + this.var_667 = this.var_668; + this.var_668 = this.var_668.next; + return this.var_667.data; } public function previous() : Object { this.validateList(); - if(this.§_-4o§ == this.list.head) + if(this.var_667 == this.list.head) { throw new NoSuchElementError(); } - this.§_-9H§ = this.§_-4o§; - this.§_-4o§ = this.§_-4o§.prev; - return this.§_-9H§.data; + this.var_668 = this.var_667; + this.var_667 = this.var_667.prev; + return this.var_668.data; } private function validateList() : void { - if(this.§_-M0§ != this.list.§_-M0§) + if(this.var_568 != this.list.var_568) { throw new ConcurrentModificationError(); } @@ -81,8 +81,8 @@ package alternativa.tanks.game.utils.list private function incChangeCounter() : void { - ++this.§_-M0§; - this.list.§_-M0§ = this.§_-M0§; + ++this.var_568; + this.list.var_568 = this.var_568; } } } diff --git a/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as b/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as index d263785..40316eb 100644 --- a/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as +++ b/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as @@ -4,7 +4,7 @@ package alternativa.tanks.game.utils.objectpool public class ObjectPoolManager { - private var §_-Jm§:Dictionary = new Dictionary(); + private var var_103:Dictionary = new Dictionary(); public function ObjectPoolManager() { @@ -18,11 +18,11 @@ package alternativa.tanks.game.utils.objectpool private function getPool(objectClass:Class) : ObjectPool { - var pool:ObjectPool = this.§_-Jm§[objectClass]; + var pool:ObjectPool = this.var_103[objectClass]; if(pool == null) { pool = new ObjectPool(objectClass); - this.§_-Jm§[objectClass] = pool; + this.var_103[objectClass] = pool; } return pool; } diff --git a/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as b/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as index 2e424b4..20cc9a2 100644 --- a/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as +++ b/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as @@ -18,23 +18,23 @@ package alternativa.tanks.game.weapons private var energyRecoveryRate:Number; - private var §_-lp§:IContinuousActionWeapon; + private var var_442:IContinuousActionWeapon; private var baseTime:Number; - private var §_-Lq§:Boolean; + private var var_437:Boolean; - private var §_-3§:Boolean; + private var var_438:Boolean; - private var §_-Rr§:Boolean; + private var var_439:Boolean; - private var §_-f3§:Boolean; + private var var_440:Boolean; private var isLocal:Boolean; private var gameKernel:GameKernel; - private var §_-hE§:ILogic; + private var var_441:ILogic; public function ContinuousActionGunPlatformComponent(energyCapacity:Number, energyDrainRate:Number, energyRecoveryRate:Number, isLocal:Boolean) { @@ -48,17 +48,17 @@ package alternativa.tanks.game.weapons public function get enabled() : Boolean { - return this.§_-Rr§; + return this.var_439; } public function set enabled(value:Boolean) : void { - if(this.§_-Rr§ != value) + if(this.var_439 != value) { - this.§_-Rr§ = value; + this.var_439 = value; if(value) { - if(this.§_-3§) + if(this.var_438) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::enabled() activating"); this.activate(); @@ -76,7 +76,7 @@ package alternativa.tanks.game.weapons override public function initComponent() : void { - this.§_-lp§ = IContinuousActionWeapon(entity.getComponentStrict(IContinuousActionWeapon)); + this.var_442 = IContinuousActionWeapon(entity.getComponentStrict(IContinuousActionWeapon)); if(this.isLocal) { entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.setActiveState); @@ -90,26 +90,26 @@ package alternativa.tanks.game.weapons override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.§_-hE§ = gameKernel.getLogicSystem2(); + this.var_441 = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-hE§ = null; + this.var_441 = null; this.gameKernel = null; } public function getStatus() : Number { - return this.getCurrentEnergy(TimeSystem.timeSeconds,this.§_-Lq§) / this.energyCapacity; + return this.getCurrentEnergy(TimeSystem.timeSeconds,this.var_437) / this.energyCapacity; } public function pullTrigger() : void { - if(!this.§_-3§) + if(!this.var_438) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::pullTrigger()"); - this.§_-3§ = true; + this.var_438 = true; this.activate(); this.enableLogic(); } @@ -117,10 +117,10 @@ package alternativa.tanks.game.weapons public function releaseTrigger() : void { - if(this.§_-3§) + if(this.var_438) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::releaseTrigger()"); - this.§_-3§ = false; + this.var_438 = false; this.deactivate(); this.disableLogic(); } @@ -137,10 +137,10 @@ package alternativa.tanks.game.weapons public function runLogic() : void { - var currentEnergy:Number = this.getCurrentEnergy(TimeSystem.timeSeconds,this.§_-Lq§); + var currentEnergy:Number = this.getCurrentEnergy(TimeSystem.timeSeconds,this.var_437); if(currentEnergy > 0) { - this.§_-lp§.update(); + this.var_442.update(); } else { @@ -173,19 +173,19 @@ package alternativa.tanks.game.weapons private function enableLogic() : void { - if(!this.§_-f3§ && this.§_-Rr§) + if(!this.var_440 && this.var_439) { - this.§_-f3§ = true; - this.§_-hE§.addLogicUnit(this); + this.var_440 = true; + this.var_441.addLogicUnit(this); } } private function disableLogic() : void { - if(this.§_-f3§) + if(this.var_440) { - this.§_-f3§ = false; - this.§_-hE§.removeLogicUnit(this); + this.var_440 = false; + this.var_441.removeLogicUnit(this); } } @@ -193,10 +193,10 @@ package alternativa.tanks.game.weapons { var now:Number = NaN; var currentEnergy:Number = NaN; - if(!this.§_-Lq§ && this.§_-Rr§) + if(!this.var_437 && this.var_439) { - this.§_-Lq§ = true; - this.§_-lp§.start(); + this.var_437 = true; + this.var_442.start(); now = TimeSystem.timeSeconds; currentEnergy = this.getCurrentEnergy(now,false); this.baseTime = now - (this.energyCapacity - currentEnergy) / this.energyDrainRate; @@ -206,10 +206,10 @@ package alternativa.tanks.game.weapons private function deactivate() : void { var now:Number = NaN; - if(this.§_-Lq§) + if(this.var_437) { - this.§_-Lq§ = false; - this.§_-lp§.stop(); + this.var_437 = false; + this.var_442.stop(); now = TimeSystem.timeSeconds; this.baseTime = now - this.getCurrentEnergy(now,true) / this.energyRecoveryRate; } diff --git a/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as b/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as index c0467c1..874628c 100644 --- a/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as +++ b/src/alternativa/tanks/game/weapons/EnergyShotWeaponComponent.as @@ -56,27 +56,27 @@ package alternativa.tanks.game.weapons private var isActive:Boolean; - private var §_-Rr§:Boolean; + private var var_439:Boolean; - private var §_-3§:Boolean; + private var var_438:Boolean; - private var §_-f3§:Boolean; + private var var_440:Boolean; - private var §_-hE§:ILogic; + private var var_441:ILogic; private var gameKernel:GameKernel; private var baseTime:int; - private var §_-g8§:int; + private var var_446:int; - private var §_-Zu§:ITurretPhysicsComponent; + private var var_445:ITurretPhysicsComponent; private var chassisComponent:IChassisPhysicsComponent; - private var §_-bQ§:IWeaponShotEffects; + private var var_447:IWeaponShotEffects; - private var §_-eN§:int; + private var var_448:int; private var maxRange:Number; @@ -108,9 +108,9 @@ package alternativa.tanks.game.weapons override public function initComponent() : void { - this.§_-Zu§ = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + this.var_445 = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); - this.§_-bQ§ = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); + this.var_447 = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); this.ammunition = IEnergyAmmunition(entity.getComponentStrict(IEnergyAmmunition)); if(this.isActive) { @@ -125,21 +125,21 @@ package alternativa.tanks.game.weapons override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.§_-hE§ = gameKernel.getLogicSystem2(); + this.var_441 = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-hE§ = null; + this.var_441 = null; this.gameKernel = null; } public function pullTrigger() : void { - if(!this.§_-3§) + if(!this.var_438) { - this.§_-3§ = true; - if(this.§_-Rr§) + this.var_438 = true; + if(this.var_439) { this.enableLogic(); } @@ -148,9 +148,9 @@ package alternativa.tanks.game.weapons public function releaseTrigger() : void { - if(this.§_-3§) + if(this.var_438) { - this.§_-3§ = false; + this.var_438 = false; this.disableLogic(); } } @@ -175,14 +175,14 @@ package alternativa.tanks.game.weapons var round:IGenericRound = null; var now:int = TimeSystem.time; var currentEnergy:Number = this.getCurrentEnergy(now,this.baseTime); - if(now >= this.§_-g8§ && currentEnergy >= this.energyPerShot) + if(now >= this.var_446 && currentEnergy >= this.energyPerShot) { - this.§_-g8§ = now + this.reloadTime; + this.var_446 = now + this.reloadTime; this.baseTime = now - 1000 * (currentEnergy - this.energyPerShot) / this.energyRechargeRate; - this.§_-Zu§.getGunData(this.barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); - barrelLength = Number(this.§_-Zu§.getBarrelLength(this.barrelIndex)); + this.var_445.getGunData(this.barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); + barrelLength = Number(this.var_445.getBarrelLength(this.barrelIndex)); muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); - shotId = this.§_-eN§++; + shotId = this.var_448++; shooterBody = this.chassisComponent.getBody(); collisionDetector = this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector; filter.body = shooterBody; @@ -204,15 +204,15 @@ package alternativa.tanks.game.weapons } round = this.ammunition.getRound(shotType,this.maxRange); round.shoot(this.gameKernel,shotId,shooterBody,barrelOrigin,barrelLength,shotDirection,muzzlePosition); - this.barrelIndex = (this.barrelIndex + 1) % this.§_-Zu§.getBarrelCount(); + this.barrelIndex = (this.barrelIndex + 1) % this.var_445.getBarrelCount(); } } public function shoot(shotId:int, shotType:EnergyShotType, shotDirection:Vector3, barrelIndex:int) : void { var shooterBody:Body = this.chassisComponent.getBody(); - var barrelLength:Number = Number(this.§_-Zu§.getBarrelLength(barrelIndex)); - this.§_-Zu§.getGunData(barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); + var barrelLength:Number = Number(this.var_445.getBarrelLength(barrelIndex)); + this.var_445.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); @@ -221,17 +221,17 @@ package alternativa.tanks.game.weapons public function get enabled() : Boolean { - return this.§_-Rr§; + return this.var_439; } public function set enabled(value:Boolean) : void { - if(this.§_-Rr§ != value) + if(this.var_439 != value) { - this.§_-Rr§ = value; - if(this.§_-Rr§) + this.var_439 = value; + if(this.var_439) { - if(this.§_-3§) + if(this.var_438) { this.enableLogic(); } @@ -249,7 +249,7 @@ package alternativa.tanks.game.weapons this.chassisComponent.getBody().addWorldForce(barrelOrigin,recoilForceVector); if(shotType == EnergyShotType.NORMAL_SHOT) { - this.§_-bQ§.createShotEffects(barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); + this.var_447.createShotEffects(barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } } @@ -265,19 +265,19 @@ package alternativa.tanks.game.weapons private function enableLogic() : void { - if(!this.§_-f3§) + if(!this.var_440) { - this.§_-f3§ = true; - this.§_-hE§.addLogicUnit(this); + this.var_440 = true; + this.var_441.addLogicUnit(this); } } private function disableLogic() : void { - if(this.§_-f3§) + if(this.var_440) { - this.§_-f3§ = false; - this.§_-hE§.removeLogicUnit(this); + this.var_440 = false; + this.var_441.removeLogicUnit(this); } } diff --git a/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as b/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as index f6218a5..b414bc6 100644 --- a/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as +++ b/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as @@ -40,23 +40,23 @@ package alternativa.tanks.game.weapons private var callback:IInstantShotWeaponCallback; - private var §_-g8§:int; + private var var_446:int; - private var §_-Zu§:ITurretPhysicsComponent; + private var var_445:ITurretPhysicsComponent; private var chassisComponent:IChassisPhysicsComponent; - private var §_-bQ§:IWeaponShotEffects; + private var var_447:IWeaponShotEffects; - private var §_-hE§:ILogic; + private var var_441:ILogic; - private var §_-Rr§:Boolean; + private var var_439:Boolean; - private var §_-3§:Boolean; + private var var_438:Boolean; - private var §_-f3§:Boolean; + private var var_440:Boolean; - private var §_-eN§:int; + private var var_448:int; private var gameKernel:GameKernel; @@ -75,9 +75,9 @@ package alternativa.tanks.game.weapons override public function initComponent() : void { - this.§_-Zu§ = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); + this.var_445 = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); - this.§_-bQ§ = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); + this.var_447 = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); if(this.isActive) { entity.addEventHandler(TankEvents.SET_ACTIVE_STATE,this.setActiveState); @@ -101,27 +101,27 @@ package alternativa.tanks.game.weapons override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.§_-hE§ = gameKernel.getLogicSystem2(); + this.var_441 = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-hE§ = null; + this.var_441 = null; this.gameKernel = null; } public function getStatus() : Number { - var readiness:Number = 1 + (TimeSystem.time - this.§_-g8§) / this.reloadTime; + var readiness:Number = 1 + (TimeSystem.time - this.var_446) / this.reloadTime; return readiness > 1 ? 1 : readiness; } public function pullTrigger() : void { - if(!this.§_-3§) + if(!this.var_438) { - this.§_-3§ = true; - if(this.§_-Rr§) + this.var_438 = true; + if(this.var_439) { this.enableLogic(); } @@ -130,9 +130,9 @@ package alternativa.tanks.game.weapons public function releaseTrigger() : void { - if(this.§_-3§) + if(this.var_438) { - this.§_-3§ = false; + this.var_438 = false; this.disableLogic(); } } @@ -144,20 +144,20 @@ package alternativa.tanks.game.weapons public function runLogic() : void { - if(TimeSystem.time < this.§_-g8§) + if(TimeSystem.time < this.var_446) { return; } - this.§_-g8§ = TimeSystem.time + this.reloadTime; + this.var_446 = TimeSystem.time + this.reloadTime; if(this.callback != null) { this.callback.onInstantShot(); } - this.§_-Zu§.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); - var barrelLength:Number = Number(this.§_-Zu§.getBarrelLength(BARREL_INDEX)); + this.var_445.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); + var barrelLength:Number = Number(this.var_445.getBarrelLength(BARREL_INDEX)); muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); this.doShowShotEffects(barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); - var shotId:int = this.§_-eN§++; + var shotId:int = this.var_448++; 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(); @@ -166,17 +166,17 @@ package alternativa.tanks.game.weapons public function get enabled() : Boolean { - return this.§_-Rr§; + return this.var_439; } public function set enabled(value:Boolean) : void { - if(this.§_-Rr§ != value) + if(this.var_439 != value) { - this.§_-Rr§ = value; - if(this.§_-Rr§) + this.var_439 = value; + if(this.var_439) { - if(this.§_-3§) + if(this.var_438) { this.enableLogic(); } @@ -190,8 +190,8 @@ package alternativa.tanks.game.weapons public function showShotEffects() : void { - this.§_-Zu§.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); - muzzlePosition.copy(barrelOrigin).addScaled(this.§_-Zu§.getBarrelLength(BARREL_INDEX),gunDirection); + this.var_445.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); + muzzlePosition.copy(barrelOrigin).addScaled(this.var_445.getBarrelLength(BARREL_INDEX),gunDirection); this.doShowShotEffects(barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } @@ -199,24 +199,24 @@ package alternativa.tanks.game.weapons { recoilForceVector.copy(gunDirection).scale(-this.recoilForce); this.chassisComponent.getBody().addWorldForce(barrelOrigin,recoilForceVector); - this.§_-bQ§.createShotEffects(BARREL_INDEX,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); + this.var_447.createShotEffects(BARREL_INDEX,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } private function enableLogic() : void { - if(!this.§_-f3§) + if(!this.var_440) { - this.§_-f3§ = true; - this.§_-hE§.addLogicUnit(this); + this.var_440 = true; + this.var_441.addLogicUnit(this); } } private function disableLogic() : void { - if(this.§_-f3§) + if(this.var_440) { - this.§_-f3§ = false; - this.§_-hE§.removeLogicUnit(this); + this.var_440 = false; + this.var_441.removeLogicUnit(this); } } } diff --git a/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as index 6d82610..8aa13e3 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as +++ b/src/alternativa/tanks/game/weapons/ammunition/energy/EnergyRoundComponent.as @@ -33,13 +33,13 @@ package alternativa.tanks.game.weapons.ammunition.energy private var gameKernel:GameKernel; - private var §_-oF§:Vector3 = new Vector3(); + private var var_623:Vector3 = new Vector3(); - private var §_-hV§:Vector3 = new Vector3(); + private var var_620:Vector3 = new Vector3(); private var direction:Vector3 = new Vector3(); - private var §_-PL§:Number; + private var var_621:Number; private var shotId:int; @@ -59,17 +59,17 @@ package alternativa.tanks.game.weapons.ammunition.energy private var ricochetCount:int; - private var §_-LC§:Vector.; + private var var_622:Vector.; private var effectsFactory:IEnergyRoundEffectsFactory; public function EnergyRoundComponent() { super(); - this.§_-LC§ = new Vector.(NUM_PERIPHERAL_RAYS); + this.var_622 = new Vector.(NUM_PERIPHERAL_RAYS); for(var i:int = 0; i < NUM_PERIPHERAL_RAYS; i++) { - this.§_-LC§[i] = new Vector3(); + this.var_622[i] = new Vector3(); } } @@ -139,7 +139,7 @@ package alternativa.tanks.game.weapons.ammunition.energy 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)) + if(this.collisionDetector.raycast(this.var_620,this.direction,CollisionGroup.WEAPON | CollisionGroup.STATIC,deltaDistance,filter,rayHit)) { raycastResult = 1; hitTime = rayHit.t; @@ -148,7 +148,7 @@ package alternativa.tanks.game.weapons.ammunition.energy } for(i = 0; i < NUM_PERIPHERAL_RAYS; ) { - origin = this.§_-LC§[i]; + origin = this.var_622[i]; if(this.collisionDetector.raycast(origin,this.direction,CollisionGroup.WEAPON,deltaDistance,filter,rayHit)) { if(rayHit.t < hitTime) @@ -163,25 +163,25 @@ package alternativa.tanks.game.weapons.ammunition.energy } if(raycastResult <= 0) { - this.§_-PL§ += deltaDistance; - if(this.§_-PL§ > this.maxRange) + this.var_621 += deltaDistance; + if(this.var_621 > this.maxRange) { this.gameKernel.removeEntity(entity); } else { - this.§_-oF§.copy(this.§_-hV§); + this.var_623.copy(this.var_620); _vector.copy(this.direction).scale(deltaDistance); - this.§_-hV§.add(_vector); + this.var_620.add(_vector); for(i = 0; i < NUM_PERIPHERAL_RAYS; i++) { - Vector3(this.§_-LC§[i]).add(_vector); + Vector3(this.var_622[i]).add(_vector); } } return; } - this.§_-PL§ += hitTime; - if(this.§_-PL§ >= this.maxRange) + this.var_621 += hitTime; + if(this.var_621 >= this.maxRange) { this.gameKernel.removeEntity(entity); return; @@ -191,11 +191,11 @@ package alternativa.tanks.game.weapons.ammunition.energy this.effectsFactory.createExplosionEffects(rayHit.position); if(body != null) { - impactForce = this.roundData.weakening.getWeakeningCoefficient(this.§_-PL§) * this.roundData.impactForce; + impactForce = this.roundData.weakening.getWeakeningCoefficient(this.var_621) * 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.callback.onEnergyRoundHit(this.shotId,rayHit.position,this.var_621,body); } } this.gameKernel.removeEntity(entity); @@ -203,14 +203,14 @@ package alternativa.tanks.game.weapons.ammunition.energy } ++this.ricochetCount; frameDistance += hitTime; - this.§_-PL§ += hitTime; + this.var_621 += hitTime; deltaDistance -= hitTime; - _vector.copy(this.§_-hV§).addScaled(hitTime,this.direction); + _vector.copy(this.var_620).addScaled(hitTime,this.direction); this.effectsFactory.createRicochetEffects(_vector,_normal,this.direction); - this.§_-hV§.addScaled(hitTime,this.direction).addScaled(0.01,_normal); + this.var_620.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); + this.var_623.copy(this.var_620).addScaled(-frameDistance,this.direction); + this.initRadialPoints(this.var_620,this.direction,this.roundData.radius); } } @@ -220,7 +220,7 @@ package alternativa.tanks.game.weapons.ammunition.energy public function interpolate(interpolationCoeff:Number) : void { - _vector.diff(this.§_-hV§,this.§_-oF§).scale(interpolationCoeff).add(this.§_-oF§); + _vector.diff(this.var_620,this.var_623).scale(interpolationCoeff).add(this.var_623); this.effect.setPosition(_vector); } @@ -229,16 +229,16 @@ package alternativa.tanks.game.weapons.ammunition.energy this.shotId = shotId; this.shooter = shooter; this.direction.copy(shotDirection); - this.§_-PL§ = 0; + this.var_621 = 0; switch(this.shotType) { case EnergyShotType.CLOSE_SHOT: - this.§_-hV§.copy(barrelOrigin); + this.var_620.copy(barrelOrigin); break; case EnergyShotType.NORMAL_SHOT: - this.§_-hV§.copy(muzzlePosition); + this.var_620.copy(muzzlePosition); } - this.initRadialPoints(this.§_-hV§,shotDirection,this.roundData.radius); + this.initRadialPoints(this.var_620,shotDirection,this.roundData.radius); gameKernel.addEntity(entity); } @@ -283,11 +283,11 @@ package alternativa.tanks.game.weapons.ammunition.energy } v.normalize().scale(radius); _rotationMatrix.fromAxisAngle(shotDirection,RADIAL_ANGLE_STEP); - Vector3(this.§_-LC§[0]).copy(centerPoint).add(v); + Vector3(this.var_622[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); + Vector3(this.var_622[i]).copy(centerPoint).add(v); } } } diff --git a/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as b/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as index f5501a1..2ce927f 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as +++ b/src/alternativa/tanks/game/weapons/ammunition/plasma/PlasmaRoundEffectsFactory.as @@ -40,7 +40,7 @@ package alternativa.tanks.game.weapons.ammunition.plasma var effect:PlasmaRoundEffect = PlasmaRoundEffect(this.gameKernel.getObjectPoolManager().getObject(PlasmaRoundEffect)); var rotation:Number = Math.random() * Math.PI; effect.init(EFFECT_SIZE,EFFECT_SIZE,this.roundFrames,Vector3.ZERO,rotation,50,EFFECT_FPS,true,0.5,0.5); - this.gameKernel.getRenderSystem().each(effect); + this.gameKernel.getRenderSystem().method_21(effect); return effect; } @@ -49,7 +49,7 @@ package alternativa.tanks.game.weapons.ammunition.plasma 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.getRenderSystem().each(explosionEffect); + this.gameKernel.getRenderSystem().method_21(explosionEffect); } public function createRicochetEffects(position:Vector3, normal:Vector3, direction:Vector3) : void diff --git a/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as b/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as index dcccdbb..34e56b4 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as +++ b/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as @@ -6,7 +6,7 @@ package alternativa.tanks.game.weapons.ammunition.railgun public class MultybodyRaycastFilter implements IRaycastFilter { - public var §_-By§:Dictionary = new Dictionary(); + public var name_438:Dictionary = new Dictionary(); public function MultybodyRaycastFilter() { @@ -15,7 +15,7 @@ package alternativa.tanks.game.weapons.ammunition.railgun public function acceptRayHit(primitive:CollisionPrimitive) : Boolean { - return this.§_-By§[primitive.body] == null; + return this.name_438[primitive.body] == null; } } } diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as index 8752eeb..b6aa5bc 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamage.as @@ -4,17 +4,17 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug public class DebugSplashDamage implements ISplashDamage { - private var §_-YZ§:Number; + private var var_643:Number; public function DebugSplashDamage(radius:Number) { super(); - this.§_-YZ§ = radius; + this.var_643 = radius; } public function get radius() : Number { - return this.§_-YZ§; + return this.var_643; } public function getPower(basePower:Number, radius:Number) : Number diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as index aca9b3d..03c0e27 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/DebugSplashDamageAmmo.as @@ -11,7 +11,7 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug public class DebugSplashDamageAmmo implements IGenericAmmunition { - private var §_-ea§:SplashDamageRound; + private var var_468:SplashDamageRound; public function DebugSplashDamageAmmo(gameKernel:GameKernel, radius:Number, impactForce:Number, maximumDamageRadius:Number, minimumDamageRadius:Number, minimumDamageCoefficient:Number, callback:IAOEAmmunitionCallback, frames:Vector.) { @@ -21,13 +21,13 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug 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); + this.var_468 = new SplashDamageRound(impactForce,weaponDistanceWeakening,splashDamage,splashDamageEffects,collisionDetector,debugSplashTargetFilter); + this.var_468.setCallback(callback); } public function getRound() : IGenericRound { - return this.§_-ea§; + return this.var_468; } } } diff --git a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as index 1bdb6bc..ea97e8a 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as @@ -3,11 +3,11 @@ 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 alternativa.engine3d.effects.name_77; import flash.display3D.Context3DBlendFactor; import flash.geom.Vector3D; - public class SmokyExplosion extends §_-SG§ + public class SmokyExplosion extends name_77 { private static var smokePrototype:ParticlePrototype; @@ -107,7 +107,7 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug 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); + method_127(var_151[var_148 - 1] + smokePrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void @@ -318,9 +318,9 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug 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; + result.x += time * windSpeed * var_6.wind.x; + result.y += time * windSpeed * var_6.wind.y; + result.z += time * windSpeed * var_6.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 index d6e27e4..03282a5 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as @@ -3,11 +3,11 @@ 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 alternativa.engine3d.effects.name_77; import flash.display3D.Context3DBlendFactor; import flash.geom.Vector3D; - public class SmokyShot extends §_-SG§ + public class SmokyShot extends name_77 { private static var shotPrototype:ParticlePrototype; @@ -32,18 +32,18 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug boundBox.maxY = 100; boundBox.maxZ = 100; addKey(0 * 0.03333333333333333,this.keyFrame1); - §_-DM§(§_-gV§[§_-kf§ - 1] + shotPrototype.lifeTime); + method_127(var_151[var_148 - 1] + shotPrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void { - pos.copyFrom(§_-cF§); + pos.copyFrom(var_156); pos.scaleBy(time * 100 + 25); shotPrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,0); - pos.copyFrom(§_-cF§); + pos.copyFrom(var_156); pos.scaleBy(time * 300 + 32); shotPrototype.createParticle(this,time,pos,random() * 6.28,0.88,0.88,1,0); - pos.copyFrom(§_-cF§); + pos.copyFrom(var_156); pos.scaleBy(time * 400 + 39); shotPrototype.createParticle(this,time,pos,random() * 6.28,0.66,0.66,1,0); } diff --git a/src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as b/src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as index f894166..8c5babc 100644 --- a/src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as +++ b/src/alternativa/tanks/game/weapons/conicareadamage/ConicAreaWeaponComponent.as @@ -33,7 +33,7 @@ package alternativa.tanks.game.weapons.conicareadamage private var targetToDistance:Dictionary; - private var §_-9m§:Dictionary; + private var var_459:Dictionary; private var callback:IConicAreaWeaponCallback; @@ -51,7 +51,7 @@ package alternativa.tanks.game.weapons.conicareadamage this.isLocal = isLocal; this.createStarted = createStarted; this.targetToDistance = new Dictionary(); - this.§_-9m§ = new Dictionary(); + this.var_459 = new Dictionary(); } public function setCallback(callback:IConicAreaWeaponCallback) : void @@ -114,8 +114,8 @@ package alternativa.tanks.game.weapons.conicareadamage var tmp:Dictionary = null; this.turret.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); var barrelLength:Number = Number(this.turret.getBarrelLength(BARREL_INDEX)); - this.targetingSystem.getTargets(this.chassis.getBody(),barrelOrigin,barrelLength,0,gunDirection,gunElevationAxis,this.§_-9m§); - for(key in this.§_-9m§) + this.targetingSystem.getTargets(this.chassis.getBody(),barrelOrigin,barrelLength,0,gunDirection,gunElevationAxis,this.var_459); + for(key in this.var_459) { storedDistance = Number(this.targetToDistance[key]); if(isNaN(storedDistance)) @@ -123,7 +123,7 @@ package alternativa.tanks.game.weapons.conicareadamage targetsChanged = true; break; } - newDistance = Number(this.§_-9m§[key]); + newDistance = Number(this.var_459[key]); if(storedDistance > this.fullDamageRange || newDistance > this.fullDamageRange) { difference = newDistance - storedDistance; @@ -138,7 +138,7 @@ package alternativa.tanks.game.weapons.conicareadamage { for(key in this.targetToDistance) { - if(this.§_-9m§[key] == null) + if(this.var_459[key] == null) { targetsChanged = true; break; @@ -148,16 +148,16 @@ package alternativa.tanks.game.weapons.conicareadamage if(targetsChanged) { tmp = this.targetToDistance; - this.targetToDistance = this.§_-9m§; - this.§_-9m§ = tmp; + this.targetToDistance = this.var_459; + this.var_459 = tmp; if(this.callback != null) { this.callback.onConicAreaWeaponTargetSetChange(this.targetToDistance); } } - for(key in this.§_-9m§) + for(key in this.var_459) { - delete this.§_-9m§[key]; + delete this.var_459[key]; } } } diff --git a/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as b/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as index 45690e7..41cf04f 100644 --- a/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as @@ -3,11 +3,11 @@ 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 alternativa.engine3d.effects.name_77; import flash.display3D.Context3DBlendFactor; import flash.geom.Vector3D; - public class FlameThrower extends §_-SG§ + public class FlameThrower extends name_77 { private static var smokePrototype1:ParticlePrototype; @@ -90,32 +90,32 @@ package alternativa.tanks.game.weapons.flamethrower addKey(keyTime,this.keyFrame1); i++; } - §_-DM§(§_-gV§[§_-kf§ - 1] + smokePrototype2.lifeTime); + method_127(var_151[var_148 - 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.x = var_156.x; + dir.y = var_156.y; + dir.z = var_156.z + 0.2; dir.normalize(); - this.randomDirection(§_-cF§,ang,pos); + this.randomDirection(var_156,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); + this.randomDirection(var_156,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); + this.randomDirection(var_156,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); + this.randomDirection(var_156,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); + this.randomDirection(var_156,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); @@ -148,9 +148,9 @@ package alternativa.tanks.game.weapons.flamethrower 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; + result.x += time * windSpeed * var_6.wind.x; + result.y += time * windSpeed * var_6.wind.y; + result.z += time * windSpeed * var_6.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 index 5a51f20..2b0cb4d 100644 --- a/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXComponent.as +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerSFXComponent.as @@ -79,7 +79,7 @@ package alternativa.tanks.game.weapons.flamethrower 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); + this.gameKernel.getRenderSystem().method_21(this.effect); } public function stop() : void diff --git a/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as index 151895a..6370041 100644 --- a/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as +++ b/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as @@ -19,7 +19,7 @@ package alternativa.tanks.game.weapons.targeting private var range:Number; - private var §_-HN§:Number; + private var var_452:Number; private var numRays:int; @@ -31,11 +31,11 @@ package alternativa.tanks.game.weapons.targeting private var rayDirection:Vector3 = new Vector3(); - private var §_-84§:Vector3 = new Vector3(); + private var var_449:Vector3 = new Vector3(); - private var §_-2z§:Matrix3 = new Matrix3(); + private var var_450:Matrix3 = new Matrix3(); - private var §_-FX§:Matrix3 = new Matrix3(); + private var var_451:Matrix3 = new Matrix3(); private var targetToDistance:Dictionary; @@ -45,7 +45,7 @@ package alternativa.tanks.game.weapons.targeting { super(); this.range = range; - this.§_-HN§ = 0.5 * coneAngle; + this.var_452 = 0.5 * coneAngle; this.numRays = numRays; this.numSteps = numSteps; this.collisionDetector = collisionDetector; @@ -74,16 +74,16 @@ package alternativa.tanks.game.weapons.targeting else { this.sideAxis.copy(gunElevationAxis); - this.§_-84§.copy(barrelOrigin).addScaled(barrelLength - originOffset,gunDirection); + this.var_449.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; + this.checkDirection(shooter,this.var_449,gunDirection,_loc11_); + this.var_451.fromAxisAngle(gunDirection,Math.PI / this.numSteps); + _loc12_ = this.var_452 / 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§); + this.processSector(shooter,this.var_449,_loc11_,gunDirection,this.sideAxis,this.numRays,_loc12_); + this.processSector(shooter,this.var_449,_loc11_,gunDirection,this.sideAxis,this.numRays,-_loc12_); + this.sideAxis.transform3(this.var_451); } } for(key in targetToDistance) @@ -101,11 +101,11 @@ package alternativa.tanks.game.weapons.targeting private function processSector(shooter:Body, rayOrigin:Vector3, rayLength:Number, gunDirection:Vector3, rotationAxis:Vector3, numRays:int, angleStep:Number) : void { - this.§_-2z§.fromAxisAngle(rotationAxis,angleStep); + this.var_450.fromAxisAngle(rotationAxis,angleStep); this.rayDirection.copy(gunDirection); for(var i:int = 0; i < numRays; i++) { - this.rayDirection.transform3(this.§_-2z§); + this.rayDirection.transform3(this.var_450); this.checkDirection(shooter,rayOrigin,this.rayDirection,rayLength); } } diff --git a/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as index 30a840e..3c738c3 100644 --- a/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as +++ b/src/alternativa/tanks/game/weapons/targeting/EnergyTargetingSystem.as @@ -40,7 +40,7 @@ package alternativa.tanks.game.weapons.targeting private var matrix:Matrix3 = new Matrix3(); - private var §_-KF§:Number; + private var var_509:Number; public function EnergyTargetingSystem(angleUp:Number, numRaysUp:int, angleDown:Number, numRaysDown:int, maxRicochets:int, collisionDetector:ICollisionDetector, targetValidator:IGenericTargetEvaluator) { @@ -66,12 +66,12 @@ package alternativa.tanks.game.weapons.targeting public function getShotDirection(shooter:Body, muzzlePosition:Vector3, barrelDirection:Vector3, gunElevationAxis:Vector3, maxDistance:Number, result:Vector3) : void { - this.§_-KF§ = 0; + this.var_509 = 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) + if(this.var_509 == 0) { result.copy(barrelDirection); } @@ -103,9 +103,9 @@ package alternativa.tanks.game.weapons.targeting { distance = maxDistance - remainingDistance; targetPriority = Number(this.targetEvaluator.getTargetPriority(shooter,body,distance,angle)); - if(targetPriority > this.§_-KF§) + if(targetPriority > this.var_509) { - this.§_-KF§ = targetPriority; + this.var_509 = targetPriority; result.copy(direction); } return; diff --git a/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as index 0dacda8..e5f59d3 100644 --- a/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as +++ b/src/alternativa/tanks/game/weapons/targeting/GenericTargetingSystem.as @@ -15,9 +15,9 @@ package alternativa.tanks.game.weapons.targeting private static var rayDirection:Vector3 = new Vector3(); - private var §_-IP§:Number; + private var var_469:Number; - private var §_-3V§:Vector3 = new Vector3(); + private var var_470:Vector3 = new Vector3(); private var matrix:Matrix3 = new Matrix3(); @@ -62,10 +62,10 @@ package alternativa.tanks.game.weapons.targeting { var body:Body = null; this.filter.body = shooter; - this.§_-IP§ = maxDistance + 1; + this.var_469 = maxDistance + 1; if(this.collisionDetector.raycast(barrelOrigin,barrelDirection,collisionMask,maxDistance,this.filter,this.rayHit)) { - this.§_-IP§ = this.rayHit.t; + this.var_469 = this.rayHit.t; body = this.rayHit.primitive.body; if(body == null) { @@ -75,7 +75,7 @@ package alternativa.tanks.game.weapons.targeting return; } } - this.§_-3V§.copy(barrelDirection); + this.var_470.copy(barrelDirection); } if(this.numRaysUp > 0) { @@ -86,13 +86,13 @@ package alternativa.tanks.game.weapons.targeting this.checkSector(shooter,barrelOrigin,barrelDirection,gunElevationAxis,this.numRaysDown,-this.angleDown / this.numRaysDown,maxDistance); } this.filter.body = null; - if(this.§_-IP§ > maxDistance) + if(this.var_469 > maxDistance) { result.copy(barrelDirection); } else { - result.copy(this.§_-3V§); + result.copy(this.var_470); } } @@ -104,13 +104,13 @@ package alternativa.tanks.game.weapons.targeting 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§) + 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.getTargetPriority(shooter,targetBody,0,0) > 0) { - this.§_-IP§ = this.rayHit.t; - this.§_-3V§.copy(rayDirection); + this.var_469 = this.rayHit.t; + this.var_470.copy(rayDirection); } } i++; diff --git a/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as index 9d051a3..7bc5f17 100644 --- a/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as +++ b/src/alternativa/tanks/game/weapons/targeting/RailgunTargetingSystem.as @@ -25,7 +25,7 @@ package alternativa.tanks.game.weapons.targeting private var numRaysDown:int; - private var §_-Gs§:MultybodyRaycastFilter = new MultybodyRaycastFilter(); + private var var_504:MultybodyRaycastFilter = new MultybodyRaycastFilter(); private var rayHit:RayHit = new RayHit(); @@ -86,10 +86,10 @@ package alternativa.tanks.game.weapons.targeting var targetValue:Number = NaN; var directionValue:Number = 0; var firstTarget:Boolean = true; - this.§_-Gs§.§_-By§ = new Dictionary(); - this.§_-Gs§.§_-By§[shooter] = true; + this.var_504.name_438 = new Dictionary(); + this.var_504.name_438[shooter] = true; this.origin.copy(barrelOrigin); - while(this.collisionDetector.raycast(this.origin,barrelDirection,this.COLLISION_MASK,maxDistance,this.§_-Gs§,this.rayHit)) + while(this.collisionDetector.raycast(this.origin,barrelDirection,this.COLLISION_MASK,maxDistance,this.var_504,this.rayHit)) { body = this.rayHit.primitive.body; if(body == null) @@ -111,10 +111,10 @@ package alternativa.tanks.game.weapons.targeting firstTarget = false; } directionValue += targetValue; - this.§_-Gs§.§_-By§[body] = true; + this.var_504.name_438[body] = true; this.origin.copy(this.rayHit.position); } - this.§_-Gs§.§_-By§ = null; + this.var_504.name_438 = null; return directionValue; } } diff --git a/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as b/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as index 2c441d4..2764aa1 100644 --- a/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as +++ b/src/alternativa/tanks/game/weapons/thunder/ThunderShotEffectComponent.as @@ -20,7 +20,7 @@ package alternativa.tanks.game.weapons.thunder private var textureResource:TextureResource; - private var §_-PT§:Vector3D = new Vector3D(); + private var var_487:Vector3D = new Vector3D(); public function ThunderShotEffectComponent(textureResource:TextureResource) { @@ -52,14 +52,14 @@ package alternativa.tanks.game.weapons.thunder 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§; + 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.getRenderSystem().addA3DEffect(eff); } diff --git a/src/alternativa/tanks/lightsmanager/LightsManager.as b/src/alternativa/tanks/lightsmanager/LightsManager.as index 02d3504..9dec2fc 100644 --- a/src/alternativa/tanks/lightsmanager/LightsManager.as +++ b/src/alternativa/tanks/lightsmanager/LightsManager.as @@ -16,7 +16,7 @@ package alternativa.tanks.lightsmanager private var renderSystem:RenderSystem; - private var §_-02§:Object = {}; + private var var_471:Object = {}; public function LightsManager(param1:RenderSystem) { @@ -24,10 +24,10 @@ package alternativa.tanks.lightsmanager 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); + this.var_471[LIGHT_TYPE_AMBIENT] = new AmbientLightRegistry(param1); + this.var_471[LIGHT_TYPE_DIRECTIONAL] = new DirectionalLightRegistry(param1); + this.var_471[LIGHT_TYPE_OMNI] = new OmniLightRegistry(param1); + this.var_471[LIGHT_TYPE_SPOT] = new SpotLightRegistry(param1); } private function lightCommandHandler(param1:IConsole, param2:Array) : void @@ -37,7 +37,7 @@ package alternativa.tanks.lightsmanager if(param2.length != 0) { _loc3_ = param2.shift(); - _loc4_ = this.§_-02§[_loc3_]; + _loc4_ = this.var_471[_loc3_]; if(_loc4_ == null) { param1.addText("Unknown light type"); diff --git a/src/alternativa/tanks/sounds/ChassisSoundCallback.as b/src/alternativa/tanks/sounds/ChassisSoundCallback.as index bb15132..3f6d764 100644 --- a/src/alternativa/tanks/sounds/ChassisSoundCallback.as +++ b/src/alternativa/tanks/sounds/ChassisSoundCallback.as @@ -8,48 +8,48 @@ package alternativa.tanks.sounds public class ChassisSoundCallback implements IChassisManualControlCallback { - private var §_-9N§:Sound; + private var var_462:Sound; - private var §_-dF§:Sound; + private var var_465:Sound; - private var §_-ik§:Sound; + private var var_464:Sound; - private var §_-QG§:Sound; + private var var_463:Sound; - private var §_-qB§:SoundChannel; + private var var_460:SoundChannel; - private var §_-kx§:Boolean = false; + private var var_461: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.var_462 = param1.getSound("startmoving"); + this.var_465 = param1.getSound("endmoving"); + this.var_464 = param1.getSound("move"); + this.var_463 = 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(_loc4_ && !this.var_461) { - if(this.§_-qB§ != null) + if(this.var_460 != null) { - this.§_-qB§.stop(); + this.var_460.stop(); } this.startMoving(); } - else if(!_loc4_ && this.§_-kx§) + else if(!_loc4_ && this.var_461) { - if(this.§_-qB§ != null) + if(this.var_460 != null) { - this.§_-qB§.stop(); + this.var_460.stop(); } this.stopMoving(); } - this.§_-kx§ = _loc4_; + this.var_461 = _loc4_; } private function stopMoving() : void @@ -59,47 +59,47 @@ package alternativa.tanks.sounds private function onStopMoveComplete(param1:Event) : void { - this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onStopMoveComplete); + this.var_460.removeEventListener(Event.SOUND_COMPLETE,this.onStopMoveComplete); this.idleLoop(); } private function startMoving() : void { - if(this.§_-qB§ != null) + if(this.var_460 != null) { - this.§_-qB§.stop(); + this.var_460.stop(); } - this.§_-qB§ = this.§_-9N§.play(); - this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onStartMoveComplete); + this.var_460 = this.var_462.play(); + this.var_460.addEventListener(Event.SOUND_COMPLETE,this.onStartMoveComplete); } private function onStartMoveComplete(param1:Event) : void { - this.§_-qB§.stop(); + this.var_460.stop(); this.moveLoop(); } private function moveLoop() : void { - this.§_-qB§ = this.§_-ik§.play(0); - this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); + this.var_460 = this.var_464.play(0); + this.var_460.addEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); } private function onMoveLoop(param1:Event) : void { - this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); + this.var_460.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); + this.var_460 = this.var_463.play(0); + this.var_460.addEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); } private function onIdleLoop(param1:Event) : void { - this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); + this.var_460.removeEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); this.idleLoop(); } diff --git a/src/alternativa/tanks/sounds/TurretSoundCallback.as b/src/alternativa/tanks/sounds/TurretSoundCallback.as index d8f7122..8024945 100644 --- a/src/alternativa/tanks/sounds/TurretSoundCallback.as +++ b/src/alternativa/tanks/sounds/TurretSoundCallback.as @@ -11,22 +11,22 @@ package alternativa.tanks.sounds { private var soundLibrary:SoundsLibrary; - private var §_-At§:Sound; + private var var_474:Sound; - private var §_-ha§:SoundChannel = null; + private var var_473:SoundChannel = null; public function TurretSoundCallback(param1:SoundsLibrary) { super(); this.soundLibrary = param1; - this.§_-At§ = param1.getSound("turret"); + this.var_474 = param1.getSound("turret"); } public function onTurretControlChanged(param1:int, param2:Boolean) : void { - if(this.§_-ha§ != null) + if(this.var_473 != null) { - this.§_-ha§.stop(); + this.var_473.stop(); } if(param1 != 0) { @@ -36,18 +36,18 @@ package alternativa.tanks.sounds private function playMusic() : void { - if(this.§_-At§ != null) + if(this.var_474 != null) { - this.§_-ha§ = this.§_-At§.play(0,0,new SoundTransform(0.2)); - this.§_-ha§.addEventListener(Event.SOUND_COMPLETE,this.loopMusic); + this.var_473 = this.var_474.play(0,0,new SoundTransform(0.2)); + this.var_473.addEventListener(Event.SOUND_COMPLETE,this.loopMusic); } } private function loopMusic(param1:Event) : void { - if(this.§_-ha§ != null) + if(this.var_473 != null) { - this.§_-ha§.removeEventListener(Event.SOUND_COMPLETE,this.loopMusic); + this.var_473.removeEventListener(Event.SOUND_COMPLETE,this.loopMusic); this.playMusic(); } } diff --git a/src/alternativa/tanks/utils/Task.as b/src/alternativa/tanks/utils/Task.as index d92e3c0..8147793 100644 --- a/src/alternativa/tanks/utils/Task.as +++ b/src/alternativa/tanks/utils/Task.as @@ -4,7 +4,7 @@ package alternativa.tanks.utils public class Task extends EventDispatcher { - private var §_-UZ§:TaskSequence; + private var var_33:TaskSequence; public function Task() { @@ -18,13 +18,13 @@ package alternativa.tanks.utils internal function set taskSequence(param1:TaskSequence) : void { - this.§_-UZ§ = param1; + this.var_33 = param1; } final protected function completeTask() : void { dispatchEvent(new TaskEvent(TaskEvent.TASK_COMPLETE,1,1)); - this.§_-UZ§.taskComplete(this); + this.var_33.taskComplete(this); } } } diff --git a/src/alternativa/tanks/utils/TaskSequence.as b/src/alternativa/tanks/utils/TaskSequence.as index c48192e..7a588c8 100644 --- a/src/alternativa/tanks/utils/TaskSequence.as +++ b/src/alternativa/tanks/utils/TaskSequence.as @@ -7,7 +7,7 @@ package alternativa.tanks.utils { private var tasks:Vector.; - private var §_-LN§:int; + private var var_192:int; public function TaskSequence() { @@ -33,7 +33,7 @@ package alternativa.tanks.utils { if(this.tasks.length > 0) { - this.§_-LN§ = 0; + this.var_192 = 0; this.runCurrentTask(); } else @@ -44,13 +44,13 @@ package alternativa.tanks.utils private function runCurrentTask() : void { - this.tasks[this.§_-LN§].run(); + this.tasks[this.var_192].run(); } internal function taskComplete(param1:Task) : void { dispatchEvent(new TaskEvent(TaskEvent.TASK_COMPLETE,1,this.tasks.length)); - if(++this.§_-LN§ < this.tasks.length) + if(++this.var_192 < this.tasks.length) { this.runCurrentTask(); } diff --git a/src/alternativa/types/Long.as b/src/alternativa/types/Long.as index 19a5f4b..11ec53e 100644 --- a/src/alternativa/types/Long.as +++ b/src/alternativa/types/Long.as @@ -7,15 +7,15 @@ package alternativa.types { private static var longMap:Dictionary = new Dictionary(); - private var §_-Ec§:int; + private var var_187:int; - private var §_-Ti§:int; + private var var_188:int; public function Long(high:int, low:int) { super(); - this.§_-Ti§ = high; - this.§_-Ec§ = low; + this.var_188 = high; + this.var_187 = low; } public static function getLong(high:int, low:int) : Long @@ -61,17 +61,17 @@ package alternativa.types public function get low() : int { - return this.§_-Ec§; + return this.var_187; } public function get high() : int { - return this.§_-Ti§; + return this.var_188; } public function toString() : String { - return this.intToUhex(this.§_-Ti§) + this.intToUhex(this.§_-Ec§); + return this.intToUhex(this.var_188) + this.intToUhex(this.var_187); } public function toByteArray(result:ByteArray = null) : ByteArray @@ -81,8 +81,8 @@ package alternativa.types result = new ByteArray(); } result.position = 0; - result.writeInt(this.§_-Ti§); - result.writeInt(this.§_-Ec§); + result.writeInt(this.var_188); + result.writeInt(this.var_187); result.position = 0; return result; } diff --git a/src/alternativa/utils/ByteArrayMap.as b/src/alternativa/utils/ByteArrayMap.as index 0de4585..d4bfdb3 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 §_-Bp§:Object; + private var var_102:Object; public function ByteArrayMap(data:Object = null) { super(); - this.§_-Bp§ = data == null ? {} : data; + this.var_102 = data == null ? {} : data; } public function get data() : Object { - return this.§_-Bp§; + return this.var_102; } public function getValue(key:String) : ByteArray { - return this.§_-Bp§[key]; + return this.var_102[key]; } public function putValue(key:String, value:ByteArray) : void { - this.§_-Bp§[key] = value; + this.var_102[key] = value; } } } diff --git a/src/commons/A3DMatrix.as b/src/commons/A3DMatrix.as index 9264c72..56b3f9b 100644 --- a/src/commons/A3DMatrix.as +++ b/src/commons/A3DMatrix.as @@ -2,95 +2,95 @@ package commons { public class A3DMatrix { - private var §_-Cw§:Number; + private var var_311:Number; - private var §_-gS§:Number; + private var var_317:Number; - private var §_-ne§:Number; + private var var_320:Number; - private var §_-72§:Number; + private var var_310:Number; - private var §_-mV§:Number; + private var var_319:Number; private var _f:Number; - private var §_-eD§:Number; + private var var_316:Number; - private var §_-ih§:Number; + private var var_318:Number; - private var §_-Lu§:Number; + private var var_312:Number; - private var §_-cJ§:Number; + private var var_315:Number; - private var §_-SO§:Number; + private var var_313:Number; - private var §_-UI§:Number; + private var var_314: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.§_-Cw§ = a; - this.§_-gS§ = b; - this.§_-ne§ = c; - this.§_-72§ = d; - this.§_-mV§ = e; + this.var_311 = a; + this.var_317 = b; + this.var_320 = c; + this.var_310 = d; + this.var_319 = e; this._f = f; - this.§_-eD§ = g; - this.§_-ih§ = h; - this.§_-Lu§ = i; - this.§_-cJ§ = j; - this.§_-SO§ = k; - this.§_-UI§ = l; + this.var_316 = g; + this.var_318 = h; + this.var_312 = i; + this.var_315 = j; + this.var_313 = k; + this.var_314 = l; } public function get a() : Number { - return this.§_-Cw§; + return this.var_311; } public function set a(value:Number) : void { - this.§_-Cw§ = value; + this.var_311 = value; } public function get b() : Number { - return this.§_-gS§; + return this.var_317; } public function set b(value:Number) : void { - this.§_-gS§ = value; + this.var_317 = value; } public function get c() : Number { - return this.§_-ne§; + return this.var_320; } public function set c(value:Number) : void { - this.§_-ne§ = value; + this.var_320 = value; } public function get d() : Number { - return this.§_-72§; + return this.var_310; } public function set d(value:Number) : void { - this.§_-72§ = value; + this.var_310 = value; } public function get e() : Number { - return this.§_-mV§; + return this.var_319; } public function set e(value:Number) : void { - this.§_-mV§ = value; + this.var_319 = value; } public function get f() : Number @@ -105,62 +105,62 @@ package commons public function get g() : Number { - return this.§_-eD§; + return this.var_316; } public function set g(value:Number) : void { - this.§_-eD§ = value; + this.var_316 = value; } public function get h() : Number { - return this.§_-ih§; + return this.var_318; } public function set h(value:Number) : void { - this.§_-ih§ = value; + this.var_318 = value; } public function get i() : Number { - return this.§_-Lu§; + return this.var_312; } public function set i(value:Number) : void { - this.§_-Lu§ = value; + this.var_312 = value; } public function get j() : Number { - return this.§_-cJ§; + return this.var_315; } public function set j(value:Number) : void { - this.§_-cJ§ = value; + this.var_315 = value; } public function get k() : Number { - return this.§_-SO§; + return this.var_313; } public function set k(value:Number) : void { - this.§_-SO§ = value; + this.var_313 = value; } public function get l() : Number { - return this.§_-UI§; + return this.var_314; } public function set l(value:Number) : void { - this.§_-UI§ = value; + this.var_314 = value; } public function toString() : String diff --git a/src/commons/Id.as b/src/commons/Id.as index f87d29b..5df8a7f 100644 --- a/src/commons/Id.as +++ b/src/commons/Id.as @@ -2,22 +2,22 @@ package commons { public class Id { - private var §_-3I§:uint; + private var var_101:uint; public function Id(id:uint) { super(); - this.§_-3I§ = id; + this.var_101 = id; } public function get id() : uint { - return this.§_-3I§; + return this.var_101; } public function set id(value:uint) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function toString() : String diff --git a/src/name_81.as b/src/name_81.as new file mode 100644 index 0000000..dcb1327 --- /dev/null +++ b/src/name_81.as @@ -0,0 +1,15 @@ +package +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + [Embed(source="/_assets/13_name_81.jpg")] + public class name_81 extends BitmapAsset + { + public function name_81() + { + super(); + } + } +} + diff --git a/src/name_82.as b/src/name_82.as new file mode 100644 index 0000000..b82581e --- /dev/null +++ b/src/name_82.as @@ -0,0 +1,15 @@ +package +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + [Embed(source="/_assets/16_name_82.jpg")] + public class name_82 extends BitmapAsset + { + public function name_82() + { + super(); + } + } +} + diff --git a/src/name_83.as b/src/name_83.as new file mode 100644 index 0000000..c5fb343 --- /dev/null +++ b/src/name_83.as @@ -0,0 +1,15 @@ +package +{ + import mx.core.BitmapAsset; + + [ExcludeClass] + [Embed(source="/_assets/14_name_83.jpg")] + public class name_83 extends BitmapAsset + { + public function name_83() + { + super(); + } + } +} + diff --git a/src/package_1/TankMaterial2.as b/src/package_1/TankMaterial2.as new file mode 100644 index 0000000..65702cf --- /dev/null +++ b/src/package_1/TankMaterial2.as @@ -0,0 +1,699 @@ +package package_1 +{ + 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_134; + import package_21.name_136; + import package_21.name_84; + import package_21.name_86; + import package_3.class_5; + import package_3.class_6; + import package_3.name_139; + import package_3.name_29; + import package_33.name_117; + import package_33.name_121; + import package_33.name_123; + import package_33.name_126; + import package_33.name_129; + import package_33.name_130; + import package_33.name_135; + import package_34.name_116; + import package_34.name_119; + import package_34.name_128; + import package_35.DirectionalLight; + import package_35.OmniLight; + import package_36.name_137; + import package_36.name_142; + + use namespace alternativa3d; + + public class TankMaterial2 extends class_5 + { + private static var fogTexture:name_86; + + 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_116 = new name_116(["#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_116 = new name_116(["#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_116 = new name_116(["#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_116 = new name_116(["#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_116 = new name_116(["#a0=aUV","#v0=vUV","mov v0, a0"],"passUVProcedure"); + + private static const diffuseProcedure:name_116 = name_116.name_144(["#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_116 = new name_116(["mov o0, i0"],"setColorProcedure"); + + private static const outputWithLightProcedure:name_116 = new name_116(["mul t0.xyz, i0.xyz, i1.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithLightProcedure"); + + private static const outputProcedure:name_116 = new name_116(["mov o0, i0"],"outputProcedure"); + + private static const passVaryingsProcedure:name_116 = new name_116(["#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_116 = new name_116(["#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_116 = new name_116(["#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_86; + + public var colorMap:name_86; + + public var surfaceMap:name_86; + + public var var_25:Number = 1; + + public var var_24:Number = 1; + + public var normalMap:name_86; + + public var glossiness:Number = 100; + + public var var_26:Number = 1; + + private const outputWithSpecularProcedure:name_116 = new name_116(["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_86 = null, diffuse:name_86 = null, normalMap:name_86 = null, surfaceMap:name_86 = null) + { + super(); + this.colorMap = colorMap; + this.diffuse = diffuse; + this.normalMap = normalMap; + this.surfaceMap = surfaceMap; + } + + public static function method_52(texture:name_86) : void + { + fogTexture = texture; + } + + private static function directionalProcedure(light:name_121, add:Boolean) : name_116 + { + return new name_116(["#c0=c" + light.alternativa3d::name_79 + "Direction","#c1=c" + light.alternativa3d::name_79 + "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_121, add:Boolean) : name_116 + { + return new name_116(["#c0=c" + light.alternativa3d::name_79 + "Position","#c1=c" + light.alternativa3d::name_79 + "Color","#c2=c" + light.alternativa3d::name_79 + "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_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.diffuse)) as Class,resourceType))) + { + resources[this.diffuse] = true; + } + if(this.colorMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.colorMap)) as Class,resourceType))) + { + resources[this.colorMap] = true; + } + if(this.normalMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + { + resources[this.normalMap] = true; + } + if(this.surfaceMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.surfaceMap)) as Class,resourceType))) + { + resources[this.surfaceMap] = true; + } + } + + override alternativa3d function collectDraws(camera:name_135, surface:name_134, geometry:name_136, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void + { + var i:int = 0; + var light:name_121 = null; + var shadowedLight:DirectionalLight = null; + var drawUnit:name_123 = null; + var shadowOrAmbientProgram:ShadowOrAmbientProgram = null; + var lightingProgram:LightingProgram = null; + var numShadows:int = 0; + var shadow:name_137 = 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_130 = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.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_79; + 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_46(object,shadowedLight.shadow,true); + shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); + programs[0] = shadowOrAmbientProgram; + } + drawUnit = this.method_47(shadowOrAmbientProgram,shadowedLight.shadow,true,camera,object,surface,geometry); + } + else + { + shadowOrAmbientProgram = programs[1]; + if(shadowOrAmbientProgram == null) + { + shadowOrAmbientProgram = this.method_46(object,null,true); + shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); + programs[1] = shadowOrAmbientProgram; + } + drawUnit = this.method_47(shadowOrAmbientProgram,null,true,camera,object,surface,geometry); + } + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ZERO; + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,name_126.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_142) + { + shadowOrAmbientProgram = programs[2]; + if(shadowOrAmbientProgram == null) + { + shadowOrAmbientProgram = this.method_46(object,shadow,false); + shadowOrAmbientProgram.upload(camera.alternativa3d::context3D); + programs[2] = shadowOrAmbientProgram; + } + drawUnit = this.method_47(shadowOrAmbientProgram,shadow,false,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ZERO; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_COLOR; + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,name_126.SHADOWS); + } + i++; + } + lightingProgram = programs[3]; + if(lightingProgram == null) + { + lightContainer[0] = shadowedLight; + lightingProgram = this.method_48(object,lightContainer,1); + lightingProgram.upload(camera.alternativa3d::context3D); + programs[3] = lightingProgram; + } + drawUnit = this.method_49(lightingProgram,lightContainer,1,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.DESTINATION_ALPHA; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,name_126.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_48(object,actualLigths,actualLightsLength); + lightingProgram.upload(camera.alternativa3d::context3D); + lightsPrograms[lightsKey] = lightingProgram; + } + drawUnit = this.method_49(lightingProgram,actualLigths,actualLightsLength,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE; + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,name_126.LIGHTS); + } + if(fogMode == SIMPLE || fogMode == ADVANCED) + { + fogProgram = programs[int(fogMode + 4)]; + if(fogProgram == null) + { + fogProgram = this.method_50(object); + fogProgram.upload(camera.alternativa3d::context3D); + programs[int(fogMode + 4)] = fogProgram; + } + drawUnit = this.method_51(fogProgram,camera,object,surface,geometry); + drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE; + drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA; + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,name_126.FOG); + } + actualLigths.length = 0; + } + + private function method_46(object:name_130, shadow:name_137, ambient:Boolean) : ShadowOrAmbientProgram + { + var shadowProc:name_116 = null; + var vertexLinker:name_119 = new name_119(Context3DProgramType.VERTEX); + var fragmentLinker:name_119 = new name_119(Context3DProgramType.FRAGMENT); + var positionVar:String = "aPosition"; + vertexLinker.name_125(positionVar,name_128.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::name_131(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.name_120(alternativa3d::_projectProcedure); + vertexLinker.name_122(alternativa3d::_projectProcedure,positionVar); + if(ambient) + { + vertexLinker.name_120(passUVProcedure); + } + var colorConst:String = ambient ? "cAmbient" : "cShadow"; + fragmentLinker.name_125(colorConst,name_128.CONSTANT); + fragmentLinker.name_125("tLight"); + fragmentLinker.name_120(setColorProcedure); + fragmentLinker.name_122(setColorProcedure,colorConst); + fragmentLinker.name_127(setColorProcedure,"tLight"); + if(shadow != null) + { + vertexLinker.name_120(shadow.getVShader()); + shadowProc = shadow.getFIntensityShader(); + fragmentLinker.name_120(shadowProc); + fragmentLinker.name_127(shadowProc,"tLight"); + } + if(ambient) + { + fragmentLinker.name_125("tColor"); + fragmentLinker.name_120(diffuseProcedure); + fragmentLinker.name_127(diffuseProcedure,"tColor"); + fragmentLinker.name_120(outputWithLightProcedure); + fragmentLinker.name_122(outputWithLightProcedure,"tColor","tLight"); + } + else + { + fragmentLinker.name_120(outputProcedure); + fragmentLinker.name_122(outputProcedure,"tLight"); + } + fragmentLinker.name_140(vertexLinker); + return new ShadowOrAmbientProgram(vertexLinker,fragmentLinker); + } + + private function method_47(program:ShadowOrAmbientProgram, shadow:name_137, ambient:Boolean, camera:name_135, object:name_130, surface:name_134, geometry:name_136) : name_123 + { + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.TEXCOORDS[0]); + var drawUnit:name_123 = camera.alternativa3d::renderer.alternativa3d::name_138(object,program.program,geometry.alternativa3d::name_78,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + if(ambient) + { + drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[0]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[0]]); + } + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::name_141(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + if(ambient) + { + drawUnit.alternativa3d::name_124(program.cAmbient,camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1); + drawUnit.alternativa3d::name_124(program.cTiling,this.var_25,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_124(program.cShadow,1,1,1,1); + } + if(shadow != null) + { + shadow.applyShader(drawUnit,program,object,camera); + } + return drawUnit; + } + + private function method_48(object:name_130, lights:Vector., lightsLength:int) : LightingProgram + { + var procedure:name_116 = null; + var light:name_121 = null; + var vertexLinker:name_119 = new name_119(Context3DProgramType.VERTEX); + var fragmentLinker:name_119 = new name_119(Context3DProgramType.FRAGMENT); + var positionVar:String = "aPosition"; + vertexLinker.name_125(positionVar,name_128.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::name_131(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.name_120(alternativa3d::_projectProcedure); + vertexLinker.name_122(alternativa3d::_projectProcedure,positionVar); + vertexLinker.name_120(passUVProcedure); + vertexLinker.name_120(passVaryingsProcedure); + vertexLinker.name_122(passVaryingsProcedure,positionVar); + fragmentLinker.name_125("tNormal"); + fragmentLinker.name_125("tView"); + fragmentLinker.name_120(getNormalAndViewProcedure); + fragmentLinker.name_127(getNormalAndViewProcedure,"tNormal","tView"); + fragmentLinker.name_120(getSpecularOptionsProcedure); + fragmentLinker.name_122(getSpecularOptionsProcedure,"tNormal","tView"); + fragmentLinker.name_125("tLight"); + fragmentLinker.name_125("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_120(procedure); + fragmentLinker.name_122(procedure,"tNormal","tView"); + fragmentLinker.name_127(procedure,"tLight","tHLight"); + if(first) + { + first = false; + } + } + else if(light is OmniLight) + { + procedure = omniProcedure(light,!first); + fragmentLinker.name_120(procedure); + fragmentLinker.name_122(procedure,"tNormal","tView"); + fragmentLinker.name_127(procedure,"tLight","tHLight"); + if(first) + { + first = false; + } + } + i++; + } + fragmentLinker.name_125("outColor"); + fragmentLinker.name_120(diffuseProcedure); + fragmentLinker.name_127(diffuseProcedure,"outColor"); + fragmentLinker.name_120(this.outputWithSpecularProcedure); + fragmentLinker.name_122(this.outputWithSpecularProcedure,"outColor","tLight","tHLight"); + fragmentLinker.name_140(vertexLinker); + return new LightingProgram(vertexLinker,fragmentLinker); + } + + private function method_49(program:LightingProgram, lights:Vector., lightsLength:int, camera:name_135, object:name_130, surface:name_134, geometry:name_136) : name_123 + { + var rScale:Number = NaN; + var transform:name_129 = null; + var light:name_121 = null; + var len:Number = NaN; + var omni:OmniLight = null; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.TEXCOORDS[0]); + var drawUnit:name_123 = camera.alternativa3d::renderer.alternativa3d::name_138(object,program.program,geometry.alternativa3d::name_78,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[0]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[0]]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::name_141(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::name_143(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_80; + len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + else if(light is OmniLight) + { + omni = OmniLight(light); + transform = light.alternativa3d::name_80; + 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_124(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::name_79 + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + } + i++; + } + drawUnit.alternativa3d::name_124(program.cSurface,0,this.glossiness,this.var_26,1); + drawUnit.alternativa3d::name_124(program.cTiling,this.var_25,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_50(object:name_130) : FogProgram + { + var vertexLinker:name_119 = new name_119(Context3DProgramType.VERTEX); + var fragmentLinker:name_119 = new name_119(Context3DProgramType.FRAGMENT); + var positionVar:String = "aPosition"; + vertexLinker.name_125(positionVar,name_128.ATTRIBUTE); + if(object.alternativa3d::transformProcedure != null) + { + positionVar = alternativa3d::name_131(object.alternativa3d::transformProcedure,vertexLinker); + } + vertexLinker.name_120(alternativa3d::_projectProcedure); + vertexLinker.name_122(alternativa3d::_projectProcedure,positionVar); + if(fogMode == SIMPLE) + { + vertexLinker.name_120(passSimpleFogConstProcedure); + vertexLinker.name_122(passSimpleFogConstProcedure,positionVar); + fragmentLinker.name_120(outputWithSimpleFogProcedure); + } + else + { + vertexLinker.name_125("projected"); + vertexLinker.name_127(alternativa3d::_projectProcedure,"projected"); + vertexLinker.name_120(postPassAdvancedFogConstProcedure); + vertexLinker.name_122(postPassAdvancedFogConstProcedure,positionVar,"projected"); + fragmentLinker.name_120(outputWithAdvancedFogProcedure); + } + fragmentLinker.name_140(vertexLinker); + return new FogProgram(vertexLinker,fragmentLinker); + } + + private function method_51(program:FogProgram, camera:name_135, object:name_130, surface:name_134, geometry:name_136) : name_123 + { + var lm:name_129 = null; + var dist:Number = NaN; + var cLocal:name_129 = 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_117.POSITION); + var drawUnit:name_123 = camera.alternativa3d::renderer.alternativa3d::name_138(object,program.program,geometry.alternativa3d::name_78,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); + drawUnit.alternativa3d::name_141(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + if(fogMode == SIMPLE || fogMode == ADVANCED) + { + lm = object.alternativa3d::localToCameraTransform; + dist = fogFar - fogNear; + drawUnit.alternativa3d::name_143(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::name_124(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity); + } + if(fogMode == SIMPLE) + { + drawUnit.alternativa3d::name_124(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_84(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_124(program.cFogConsts,0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::setTextureAt(program.sFogTexture,fogTexture.alternativa3d::_texture); + } + return drawUnit; + } + + override public function clone() : name_139 + { + var cloned:TankMaterial2 = new TankMaterial2(this.colorMap,this.diffuse,this.normalMap,this.surfaceMap); + cloned.var_26 = this.var_26; + cloned.glossiness = this.glossiness; + return cloned; + } + } +} + +import package_3.class_6; +import package_34.name_119; + +class ShadowOrAmbientProgram extends class_6 +{ + 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_119, fragment:name_119) + { + super(vertex,fragment); + this.aPosition = vertex.name_118("aPosition"); + this.aUV = vertex.name_118("aUV"); + this.cProjMatrix = vertex.name_118("cProjMatrix"); + this.cAmbient = fragment.name_118("cAmbient"); + this.cTiling = fragment.name_118("cTiling"); + this.sDiffuse = fragment.name_118("sDiffuse"); + this.sColormap = fragment.name_118("sColormap"); + this.sSurface = fragment.name_118("sSurface"); + this.cShadow = fragment.name_118("cShadow"); + } +} + +class LightingProgram extends class_6 +{ + 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_119, fragment:name_119) + { + super(vertex,fragment); + this.aPosition = vertex.name_118("aPosition"); + this.aUV = vertex.name_118("aUV"); + this.cProjMatrix = vertex.name_118("cProjMatrix"); + this.cCamera = vertex.name_118("cCamera"); + this.cSurface = fragment.name_118("cSurface"); + this.cTiling = fragment.name_118("cTiling"); + this.sDiffuse = fragment.name_118("sDiffuse"); + this.sColormap = fragment.name_118("sColormap"); + this.sSurface = fragment.name_118("sSurface"); + this.sBump = fragment.name_118("sBump"); + } +} + +class FogProgram extends class_6 +{ + 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_119, fragment:name_119) + { + super(vertex,fragment); + this.aPosition = vertex.name_118("aPosition"); + this.cProjMatrix = vertex.name_118("cProjMatrix"); + this.cFogSpace = vertex.name_118("cFogSpace"); + this.cFogRange = fragment.name_118("cFogRange"); + this.cFogColor = fragment.name_118("cFogColor"); + this.cFogConsts = fragment.name_118("cFogConsts"); + this.sFogTexture = fragment.name_118("sFogTexture"); + } +} diff --git a/src/?_-mX?/?_-Wb?.as b/src/package_100/class_34.as similarity index 54% rename from src/?_-mX?/?_-Wb?.as rename to src/package_100/class_34.as index 3de9605..f6d6cda 100644 --- a/src/?_-mX?/?_-Wb?.as +++ b/src/package_100/class_34.as @@ -1,28 +1,28 @@ -package §_-mX§ +package package_100 { - import §_-O5§.§_-Hk§; - import §default§.§_-7d§; import flash.events.Event; - import §return§.§_-Ui§; - import §return§.§_-h5§; + import package_12.name_54; + import package_22.class_3; + import package_22.name_90; + import package_39.name_257; - public class §_-Wb§ extends §_-h5§ + public class class_34 extends class_3 { - public var data:§_-7d§; + public var data:name_257; - protected var §_-P9§:String; + protected var var_673:String; - private var files:§_-Hk§; + private var files:name_54; - private var §_-e2§:§_-Ui§; + private var var_672:name_90; private var baseUrl:String; private var partXML:XML; - private var partsCollector:Vector.<§_-7d§>; + private var partsCollector:Vector.; - public function §_-Wb§(param1:String, param2:XML, param3:Vector.<§_-7d§>) + public function class_34(param1:String, param2:XML, param3:Vector.) { super(); this.partXML = param2; @@ -33,54 +33,54 @@ package §_-mX§ override public function run() : void { var _loc2_:XML = null; - this.files = new §_-Hk§(); - this.§_-e2§ = new §_-Ui§(); + this.files = new name_54(); + this.var_672 = new name_90(); var _loc1_:String = this.baseUrl + this.partXML.modelFile[0].toString(); - this.§_-P9§ = "main." + this.partXML.modelFile[0].@type; - this.§_-e2§.addTask(new BlobLoadTask(this.§_-P9§,_loc1_,this.files)); + this.var_673 = "main." + this.partXML.modelFile[0].@type; + this.var_672.addTask(new BlobLoadTask(this.var_673,_loc1_,this.files)); for each(_loc2_ in this.partXML.texture) { - this.§_-e2§.addTask(new BlobLoadTask(_loc2_.@id,this.baseUrl + _loc2_.toString(),this.files)); + this.var_672.addTask(new BlobLoadTask(_loc2_.@id,this.baseUrl + _loc2_.toString(),this.files)); } - this.§_-e2§.addEventListener(Event.COMPLETE,this.§_-Mk§); - this.§_-e2§.run(); + this.var_672.addEventListener(Event.COMPLETE,this.method_330); + this.var_672.run(); } - public function parseModelData(param1:§_-Hk§) : §_-7d§ + public function parseModelData(param1:name_54) : name_257 { throw new Error("Not implemented"); } - private function §_-Mk§(param1:Event) : void + private function method_330(param1:Event) : void { - this.§_-e2§ = null; + this.var_672 = null; this.data = this.parseModelData(this.files); this.data.id = this.partXML.id; this.partsCollector.push(this.data); - §_-3Z§(); + name_88(); } } } -import §_-O5§.§_-Hk§; import flash.events.Event; import flash.events.EventDispatcher; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; -import §return§.§_-h5§; +import package_12.name_54; +import package_22.class_3; -class BlobLoadTask extends §_-h5§ +class BlobLoadTask extends class_3 { public var blobId:String; - private var collector:§_-Hk§; + private var collector:name_54; private var blobUrl:String; private var loader:URLLoader; - public function BlobLoadTask(param1:String, param2:String, param3:§_-Hk§) + public function BlobLoadTask(param1:String, param2:String, param3:name_54) { super(); this.collector = param3; @@ -98,8 +98,8 @@ class BlobLoadTask extends §_-h5§ private function onLoadingComplete(param1:Event) : void { - this.collector.§_-9v§(this.blobId,this.loader.data); + this.collector.name_58(this.blobId,this.loader.data); this.loader = null; - §_-3Z§(); + name_88(); } } diff --git a/src/?_-9n?/?_-Np?.as b/src/package_101/name_552.as similarity index 59% rename from src/?_-9n?/?_-Np?.as rename to src/package_101/name_552.as index 03d04f8..661a287 100644 --- a/src/?_-9n?/?_-Np?.as +++ b/src/package_101/name_552.as @@ -1,60 +1,60 @@ -package §_-9n§ +package package_101 { - import §_-OZ§.§_-SK§; import alternativa.engine3d.alternativa3d; + import package_102.name_584; use namespace alternativa3d; - public class §_-Np§ + public class name_552 { public var object:String; - alternativa3d var §_-YC§:Number = 0; + alternativa3d var var_693:Number = 0; - public function §_-Np§() + public function name_552() { super(); } public function get length() : Number { - return this.alternativa3d::_-YC; + return this.alternativa3d::var_693; } - alternativa3d function get keyFramesList() : §_-NS§ + alternativa3d function get keyFramesList() : name_583 { return null; } - alternativa3d function set keyFramesList(value:§_-NS§) : void + alternativa3d function set keyFramesList(value:name_583) : void { } - alternativa3d function §_-K1§(key:§_-NS§) : void + alternativa3d function method_350(key:name_583) : void { - var k:§_-NS§ = null; - var time:Number = Number(key.alternativa3d::_-qC); + var k:name_583 = null; + var time:Number = Number(key.alternativa3d::var_420); if(this.alternativa3d::keyFramesList == null) { this.alternativa3d::keyFramesList = key; - this.alternativa3d::_-YC = time <= 0 ? 0 : time; + this.alternativa3d::var_693 = time <= 0 ? 0 : time; return; } - if(this.alternativa3d::keyFramesList.alternativa3d::_-qC > time) + if(this.alternativa3d::keyFramesList.alternativa3d::var_420 > 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::_-qC <= time) + while(k.alternativa3d::nextKeyFrame != null && k.alternativa3d::nextKeyFrame.alternativa3d::var_420 <= time) { k = k.alternativa3d::nextKeyFrame; } if(k.alternativa3d::nextKeyFrame == null) { k.alternativa3d::nextKeyFrame = key; - this.alternativa3d::_-YC = time <= 0 ? 0 : time; + this.alternativa3d::var_693 = time <= 0 ? 0 : time; } else { @@ -63,9 +63,9 @@ package §_-9n§ } } - public function §_-dg§(key:§_-NS§) : §_-NS§ + public function method_351(key:name_583) : name_583 { - var k:§_-NS§ = null; + var k:name_583 = null; if(this.alternativa3d::keyFramesList != null) { if(this.alternativa3d::keyFramesList == key) @@ -73,7 +73,7 @@ package §_-9n§ this.alternativa3d::keyFramesList = this.alternativa3d::keyFramesList.alternativa3d::nextKeyFrame; if(this.alternativa3d::keyFramesList == null) { - this.alternativa3d::_-YC = 0; + this.alternativa3d::var_693 = 0; } return key; } @@ -86,7 +86,7 @@ package §_-9n§ { if(key.alternativa3d::nextKeyFrame == null) { - this.alternativa3d::_-YC = k.alternativa3d::_-qC <= 0 ? 0 : Number(k.alternativa3d::_-qC); + this.alternativa3d::var_693 = k.alternativa3d::var_420 <= 0 ? 0 : Number(k.alternativa3d::var_420); } k.alternativa3d::nextKeyFrame = key.alternativa3d::nextKeyFrame; return key; @@ -95,11 +95,11 @@ package §_-9n§ throw new Error("Key not found"); } - public function get keys() : Vector.<§_-NS§> + public function get keys() : Vector. { - var result:Vector.<§_-NS§> = new Vector.<§_-NS§>(); + var result:Vector. = new Vector.(); var i:int = 0; - for(var key:§_-NS§ = this.alternativa3d::keyFramesList; key != null; key = key.alternativa3d::nextKeyFrame) + for(var key:name_583 = this.alternativa3d::keyFramesList; key != null; key = key.alternativa3d::nextKeyFrame) { result[i] = key; i++; @@ -107,32 +107,32 @@ package §_-9n§ return result; } - alternativa3d function blend(time:Number, weight:Number, state:§_-SK§) : void + alternativa3d function blend(time:Number, weight:Number, state:name_584) : void { } - public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-Np§ + public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_552 { return null; } - alternativa3d function createKeyFrame() : §_-NS§ + alternativa3d function createKeyFrame() : name_583 { return null; } - alternativa3d function interpolateKeyFrame(dest:§_-NS§, a:§_-NS§, b:§_-NS§, value:Number) : void + alternativa3d function interpolateKeyFrame(dest:name_583, a:name_583, b:name_583, value:Number) : void { } - alternativa3d function §_-2Y§(dest:§_-Np§, start:Number, end:Number) : void + alternativa3d function method_352(dest:name_552, start:Number, end:Number) : void { - var prev:§_-NS§ = null; - var nextKey:§_-NS§ = null; + var prev:name_583 = null; + var nextKey:name_583 = null; var shiftTime:Number = start > 0 ? start : 0; - var next:§_-NS§ = this.alternativa3d::keyFramesList; - var key:§_-NS§ = this.alternativa3d::createKeyFrame(); - while(next != null && next.alternativa3d::_-qC <= start) + var next:name_583 = this.alternativa3d::keyFramesList; + var key:name_583 = this.alternativa3d::createKeyFrame(); + while(next != null && next.alternativa3d::var_420 <= start) { prev = next; next = next.alternativa3d::nextKeyFrame; @@ -141,8 +141,8 @@ package §_-9n§ { if(next != null) { - this.alternativa3d::interpolateKeyFrame(key,prev,next,(start - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); - key.alternativa3d::_-qC = start - shiftTime; + 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; } else { @@ -156,21 +156,21 @@ package §_-9n§ return; } this.alternativa3d::interpolateKeyFrame(key,key,next,1); - key.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime; + key.alternativa3d::var_420 = next.alternativa3d::var_420 - shiftTime; prev = next; next = next.alternativa3d::nextKeyFrame; } dest.alternativa3d::keyFramesList = key; if(next == null || end <= start) { - dest.alternativa3d::_-YC = key.alternativa3d::_-qC <= 0 ? 0 : Number(key.alternativa3d::_-qC); + dest.alternativa3d::var_693 = key.alternativa3d::var_420 <= 0 ? 0 : Number(key.alternativa3d::var_420); return; } - while(next != null && next.alternativa3d::_-qC <= end) + while(next != null && next.alternativa3d::var_420 <= end) { nextKey = this.alternativa3d::createKeyFrame(); this.alternativa3d::interpolateKeyFrame(nextKey,nextKey,next,1); - nextKey.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime; + nextKey.alternativa3d::var_420 = next.alternativa3d::var_420 - shiftTime; key.alternativa3d::nextKeyFrame = nextKey; key = nextKey; prev = next; @@ -179,13 +179,13 @@ package §_-9n§ if(next != null) { nextKey = this.alternativa3d::createKeyFrame(); - this.alternativa3d::interpolateKeyFrame(nextKey,prev,next,(end - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); - nextKey.alternativa3d::_-qC = end - shiftTime; + 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; key.alternativa3d::nextKeyFrame = nextKey; } if(nextKey != null) { - dest.alternativa3d::_-YC = nextKey.alternativa3d::_-qC <= 0 ? 0 : Number(nextKey.alternativa3d::_-qC); + dest.alternativa3d::var_693 = nextKey.alternativa3d::var_420 <= 0 ? 0 : Number(nextKey.alternativa3d::var_420); } } } diff --git a/src/?_-9n?/?_-ew?.as b/src/package_101/name_590.as similarity index 52% rename from src/?_-9n?/?_-ew?.as rename to src/package_101/name_590.as index 1a166b2..215be0e 100644 --- a/src/?_-9n?/?_-ew?.as +++ b/src/package_101/name_590.as @@ -1,42 +1,42 @@ -package §_-9n§ +package package_101 { - import §_-OZ§.§_-SK§; import alternativa.engine3d.alternativa3d; import flash.geom.Matrix3D; import flash.geom.Orientation3D; import flash.geom.Vector3D; + import package_102.name_584; use namespace alternativa3d; - public class §_-ew§ extends §_-Np§ + public class name_590 extends name_552 { private static var tempQuat:Vector3D = new Vector3D(); - private static var temp:§_-44§ = new §_-44§(); + private static var temp:name_604 = new name_604(); - private var §_-ku§:§_-44§; + private var name_599:name_604; - public function §_-ew§(object:String) + public function name_590(object:String) { super(); this.object = object; } - override alternativa3d function get keyFramesList() : §_-NS§ + override alternativa3d function get keyFramesList() : name_583 { - return this.§_-ku§; + return this.name_599; } - override alternativa3d function set keyFramesList(value:§_-NS§) : void + override alternativa3d function set keyFramesList(value:name_583) : void { - this.§_-ku§ = §_-44§(value); + this.name_599 = name_604(value); } - public function §_-Le§(time:Number, matrix:Matrix3D) : §_-44§ + public function method_126(time:Number, matrix:Matrix3D) : name_604 { - var key:§_-44§ = null; - key = new §_-44§(); - key.alternativa3d::_-qC = time; + var key:name_604 = null; + key = new name_604(); + key.alternativa3d::var_420 = 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 §_-9n§ key.alternativa3d::scaleX = components[2].x; key.alternativa3d::scaleY = components[2].y; key.alternativa3d::scaleZ = components[2].z; - alternativa3d::_-K1(key); + alternativa3d::method_350(key); return key; } - 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§ + public function method_372(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_604 { - var key:§_-44§ = new §_-44§(); - key.alternativa3d::_-qC = time; + var key:name_604 = new name_604(); + key.alternativa3d::var_420 = time; key.alternativa3d::x = x; key.alternativa3d::y = y; key.alternativa3d::z = z; - key.alternativa3d::rotation = this.§_-JN§(rotationX,rotationY,rotationZ); + key.alternativa3d::rotation = this.method_371(rotationX,rotationY,rotationZ); key.alternativa3d::scaleX = scaleX; key.alternativa3d::scaleY = scaleY; key.alternativa3d::scaleZ = scaleZ; - alternativa3d::_-K1(key); + alternativa3d::method_350(key); return key; } - private function §_-Qn§(quat:Vector3D, additive:Vector3D) : void + private function method_369(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 §_-9n§ quat.z = zz; } - private function §_-OW§(quat:Vector3D) : void + private function method_370(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 §_-9n§ } } - private function §_-3K§(quat:Vector3D, x:Number, y:Number, z:Number, angle:Number) : void + private function method_368(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 §_-9n§ quat.z = z * k; } - private function §_-JN§(x:Number, y:Number, z:Number) : Vector3D + private function method_371(x:Number, y:Number, z:Number) : Vector3D { var result:Vector3D = new Vector3D(); - 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); + this.method_368(result,1,0,0,x); + this.method_368(tempQuat,0,1,0,y); + this.method_369(result,tempQuat); + this.method_370(result); + this.method_368(tempQuat,0,0,1,z); + this.method_369(result,tempQuat); + this.method_370(result); return result; } - override alternativa3d function blend(time:Number, weight:Number, state:§_-SK§) : void + override alternativa3d function blend(time:Number, weight:Number, state:name_584) : void { - var prev:§_-44§ = null; - var next:§_-44§ = this.§_-ku§; - while(next != null && next.alternativa3d::_-qC < time) + var prev:name_604 = null; + var next:name_604 = this.name_599; + while(next != null && next.alternativa3d::var_420 < time) { prev = next; next = next.alternativa3d::next; @@ -128,34 +128,34 @@ package §_-9n§ { if(next != null) { - temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); - state.§_-nV§(temp,weight); + temp.interpolate(prev,next,(time - prev.alternativa3d::var_420) / (next.alternativa3d::var_420 - prev.alternativa3d::var_420)); + state.name_605(temp,weight); } else { - state.§_-nV§(prev,weight); + state.name_605(prev,weight); } } else if(next != null) { - state.§_-nV§(next,weight); + state.name_605(next,weight); } } - override alternativa3d function createKeyFrame() : §_-NS§ + override alternativa3d function createKeyFrame() : name_583 { - return new §_-44§(); + return new name_604(); } - override alternativa3d function interpolateKeyFrame(dest:§_-NS§, a:§_-NS§, b:§_-NS§, value:Number) : void + override alternativa3d function interpolateKeyFrame(dest:name_583, a:name_583, b:name_583, value:Number) : void { - §_-44§(dest).interpolate(§_-44§(a),§_-44§(b),value); + name_604(dest).interpolate(name_604(a),name_604(b),value); } - override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-Np§ + override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_552 { - var track:§_-ew§ = new §_-ew§(object); - alternativa3d::_-2Y(track,start,end); + var track:name_590 = new name_590(object); + alternativa3d::method_352(track,start,end); return track; } } diff --git a/src/package_101/name_591.as b/src/package_101/name_591.as new file mode 100644 index 0000000..5504fe8 --- /dev/null +++ b/src/package_101/name_591.as @@ -0,0 +1,91 @@ +package package_101 +{ + import alternativa.engine3d.alternativa3d; + import package_102.name_584; + + use namespace alternativa3d; + + public class name_591 extends name_552 + { + private static var temp:name_602 = new name_602(); + + alternativa3d var name_599:name_602; + + public var property:String; + + public function name_591(object:String, property:String) + { + super(); + this.property = property; + this.object = object; + } + + override alternativa3d function get keyFramesList() : name_583 + { + return this.alternativa3d::name_599; + } + + override alternativa3d function set keyFramesList(value:name_583) : void + { + this.alternativa3d::name_599 = name_602(value); + } + + public function method_126(time:Number, value:Number = 0) : name_583 + { + var key:name_602 = new name_602(); + key.alternativa3d::var_420 = time; + key.value = value; + alternativa3d::method_350(key); + return key; + } + + override alternativa3d function blend(time:Number, weight:Number, state:name_584) : void + { + var prev:name_602 = null; + if(this.property == null) + { + return; + } + var next:name_602 = this.alternativa3d::name_599; + 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.name_603(this.property,temp.alternativa3d::name_598,weight); + } + else + { + state.name_603(this.property,prev.alternativa3d::name_598,weight); + } + } + else if(next != null) + { + state.name_603(this.property,next.alternativa3d::name_598,weight); + } + } + + override alternativa3d function createKeyFrame() : name_583 + { + return new name_602(); + } + + override alternativa3d function interpolateKeyFrame(dest:name_583, a:name_583, b:name_583, value:Number) : void + { + name_602(dest).interpolate(name_602(a),name_602(b),value); + } + + override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : name_552 + { + var track:name_591 = new name_591(object,this.property); + alternativa3d::method_352(track,start,end); + return track; + } + } +} + diff --git a/src/package_102/name_550.as b/src/package_102/name_550.as new file mode 100644 index 0000000..846c58a --- /dev/null +++ b/src/package_102/name_550.as @@ -0,0 +1,392 @@ +package package_102 +{ + import alternativa.engine3d.alternativa3d; + import package_101.name_552; + import package_33.name_130; + + use namespace alternativa3d; + + public class name_550 extends class_36 + { + alternativa3d var var_348: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_585; + + public function name_550(name:String = null) + { + super(); + this.name = name; + } + + public function get objects() : Array + { + return this.alternativa3d::var_348 == null ? null : [].concat(this.alternativa3d::var_348); + } + + public function set objects(value:Array) : void + { + this.method_354(this.alternativa3d::var_348,alternativa3d::controller,value,alternativa3d::controller); + this.alternativa3d::var_348 = value == null ? null : [].concat(value); + } + + override alternativa3d function setController(value:name_586) : void + { + this.method_354(this.alternativa3d::var_348,alternativa3d::controller,this.alternativa3d::var_348,value); + this.alternativa3d::controller = value; + } + + private function addObject(object:Object) : void + { + if(this.alternativa3d::var_348 == null) + { + this.alternativa3d::var_348 = [object]; + } + else + { + this.alternativa3d::var_348.push(object); + } + if(alternativa3d::controller != null) + { + alternativa3d::controller.alternativa3d::addObject(object); + } + } + + private function method_354(oldObjects:Array, oldController:name_586, newObjects:Array, newController:name_586) : void + { + var i:int = 0; + var count:int = 0; + if(oldController != null && oldObjects != null) + { + for(i = 0,count = int(this.alternativa3d::var_348.length); i < count; i++) + { + oldController.alternativa3d::name_588(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_361() : void + { + var track:name_552 = 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_551(track:name_552) : name_552 + { + 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_359(track:name_552) : name_552 + { + var t:name_552 = 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_553(index:int) : name_552 + { + 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_552 = null; + var state:name_584 = 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_353(oldTime,this.length); + this.var_420 = this.length <= 0 ? 0 : this.var_420 % this.length; + this.alternativa3d::method_353(0,this.var_420); + } + else + { + this.alternativa3d::method_353(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_353(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_356() : Number + { + return this.length == 0 ? 0 : this.var_420 / this.length; + } + + public function set method_356(value:Number) : void + { + this.var_420 = value * this.length; + } + + private function method_358(object:Object) : int + { + if(object is name_130) + { + return name_130(object).numChildren; + } + return 0; + } + + private function getChildAt(object:Object, index:int) : Object + { + if(object is name_130) + { + return name_130(object).getChildAt(index); + } + return null; + } + + private function method_355(object:Object) : void + { + var child:Object = null; + for(var i:int = 0,var numChildren:int = this.method_358(object); i < numChildren; i++) + { + child = this.getChildAt(object,i); + this.addObject(child); + this.method_355(child); + } + } + + public function method_360(object:Object, includeDescendants:Boolean) : void + { + this.method_354(this.alternativa3d::var_348,alternativa3d::controller,null,alternativa3d::controller); + this.alternativa3d::var_348 = null; + this.addObject(object); + if(includeDescendants) + { + this.method_355(object); + } + } + + alternativa3d function method_353(start:Number, end:Number) : void + { + for(var notify:name_585 = 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_587 = alternativa3d::controller.alternativa3d::nearestNotifyers; + alternativa3d::controller.alternativa3d::nearestNotifyers = notify; + } + notify = notify.alternativa3d::next; + } + } + + public function method_357(time:Number, name:String = null) : name_585 + { + var n:name_585 = null; + time = time <= 0 ? 0 : (time >= this.length ? this.length : time); + var notify:name_585 = new name_585(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_363(offsetFromEnd:Number = 0, name:String = null) : name_585 + { + return this.method_357(this.length - offsetFromEnd,name); + } + + public function method_362(notify:name_585) : name_585 + { + var n:name_585 = 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_364() : Vector. + { + var result:Vector. = new Vector.(); + var i:int = 0; + for(var notify:name_585 = 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_550 + { + var sliced:name_550 = new name_550(this.name); + sliced.alternativa3d::var_348 = this.alternativa3d::var_348 == null ? null : [].concat(this.alternativa3d::var_348); + for(var i:int = 0; i < this.var_696; i++) + { + sliced.name_551(this.var_389[i].slice(start,end)); + } + return sliced; + } + + public function clone() : name_550 + { + var cloned:name_550 = new name_550(this.name); + cloned.alternativa3d::var_348 = this.alternativa3d::var_348 == null ? null : [].concat(this.alternativa3d::var_348); + for(var i:int = 0; i < this.var_696; i++) + { + cloned.name_551(this.var_389[i]); + } + cloned.length = this.length; + return cloned; + } + } +} + diff --git a/src/?_-9j?/?_-S6?.as b/src/package_103/class_37.as similarity index 59% rename from src/?_-9j?/?_-S6?.as rename to src/package_103/class_37.as index a216a89..593ecdf 100644 --- a/src/?_-9j?/?_-S6?.as +++ b/src/package_103/class_37.as @@ -1,13 +1,13 @@ -package §_-9j§ +package package_103 { - import §_-1z§.§_-gA§; import alternativa.engine3d.alternativa3d; import alternativa.engine3d.loaders.collada.collada; + import package_21.name_136; use namespace collada; use namespace alternativa3d; - public class §_-S6§ extends §_-6e§ + public class class_37 extends class_38 { internal static const NORMALS:int = 1; @@ -15,33 +15,33 @@ package §_-9j§ internal static const TEXCOORDS:Vector. = Vector.([8,16,32,64,128,256,512,1024]); - internal var §_-2g§:§_-0M§; + internal var var_739:name_606; - internal var §_-aL§:Vector.<§_-0M§>; + internal var var_740:Vector.; - internal var §_-Fl§:§_-0M§; + internal var var_742:name_606; - internal var §_-jU§:Vector.<§_-0M§>; + internal var var_741:Vector.; - internal var §_-ly§:Vector.<§_-0M§>; + internal var var_743:Vector.; internal var indices:Vector.; - internal var §_-5O§:int; + internal var var_728:int; public var indexBegin:int; public var numTriangles:int; - public function §_-S6§(data:XML, document:§_-fr§) + public function class_37(data:XML, document:name_612) { super(data,document); } override protected function parseImplementation() : Boolean { - this.§_-7Q§(); - this.§_-WT§(); + this.method_373(); + this.method_376(); return true; } @@ -50,19 +50,19 @@ package §_-9j§ return data.localName() as String; } - private function §_-7Q§() : void + private function method_373() : void { - var input:§_-0M§ = null; + var input:name_606 = null; var semantic:String = null; var offset:int = 0; - this.§_-aL§ = new Vector.<§_-0M§>(); - this.§_-ly§ = new Vector.<§_-0M§>(); - this.§_-jU§ = new Vector.<§_-0M§>(); + this.var_740 = new Vector.(); + this.var_743 = new Vector.(); + this.var_741 = new Vector.(); var inputsList:XMLList = data.input; var maxInputOffset:int = 0; 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 §_-0M§(inputsList[i],document); + input = new name_606(inputsList[i],document); semantic = input.semantic; if(semantic == null) { @@ -71,32 +71,32 @@ package §_-9j§ switch(semantic) { case "VERTEX": - if(this.§_-2g§ == null) + if(this.var_739 == null) { - this.§_-2g§ = input; + this.var_739 = input; } break; case "TEXCOORD": - this.§_-aL§.push(input); + this.var_740.push(input); break; case "NORMAL": - if(this.§_-Fl§ == null) + if(this.var_742 == null) { - this.§_-Fl§ = input; + this.var_742 = input; } break; case "TEXTANGENT": - this.§_-ly§.push(input); + this.var_743.push(input); break; case "TEXBINORMAL": - this.§_-jU§.push(input); + this.var_741.push(input); break; } } - this.§_-5O§ = maxInputOffset + 1; + this.var_728 = maxInputOffset + 1; } - private function §_-WT§() : void + private function method_376() : void { var array:Array = null; var vcountXML:XMLList = null; @@ -111,7 +111,7 @@ package §_-9j§ case "polylist": case "polygons": vcountXML = data.vcount; - array = §_-TM§(vcountXML[0]); + array = name_609(vcountXML[0]); i = 0; count = int(array.length); while(true) @@ -127,21 +127,21 @@ package §_-9j§ pList = data.p; for(i = 0,count = int(pList.length()); i < count; ) { - array = §_-TM§(pList[i]); + array = name_609(pList[i]); for(j = 0; j < array.length; j++) { this.indices.push(parseInt(array[j],10)); } if(vcount.length > 0) { - this.indices = this.§_-aZ§(this.indices,vcount); + this.indices = this.method_374(this.indices,vcount); } i++; } } } - private function §_-aZ§(input:Vector., vcount:Vector.) : Vector. + private function method_374(input:Vector., vcount:Vector.) : Vector. { var indexIn:uint = 0; var i:int = 0; @@ -155,7 +155,7 @@ package §_-9j§ for(i = 0,count = int(vcount.length); i < count; i++) { verticesCount = vcount[i]; - attributesCount = verticesCount * this.§_-5O§; + attributesCount = verticesCount * this.var_728; if(verticesCount == 3) { j = 0; @@ -171,124 +171,124 @@ package §_-9j§ { for(j = 1; j < verticesCount - 1; ) { - for(k = 0; k < this.§_-5O§; k++,indexOut++) + for(k = 0; k < this.var_728; k++,indexOut++) { res[indexOut] = input[int(indexIn + k)]; } - for(k = 0; k < this.§_-5O§; k++,indexOut++) + for(k = 0; k < this.var_728; k++,indexOut++) { - res[indexOut] = input[int(indexIn + this.§_-5O§ * j + k)]; + res[indexOut] = input[int(indexIn + this.var_728 * j + k)]; } - for(k = 0; k < this.§_-5O§; k++,indexOut++) + for(k = 0; k < this.var_728; k++,indexOut++) { - res[indexOut] = input[int(indexIn + this.§_-5O§ * (j + 1) + k)]; + res[indexOut] = input[int(indexIn + this.var_728 * (j + 1) + k)]; } j++; } - indexIn += this.§_-5O§ * verticesCount; + indexIn += this.var_728 * verticesCount; } } return res; } - public function §_-eT§(geometry:§_-gA§, vertices:Vector.<§_-V0§>) : uint + public function method_380(geometry:name_136, vertices:Vector.) : uint { - var tangentSource:§_-KP§ = null; - var binormalSource:§_-KP§ = null; - var normalSource:§_-KP§ = null; + var tangentSource:name_607 = null; + var binormalSource:name_607 = null; + var normalSource:name_607 = null; var index:uint = 0; - var vertex:§_-V0§ = null; - var s:§_-KP§ = null; + var vertex:name_608 = null; + var s:name_607 = null; var j:int = 0; - if(this.§_-2g§ == null) + if(this.var_739 == null) { return 0; } - this.§_-2g§.§_-Om§(); + this.var_739.method_132(); var numIndices:int = int(this.indices.length); - var daeVertices:§_-l§ = document.findVertices(this.§_-2g§.source); + var daeVertices:name_610 = document.findVertices(this.var_739.source); if(daeVertices == null) { - document.logger.logNotFoundError(this.§_-2g§.source); + document.logger.logNotFoundError(this.var_739.source); return 0; } - daeVertices.§_-Om§(); - var positionSource:§_-KP§ = daeVertices.§_-E6§; + daeVertices.method_132(); + var positionSource:name_607 = daeVertices.name_597; var vertexStride:int = 3; - var mainSource:§_-KP§ = positionSource; - var mainInput:§_-0M§ = this.§_-2g§; + var mainSource:name_607 = positionSource; + var mainInput:name_606 = this.var_739; var channels:uint = 0; var inputOffsets:Vector. = new Vector.(); - inputOffsets.push(this.§_-2g§.offset); - if(this.§_-Fl§ != null) + inputOffsets.push(this.var_739.offset); + if(this.var_742 != null) { - normalSource = this.§_-Fl§.prepareSource(3); - inputOffsets.push(this.§_-Fl§.offset); + normalSource = this.var_742.prepareSource(3); + inputOffsets.push(this.var_742.offset); vertexStride += 3; channels |= NORMALS; - if(this.§_-ly§.length > 0 && this.§_-jU§.length > 0) + if(this.var_743.length > 0 && this.var_741.length > 0) { - tangentSource = this.§_-ly§[0].prepareSource(3); - inputOffsets.push(this.§_-ly§[0].offset); - binormalSource = this.§_-jU§[0].prepareSource(3); - inputOffsets.push(this.§_-jU§[0].offset); + tangentSource = this.var_743[0].prepareSource(3); + inputOffsets.push(this.var_743[0].offset); + binormalSource = this.var_741[0].prepareSource(3); + inputOffsets.push(this.var_741[0].offset); vertexStride += 4; channels |= TANGENT4; } } - var textureSources:Vector.<§_-KP§> = new Vector.<§_-KP§>(); - var numTexCoordsInputs:int = int(this.§_-aL§.length); + var textureSources:Vector. = new Vector.(); + var numTexCoordsInputs:int = int(this.var_740.length); if(numTexCoordsInputs > 8) { numTexCoordsInputs = 8; } for(var i:int = 0; i < numTexCoordsInputs; ) { - s = this.§_-aL§[i].prepareSource(2); + s = this.var_740[i].prepareSource(2); textureSources.push(s); - inputOffsets.push(this.§_-aL§[i].offset); + inputOffsets.push(this.var_740[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.§_-5O§) + for(i = 0; i < numIndices; i += this.var_728) { index = this.indices[int(i + mainInput.offset)]; vertex = vertices[index]; - if(vertex == null || !this.§_-le§(vertex,this.indices,i,inputOffsets)) + if(vertex == null || !this.method_377(vertex,this.indices,i,inputOffsets)) { if(vertex != null) { index = uint(verticesLength++); } - vertex = new §_-V0§(); + vertex = new name_608(); vertices[index] = vertex; - vertex.§_-Eq§ = this.indices[int(i + this.§_-2g§.offset)]; - vertex.§_-0l§(positionSource.numbers,vertex.§_-Eq§,positionSource.stride,document.unitScaleFactor); + vertex.name_600 = this.indices[int(i + this.var_739.offset)]; + vertex.name_614(positionSource.numbers,vertex.name_600,positionSource.stride,document.unitScaleFactor); if(normalSource != null) { - vertex.§_-1L§(normalSource.numbers,this.indices[int(i + this.§_-Fl§.offset)],normalSource.stride); + vertex.name_611(normalSource.numbers,this.indices[int(i + this.var_742.offset)],normalSource.stride); } if(tangentSource != null) { - 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); + vertex.name_613(tangentSource.numbers,this.indices[int(i + this.var_743[0].offset)],tangentSource.stride,binormalSource.numbers,this.indices[int(i + this.var_741[0].offset)],binormalSource.stride); } for(j = 0; j < textureSources.length; ) { - vertex.§_-SX§(textureSources[j].numbers,this.indices[int(i + this.§_-aL§[j].offset)],textureSources[j].stride); + vertex.name_615(textureSources[j].numbers,this.indices[int(i + this.var_740[j].offset)],textureSources[j].stride); j++; } } - vertex.§_-AR§ = index; + vertex.name_601 = index; geometry.alternativa3d::_indices.push(index); } this.numTriangles = (geometry.alternativa3d::_indices.length - this.indexBegin) / 3; return channels; } - private function §_-le§(vertex:§_-V0§, indices:Vector., index:int, offsets:Vector.) : Boolean + private function method_377(vertex:name_608, indices:Vector., index:int, offsets:Vector.) : Boolean { var numOffsets:int = int(offsets.length); for(var j:int = 0; j < numOffsets; ) @@ -302,9 +302,9 @@ package §_-9j§ return true; } - private function §_-0z§(inputs:Vector.<§_-0M§>, setNum:int) : §_-0M§ + private function method_375(inputs:Vector., setNum:int) : name_606 { - var input:§_-0M§ = null; + var input:name_606 = null; for(var i:int = 0,var numInputs:int = int(inputs.length); i < numInputs; ) { input = inputs[i]; @@ -317,18 +317,18 @@ package §_-9j§ return null; } - private function §_-Rs§(mainSetNum:int) : Vector. + private function method_379(mainSetNum:int) : Vector. { var i:int = 0; - var texCoordsInput:§_-0M§ = null; - var texCoordsSource:§_-KP§ = null; + var texCoordsInput:name_606 = null; + var texCoordsSource:name_607 = null; var data:VertexChannelData = null; - var mainInput:§_-0M§ = this.§_-0z§(this.§_-aL§,mainSetNum); - var numInputs:int = int(this.§_-aL§.length); + var mainInput:name_606 = this.method_375(this.var_740,mainSetNum); + var numInputs:int = int(this.var_740.length); var datas:Vector. = new Vector.(); for(i = 0; i < numInputs; ) { - texCoordsInput = this.§_-aL§[i]; + texCoordsInput = this.var_740[i]; texCoordsSource = texCoordsInput.prepareSource(2); if(texCoordsSource != null) { @@ -347,17 +347,17 @@ package §_-9j§ return datas.length > 0 ? datas : null; } - public function §_-nY§(otherVertices:§_-l§) : Boolean + public function method_378(otherVertices:name_610) : Boolean { - var vertices:§_-l§ = document.findVertices(this.§_-2g§.source); + var vertices:name_610 = document.findVertices(this.var_739.source); if(vertices == null) { - document.logger.logNotFoundError(this.§_-2g§.source); + document.logger.logNotFoundError(this.var_739.source); } return vertices == otherVertices; } - public function get §_-Ig§() : String + public function get method_381() : String { var attr:XML = data.@material[0]; return attr == null ? null : attr.toString(); diff --git a/src/?_-GD?/?_-X8?.as b/src/package_11/name_288.as similarity index 61% rename from src/?_-GD?/?_-X8?.as rename to src/package_11/name_288.as index e43dd30..104cb08 100644 --- a/src/?_-GD?/?_-X8?.as +++ b/src/package_11/name_288.as @@ -1,33 +1,33 @@ -package §_-GD§ +package package_11 { - import §_-MU§.§_-5-§; - import §_-MU§.§_-XQ§; + import package_32.class_23; + import package_32.name_180; - public class §_-X8§ implements §_-XQ§ + public class name_288 implements class_23 { private static const ALL_CHANNELS:String = "all"; - private var clientLog:§_-5-§; + private var clientLog:name_180; - private var console:§_-6A§; + private var console:name_4; - public function §_-X8§(clientLog:§_-5-§, console:§_-6A§) + public function name_288(clientLog:name_180, console:name_4) { super(); this.clientLog = clientLog; this.console = console; } - public function §_-qU§(channelName:String, logText:String) : void + public function method_225(channelName:String, logText:String) : void { - this.console.§_-H-§(channelName + " ",logText); + this.console.name_469(channelName + " ",logText); } - public function §_-9Q§(console:§_-6A§, args:Array) : void + public function name_305(console:name_4, args:Array) : void { if(args.length < 1) { - console.§_-MR§("Usage: log action [arguments]"); + console.name_217("Usage: log action [arguments]"); return; } var action:String = args.shift(); @@ -35,34 +35,34 @@ package §_-GD§ { case "c": case "connect": - this.§_-1g§(args); + this.method_223(args); break; case "d": case "disconnect": - this.§_-W4§(args); + this.method_224(args); break; case "show": if(args.length == 0) { - console.§_-MR§("Usage: log show channel_name [filter_string]"); + console.name_217("Usage: log show channel_name [filter_string]"); break; } - this.§_-95§(console,args[0],args[1]); + this.method_222(console,args[0],args[1]); break; case "ls": case "list": - console.§_-MR§("Existing channels:"); - console.§_-3c§(this.clientLog.getChannelNames()); + console.name_217("Existing channels:"); + console.name_468(this.clientLog.getChannelNames()); } } - private function §_-95§(console:§_-6A§, channelName:String, filterString:String) : void + private function method_222(console:name_4, channelName:String, filterString:String) : void { var filteredStrings:Vector. = null; var channelStrings:Vector. = this.clientLog.getChannelStrings(channelName); if(channelStrings == null) { - console.§_-MR§("Channel not found"); + console.name_217("Channel not found"); } else { @@ -78,22 +78,22 @@ package §_-GD§ { filteredStrings = channelStrings; } - console.§_-dU§(channelName + " ",filteredStrings); + console.name_467(channelName + " ",filteredStrings); } } - private function §_-1g§(channels:Array) : void + private function method_223(channels:Array) : void { var channelName:String = null; if(channels.length == 0) { - this.console.§_-MR§("Usage: log connect channel_name1 [channel_name2 ...]"); + this.console.name_217("Usage: log connect channel_name1 [channel_name2 ...]"); return; } if(channels[0] == ALL_CHANNELS) { this.clientLog.addLogListener(this); - this.console.§_-MR§("All log channels have been connected"); + this.console.name_217("All log channels have been connected"); } else { @@ -102,24 +102,24 @@ package §_-GD§ if(channelName != ALL_CHANNELS) { this.clientLog.addLogChannelListener(channelName,this); - this.console.§_-MR§("Log channel " + channelName + " has been connected"); + this.console.name_217("Log channel " + channelName + " has been connected"); } } } } - private function §_-W4§(channels:Array) : void + private function method_224(channels:Array) : void { var channelName:String = null; if(channels.length == 0) { - this.console.§_-MR§("Usage: log disconnect channel_name1 [channel_name2 ...]"); + this.console.name_217("Usage: log disconnect channel_name1 [channel_name2 ...]"); return; } if(channels[0] == ALL_CHANNELS) { this.clientLog.removeLogListener(this); - this.console.§_-MR§("All log channels have been disconnected"); + this.console.name_217("All log channels have been disconnected"); } else { @@ -128,7 +128,7 @@ package §_-GD§ if(channelName != ALL_CHANNELS) { this.clientLog.removeLogChannelListener(channelName,this); - this.console.§_-MR§("Log channel " + channelName + " has been disconnected"); + this.console.name_217("Log channel " + channelName + " has been disconnected"); } } } diff --git a/src/?_-O5?/?_-2n?.as b/src/package_12/class_31.as similarity index 61% rename from src/?_-O5?/?_-2n?.as rename to src/package_12/class_31.as index ab58478..cb02ebc 100644 --- a/src/?_-O5?/?_-2n?.as +++ b/src/package_12/class_31.as @@ -1,36 +1,36 @@ -package §_-O5§ +package package_12 { - public class §_-2n§ implements §_-c4§ + public class class_31 implements class_32 { public var strings:Vector.; - public var §_-Uh§:int; + public var var_665:int; - public var §_-1A§:int; + public var var_664:int; - private var §_-9W§:int; + private var var_666:int; - public function §_-2n§(capacity:int) + public function class_31(capacity:int) { super(); - this.§_-9W§ = capacity; - this.strings = new Vector.(this.§_-9W§ + 1); + this.var_666 = capacity; + this.strings = new Vector.(this.var_666 + 1); } public function add(s:String) : void { - this.strings[this.§_-1A§] = s; - this.§_-1A§ = this.incIndex(this.§_-1A§); - if(this.§_-1A§ == this.§_-Uh§) + this.strings[this.var_664] = s; + this.var_664 = this.incIndex(this.var_664); + if(this.var_664 == this.var_665) { - this.§_-Uh§ = this.incIndex(this.§_-Uh§); + this.var_665 = this.incIndex(this.var_665); } } public function clear() : void { - this.§_-Uh§ = 0; - this.§_-1A§ = 0; + this.var_665 = 0; + this.var_664 = 0; var len:int = int(this.strings.length); for(var i:int = 0; i < len; i++) { @@ -40,7 +40,7 @@ package §_-O5§ public function get size() : int { - var result:int = this.§_-1A§ - this.§_-Uh§; + var result:int = this.var_664 - this.var_665; if(result < 0) { result += this.strings.length; @@ -50,13 +50,13 @@ package §_-O5§ public function get capacity() : int { - return this.§_-9W§; + return this.var_666; } - public function §_-BS§() : Vector. + public function method_326() : Vector. { var result:Vector. = new Vector.(); - for(var i:int = this.§_-Uh§; i != this.§_-1A§; i = this.incIndex(i)) + for(var i:int = this.var_665; i != this.var_664; i = this.incIndex(i)) { result.push(this.strings[i]); } @@ -68,7 +68,7 @@ package §_-O5§ throw new Error("Unimplemented"); } - public function §_-Pj§(startIndex:int) : §_-fU§ + public function method_327(startIndex:int) : class_33 { return new Iterator(this,startIndex); } @@ -80,13 +80,13 @@ package §_-O5§ } } -class Iterator implements §_-fU§ +class Iterator implements class_33 { - private var buffer:§_-2n§; + private var buffer:class_31; private var index:int; - public function Iterator(buffer:§_-2n§, startIndex:int) + public function Iterator(buffer:class_31, startIndex:int) { super(); if(startIndex < 0 || startIndex > buffer.size) @@ -95,7 +95,7 @@ class Iterator implements §_-fU§ } this.buffer = buffer; var bufferLength:uint = uint(buffer.strings.length); - this.index = buffer.§_-Uh§ + startIndex - 1; + this.index = buffer.var_665 + startIndex - 1; if(this.index < 0) { this.index = bufferLength - 1; @@ -108,13 +108,13 @@ class Iterator implements §_-fU§ public function hasNext() : Boolean { - return this.incIndex(this.index) != this.buffer.§_-1A§; + return this.incIndex(this.index) != this.buffer.var_664; } public function getNext() : String { this.index = this.incIndex(this.index); - if(this.index == this.buffer.§_-1A§) + if(this.index == this.buffer.var_664) { throw new Error("End of buffer"); } diff --git a/src/?_-Uy?/?_-oP?.as b/src/package_14/name_3.as similarity index 65% rename from src/?_-Uy?/?_-oP?.as rename to src/package_14/name_3.as index f10a12c..e075199 100644 --- a/src/?_-Uy?/?_-oP?.as +++ b/src/package_14/name_3.as @@ -1,26 +1,26 @@ -package §_-Uy§ +package package_14 { - import §_-HW§.§_-C§; - import §_-HW§.§_-pF§; - import §_-MU§.§_-bV§; import flash.utils.Dictionary; import flash.utils.getQualifiedClassName; + import package_31.name_113; + import package_31.name_114; + import package_32.name_115; - public class §_-oP§ + public class name_3 { - public static var clientLog:§_-bV§; + public static var clientLog:name_115; - private static var instance:§_-oP§; + private static var instance:name_3; private static const LOG_CHANNEL:String = "osgi"; - private var §_-2M§:Object = {}; + private var var_52:Object = {}; private var services:Dictionary = new Dictionary(); - private var §_-dp§:Dictionary = new Dictionary(); + private var var_51:Dictionary = new Dictionary(); - public function §_-oP§() + public function name_3() { super(); if(instance == null) @@ -31,21 +31,21 @@ package §_-Uy§ throw new Error("Only one instance of OSGi class is allowed"); } - public static function §_-nQ§() : §_-oP§ + public static function name_8() : name_3 { return instance; } - public function §_-XK§(bundleDescriptor:§_-C§) : void + public function method_44(bundleDescriptor:name_113) : void { - var activators:Vector.<§_-pF§> = null; + var activators:Vector. = null; var i:int = 0; - var activator:§_-pF§ = null; - if(this.§_-2M§[bundleDescriptor.name] == null) + var activator:name_114 = null; + if(this.var_52[bundleDescriptor.name] == null) { clientLog.log(LOG_CHANNEL,"Installing bundle %1",bundleDescriptor.name); clientLog.log(LOG_CHANNEL,"Bundle activators: %1",bundleDescriptor.activators); - this.§_-2M§[bundleDescriptor.name] = bundleDescriptor; + this.var_52[bundleDescriptor.name] = bundleDescriptor; activators = bundleDescriptor.activators; if(activators != null) { @@ -62,20 +62,20 @@ package §_-Uy§ throw new Error("Bundle " + bundleDescriptor.name + " is already installed"); } - public function §_-PX§(bundleName:String) : void + public function method_43(bundleName:String) : void { var i:int = 0; - var activator:§_-pF§ = null; + var activator:name_114 = null; if(bundleName == null) { throw new ArgumentError("Bundle name is null"); } - var bundleDescriptor:§_-C§ = this.§_-2M§[bundleName]; + var bundleDescriptor:name_113 = this.var_52[bundleName]; if(bundleDescriptor == null) { throw new Error("Bundle " + bundleName + " not found"); } - var activators:Vector.<§_-pF§> = bundleDescriptor.activators; + var activators:Vector. = bundleDescriptor.activators; if(activators != null) { for(i = 0; i < activators.length; i++) @@ -85,20 +85,20 @@ package §_-Uy§ activator.stop(this); } } - delete this.§_-2M§[bundleName]; + delete this.var_52[bundleName]; clientLog.log(LOG_CHANNEL,"Bundle " + bundleName + " has been uninstalled"); } - public function §_-g2§(serviceInterface:Class, serviceImplementation:Object) : void + public function method_38(serviceInterface:Class, serviceImplementation:Object) : void { var injectPoints:Vector. = null; var ip:InjectPoint = null; if(this.services[serviceInterface] == null) { this.services[serviceInterface] = serviceImplementation; - if(this.§_-dp§[serviceInterface] != null) + if(this.var_51[serviceInterface] != null) { - injectPoints = this.§_-dp§[serviceInterface]; + injectPoints = this.var_51[serviceInterface]; for each(ip in injectPoints) { ip.injectOwner[ip.injectFieldName] = serviceImplementation; @@ -111,53 +111,53 @@ package §_-Uy§ throw new Error("Service " + serviceInterface + " is already registered"); } - public function §_-pC§(serviceInterfaces:Array, serviceImplementation:Object) : void + public function method_40(serviceInterfaces:Array, serviceImplementation:Object) : void { var serviceInterface:Class = null; for each(serviceInterface in serviceInterfaces) { - this.§_-g2§(serviceInterface,serviceImplementation); + this.method_38(serviceInterface,serviceImplementation); } } - public function §_-5n§(serviceInterface:Class) : void + public function method_39(serviceInterface:Class) : void { if(this.services[serviceInterface] != null) { delete this.services[serviceInterface]; - delete this.§_-dp§[serviceInterface]; + delete this.var_51[serviceInterface]; clientLog.log(LOG_CHANNEL,"Service has been unregistered: " + serviceInterface); } } - public function §_-N6§(serviceInterface:Class) : Object + public function name_21(serviceInterface:Class) : Object { return this.services[serviceInterface]; } - public function §_-oK§(serviceInterface:Class, injectFieldOwner:Class, injectFieldName:String) : void + public function method_42(serviceInterface:Class, injectFieldOwner:Class, injectFieldName:String) : void { - if(!this.§_-dp§[serviceInterface]) + if(!this.var_51[serviceInterface]) { - this.§_-dp§[serviceInterface] = new Vector.(); + this.var_51[serviceInterface] = new Vector.(); } - this.§_-dp§[serviceInterface].push(new InjectPoint(injectFieldOwner,injectFieldName)); + this.var_51[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 §_-01§() : Vector.<§_-C§> + public function get method_45() : Vector. { - var bundleDescriptor:§_-C§ = null; - var list:Vector.<§_-C§> = new Vector.<§_-C§>(); - for each(bundleDescriptor in this.§_-2M§) + var bundleDescriptor:name_113 = null; + var list:Vector. = new Vector.(); + for each(bundleDescriptor in this.var_52) { list.push(bundleDescriptor); } return list; } - public function get §_-cA§() : Vector. + public function get method_41() : Vector. { var service:Object = null; var list:Vector. = new Vector.(); diff --git a/src/package_15/name_102.as b/src/package_15/name_102.as new file mode 100644 index 0000000..46464a3 --- /dev/null +++ b/src/package_15/name_102.as @@ -0,0 +1,175 @@ +package package_15 +{ + import flash.utils.Dictionary; + import flash.utils.describeType; + import flash.utils.getDefinitionByName; + import package_78.name_307; + import package_78.name_308; + + public class name_102 + { + private var var_85:name_308 = new name_308(); + + private var var_87:TaskArray = new TaskArray(); + + private var var_86:TaskArray = new TaskArray(); + + private var var_88:Dictionary = new Dictionary(); + + public function name_102() + { + super(); + } + + public function addTask(task:class_1) : 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:class_1) : void + { + if(Boolean(this.var_85.contains(task)) && !this.var_86.contains(task)) + { + this.var_86.add(task); + } + } + + public function name_106() : void + { + var task:class_1 = null; + this.method_103(); + var iterator:name_307 = this.var_85.listIterator(); + while(iterator.hasNext()) + { + task = class_1(iterator.next()); + if(!task.name_310) + { + task.run(); + } + } + this.method_102(); + } + + public function getTaskInterface(taskInterface:Class) : Object + { + return this.var_88[taskInterface]; + } + + public function name_110() : void + { + var task:class_1 = null; + var listIterator:name_307 = this.var_85.listIterator(); + while(listIterator.hasNext()) + { + task = class_1(listIterator.next()); + this.killTask(task); + } + } + + private function method_103() : void + { + var task:class_1 = null; + var taskInterfaces:Vector. = null; + var taskInterface:Class = null; + var activeTasksIterator:name_307 = null; + var activeTask:class_1 = 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.method_101(task); + for each(taskInterface in taskInterfaces) + { + this.var_88[taskInterface] = task; + } + activeTasksIterator = this.var_85.listIterator(); + while(activeTasksIterator.hasNext()) + { + activeTask = class_1(activeTasksIterator.next()); + if(activeTask.priority > task.priority) + { + activeTasksIterator.name_309(); + break; + } + } + activeTasksIterator.add(task); + } + this.var_87.clear(); + } + + private function method_102() : void + { + var task:class_1 = 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.method_101(task); + for each(taskInterface in taskInterfaces) + { + delete this.var_88[taskInterface]; + } + task.var_4 = null; + } + this.var_86.clear(); + } + + private function method_101(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:class_1) : 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:class_1) : Boolean + { + return this.tasks.indexOf(task) >= 0; + } +} diff --git a/src/package_15/name_17.as b/src/package_15/name_17.as new file mode 100644 index 0000000..2fffb42 --- /dev/null +++ b/src/package_15/name_17.as @@ -0,0 +1,216 @@ +package package_15 +{ + import flash.display.Stage; + import package_18.name_51; + import package_20.name_55; + import package_20.name_99; + import package_24.name_105; + import package_24.name_96; + import package_25.name_97; + import package_26.name_104; + import package_26.name_111; + import package_27.name_98; + import package_28.name_101; + import package_28.name_112; + import package_29.name_100; + import package_30.name_103; + + public class name_17 + { + 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_100 = new name_100(20); + + private var var_43:Stage; + + private var var_36:Object; + + private var var_41:class_4 = new DummyLogger(); + + private var var_4:name_102; + + private var var_44:name_103; + + private var inputSystem:name_101; + + private var eventSystem:name_99; + + private var logicSystem1:name_96; + + private var logicSystem2:name_96; + + private var physicsSystem:name_98; + + private var renderSystem:name_51; + + private var var_42:name_104; + + private var var_39:Vector.; + + private var var_38:int; + + private var var_40:name_97; + + public function name_17(stage:Stage, options:Object) + { + super(); + this.var_43 = stage; + this.var_36 = options || {}; + this.var_39 = new Vector.(); + this.var_40 = new name_97(); + this.var_4 = new name_102(); + this.var_44 = new name_103(TIME_SYSTEM_PRIORITY); + this.var_4.addTask(this.var_44); + this.inputSystem = new name_101(INPUT_SYSTEM_PRIORITY,stage); + this.var_4.addTask(this.inputSystem); + this.eventSystem = new name_99(EVENT_SYSTEM_PRIORITY); + this.var_4.addTask(this.eventSystem); + this.logicSystem1 = new name_96(LOGIC_SYSTEM_1_PRIORITY,this); + this.var_4.addTask(this.logicSystem1); + this.logicSystem2 = new name_96(LOGIC_SYSTEM_2_PRIORITY,this); + this.var_4.addTask(this.logicSystem2); + this.physicsSystem = new name_98(PHYSICS_SYSTEM_PRIORITY,this.var_40); + this.var_4.addTask(this.physicsSystem); + this.renderSystem = new name_51(RENDER_SYSTEM_PRIORITY,stage); + this.var_4.addTask(this.renderSystem); + this.var_42 = new name_104(CLEANUP_SYSTEM_PRIORITY); + this.var_4.addTask(this.var_42); + } + + public function get logger() : class_4 + { + return this.var_41; + } + + public function set logger(value:class_4) : 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_36(command:name_111) : void + { + this.var_42.name_108(command); + } + + public function method_33() : name_97 + { + return this.var_40; + } + + public function addTask(gameTask:class_1) : void + { + this.var_4.addTask(gameTask); + } + + public function name_72(entity:name_53) : 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_34(entity:name_53) : void + { + var index:int = int(entity.index); + if(index < 0) + { + throw new Error("Entity " + entity + " is not in game"); + } + var lastEntity:name_53 = 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_65() : name_112 + { + return this.inputSystem; + } + + public function name_60() : name_55 + { + return this.eventSystem; + } + + public function getLogicSystem1() : name_105 + { + return this.logicSystem1; + } + + public function getLogicSystem2() : name_105 + { + return this.logicSystem2; + } + + public function method_37() : name_98 + { + return this.physicsSystem; + } + + public function name_5() : name_51 + { + return this.renderSystem; + } + + public function name_45() : void + { + this.const_1.name_109(); + this.var_4.name_106(); + this.const_1.name_107(); + } + + public function method_35() : void + { + this.var_4.name_110(); + this.var_4.name_106(); + } + } +} + +class DummyLogger implements class_4 +{ + public function DummyLogger() + { + super(); + } + + public function log(channel:String, text:String) : void + { + } +} diff --git a/src/package_16/name_18.as b/src/package_16/name_18.as new file mode 100644 index 0000000..21d9c0e --- /dev/null +++ b/src/package_16/name_18.as @@ -0,0 +1,198 @@ +package package_16 +{ + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.utils.ByteArray; + import package_12.name_54; + import package_22.class_3; + import package_22.name_87; + import package_22.name_89; + import package_22.name_90; + import package_23.name_92; + import package_23.name_94; + + [Event(name="complete",type="flash.events.Event")] + public class name_18 extends EventDispatcher + { + public var mapData:name_54; + + public var var_37:name_91; + + public var tankParts:name_95; + + public var soundsLibrary:name_92; + + public var name_67:name_93 = new name_93(); + + private var var_35:XML; + + private var var_34:name_90; + + private var preloader:Preloader; + + private var var_36:Object = {}; + + public function name_18() + { + super(); + } + + public function load(param1:String, param2:Preloader) : void + { + this.preloader = param2; + this.var_34 = new name_90(); + var _loc3_:ConfigXMLLoader = new ConfigXMLLoader(param1,this); + this.var_34.addTask(_loc3_); + _loc3_.addEventListener(name_87.TASK_COMPLETE,this.method_28); + var _loc4_:name_94 = new name_94(this); + this.var_34.addTask(_loc4_); + _loc4_.addEventListener(name_87.TASK_PROGRESS,this.method_28); + this.var_37 = new name_91(this); + this.var_37.addEventListener(name_87.TASK_PROGRESS,this.method_28); + this.var_34.addTask(this.var_37); + var _loc5_:class_3 = this.method_31(); + this.var_34.addTask(_loc5_); + _loc5_.addEventListener(name_87.TASK_COMPLETE,this.method_28); + this.tankParts = new name_95(this); + this.tankParts.addEventListener(name_87.TASK_PROGRESS,this.method_28); + this.var_34.addTask(this.tankParts); + this.soundsLibrary = new name_92(this); + this.soundsLibrary.addEventListener(name_87.TASK_PROGRESS,this.method_28); + this.var_34.addTask(this.soundsLibrary); + this.var_34.addEventListener(Event.COMPLETE,this.method_32); + this.var_34.run(); + } + + private function method_28(param1:name_87) : void + { + this.preloader.method_27(param1.progress / param1.total * 0.1); + } + + public function name_66() : 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.method_29(); + } + + 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 method_31() : class_3 + { + return new MapLoadTask(this,this.method_30); + } + + private function method_32(param1:Event) : void + { + this.var_34 = null; + dispatchEvent(new Event(Event.COMPLETE)); + } + + private function method_30(param1:ByteArray) : void + { + var _loc2_:name_89 = new name_89(param1); + this.mapData = new name_54(_loc2_.data); + } + + private function method_29() : 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_22.class_3; + +class ConfigXMLLoader extends class_3 +{ + private var config:name_18; + + private var loader:URLLoader; + + private var url:String; + + public function ConfigXMLLoader(param1:String, param2:name_18) + { + 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; + name_88(); + } +} + +class MapLoadTask extends class_3 +{ + private var callback:Function; + + private var config:name_18; + + private var loader:URLLoader; + + public function MapLoadTask(param1:name_18, 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; + name_88(); + } +} diff --git a/src/?_-cv?/?_-Tv?.as b/src/package_16/name_91.as similarity index 56% rename from src/?_-cv?/?_-Tv?.as rename to src/package_16/name_91.as index 57b7f3a..f3ffd1c 100644 --- a/src/?_-cv?/?_-Tv?.as +++ b/src/package_16/name_91.as @@ -1,29 +1,29 @@ -package §_-cv§ +package package_16 { import flash.display.BitmapData; import flash.events.Event; - import §return§.§_-Ui§; - import §return§.§_-pj§; + import package_22.name_87; + import package_22.name_90; - public class §_-Tv§ extends §_-FR§ + public class name_91 extends class_15 { private var textures:Object = {}; - private var §_-gh§:BitmapData; + private var var_193:BitmapData; - private var §_-d5§:§_-Ui§; + private var var_34:name_90; - public function §_-Tv§(param1:§_-YU§) + public function name_91(param1:name_18) { super("Texture library loader",param1); } - public function §_-o0§(param1:String) : Object + public function name_155(param1:String) : Object { - return this.textures[param1] || this.§_-8P§(); + return this.textures[param1] || this.method_129(); } - public function §_-Co§(param1:String, param2:Object) : void + public function method_128(param1:String, param2:Object) : void { this.textures[param1] = param2; } @@ -32,52 +32,52 @@ package §_-cv§ { var _loc3_:XML = null; var _loc1_:XML = config.xml.textures[0]; - var _loc2_:String = §_-NN§.§_-KN§(_loc1_.@baseUrl); - this.§_-d5§ = new §_-Ui§(); + var _loc2_:String = name_347.name_348(_loc1_.@baseUrl); + this.var_34 = new name_90(); for each(_loc3_ in _loc1_.texture) { - this.§_-d5§.addTask(new TextureLoader(_loc3_.@id,_loc2_ + _loc3_.@url,this)); + this.var_34.addTask(new TextureLoader(_loc3_.@id,_loc2_ + _loc3_.@url,this)); } - this.§_-d5§.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-fm§); - this.§_-d5§.addEventListener(Event.COMPLETE,this.§_-Pw§); - this.§_-d5§.run(); + this.var_34.addEventListener(name_87.TASK_COMPLETE,this.method_130); + this.var_34.addEventListener(Event.COMPLETE,this.method_32); + this.var_34.run(); } - private function §_-fm§(param1:§_-pj§) : void + private function method_130(param1:name_87) : void { - dispatchEvent(new §_-pj§(§_-pj§.TASK_PROGRESS,1,this.§_-d5§.length)); + dispatchEvent(new name_87(name_87.TASK_PROGRESS,1,this.var_34.length)); } - private function §_-Pw§(param1:Event) : void + private function method_32(param1:Event) : void { - this.§_-d5§ = null; - §_-3Z§(); + this.var_34 = null; + name_88(); } - private function §_-8P§() : BitmapData + private function method_129() : BitmapData { var _loc1_:int = 0; var _loc2_:uint = 0; var _loc3_:int = 0; var _loc4_:int = 0; - if(this.§_-gh§ == null) + if(this.var_193 == null) { _loc1_ = 128; _loc2_ = 16711935; - this.§_-gh§ = new BitmapData(_loc1_,_loc1_,false,0); + this.var_193 = new BitmapData(_loc1_,_loc1_,false,0); _loc3_ = 0; while(_loc3_ < _loc1_) { _loc4_ = 0; while(_loc4_ < _loc1_) { - this.§_-gh§.setPixel(Boolean(_loc3_ % 2) ? _loc4_ : _loc4_ + 1,_loc3_,_loc2_); + this.var_193.setPixel(Boolean(_loc3_ % 2) ? _loc4_ : _loc4_ + 1,_loc3_,_loc2_); _loc4_ += 2; } _loc3_++; } } - return this.§_-gh§; + return this.var_193; } } } @@ -90,21 +90,21 @@ import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; -import §return§.§_-h5§; +import package_22.class_3; -class TextureLoader extends §_-h5§ +class TextureLoader extends class_3 { private var id:String; private var url:String; - private var library:§_-Tv§; + private var library:name_91; private var loader:Loader; private var urlLoader:URLLoader; - public function TextureLoader(param1:String, param2:String, param3:§_-Tv§) + public function TextureLoader(param1:String, param2:String, param3:name_91) { super(); this.id = param1; @@ -131,13 +131,13 @@ class TextureLoader extends §_-h5§ private function onLoadingCompressedComplete(param1:Event) : void { - this.library.§_-Co§(this.id,ByteArray(this.urlLoader.data)); - §_-3Z§(); + this.library.method_128(this.id,ByteArray(this.urlLoader.data)); + name_88(); } private function onLoadingComplete(param1:Event) : void { - this.library.§_-Co§(this.id,Bitmap(this.loader.content).bitmapData); - §_-3Z§(); + this.library.method_128(this.id,Bitmap(this.loader.content).bitmapData); + name_88(); } } diff --git a/src/?return?/?_-Hr?.as b/src/package_22/name_89.as similarity index 67% rename from src/?return?/?_-Hr?.as rename to src/package_22/name_89.as index 3de4685..7692d80 100644 --- a/src/?return?/?_-Hr?.as +++ b/src/package_22/name_89.as @@ -1,21 +1,21 @@ -package §return§ +package package_22 { import flash.utils.ByteArray; - public class §_-Hr§ + public class name_89 { - private var §_-Bp§:Object; + private var var_102:Object; - public function §_-Hr§(param1:ByteArray) + public function name_89(param1:ByteArray) { super(); if(param1 != null) { - this.§_-Om§(param1); + this.method_132(param1); } } - public function §_-Om§(param1:ByteArray) : void + public function method_132(param1:ByteArray) : void { var _loc4_:int = 0; var _loc5_:ByteArray = null; @@ -28,30 +28,30 @@ package §return§ _loc3_[_loc4_] = new FileInfo(param1.readUTF(),param1.readInt()); _loc4_++; } - this.§_-Bp§ = {}; + this.var_102 = {}; _loc4_ = 0; while(_loc4_ < _loc2_) { _loc5_ = new ByteArray(); _loc6_ = _loc3_[_loc4_]; param1.readBytes(_loc5_,0,_loc6_.size); - this.§_-Bp§[_loc6_.name] = _loc5_; + this.var_102[_loc6_.name] = _loc5_; _loc4_++; } } public function get data() : Object { - return this.§_-Bp§; + return this.var_102; } - public function §_-lv§(param1:String) : ByteArray + public function method_133(param1:String) : ByteArray { - if(this.§_-Bp§ == null) + if(this.var_102 == null) { return null; } - return ByteArray(this.§_-Bp§[param1]); + return ByteArray(this.var_102[param1]); } } } diff --git a/src/package_23/name_92.as b/src/package_23/name_92.as new file mode 100644 index 0000000..0a794f9 --- /dev/null +++ b/src/package_23/name_92.as @@ -0,0 +1,101 @@ +package package_23 +{ + import flash.events.Event; + import flash.media.Sound; + import package_16.class_15; + import package_16.name_18; + import package_16.name_347; + import package_22.name_87; + import package_22.name_90; + + public class name_92 extends class_15 + { + private var sounds:Object = {}; + + private var var_34:name_90; + + public function name_92(param1:name_18) + { + super("Sounds library loader",param1); + } + + public function name_214(param1:String) : Sound + { + return this.sounds[param1]; + } + + public function method_131(param1:String, param2:Sound) : void + { + this.sounds[param1] = param2; + } + + override public function run() : void + { + var _loc3_:XML = null; + if(config.xml.sounds == null) + { + name_88(); + return; + } + var _loc1_:XML = config.xml.sounds[0]; + var _loc2_:String = name_347.name_348(_loc1_.@baseUrl); + this.var_34 = new name_90(); + for each(_loc3_ in _loc1_.sound) + { + this.var_34.addTask(new SoundLoader(_loc3_.@id,_loc2_ + _loc3_.@file,this)); + } + this.var_34.addEventListener(name_87.TASK_COMPLETE,this.method_130); + this.var_34.addEventListener(Event.COMPLETE,this.method_32); + this.var_34.run(); + } + + private function method_130(param1:name_87) : void + { + dispatchEvent(new name_87(name_87.TASK_PROGRESS,1,this.var_34.length)); + } + + private function method_32(param1:Event) : void + { + this.var_34 = null; + name_88(); + } + } +} + +import flash.events.Event; +import flash.events.EventDispatcher; +import flash.media.Sound; +import flash.net.URLRequest; +import package_22.class_3; + +class SoundLoader extends class_3 +{ + private var id:String; + + private var url:String; + + private var library:name_92; + + private var loader:Sound; + + public function SoundLoader(param1:String, param2:String, param3:name_92) + { + 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_131(this.id,this.loader); + name_88(); + } +} diff --git a/src/?_-aa?/?_-cS?.as b/src/package_23/name_94.as similarity index 54% rename from src/?_-aa?/?_-cS?.as rename to src/package_23/name_94.as index 10ca5e2..21e41e2 100644 --- a/src/?_-aa?/?_-cS?.as +++ b/src/package_23/name_94.as @@ -1,22 +1,22 @@ -package §_-aa§ +package package_23 { - import §_-cv§.§_-NN§; - import §_-cv§.§_-YU§; - import §_-cv§.§_-cP§; - import §_-cv§.§_-dD§; import flash.events.Event; import flash.utils.ByteArray; - import §return§.§_-Ui§; - import §return§.§_-h5§; - import §return§.§_-pj§; + import package_16.name_18; + import package_16.name_347; + import package_16.name_57; + import package_16.name_69; + import package_22.class_3; + import package_22.name_87; + import package_22.name_90; - public class §_-cS§ extends §_-h5§ + public class name_94 extends class_3 { - private var config:§_-YU§; + private var config:name_18; - private var §_-d5§:§_-Ui§; + private var var_34:name_90; - public function §_-cS§(param1:§_-YU§) + public function name_94(param1:name_18) { super(); this.config = param1; @@ -32,53 +32,53 @@ package §_-aa§ var _loc6_:XML = null; var _loc7_:String = null; var _loc8_:String = null; - this.§_-d5§ = new §_-Ui§(); + this.var_34 = new name_90(); 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_ = §_-NN§.§_-KN§(_loc3_.@baseUrl); + _loc5_ = name_347.name_348(_loc3_.@baseUrl); for each(_loc6_ in _loc3_.elements("blob")) { _loc7_ = _loc6_.@id; _loc8_ = _loc5_ + _loc6_.@file; - this.§_-d5§.addTask(new BlobLoader(_loc2_,_loc4_,_loc7_,_loc8_,this)); + this.var_34.addTask(new BlobLoader(_loc2_,_loc4_,_loc7_,_loc8_,this)); } } } - this.§_-d5§.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-fm§); - this.§_-d5§.addEventListener(Event.COMPLETE,this.onLoadingComplete); - this.§_-d5§.run(); + this.var_34.addEventListener(name_87.TASK_COMPLETE,this.method_130); + this.var_34.addEventListener(Event.COMPLETE,this.onLoadingComplete); + this.var_34.run(); } - private function §_-fm§(param1:§_-pj§) : void + private function method_130(param1:name_87) : void { - dispatchEvent(new §_-pj§(§_-pj§.TASK_PROGRESS,1,this.§_-d5§.length)); + dispatchEvent(new name_87(name_87.TASK_PROGRESS,1,this.var_34.length)); } - public function §_-To§(param1:String, param2:String, param3:String, param4:ByteArray) : void + public function method_134(param1:String, param2:String, param3:String, param4:ByteArray) : void { - var _loc5_:§_-cP§ = this.config.§_-WG§.§_-hJ§(param1); + var _loc5_:name_69 = this.config.name_67.name_71(param1); if(_loc5_ == null) { - _loc5_ = new §_-cP§(); - this.config.§_-WG§.§_-hv§(param1,_loc5_); + _loc5_ = new name_69(); + this.config.name_67.name_351(param1,_loc5_); } - var _loc6_:§_-dD§ = _loc5_.§_-EZ§(param2); + var _loc6_:name_57 = _loc5_.name_61(param2); if(_loc6_ == null) { - _loc6_ = new §_-dD§(); - _loc5_.§_-b6§(param2,_loc6_); + _loc6_ = new name_57(); + _loc5_.name_350(param2,_loc6_); } - _loc6_.§_-CC§(param3,param4); + _loc6_.name_349(param3,param4); } private function onLoadingComplete(param1:Event) : void { - this.§_-d5§ = null; - §_-3Z§(); + this.var_34 = null; + name_88(); } } } @@ -88,9 +88,9 @@ import flash.events.EventDispatcher; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; -import §return§.§_-h5§; +import package_22.class_3; -class BlobLoader extends §_-h5§ +class BlobLoader extends class_3 { private var categoryId:String; @@ -100,11 +100,11 @@ class BlobLoader extends §_-h5§ private var blobUrl:String; - private var blobsLoaderTask:§_-cS§; + private var blobsLoaderTask:name_94; private var loader:URLLoader; - public function BlobLoader(param1:String, param2:String, param3:String, param4:String, param5:§_-cS§) + public function BlobLoader(param1:String, param2:String, param3:String, param4:String, param5:name_94) { super(); this.categoryId = param1; @@ -124,8 +124,8 @@ class BlobLoader extends §_-h5§ private function onLoadingComplete(param1:Event) : void { - this.blobsLoaderTask.§_-To§(this.categoryId,this.groupId,this.blobId,this.loader.data); + this.blobsLoaderTask.method_134(this.categoryId,this.groupId,this.blobId,this.loader.data); this.loader = null; - §_-3Z§(); + name_88(); } } diff --git a/src/package_24/name_96.as b/src/package_24/name_96.as new file mode 100644 index 0000000..f1a413e --- /dev/null +++ b/src/package_24/name_96.as @@ -0,0 +1,133 @@ +package package_24 +{ + import package_15.class_1; + import package_15.name_17; + + public class name_96 extends class_1 implements name_105 + { + private var var_214:Vector.; + + private var var_215:int; + + private var running:Boolean; + + private var gameKernel:name_17; + + public function name_96(priority:int, gameKernel:name_17) + { + super(priority); + this.gameKernel = gameKernel; + this.var_214 = new Vector.(); + } + + public function addLogicUnit(logicUnit:name_367) : void + { + var actionAddUnit:ActionAddUnit = null; + if(this.running) + { + actionAddUnit = ActionAddUnit(this.gameKernel.method_33().name_165(ActionAddUnit)); + this.method_135(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_367) : void + { + var actionRemoveUnit:ActionRemoveUnit = null; + var index:int = 0; + if(this.running) + { + actionRemoveUnit = ActionRemoveUnit(this.gameKernel.method_33().name_165(ActionRemoveUnit)); + this.method_135(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_135(action:DeferredAction, unit:name_367) : void + { + action.system = this; + action.unit = unit; + this.gameKernel.method_36(action); + } + } +} + +import package_25.name_353; +import package_25.name_355; +import package_26.name_111; + +class DeferredAction extends name_111 +{ + public var system:name_105; + + public var unit:name_367; + + public function DeferredAction(objectPool:name_355) + { + 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:name_355) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.addLogicUnit(unit); + } +} + +class ActionRemoveUnit extends DeferredAction +{ + public function ActionRemoveUnit(objectPool:name_355) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.removeLogicUnit(unit); + } +} diff --git a/src/?in ?/DeferredCommand.as b/src/package_26/DeferredCommand.as similarity index 91% rename from src/?in ?/DeferredCommand.as rename to src/package_26/DeferredCommand.as index 5ab14f1..7af995b 100644 --- a/src/?in ?/DeferredCommand.as +++ b/src/package_26/DeferredCommand.as @@ -1,4 +1,4 @@ -package §in § +package package_26 { import alternativa.tanks.game.utils.objectpool.ObjectPool; import alternativa.tanks.game.utils.objectpool.PooledObject; diff --git a/src/?in ?/DeferredCommandsSystem.as b/src/package_26/DeferredCommandsSystem.as similarity index 93% rename from src/?in ?/DeferredCommandsSystem.as rename to src/package_26/DeferredCommandsSystem.as index eecd8e6..a31e927 100644 --- a/src/?in ?/DeferredCommandsSystem.as +++ b/src/package_26/DeferredCommandsSystem.as @@ -1,4 +1,4 @@ -package §in § +package package_26 { import alternativa.tanks.game.GameTask; diff --git a/src/package_27/name_98.as b/src/package_27/name_98.as new file mode 100644 index 0000000..83be1f4 --- /dev/null +++ b/src/package_27/name_98.as @@ -0,0 +1,353 @@ +package package_27 +{ + import flash.utils.getTimer; + import package_15.class_1; + import package_25.name_97; + import package_26.name_111; + import package_30.name_103; + import package_38.name_145; + import package_51.name_276; + import package_54.name_354; + import package_54.name_357; + import package_58.name_334; + import package_61.name_356; + import package_79.name_358; + + public class name_98 extends class_1 + { + private static var USE_GRID_COLLISION_DETECTOR:Boolean = true; + + public var interpolationCoeff:Number; + + private var physicsStep:int = 33; + + private var physicsScene:name_356; + + 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_358; + + private var var_206:int; + + private var running:Boolean; + + private var var_11:name_111; + + private var objectPoolManager:name_97; + + public function name_98(priority:int, objectPoolManager:name_97) + { + super(priority); + this.objectPoolManager = objectPoolManager; + this.var_202 = new Vector.(); + this.var_200 = new Vector.(); + this.var_201 = new Vector.(); + this.physicsScene = new name_356(); + this.physicsScene.name_366 = true; + this.physicsScene.name_360 = 5; + this.physicsScene.name_365 = 100; + this.physicsScene.gravity = new name_145(0,0,-1000); + if(USE_GRID_COLLISION_DETECTOR) + { + this.var_207 = new name_358(); + this.physicsScene.collisionDetector = this.var_207; + } + else + { + this.physicsScene.collisionDetector = new name_354(); + } + } + + 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_140() : name_358 + { + return this.var_207; + } + + public function method_138() : int + { + return this.physicsStep; + } + + public function name_157() : name_356 + { + return this.physicsScene; + } + + public function method_136(collisionPrimitives:Vector.) : void + { + var gridCellSize:Number = NaN; + var collisionDetector:name_354 = null; + var bb:name_334 = null; + var size:Number = NaN; + if(USE_GRID_COLLISION_DETECTOR) + { + gridCellSize = 800; + this.var_207.name_362(gridCellSize,collisionPrimitives); + } + else + { + collisionDetector = name_354(this.physicsScene.collisionDetector); + bb = new name_334(); + size = 20000; + bb.name_361(-size,-size,-size,size,size,size); + collisionDetector.name_364(collisionPrimitives,bb); + } + } + + public function addControllerBefore(controller:name_352) : void + { + var deferredActionAddBefore:DeferredActionAddBefore = null; + if(this.running) + { + deferredActionAddBefore = DeferredActionAddBefore(this.objectPoolManager.name_165(DeferredActionAddBefore)); + this.method_135(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_352) : void + { + var deferredActionAddAfter:DeferredActionAddAfter = null; + if(this.running) + { + deferredActionAddAfter = DeferredActionAddAfter(this.objectPoolManager.name_165(DeferredActionAddAfter)); + this.method_135(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_137(controller:name_352) : 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_352) : void + { + var deferredActionRemoveBefore:DeferredActionRemoveBefore = null; + var index:int = 0; + if(this.running) + { + deferredActionRemoveBefore = DeferredActionRemoveBefore(this.objectPoolManager.name_165(DeferredActionRemoveBefore)); + this.method_135(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_352) : void + { + var deferredActionRemoveAfter:DeferredActionRemoveAfter = null; + var index:int = 0; + if(this.running) + { + deferredActionRemoveAfter = DeferredActionRemoveAfter(this.objectPoolManager.name_165(DeferredActionRemoveAfter)); + this.method_135(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_139(controller:name_352) : 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_103.time; + } + + override public function run() : void + { + var i:int = 0; + var controller:name_352 = null; + var action:name_111 = null; + var currentTime:int = int(name_103.time); + if(this.physicsScene.time < currentTime) + { + while(this.physicsScene.time < currentTime) + { + this.running = true; + name_357(this.physicsScene.collisionDetector).name_359(); + for(i = 0; i < this.var_203; i++) + { + controller = this.var_202[i]; + controller.updateBeforeSimulation(this.physicsStep); + } + this.physicsScene.update(this.physicsStep); + name_357(this.physicsScene.collisionDetector).name_359(); + for(i = 0; i < this.var_205; i++) + { + controller = this.var_200[i]; + controller.updateAfterSimulation(this.physicsStep); + } + for(this.running = false; this.var_11 != null; ) + { + action = this.var_11; + this.var_11 = this.var_11.next; + action.next = null; + action.execute(); + action.name_363(); + } + } + } + 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_135(deferredAction:DeferredAction, controller:name_352) : void + { + deferredAction.system = this; + deferredAction.controller = controller; + deferredAction.next = this.var_11; + this.var_11 = deferredAction; + } + } +} + +import package_25.name_353; +import package_25.name_355; +import package_26.name_111; + +class DeferredAction extends name_111 +{ + public var system:name_98; + + public var controller:name_352; + + public function DeferredAction(objectPool:name_355) + { + 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:name_355) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.addControllerBefore(controller); + } +} + +class DeferredActionAddAfter extends DeferredAction +{ + public function DeferredActionAddAfter(objectPool:name_355) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.addControllerAfter(controller); + } +} + +class DeferredActionRemoveBefore extends DeferredAction +{ + public function DeferredActionRemoveBefore(objectPool:name_355) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.removeControllerBefore(controller); + } +} + +class DeferredActionRemoveAfter extends DeferredAction +{ + public function DeferredActionRemoveAfter(objectPool:name_355) + { + super(objectPool); + } + + override protected function doExecute() : void + { + system.removeControllerAfter(controller); + } +} diff --git a/src/?_-aM?/?_-Yf?.as b/src/package_28/name_101.as similarity index 59% rename from src/?_-aM?/?_-Yf?.as rename to src/package_28/name_101.as index 1f46f10..a2dcc67 100644 --- a/src/?_-aM?/?_-Yf?.as +++ b/src/package_28/name_101.as @@ -1,120 +1,120 @@ -package §_-aM§ +package package_28 { - import §_-V-§.§_-C1§; - import §_-az§.§_-ps§; import flash.display.InteractiveObject; import flash.events.KeyboardEvent; import flash.events.MouseEvent; + import package_15.class_1; + import package_29.name_369; - public class §_-Yf§ extends §_-ps§ implements §_-Lm§ + public class name_101 extends class_1 implements name_112 { private static const NUM_KEYS:int = 256; private var eventSource:InteractiveObject; - private var §_-Pb§:§_-C1§; + private var var_216:name_369; - private var §_-FK§:Boolean; + private var var_230:Boolean; - private var §_-PG§:Boolean; + private var var_221:Boolean; - private var §_-Hv§:Boolean; + private var var_225:Boolean; - private var §_-8e§:int; + private var var_227:int; - private var §_-dL§:int; + private var var_226:int; private var mouseX:int; private var mouseY:int; - private var §_-Sm§:int; + private var var_229:int; - private var §_-4F§:int; + private var var_228:int; - private var §_-HC§:int; + private var var_223:int; - private var §_-Jh§:CleanupTask; + private var var_224:CleanupTask; - private var §_-CU§:Vector.>; + private var var_220:Vector.>; - private var §_-ll§:Vector.>; + private var var_217:Vector.>; - private var § use§:Vector.; + private var var_219:Vector.; - private var §_-A4§:Vector.; + private var var_218:Vector.; - private var §use §:KeybardEventQueue; + private var var_222:KeybardEventQueue; - public function §_-Yf§(priority:int, eventSource:InteractiveObject) + public function name_101(priority:int, eventSource:InteractiveObject) { super(priority); this.eventSource = eventSource; - 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(); + this.var_216 = new name_369(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(); } - public function §_-hn§(eventType:§_-X0§, listener:Function, keyCode:uint = 0) : void + public function name_262(eventType:name_201, listener:Function, keyCode:uint = 0) : void { switch(eventType) { - case §_-X0§.KEY_DOWN: + case name_201.KEY_DOWN: if(keyCode == 0) { - this.§_-3J§(this.§ use§,listener); + this.method_142(this.var_219,listener); break; } - this.§_-ft§(this.§_-CU§,keyCode,listener); + this.method_144(this.var_220,keyCode,listener); break; - case §_-X0§.KEY_UP: + case name_201.KEY_UP: if(keyCode == 0) { - this.§_-3J§(this.§_-A4§,listener); + this.method_142(this.var_218,listener); break; } - this.§_-ft§(this.§_-ll§,keyCode,listener); + this.method_144(this.var_217,keyCode,listener); break; } } - public function §_-or§(eventType:§_-X0§, listener:Function, keyCode:uint = 0) : void + public function method_151(eventType:name_201, listener:Function, keyCode:uint = 0) : void { switch(eventType) { - case §_-X0§.KEY_DOWN: + case name_201.KEY_DOWN: if(keyCode == 0) { - this.§_-JO§(this.§ use§,listener); + this.method_146(this.var_219,listener); break; } - this.§_-7G§(this.§_-CU§,keyCode,listener); + this.method_141(this.var_220,keyCode,listener); break; - case §_-X0§.KEY_UP: + case name_201.KEY_UP: if(keyCode == 0) { - this.§_-JO§(this.§_-A4§,listener); + this.method_146(this.var_218,listener); break; } - this.§_-7G§(this.§_-ll§,keyCode,listener); + this.method_141(this.var_217,keyCode,listener); break; } } - public function §_-OO§(keyCode:uint) : int + public function method_153(keyCode:uint) : int { - return this.§_-Pb§.§_-2C§(keyCode); + return this.var_216.name_368(keyCode); } - public function §_-IA§(keyCode:uint) : Boolean + public function name_272(keyCode:uint) : Boolean { - return this.§_-Pb§.§_-2C§(keyCode) == 1; + return this.var_216.name_368(keyCode) == 1; } - private function §_-ft§(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void + private function method_144(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void { var listeners:Vector. = keyTypeListeners[keyCode]; if(listeners == null) @@ -129,7 +129,7 @@ package §_-aM§ } } - private function §_-7G§(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void + private function method_141(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void { var index:int = 0; var newLength:int = 0; @@ -146,7 +146,7 @@ package §_-aM§ } } - private function §_-3J§(listeners:Vector., listener:Function) : void + private function method_142(listeners:Vector., listener:Function) : void { if(listeners.indexOf(listener) < 0) { @@ -154,7 +154,7 @@ package §_-aM§ } } - private function §_-JO§(listeners:Vector., listener:Function) : void + private function method_146(listeners:Vector., listener:Function) : void { var newLength:int = 0; var index:int = int(listeners.indexOf(listener)); @@ -166,71 +166,71 @@ package §_-aM§ } } - public function §_-an§() : Boolean + public function method_154() : Boolean { - return this.§_-PG§; + return this.var_221; } - public function §_-0T§() : Boolean + public function method_155() : Boolean { - return this.§_-Hv§; + return this.var_225; } - public function §_-ow§() : int + public function method_150() : int { - return this.§_-Sm§; + return this.var_229; } - public function §_-ac§() : int + public function method_149() : int { - return this.§_-4F§; + return this.var_228; } - public function §_-i9§() : int + public function method_152() : int { - return this.§_-HC§; + return this.var_223; } override public function start() : void { - 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.var_224 = new CleanupTask(int.MAX_VALUE,this); + var_4.addTask(this.var_224); + this.eventSource.addEventListener(KeyboardEvent.KEY_DOWN,this.method_14); + this.eventSource.addEventListener(KeyboardEvent.KEY_UP,this.method_111); 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.§_-4B§); + this.eventSource.addEventListener(MouseEvent.MOUSE_UP,this.method_145); } override public function stop() : void { - §_-Uw§.killTask(this.§_-Jh§); - this.eventSource.removeEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); - this.eventSource.removeEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); + var_4.killTask(this.var_224); + this.eventSource.removeEventListener(KeyboardEvent.KEY_DOWN,this.method_14); + this.eventSource.removeEventListener(KeyboardEvent.KEY_UP,this.method_111); 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.§_-4B§); + this.eventSource.removeEventListener(MouseEvent.MOUSE_UP,this.method_145); } override public function run() : void { - this.§_-Sm§ = this.mouseX - this.§_-8e§; - this.§_-4F§ = this.mouseY - this.§_-dL§; - this.§_-Db§(); + this.var_229 = this.mouseX - this.var_227; + this.var_228 = this.mouseY - this.var_226; + this.method_147(); } - private function §_-Db§() : void + private function method_147() : void { var distinctListeners:Vector. = null; var listeners:Vector. = null; var event:KeyboardEventItem = null; var keyCode:uint = 0; - var eventType:§_-X0§ = null; + var eventType:name_201 = null; while(true) { - event = this.§use §.poll(); + event = this.var_222.poll(); if(event == null) { break; @@ -239,27 +239,27 @@ package §_-aM§ eventType = event.type; switch(eventType) { - case §_-X0§.KEY_DOWN: - distinctListeners = this.§_-CU§[keyCode]; - listeners = this.§ use§; + case name_201.KEY_DOWN: + distinctListeners = this.var_220[keyCode]; + listeners = this.var_219; break; - case §_-X0§.KEY_UP: - distinctListeners = this.§_-ll§[keyCode]; - listeners = this.§_-A4§; + case name_201.KEY_UP: + distinctListeners = this.var_217[keyCode]; + listeners = this.var_218; } if(distinctListeners != null) { - this.§_-np§(distinctListeners,eventType,keyCode); + this.method_143(distinctListeners,eventType,keyCode); } if(listeners != null) { - this.§_-np§(listeners,eventType,keyCode); + this.method_143(listeners,eventType,keyCode); } event.destroy(); } } - private function §_-np§(listeners:Vector., eventType:§_-X0§, keyCode:uint) : void + private function method_143(listeners:Vector., eventType:name_201, keyCode:uint) : void { var func:Function = null; var numListeners:int = int(listeners.length); @@ -270,37 +270,37 @@ package §_-aM§ } } - public function §_-cM§() : void + public function method_148() : void { - this.§_-FK§ = this.§_-PG§; - this.§_-Hv§ = false; - this.§_-8e§ = this.mouseX; - this.§_-dL§ = this.mouseY; - this.§_-HC§ = 0; + this.var_230 = this.var_221; + this.var_225 = false; + this.var_227 = this.mouseX; + this.var_226 = this.mouseY; + this.var_223 = 0; } - private function §_-Ze§(event:KeyboardEvent) : void + private function method_14(event:KeyboardEvent) : void { var keyCode:uint = uint(event.keyCode); if(keyCode < NUM_KEYS) { - if(this.§_-Pb§.§_-2C§(keyCode) == 0) + if(this.var_216.name_368(keyCode) == 0) { - this.§_-Pb§.§_-Kg§(keyCode,true); - this.§use §.add(keyCode,§_-X0§.KEY_DOWN); + this.var_216.name_370(keyCode,true); + this.var_222.add(keyCode,name_201.KEY_DOWN); } } } - private function §_-Uf§(event:KeyboardEvent) : void + private function method_111(event:KeyboardEvent) : void { var keyCode:uint = uint(event.keyCode); if(keyCode < NUM_KEYS) { - if(this.§_-Pb§.§_-2C§(keyCode) == 1) + if(this.var_216.name_368(keyCode) == 1) { - this.§_-Pb§.§_-Kg§(keyCode,false); - this.§use §.add(keyCode,§_-X0§.KEY_UP); + this.var_216.name_370(keyCode,false); + this.var_222.add(keyCode,name_201.KEY_UP); } } } @@ -313,29 +313,29 @@ package §_-aM§ private function onMouseWheel(event:MouseEvent) : void { - this.§_-HC§ = event.delta; + this.var_223 = event.delta; } private function onMouseDown(event:MouseEvent) : void { - this.§_-PG§ = true; - this.§_-Hv§ = true; + this.var_221 = true; + this.var_225 = true; } - private function §_-4B§(event:MouseEvent) : void + private function method_145(event:MouseEvent) : void { - this.§_-PG§ = false; + this.var_221 = false; } } } -import §_-az§.§_-ps§; +import package_15.class_1; -class CleanupTask extends §_-ps§ +class CleanupTask extends class_1 { - private var inputSystem:§_-Yf§; + private var inputSystem:name_101; - public function CleanupTask(priority:int, inputSystem:§_-Yf§) + public function CleanupTask(priority:int, inputSystem:name_101) { super(priority); this.inputSystem = inputSystem; @@ -343,7 +343,7 @@ class CleanupTask extends §_-ps§ override public function run() : void { - this.inputSystem.§_-cM§(); + this.inputSystem.method_148(); } } @@ -351,7 +351,7 @@ class KeyboardEventItem { private static var pool:KeyboardEventItem; - public var type:§_-X0§; + public var type:name_201; public var keyCode:uint; @@ -392,7 +392,7 @@ class KeybardEventQueue super(); } - public function add(keyCode:uint, type:§_-X0§) : void + public function add(keyCode:uint, type:name_201) : void { var keyItem:KeyboardEventItem = KeyboardEventItem.create(); keyItem.keyCode = keyCode; diff --git a/src/?_-Vh?/?_-18?.as b/src/package_3/name_475.as similarity index 52% rename from src/?_-Vh?/?_-18?.as rename to src/package_3/name_475.as index 9aca974..950d055 100644 --- a/src/?_-Vh?/?_-18?.as +++ b/src/package_3/name_475.as @@ -1,19 +1,5 @@ -package §_-Vh§ +package package_3 { - 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; @@ -22,12 +8,26 @@ package §_-Vh§ import flash.display3D.VertexBuffer3D; import flash.utils.Dictionary; import flash.utils.getDefinitionByName; + import package_19.name_134; + import package_21.name_136; + import package_21.name_84; + import package_21.name_86; + import package_33.name_117; + import package_33.name_121; + import package_33.name_123; + import package_33.name_126; + import package_33.name_129; + import package_33.name_130; + import package_33.name_135; + import package_34.name_116; + import package_34.name_119; + import package_34.name_128; use namespace alternativa3d; - public class §_-18§ extends §_-pZ§ + public class name_475 extends class_5 { - alternativa3d static var fogTexture:§_-pi§; + alternativa3d static var fogTexture:name_86; private static var _programs:Dictionary = new Dictionary(); @@ -51,51 +51,51 @@ package §_-Vh§ alternativa3d static var fogColorB:Number = 200 / 255; - alternativa3d static const _passReflectionProcedure:§_-Xk§ = new §_-Xk§(["#v1=vNormal","#v0=vPosition","mov v0, i0","mov v1, i1"],"passReflectionProcedure"); + alternativa3d static const _passReflectionProcedure:name_116 = new name_116(["#v1=vNormal","#v0=vPosition","mov v0, i0","mov v1, i1"],"passReflectionProcedure"); - 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 _applyReflectionProcedure:name_116 = new name_116(["#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:§_-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 _applyReflectionNormalMapProcedure:name_116 = new name_116(["#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:§_-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 _blendReflection:name_116 = new name_116(["#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:§_-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"); + alternativa3d static const _blendReflectionMap:name_116 = new name_116(["#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:§_-Xk§ = §_-eg§(true); + private static const _passTBNRightProcedure:name_116 = method_328(true); - private static const _passTBNLeftProcedure:§_-Xk§ = §_-eg§(false); + private static const _passTBNLeftProcedure:name_116 = method_328(false); - 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 _getNormalTangentProcedure:name_116 = new name_116(["#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:§_-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 _getNormalObjectProcedure:name_116 = new name_116(["#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:§_-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 passSimpleFogConstProcedure:name_116 = new name_116(["#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 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:name_116 = new name_116(["#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:§_-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 postPassAdvancedFogConstProcedure:name_116 = new name_116(["#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","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:name_116 = new name_116(["#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:§_-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 _applyLightMapProcedure:name_116 = new name_116(["#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:§_-Xk§ = new §_-Xk§(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUVProcedure"); + private static const _passLightMapUVProcedure:name_116 = new name_116(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUVProcedure"); - private var §_-NH§:int = 0; + private var var_53:int = 0; - public var normalMap:§_-pi§; + public var normalMap:name_86; - public var environmentMap:§_-pi§; + public var environmentMap:name_86; public var reflection:Number = 1; - public var reflectionMap:§_-pi§; + public var reflectionMap:name_86; - public var lightMap:§_-pi§; + public var lightMap:name_86; public var lightMapChannel:uint = 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) + public function name_475(diffuseMap:name_86 = null, environmentMap:name_86 = null, normalMap:name_86 = null, reflectionMap:name_86 = null, lightMap:name_86 = null, opacityMap:name_86 = null, alpha:Number = 1) { super(diffuseMap,opacityMap,alpha); this.environmentMap = environmentMap; @@ -104,186 +104,186 @@ package §_-Vh§ this.lightMap = lightMap; } - private static function §_-eg§(right:Boolean) : §_-Xk§ + private static function method_328(right:Boolean) : name_116 { var crsInSpace:String = right ? "crs t1.xyz, i0, i1" : "crs t1.xyz, i1, i0"; - 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"); + return new name_116(["#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 §_-Q8§() : int + public function get method_329() : int { - return this.§_-NH§; + return this.var_53; } - public function set §_-Q8§(value:int) : void + public function set method_329(value:int) : void { - if(value != §_-12§.TANGENT_RIGHT_HANDED && value != §_-12§.TANGENT_LEFT_HANDED && value != §_-12§.OBJECT) + if(value != name_566.TANGENT_RIGHT_HANDED && value != name_566.TANGENT_LEFT_HANDED && value != name_566.OBJECT) { throw new ArgumentError("Value must be a constant from the NormalMapSpace class"); } - this.§_-NH§ = value; + this.var_53 = value; } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.environmentMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.environmentMap)) as Class,resourceType))) + if(this.environmentMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.environmentMap)) as Class,resourceType))) { resources[this.environmentMap] = true; } - if(this.normalMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) + if(this.normalMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType))) { resources[this.normalMap] = true; } - if(this.reflectionMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.reflectionMap)) as Class,resourceType))) + if(this.reflectionMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.reflectionMap)) as Class,resourceType))) { resources[this.reflectionMap] = true; } - if(this.lightMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) + if(this.lightMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) { resources[this.lightMap] = true; } } - private function final(targetObject:§_-OX§) : EnvironmentMaterialShaderProgram + private function method_22(targetObject:name_130) : EnvironmentMaterialShaderProgram { - 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 procedure:name_116 = null; + var outputProcedure:name_116 = null; + var nrmProcedure:name_116 = null; + var vertexLinker:name_119 = new name_119(Context3DProgramType.VERTEX); + var fragmentLinker:name_119 = new name_119(Context3DProgramType.FRAGMENT); var positionVar:String = "aPosition"; var normalVar:String = "aNormal"; var tangentVar:String = "aTangent"; - vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); - vertexLinker.§_-LU§(normalVar,§_-5§.ATTRIBUTE); + vertexLinker.name_125(positionVar,name_128.ATTRIBUTE); + vertexLinker.name_125(normalVar,name_128.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::_-di(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::name_131(targetObject.alternativa3d::transformProcedure,vertexLinker); } if(targetObject.alternativa3d::deltaTransformProcedure != null) { - vertexLinker.§_-LU§("tTransformedNormal"); - procedure = targetObject.alternativa3d::deltaTransformProcedure.§_-mY§(); - vertexLinker.§_-on§(procedure); - vertexLinker.§_-FS§(procedure,normalVar); - vertexLinker.§_-qd§(procedure,"tTransformedNormal"); + vertexLinker.name_125("tTransformedNormal"); + procedure = targetObject.alternativa3d::deltaTransformProcedure.name_569(); + vertexLinker.name_120(procedure); + vertexLinker.name_122(procedure,normalVar); + vertexLinker.name_127(procedure,"tTransformedNormal"); normalVar = "tTransformedNormal"; - if((this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) && this.normalMap != null) + if((this.var_53 == name_566.TANGENT_RIGHT_HANDED || this.var_53 == name_566.TANGENT_LEFT_HANDED) && this.normalMap != null) { - vertexLinker.§_-LU§(tangentVar,§_-5§.ATTRIBUTE); - vertexLinker.§_-LU§("tTransformedTangent"); - procedure = targetObject.alternativa3d::deltaTransformProcedure.§_-mY§(); - vertexLinker.§_-on§(procedure); - vertexLinker.§_-FS§(procedure,tangentVar); - vertexLinker.§_-qd§(procedure,"tTransformedTangent"); + vertexLinker.name_125(tangentVar,name_128.ATTRIBUTE); + vertexLinker.name_125("tTransformedTangent"); + procedure = targetObject.alternativa3d::deltaTransformProcedure.name_569(); + vertexLinker.name_120(procedure); + vertexLinker.name_122(procedure,tangentVar); + vertexLinker.name_127(procedure,"tTransformedTangent"); tangentVar = "tTransformedTangent"; } } - else if((this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) && this.normalMap != null) + else if((this.var_53 == name_566.TANGENT_RIGHT_HANDED || this.var_53 == name_566.TANGENT_LEFT_HANDED) && this.normalMap != null) { - vertexLinker.§_-LU§(tangentVar,§_-5§.ATTRIBUTE); + vertexLinker.name_125(tangentVar,name_128.ATTRIBUTE); } - 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); + vertexLinker.name_120(_passLightMapUVProcedure); + vertexLinker.name_120(alternativa3d::_passReflectionProcedure); + vertexLinker.name_122(alternativa3d::_passReflectionProcedure,positionVar,normalVar); + vertexLinker.name_120(alternativa3d::_projectProcedure); + vertexLinker.name_122(alternativa3d::_projectProcedure,positionVar); + vertexLinker.name_120(alternativa3d::_passUVProcedure); if(this.normalMap != null) { - fragmentLinker.§_-LU§("tNormal"); - if(this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) + fragmentLinker.name_125("tNormal"); + if(this.var_53 == name_566.TANGENT_RIGHT_HANDED || this.var_53 == name_566.TANGENT_LEFT_HANDED) { - nrmProcedure = this.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; - vertexLinker.§_-on§(nrmProcedure); - vertexLinker.§_-FS§(nrmProcedure,tangentVar,normalVar); - fragmentLinker.§_-on§(_getNormalTangentProcedure); - fragmentLinker.§_-qd§(_getNormalTangentProcedure,"tNormal"); + nrmProcedure = this.var_53 == name_566.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; + vertexLinker.name_120(nrmProcedure); + vertexLinker.name_122(nrmProcedure,tangentVar,normalVar); + fragmentLinker.name_120(_getNormalTangentProcedure); + fragmentLinker.name_127(_getNormalTangentProcedure,"tNormal"); } else { - fragmentLinker.§_-on§(_getNormalObjectProcedure); - fragmentLinker.§_-qd§(_getNormalObjectProcedure,"tNormal"); + fragmentLinker.name_120(_getNormalObjectProcedure); + fragmentLinker.name_127(_getNormalObjectProcedure,"tNormal"); } } - vertexLinker.§_-XI§(); - fragmentLinker.§_-LU§("tColor"); - if(§_-L4§) + vertexLinker.name_568(); + fragmentLinker.name_125("tColor"); + if(var_21) { - fragmentLinker.§_-on§(alternativa3d::_samplerSetProcedureDiffuseAlpha); - fragmentLinker.§_-qd§(alternativa3d::_samplerSetProcedureDiffuseAlpha,"tColor"); + fragmentLinker.name_120(alternativa3d::_samplerSetProcedureDiffuseAlpha); + fragmentLinker.name_127(alternativa3d::_samplerSetProcedureDiffuseAlpha,"tColor"); } else if(opacityMap != null) { - fragmentLinker.§_-on§(alternativa3d::_samplerSetProcedureOpacity); - fragmentLinker.§_-qd§(alternativa3d::_samplerSetProcedureOpacity,"tColor"); + fragmentLinker.name_120(alternativa3d::_samplerSetProcedureOpacity); + fragmentLinker.name_127(alternativa3d::_samplerSetProcedureOpacity,"tColor"); } else { - fragmentLinker.§_-on§(alternativa3d::_samplerSetProcedure); - fragmentLinker.§_-qd§(alternativa3d::_samplerSetProcedure,"tColor"); + fragmentLinker.name_120(alternativa3d::_samplerSetProcedure); + fragmentLinker.name_127(alternativa3d::_samplerSetProcedure,"tColor"); } - fragmentLinker.§_-LU§("tReflection"); + fragmentLinker.name_125("tReflection"); if(this.normalMap != null) { - fragmentLinker.§_-on§(alternativa3d::_applyReflectionNormalMapProcedure); - fragmentLinker.§_-FS§(alternativa3d::_applyReflectionNormalMapProcedure,"tNormal"); - fragmentLinker.§_-qd§(alternativa3d::_applyReflectionNormalMapProcedure,"tReflection"); + fragmentLinker.name_120(alternativa3d::_applyReflectionNormalMapProcedure); + fragmentLinker.name_122(alternativa3d::_applyReflectionNormalMapProcedure,"tNormal"); + fragmentLinker.name_127(alternativa3d::_applyReflectionNormalMapProcedure,"tReflection"); } else { - fragmentLinker.§_-on§(alternativa3d::_applyReflectionProcedure); - fragmentLinker.§_-qd§(alternativa3d::_applyReflectionProcedure,"tReflection"); + fragmentLinker.name_120(alternativa3d::_applyReflectionProcedure); + fragmentLinker.name_127(alternativa3d::_applyReflectionProcedure,"tReflection"); } - fragmentLinker.§_-on§(_applyLightMapProcedure); - fragmentLinker.§_-FS§(_applyLightMapProcedure,"tColor"); - fragmentLinker.§_-qd§(_applyLightMapProcedure,"tColor"); + fragmentLinker.name_120(_applyLightMapProcedure); + fragmentLinker.name_122(_applyLightMapProcedure,"tColor"); + fragmentLinker.name_127(_applyLightMapProcedure,"tColor"); if(this.reflectionMap != null) { - fragmentLinker.§_-on§(alternativa3d::_blendReflectionMap); - fragmentLinker.§_-FS§(alternativa3d::_blendReflectionMap,"tColor","tReflection"); + fragmentLinker.name_120(alternativa3d::_blendReflectionMap); + fragmentLinker.name_122(alternativa3d::_blendReflectionMap,"tColor","tReflection"); outputProcedure = alternativa3d::_blendReflectionMap; } else { - fragmentLinker.§_-on§(alternativa3d::_blendReflection); - fragmentLinker.§_-FS§(alternativa3d::_blendReflection,"tColor","tReflection"); + fragmentLinker.name_120(alternativa3d::_blendReflection); + fragmentLinker.name_122(alternativa3d::_blendReflection,"tColor","tReflection"); outputProcedure = alternativa3d::_blendReflection; } if(alternativa3d::fogMode == alternativa3d::SIMPLE || alternativa3d::fogMode == alternativa3d::ADVANCED) { - fragmentLinker.§_-LU§("outColor"); - fragmentLinker.§_-qd§(outputProcedure,"outColor"); + fragmentLinker.name_125("outColor"); + fragmentLinker.name_127(outputProcedure,"outColor"); } if(alternativa3d::fogMode == alternativa3d::SIMPLE) { - vertexLinker.§_-on§(passSimpleFogConstProcedure); - vertexLinker.§_-FS§(passSimpleFogConstProcedure,positionVar); - fragmentLinker.§_-on§(outputWithSimpleFogProcedure); - fragmentLinker.§_-FS§(outputWithSimpleFogProcedure,"outColor"); + vertexLinker.name_120(passSimpleFogConstProcedure); + vertexLinker.name_122(passSimpleFogConstProcedure,positionVar); + fragmentLinker.name_120(outputWithSimpleFogProcedure); + fragmentLinker.name_122(outputWithSimpleFogProcedure,"outColor"); } else if(alternativa3d::fogMode == alternativa3d::ADVANCED) { - vertexLinker.§_-LU§("tProjected"); - vertexLinker.§_-qd§(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.§_-on§(postPassAdvancedFogConstProcedure); - vertexLinker.§_-FS§(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); - fragmentLinker.§_-on§(outputWithAdvancedFogProcedure); - fragmentLinker.§_-FS§(outputWithAdvancedFogProcedure,"outColor"); + vertexLinker.name_125("tProjected"); + vertexLinker.name_127(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.name_120(postPassAdvancedFogConstProcedure); + vertexLinker.name_122(postPassAdvancedFogConstProcedure,positionVar,"tProjected"); + fragmentLinker.name_120(outputWithAdvancedFogProcedure); + fragmentLinker.name_122(outputWithAdvancedFogProcedure,"outColor"); } - fragmentLinker.§_-XI§(); - fragmentLinker.§_-NA§(vertexLinker); + fragmentLinker.name_568(); + fragmentLinker.name_140(vertexLinker); return new EnvironmentMaterialShaderProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:§_-be§, surface:§_-a2§, geometry:§_-gA§, lights:Vector.<§_-Jo§>, lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:name_135, surface:name_134, geometry:name_136, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { - var program:§_-RB§ = null; + var program:class_6 = null; var i:int = 0; - var lm:§_-jw§ = null; + var lm:name_129 = null; var dist:Number = NaN; - var cLocal:§_-jw§ = null; + var cLocal:name_129 = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -300,26 +300,26 @@ package §_-Vh§ { return; } - if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!var_21 && opacityMap != null && opacityMap.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]); - var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.NORMAL); - var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TANGENT4); + var object:name_130 = surface.alternativa3d::object; + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.TEXCOORDS[0]); + var normalsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.NORMAL); + var tangentsBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.TANGENT4); if(positionBuffer == null || uvBuffer == null) { return; } - var key:String = alternativa3d::fogMode.toString() + this.§_-NH§.toString() + (this.normalMap != null ? "N" : "n") + (opacityMap != null ? "O" : "o") + (!!§_-L4§ ? "D" : "d"); + var key:String = alternativa3d::fogMode.toString() + this.var_53.toString() + (this.normalMap != null ? "N" : "n") + (opacityMap != null ? "O" : "o") + (!!var_21 ? "D" : "d"); var programs:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(programs == null) { programs = new Dictionary(false); _programs[object.alternativa3d::transformProcedure] = programs; - program = this.final(object); + program = this.method_22(object); program.upload(camera.alternativa3d::context3D); programs[key] = program; } @@ -328,28 +328,28 @@ package §_-Vh§ program = programs[key]; if(program == null) { - program = this.final(object); + program = this.method_22(object); program.upload(camera.alternativa3d::context3D); programs[key] = program; } } - var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + var drawUnit:name_123 = camera.alternativa3d::renderer.alternativa3d::name_138(object,program.program,geometry.alternativa3d::name_78,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[§_-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]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[0]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV1"),uvBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[this.lightMapChannel]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[this.lightMapChannel]]); + drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[name_117.NORMAL],name_117.alternativa3d::FORMATS[name_117.NORMAL]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - 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); + drawUnit.alternativa3d::name_141(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); + var camTransform:name_129 = object.alternativa3d::cameraToLocalTransform; + drawUnit.alternativa3d::name_124(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.§_-NH§ == §_-12§.TANGENT_RIGHT_HANDED || this.§_-NH§ == §_-12§.TANGENT_LEFT_HANDED) + if(this.var_53 == name_566.TANGENT_RIGHT_HANDED || this.var_53 == name_566.TANGENT_LEFT_HANDED) { - drawUnit.alternativa3d::setVertexBufferAt(envProgram.aTangent,tangentsBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TANGENT4],§_-d6§.alternativa3d::FORMATS[§_-d6§.TANGENT4]); + drawUnit.alternativa3d::setVertexBufferAt(envProgram.aTangent,tangentsBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TANGENT4],name_117.alternativa3d::FORMATS[name_117.TANGENT4]); } } if(this.reflectionMap != null) @@ -358,11 +358,11 @@ package §_-Vh§ } drawUnit.alternativa3d::setTextureAt(envProgram.sTexture,diffuseMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(envProgram.sCubeMap,this.environmentMap.alternativa3d::_texture); - 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); + var cameraToLocalTransform:name_129 = object.alternativa3d::cameraToLocalTransform; + drawUnit.alternativa3d::name_124(envProgram.cCamera,cameraToLocalTransform.d,cameraToLocalTransform.h,cameraToLocalTransform.l); + drawUnit.alternativa3d::name_124(envProgram.cAlpha,0,1 - this.reflection,this.reflection,alpha); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture); - if(!§_-L4§ && opacityMap != null) + if(!var_21 && opacityMap != null) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture); } @@ -370,12 +370,12 @@ package §_-Vh§ { lm = object.alternativa3d::localToCameraTransform; dist = alternativa3d::fogFar - alternativa3d::fogNear; - 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); + drawUnit.alternativa3d::name_143(program.vertexShader.getVariableIndex("cFogSpace"),lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - alternativa3d::fogNear) / dist); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("cFogRange"),alternativa3d::fogMaxDensity,1,0,1 - alternativa3d::fogMaxDensity); } if(alternativa3d::fogMode == alternativa3d::SIMPLE) { - drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("cFogColor"),alternativa3d::fogColorR,alternativa3d::fogColorG,alternativa3d::fogColorB); } if(alternativa3d::fogMode == alternativa3d::ADVANCED) { @@ -386,7 +386,7 @@ package §_-Vh§ { bmd.setPixel(i,0,i / 32 * 255 << 16); } - alternativa3d::fogTexture = new §_-b1§(bmd); + alternativa3d::fogTexture = new name_84(bmd); alternativa3d::fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -409,26 +409,26 @@ package §_-Vh§ rightY /= lens; uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2; uRight = angle / Math.PI / 2; - drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); + drawUnit.alternativa3d::name_124(program.fragmentShader.getVariableIndex("cFogConsts"),0.5 * uScale,0.5 - uRight,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sFogTexture"),alternativa3d::fogTexture.alternativa3d::_texture); } - if(Boolean(§_-L4§) || opacityMap != null || alpha < 1) + if(Boolean(var_21) || opacityMap != null || alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; - camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.TRANSPARENT_SORT)); + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(name_126.TRANSPARENT_SORT)); } else { - camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.OPAQUE)); + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(name_126.OPAQUE)); } } } } -import §_-M8§.§_-hR§; +import package_34.name_119; -class EnvironmentMaterialShaderProgram extends §_-RB§ +class EnvironmentMaterialShaderProgram extends class_6 { public var aTangent:int = -1; @@ -454,21 +454,21 @@ class EnvironmentMaterialShaderProgram extends §_-RB§ public var sReflection:int = -1; - public function EnvironmentMaterialShaderProgram(vertexShader:§_-hR§, fragmentShader:§_-hR§) + public function EnvironmentMaterialShaderProgram(vertexShader:name_119, fragmentShader:name_119) { super(vertexShader,fragmentShader); this.aPosition = vertexShader.getVariableIndex("aPosition"); this.aNormal = vertexShader.getVariableIndex("aNormal"); this.aUV = vertexShader.getVariableIndex("aUV"); - if(fragmentShader.§_-oj§("sBump")) + if(fragmentShader.name_567("sBump")) { this.sBump = fragmentShader.getVariableIndex("sBump"); } - if(vertexShader.§_-oj§("aTangent")) + if(vertexShader.name_567("aTangent")) { this.aTangent = vertexShader.getVariableIndex("aTangent"); } - if(fragmentShader.§_-oj§("sReflection")) + if(fragmentShader.name_567("sReflection")) { this.sReflection = fragmentShader.getVariableIndex("sReflection"); } @@ -477,7 +477,7 @@ class EnvironmentMaterialShaderProgram extends §_-RB§ this.sCubeMap = fragmentShader.getVariableIndex("sCubeMap"); this.cCamera = fragmentShader.getVariableIndex("cCamera"); this.cAlpha = fragmentShader.getVariableIndex("cAlpha"); - if(fragmentShader.§_-oj§("sOpacity")) + if(fragmentShader.name_567("sOpacity")) { this.sOpacity = fragmentShader.getVariableIndex("sOpacity"); } diff --git a/src/?_-8D?/?_-JI?.as b/src/package_33/class_14.as similarity index 75% rename from src/?_-8D?/?_-JI?.as rename to src/package_33/class_14.as index ba9cbbc..26c2249 100644 --- a/src/?_-8D?/?_-JI?.as +++ b/src/package_33/class_14.as @@ -1,13 +1,5 @@ -package §_-8D§ +package package_33 { - 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; @@ -38,20 +30,28 @@ package §_-8D§ import flash.ui.Mouse; import flash.utils.Dictionary; import flash.utils.setTimeout; + import package_19.name_134; + import package_21.name_136; + import package_3.class_6; + import package_34.name_116; + import package_34.name_119; + import package_34.name_128; + import package_71.MouseEvent3D; + import package_9.name_319; use namespace alternativa3d; - public class §_-JI§ extends Sprite + public class class_14 extends Sprite { - private static var drawDistanceFragment:§_-hR§; + private static var drawDistanceFragment:name_119; - private static var drawDistanceVertexProcedure:§_-Xk§; + private static var drawDistanceVertexProcedure:name_116; private static const renderEvent:MouseEvent = new MouseEvent("render"); private static const drawDistancePrograms:Dictionary = new Dictionary(); - private static const drawUnit:§_-QF§ = new §_-QF§(); + private static const drawUnit:name_123 = new name_123(); private static const pixels:Dictionary = new Dictionary(); @@ -67,11 +67,11 @@ package §_-8D§ private static const localCoords:Vector3D = new Vector3D(); - private static const branch:Vector.<§_-OX§> = new Vector.<§_-OX§>(); + private static const branch:Vector. = new Vector.(); - private static const overedBranch:Vector.<§_-OX§> = new Vector.<§_-OX§>(); + private static const overedBranch:Vector. = new Vector.(); - private static const changedBranch:Vector.<§_-OX§> = new Vector.<§_-OX§>(); + private static const changedBranch:Vector. = new Vector.(); private static const functions:Vector. = new Vector.(); @@ -97,57 +97,57 @@ package §_-8D§ public var antiAlias:int; - alternativa3d var §_-qj§:int; + alternativa3d var var_110:int; alternativa3d var _height:int; - alternativa3d var §_-gJ§:BitmapData = null; + alternativa3d var var_114:BitmapData = null; - private var §_-j6§:Vector.; + private var var_117:Vector.; private var indices:Vector.; - private var §_-Zv§:int = 0; + private var var_113:int = 0; - private var surfaces:Vector.<§_-a2§>; + private var surfaces:Vector.; - private var geometries:Vector.<§_-gA§>; + private var geometries:Vector.; - private var §_-2L§:Vector.<§_-Xk§>; + private var var_128:Vector.; - private var §_-8b§:int = 0; + private var var_115:int = 0; - alternativa3d var §_-Cr§:Vector.; + alternativa3d var var_127:Vector.; - alternativa3d var §_-g4§:Vector.; + alternativa3d var var_133:Vector.; - private var §_-Ql§:Vector.; + private var var_124:Vector.; - private var §extends§:Vector.>; + private var var_121:Vector.>; - private var §_-9L§:Vector.>; + private var var_120:Vector.>; - private var §_-4N§:Vector.; + private var var_130:Vector.; - private var §_-ff§:Vector.; + private var var_132:Vector.; alternativa3d var raysLength:int = 0; - private var §_-Ki§:MouseEvent; + private var var_119:MouseEvent; - private var target:§_-OX§; + private var target:name_130; - private var targetSurface:§_-a2§; + private var targetSurface:name_134; - private var §_-Cu§:Number; + private var var_122:Number; - private var §_-B4§:§_-OX§; + private var var_123:name_130; - private var §_-c3§:§_-OX§; + private var var_129:name_130; - private var §_-Lx§:§_-OX§; + private var var_116:name_130; - private var §_-H7§:§_-a2§; + private var var_131:name_134; private var altKey:Boolean; @@ -159,34 +159,34 @@ package §_-8D§ private var area:Sprite; - private var §_-N2§:Logo; + private var var_112:Logo; - private var §_-OE§:Bitmap; + private var var_118:Bitmap; - private var §_-bx§:String = "BR"; + private var var_111:String = "BR"; - private var §_-hq§:Number = 0; + private var var_126:Number = 0; - private var §_-Xc§:Number = 0; + private var var_125:Number = 0; - private var §_-IE§:Boolean; + private var var_134:Boolean; - public function §_-JI§(width:int, height:int, renderToBitmap:Boolean = false, backgroundColor:uint = 0, backgroundAlpha:Number = 1, antiAlias:int = 0) + public function class_14(width:int, height:int, renderToBitmap:Boolean = false, backgroundColor:uint = 0, backgroundAlpha:Number = 1, antiAlias:int = 0) { var item:ContextMenuItem; var menu:ContextMenu; - this.§_-j6§ = new Vector.(); + this.var_117 = new Vector.(); this.indices = 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.(); + 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.(); super(); if(width < 50) { @@ -196,9 +196,9 @@ package §_-8D§ { height = 50; } - this.alternativa3d::_-qj = width; + this.alternativa3d::var_110 = width; this.alternativa3d::_height = height; - this.§_-IE§ = renderToBitmap; + this.var_134 = renderToBitmap; this.backgroundColor = backgroundColor; this.backgroundAlpha = backgroundAlpha; this.antiAlias = antiAlias; @@ -209,7 +209,7 @@ package §_-8D§ useHandCursor = false; tabEnabled = false; tabChildren = false; - item = new ContextMenuItem("Powered by Alternativa3D " + §_-fn§.version); + item = new ContextMenuItem("Powered by Alternativa3D " + name_319.version); item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,function(e:ContextMenuEvent):void { try @@ -226,7 +226,7 @@ package §_-8D§ this.container = new Bitmap(); if(renderToBitmap) { - this.§_-Eg§(); + this.method_110(); } super.addChild(this.container); this.area = new Sprite(); @@ -234,104 +234,104 @@ package §_-8D§ this.area.graphics.drawRect(0,0,100,100); this.area.mouseEnabled = false; this.area.visible = false; - this.area.width = this.alternativa3d::_-qj; + this.area.width = this.alternativa3d::var_110; this.area.height = this.alternativa3d::_height; hitArea = this.area; super.addChild(hitArea); - this.§_-GU§(); + this.method_120(); if(drawDistanceFragment == null) { - 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")); + drawDistanceVertexProcedure = name_116.name_144(["#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_119(Context3DProgramType.FRAGMENT); + drawDistanceFragment.name_120(new name_116(["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.§_-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§); + addEventListener(MouseEvent.MOUSE_DOWN,this.method_107); + addEventListener(MouseEvent.CLICK,this.method_107); + addEventListener(MouseEvent.DOUBLE_CLICK,this.method_107); + addEventListener(MouseEvent.MOUSE_MOVE,this.method_107); + addEventListener(MouseEvent.MOUSE_OVER,this.method_107); + addEventListener(MouseEvent.MOUSE_WHEEL,this.method_107); + addEventListener(MouseEvent.MOUSE_OUT,this.method_116); + addEventListener(Event.ADDED_TO_STAGE,this.method_26); + addEventListener(Event.REMOVED_FROM_STAGE,this.method_25); } - private function §_-2B§(mouseEvent:MouseEvent) : void + private function method_107(mouseEvent:MouseEvent) : void { - var prev:int = this.§_-Zv§ - 1; - if(this.§_-Zv§ > 0 && mouseEvent.type == "mouseMove" && (this.§_-j6§[prev] as MouseEvent).type == "mouseMove") + var prev:int = this.var_113 - 1; + if(this.var_113 > 0 && mouseEvent.type == "mouseMove" && (this.var_117[prev] as MouseEvent).type == "mouseMove") { - this.§_-j6§[prev] = mouseEvent; + this.var_117[prev] = mouseEvent; } else { - this.§_-j6§[this.§_-Zv§] = mouseEvent; - ++this.§_-Zv§; + this.var_117[this.var_113] = mouseEvent; + ++this.var_113; } - this.§_-Ki§ = mouseEvent; + this.var_119 = mouseEvent; } - private function §_-CS§(mouseEvent:MouseEvent) : void + private function method_116(mouseEvent:MouseEvent) : void { - this.§_-j6§[this.§_-Zv§] = mouseEvent; - ++this.§_-Zv§; - this.§_-Ki§ = null; + this.var_117[this.var_113] = mouseEvent; + ++this.var_113; + this.var_119 = null; } - private function §_-Eg§() : void + private function method_110() : void { - this.alternativa3d::_-gJ = new BitmapData(this.alternativa3d::_-qj,this.alternativa3d::_height,this.backgroundAlpha < 1,this.backgroundColor); - this.container.bitmapData = this.alternativa3d::_-gJ; + 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.container.smoothing = true; } - private function §_-Id§(e:Event) : void + private function method_26(e:Event) : void { - stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); - stage.addEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); + stage.addEventListener(KeyboardEvent.KEY_DOWN,this.method_14); + stage.addEventListener(KeyboardEvent.KEY_UP,this.method_111); } - private function §_-99§(e:Event) : void + private function method_25(e:Event) : void { - stage.removeEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§); - stage.removeEventListener(KeyboardEvent.KEY_UP,this.§_-Uf§); + stage.removeEventListener(KeyboardEvent.KEY_DOWN,this.method_14); + stage.removeEventListener(KeyboardEvent.KEY_UP,this.method_111); this.altKey = false; this.ctrlKey = false; this.shiftKey = false; } - private function §_-Ze§(keyboardEvent:KeyboardEvent) : void + private function method_14(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.§_-OE§ == null) + if(this.ctrlKey && this.shiftKey && keyboardEvent.keyCode == Keyboard.F1 && this.var_118 == null) { - 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); + 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_119,2048); } } - private function §_-Uf§(keyboardEvent:KeyboardEvent) : void + private function method_111(keyboardEvent:KeyboardEvent) : void { this.altKey = keyboardEvent.altKey; this.ctrlKey = keyboardEvent.ctrlKey; this.shiftKey = keyboardEvent.shiftKey; } - private function §_-4j§() : void + private function method_119() : void { - if(this.§_-OE§ != null) + if(this.var_118 != null) { - super.removeChild(this.§_-OE§); - this.§_-OE§ = null; + super.removeChild(this.var_118); + this.var_118 = null; } } - alternativa3d function calculateRays(camera:§_-be§) : void + alternativa3d function calculateRays(camera:name_135) : void { var i:int = 0; var mouseEvent:MouseEvent = null; @@ -339,12 +339,12 @@ package §_-8D§ var origin:Vector3D = null; var direction:Vector3D = null; var coefficient:Point = null; - if(this.§_-Ki§ != null) + if(this.var_119 != null) { mouseMoved = false; - for(i = 0; i < this.§_-Zv§; ) + for(i = 0; i < this.var_113; ) { - mouseEvent = this.§_-j6§[i]; + mouseEvent = this.var_117[i]; if(mouseEvent.type == "mouseMove" || mouseEvent.type == "mouseOut") { mouseMoved = true; @@ -354,55 +354,55 @@ package §_-8D§ } if(!mouseMoved) { - renderEvent.localX = this.§_-Ki§.localX; - renderEvent.localY = this.§_-Ki§.localY; + renderEvent.localX = this.var_119.localX; + renderEvent.localY = this.var_119.localY; renderEvent.ctrlKey = this.ctrlKey; renderEvent.altKey = this.altKey; renderEvent.shiftKey = this.shiftKey; - renderEvent.buttonDown = this.§_-Ki§.buttonDown; + renderEvent.buttonDown = this.var_119.buttonDown; renderEvent.delta = 0; - this.§_-j6§[this.§_-Zv§] = renderEvent; - ++this.§_-Zv§; + this.var_117[this.var_113] = renderEvent; + ++this.var_113; } } var mouseX:Number = 1e+22; var mouseY:Number = 1e+22; - for(i = 0; i < this.§_-Zv§; i++) + for(i = 0; i < this.var_113; i++) { - mouseEvent = this.§_-j6§[i]; + mouseEvent = this.var_117[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::_-Cr.length) + if(this.alternativa3d::raysLength < this.alternativa3d::var_127.length) { - origin = this.alternativa3d::_-Cr[this.alternativa3d::raysLength]; - direction = this.alternativa3d::_-g4[this.alternativa3d::raysLength]; - coefficient = this.§_-Ql§[this.alternativa3d::raysLength]; + origin = this.alternativa3d::var_127[this.alternativa3d::raysLength]; + direction = this.alternativa3d::var_133[this.alternativa3d::raysLength]; + coefficient = this.var_124[this.alternativa3d::raysLength]; } else { origin = new Vector3D(); direction = new Vector3D(); coefficient = new Point(); - 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.(); + 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.(); } if(!camera.orthographic) { - direction.x = mouseX - this.alternativa3d::_-qj * 0.5; + direction.x = mouseX - this.alternativa3d::var_110 * 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::_-qj; + coefficient.x = mouseX * 2 / this.alternativa3d::var_110; coefficient.y = mouseY * 2 / this.alternativa3d::_height; } else @@ -410,10 +410,10 @@ package §_-8D§ direction.x = 0; direction.y = 0; direction.z = 1; - origin.x = mouseX - this.alternativa3d::_-qj * 0.5; + origin.x = mouseX - this.alternativa3d::var_110 * 0.5; origin.y = mouseY - this.alternativa3d::_height * 0.5; origin.z = camera.nearClipping; - coefficient.x = mouseX * 2 / this.alternativa3d::_-qj; + coefficient.x = mouseX * 2 / this.alternativa3d::var_110; coefficient.y = mouseY * 2 / this.alternativa3d::_height; } ++this.alternativa3d::raysLength; @@ -427,15 +427,15 @@ package §_-8D§ } } - alternativa3d function §_-bA§(surface:§_-a2§, geometry:§_-gA§, procedure:§_-Xk§) : void + alternativa3d function method_124(surface:name_134, geometry:name_136, procedure:name_116) : void { - this.surfaces[this.§_-8b§] = surface; - this.geometries[this.§_-8b§] = geometry; - this.§_-2L§[this.§_-8b§] = procedure; - ++this.§_-8b§; + this.surfaces[this.var_115] = surface; + this.geometries[this.var_115] = geometry; + this.var_128[this.var_115] = procedure; + ++this.var_115; } - alternativa3d function §_-jR§(stage3D:Stage3D, context:Context3D) : void + alternativa3d function method_122(stage3D:Stage3D, context:Context3D) : void { var vis:Boolean = false; var parent:DisplayObject = null; @@ -444,16 +444,16 @@ package §_-8D§ var isIncubator:Boolean = "viewPort" in stage3DObject; if(isIncubator) { - if(this.alternativa3d::_-qj > 2048) + if(this.alternativa3d::var_110 > 2048) { - this.alternativa3d::_-qj = 2048; + this.alternativa3d::var_110 = 2048; } if(this.alternativa3d::_height > 2048) { this.alternativa3d::_height = 2048; } } - if(this.alternativa3d::_-gJ == null) + if(this.alternativa3d::var_114 == null) { vis = Boolean(this.visible); for(parent = this.parent; parent != null; parent = parent.parent) @@ -469,7 +469,7 @@ package §_-8D§ { rectangle.x = coords.x; rectangle.y = coords.y; - point.x = this.alternativa3d::_-qj; + point.x = this.alternativa3d::var_110; point.y = this.alternativa3d::_height; coords = localToGlobal(point); rectangle.width = coords.x - rectangle.x; @@ -506,13 +506,13 @@ package §_-8D§ { stage3DObject.visible = false; } - if(this.alternativa3d::_-qj != this.alternativa3d::_-gJ.width || this.alternativa3d::_height != this.alternativa3d::_-gJ.height || this.backgroundAlpha < 1 != this.alternativa3d::_-gJ.transparent) + 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) { - this.alternativa3d::_-gJ.dispose(); - this.§_-Eg§(); + this.alternativa3d::var_114.dispose(); + this.method_110(); } } - context.configureBackBuffer(this.alternativa3d::_-qj,this.alternativa3d::_height,this.antiAlias); + context.configureBackBuffer(this.alternativa3d::var_110,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 §_-8D§ context.clear(r,g,b,this.backgroundAlpha); } - alternativa3d function §_-7K§(context:Context3D, camera:§_-be§) : void + alternativa3d function method_121(context:Context3D, camera:name_135) : void { var i:int = 0; - var raySurfaces:Vector.<§_-a2§> = null; + var raySurfaces:Vector. = null; var rayDepths:Vector. = null; var raySurfacesLength:int = 0; var mouseEvent:MouseEvent = null; var index:int = 0; - if(this.§_-Zv§ > 0) + if(this.var_113 > 0) { - if(this.§_-8b§ > 0) + if(this.var_115 > 0) { - this.§_-oI§(context,camera,this.alternativa3d::_-qj,this.alternativa3d::_height); + this.method_114(context,camera,this.alternativa3d::var_110,this.alternativa3d::_height); for(i = 0; i < this.alternativa3d::raysLength; ) { - raySurfaces = this.§extends§[i]; - rayDepths = this.§_-9L§[i]; + raySurfaces = this.var_121[i]; + rayDepths = this.var_120[i]; raySurfacesLength = int(raySurfaces.length); if(raySurfacesLength > 1) { @@ -550,103 +550,103 @@ package §_-8D§ i++; } } - this.§_-Cu§ = camera.farClipping; - for(i = 0; i < this.§_-Zv§; i++) + this.var_122 = camera.farClipping; + for(i = 0; i < this.var_113; i++) { - mouseEvent = this.§_-j6§[i]; + mouseEvent = this.var_117[i]; index = this.indices[i]; switch(mouseEvent.type) { case "mouseDown": - this.§_-7f§(index); + this.method_106(index); if(this.target != null) { - this.§_-AJ§(MouseEvent3D.MOUSE_DOWN,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); + this.method_104(MouseEvent3D.MOUSE_DOWN,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); } - this.§_-B4§ = this.target; + this.var_123 = this.target; break; case "mouseWheel": - this.§_-7f§(index); + this.method_106(index); if(this.target != null) { - this.§_-AJ§(MouseEvent3D.MOUSE_WHEEL,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); + this.method_104(MouseEvent3D.MOUSE_WHEEL,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); } break; case "click": - this.§_-7f§(index); + this.method_106(index); if(this.target != null) { - this.§_-AJ§(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); - if(this.§_-B4§ == this.target) + this.method_104(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); + if(this.var_123 == this.target) { - this.§_-c3§ = this.target; - this.§_-AJ§(MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); + this.var_129 = this.target; + this.method_104(MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); } } - this.§_-B4§ = null; + this.var_123 = null; break; case "doubleClick": - this.§_-7f§(index); + this.method_106(index); if(this.target != null) { - this.§_-AJ§(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); - if(this.§_-B4§ == this.target) + this.method_104(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); + if(this.var_123 == this.target) { - 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.method_104(this.var_129 == this.target && Boolean(this.target.doubleClickEnabled) ? MouseEvent3D.DOUBLE_CLICK : MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); } } - this.§_-c3§ = null; - this.§_-B4§ = null; + this.var_129 = null; + this.var_123 = null; break; case "mouseMove": - this.§_-7f§(index); + this.method_106(index); if(this.target != null) { - this.§_-AJ§(MouseEvent3D.MOUSE_MOVE,mouseEvent,camera,this.target,this.targetSurface,this.§_-lx§(this.target,branch)); + this.method_104(MouseEvent3D.MOUSE_MOVE,mouseEvent,camera,this.target,this.targetSurface,this.method_105(this.target,branch)); } - if(this.§_-Lx§ != this.target) + if(this.var_116 != this.target) { - this.§_-px§(mouseEvent,camera); + this.method_109(mouseEvent,camera); } break; case "mouseOut": - this.§_-Ki§ = null; + this.var_119 = null; this.target = null; this.targetSurface = null; - if(this.§_-Lx§ != this.target) + if(this.var_116 != this.target) { - this.§_-px§(mouseEvent,camera); + this.method_109(mouseEvent,camera); } break; case "render": - this.§_-7f§(index); - if(this.§_-Lx§ != this.target) + this.method_106(index); + if(this.var_116 != this.target) { - this.§_-px§(mouseEvent,camera); + this.method_109(mouseEvent,camera); } break; } this.target = null; this.targetSurface = null; - this.§_-Cu§ = camera.farClipping; + this.var_122 = camera.farClipping; } } this.surfaces.length = 0; - this.§_-8b§ = 0; - this.§_-j6§.length = 0; - this.§_-Zv§ = 0; + this.var_115 = 0; + this.var_117.length = 0; + this.var_113 = 0; for(i = 0; i < this.alternativa3d::raysLength; i++) { - this.§extends§[i].length = 0; - this.§_-9L§[i].length = 0; + this.var_121[i].length = 0; + this.var_120[i].length = 0; } this.alternativa3d::raysLength = 0; } - private function §_-oI§(context:Context3D, camera:§_-be§, contextWidth:int, contextHeight:int) : void + private function method_114(context:Context3D, camera:name_135, contextWidth:int, contextHeight:int) : void { - var vLinker:§_-hR§ = null; - var fLinker:§_-hR§ = null; + var vLinker:name_119 = null; + var fLinker:name_119 = null; var i:int = 0; var j:int = 0; var log2Width:int = 0; @@ -661,7 +661,7 @@ package §_-8D§ var red:int = 0; var green:int = 0; var ind:int = 0; - var raySurfaces:Vector.<§_-a2§> = null; + var raySurfaces:Vector. = null; var rayDepths:Vector. = null; context.setBlendFactors(Context3DBlendFactor.ONE,Context3DBlendFactor.ZERO); context.setCulling(Context3DTriangleFace.FRONT); @@ -681,36 +681,36 @@ package §_-8D§ context.setVertexBufferAt(5,null); context.setVertexBufferAt(6,null); context.setVertexBufferAt(7,null); - var drawRectGeometry:§_-gA§ = drawRectGeometries[context]; + var drawRectGeometry:name_136 = drawRectGeometries[context]; if(drawRectGeometry == null) { - 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 = new name_136(4); + drawRectGeometry.addVertexStream([name_117.POSITION,name_117.POSITION,name_117.POSITION,name_117.TEXCOORDS[0],name_117.TEXCOORDS[0]]); + drawRectGeometry.setAttributeValues(name_117.POSITION,Vector.([0,0,1,0,1,1,1,1,1,1,0,1])); + drawRectGeometry.setAttributeValues(name_117.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:§_-RB§ = drawColoredRectPrograms[context]; + var drawColoredRectProgram:class_6 = drawColoredRectPrograms[context]; if(drawColoredRectProgram == null) { - 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); + vLinker = new name_119(Context3DProgramType.VERTEX); + vLinker.name_120(name_116.name_144(["#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_119(Context3DProgramType.FRAGMENT); + fLinker.name_120(name_116.name_144(["#c0=c0","mov o0, c0"])); + drawColoredRectProgram = new class_6(vLinker,fLinker); drawColoredRectProgram.upload(context); drawColoredRectPrograms[context] = drawColoredRectProgram; } - var drawTexturedRectProgram:§_-RB§ = drawTexturedRectPrograms[context]; + var drawTexturedRectProgram:class_6 = drawTexturedRectPrograms[context]; if(drawTexturedRectProgram == null) { - 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); + vLinker = new name_119(Context3DProgramType.VERTEX); + vLinker.name_120(name_116.name_144(["#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_119(Context3DProgramType.FRAGMENT); + fLinker.name_120(name_116.name_144(["#v0=v0","#s0=s0","tex t0, v0, s0 <2d, nearest, mipnone>","mov o0, t0"])); + drawTexturedRectProgram = new class_6(vLinker,fLinker); drawTexturedRectProgram.upload(context); drawTexturedRectPrograms[context] = drawTexturedRectProgram; } @@ -755,9 +755,9 @@ package §_-8D§ var pixelIndex:int = 0; for(i = 0; i < this.alternativa3d::raysLength; ) { - rayCoefficients = this.§_-Ql§[i]; + rayCoefficients = this.var_124[i]; i++; - for(j = 0; j < this.§_-8b§; ) + for(j = 0; j < this.var_115; ) { if(pixelIndex == 0) { @@ -768,29 +768,29 @@ package §_-8D§ } else { - drawColoredRectConst[0] = this.alternativa3d::raysLength * this.§_-8b§ * 2 / contextWidth; + drawColoredRectConst[0] = this.alternativa3d::raysLength * this.var_115 * 2 / contextWidth; drawColoredRectConst[1] = -2 / contextHeight; context.setDepthTest(false,Context3DCompareMode.ALWAYS); context.setProgram(drawColoredRectProgram.program); - context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); + context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(name_117.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.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::_-EM,0,2); + context.drawTriangles(drawRectGeometry.alternativa3d::name_78,0,2); context.setVertexBufferAt(0,null); } } scissor.x = pixelIndex; context.setScissorRectangle(scissor); - 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; + this.method_115(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; j++; pixelIndex++; - if(pixelIndex >= contextWidth || i >= this.alternativa3d::raysLength && j >= this.§_-8b§) + if(pixelIndex >= contextWidth || i >= this.alternativa3d::raysLength && j >= this.var_115) { if(this.antiAlias > 0) { @@ -801,12 +801,12 @@ package §_-8D§ drawTexturedRectUVScaleConst[0] = textureScreenSize; context.setDepthTest(false,Context3DCompareMode.ALWAYS); context.setProgram(drawTexturedRectProgram.program); - 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.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(name_117.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + context.setVertexBufferAt(1,drawRectGeometry.alternativa3d::getVertexBuffer(name_117.TEXCOORDS[0]),drawRectGeometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[0]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[0]]); context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawColoredRectConst); context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,1,drawTexturedRectUVScaleConst); context.setTextureAt(0,texture); - context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); + context.drawTriangles(drawRectGeometry.alternativa3d::name_78,0,2); context.setTextureAt(0,null); context.setVertexBufferAt(0,null); context.setVertexBufferAt(1,null); @@ -825,10 +825,10 @@ package §_-8D§ green = color >> 8 & 0xFF; if(red < 255) { - ind = this.§_-4N§[k]; - raySurfaces = this.§extends§[ind]; - rayDepths = this.§_-9L§[ind]; - ind = this.§_-ff§[k]; + ind = this.var_130[k]; + raySurfaces = this.var_121[ind]; + rayDepths = this.var_120[ind]; + ind = this.var_132[k]; raySurfaces.push(this.surfaces[ind]); rayDepths.push((red + green / 255) / kZ); } @@ -841,8 +841,8 @@ package §_-8D§ context.setScissorRectangle(null); context.setDepthTest(true,Context3DCompareMode.ALWAYS); context.setProgram(drawColoredRectProgram.program); - 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; + context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(name_117.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + drawColoredRectConst[0] = this.alternativa3d::raysLength * this.var_115 * 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 §_-8D§ } drawRectColor[3] = this.backgroundAlpha; context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawRectColor); - context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); + context.drawTriangles(drawRectGeometry.alternativa3d::name_78,0,2); context.setVertexBufferAt(0,null); } - 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 + private function method_115(context:Context3D, camera:name_135, 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:§_-hR§ = null; + var vertex:name_119 = null; var position:String = null; - 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]; + var surface:name_134 = this.surfaces[index]; + var geometry:name_136 = this.geometries[index]; + var procedure:name_116 = this.var_128[index]; + var object:name_130 = surface.alternativa3d::object; + var drawDistanceProgram:class_6 = drawDistancePrograms[procedure]; if(drawDistanceProgram == null) { - vertex = new §_-hR§(Context3DProgramType.VERTEX); + vertex = new name_119(Context3DProgramType.VERTEX); position = "position"; - vertex.§_-LU§(position,§_-5§.ATTRIBUTE); + vertex.name_125(position,name_128.ATTRIBUTE); if(procedure != null) { - vertex.§_-on§(procedure); - vertex.§_-LU§("localPosition",§_-5§.TEMPORARY); - vertex.§_-FS§(procedure,position); - vertex.§_-qd§(procedure,"localPosition"); + vertex.name_120(procedure); + vertex.name_125("localPosition",name_128.TEMPORARY); + vertex.name_122(procedure,position); + vertex.name_127(procedure,"localPosition"); position = "localPosition"; } - vertex.§_-on§(drawDistanceVertexProcedure); - vertex.§_-FS§(drawDistanceVertexProcedure,position); - drawDistanceProgram = new §_-RB§(vertex,drawDistanceFragment); - drawDistanceFragment.§_-NA§(vertex); + vertex.name_120(drawDistanceVertexProcedure); + vertex.name_122(drawDistanceVertexProcedure,position); + drawDistanceProgram = new class_6(vertex,drawDistanceFragment); + drawDistanceFragment.name_140(vertex); drawDistanceProgram.upload(context); drawDistancePrograms[procedure] = drawDistanceProgram; } - var buffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION); + var buffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.POSITION); if(buffer == null) { return; } - drawUnit.alternativa3d::_-3G = 0; - drawUnit.alternativa3d::_-9X = 0; - drawUnit.alternativa3d::_-Kv = 0; + drawUnit.alternativa3d::name_316 = 0; + drawUnit.alternativa3d::name_317 = 0; + drawUnit.alternativa3d::name_320 = 0; object.alternativa3d::setTransformConstants(drawUnit,surface,drawDistanceProgram.vertexShader,camera); - 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); + drawUnit.alternativa3d::name_325(drawDistanceProgram.vertexShader.getVariableIndex("transform0"),object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::name_143(drawDistanceProgram.vertexShader.getVariableIndex("coefficient"),xOffset,yOffset,vertexConst,orthographic ? 1 : 0); + drawUnit.alternativa3d::name_143(drawDistanceProgram.vertexShader.getVariableIndex("projection"),m0,m5,m10,m14); + drawUnit.alternativa3d::name_124(drawDistanceProgram.fragmentShader.getVariableIndex("code"),fragmentConst,0,0,1); context.setProgram(drawDistanceProgram.program); - context.setVertexBufferAt(0,buffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]); - for(i = 0; i < drawUnit.alternativa3d::_-3G; i++) + context.setVertexBufferAt(0,buffer,geometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + for(i = 0; i < drawUnit.alternativa3d::name_316; i++) { - context.setVertexBufferAt(drawUnit.alternativa3d::else [i],drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]); + context.setVertexBufferAt(drawUnit.alternativa3d::name_318[i],drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::name_324[i],drawUnit.alternativa3d::name_322[i]); } - 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.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::name_323,drawUnit.alternativa3d::name_317); + context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::name_321,drawUnit.alternativa3d::name_320); + context.drawTriangles(geometry.alternativa3d::name_78,surface.indexBegin,surface.numTriangles); context.setVertexBufferAt(0,null); - for(i = 0; i < drawUnit.alternativa3d::_-3G; i++) + for(i = 0; i < drawUnit.alternativa3d::name_316; i++) { - context.setVertexBufferAt(drawUnit.alternativa3d::else [i],null); + context.setVertexBufferAt(drawUnit.alternativa3d::name_318[i],null); } } - private function sort(surfaces:Vector.<§_-a2§>, depths:Vector., length:int) : void + private function sort(surfaces:Vector., depths:Vector., length:int) : void { var r:int = 0; var j:int = 0; @@ -934,7 +934,7 @@ package §_-8D§ var median:Number = NaN; var left:Number = NaN; var right:Number = NaN; - var surface:§_-a2§ = null; + var surface:name_134 = null; stack[0] = 0; stack[1] = length - 1; for(var index:int = 2; index > 0; ) @@ -985,19 +985,19 @@ package §_-8D§ } } - private function §_-px§(mouseEvent:MouseEvent, camera:§_-be§) : void + private function method_109(mouseEvent:MouseEvent, camera:name_135) : void { var changedBranchLength:int = 0; var i:int = 0; var j:int = 0; - var object:§_-OX§ = null; - this.§_-lx§(this.target,branch); - this.§_-lx§(this.§_-Lx§,overedBranch); + var object:name_130 = null; + this.method_105(this.target,branch); + this.method_105(this.var_116,overedBranch); var branchLength:int = int(branch.length); var overedBranchLength:int = int(overedBranch.length); - if(this.§_-Lx§ != null) + if(this.var_116 != null) { - this.§_-AJ§(MouseEvent3D.MOUSE_OUT,mouseEvent,camera,this.§_-Lx§,this.§_-H7§,overedBranch,true,this.target); + this.method_104(MouseEvent3D.MOUSE_OUT,mouseEvent,camera,this.var_116,this.var_131,overedBranch,true,this.target); changedBranchLength = 0; for(i = 0; i < overedBranchLength; ) { @@ -1019,7 +1019,7 @@ package §_-8D§ if(changedBranchLength > 0) { changedBranch.length = changedBranchLength; - this.§_-AJ§(MouseEvent3D.ROLL_OUT,mouseEvent,camera,this.§_-Lx§,this.§_-H7§,changedBranch,false,this.target); + this.method_104(MouseEvent3D.ROLL_OUT,mouseEvent,camera,this.var_116,this.var_131,changedBranch,false,this.target); } } if(this.target != null) @@ -1045,9 +1045,9 @@ package §_-8D§ if(changedBranchLength > 0) { changedBranch.length = changedBranchLength; - this.§_-AJ§(MouseEvent3D.ROLL_OVER,mouseEvent,camera,this.target,this.targetSurface,changedBranch,false,this.§_-Lx§); + this.method_104(MouseEvent3D.ROLL_OVER,mouseEvent,camera,this.target,this.targetSurface,changedBranch,false,this.var_116); } - this.§_-AJ§(MouseEvent3D.MOUSE_OVER,mouseEvent,camera,this.target,this.targetSurface,branch,true,this.§_-Lx§); + this.method_104(MouseEvent3D.MOUSE_OVER,mouseEvent,camera,this.target,this.targetSurface,branch,true,this.var_116); useHandCursor = this.target.useHandCursor; } else @@ -1055,11 +1055,11 @@ package §_-8D§ useHandCursor = false; } Mouse.cursor = Mouse.cursor; - this.§_-Lx§ = this.target; - this.§_-H7§ = this.targetSurface; + this.var_116 = this.target; + this.var_131 = this.targetSurface; } - private function §_-lx§(object:§_-OX§, vector:Vector.<§_-OX§>) : Vector.<§_-OX§> + private function method_105(object:name_130, vector:Vector.) : Vector. { for(var len:int = 0; object != null; ) { @@ -1071,9 +1071,9 @@ package §_-8D§ return vector; } - private function §_-AJ§(type:String, mouseEvent:MouseEvent, camera:§_-be§, target:§_-OX§, targetSurface:§_-a2§, objects:Vector.<§_-OX§>, bubbles:Boolean = true, relatedObject:§_-OX§ = null) : void + private function method_104(type:String, mouseEvent:MouseEvent, camera:name_135, target:name_130, targetSurface:name_134, objects:Vector., bubbles:Boolean = true, relatedObject:name_130 = null) : void { - var object:§_-OX§ = null; + var object:name_130 = null; var vector:Vector. = null; var length:int = 0; var i:int = 0; @@ -1090,13 +1090,13 @@ package §_-8D§ { if(mouseEvent3D == null) { - this.§_-K3§(camera,target.alternativa3d::cameraToLocalTransform,this.§_-Cu§,mouseEvent); + this.method_112(camera,target.alternativa3d::cameraToLocalTransform,this.var_122,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::_-5E = target; - mouseEvent3D.alternativa3d::_-BX = targetSurface; + mouseEvent3D.alternativa3d::name_314 = target; + mouseEvent3D.alternativa3d::var_109 = targetSurface; } - mouseEvent3D.alternativa3d::_-Kh = object; - mouseEvent3D.alternativa3d::_-VE = 1; + mouseEvent3D.alternativa3d::name_313 = object; + mouseEvent3D.alternativa3d::name_312 = 1; length = int(vector.length); for(j = 0; j < length; functions[j] = vector[j],j++) { @@ -1104,7 +1104,7 @@ package §_-8D§ for(j = 0; j < length; ) { (functions[j] as Function).call(null,mouseEvent3D); - if(mouseEvent3D.alternativa3d::_-XD) + if(mouseEvent3D.alternativa3d::var_108) { return; } @@ -1128,13 +1128,13 @@ package §_-8D§ { if(mouseEvent3D == null) { - this.§_-K3§(camera,target.alternativa3d::cameraToLocalTransform,this.§_-Cu§,mouseEvent); + this.method_112(camera,target.alternativa3d::cameraToLocalTransform,this.var_122,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::_-5E = target; - mouseEvent3D.alternativa3d::_-BX = targetSurface; + mouseEvent3D.alternativa3d::name_314 = target; + mouseEvent3D.alternativa3d::var_109 = targetSurface; } - mouseEvent3D.alternativa3d::_-Kh = object; - mouseEvent3D.alternativa3d::_-VE = i == 0 ? 2 : 3; + mouseEvent3D.alternativa3d::name_313 = object; + mouseEvent3D.alternativa3d::name_312 = i == 0 ? 2 : 3; length = int(vector.length); for(j = 0; j < length; functions[j] = vector[j],j++) { @@ -1142,7 +1142,7 @@ package §_-8D§ for(j = 0; j < length; ) { (functions[j] as Function).call(null,mouseEvent3D); - if(mouseEvent3D.alternativa3d::_-XD) + if(mouseEvent3D.alternativa3d::var_108) { return; } @@ -1158,18 +1158,18 @@ package §_-8D§ } } - private function §_-K3§(camera:§_-be§, transform:§_-jw§, z:Number, mouseEvent:MouseEvent) : void + private function method_112(camera:name_135, transform:name_129, z:Number, mouseEvent:MouseEvent) : void { var x:Number = NaN; var y:Number = NaN; if(!camera.orthographic) { - x = z * (mouseEvent.localX - this.alternativa3d::_-qj * 0.5) / camera.alternativa3d::focalLength; + x = z * (mouseEvent.localX - this.alternativa3d::var_110 * 0.5) / camera.alternativa3d::focalLength; y = z * (mouseEvent.localY - this.alternativa3d::_height * 0.5) / camera.alternativa3d::focalLength; } else { - x = mouseEvent.localX - this.alternativa3d::_-qj * 0.5; + x = mouseEvent.localX - this.alternativa3d::var_110 * 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 §_-8D§ localCoords.z = transform.i * x + transform.j * y + transform.k * z + transform.l; } - private function §_-7f§(index:int) : void + private function method_106(index:int) : void { - var source:§_-OX§ = null; - var surface:§_-a2§ = null; + var source:name_130 = null; + var surface:name_134 = null; var depth:Number = NaN; - 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]; + var object:name_130 = null; + var potentialTarget:name_130 = null; + var obj:name_130 = null; + var surfaces:Vector. = this.var_121[index]; + var depths:Vector. = this.var_120[index]; for(var i:int = surfaces.length - 1; i >= 0; ) { surface = surfaces[i]; @@ -1218,7 +1218,7 @@ package §_-8D§ { this.target = potentialTarget; this.targetSurface = surface; - this.§_-Cu§ = depth; + this.var_122 = depth; } break; } @@ -1230,7 +1230,7 @@ package §_-8D§ source = object; this.target = potentialTarget; this.targetSurface = surface; - this.§_-Cu§ = depth; + this.var_122 = depth; } if(source == this.target) { @@ -1243,117 +1243,117 @@ package §_-8D§ public function get renderToBitmap() : Boolean { - return this.alternativa3d::_-gJ != null; + return this.alternativa3d::var_114 != null; } public function set renderToBitmap(value:Boolean) : void { if(value) { - if(this.alternativa3d::_-gJ == null) + if(this.alternativa3d::var_114 == null) { - this.§_-Eg§(); + this.method_110(); } } - else if(this.alternativa3d::_-gJ != null) + else if(this.alternativa3d::var_114 != null) { this.container.bitmapData = null; - this.alternativa3d::_-gJ.dispose(); - this.alternativa3d::_-gJ = null; + this.alternativa3d::var_114.dispose(); + this.alternativa3d::var_114 = null; } } public function get canvas() : BitmapData { - return this.alternativa3d::_-gJ; + return this.alternativa3d::var_114; } - public function §_-GU§() : void + public function method_120() : void { - if(this.§_-N2§ == null) + if(this.var_112 == null) { - this.§_-N2§ = new Logo(); - super.addChild(this.§_-N2§); - this.§package§(); + this.var_112 = new Logo(); + super.addChild(this.var_112); + this.method_108(); } } - public function §_-qT§() : void + public function method_123() : void { - if(this.§_-N2§ != null) + if(this.var_112 != null) { - super.removeChild(this.§_-N2§); - this.§_-N2§ = null; + super.removeChild(this.var_112); + this.var_112 = null; } } - public function get §_-oJ§() : String + public function get method_118() : String { - return this.§_-bx§; + return this.var_111; } - public function set §_-oJ§(value:String) : void + public function set method_118(value:String) : void { - this.§_-bx§ = value; - this.§package§(); + this.var_111 = value; + this.method_108(); } - public function get §_-dV§() : Number + public function get method_117() : Number { - return this.§_-hq§; + return this.var_126; } - public function set §_-dV§(value:Number) : void + public function set method_117(value:Number) : void { - this.§_-hq§ = value; - this.§package§(); + this.var_126 = value; + this.method_108(); } - public function get §_-C2§() : Number + public function get method_113() : Number { - return this.§_-Xc§; + return this.var_125; } - public function set §_-C2§(value:Number) : void + public function set method_113(value:Number) : void { - this.§_-Xc§ = value; - this.§package§(); + this.var_125 = value; + this.method_108(); } - private function §package§() : void + private function method_108() : void { - if(this.§_-N2§ != null) + if(this.var_112 != null) { - if(this.§_-bx§ == StageAlign.TOP_LEFT || this.§_-bx§ == StageAlign.LEFT || this.§_-bx§ == StageAlign.BOTTOM_LEFT) + if(this.var_111 == StageAlign.TOP_LEFT || this.var_111 == StageAlign.LEFT || this.var_111 == StageAlign.BOTTOM_LEFT) { - this.§_-N2§.x = Math.round(this.§_-hq§); + this.var_112.x = Math.round(this.var_126); } - if(this.§_-bx§ == StageAlign.TOP || this.§_-bx§ == StageAlign.BOTTOM) + if(this.var_111 == StageAlign.TOP || this.var_111 == StageAlign.BOTTOM) { - this.§_-N2§.x = Math.round((this.alternativa3d::_-qj - this.§_-N2§.width) / 2); + this.var_112.x = Math.round((this.alternativa3d::var_110 - this.var_112.width) / 2); } - if(this.§_-bx§ == StageAlign.TOP_RIGHT || this.§_-bx§ == StageAlign.RIGHT || this.§_-bx§ == StageAlign.BOTTOM_RIGHT) + if(this.var_111 == StageAlign.TOP_RIGHT || this.var_111 == StageAlign.RIGHT || this.var_111 == StageAlign.BOTTOM_RIGHT) { - this.§_-N2§.x = Math.round(this.alternativa3d::_-qj - this.§_-hq§ - this.§_-N2§.width); + this.var_112.x = Math.round(this.alternativa3d::var_110 - this.var_126 - this.var_112.width); } - if(this.§_-bx§ == StageAlign.TOP_LEFT || this.§_-bx§ == StageAlign.TOP || this.§_-bx§ == StageAlign.TOP_RIGHT) + if(this.var_111 == StageAlign.TOP_LEFT || this.var_111 == StageAlign.TOP || this.var_111 == StageAlign.TOP_RIGHT) { - this.§_-N2§.y = Math.round(this.§_-Xc§); + this.var_112.y = Math.round(this.var_125); } - if(this.§_-bx§ == StageAlign.LEFT || this.§_-bx§ == StageAlign.RIGHT) + if(this.var_111 == StageAlign.LEFT || this.var_111 == StageAlign.RIGHT) { - this.§_-N2§.y = Math.round((this.alternativa3d::_height - this.§_-N2§.height) / 2); + this.var_112.y = Math.round((this.alternativa3d::_height - this.var_112.height) / 2); } - if(this.§_-bx§ == StageAlign.BOTTOM_LEFT || this.§_-bx§ == StageAlign.BOTTOM || this.§_-bx§ == StageAlign.BOTTOM_RIGHT) + if(this.var_111 == StageAlign.BOTTOM_LEFT || this.var_111 == StageAlign.BOTTOM || this.var_111 == StageAlign.BOTTOM_RIGHT) { - this.§_-N2§.y = Math.round(this.alternativa3d::_height - this.§_-Xc§ - this.§_-N2§.height); + this.var_112.y = Math.round(this.alternativa3d::_height - this.var_125 - this.var_112.height); } } } override public function get width() : Number { - return this.alternativa3d::_-qj; + return this.alternativa3d::var_110; } override public function set width(value:Number) : void @@ -1362,9 +1362,9 @@ package §_-8D§ { value = 50; } - this.alternativa3d::_-qj = value; + this.alternativa3d::var_110 = value; this.area.width = value; - this.§package§(); + this.method_108(); } override public function get height() : Number @@ -1380,7 +1380,7 @@ package §_-8D§ } this.alternativa3d::_height = value; this.area.height = value; - this.§package§(); + this.method_108(); } override public function addChild(child:DisplayObject) : DisplayObject diff --git a/src/?_-8D?/?_-be?.as b/src/package_33/name_135.as similarity index 89% rename from src/?_-8D?/?_-be?.as rename to src/package_33/name_135.as index 0873741..a4c3f85 100644 --- a/src/?_-8D?/?_-be?.as +++ b/src/package_33/name_135.as @@ -1,4 +1,4 @@ -package §_-8D§ +package package_33 { import alternativa.engine3d.alternativa3d; import flash.display.Bitmap; @@ -24,9 +24,9 @@ package §_-8D§ use namespace alternativa3d; - public class §_-be§ extends §_-OX§ + public class name_135 extends name_130 { - public var view:§_-JI§; + public var view:class_14; public var fov:Number = 1.5707963267948966; @@ -50,15 +50,15 @@ package §_-8D§ alternativa3d var correctionY:Number; - alternativa3d var lights:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(); + alternativa3d var lights:Vector. = new Vector.(); alternativa3d var lightsLength:int = 0; alternativa3d var ambient:Vector. = new Vector.(4); - alternativa3d var childLights:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(); + alternativa3d var childLights:Vector. = new Vector.(); - alternativa3d var frustum:§_-Lg§; + alternativa3d var frustum:name_337; alternativa3d var origins:Vector. = new Vector.(); @@ -66,13 +66,13 @@ package §_-8D§ alternativa3d var raysLength:int = 0; - alternativa3d var occluders:Vector.<§_-PS§> = new Vector.<§_-PS§>(); + alternativa3d var occluders:Vector. = new Vector.(); alternativa3d var occludersLength:int = 0; alternativa3d var context3D:Context3D; - alternativa3d var renderer:§_-7p§; + alternativa3d var renderer:name_338; alternativa3d var numDraws:int; @@ -124,25 +124,25 @@ package §_-8D§ private var timer:int; - public function §_-be§(nearClipping:Number, farClipping:Number) + public function name_135(nearClipping:Number, farClipping:Number) { super(); this.nearClipping = nearClipping; this.farClipping = farClipping; - 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§(); + this.alternativa3d::renderer = new name_338(); + this.alternativa3d::frustum = new name_337(); + this.alternativa3d::frustum.next = new name_337(); + this.alternativa3d::frustum.next.next = new name_337(); + this.alternativa3d::frustum.next.next.next = new name_337(); + this.alternativa3d::frustum.next.next.next.next = new name_337(); + this.alternativa3d::frustum.next.next.next.next.next = new name_337(); } public function render(stage3D:Stage3D) : void { var i:int = 0; - var light:§_-Jo§ = null; - var root:§_-OX§ = null; + var light:name_121 = null; + var root:name_130 = null; var childLightsLength:int = 0; if(stage3D == null) { @@ -157,11 +157,11 @@ package §_-8D§ 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::_-gJ != null)) + if(this.alternativa3d::context3D != null && this.view != null && this.alternativa3d::renderer != null && (this.view.stage != null || this.view.alternativa3d::var_114 != null)) { this.alternativa3d::renderer.alternativa3d::camera = this; - this.alternativa3d::calculateProjection(this.view.alternativa3d::_-qj,this.view.alternativa3d::_height); - this.view.alternativa3d::_-jR(stage3D,this.alternativa3d::context3D); + this.alternativa3d::calculateProjection(this.view.alternativa3d::var_110,this.view.alternativa3d::_height); + this.view.alternativa3d::method_122(stage3D,this.alternativa3d::context3D); if(alternativa3d::transformChanged) { alternativa3d::composeTransforms(); @@ -192,7 +192,7 @@ package §_-8D§ if(root.boundBox != null) { this.alternativa3d::calculateFrustum(root.alternativa3d::cameraToLocalTransform); - root.alternativa3d::culling = root.boundBox.alternativa3d::_-JT(this.alternativa3d::frustum,63); + root.alternativa3d::culling = root.boundBox.alternativa3d::name_341(this.alternativa3d::frustum,63); } else { @@ -212,12 +212,12 @@ package §_-8D§ 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::_-RA(this,root)))) + if(root.alternativa3d::culling >= 0 && (root.boundBox == null || this.alternativa3d::occludersLength == 0 || Boolean(root.boundBox.alternativa3d::name_340(this,root)))) { if(Boolean(root.alternativa3d::listening) && root.boundBox != null) { this.alternativa3d::calculateRays(root.alternativa3d::cameraToLocalTransform); - root.alternativa3d::listening = root.boundBox.alternativa3d::_-Xu(this.alternativa3d::origins,this.alternativa3d::directions,this.alternativa3d::raysLength); + root.alternativa3d::listening = root.boundBox.alternativa3d::name_342(this.alternativa3d::origins,this.alternativa3d::directions,this.alternativa3d::raysLength); } if(this.alternativa3d::lightsLength > 0 && Boolean(root.alternativa3d::useLights)) { @@ -227,7 +227,7 @@ package §_-8D§ for(i = 0; i < this.alternativa3d::lightsLength; ) { light = this.alternativa3d::lights[i]; - light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.alternativa3d::name_80.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); if(light.boundBox == null || Boolean(light.alternativa3d::checkBound(root))) { this.alternativa3d::childLights[childLightsLength] = light; @@ -242,7 +242,7 @@ package §_-8D§ for(i = 0; i < this.alternativa3d::lightsLength; ) { light = this.alternativa3d::lights[i]; - light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.alternativa3d::name_80.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); i++; } root.alternativa3d::collectDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength); @@ -255,15 +255,15 @@ package §_-8D§ } root.alternativa3d::collectChildrenDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength); } - this.view.alternativa3d::_-7K(this.alternativa3d::context3D,this); + this.view.alternativa3d::method_121(this.alternativa3d::context3D,this); this.alternativa3d::renderer.alternativa3d::render(this.alternativa3d::context3D); - if(this.view.alternativa3d::_-gJ == null) + if(this.view.alternativa3d::var_114 == null) { this.alternativa3d::context3D.present(); } else { - this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::_-gJ); + this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::var_114); this.alternativa3d::context3D.present(); } } @@ -279,7 +279,7 @@ package §_-8D§ { throw new Error("It is necessary to have view set."); } - var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5; + var viewSizeX:Number = this.view.alternativa3d::var_110 * 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 §_-8D§ { throw new Error("It is necessary to have view set."); } - var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5; + var viewSizeX:Number = this.view.alternativa3d::var_110 * 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 §_-8D§ alternativa3d::composeTransforms(); } trm.copy(alternativa3d::transform); - for(var root:§_-OX§ = this; root.parent != null; ) + for(var root:name_130 = this; root.parent != null; ) { root = root.parent; if(root.alternativa3d::transformChanged) @@ -328,17 +328,17 @@ package §_-8D§ direction.z *= directionL; } - override public function clone() : §_-OX§ + override public function clone() : name_130 { - var res:§_-be§ = new §_-be§(this.nearClipping,this.farClipping); + var res:name_135 = new name_135(this.nearClipping,this.farClipping); res.clonePropertiesFrom(this); return res; } - override protected function clonePropertiesFrom(source:§_-OX§) : void + override protected function clonePropertiesFrom(source:name_130) : void { super.clonePropertiesFrom(source); - this.view = (source as §_-be§).view; + this.view = (source as name_135).view; } alternativa3d function calculateProjection(width:Number, height:Number) : void @@ -364,7 +364,7 @@ package §_-8D§ this.alternativa3d::correctionY = viewSizeY / this.alternativa3d::focalLength; } - alternativa3d function calculateFrustum(transform:§_-jw§) : void + alternativa3d function calculateFrustum(transform:name_129) : void { var fa:Number = NaN; var fe:Number = NaN; @@ -380,12 +380,12 @@ package §_-8D§ var bz:Number = NaN; var viewSizeX:Number = NaN; var viewSizeY:Number = NaN; - 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; + var nearPlane:name_337 = this.alternativa3d::frustum; + var farPlane:name_337 = nearPlane.next; + var leftPlane:name_337 = farPlane.next; + var rightPlane:name_337 = leftPlane.next; + var topPlane:name_337 = rightPlane.next; + var bottomPlane:name_337 = topPlane.next; if(!this.orthographic) { fa = transform.a * this.alternativa3d::correctionX; @@ -445,7 +445,7 @@ package §_-8D§ } else { - viewSizeX = this.view.alternativa3d::_-qj * 0.5; + viewSizeX = this.view.alternativa3d::var_110 * 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 §_-8D§ } } - alternativa3d function calculateRays(transform:§_-jw§) : void + alternativa3d function calculateRays(transform:name_129) : void { var o:Vector3D = null; var d:Vector3D = null; @@ -482,8 +482,8 @@ package §_-8D§ var direction:Vector3D = null; for(var i:int = 0; i < this.alternativa3d::raysLength; i++) { - o = this.view.alternativa3d::_-Cr[i]; - d = this.view.alternativa3d::_-g4[i]; + o = this.view.alternativa3d::var_127[i]; + d = this.view.alternativa3d::var_133[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 §_-8D§ } } - alternativa3d function checkInDebug(object:§_-OX§) : int + alternativa3d function checkInDebug(object:name_130) : int { var objectClass:Class = null; var res:int = 0; @@ -530,13 +530,13 @@ package §_-8D§ { if(Boolean(this.debugSet[debug])) { - if(Boolean(this.debugSet[debug][§_-OX§]) || Boolean(this.debugSet[debug][object])) + if(Boolean(this.debugSet[debug][name_130]) || Boolean(this.debugSet[debug][object])) { res |= debug; } else { - for(objectClass = getDefinitionByName(getQualifiedClassName(object)) as Class; objectClass != §_-OX§; ) + for(objectClass = getDefinitionByName(getQualifiedClassName(object)) as Class; objectClass != name_130; ) { if(Boolean(this.debugSet[debug][objectClass])) { diff --git a/src/?function?/?_-KQ?.as b/src/package_37/name_168.as similarity index 50% rename from src/?function?/?_-KQ?.as rename to src/package_37/name_168.as index c9dad56..369c302 100644 --- a/src/?function?/?_-KQ?.as +++ b/src/package_37/name_168.as @@ -1,20 +1,20 @@ -package §function§ +package package_37 { - 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_33.name_334; + import package_48.name_162; + import package_48.name_456; + import package_48.name_77; - public class §_-KQ§ extends §_-SG§ + public class name_168 extends name_77 { - private static var smokePrototype:§_-nN§; + private static var smokePrototype:name_456; - private static var firePrototype:§_-nN§; + private static var firePrototype:name_456; - private static var flamePrototype:§_-nN§; + private static var flamePrototype:name_456; private static var liftSpeed:Number = 60; @@ -22,7 +22,7 @@ package §function§ private static var pos:Vector3D = new Vector3D(); - public function §_-KQ§(smoke:§_-S8§, fire:§_-S8§, flame:§_-S8§, live:Number = 1, repeat:Boolean = false) + public function name_168(smoke:name_162, fire:name_162, flame:name_162, live:Number = 1, repeat:Boolean = false) { var i:int; var ft:Number = NaN; @@ -31,37 +31,37 @@ package §function§ ft = 1 / 30; if(smokePrototype == null) { - 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); + smokePrototype = new name_456(128,128,smoke,false); + smokePrototype.method_126(0 * ft,0,0.4,0.4,0.65,0.25,0,0); + smokePrototype.method_126(9 * ft,0,0.58,0.58,0.65,0.45,0.23,0.3); + smokePrototype.method_126(19 * ft,0,0.78,0.78,0.65,0.55,0.5,0.66); + smokePrototype.method_126(40 * ft,0,1.21,1.21,0.4,0.4,0.4,0.27); + smokePrototype.method_126(54 * ft,0,1.5,1.5,0,0,0,0); } if(firePrototype == null) { - 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); + firePrototype = new name_456(128,128,fire,false,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + firePrototype.method_126(0 * ft,0,0.3,0.3,1,1,1,0); + firePrototype.method_126(8 * ft,0,0.4,0.4,1,1,1,0.85); + firePrototype.method_126(17 * ft,0,0.51,0.51,1,0.56,0.48,0.1); + firePrototype.method_126(24 * ft,0,0.6,0.6,1,0.56,0.48,0); } if(flamePrototype == null) { - 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); + flamePrototype = new name_456(128,128,flame,true,Context3DBlendFactor.SOURCE_ALPHA,Context3DBlendFactor.ONE); + flamePrototype.method_126(0 * ft,0,1,1,1,1,1,0); + flamePrototype.method_126(10 * ft,0,1,1,1,1,1,1); + flamePrototype.method_126(live - 10 * ft,0,1,1,1,1,1,1); + flamePrototype.method_126(live,0,1,1,1,1,1,0); } - boundBox = new §_-FW§(); + boundBox = new name_334(); boundBox.minX = -100; boundBox.minY = -100; boundBox.minZ = -20; boundBox.maxX = 100; boundBox.maxY = 100; boundBox.maxZ = 200; - §_-Le§(0,this.keyFrame1); + method_126(0,this.keyFrame1); i = 0; while(true) { @@ -70,22 +70,22 @@ package §function§ { break; } - §_-Le§(keyTime,this.§_-IJ§); + method_126(keyTime,this.method_200); i++; } if(repeat) { setTimeout(function():void { - var newFire:§_-KQ§ = new §_-KQ§(smoke,fire,flame,live,repeat); + var newFire:name_168 = new name_168(smoke,fire,flame,live,repeat); newFire.name = name; newFire.scale = scale; newFire.position = position; newFire.direction = direction; - §_-Ta§.each(newFire); + var_6.method_21(newFire); },(live - 5 * ft) * 1000); } - §_-DM§(§_-gV§[§_-kf§ - 1] + smokePrototype.lifeTime); + method_127(var_151[var_148 - 1] + smokePrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void @@ -94,32 +94,32 @@ package §function§ pos.y = random() * 10 - 10 * 0.5; pos.z = random() * 10 * 0.5; var rnd:Number = 0.2 + random() * 0.2; - flamePrototype.§_-fs§(this,time,pos,0,rnd,rnd,1,0); + flamePrototype.name_457(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.§_-fs§(this,time,pos,0,rnd,rnd,1,0.5 * flamePrototype.atlas.rangeLength); + flamePrototype.name_457(this,time,pos,0,rnd,rnd,1,0.5 * flamePrototype.atlas.rangeLength); } - private function §_-IJ§(keyTime:Number, time:Number) : void + private function method_200(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.§_-C8§(time,0.7 + random() * 0.5,pos); - smokePrototype.§_-fs§(this,time,pos,random() - 0.5,1,1,1,random() * smokePrototype.atlas.rangeLength); + this.method_199(time,0.7 + random() * 0.5,pos); + smokePrototype.name_457(this,time,pos,random() - 0.5,1,1,1,random() * smokePrototype.atlas.rangeLength); pos.x = 0; pos.y = 0; pos.z = 0; - 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); + this.method_199(time,0.7 + random() * 0.5,pos); + firePrototype.name_457(this,time,pos,random() - 0.5,1,1,0.2,random() * firePrototype.atlas.rangeLength); } } - private function §_-ky§(direction:Vector3D, angle:Number, result:Vector3D) : void + private function method_201(direction:Vector3D, angle:Number, result:Vector3D) : void { var x:Number = random() * 2 - 1; var y:Number = random() * 2 - 1; @@ -135,11 +135,11 @@ package §function§ result.normalize(); } - private function §_-C8§(time:Number, factor:Number, result:Vector3D) : void + private function method_199(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; + result.x += time * windSpeed * var_6.wind.x; + result.y += time * windSpeed * var_6.wind.y; + result.z += time * windSpeed * var_6.wind.z + time * liftSpeed * factor; } } } diff --git a/src/package_37/name_212.as b/src/package_37/name_212.as new file mode 100644 index 0000000..26df0fd --- /dev/null +++ b/src/package_37/name_212.as @@ -0,0 +1,122 @@ +package package_37 +{ + import flash.media.Sound; + import package_15.class_18; + import package_15.name_17; + import package_21.name_86; + import package_38.name_145; + import package_41.class_12; + import package_81.class_20; + + public class name_212 extends class_18 implements class_20 + { + private var shotTextureResource:name_86; + + private var shotSound:Sound; + + private var gameKernel:name_17; + + private var turret:class_12; + + public function name_212(shotTextureResource:name_86, shotSound:Sound) + { + super(); + this.shotTextureResource = shotTextureResource; + this.shotSound = shotSound; + } + + override public function initComponent() : void + { + this.turret = class_12(entity.getComponentStrict(class_12)); + } + + override public function addToGame(gameKernel:name_17) : void + { + this.gameKernel = gameKernel; + } + + override public function removeFromGame(gameKernel:name_17) : void + { + } + + public function method_169(barrelIndex:int, barrelOrigin:name_145, muzzlePosition:name_145, gunDirection:name_145, gunElevationAxis:name_145) : void + { + var simpleWeaponShotEffect:SimpleWeaponShotEffect = SimpleWeaponShotEffect(this.gameKernel.method_33().name_165(SimpleWeaponShotEffect)); + simpleWeaponShotEffect.init(barrelIndex,this.turret,this.shotTextureResource,100); + this.gameKernel.name_5().method_21(simpleWeaponShotEffect); + } + } +} + +import alternativa.engine3d.alternativa3d; +import package_18.class_17; +import package_18.name_375; +import package_18.name_51; +import package_19.class_16; +import package_21.name_86; +import package_25.name_353; +import package_25.name_355; +import package_29.name_391; +import package_3.class_5; +import package_30.name_103; +import package_38.name_145; +import package_41.class_12; + +use namespace alternativa3d; + +class SimpleWeaponShotEffect extends name_353 implements class_17 +{ + private static var muzzlePosition:name_145 = new name_145(); + + private static var gunDirection:name_145 = new name_145(); + + private var turret:class_12; + + private var mesh:class_16; + + private var material:class_5; + + private var timeToLive:int; + + private var barrelIndex:int; + + public function SimpleWeaponShotEffect(objectPool:name_355) + { + super(objectPool); + this.mesh = new name_392(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_12, textureResource:name_86, timeToLive:int) : void + { + this.barrelIndex = barrelIndex; + this.turret = turret; + this.timeToLive = timeToLive; + this.material.diffuseMap = textureResource; + } + + public function addedToRenderSystem(system:name_51) : void + { + system.name_148(this.mesh.geometry); + system.name_394().addChild(this.mesh); + } + + public function play(camera:name_375) : Boolean + { + if(this.timeToLive < 0) + { + return false; + } + this.turret.getGunMuzzleData(this.barrelIndex,muzzlePosition,gunDirection); + name_391.name_393(this.mesh,muzzlePosition,gunDirection,camera.position); + this.timeToLive -= name_103.timeDelta; + return true; + } + + public function destroy() : void + { + this.mesh.alternativa3d::removeFromParent(); + } +} diff --git a/src/package_4/name_215.as b/src/package_4/name_215.as new file mode 100644 index 0000000..f59538c --- /dev/null +++ b/src/package_4/name_215.as @@ -0,0 +1,443 @@ +package package_4 +{ + import flash.ui.Keyboard; + import flash.utils.getTimer; + import package_15.name_53; + import package_18.name_228; + import package_18.name_375; + import package_19.class_16; + import package_2.name_1; + import package_2.name_9; + import package_28.name_112; + import package_29.name_459; + import package_30.name_103; + import package_33.name_130; + import package_38.Matrix3; + import package_38.Matrix4; + import package_38.name_145; + import package_49.name_159; + import package_51.name_169; + import package_58.name_189; + + public class name_215 extends class_22 implements name_228 + { + 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:name_1 = new name_1("cam_fixedpitch",10 * Math.PI / 180,-1,1); + + private static var noPitchCorrection:name_9 = new name_9("cam_nopitchcorrection",1,0,1); + + private static var pitchCorrectionCoeff:name_1 = new name_1("cam_pitchcorrectioncoeff",1,0,10); + + private static var reboundDelay:name_9 = new name_9("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_145 = new name_145(); + + private static var rayDirection:name_145 = new name_145(); + + 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_145 = new name_145(0,0,50); + + private static var currentPosition:name_145 = new name_145(); + + private static var currentRotation:name_145 = new name_145(); + + private static var rayOrigin:name_145 = new name_145(); + + private static var flatDirection:name_145 = new name_145(); + + private static var positionDelta:name_145 = new name_145(); + + private static var rayHit:name_189 = new name_189(); + + private var collisionDetector:name_169; + + private var collisionMask:int; + + private var var_510:Number = 0; + + private var var_511:Number = 0; + + private var locked:Boolean; + + private var position:name_145 = new name_145(); + + private var rotation:name_145 = new name_145(); + + private var targetPosition:name_145 = new name_145(); + + private var targetDirection:name_145 = new name_145(); + + 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:name_112; + + private var var_515:class_16; + + 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_145 = new name_145(); + + private var var_512:name_145 = new name_145(); + + private var rotationMatrix:Matrix4 = new Matrix4(); + + private var var_524:Matrix4 = new Matrix4(); + + private var var_523:name_145 = new name_145(); + + public function name_215(camera:name_375, collisionDetector:name_169, collisionMask:int, input:name_112) + { + 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_202 = 600; + } + + public function method_211() : void + { + } + + public function name_181(target:name_53) : void + { + if(target == null) + { + this.var_515 = null; + } + else + { + this.var_515 = name_159(target.getComponentStrict(name_159)).name_463; + } + } + + 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 = Number(name_103.timeDeltaSeconds); + if(dt > 0.1) + { + dt = 0.1; + } + this.method_205(); + matrix.name_462(targetOffset,this.var_512); + var distanceChangeDir:int = this.input.method_153(KEY_CAMERA_UP) - this.input.method_153(KEY_CAMERA_DOWN) - this.input.method_152(); + if(distanceChangeDir != 0) + { + this.var_517 *= Math.pow(10,distanceChangeDir * 0.02); + } + if(this.input.method_154()) + { + this.var_519 -= this.input.method_149() * 0.01; + this.var_520 -= this.input.method_150() * 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_460(this.var_514,0,this.var_513); + this.rotationMatrix.name_74(matrix.d,matrix.h,matrix.l); + matrix.getAxis(3,rayOrigin); + this.rotationMatrix.name_461(name_145.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.name_462(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 method_202(value:Number) : void + { + this.var_510 = name_459.clamp(value,MIN_HEIGHT,MAX_HEIGHT); + var d:Number = this.method_204(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 method_210(targetPosition:name_145, targetDirection:name_145, 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.name_374(axis,-angle); + this.rotationMatrix.name_461(flatDirection,rayDirection); + minCollisionDistance = this.method_206(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.name_458(minCollisionDistance,rayDirection); + delta = MIN_DISTANCE - minCollisionDistance; + if(this.collisionDetector.raycast(rayOrigin,name_145.Z_AXIS,this.collisionMask,delta,null,rayHit)) + { + delta = rayHit.t - 10; + if(delta < 0) + { + delta = 0; + } + } + result.position.copy(rayOrigin).name_458(delta,name_145.Z_AXIS); + } + else + { + result.position.copy(rayOrigin).name_458(minCollisionDistance,rayDirection); + } + } + else + { + result.position.copy(rayOrigin).name_458(this.var_511,rayDirection); + } + } + + private function method_206(rayOrigin:name_145, rayDirection:name_145, 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 method_205() : void + { + this.method_203(this.var_515.parent,parentMatrix); + this.method_203(this.var_515,matrix); + matrix.append(parentMatrix); + matrix.getAxis(3,this.targetPosition); + this.targetDirection.reset(matrix.b,matrix.f,matrix.j); + } + + private function method_203(object:name_130, matrix:Matrix4) : void + { + matrix.name_460(object.rotationX,object.rotationY,object.rotationZ); + matrix.name_74(object.x,object.y,object.z); + } + + private function method_208() : void + { + var heightChangeDir:int = this.input.method_153(KEY_CAMERA_UP) - this.input.method_153(KEY_CAMERA_DOWN); + if(heightChangeDir != 0) + { + this.method_202 = this.var_510 + heightChangeDir * HEIGHT_CHANGE_STEP; + } + } + + private function method_204(h:Number) : Number + { + var v:Number = 200 - 1750; + var k:Number = (1300 - 600) / (v * v); + return -k * (h - 1750) * (h - 1750) + 1300; + } + + private function method_209(positionError:Number) : Number + { + return 3 * positionError; + } + + private function method_207(angleError:Number, currentSpeed:Number) : Number + { + if(angleError < -maxAngleError) + { + return 3 * (angleError + maxAngleError); + } + if(angleError > maxAngleError) + { + return 3 * (angleError - maxAngleError); + } + return currentSpeed; + } + + private function method_212(value:Number, snapValue:Number, epsilon:Number) : Number + { + if(value > snapValue - epsilon && value < snapValue + epsilon) + { + return snapValue; + } + return value; + } + + private function method_213(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_38.name_145; + +class CameraPositionData +{ + public var t:Number; + + public var extraPitch:Number; + + public var position:name_145 = new name_145(); + + public function CameraPositionData() + { + super(); + } +} diff --git a/src/package_4/name_216.as b/src/package_4/name_216.as new file mode 100644 index 0000000..dd48d7c --- /dev/null +++ b/src/package_4/name_216.as @@ -0,0 +1,473 @@ +package package_4 +{ + import flash.ui.Keyboard; + import flash.utils.getTimer; + import package_15.name_53; + import package_18.name_228; + import package_18.name_375; + import package_19.class_16; + import package_2.name_1; + import package_2.name_9; + import package_28.name_112; + import package_29.name_459; + import package_30.name_103; + import package_33.name_130; + import package_38.Matrix3; + import package_38.Matrix4; + import package_38.name_145; + import package_49.name_159; + import package_51.name_169; + import package_58.name_189; + + public class name_216 extends class_22 implements name_228 + { + 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:name_1 = new name_1("cam_fixedpitch",10 * Math.PI / 180,-1,1); + + private static var noPitchCorrection:name_9 = new name_9("cam_nopitchcorrection",1,0,1); + + private static var pitchCorrectionCoeff:name_1 = new name_1("cam_pitchcorrectioncoeff",1,0,10); + + private static var reboundDelay:name_9 = new name_9("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_145 = new name_145(); + + private static var rayDirection:name_145 = new name_145(); + + 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_145 = new name_145(); + + private static var currentRotation:name_145 = new name_145(); + + private static var rayOrigin:name_145 = new name_145(); + + private static var flatDirection:name_145 = new name_145(); + + private static var positionDelta:name_145 = new name_145(); + + private static var rayHit:name_189 = new name_189(); + + private var collisionDetector:name_169; + + private var collisionMask:int; + + private var var_510:Number = 0; + + private var var_511:Number = 0; + + private var locked:Boolean; + + private var position:name_145 = new name_145(); + + private var rotation:name_145 = new name_145(); + + private var targetPosition:name_145 = new name_145(); + + private var targetDirection:name_145 = new name_145(); + + 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:name_112; + + private var var_515:class_16; + + public function name_216(camera:name_375, collisionDetector:name_169, collisionMask:int, input:name_112) + { + 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_202 = 600; + } + + public function method_211() : void + { + } + + public function name_181(target:name_53) : void + { + if(target == null) + { + this.var_515 = null; + } + else + { + this.var_515 = name_159(target.getComponentStrict(name_159)).name_463; + } + } + + public function method_216() : void + { + noPitchCorrection.value = 1; + } + + public function method_215() : void + { + noPitchCorrection.value = 0; + } + + public function method_219(targetPosition:name_145, targetDirection:name_145) : void + { + this.targetPosition.copy(targetPosition); + this.targetDirection.copy(targetDirection); + this.var_522 = 0; + this.method_210(targetPosition,targetDirection,false,10000,this.cameraPositionData); + this.position.copy(this.cameraPositionData.position); + this.rotation.x = this.method_213(this.cameraPositionData) - 0.5 * Math.PI; + this.rotation.z = Math.atan2(-targetDirection.x,targetDirection.y); + name_230(this.position); + name_282(this.rotation); + } + + public function method_220() : 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 = Number(name_103.timeDeltaSeconds); + if(dt > 0.1) + { + dt = 0.1; + } + this.method_208(); + if(!this.locked) + { + this.method_205(); + } + this.method_210(this.targetPosition,this.targetDirection,true,dt,this.cameraPositionData); + positionDelta.name_466(this.cameraPositionData.position,this.position); + var positionError:Number = Number(positionDelta.length()); + if(positionError > maxPositionError) + { + this.var_526 = this.method_209(positionError - maxPositionError); + } + var distance:Number = this.var_526 * dt; + if(distance > positionError) + { + distance = positionError; + } + positionDelta.normalize().scale(distance); + var targetPitchAngle:Number = this.method_213(this.cameraPositionData); + var targetYawAngle:Number = Number(Math.atan2(-this.targetDirection.x,this.targetDirection.y)); + var currentPitchAngle:Number = Number(name_459.name_465(this.rotation.x + 0.5 * Math.PI)); + var currentYawAngle:Number = Number(name_459.name_465(this.rotation.z)); + var pitchError:Number = Number(name_459.name_464(targetPitchAngle - currentPitchAngle)); + this.var_525 = this.method_207(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 = Number(name_459.name_464(targetYawAngle - currentYawAngle)); + this.var_527 = this.method_207(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.method_212(this.var_526,0,camSpeedThreshold); + this.var_525 = this.method_212(this.var_525,0,camSpeedThreshold); + this.var_527 = this.method_212(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_230(currentPosition); + name_282(currentRotation); + } + + public function method_221(locked:Boolean) : void + { + this.locked = locked; + } + + public function get method_202() : Number + { + return this.var_510; + } + + public function set method_202(value:Number) : void + { + this.var_510 = name_459.clamp(value,MIN_HEIGHT,MAX_HEIGHT); + var d:Number = this.method_204(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_217(targetPosition:name_145, targetDirection:name_145, resultingPosition:name_145, resultingAngles:name_145) : void + { + this.method_210(targetPosition,targetDirection,false,10000,this.cameraPositionData); + resultingAngles.x = this.method_213(this.cameraPositionData) - 0.5 * Math.PI; + resultingAngles.z = Math.atan2(-targetDirection.x,targetDirection.y); + resultingPosition.copy(this.cameraPositionData.position); + } + + private function method_210(targetPosition:name_145, targetDirection:name_145, 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.name_374(axis,-angle); + rotationMatrix.name_461(flatDirection,rayDirection); + minCollisionDistance = this.method_214(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.name_458(minCollisionDistance,rayDirection); + delta = MIN_DISTANCE - minCollisionDistance; + if(this.collisionDetector.raycast(rayOrigin,name_145.Z_AXIS,this.collisionMask,delta,null,rayHit)) + { + delta = rayHit.t - 10; + if(delta < 0) + { + delta = 0; + } + } + result.position.copy(rayOrigin).name_458(delta,name_145.Z_AXIS); + } + else + { + result.position.copy(rayOrigin).name_458(minCollisionDistance,rayDirection); + } + } + else + { + result.position.copy(rayOrigin).name_458(this.var_511,rayDirection); + } + } + + private function method_214(rayOrigin:name_145, rayDirection:name_145, 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 method_205() : 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_130, matrix:Matrix4) : void + { + matrix.name_460(object.rotationX,object.rotationY,object.rotationZ); + matrix.name_74(object.x,object.y,object.z); + } + + private function method_208() : void + { + var heightChangeDir:int = this.input.method_153(KEY_CAMERA_UP) - this.input.method_153(KEY_CAMERA_DOWN); + if(heightChangeDir != 0) + { + this.method_202 = this.var_510 + heightChangeDir * HEIGHT_CHANGE_STEP; + } + } + + private function method_204(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 method_209(positionError:Number) : Number + { + return 3 * positionError; + } + + private function method_207(angleError:Number, currentSpeed:Number) : Number + { + if(angleError < -maxAngleError) + { + return 3 * (angleError + maxAngleError); + } + if(angleError > maxAngleError) + { + return 3 * (angleError - maxAngleError); + } + return currentSpeed; + } + + private function method_212(value:Number, snapValue:Number, epsilon:Number) : Number + { + if(value > snapValue - epsilon && value < snapValue + epsilon) + { + return snapValue; + } + return value; + } + + private function method_213(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 method_218(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_38.name_145; + +class CameraPositionData +{ + public var t:Number; + + public var extraPitch:Number; + + public var position:name_145 = new name_145(); + + public function CameraPositionData() + { + super(); + } +} diff --git a/src/package_42/name_147.as b/src/package_42/name_147.as new file mode 100644 index 0000000..a191c0a --- /dev/null +++ b/src/package_42/name_147.as @@ -0,0 +1,688 @@ +package package_42 +{ + import package_14.name_3; + import package_15.class_18; + import package_15.name_17; + import package_15.name_56; + import package_27.name_352; + import package_27.name_98; + import package_30.name_103; + import package_32.name_180; + import package_38.Matrix3; + import package_38.Matrix4; + import package_38.name_145; + import package_38.name_405; + import package_39.class_21; + import package_39.name_161; + import package_39.name_164; + import package_41.class_12; + import package_41.name_146; + import package_41.name_229; + import package_51.name_276; + import package_54.name_170; + import package_54.name_357; + import package_54.name_406; + import package_54.name_410; + import package_58.name_334; + import package_61.name_186; + import package_61.name_356; + import package_61.name_416; + import package_80.name_311; + import package_82.name_409; + import package_82.name_414; + + public class name_147 extends class_18 implements name_352, name_146, class_21 + { + private static var lastId:int; + + private static const RAY_OFFSET:Number = 5; + + private static var _v:name_145 = new name_145(); + + public var gameKernel:name_17; + + public var body:name_186; + + public var name_261:name_384; + + public var name_266:name_384; + + 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_205:name_145 = new name_145(); + + public var name_258:name_405 = new name_405(); + + public var var_483:Matrix4 = new Matrix4(); + + public var name_389:name_408 = new name_408(); + + public var moveDirection:int; + + public var turnDirection:int; + + private var hull:name_161; + + private var var_485:name_406; + + private var var_424:name_409; + + private var var_426:Boolean; + + private var turret:class_12; + + private var var_481:Vector.; + + private var mass:Number = 1; + + private var power:Number = 0; + + private var reverseBackTurn:Boolean; + + public function name_147(hull:name_161, mass:Number, power:Number) + { + super(); + this.mass = mass; + this.power = power; + this.var_481 = new Vector.(); + this.body = new name_186(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_406(this.body,this.var_476,this.var_479); + this.method_178(hull); + } + + public function method_192() : Vector. + { + return this.var_481; + } + + public function getBody() : name_186 + { + return this.body; + } + + public function method_190(wheelName:String) : Number + { + var lastHitLength:Number = this.name_261.name_415(wheelName,this.name_389.rayLength); + if(lastHitLength < 0) + { + lastHitLength = this.name_266.name_415(wheelName,this.name_389.rayLength); + } + if(lastHitLength < 0) + { + return 0; + } + return this.name_389.name_420 - lastHitLength; + } + + public function method_183() : Number + { + return this.name_261.name_411; + } + + public function method_194() : Number + { + return this.name_266.name_411; + } + + public function method_178(hull:name_161) : void + { + if(hull == null) + { + throw new ArgumentError("Parameter hull is null"); + } + if(this.hull == hull) + { + return; + } + this.hull = hull; + this.method_175(hull.name_396,this.var_475,name_170.TANK,name_170.TANK | name_170.STATIC); + this.method_175(hull.name_397,this.var_476,name_170.TANK,name_170.TANK); + if(this.turret != null) + { + this.turret.setTurretMountPoint(hull.name_395); + } + this.method_172(); + this.method_180(); + var rayZ:Number = this.method_177(); + this.setSuspensionCollisionMask(name_170.TANK | name_170.STATIC); + this.name_389.rayLength = 75; + this.name_389.name_420 = rayZ - hull.name_400.z; + this.name_389.name_423 = 1000; + this.body.material.name_422 = 0.1; + this.setChassisControls(this.moveDirection,this.turnDirection,true); + var bb:name_334 = new name_334(); + this.calculateBoundBox(bb); + this.method_181(bb); + } + + public function name_259(value:Number, immediate:Boolean) : void + { + if(immediate) + { + this.maxTurnSpeed = value; + this.var_478.reset(value); + } + else + { + this.var_478.targetValue = value; + } + } + + public function name_243(value:Number, immediate:Boolean) : void + { + if(immediate) + { + this.maxSpeed = value; + this.var_480.reset(value); + } + else + { + this.var_480.targetValue = value; + } + } + + private function method_177() : Number + { + var matrix:Matrix4 = new Matrix4(); + matrix.name_230(this.hull.name_400); + this.name_261 = new name_384(this.body,matrix,this.hull.name_247); + this.name_266 = new name_384(this.body,matrix,this.hull.name_245); + return this.name_261.rays[0].getRelativeZ(); + } + + private function method_180() : void + { + var dimensions:name_145 = 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_388.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_334) : void + { + var collisionPrimitive:name_276 = null; + var primitiveTransform:Matrix4 = null; + boundBox.name_426(); + for each(collisionPrimitive in this.var_475) + { + primitiveTransform = collisionPrimitive.transform; + collisionPrimitive.transform = collisionPrimitive.localTransform || Matrix4.IDENTITY; + boundBox.name_424(collisionPrimitive.calculateAABB()); + collisionPrimitive.transform = primitiveTransform; + } + } + + private function method_181(boundBox:name_334) : void + { + var z:int = (boundBox.maxZ - boundBox.minZ) / 2; + this.method_171(0,boundBox.maxX,boundBox.maxY,z); + this.method_171(1,boundBox.minX,boundBox.maxY,z); + this.method_171(2,boundBox.minX,boundBox.minY,z); + this.method_171(3,boundBox.maxX,boundBox.minY,z); + } + + private function method_171(index:int, x:Number, y:Number, z:Number) : void + { + var point:name_145 = null; + var clientLog:name_180 = null; + clientLog = name_180(name_3.name_8().name_21(name_180)); + 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_145(); + this.var_481[index] = point; + } + point.reset(x,y,z); + } + + public function method_172() : void + { + var collisionPrimitive:name_276 = null; + var turretPrimitives:Vector. = null; + if(this.body.collisionPrimitives != null) + { + this.body.collisionPrimitives.clear(); + } + this.method_173(this.var_475); + this.method_173(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_173(turretPrimitives); + for each(collisionPrimitive in turretPrimitives) + { + this.var_479.push(collisionPrimitive); + } + } + } + + public function method_187(velocity:name_145) : void + { + this.body.name_429(velocity); + } + + public function method_184(velocity:name_145) : void + { + this.body.name_431(velocity); + } + + public function name_282(orientation:name_405) : void + { + this.body.name_282(orientation); + } + + public function name_74(x:Number, y:Number, z:Number) : void + { + this.body.name_74(x,y,z); + } + + public function method_174(w:Number, x:Number, y:Number, z:Number) : void + { + this.body.method_174(w,x,y,z); + } + + public function method_185(x:Number, y:Number, z:Number) : void + { + var w:Number = 1 - x * x - y * y - z * z; + this.body.method_174(w < 0 ? 0 : Number(Math.sqrt(w)),x,y,z); + } + + public function setLinearVelocityXYZ(x:Number, y:Number, z:Number) : void + { + this.body.name_430(x,y,z); + } + + public function setAngularVelocityXYZ(x:Number, y:Number, z:Number) : void + { + this.body.name_256(x,y,z); + } + + public function name_230(position:name_145) : void + { + this.body.name_230(position); + } + + public function method_188() : void + { + this.body.name_428(); + } + + private function method_176(throttleLeft:Number, throttleRight:Number) : void + { + this.var_477 = throttleLeft; + this.var_482 = throttleRight; + } + + private function method_170(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_170(false,false); + k = 0.8; + throttleLeft -= turnDirection * throttle * k; + throttleRight += turnDirection * throttle * k; + } + else + { + k = 0.4; + if(moveDirection == 1) + { + this.method_170(turnDirection == 1,turnDirection == -1); + if(turnDirection == 1) + { + throttleLeft -= throttle * k; + } + if(turnDirection == -1) + { + throttleRight -= throttle * k; + } + } + else if(reverseBackTurn) + { + this.method_170(turnDirection == -1,turnDirection == 1); + if(turnDirection == -1) + { + throttleLeft += throttle * k; + } + if(turnDirection == 1) + { + throttleRight += throttle * k; + } + } + else + { + this.method_170(turnDirection == 1,turnDirection == -1); + if(turnDirection == 1) + { + throttleLeft += throttle * k; + } + if(turnDirection == -1) + { + throttleRight += throttle * k; + } + } + } + this.method_176(throttleLeft,throttleRight); + return true; + } + return false; + } + + override public function addToGame(gameKernel:name_17) : void + { + this.gameKernel = gameKernel; + } + + override public function removeFromGame(gameKernel:name_17) : void + { + this.var_424.name_371.stop(); + this.removeFromScene(); + gameKernel = null; + } + + override public function initComponent() : void + { + name_229(entity.getComponentStrict(name_229)).name_425(this); + this.method_172(); + this.var_424 = new name_409(); + var respawnState:name_407 = new name_407(this); + this.var_424.name_404(entity,name_164.SET_RESPAWN_STATE,respawnState); + this.var_424.name_404(entity,name_164.SET_ACTIVATING_STATE,new name_417(this)); + this.var_424.name_404(entity,name_164.SET_ACTIVE_STATE,new name_412(this)); + this.var_424.name_404(entity,name_164.SET_DEAD_STATE,new name_419(this)); + this.var_424.name_371 = name_414.INSTANCE; + entity.addEventHandler(name_56.BATTLE_FINISHED,this.method_179); + } + + public function method_189(point:name_145) : void + { + point.copy(this.hull.name_398); + } + + public function method_191() : Matrix4 + { + return this.var_483; + } + + public function setTurret(turret:class_12) : void + { + this.turret = turret; + if(turret != null) + { + this.method_172(); + } + } + + public function method_193(point:name_145) : void + { + point.copy(this.hull.name_395); + } + + public function updateBeforeSimulation(physicsStep:int) : void + { + var d:Number = NaN; + var limit:Number = NaN; + var dt:Number = Number(name_103.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_356 = this.body.scene; + var weight:Number = this.mass * world.name_403.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_261.name_413(dt,k * this.var_477,this.maxSpeed,slipTerm,weight,this.name_389,this.var_484); + this.name_266.name_413(dt,k * this.var_482,this.maxSpeed,slipTerm,weight,this.name_389,this.var_486); + var baseMatrix:Matrix3 = this.body.baseMatrix; + if(this.name_266.name_418 >= this.name_266.numRays >> 1 || this.name_261.name_418 >= this.name_261.numRays >> 1) + { + d = world.name_403.x * baseMatrix.c + world.name_403.y * baseMatrix.g + world.name_403.z * baseMatrix.k; + limit = Math.SQRT1_2 * world.name_403.length(); + if(d < -limit || d > limit) + { + _v.x = (baseMatrix.c * d - world.name_403.x) * this.mass; + _v.y = (baseMatrix.g * d - world.name_403.y) * this.mass; + _v.z = (baseMatrix.k * d - world.name_403.z) * this.mass; + this.body.name_427(_v); + } + } + } + + public function updateAfterSimulation(physicsStep:int) : void + { + } + + public function interpolate(interpolationCoeff:Number) : void + { + this.body.interpolate(interpolationCoeff,this.name_205,this.name_258); + this.name_258.normalize(); + this.name_258.toMatrix4(this.var_483); + this.var_483.name_230(this.name_205); + } + + public function method_182(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_276 = 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_261.collisionMask = collisionMask; + this.name_266.collisionMask = collisionMask; + } + + public function addToScene() : void + { + var physicsSystem:name_98 = null; + var physicsScene:name_356 = null; + var collisionDetector:name_357 = null; + if(!this.var_426) + { + physicsSystem = this.gameKernel.method_37(); + physicsScene = physicsSystem.name_157(); + collisionDetector = name_357(physicsScene.collisionDetector); + physicsScene.name_435(this.body); + collisionDetector.name_434(this.var_485); + physicsSystem.addControllerBefore(this); + this.var_426 = true; + } + } + + public function removeFromScene() : void + { + var physicsSystem:name_98 = null; + var physicsScene:name_356 = null; + var collisionDetector:name_357 = null; + if(this.var_426) + { + physicsSystem = this.gameKernel.method_37(); + physicsScene = physicsSystem.name_157(); + collisionDetector = name_357(physicsScene.collisionDetector); + physicsScene.name_436(this.body); + collisionDetector.name_433(this.var_485); + physicsSystem.removeControllerBefore(this); + this.var_426 = false; + } + } + + private function method_186(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_416.name_432(value,this.hull.name_388.hs,this.body.invInertia); + } + } + + private function method_175(geometryData:Vector., primitives:Vector., collisionGroup:int, collisionMask:int) : void + { + var boxData:name_410 = null; + var primitive:name_311 = null; + primitives.length = 0; + for each(boxData in geometryData) + { + primitive = new name_311(boxData.hs,collisionGroup,collisionMask); + primitive.localTransform = boxData.matrix.clone(); + primitive.body = this.body; + primitives.push(primitive); + } + } + + private function method_173(primitives:Vector.) : void + { + var collisionPrimitive:name_276 = null; + for each(collisionPrimitive in primitives) + { + this.body.name_421(collisionPrimitive,collisionPrimitive.localTransform); + } + } + + private function method_179(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_42/name_384.as b/src/package_42/name_384.as new file mode 100644 index 0000000..28e3c5a --- /dev/null +++ b/src/package_42/name_384.as @@ -0,0 +1,151 @@ +package package_42 +{ + import package_2.name_1; + import package_29.name_459; + import package_38.Matrix4; + import package_38.name_145; + import package_39.name_240; + import package_61.name_186; + + public class name_384 + { + private static var conSpeedDamping:name_1 = new name_1("track_damping",0,0,1000); + + public var chassisBody:name_186; + + public var rays:Vector.; + + public var numRays:int; + + public var name_418:int; + + public var name_411:Number = 0; + + private var var_624:Object; + + public function name_384(chassisBody:name_186, matrix:Matrix4, wheels:Vector.) + { + super(); + this.chassisBody = chassisBody; + this.method_278(matrix,wheels); + } + + public function set collisionMask(value:int) : void + { + for(var i:int = 0; i < this.numRays; i++) + { + name_377(this.rays[i]).collisionMask = value; + } + } + + private function method_279(tankWheel:name_240) : Boolean + { + var parts:Array = tankWheel.name.split("_"); + return parts[1] == "1"; + } + + public function method_278(matrix:Matrix4, wheels:Vector.) : void + { + var position:name_145; + var i:int; + var tankWheel:name_240 = null; + var mainWheel:name_240 = null; + var ray:name_377 = null; + var mainWheels:Vector. = new Vector.(); + for each(tankWheel in wheels) + { + if(this.method_279(tankWheel)) + { + mainWheels.push(tankWheel); + } + } + if(mainWheels.length == 0) + { + throw new Error("No main wheels found"); + } + mainWheels.sort(function(a:name_240, b:name_240):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_145(); + for(i = 0; i < this.numRays; i++) + { + mainWheel = mainWheels[i]; + matrix.name_462(mainWheel.position,position); + ray = new name_377(this.chassisBody,position,new name_145(0,0,-1)); + this.rays[i] = ray; + this.var_624[mainWheel.name] = ray; + } + } + + public function name_415(name:String, maxRayLength:Number) : Number + { + var ray:name_377 = this.var_624[name]; + if(ray == null) + { + return -1; + } + return !!ray.name_382 ? Number(ray.name_385.t) : maxRayLength; + } + + public function name_413(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, weight:Number, data:name_408, brake:Boolean) : void + { + var i:int = 0; + var springCoeff:Number = NaN; + var mid:int = 0; + var ray:name_377 = null; + this.name_418 = 0; + for(i = 0; i < this.numRays; ) + { + if(name_377(this.rays[i]).name_517(data.rayLength)) + { + ++this.name_418; + } + i++; + } + if(this.name_418 > 0) + { + this.name_411 = 0; + springCoeff = 0.5 * weight / (this.name_418 * (data.rayLength - data.name_420)); + throttle *= this.numRays / this.name_418; + mid = this.numRays >> 1; + if(Boolean(this.numRays & 1 == 0)) + { + for(i = 0; i < this.numRays; i++) + { + ray = this.rays[i]; + ray.name_427(dt,throttle,maxSpeed,i <= mid ? slipTerm : int(-slipTerm),springCoeff,data,brake); + this.name_411 += ray.name_515; + } + } + else + { + for(i = 0; i < this.numRays; ) + { + ray = this.rays[i]; + ray.name_427(dt,throttle,maxSpeed,i < mid ? slipTerm : (i > mid ? int(-slipTerm) : 0),springCoeff,data,brake); + this.name_411 += ray.name_515; + i++; + } + } + this.name_411 /= this.name_418; + } + else + { + this.name_411 = name_459.name_516(this.name_411,0,conSpeedDamping.value * dt); + } + } + } +} + diff --git a/src/package_42/name_417.as b/src/package_42/name_417.as new file mode 100644 index 0000000..970f338 --- /dev/null +++ b/src/package_42/name_417.as @@ -0,0 +1,118 @@ +package package_42 +{ + import package_15.name_17; + import package_27.name_98; + import package_39.name_555; + import package_54.name_170; + + public class name_417 extends class_27 + { + private var var_644:ContactFilter; + + public function name_417(component:name_147) + { + super(component); + this.var_644 = new ContactFilter(); + } + + override public function start(data:*) : void + { + var gameKernel:name_17 = null; + var physicsSystem:name_98 = null; + component.addToScene(); + component.setDetailedCollisionGroup(name_170.TANK); + component.setSuspensionCollisionMask(name_170.STATIC); + component.body.postCollisionFilter = this.var_644; + var callback:name_555 = name_555(data); + if(callback != null) + { + gameKernel = component.gameKernel; + this.var_644.initCallback(callback); + gameKernel.getLogicSystem1().addLogicUnit(this.var_644); + physicsSystem = gameKernel.method_37(); + physicsSystem.addControllerAfter(this.var_644); + physicsSystem.addControllerBefore(this.var_644); + } + } + + override public function stop() : void + { + var gameKernel:name_17 = null; + var physicsSystem:name_98 = null; + component.body.postCollisionFilter = null; + if(this.var_644.callback != null) + { + gameKernel = component.gameKernel; + gameKernel.getLogicSystem1().removeLogicUnit(this.var_644); + physicsSystem = gameKernel.method_37(); + physicsSystem.removeControllerAfter(this.var_644); + physicsSystem.removeControllerBefore(this.var_644); + this.var_644.callback = null; + } + } + } +} + +import flash.utils.getTimer; +import package_24.name_367; +import package_27.name_352; +import package_30.name_103; +import package_39.name_555; +import package_51.class_28; +import package_61.name_186; + +class ContactFilter implements class_28, name_352, name_367 +{ + private static const MIN_TRANSPARENCY_DURATION:int = 3000; + + public var callback:name_555; + + private var numContacts:int; + + private var canActivate:Boolean; + + private var startTime:int; + + public function ContactFilter() + { + super(); + } + + public function initCallback(callback:name_555) : void + { + this.canActivate = false; + this.startTime = getTimer(); + this.callback = callback; + } + + public function acceptBodiesCollision(body1:name_186, body2:name_186) : 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_556(); + } + } + + public function interpolate(interpolationCoeff:Number) : void + { + } + + public function runLogic() : void + { + if(name_103.time - this.startTime > MIN_TRANSPARENCY_DURATION) + { + this.canActivate = true; + } + } +} diff --git a/src/? var?/TankHullParser.as b/src/package_43/TankHullParser.as similarity index 84% rename from src/? var?/TankHullParser.as rename to src/package_43/TankHullParser.as index 883caac..73d75ba 100644 --- a/src/? var?/TankHullParser.as +++ b/src/package_43/TankHullParser.as @@ -1,4 +1,4 @@ -package § var§ +package package_43 { import alternativa.engine3d.core.Object3D; import alternativa.engine3d.objects.Mesh; @@ -93,25 +93,25 @@ package § var§ private function parseMountPoint(mesh:Mesh, tankHull:TankHull) : void { - tankHull.§_-Rj§.reset(mesh.x,mesh.y,mesh.z); - tankHull.§_-EN§.copy(tankHull.§_-Rj§); + tankHull.name_395.reset(mesh.x,mesh.y,mesh.z); + tankHull.name_398.copy(tankHull.name_395); } private function parseBody(mesh:Mesh, tankHull:TankHull) : void { - tankHull.§_-eh§ = TankPartParsingUtils.parseCollisionBoxData(mesh); + tankHull.name_388 = TankPartParsingUtils.parseCollisionBoxData(mesh); } private function parseDetailedGeometry(mesh:Mesh, tankHull:TankHull) : void { var boxData:BoxData = TankPartParsingUtils.parseCollisionBoxData(mesh); - tankHull.§_-AE§.push(boxData); + tankHull.name_396.push(boxData); } private function parseSimpleGeometry(mesh:Mesh, tankHull:TankHull) : void { var boxData:BoxData = TankPartParsingUtils.parseCollisionBoxData(mesh); - tankHull.§_-KR§.push(boxData); + tankHull.name_397.push(boxData); } private function parseSuspensionRay(mesh:Mesh, tankHull:TankHull) : void @@ -128,11 +128,11 @@ package § var§ 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); + tankHull.name_247.push(tankWheel); } else { - tankHull.§_-M4§.push(tankWheel); + tankHull.name_245.push(tankWheel); } } @@ -151,24 +151,24 @@ package § var§ } if(skin.name.toLowerCase().charAt(0) == "l") { - tankHull.§_-Ei§ = skin; + tankHull.name_261 = skin; } else { - tankHull.§_-iA§ = skin; + tankHull.name_266 = skin; } } private function prepareAll(tankHull:TankHull) : void { - var skinMatrix:Matrix4 = tankHull.§_-eh§.matrix.clone(); + var skinMatrix:Matrix4 = tankHull.name_388.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); + skinMatrix.getAxis(3,tankHull.name_400); + tankHull.name_395.transform4(skinMatrix); + this.prepareCollisionGeometry(tankHull.name_396,skinMatrix); + this.prepareCollisionGeometry(tankHull.name_397,skinMatrix); + tankHull.name_401 = this.prepareSuspensionPoints(leftSprings,skinMatrix); + tankHull.name_399 = this.prepareSuspensionPoints(rightSprings,skinMatrix); leftSprings = null; rightSprings = null; } diff --git a/src/? var?/TankPartParser.as b/src/package_43/TankPartParser.as similarity index 96% rename from src/? var?/TankPartParser.as rename to src/package_43/TankPartParser.as index 7bc22c3..652e098 100644 --- a/src/? var?/TankPartParser.as +++ b/src/package_43/TankPartParser.as @@ -1,4 +1,4 @@ -package § var§ +package package_43 { import alternativa.engine3d.core.Object3D; import alternativa.engine3d.loaders.ParserA3D; diff --git a/src/? var?/TankPartParsingUtils.as b/src/package_43/TankPartParsingUtils.as similarity index 95% rename from src/? var?/TankPartParsingUtils.as rename to src/package_43/TankPartParsingUtils.as index 1149165..de9249b 100644 --- a/src/? var?/TankPartParsingUtils.as +++ b/src/package_43/TankPartParsingUtils.as @@ -1,4 +1,4 @@ -package § var§ +package package_43 { import alternativa.engine3d.core.BoundBox; import alternativa.engine3d.objects.Mesh; diff --git a/src/? var?/TankTurretParser.as b/src/package_43/TankTurretParser.as similarity index 80% rename from src/? var?/TankTurretParser.as rename to src/package_43/TankTurretParser.as index d38621a..725671b 100644 --- a/src/? var?/TankTurretParser.as +++ b/src/package_43/TankTurretParser.as @@ -1,4 +1,4 @@ -package § var§ +package package_43 { import alternativa.engine3d.objects.Mesh; import alternativa.math.Vector3; @@ -34,17 +34,17 @@ package § var§ private function parseFlagMountPoint(mesh:Mesh, tankTurret:TankTurret) : void { - tankTurret.§_-G3§.reset(mesh.x,mesh.y,mesh.z); + tankTurret.var_421.reset(mesh.x,mesh.y,mesh.z); } private function parseTurretBox(mesh:Mesh, tankTurret:TankTurret) : void { - tankTurret.§_-Of§.push(TankPartParsingUtils.parseCollisionBoxData(mesh)); + tankTurret.var_423.push(TankPartParsingUtils.parseCollisionBoxData(mesh)); } private function parseMuzzle(mesh:Mesh, tankTurret:TankTurret) : void { - tankTurret.§_-O3§.push(new Vector3(mesh.x,mesh.y,mesh.z)); + tankTurret.var_422.push(new Vector3(mesh.x,mesh.y,mesh.z)); } } } diff --git a/src/?_-9Z?/?_-q4?.as b/src/package_46/class_26.as similarity index 62% rename from src/?_-9Z?/?_-q4?.as rename to src/package_46/class_26.as index 45f45cc..45ccee4 100644 --- a/src/?_-9Z?/?_-q4?.as +++ b/src/package_46/class_26.as @@ -1,22 +1,22 @@ -package §_-9Z§ +package package_46 { - 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 package_18.class_17; + import package_18.name_375; + import package_18.name_51; + import package_2.name_1; + import package_25.name_353; + import package_25.name_355; + import package_38.Matrix3; + import package_38.name_145; + import package_41.class_12; + import package_41.name_146; + import package_48.name_162; + import package_51.name_169; + import package_54.name_170; + import package_58.name_189; - public class §_-q4§ extends §_-HE§ implements §_-fX§ + public class class_26 extends name_353 implements class_17 { private static const ANIMATION_FPS:Number = 30; @@ -26,110 +26,110 @@ package §_-9Z§ private static const BARREL_INDEX:Number = 0; - private static var particleBaseSize:§_-Ju§ = new §_-Ju§("flame_base_size",100,1,1000); + private static var particleBaseSize:name_1 = new name_1("flame_base_size",100,1,1000); private static var matrix:Matrix3 = new Matrix3(); - private static var particlePosition:§_-bj§ = new §_-bj§(); + private static var particlePosition:name_145 = new name_145(); - private static var barrelOrigin:§_-bj§ = new §_-bj§(); + private static var barrelOrigin:name_145 = new name_145(); - private static var particleDirection:§_-bj§ = new §_-bj§(); + private static var particleDirection:name_145 = new name_145(); - private static var xAxis:§_-bj§ = new §_-bj§(); + private static var xAxis:name_145 = new name_145(); - private static var sourcePosition:§_-bj§ = new §_-bj§(); + private static var sourcePosition:name_145 = new name_145(); - private static var rayHit:§_-jr§ = new §_-jr§(); + private static var rayHit:name_189 = new name_189(); private var range:Number; - private var §_-n7§:Number; + private var var_641:Number; - private var §_-er§:Number; + private var var_639:Number; private var maxParticles:int; private var particleSpeed:Number; - private var sfxData:§_-Fj§; + private var sfxData:name_175; - private var §_-lV§:Vector. = new Vector.(); + private var var_637:Vector. = new Vector.(); - private var §_-Jx§:int; + private var var_638:int; private var numFrames:int; - private var collisionDetector:§_-fx§; + private var collisionDetector:name_169; private var dead:Boolean; - private var §_-ny§:int; + private var var_640:int; - private var §_-jJ§:int; + private var var_642:int; - private var collisionGroup:int = §_-HM§.WEAPON | §_-HM§.STATIC; + private var collisionGroup:int = name_170.WEAPON | name_170.STATIC; - private var origin:§_-bj§ = new §_-bj§(); + private var origin:name_145 = new name_145(); - private var direction:§_-bj§ = new §_-bj§(); + private var direction:name_145 = new name_145(); - private var sideAxis:§_-bj§ = new §_-bj§(); + private var sideAxis:name_145 = new name_145(); - private var §_-6z§:Number; + private var var_636:Number; - private var renderSystem:§_-1I§; + private var renderSystem:name_51; - private var turret:§_-3e§; + private var turret:class_12; - private var chassis:§_-Is§; + private var chassis:name_146; - private var flame:§_-7Z§; + private var flame:name_554; private var position:Vector3D = new Vector3D(); private var dir:Vector3D = new Vector3D(); - public function §_-q4§(objectPool:§_-Va§) + public function class_26(objectPool:name_355) { super(objectPool); } - public function addedToRenderSystem(system:§_-1I§) : void + public function addedToRenderSystem(system:name_51) : void { this.renderSystem = system; this.turret.getGunData(BARREL_INDEX,this.origin,this.direction,this.sideAxis); - 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.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.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.§_-9p§(this.flame); + this.renderSystem.name_281(this.flame); } - public function init(turret:§_-3e§, flamethrowerSmokeAtlas:§_-S8§, flamethrowerFlashAtlas:§_-S8§, flamethrowerFireAtlas:§_-S8§) : void + public function init(turret:class_12, flamethrowerSmokeAtlas:name_162, flamethrowerFlashAtlas:name_162, flamethrowerFireAtlas:name_162) : void { this.turret = turret; - this.flame = new §_-7Z§(flamethrowerSmokeAtlas,flamethrowerFireAtlas,flamethrowerFlashAtlas,15); + this.flame = new name_554(flamethrowerSmokeAtlas,flamethrowerFireAtlas,flamethrowerFlashAtlas,15); this.flame.scale = 5 * 1.4; this.flame.name = "firebird"; } - public function play(camera:§_-RE§) : Boolean + public function play(camera:name_375) : Boolean { if(this.flame == null) { return false; } this.turret.getGunData(BARREL_INDEX,this.origin,this.direction,this.sideAxis); - 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.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.flame.position = this.position; this.dir.x = this.direction.x; this.dir.y = this.direction.y; @@ -142,39 +142,39 @@ package §_-9Z§ { } - public function §_-Bz§() : void + public function method_301() : void { this.flame.stop(); this.flame = null; } - private function §_-XT§() : void + private function method_299() : void { var offset:Number = Math.random() * 50; - if(!this.collisionDetector.§_-cX§(this.origin,this.direction,§_-HM§.STATIC,this.§_-6z§ + offset,null,rayHit)) + if(!this.collisionDetector.name_246(this.origin,this.direction,name_170.STATIC,this.var_636 + offset,null,rayHit)) { - 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§; + 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; particleDirection.copy(this.direction); xAxis.copy(this.sideAxis); - this.§_-0X§(sourcePosition,particleDirection,xAxis,offset); + this.method_298(sourcePosition,particleDirection,xAxis,offset); } } - private function §_-0X§(sourcePosition:§_-bj§, direction:§_-bj§, sideAxis:§_-bj§, offset:Number) : void + private function method_298(sourcePosition:name_145, direction:name_145, sideAxis:name_145, offset:Number) : void { var particle:Particle = Particle.getParticle(); particle.currFrame = Math.random() * this.numFrames; var angle:Number = 2 * Math.PI * Math.random(); - matrix.§_-OB§(direction,angle); + matrix.name_374(direction,angle); sideAxis.transform3(matrix); - var d:Number = this.range * this.§_-er§ * Math.random(); + var d:Number = this.range * this.var_639 * 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:§_-bj§ = this.chassis.getBody().state.velocity; + var bodyVelocity:name_145 = 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 §_-9Z§ particle.x = sourcePosition.x + offset * direction.x; particle.y = sourcePosition.y + offset * direction.y; particle.z = sourcePosition.z + offset * direction.z; - var _loc9_:* = this.§_-Jx§++; - this.§_-lV§[_loc9_] = particle; + var _loc9_:* = this.var_638++; + this.var_637[_loc9_] = particle; } - private function §_-90§(index:int) : void + private function method_300(index:int) : void { - var particle:Particle = this.§_-lV§[index]; - this.§_-lV§[index] = this.§_-lV§[--this.§_-Jx§]; - this.§_-lV§[this.§_-Jx§] = null; + var particle:Particle = this.var_637[index]; + this.var_637[index] = this.var_637[--this.var_638]; + this.var_637[this.var_638] = null; particle.dispose(); } } } -import §_-8D§.§_-OX§; -import §_-Ex§.§_-hW§; -import §_-nl§.§_-bj§; import flash.geom.ColorTransform; -import §function§.§_-ok§; +import package_19.name_372; +import package_33.name_130; +import package_37.name_153; +import package_38.name_145; -class Particle extends §_-hW§ +class Particle extends name_372 { private static var INITIAL_POOL_SIZE:int = 20; @@ -210,7 +210,7 @@ class Particle extends §_-hW§ private static var poolIndex:int = -1; - public var velocity:§_-bj§ = new §_-bj§(); + public var velocity:name_145 = new name_145(); public var distance:Number = 0; @@ -240,10 +240,10 @@ class Particle extends §_-hW§ pool[_loc1_] = this; } - public function updateColorTransofrm(maxDistance:Number, points:Vector.<§_-ok§>) : void + public function updateColorTransofrm(maxDistance:Number, points:Vector.) : void { - var point1:§_-ok§ = null; - var point2:§_-ok§ = null; + var point1:name_153 = null; + var point2:name_153 = null; var i:int = 0; if(points == null) { diff --git a/src/?_-aF?/?_-B0?.as b/src/package_48/class_24.as similarity index 84% rename from src/?_-aF?/?_-B0?.as rename to src/package_48/class_24.as index 0675e93..5382f37 100644 --- a/src/?_-aF?/?_-B0?.as +++ b/src/package_48/class_24.as @@ -1,8 +1,8 @@ -package §_-aF§ +package package_48 { import flash.utils.*; - public class §_-B0§ + public class class_24 { private static var initialized:Boolean = false; @@ -190,16 +190,16 @@ package §_-aF§ private static const CLAMP:String = "clamp"; - private var §_-0e§:ByteArray = null; + private var var_584:ByteArray = null; - private var §_-iF§:String = ""; + private var var_582:String = ""; - private var §_-9J§:Boolean = false; + private var var_583:Boolean = false; - public function §_-B0§(debugging:Boolean = false) + public function class_24(debugging:Boolean = false) { super(); - this.§_-9J§ = debugging; + this.var_583 = debugging; if(!initialized) { init(); @@ -281,12 +281,12 @@ package §_-aF§ public function get error() : String { - return this.§_-iF§; + return this.var_582; } - public function get §_-Ky§() : ByteArray + public function get method_235() : ByteArray { - return this.§_-0e§; + return this.var_584; } public function assemble(mode:String, source:String, verbose:Boolean = false) : ByteArray @@ -332,8 +332,8 @@ package §_-aF§ var index:uint = 0; var byteStr:String = null; var start:uint = uint(getTimer()); - this.§_-0e§ = new ByteArray(); - this.§_-iF§ = ""; + this.var_584 = new ByteArray(); + this.var_582 = ""; var isFrag:Boolean = false; if(mode == FRAGMENT) { @@ -341,19 +341,19 @@ package §_-aF§ } else if(mode != VERTEX) { - this.§_-iF§ = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\"."; + this.var_582 = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\"."; } - this.§_-Ky§.endian = Endian.LITTLE_ENDIAN; - this.§_-Ky§.writeByte(160); - this.§_-Ky§.writeUnsignedInt(1); - this.§_-Ky§.writeByte(161); - this.§_-Ky§.writeByte(isFrag ? 1 : 0); + this.method_235.endian = Endian.LITTLE_ENDIAN; + this.method_235.writeByte(160); + this.method_235.writeUnsignedInt(1); + this.method_235.writeByte(161); + this.method_235.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.§_-iF§ == "") + while(i < lng && this.var_582 == "") { line = new String(lines[i]); startcomment = int(line.search("//")); @@ -369,7 +369,7 @@ package §_-aF§ } opCode = line.match(/^\w{3}/ig); opFound = OPMAP[opCode[0]]; - if(this.§_-9J§) + if(this.var_583) { trace(opFound); } @@ -388,7 +388,7 @@ package §_-aF§ nest--; if(nest < 0) { - this.§_-iF§ = "error: conditional closes without open."; + this.var_582 = "error: conditional closes without open."; break; } } @@ -397,30 +397,30 @@ package §_-aF§ nest++; if(nest > MAX_NESTING) { - this.§_-iF§ = "error: nesting to deep, maximum allowed is " + MAX_NESTING + "."; + this.var_582 = "error: nesting to deep, maximum allowed is " + MAX_NESTING + "."; break; } } if(Boolean(opFound.flags & OP_FRAG_ONLY) && !isFrag) { - this.§_-iF§ = "error: opcode is only allowed in fragment programs."; + this.var_582 = "error: opcode is only allowed in fragment programs."; break; } if(verbose) { trace("emit opcode=" + opFound); } - this.§_-Ky§.writeUnsignedInt(opFound.emitCode); + this.method_235.writeUnsignedInt(opFound.emitCode); nops++; if(nops > MAX_OPCODES) { - this.§_-iF§ = "error: too many opcodes. maximum is " + MAX_OPCODES + "."; + this.var_582 = "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.§_-iF§ = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + "."; + this.var_582 = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + "."; break; } badreg = false; @@ -441,13 +441,13 @@ package §_-aF§ } res = regs[j].match(/^\b[A-Za-z]{1,2}/ig); regFound = REGMAP[res[0]]; - if(this.§_-9J§) + if(this.var_583) { trace(regFound); } if(regFound == null) { - this.§_-iF§ = "error: could not parse operand " + j + " (" + regs[j] + ")."; + this.var_582 = "error: could not parse operand " + j + " (" + regs[j] + ")."; badreg = true; break; } @@ -455,20 +455,20 @@ package §_-aF§ { if(!(regFound.flags & REG_FRAG)) { - this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs."; + this.var_582 = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs."; badreg = true; break; } if(isRelative) { - this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") relative adressing not allowed in fragment programs."; + this.var_582 = "error: register operand " + j + " (" + regs[j] + ") relative adressing not allowed in fragment programs."; badreg = true; break; } } else if(!(regFound.flags & REG_VERT)) { - this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs."; + this.var_582 = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs."; badreg = true; break; } @@ -481,7 +481,7 @@ package §_-aF§ } if(regFound.range < regidx) { - this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + "."; + this.var_582 = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + "."; badreg = true; break; } @@ -494,7 +494,7 @@ package §_-aF§ reloffset = 0; if(isDest && isRelative) { - this.§_-iF§ = "error: relative can not be destination"; + this.var_582 = "error: relative can not be destination"; badreg = true; break; } @@ -537,7 +537,7 @@ package §_-aF§ regFoundRel = REGMAP[relname[0]]; if(regFoundRel == null) { - this.§_-iF§ = "error: bad index register"; + this.var_582 = "error: bad index register"; badreg = true; break; } @@ -545,7 +545,7 @@ package §_-aF§ selmatch = relreg[0].match(/(\.[xyzw]{1,1})/); if(selmatch.length == 0) { - this.§_-iF§ = "error: bad index register select"; + this.var_582 = "error: bad index register select"; badreg = true; break; } @@ -561,7 +561,7 @@ package §_-aF§ } if(reloffset < 0 || reloffset > 255) { - this.§_-iF§ = "error: index offset " + reloffset + " out of bounds. [0..255]"; + this.var_582 = "error: index offset " + reloffset + " out of bounds. [0..255]"; badreg = true; break; } @@ -576,9 +576,9 @@ package §_-aF§ } if(isDest) { - this.§_-Ky§.writeShort(regidx); - this.§_-Ky§.writeByte(regmask); - this.§_-Ky§.writeByte(regFound.emitCode); + this.method_235.writeShort(regidx); + this.method_235.writeByte(regmask); + this.method_235.writeByte(regFound.emitCode); pad -= 32; } else if(isSampler) @@ -614,10 +614,10 @@ package §_-aF§ samplerbits |= uint(optfound.mask) << uint(optfound.flag); } } - this.§_-Ky§.writeShort(regidx); - this.§_-Ky§.writeByte(int(bias * 8)); - this.§_-Ky§.writeByte(0); - this.§_-Ky§.writeUnsignedInt(samplerbits); + this.method_235.writeShort(regidx); + this.method_235.writeByte(int(bias * 8)); + this.method_235.writeByte(0); + this.method_235.writeUnsignedInt(samplerbits); if(verbose) { trace(" bits: " + (samplerbits - 5)); @@ -628,21 +628,21 @@ package §_-aF§ { if(j == 0) { - this.§_-Ky§.writeUnsignedInt(0); + this.method_235.writeUnsignedInt(0); pad -= 32; } - 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); + this.method_235.writeShort(regidx); + this.method_235.writeByte(reloffset); + this.method_235.writeByte(regmask); + this.method_235.writeByte(regFound.emitCode); + this.method_235.writeByte(reltype); + this.method_235.writeShort(isRelative ? relsel | 1 << 15 : 0); pad -= 64; } } for(j = 0; j < pad; ) { - this.§_-Ky§.writeByte(0); + this.method_235.writeByte(0); j += 8; } if(badreg) @@ -652,16 +652,16 @@ package §_-aF§ } i++; } - if(this.§_-iF§ != "") + if(this.var_582 != "") { - this.§_-iF§ += "\n at line " + i + " " + lines[i]; - this.§_-Ky§.length = 0; - trace(this.§_-iF§); + this.var_582 += "\n at line " + i + " " + lines[i]; + this.method_235.length = 0; + trace(this.var_582); } - if(this.§_-9J§) + if(this.var_583) { dbgLine = "generated bytecode:"; - agalLength = uint(this.§_-Ky§.length); + agalLength = uint(this.method_235.length); for(index = 0; index < agalLength; index++) { if(!(index % 16)) @@ -672,7 +672,7 @@ package §_-aF§ { dbgLine += " "; } - byteStr = this.§_-Ky§[index].toString(16); + byteStr = this.method_235[index].toString(16); if(byteStr.length < 2) { byteStr = "0" + byteStr; @@ -685,7 +685,7 @@ package §_-aF§ { trace("AGALMiniAssembler.assemble time: " + (getTimer() - start) / 1000 + "s"); } - return this.§_-Ky§; + return this.method_235; } } } diff --git a/src/package_48/name_77.as b/src/package_48/name_77.as new file mode 100644 index 0000000..03f21bc --- /dev/null +++ b/src/package_48/name_77.as @@ -0,0 +1,232 @@ +package package_48 +{ + import alternativa.engine3d.alternativa3d; + import flash.geom.Vector3D; + import package_33.name_129; + import package_33.name_334; + + use namespace alternativa3d; + + public class name_77 + { + 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_334; + + alternativa3d var next:name_77; + + alternativa3d var name_326:name_77; + + alternativa3d var system:name_336; + + alternativa3d var startTime:Number; + + alternativa3d var lifeTime:Number = 1.7976931348623157e+308; + + alternativa3d var particleList:Particle; + + alternativa3d var aabb:name_334; + + 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_77() + { + var i:int = 0; + this.alternativa3d::aabb = new name_334(); + 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_329(this.alternativa3d::system.alternativa3d::name_335() - 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_327(this.alternativa3d::system.alternativa3d::name_335() - this.alternativa3d::startTime); + } + } + + public function stop() : void + { + var time:Number = this.alternativa3d::system.alternativa3d::name_335() - 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_6() : name_336 + { + return this.alternativa3d::system; + } + + protected function get method_125() : name_129 + { + 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_126(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_127(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_329(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_327(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_328(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_5/A3DMapBuilder.as b/src/package_5/A3DMapBuilder.as new file mode 100644 index 0000000..633d6f4 --- /dev/null +++ b/src/package_5/A3DMapBuilder.as @@ -0,0 +1,444 @@ +package package_5 +{ + import alternativa.engine3d.alternativa3d; + import flash.display.BitmapData; + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.utils.ByteArray; + import package_1.name_13; + import package_12.name_54; + import package_19.class_16; + import package_19.name_134; + import package_19.name_472; + import package_21.name_152; + import package_21.name_172; + import package_21.name_84; + import package_21.name_85; + import package_21.name_86; + import package_29.name_473; + import package_29.name_90; + import package_3.name_475; + import package_33.name_121; + import package_33.name_130; + import package_51.name_276; + import package_54.name_170; + import package_83.name_470; + import package_83.name_471; + import package_83.name_474; + + 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_84 = new name_84(new BitmapData(1,1,false,8355711)); + + private static var fakeBumpTextureResource:name_84 = new name_84(new BitmapData(1,1,false,8355839)); + + private var var_348:Vector. = new Vector.(); + + private var var_569:Vector.; + + private var var_16:Vector.; + + private var var_398:Vector. = new Vector.(); + + private var var_570:name_90; + + private var mapFiles:name_54; + + private var collector:Vector.; + + private var var_571:name_172 = new name_172(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_348; + } + + 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_398; + } + + public function method_234(mapFiles:name_54) : void + { + var geometryFileName:String = null; + this.mapFiles = mapFiles; + var mapGeometryFiles:Vector. = this.method_231(mapFiles); + this.collector = new Vector.(); + this.var_570 = new name_90(); + for each(geometryFileName in mapGeometryFiles) + { + this.var_570.addTask(new GeometryBuildTask(mapFiles.name_160(geometryFileName),this.collector)); + } + this.var_570.addEventListener(Event.COMPLETE,this.method_227); + this.var_570.run(); + } + + private function method_227(event:Event) : void + { + var surface:name_134 = null; + var object:name_130 = null; + var mesh:class_16 = null; + var meshName:String = null; + var decal:name_472 = null; + var resourceCache:Object = {}; + for each(object in this.collector) + { + mesh = object as class_16; + if(mesh != null) + { + meshName = mesh.name.toLowerCase(); + if(meshName.indexOf("decal") >= 0) + { + decal = new name_472(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_398.push(decal); + } + mesh.calculateBoundBox(); + this.method_229(mesh,resourceCache); + this.var_348.push(mesh); + } + } + this.collector = null; + this.var_570 = null; + this.method_230(this.mapFiles.name_160(TREES_FILE)); + this.method_233(this.mapFiles.name_160(MARKET_FILE)); + this.method_232(this.mapFiles.name_160(BEAMS_FILE)); + this.method_226(this.mapFiles.name_160(LIGHTS_FILE)); + this.method_228(this.mapFiles.name_160(PHYSICS_FILE)); + dispatchEvent(new Event(Event.COMPLETE)); + } + + private function method_233(data:ByteArray) : void + { + var parser:name_470 = null; + var resourceCache:Object = null; + var object:name_130 = null; + var mesh:class_16 = null; + var i:int = 0; + var surface:name_134 = null; + var material:name_471 = null; + var diffName:String = null; + var diffuse:name_86 = null; + var bump:name_86 = null; + var opacity:name_86 = null; + var emission:name_86 = null; + var reflection:name_86 = null; + var envMaterial:name_475 = null; + if(data != null) + { + parser = new name_470(); + parser.method_132(data); + resourceCache = {}; + for each(object in parser.objects) + { + mesh = object as class_16; + if(mesh != null) + { + for(i = 0; i < mesh.name_477; ) + { + surface = mesh.name_476(i); + if(surface.material != null) + { + material = name_471(surface.material); + diffName = name_85(material.textures["diffuse"]).url; + diffuse = this.name_167(material.textures["diffuse"],resourceCache,this.mapFiles); + bump = this.name_167(material.textures["bump"],resourceCache,this.mapFiles); + opacity = this.name_167(material.textures["transparent"],resourceCache,this.mapFiles); + emission = this.name_167(material.textures["emission"],resourceCache,this.mapFiles); + if(diffName.indexOf("vetrino01") >= 0) + { + reflection = this.name_167(new name_85("vetrino_rfl.atf"),resourceCache,this.mapFiles); + envMaterial = new name_475(diffuse,this.var_571,null,reflection,emission,opacity); + envMaterial.reflection = 0.4; + surface.material = envMaterial; + } + else + { + surface.material = new name_11(diffuse,emission,1,opacity); + } + } + i++; + } + this.var_348.push(mesh); + } + } + } + } + + private function method_229(mesh:class_16, resourceCache:Object) : void + { + var surface:name_134 = null; + var parserMaterial:name_471 = null; + var diffuseTextureResource:name_86 = null; + var emissionTextureResource:name_86 = null; + var opacityTextureResource:name_86 = null; + var material:name_11 = null; + for each(surface in mesh.alternativa3d::var_92) + { + parserMaterial = surface.material as name_471; + if(parserMaterial != null) + { + diffuseTextureResource = this.name_167(parserMaterial.textures["diffuse"],resourceCache,this.mapFiles); + emissionTextureResource = this.name_167(parserMaterial.textures["emission"],resourceCache,this.mapFiles); + opacityTextureResource = this.name_167(parserMaterial.textures["transparent"],resourceCache,this.mapFiles); + if(emissionTextureResource == null) + { + material = new name_11(diffuseTextureResource,fakeEmissionTextureResource,0,opacityTextureResource); + } + else + { + material = new name_11(diffuseTextureResource,emissionTextureResource,1,opacityTextureResource); + } + surface.material = material; + } + } + } + + private function method_231(mapFiles:name_54) : 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 method_230(data:ByteArray) : void + { + var parser:name_470 = null; + var resourceCache:Object = null; + var object:name_130 = null; + var mesh:class_16 = null; + var i:int = 0; + var surface:name_134 = null; + var material:name_471 = null; + var diffuse:name_86 = null; + var bump:name_86 = null; + var opacity:name_86 = null; + var trMaterial:name_13 = null; + if(data != null) + { + parser = new name_470(); + parser.method_132(data); + resourceCache = {}; + for each(object in parser.objects) + { + mesh = object as class_16; + if(mesh != null) + { + for(i = 0; i < mesh.name_477; ) + { + surface = mesh.name_476(i); + if(surface.material != null) + { + material = name_471(surface.material); + diffuse = this.name_167(material.textures["diffuse"],resourceCache,this.mapFiles); + bump = this.name_167(material.textures["bump"],resourceCache,this.mapFiles); + opacity = this.name_167(material.textures["transparent"],resourceCache,this.mapFiles); + trMaterial = new name_13(diffuse,fakeBumpTextureResource,null,null,opacity); + trMaterial.var_26 = 0; + trMaterial.alphaThreshold = 0.2; + surface.material = trMaterial; + } + i++; + } + this.var_348.push(mesh); + } + } + } + } + + private function method_232(data:ByteArray) : void + { + var object:name_130 = null; + var mesh:class_16 = null; + var i:int = 0; + var surface:name_134 = null; + var material:name_471 = null; + var diffuse:name_86 = null; + var opacity:name_86 = null; + if(data == null) + { + return; + } + var parser:name_470 = new name_470(); + parser.method_132(data); + var resourceCache:Object = {}; + for each(object in parser.objects) + { + mesh = object as class_16; + if(mesh != null) + { + for(i = 0; i < mesh.name_477; ) + { + surface = mesh.name_476(i); + if(surface.material != null) + { + material = name_471(surface.material); + diffuse = this.name_167(material.textures["diffuse"],resourceCache,this.mapFiles); + opacity = this.name_167(material.textures["transparent"],resourceCache,this.mapFiles); + surface.material = new name_2(opacity); + } + i++; + } + this.var_348.push(mesh); + } + } + } + + private function method_226(lightsData:ByteArray) : void + { + var parserCollada:name_474 = null; + var numLights:uint = 0; + var i:int = 0; + if(lightsData != null) + { + parserCollada = new name_474(); + parserCollada.method_132(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_121(this.var_16[i]).alternativa3d::removeFromParent(); + } + } + } + + private function name_167(fileTextureResource:name_85, resourceCache:Object, mapFiles:name_54) : name_152 + { + var textureName:String = null; + var resource:name_152 = 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_160(textureName) != null) + { + resource = resourceCache[textureName]; + if(resource == null) + { + textureData = mapFiles.name_160(textureName); + resource = new name_152(textureData); + resourceCache[textureName] = resource; + } + return resource; + } + trace("[WARN] texture not found:",fileTextureResource.url.toLowerCase()); + } + return null; + } + + private function method_228(a3dData:ByteArray) : void + { + var object:name_130 = null; + var objectName:String = null; + var parserA3D:name_470 = new name_470(); + parserA3D.method_132(a3dData); + this.var_569 = new Vector.(); + for each(object in parserA3D.objects) + { + if(object is class_16) + { + objectName = object.name.toLowerCase(); + if(objectName.indexOf("tri") == 0) + { + name_473.name_478(class_16(object),this.var_569,name_170.STATIC,COLLISION_MASK); + } + else if(objectName.indexOf("box") == 0) + { + name_473.name_480(class_16(object),this.var_569,name_170.STATIC,COLLISION_MASK); + } + else if(objectName.indexOf("plane") == 0) + { + name_473.name_479(class_16(object),this.var_569,name_170.STATIC,COLLISION_MASK); + } + } + } + } + } +} + +import flash.utils.ByteArray; +import flash.utils.setTimeout; +import package_29.class_3; +import package_33.name_130; +import package_83.name_470; + +class GeometryBuildTask extends class_3 +{ + 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_130 = null; + var parser:name_470 = new name_470(); + parser.method_132(this.data); + for each(object in parser.objects) + { + this.collector.push(object); + } + setTimeout(name_88,0); + } +} diff --git a/src/?_-RG?/?_-pE?.as b/src/package_5/name_11.as similarity index 51% rename from src/?_-RG?/?_-pE?.as rename to src/package_5/name_11.as index e249fc5..6cff2d8 100644 --- a/src/?_-RG?/?_-pE?.as +++ b/src/package_5/name_11.as @@ -1,22 +1,5 @@ -package §_-RG§ +package package_5 { - 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; @@ -25,12 +8,29 @@ package §_-RG§ import flash.display3D.VertexBuffer3D; import flash.utils.Dictionary; import flash.utils.getDefinitionByName; + import package_19.name_134; + import package_21.name_136; + import package_21.name_84; + import package_21.name_86; + import package_3.name_139; + import package_3.name_29; + import package_33.name_117; + import package_33.name_121; + import package_33.name_123; + import package_33.name_126; + import package_33.name_129; + import package_33.name_130; + import package_33.name_135; + import package_34.name_116; + import package_34.name_119; + import package_34.name_128; + import package_36.name_137; use namespace alternativa3d; - public class §_-pE§ extends §_-b9§ + public class name_11 extends name_139 { - private static var fogTexture:§_-pi§; + private static var fogTexture:name_86; public static const DISABLED:int = 0; @@ -54,43 +54,43 @@ package §_-RG§ private static var _programs:Dictionary = new Dictionary(); - private static const getLightMapProcedure:§_-Xk§ = §_-Xk§.§_-En§(["#v0=vUV1","#s0=sLightMap","tex o0, v0, s0 <2d,repeat,linear,mipnone>"],"getLightMap"); + private static const getLightMapProcedure:name_116 = name_116.name_144(["#v0=vUV1","#s0=sLightMap","tex o0, v0, s0 <2d,repeat,linear,mipnone>"],"getLightMap"); - private static const minShadowProcedure:§_-Xk§ = §_-Xk§.§_-En§(["min o0, o0, i0"],"minShadowProc"); + private static const minShadowProcedure:name_116 = name_116.name_144(["min o0, o0, i0"],"minShadowProc"); - private static const mulShadowProcedure:§_-Xk§ = §_-Xk§.§_-En§(["mul o0, o0, i0"],"mulShadowProc"); + private static const mulShadowProcedure:name_116 = name_116.name_144(["mul o0, o0, i0"],"mulShadowProc"); - 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 applyLightMapProcedure:name_116 = name_116.name_144(["add i1, i1, i1","mul i0.xyz, i0.xyz, i1.xyz","mov o0, i0"],"applyLightMap"); - private static const _passLightMapUVProcedure:§_-Xk§ = new §_-Xk§(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUV"); + private static const _passLightMapUVProcedure:name_116 = new name_116(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUV"); - 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 passSimpleFogConstProcedure:name_116 = new name_116(["#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:§_-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 applyLightMapAndSimpleFogProcedure:name_116 = new name_116(["#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:§_-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 passAdvancedFogConstProcedure:name_116 = new name_116(["#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:§_-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"); + private static const applyLightMapAndAdvancedFogProcedure:name_116 = new name_116(["#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:§_-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"); + alternativa3d static const outputOpacity:name_116 = new name_116(["#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:§_-Xk§ = new §_-Xk§(["#v0=vUV","#a0=aUV","mov v0, a0"],"passUVProcedure"); + private static const passUVProcedure:name_116 = new name_116(["#v0=vUV","#a0=aUV","mov v0, a0"],"passUVProcedure"); - 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 diffuseProcedure:name_116 = new name_116(["#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:§_-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"); + private static const diffuseOpacityProcedure:name_116 = new name_116(["#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:§_-pi§; + public var diffuseMap:name_86; - public var lightMap:§_-pi§; + public var lightMap:name_86; public var lightMapChannel:uint = 0; - public var opacityMap:§_-pi§; + public var opacityMap:name_86; public var alpha:Number = 1; - public function §_-pE§(diffuseMap:§_-pi§, lightMap:§_-pi§, lightMapChannel:uint = 0, opacityMap:§_-pi§ = null) + public function name_11(diffuseMap:name_86, lightMap:name_86, lightMapChannel:uint = 0, opacityMap:name_86 = null) { super(); this.diffuseMap = diffuseMap; @@ -99,7 +99,7 @@ package §_-RG§ this.opacityMap = opacityMap; } - public static function §_-RX§(texture:§_-pi§) : void + public static function method_52(texture:name_86) : void { fogTexture = texture; } @@ -107,112 +107,112 @@ package §_-RG§ override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void { super.alternativa3d::fillResources(resources,resourceType); - if(this.diffuseMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) + if(this.diffuseMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.diffuseMap)) as Class,resourceType))) { resources[this.diffuseMap] = true; } - if(this.lightMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) + if(this.lightMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.lightMap)) as Class,resourceType))) { resources[this.lightMap] = true; } - if(this.opacityMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) + if(this.opacityMap != null && Boolean(name_29.alternativa3d::name_133(getDefinitionByName(getQualifiedClassName(this.opacityMap)) as Class,resourceType))) { resources[this.opacityMap] = true; } } - private function final(targetObject:§_-OX§, shadows:Vector.<§_-ZC§>, numShadows:int) : MapMaterialProgram + private function method_22(targetObject:name_130, shadows:Vector., numShadows:int) : MapMaterialProgram { var i:int = 0; - var renderer:§_-ZC§ = null; - var sProc:§_-Xk§ = null; - var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX); + var renderer:name_137 = null; + var sProc:name_116 = null; + var vertexLinker:name_119 = new name_119(Context3DProgramType.VERTEX); var positionVar:String = "aPosition"; - vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE); + vertexLinker.name_125(positionVar,name_128.ATTRIBUTE); if(targetObject.alternativa3d::transformProcedure != null) { - positionVar = alternativa3d::_-di(targetObject.alternativa3d::transformProcedure,vertexLinker); + positionVar = alternativa3d::name_131(targetObject.alternativa3d::transformProcedure,vertexLinker); } - vertexLinker.§_-on§(alternativa3d::_projectProcedure); - vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar); - vertexLinker.§_-on§(passUVProcedure); - vertexLinker.§_-on§(_passLightMapUVProcedure); + vertexLinker.name_120(alternativa3d::_projectProcedure); + vertexLinker.name_122(alternativa3d::_projectProcedure,positionVar); + vertexLinker.name_120(passUVProcedure); + vertexLinker.name_120(_passLightMapUVProcedure); if(fogMode == SIMPLE) { - vertexLinker.§_-on§(passSimpleFogConstProcedure); - vertexLinker.§_-FS§(passSimpleFogConstProcedure,positionVar); + vertexLinker.name_120(passSimpleFogConstProcedure); + vertexLinker.name_122(passSimpleFogConstProcedure,positionVar); } else if(fogMode == ADVANCED) { - vertexLinker.§_-LU§("tProjected"); - vertexLinker.§_-qd§(alternativa3d::_projectProcedure,"tProjected"); - vertexLinker.§_-on§(passAdvancedFogConstProcedure); - vertexLinker.§_-FS§(passAdvancedFogConstProcedure,positionVar,"tProjected"); + vertexLinker.name_125("tProjected"); + vertexLinker.name_127(alternativa3d::_projectProcedure,"tProjected"); + vertexLinker.name_120(passAdvancedFogConstProcedure); + vertexLinker.name_122(passAdvancedFogConstProcedure,positionVar,"tProjected"); } - 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"); + var fragmentLinker:name_119 = new name_119(Context3DProgramType.FRAGMENT); + var procedure:name_116 = this.opacityMap == null ? diffuseProcedure : diffuseOpacityProcedure; + fragmentLinker.name_125("tOutColor"); + fragmentLinker.name_120(procedure); + fragmentLinker.name_127(procedure,"tOutColor"); if(shadows != null) { - fragmentLinker.§_-LU§("tLight"); - fragmentLinker.§_-on§(getLightMapProcedure); - fragmentLinker.§_-qd§(getLightMapProcedure,"tLight"); - fragmentLinker.§_-LU§("tShadow"); + fragmentLinker.name_125("tLight"); + fragmentLinker.name_120(getLightMapProcedure); + fragmentLinker.name_127(getLightMapProcedure,"tLight"); + fragmentLinker.name_125("tShadow"); for(i = 0; i < numShadows; i++) { renderer = shadows[i]; - vertexLinker.§_-on§(renderer.getVShader(i)); + vertexLinker.name_120(renderer.getVShader(i)); sProc = renderer.getFShader(i); - fragmentLinker.§_-on§(sProc); - fragmentLinker.§_-qd§(sProc,"tShadow"); - if(renderer.alternativa3d::_-cu) + fragmentLinker.name_120(sProc); + fragmentLinker.name_127(sProc,"tShadow"); + if(renderer.alternativa3d::name_306) { - fragmentLinker.§_-on§(mulShadowProcedure); - fragmentLinker.§_-FS§(mulShadowProcedure,"tShadow"); - fragmentLinker.§_-qd§(mulShadowProcedure,"tLight"); + fragmentLinker.name_120(mulShadowProcedure); + fragmentLinker.name_122(mulShadowProcedure,"tShadow"); + fragmentLinker.name_127(mulShadowProcedure,"tLight"); } else { - fragmentLinker.§_-on§(minShadowProcedure); - fragmentLinker.§_-FS§(minShadowProcedure,"tShadow"); - fragmentLinker.§_-qd§(minShadowProcedure,"tLight"); + fragmentLinker.name_120(minShadowProcedure); + fragmentLinker.name_122(minShadowProcedure,"tShadow"); + fragmentLinker.name_127(minShadowProcedure,"tLight"); } } } else { - fragmentLinker.§_-LU§("tLight"); - fragmentLinker.§_-on§(getLightMapProcedure); - fragmentLinker.§_-qd§(getLightMapProcedure,"tLight"); + fragmentLinker.name_125("tLight"); + fragmentLinker.name_120(getLightMapProcedure); + fragmentLinker.name_127(getLightMapProcedure,"tLight"); } if(fogMode == SIMPLE) { - fragmentLinker.§_-on§(applyLightMapAndSimpleFogProcedure); - fragmentLinker.§_-FS§(applyLightMapAndSimpleFogProcedure,"tOutColor","tLight"); + fragmentLinker.name_120(applyLightMapAndSimpleFogProcedure); + fragmentLinker.name_122(applyLightMapAndSimpleFogProcedure,"tOutColor","tLight"); } else if(fogMode == ADVANCED) { - fragmentLinker.§_-on§(applyLightMapAndAdvancedFogProcedure); - fragmentLinker.§_-FS§(applyLightMapAndAdvancedFogProcedure,"tOutColor","tLight"); + fragmentLinker.name_120(applyLightMapAndAdvancedFogProcedure); + fragmentLinker.name_122(applyLightMapAndAdvancedFogProcedure,"tOutColor","tLight"); } else { - fragmentLinker.§_-on§(applyLightMapProcedure); - fragmentLinker.§_-FS§(applyLightMapProcedure,"tOutColor","tLight"); + fragmentLinker.name_120(applyLightMapProcedure); + fragmentLinker.name_122(applyLightMapProcedure,"tOutColor","tLight"); } - fragmentLinker.§_-NA§(vertexLinker); + fragmentLinker.name_140(vertexLinker); return new MapMaterialProgram(vertexLinker,fragmentLinker); } - override alternativa3d function collectDraws(camera:§_-be§, surface:§_-a2§, geometry:§_-gA§, lights:Vector.<§_-Jo§>, lightsLength:int, objectRenderPriority:int = -1) : void + override alternativa3d function collectDraws(camera:name_135, surface:name_134, geometry:name_136, lights:Vector., lightsLength:int, objectRenderPriority:int = -1) : void { var i:int = 0; - var renderer:§_-ZC§ = null; - var lm:§_-jw§ = null; + var renderer:name_137 = null; + var lm:name_129 = null; var dist:Number = NaN; - var cLocal:§_-jw§ = null; + var cLocal:name_129 = null; var halfW:Number = NaN; var leftX:Number = NaN; var leftY:Number = NaN; @@ -233,14 +233,14 @@ package §_-RG§ { return; } - 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]); + var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.POSITION); + var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.TEXCOORDS[0]); + var lightMapUVBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(name_117.TEXCOORDS[this.lightMapChannel]); if(positionBuffer == null || uvBuffer == null || lightMapUVBuffer == null) { return; } - var object:§_-OX§ = surface.alternativa3d::object; + var object:name_130 = surface.alternativa3d::object; var optionsPrograms:Vector. = _programs[object.alternativa3d::transformProcedure]; if(optionsPrograms == null) { @@ -257,17 +257,17 @@ package §_-RG§ var program:MapMaterialProgram = optionsPrograms[index]; if(program == null) { - program = this.final(object,object.alternativa3d::shadowRenderers,numShadows); + program = this.method_22(object,object.alternativa3d::shadowRenderers,numShadows); program.upload(camera.alternativa3d::context3D); optionsPrograms[index] = program; } - 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]]); + var drawUnit:name_123 = camera.alternativa3d::renderer.alternativa3d::name_138(object,program.program,geometry.alternativa3d::name_78,surface.indexBegin,surface.numTriangles,program); + drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[name_117.POSITION],name_117.alternativa3d::FORMATS[name_117.POSITION]); + drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[0]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[0]]); + drawUnit.alternativa3d::setVertexBufferAt(program.aUV1,lightMapUVBuffer,geometry.alternativa3d::_attributesOffsets[name_117.TEXCOORDS[this.lightMapChannel]],name_117.alternativa3d::FORMATS[name_117.TEXCOORDS[this.lightMapChannel]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); - drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::_-Ry(program.cAlpha,0,0,0,this.alpha); + drawUnit.alternativa3d::name_141(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform); + drawUnit.alternativa3d::name_124(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 §_-RG§ { 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); + drawUnit.alternativa3d::name_143(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist); + drawUnit.alternativa3d::name_124(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity); } if(fogMode == SIMPLE) { - drawUnit.alternativa3d::_-Ry(program.cFogColor,fogColorR,fogColorG,fogColorB); + drawUnit.alternativa3d::name_124(program.cFogColor,fogColorR,fogColorG,fogColorB); } if(fogMode == ADVANCED) { @@ -300,7 +300,7 @@ package §_-RG§ { bmd.setPixel(i,0,i / 32 * 255 << 16); } - fogTexture = new §_-b1§(bmd); + fogTexture = new name_84(bmd); fogTexture.upload(camera.alternativa3d::context3D); } cLocal = camera.alternativa3d::localToGlobalTransform; @@ -323,27 +323,27 @@ package §_-RG§ rightY /= len; 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::name_124(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::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.TRANSPARENT_SORT)); + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(name_126.TRANSPARENT_SORT)); } else { - camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(§_-WR§.OPAQUE)); + camera.alternativa3d::renderer.alternativa3d::name_132(drawUnit,objectRenderPriority >= 0 ? objectRenderPriority : int(name_126.OPAQUE)); } } } } -import §_-M8§.§_-hR§; -import §_-Vh§.§_-RB§; +import package_3.class_6; +import package_34.name_119; -class MapMaterialProgram extends §_-RB§ +class MapMaterialProgram extends class_6 { public var aPosition:int; @@ -371,21 +371,21 @@ class MapMaterialProgram extends §_-RB§ public var sFogTexture:int; - public function MapMaterialProgram(vertex:§_-hR§, fragment:§_-hR§) + public function MapMaterialProgram(vertex:name_119, fragment:name_119) { super(vertex,fragment); - 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"); + this.aPosition = vertex.name_118("aPosition"); + this.aUV = vertex.name_118("aUV"); + this.aUV1 = vertex.name_118("aUV1"); + this.cProjMatrix = vertex.name_118("cProjMatrix"); + this.cAlpha = fragment.name_118("cAlpha"); + this.sTexture = fragment.name_118("sTexture"); + this.sLightMap = fragment.name_118("sLightMap"); + this.sOpacity = fragment.name_118("sOpacity"); + this.cFogSpace = vertex.name_118("cFogSpace"); + this.cFogRange = fragment.name_118("cFogRange"); + this.cFogColor = fragment.name_118("cFogColor"); + this.cFogConsts = fragment.name_118("cFogConsts"); + this.sFogTexture = fragment.name_118("sFogTexture"); } } diff --git a/src/?_-1e?/CollisionKdTree2D.as b/src/package_51/CollisionKdTree2D.as similarity index 67% rename from src/?_-1e?/CollisionKdTree2D.as rename to src/package_51/CollisionKdTree2D.as index a2418f0..91806e6 100644 --- a/src/?_-1e?/CollisionKdTree2D.as +++ b/src/package_51/CollisionKdTree2D.as @@ -1,10 +1,10 @@ -package §_-1e§ +package package_51 { - import §_-KA§.§_-FW§; + import package_58.name_334; public class CollisionKdTree2D { - private static const nodeBoundBoxThreshold:§_-FW§ = new §_-FW§(); + private static const nodeBoundBoxThreshold:name_334 = new name_334(); private static const splitCoordsX:Vector. = new Vector.(); @@ -18,53 +18,53 @@ package §_-1e§ public var threshold:Number = 0.1; - public var §_-eV§:int = 1; + public var var_681:int = 1; - public var parentTree:§_-D-§; + public var parentTree:name_492; - public var parentNode:§_-oZ§; + public var parentNode:name_481; - public var §_-5H§:§_-oZ§; + public var name_486:name_481; - private var §_-94§:int; + private var var_678:int; - private var §_-ou§:Number; + private var var_680:Number; - private var §_-P5§:Number; + private var var_677:Number; - public function CollisionKdTree2D(parentTree:§_-D-§, parentNode:§_-oZ§) + public function CollisionKdTree2D(parentTree:name_492, parentNode:name_481) { super(); this.parentTree = parentTree; this.parentNode = parentNode; } - public function §_-J9§() : void + public function name_499() : void { - 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.name_486 = new name_481(); + this.name_486.boundBox = this.parentNode.boundBox.clone(); + this.name_486.indices = new Vector.(); + var numObjects:int = int(this.parentNode.var_674.length); + for(var i:int = 0; i < numObjects; this.name_486.indices[i] = this.parentNode.var_674[i],i++) { } - this.splitNode(this.§_-5H§); + this.splitNode(this.name_486); splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0; } - private function splitNode(node:§_-oZ§) : void + private function splitNode(node:name_481) : void { var objects:Vector. = null; var i:int = 0; var j:int = 0; - var nodeBoundBox:§_-FW§ = null; + var nodeBoundBox:name_334 = null; var numSplitCoordsX:int = 0; var numSplitCoordsY:int = 0; var numSplitCoordsZ:int = 0; - var bb:§_-FW§ = null; + var bb:name_334 = null; var min:Number = NaN; var max:Number = NaN; - if(node.indices.length <= this.§_-eV§) + if(node.indices.length <= this.var_681) { return; } @@ -77,7 +77,7 @@ package §_-1e§ nodeBoundBoxThreshold.maxY = nodeBoundBox.maxY - this.threshold; nodeBoundBoxThreshold.maxZ = nodeBoundBox.maxZ - this.threshold; var doubleThreshold:Number = this.threshold * 2; - var staticBoundBoxes:Vector.<§_-FW§> = this.parentTree.staticBoundBoxes; + var staticBoundBoxes:Vector. = this.parentTree.staticBoundBoxes; var numObjects:int = int(objects.length); for(i = 0; i < numObjects; ) { @@ -123,8 +123,8 @@ package §_-1e§ } i++; } - this.§_-94§ = -1; - this.§_-ou§ = 1e+308; + this.var_678 = -1; + this.var_680 = 1e+308; _nodeBB[0] = nodeBoundBox.minX; _nodeBB[1] = nodeBoundBox.minY; _nodeBB[2] = nodeBoundBox.minZ; @@ -133,44 +133,44 @@ package §_-1e§ _nodeBB[5] = nodeBoundBox.maxZ; if(this.parentNode.axis != 0) { - this.§_-1k§(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); + this.method_332(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); } if(this.parentNode.axis != 1) { - this.§_-1k§(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); + this.method_332(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); } if(this.parentNode.axis != 2) { - this.§_-1k§(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); + this.method_332(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); } - if(this.§_-94§ < 0) + if(this.var_678 < 0) { return; } - 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(); + 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_483 = new name_481(); + node.name_483.parent = node; + node.name_483.boundBox = nodeBoundBox.clone(); + node.name_484 = new name_481(); + node.name_484.parent = node; + node.name_484.boundBox = nodeBoundBox.clone(); if(axisX) { - node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§; + node.name_483.boundBox.maxX = node.name_484.boundBox.minX = this.var_677; } else if(axisY) { - node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§; + node.name_483.boundBox.maxY = node.name_484.boundBox.minY = this.var_677; } else { - node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§; + node.name_483.boundBox.maxZ = node.name_484.boundBox.minZ = this.var_677; } - var coordMin:Number = this.§_-P5§ - this.threshold; - var coordMax:Number = this.§_-P5§ + this.threshold; + var coordMin:Number = this.var_677 - this.threshold; + var coordMax:Number = this.var_677 + this.threshold; for(i = 0; i < numObjects; ) { bb = staticBoundBoxes[objects[i]]; @@ -180,11 +180,11 @@ package §_-1e§ { if(min < coordMin) { - if(node.§_-Gm§.indices == null) + if(node.name_483.indices == null) { - node.§_-Gm§.indices = new Vector.(); + node.name_483.indices = new Vector.(); } - node.§_-Gm§.indices.push(objects[i]); + node.name_483.indices.push(objects[i]); objects[i] = -1; } } @@ -192,11 +192,11 @@ package §_-1e§ { if(max > coordMax) { - if(node.§_-75§.indices == null) + if(node.name_484.indices == null) { - node.§_-75§.indices = new Vector.(); + node.name_484.indices = new Vector.(); } - node.§_-75§.indices.push(objects[i]); + node.name_484.indices.push(objects[i]); objects[i] = -1; } } @@ -219,17 +219,17 @@ package §_-1e§ { node.indices = null; } - if(node.§_-Gm§.indices != null) + if(node.name_483.indices != null) { - this.splitNode(node.§_-Gm§); + this.splitNode(node.name_483); } - if(node.§_-75§.indices != null) + if(node.name_484.indices != null) { - this.splitNode(node.§_-75§); + this.splitNode(node.name_484); } } - private function §_-1k§(node:§_-oZ§, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void + private function method_332(node:name_481, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void { var currSplitCoord:Number = NaN; var minCoord:Number = NaN; @@ -242,11 +242,11 @@ package §_-1e§ var numObjects:int = 0; var j:int = 0; var cost:Number = NaN; - var boundBox:§_-FW§ = null; + var boundBox:name_334 = 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.<§_-FW§> = this.parentTree.staticBoundBoxes; + var staticBoundBoxes:Vector. = this.parentTree.staticBoundBoxes; for(var i:int = 0; i < numSplitCoords; i++) { currSplitCoord = splitCoords[i]; @@ -288,11 +288,11 @@ package §_-1e§ j++; } cost = areaNegative * numNegative + areaPositive * numPositive; - if(!conflict && cost < this.§_-ou§ && numNegative > 0 && numPositive > 0) + if(!conflict && cost < this.var_680 && numNegative > 0 && numPositive > 0) { - this.§_-94§ = axis; - this.§_-ou§ = cost; - this.§_-P5§ = currSplitCoord; + this.var_678 = axis; + this.var_680 = cost; + this.var_677 = currSplitCoord; } for(j = i + 1; j < numSplitCoords; ) { diff --git a/src/?_-1e?/?_-D-?.as b/src/package_51/name_492.as similarity index 68% rename from src/?_-1e?/?_-D-?.as rename to src/package_51/name_492.as index d720ce3..907f32c 100644 --- a/src/?_-1e?/?_-D-?.as +++ b/src/package_51/name_492.as @@ -1,10 +1,10 @@ -package §_-1e§ +package package_51 { - import §_-KA§.§_-FW§; + import package_58.name_334; - public class §_-D-§ + public class name_492 { - private static const nodeBoundBoxThreshold:§_-FW§ = new §_-FW§(); + private static const nodeBoundBoxThreshold:name_334 = new name_334(); private static const splitCoordsX:Vector. = new Vector.(); @@ -18,59 +18,59 @@ package §_-1e§ public var threshold:Number = 0.1; - public var §_-eV§:int = 1; + public var var_681:int = 1; - public var §_-5H§:§_-oZ§; + public var name_486:name_481; - public var §_-8A§:Vector.<§_-Nh§>; + public var name_490:Vector.; - public var §_-TO§:int; + public var var_679:int; - public var staticBoundBoxes:Vector.<§_-FW§> = new Vector.<§_-FW§>(); + public var staticBoundBoxes:Vector. = new Vector.(); - private var §_-94§:int; + private var var_678:int; - private var §_-P5§:Number; + private var var_677:Number; - private var §_-ou§:Number; + private var var_680:Number; - public function §_-D-§() + public function name_492() { super(); } - public function §_-J9§(collisionPrimitives:Vector.<§_-Nh§>, boundBox:§_-FW§ = null) : void + public function name_499(collisionPrimitives:Vector., boundBox:name_334 = null) : void { - 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++) + var child:name_276 = null; + var childBoundBox:name_334 = null; + this.name_490 = collisionPrimitives.concat(); + this.var_679 = this.name_490.length; + this.name_486 = new name_481(); + this.name_486.indices = new Vector.(); + var rootNodeBoundBox:name_334 = this.name_486.boundBox = boundBox != null ? boundBox : new name_334(); + for(var i:int = 0; i < this.var_679; i++) { - child = this.§_-8A§[i]; + child = this.name_490[i]; childBoundBox = this.staticBoundBoxes[i] = child.calculateAABB(); - rootNodeBoundBox.§_-EH§(childBoundBox); - this.§_-5H§.indices[i] = i; + rootNodeBoundBox.name_424(childBoundBox); + this.name_486.indices[i] = i; } - this.staticBoundBoxes.length = this.§_-TO§; - this.splitNode(this.§_-5H§); + this.staticBoundBoxes.length = this.var_679; + this.splitNode(this.name_486); splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0; } - private function splitNode(node:§_-oZ§) : void + private function splitNode(node:name_481) : void { - var nodeBoundBox:§_-FW§ = null; + var nodeBoundBox:name_334 = null; var i:int = 0; var j:int = 0; - var boundBox:§_-FW§ = null; + var boundBox:name_334 = null; var min:Number = NaN; var max:Number = NaN; var indices:Vector. = node.indices; var numPrimitives:int = int(indices.length); - if(numPrimitives <= this.§_-eV§) + if(numPrimitives <= this.var_681) { return; } @@ -183,45 +183,45 @@ package §_-1e§ } i++; } - this.§_-94§ = -1; - this.§_-ou§ = 1e+308; + this.var_678 = -1; + this.var_680 = 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.§_-1k§(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); - this.§_-1k§(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); - this.§_-1k§(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); - if(this.§_-94§ < 0) + this.method_332(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); + this.method_332(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); + this.method_332(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); + if(this.var_678 < 0) { return; } - 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(); + 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_483 = new name_481(); + node.name_483.parent = node; + node.name_483.boundBox = nodeBoundBox.clone(); + node.name_484 = new name_481(); + node.name_484.parent = node; + node.name_484.boundBox = nodeBoundBox.clone(); if(axisX) { - node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§; + node.name_483.boundBox.maxX = node.name_484.boundBox.minX = this.var_677; } else if(axisY) { - node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§; + node.name_483.boundBox.maxY = node.name_484.boundBox.minY = this.var_677; } else { - node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§; + node.name_483.boundBox.maxZ = node.name_484.boundBox.minZ = this.var_677; } - var coordMin:Number = this.§_-P5§ - this.threshold; - var coordMax:Number = this.§_-P5§ + this.threshold; + var coordMin:Number = this.var_677 - this.threshold; + var coordMax:Number = this.var_677 + this.threshold; for(i = 0; i < numPrimitives; ) { boundBox = this.staticBoundBoxes[indices[i]]; @@ -231,30 +231,30 @@ package §_-1e§ { if(min < coordMin) { - if(node.§_-Gm§.indices == null) + if(node.name_483.indices == null) { - node.§_-Gm§.indices = new Vector.(); + node.name_483.indices = new Vector.(); } - node.§_-Gm§.indices.push(indices[i]); + node.name_483.indices.push(indices[i]); indices[i] = -1; } else { - if(node.§_-Xt§ == null) + if(node.var_674 == null) { - node.§_-Xt§ = new Vector.(); + node.var_674 = new Vector.(); } - node.§_-Xt§.push(indices[i]); + node.var_674.push(indices[i]); indices[i] = -1; } } else if(min >= coordMin) { - if(node.§_-75§.indices == null) + if(node.name_484.indices == null) { - node.§_-75§.indices = new Vector.(); + node.name_484.indices = new Vector.(); } - node.§_-75§.indices.push(indices[i]); + node.name_484.indices.push(indices[i]); indices[i] = -1; } i++; @@ -276,22 +276,22 @@ package §_-1e§ { node.indices = null; } - if(node.§_-Xt§ != null) + if(node.var_674 != null) { - node.§_-da§ = new CollisionKdTree2D(this,node); - node.§_-da§.§_-J9§(); + node.name_487 = new CollisionKdTree2D(this,node); + node.name_487.name_499(); } - if(node.§_-Gm§.indices != null) + if(node.name_483.indices != null) { - this.splitNode(node.§_-Gm§); + this.splitNode(node.name_483); } - if(node.§_-75§.indices != null) + if(node.name_484.indices != null) { - this.splitNode(node.§_-75§); + this.splitNode(node.name_484); } } - private function §_-1k§(node:§_-oZ§, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void + private function method_332(node:name_481, axis:int, numSplitCoords:int, splitCoords:Vector., bb:Vector.) : void { var currSplitCoord:Number = NaN; var minCoord:Number = NaN; @@ -304,7 +304,7 @@ package §_-1e§ var numObjects:int = 0; var j:int = 0; var cost:Number = NaN; - var boundBox:§_-FW§ = null; + var boundBox:name_334 = 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 §_-1e§ cost = areaNegative * numNegative + areaPositive * numPositive; if(!conflict) { - if(cost < this.§_-ou§ && numNegative > 0 && numPositive > 0) + if(cost < this.var_680 && numNegative > 0 && numPositive > 0) { - this.§_-94§ = axis; - this.§_-ou§ = cost; - this.§_-P5§ = currSplitCoord; + this.var_678 = axis; + this.var_680 = cost; + this.var_677 = currSplitCoord; } } for(j = i + 1; j < numSplitCoords; ) @@ -370,20 +370,20 @@ package §_-1e§ } } - public function §_-YO§() : void + public function method_333() : void { - this.§_-es§("",this.§_-5H§); + this.method_331("",this.name_486); } - private function §_-es§(str:String, node:§_-oZ§) : void + private function method_331(str:String, node:name_481) : void { if(node == null) { return; } - 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§); + 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_331(str + "-",node.name_483); + this.method_331(str + "+",node.name_484); } } } diff --git a/src/?_-1e?/?_-LG?.as b/src/package_51/name_508.as similarity index 58% rename from src/?_-1e?/?_-LG?.as rename to src/package_51/name_508.as index 92afb3b..bbb71aa 100644 --- a/src/?_-1e?/?_-LG?.as +++ b/src/package_51/name_508.as @@ -1,71 +1,71 @@ -package §_-1e§ +package package_51 { - 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§; + import package_38.name_145; + import package_58.name_189; + import package_58.name_334; + import package_61.name_186; + import package_61.name_482; + import package_84.name_495; + import package_84.name_496; + import package_84.name_497; + import package_84.name_581; + import package_84.name_582; - public class §_-LG§ implements §_-fx§ + public class name_508 implements name_169 { - private static var _rayAABB:§_-FW§ = new §_-FW§(); + private static var _rayAABB:name_334 = new name_334(); - public var §_-bw§:§_-D-§; + public var var_592:name_492; - public var §_-Fz§:Vector.<§_-Nh§>; + public var var_684:Vector.; - public var §_-iH§:int; + public var var_685:int; public var threshold:Number = 0.0001; - private var §_-P6§:Object = {}; + private var var_596:Object = {}; - private var §_-qC§:MinMax = new MinMax(); + private var var_420:MinMax = new MinMax(); - private var §_-k8§:§_-bj§ = new §_-bj§(); + private var var_594:name_145 = new name_145(); - private var §_-0q§:§_-bj§ = new §_-bj§(); + private var var_590:name_145 = new name_145(); - private var §_-2P§:§_-jr§ = new §_-jr§(); + private var var_595:name_189 = new name_189(); - public function §_-LG§() + public function name_508() { super(); - 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§()); + this.var_592 = new name_492(); + this.var_684 = new Vector.(); + this.method_239(name_276.BOX,name_276.BOX,new name_495()); + this.method_239(name_276.BOX,name_276.SPHERE,new name_582()); + this.method_239(name_276.BOX,name_276.RECT,new name_496()); + this.method_239(name_276.BOX,name_276.TRIANGLE,new name_497()); + this.method_239(name_276.SPHERE,name_276.SPHERE,new name_581()); } - public function §_-6v§(primitive:§_-Nh§, isStatic:Boolean = true) : Boolean + public function method_349(primitive:name_276, isStatic:Boolean = true) : Boolean { return true; } - public function §_-2V§(primitive:§_-Nh§, isStatic:Boolean = true) : Boolean + public function method_348(primitive:name_276, isStatic:Boolean = true) : Boolean { return true; } - public function init(collisionPrimitives:Vector.<§_-Nh§>) : void + public function init(collisionPrimitives:Vector.) : void { - this.§_-bw§.§_-J9§(collisionPrimitives); + this.var_592.name_499(collisionPrimitives); } - public function §_-63§(contacts:§_-6h§) : §_-6h§ + public function method_254(contacts:name_482) : name_482 { return contacts; } - public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean + public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean { if((prim1.collisionGroup & prim2.collisionGroup) == 0) { @@ -79,14 +79,14 @@ package §_-1e§ { return false; } - var collider:§_-hG§ = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as §_-hG§; + var collider:name_494 = this.var_596[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as name_494; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2)) { return false; } - if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)) + if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1)) { return false; } @@ -95,7 +95,7 @@ package §_-1e§ return false; } - public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean + public function method_240(prim1:name_276, prim2:name_276) : Boolean { if((prim1.collisionGroup & prim2.collisionGroup) == 0) { @@ -109,14 +109,14 @@ package §_-1e§ { return false; } - var collider:§_-hG§ = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as §_-hG§; + var collider:name_494 = this.var_596[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as name_494; if(collider != null && Boolean(collider.haveCollision(prim1,prim2))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2)) { return false; } - if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)) + if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1)) { return false; } @@ -125,19 +125,19 @@ package §_-1e§ return false; } - public function raycast(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, predicate:§_-jn§, result:§_-jr§) : Boolean + public function raycast(origin:name_145, dir:name_145, collisionGroup:int, maxTime:Number, predicate:name_488, result:name_189) : Boolean { - var hasStaticIntersection:Boolean = this.§_-cX§(origin,dir,collisionGroup,maxTime,predicate,result); - var hasDynamicIntersection:Boolean = this.§_-Tm§(origin,dir,collisionGroup,maxTime,predicate,this.§_-2P§); + var hasStaticIntersection:Boolean = this.name_246(origin,dir,collisionGroup,maxTime,predicate,result); + var hasDynamicIntersection:Boolean = this.method_346(origin,dir,collisionGroup,maxTime,predicate,this.var_595); if(!(hasDynamicIntersection || hasStaticIntersection)) { return false; } if(hasDynamicIntersection && hasStaticIntersection) { - if(result.t > this.§_-2P§.t) + if(result.t > this.var_595.t) { - result.copy(this.§_-2P§); + result.copy(this.var_595); } return true; } @@ -145,62 +145,62 @@ package §_-1e§ { return true; } - result.copy(this.§_-2P§); + result.copy(this.var_595); return true; } - public function §_-cX§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, predicate:§_-jn§, result:§_-jr§) : Boolean + public function name_246(origin:name_145, dir:name_145, collisionGroup:int, maxTime:Number, predicate:name_488, result:name_189) : Boolean { - if(!this.§_-oL§(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§)) + if(!this.method_247(origin,dir,this.var_592.name_486.boundBox,this.var_420)) { return false; } - if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime) + if(this.var_420.max < 0 || this.var_420.min > maxTime) { return false; } - if(this.§_-qC§.min <= 0) + if(this.var_420.min <= 0) { - this.§_-qC§.min = 0; - this.§_-0q§.x = origin.x; - this.§_-0q§.y = origin.y; - this.§_-0q§.z = origin.z; + this.var_420.min = 0; + this.var_590.x = origin.x; + this.var_590.y = origin.y; + this.var_590.z = origin.z; } else { - 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; + 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; } - if(this.§_-qC§.max > maxTime) + if(this.var_420.max > maxTime) { - this.§_-qC§.max = maxTime; + this.var_420.max = maxTime; } - var hasIntersection:Boolean = this.§_-NC§(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionGroup,this.§_-qC§.min,this.§_-qC§.max,predicate,result); + var hasIntersection:Boolean = this.method_236(this.var_592.name_486,origin,this.var_590,dir,collisionGroup,this.var_420.min,this.var_420.max,predicate,result); return hasIntersection ? result.t <= maxTime : false; } - public function §_-9G§(body:§_-BV§, primitive:§_-Nh§) : Boolean + public function method_347(body:name_186, primitive:name_276) : Boolean { return false; } - private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void + private function method_239(type1:int, type2:int, collider:name_494) : void { - this.§_-P6§[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider; + this.var_596[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider; } - private function §_-m1§(node:§_-oZ§, primitive:§_-Nh§, contacts:§_-6h§) : §_-6h§ + private function method_237(node:name_481, primitive:name_276, contacts:name_482) : name_482 { return null; } - private function §_-Tm§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean + private function method_346(origin:name_145, dir:name_145, collisionGroup:int, maxTime:Number, filter:name_488, result:name_189) : Boolean { var yy:Number = NaN; var minTime:Number = NaN; - var primitive:§_-Nh§ = null; - var paabb:§_-FW§ = null; + var primitive:name_276 = null; + var paabb:name_334 = null; var t:Number = NaN; var xx:Number = origin.x + dir.x * maxTime; yy = origin.y + dir.y * maxTime; @@ -236,24 +236,24 @@ package §_-1e§ _rayAABB.maxZ = zz; } minTime = maxTime + 1; - for(var i:int = 0; i < this.§_-iH§; ) + for(var i:int = 0; i < this.var_685; ) { - primitive = this.§_-Fz§[i]; + primitive = this.var_684[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.§_-0w§(primitive))) + if(!(filter != null && !filter.name_493(primitive))) { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594)); if(t > 0 && t < minTime) { minTime = t; result.primitive = primitive; - result.normal.x = this.§_-k8§.x; - result.normal.y = this.§_-k8§.y; - result.normal.z = this.§_-k8§.z; + result.normal.x = this.var_594.x; + result.normal.y = this.var_594.y; + result.normal.z = this.var_594.z; } } } @@ -271,7 +271,7 @@ package §_-1e§ return true; } - private function §_-oL§(origin:§_-bj§, dir:§_-bj§, bb:§_-FW§, time:MinMax) : Boolean + private function method_247(origin:name_145, dir:name_145, bb:name_334, time:MinMax) : Boolean { var t1:Number = NaN; var t2:Number = NaN; @@ -348,12 +348,12 @@ package §_-1e§ return true; } - private function §_-NC§(node:§_-oZ§, origin:§_-bj§, localOrigin:§_-bj§, dir:§_-bj§, collisionGroup:int, t1:Number, t2:Number, predicate:§_-jn§, result:§_-jr§) : Boolean + private function method_236(node:name_481, origin:name_145, localOrigin:name_145, dir:name_145, collisionGroup:int, t1:Number, t2:Number, predicate:name_488, result:name_189) : Boolean { var splitTime:Number = NaN; - var currChildNode:§_-oZ§ = null; + var currChildNode:name_481 = null; var intersects:Boolean = false; - if(node.indices != null && this.§_-FH§(origin,dir,collisionGroup,this.§_-bw§.§_-8A§,node.indices,predicate,result)) + if(node.indices != null && this.method_245(origin,dir,collisionGroup,this.var_592.name_490,node.indices,predicate,result)) { return true; } @@ -372,7 +372,7 @@ package §_-1e§ { splitTime = (node.coord - origin.x) / dir.x; } - currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.x < node.coord ? node.name_483 : node.name_484; break; case 1: if(dir.y > -this.threshold && dir.y < this.threshold) @@ -383,7 +383,7 @@ package §_-1e§ { splitTime = (node.coord - origin.y) / dir.y; } - currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.y < node.coord ? node.name_483 : node.name_484; break; case 2: if(dir.z > -this.threshold && dir.z < this.threshold) @@ -394,26 +394,26 @@ package §_-1e§ { splitTime = (node.coord - origin.z) / dir.z; } - currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.z < node.coord ? node.name_483 : node.name_484; } if(splitTime < t1 || splitTime > t2) { - return this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionGroup,t1,t2,predicate,result); + return this.method_236(currChildNode,origin,localOrigin,dir,collisionGroup,t1,t2,predicate,result); } - intersects = this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionGroup,t1,splitTime,predicate,result); + intersects = this.method_236(currChildNode,origin,localOrigin,dir,collisionGroup,t1,splitTime,predicate,result); if(intersects) { return true; } - 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); + 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_236(currChildNode == node.name_483 ? node.name_484 : node.name_483,origin,this.var_590,dir,collisionGroup,splitTime,t2,predicate,result); } - private function §_-FH§(origin:§_-bj§, dir:§_-bj§, collisionGroup:int, primitives:Vector.<§_-Nh§>, indices:Vector., filter:§_-jn§, intersection:§_-jr§) : Boolean + private function method_245(origin:name_145, dir:name_145, collisionGroup:int, primitives:Vector., indices:Vector., filter:name_488, intersection:name_189) : Boolean { - var primitive:§_-Nh§ = null; + var primitive:name_276 = null; var t:Number = NaN; var pnum:int = int(indices.length); var minTime:Number = 1e+308; @@ -422,16 +422,16 @@ package §_-1e§ primitive = primitives[indices[i]]; if((primitive.collisionGroup & collisionGroup) != 0) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.name_493(primitive))) { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594)); if(t > 0 && t < minTime) { minTime = t; intersection.primitive = primitive; - intersection.normal.x = this.§_-k8§.x; - intersection.normal.y = this.§_-k8§.y; - intersection.normal.z = this.§_-k8§.z; + intersection.normal.x = this.var_594.x; + intersection.normal.y = this.var_594.y; + intersection.normal.z = this.var_594.z; } } } diff --git a/src/package_53/name_241.as b/src/package_53/name_241.as new file mode 100644 index 0000000..a96abe7 --- /dev/null +++ b/src/package_53/name_241.as @@ -0,0 +1,231 @@ +package package_53 +{ + import alternativa.engine3d.alternativa3d; + import package_15.class_18; + import package_15.name_17; + import package_18.class_19; + import package_18.name_51; + import package_19.name_376; + import package_3.name_234; + import package_33.name_130; + import package_38.Matrix4; + import package_38.name_145; + import package_39.name_161; + import package_42.name_147; + import package_42.name_377; + import package_42.name_384; + import package_52.name_166; + import package_61.name_186; + import package_61.name_380; + import package_63.name_192; + import package_65.name_195; + import package_80.name_311; + + use namespace alternativa3d; + + public class name_241 extends class_18 implements class_19 + { + private static var material:name_234 = new name_234(11141120); + + private static var bodyMaterial:name_234 = new name_234(43520); + + private static var eulerAngles:name_145 = new name_145(); + + private var chassis:name_147; + + private var turret:name_192; + + private var var_444:Vector.; + + private var var_443:name_130; + + private var rays:Vector.; + + public function name_241() + { + super(); + } + + override public function initComponent() : void + { + var collisionBox:name_311 = null; + var hs:name_145 = null; + var box:name_195 = null; + var wireFrame:name_376 = null; + this.chassis = name_147(entity.getComponentStrict(name_147)); + this.turret = name_192(entity.getComponentStrict(name_192)); + this.var_444 = new Vector.(); + var body:name_186 = this.chassis.getBody(); + for(var item:name_380 = body.collisionPrimitives.head; item != null; ) + { + collisionBox = name_311(item.primitive); + hs = collisionBox.hs.clone().scale(2); + box = new name_195(hs.x,hs.y,hs.z); + wireFrame = name_376.name_378(box,16711680); + this.var_444.push(new CollisionPrimitive3D(collisionBox,wireFrame)); + item = item.next; + } + var trackedChassisGraphicsComponent:name_166 = name_166(entity.getComponentStrict(name_166)); + var hull:name_161 = trackedChassisGraphicsComponent.name_280(); + hs = hull.name_388.hs.clone().scale(2); + box = new name_195(hs.x,hs.y,hs.z); + this.var_443 = name_376.name_378(box,65280); + this.method_168(); + } + + private function method_168() : void + { + this.rays = new Vector.(); + this.method_167(this.chassis.name_261,this.rays); + this.method_167(this.chassis.name_266,this.rays); + } + + private function method_167(track:name_384, rays:Vector.) : void + { + var ray:name_377 = null; + var box:name_195 = null; + var wireFrame1:name_376 = null; + var wireFrame2:name_376 = null; + for each(ray in track.rays) + { + box = new name_195(10,10,10); + wireFrame1 = name_376.name_378(box,255); + box = new name_195(10,10,10); + wireFrame2 = name_376.name_378(box,65535); + rays.push(new RayEntry(ray,wireFrame1,wireFrame2)); + } + } + + override public function addToGame(gameKernel:name_17) : void + { + var collisionPrimitive3D:CollisionPrimitive3D = null; + var rayEntry:RayEntry = null; + var renderSystem:name_51 = gameKernel.name_5(); + for each(collisionPrimitive3D in this.var_444) + { + this.method_165(renderSystem,collisionPrimitive3D.skin); + } + this.method_165(renderSystem,this.var_443); + for each(rayEntry in this.rays) + { + this.method_165(renderSystem,rayEntry.originSkin); + this.method_165(renderSystem,rayEntry.endSkin); + } + renderSystem.name_387(this); + } + + override public function removeFromGame(gameKernel:name_17) : void + { + var collisionPrimitive3D:CollisionPrimitive3D = null; + var rayEntry:RayEntry = null; + var renderSystem:name_51 = gameKernel.name_5(); + for each(collisionPrimitive3D in this.var_444) + { + this.method_166(renderSystem,collisionPrimitive3D.skin); + } + for each(rayEntry in this.rays) + { + this.method_166(renderSystem,rayEntry.originSkin); + this.method_166(renderSystem,rayEntry.endSkin); + } + this.method_166(renderSystem,this.var_443); + gameKernel.name_5().name_381(this); + } + + private function method_165(renderSystem:name_51, object:name_130) : void + { + renderSystem.name_386().addChild(object); + renderSystem.name_383(object.getResources()); + } + + private function method_166(renderSystem:name_51, object:name_130) : void + { + object.alternativa3d::removeFromParent(); + renderSystem.name_390(object.getResources()); + } + + public function render() : void + { + var entry:CollisionPrimitive3D = null; + var body:name_186 = null; + var rayEntry:RayEntry = null; + var transform:Matrix4 = null; + var skin:name_130 = null; + var worldPos:name_145 = null; + var rayLength:Number = NaN; + for each(entry in this.var_444) + { + transform = entry.collisionPrimitive.transform; + transform.name_267(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_267(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_382) + { + rayLength = Number(rayEntry.ray.name_385.t); + } + else + { + rayLength = Number(this.chassis.name_389.rayLength); + } + rayEntry.endSkin.x = worldPos.x + rayEntry.ray.name_379.x * rayLength; + rayEntry.endSkin.y = worldPos.y + rayEntry.ray.name_379.y * rayLength; + rayEntry.endSkin.z = worldPos.z + rayEntry.ray.name_379.z * rayLength; + } + } + } +} + +import package_33.name_130; +import package_42.name_377; +import package_51.name_276; + +class CollisionPrimitive3D +{ + public var collisionPrimitive:name_276; + + public var skin:name_130; + + public function CollisionPrimitive3D(collisionPrimitive:name_276, skin:name_130) + { + super(); + this.collisionPrimitive = collisionPrimitive; + this.skin = skin; + } +} + +class RayEntry +{ + public var ray:name_377; + + public var originSkin:name_130; + + public var endSkin:name_130; + + public function RayEntry(ray:name_377, originSkin:name_130, endSkin:name_130) + { + super(); + this.ray = ray; + this.originSkin = originSkin; + this.endSkin = endSkin; + } +} diff --git a/src/?_-fT?/?_-ZI?.as b/src/package_54/name_354.as similarity index 59% rename from src/?_-fT?/?_-ZI?.as rename to src/package_54/name_354.as index b8ba765..66d25d4 100644 --- a/src/?_-fT?/?_-ZI?.as +++ b/src/package_54/name_354.as @@ -1,127 +1,127 @@ -package §_-fT§ +package package_54 { - 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§; + import package_38.name_145; + import package_51.name_276; + import package_51.name_481; + import package_51.name_488; + import package_51.name_492; + import package_51.name_494; + import package_58.name_189; + import package_58.name_334; + import package_61.name_186; + import package_61.name_380; + import package_61.name_482; + import package_61.name_489; + import package_84.name_495; + import package_84.name_496; + import package_84.name_497; - public class §_-ZI§ implements §_-Zm§ + public class name_354 implements name_357 { - public var §_-bw§:§_-D-§; + public var var_592:name_492; public var threshold:Number = 0.0001; - private var §_-P6§:Object; + private var var_596:Object; - private var §_-Wj§:Vector.<§_-YY§>; + private var var_591:Vector.; - private var §_-LK§:int; + private var var_593:int; - private var §_-By§:Vector.<§_-BV§>; + private var name_438:Vector.; private var numBodies:int; - private var §_-qC§:MinMax = new MinMax(); + private var var_420:MinMax = new MinMax(); - private var §_-k8§:§_-bj§ = new §_-bj§(); + private var var_594:name_145 = new name_145(); - private var §_-0q§:§_-bj§ = new §_-bj§(); + private var var_590:name_145 = new name_145(); - private var §_-2P§:§_-jr§ = new §_-jr§(); + private var var_595:name_189 = new name_189(); - private var _rayAABB:§_-FW§ = new §_-FW§(); + private var _rayAABB:name_334 = new name_334(); - public function §_-ZI§() + public function name_354() { super(); - 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§()); + this.var_592 = new name_492(); + this.name_438 = new Vector.(); + this.var_591 = new Vector.(); + this.var_596 = new Object(); + this.method_239(name_276.BOX,name_276.BOX,new name_495()); + this.method_239(name_276.BOX,name_276.RECT,new name_496()); + this.method_239(name_276.BOX,name_276.TRIANGLE,new name_497()); } - public function §_-oT§(primitive:§_-Nh§) : void + public function method_251(primitive:name_276) : void { } - public function §_-HZ§(primitive:§_-Nh§) : void + public function method_250(primitive:name_276) : void { } - public function §_-9F§() : void + public function name_359() : void { } - public function §_-Vy§(collisionPrimitives:Vector.<§_-Nh§>, boundBox:§_-FW§ = null) : void + public function name_364(collisionPrimitives:Vector., boundBox:name_334 = null) : void { - this.§_-bw§.§_-J9§(collisionPrimitives,boundBox); + this.var_592.name_499(collisionPrimitives,boundBox); } - public function §_-pN§(tankPhysicsEntry:§_-YY§) : void + public function name_434(tankPhysicsEntry:name_406) : void { - if(this.§_-Wj§.indexOf(tankPhysicsEntry) >= 0) + if(this.var_591.indexOf(tankPhysicsEntry) >= 0) { throw new Error("Tank entry already exists"); } - var _loc2_:* = this.§_-LK§++; - this.§_-Wj§[_loc2_] = tankPhysicsEntry; + var _loc2_:* = this.var_593++; + this.var_591[_loc2_] = tankPhysicsEntry; } - public function §_-qP§(tankPhysicsEntry:§_-YY§) : void + public function name_433(tankPhysicsEntry:name_406) : void { - var index:Number = Number(this.§_-Wj§.indexOf(tankPhysicsEntry)); + var index:Number = Number(this.var_591.indexOf(tankPhysicsEntry)); if(index < 0) { throw new Error("Tank entry not found"); } - this.§_-Wj§[index] = this.§_-Wj§[--this.§_-LK§]; - this.§_-Wj§[this.§_-LK§] = null; + this.var_591[index] = this.var_591[--this.var_593]; + this.var_591[this.var_593] = null; } - public function §_-D8§(body:§_-BV§) : void + public function name_435(body:name_186) : void { var _loc2_:* = this.numBodies++; - this.§_-By§[_loc2_] = body; + this.name_438[_loc2_] = body; } - public function §_-2x§(body:§_-BV§) : void + public function name_436(body:name_186) : void { - var index:int = int(this.§_-By§.indexOf(body)); + var index:int = int(this.name_438.indexOf(body)); if(index < 0) { throw new Error("Body not found"); } - this.§_-By§[index] = this.§_-By§[--this.numBodies]; - this.§_-By§[this.numBodies] = null; + this.name_438[index] = this.name_438[--this.numBodies]; + this.name_438[this.numBodies] = null; } - public function §_-7u§(center:§_-bj§, radius:Number, filter:§_-VN§) : Vector.<§_-bB§> + public function method_249(center:name_145, radius:Number, filter:name_498) : Vector. { - var result:Vector.<§_-bB§> = null; - var tankPhysicsEntry:§_-YY§ = null; - var position:§_-bj§ = null; + var result:Vector. = null; + var tankPhysicsEntry:name_406 = null; + var position:name_145 = 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.§_-LK§; ) + for(var i:int = 0; i < this.var_593; ) { - tankPhysicsEntry = this.§_-Wj§[i]; + tankPhysicsEntry = this.var_591[i]; position = tankPhysicsEntry.body.state.position; dx = position.x - center.x; dy = position.y - center.y; @@ -129,13 +129,13 @@ package §_-fT§ distance = dx * dx + dy * dy + dz * dz; if(distance < radius) { - if(filter == null || Boolean(filter.§_-cb§(center,tankPhysicsEntry.body))) + if(filter == null || Boolean(filter.name_500(center,tankPhysicsEntry.body))) { if(result == null) { - result = new Vector.<§_-bB§>(); + result = new Vector.(); } - result.push(new §_-bB§(tankPhysicsEntry.body,Math.sqrt(distance))); + result.push(new name_485(tankPhysicsEntry.body,Math.sqrt(distance))); } } i++; @@ -143,30 +143,30 @@ package §_-fT§ return result; } - public function §_-63§(contact:§_-6h§) : §_-6h§ + public function method_254(contact:name_482) : name_482 { - return this.§_-Uu§(contact); + return this.method_244(contact); } - public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean + public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean { if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0 || !prim1.aabb.intersects(prim2.aabb,0.01)) { return false; } - var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type]; + var collider:name_494 = this.var_596[prim1.type | prim2.type]; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1)); } return false; } - public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean + public function method_240(prim1:name_276, prim2:name_276) : Boolean { if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0) { @@ -180,31 +180,31 @@ package §_-fT§ { return false; } - var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type]; + var collider:name_494 = this.var_596[prim1.type | prim2.type]; if(collider != null && Boolean(collider.haveCollision(prim1,prim2))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1)); } return false; } - public function raycast(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean + public function raycast(origin:name_145, dir:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean { - var hasStaticIntersection:Boolean = this.§_-cX§(origin,dir,collisionMask,maxTime,filter,result); - var hasDynamicIntersection:Boolean = this.§_-eu§(origin,dir,collisionMask,maxTime,filter,this.§_-2P§); + var hasStaticIntersection:Boolean = this.name_246(origin,dir,collisionMask,maxTime,filter,result); + var hasDynamicIntersection:Boolean = this.method_243(origin,dir,collisionMask,maxTime,filter,this.var_595); if(!(hasDynamicIntersection || hasStaticIntersection)) { return false; } if(hasDynamicIntersection && hasStaticIntersection) { - if(result.t > this.§_-2P§.t) + if(result.t > this.var_595.t) { - result.copy(this.§_-2P§); + result.copy(this.var_595); } return true; } @@ -212,73 +212,73 @@ package §_-fT§ { return true; } - result.copy(this.§_-2P§); + result.copy(this.var_595); return true; } - public function §_-cX§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean + public function name_246(origin:name_145, dir:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean { - if(!this.§_-oL§(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§)) + if(!this.method_247(origin,dir,this.var_592.name_486.boundBox,this.var_420)) { return false; } - if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime) + if(this.var_420.max < 0 || this.var_420.min > maxTime) { return false; } - if(this.§_-qC§.min <= 0) + if(this.var_420.min <= 0) { - this.§_-qC§.min = 0; - this.§_-0q§.x = origin.x; - this.§_-0q§.y = origin.y; - this.§_-0q§.z = origin.z; + this.var_420.min = 0; + this.var_590.x = origin.x; + this.var_590.y = origin.y; + this.var_590.z = origin.z; } else { - 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; + 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; } - if(this.§_-qC§.max > maxTime) + if(this.var_420.max > maxTime) { - this.§_-qC§.max = maxTime; + this.var_420.max = maxTime; } - var hasIntersection:Boolean = this.§_-NC§(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionMask,this.§_-qC§.min,this.§_-qC§.max,filter,result); + var hasIntersection:Boolean = this.method_236(this.var_592.name_486,origin,this.var_590,dir,collisionMask,this.var_420.min,this.var_420.max,filter,result); return hasIntersection ? result.t <= maxTime : false; } - public function §_-TL§(primitive:§_-Nh§) : Boolean + public function method_242(primitive:name_276) : Boolean { - return this.§_-B8§(primitive,this.§_-bw§.§_-5H§); + return this.method_238(primitive,this.var_592.name_486); } - private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void + private function method_239(type1:int, type2:int, collider:name_494) : void { - this.§_-P6§[type1 | type2] = collider; + this.var_596[type1 | type2] = collider; } - private function §_-Uu§(contact:§_-6h§) : §_-6h§ + private function method_244(contact:name_482) : name_482 { - var tankEntry:§_-YY§ = null; - var body:§_-BV§ = null; - var listItem:§_-4q§ = null; + var tankEntry:name_406 = null; + var body:name_186 = null; + var listItem:name_380 = null; var j:int = 0; - var otherTankEntry:§_-YY§ = null; - for(var i:int = 0; i < this.§_-LK§; i++) + var otherTankEntry:name_406 = null; + for(var i:int = 0; i < this.var_593; i++) { - tankEntry = this.§_-Wj§[i]; + tankEntry = this.var_591[i]; body = tankEntry.body; for(listItem = body.collisionPrimitives.head; listItem != null; ) { - contact = this.§_-m1§(this.§_-bw§.§_-5H§,listItem.primitive,contact); + contact = this.method_237(this.var_592.name_486,listItem.primitive,contact); listItem = listItem.next; } - for(j = i + 1; j < this.§_-LK§; ) + for(j = i + 1; j < this.var_593; ) { - otherTankEntry = this.§_-Wj§[j]; + otherTankEntry = this.var_591[j]; if(body.aabb.intersects(otherTankEntry.body.aabb,0.1)) { - contact = this.§_-4I§(tankEntry,otherTankEntry,contact); + contact = this.method_241(tankEntry,otherTankEntry,contact); } j++; } @@ -286,15 +286,15 @@ package §_-fT§ return contact; } - private function §_-4I§(tankEntry1:§_-YY§, tankEntry2:§_-YY§, contact:§_-6h§) : §_-6h§ + private function method_241(tankEntry1:name_406, tankEntry2:name_406, contact:name_482) : name_482 { - var primitive1:§_-Nh§ = null; + var primitive1:name_276 = null; var numSimplePrimitives2:int = 0; var j:int = 0; - var primitive2:§_-Nh§ = null; + var primitive2:name_276 = null; var skipCollision:Boolean = false; - var body1:§_-BV§ = tankEntry1.body; - var body2:§_-BV§ = tankEntry2.body; + var body1:name_186 = tankEntry1.body; + var body2:name_186 = 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 §_-fT§ return contact; } - private function §_-AX§(primitives1:§_-G2§, primitives2:§_-G2§) : Boolean + private function method_252(primitives1:name_489, primitives2:name_489) : Boolean { - var item2:§_-4q§ = null; - for(var item1:§_-4q§ = primitives1.head; item1 != null; ) + var item2:name_380 = null; + for(var item1:name_380 = primitives1.head; item1 != null; ) { for(item2 = primitives2.head; item2 != null; ) { - if(this.§_-A5§(item1.primitive,item2.primitive)) + if(this.method_240(item1.primitive,item2.primitive)) { return true; } @@ -349,11 +349,11 @@ package §_-fT§ return false; } - private function §_-bH§(primitives:§_-G2§) : Boolean + private function method_253(primitives:name_489) : Boolean { - for(var item:§_-4q§ = primitives.head; item != null; ) + for(var item:name_380 = primitives.head; item != null; ) { - if(this.§_-TL§(item.primitive)) + if(this.method_242(item.primitive)) { return true; } @@ -362,16 +362,16 @@ package §_-fT§ return false; } - private function §_-m1§(node:§_-oZ§, primitive:§_-Nh§, contact:§_-6h§) : §_-6h§ + private function method_237(node:name_481, primitive:name_276, contact:name_482) : name_482 { var min:Number = NaN; var max:Number = NaN; - var primitives:Vector.<§_-Nh§> = null; + var primitives:Vector. = null; var indices:Vector. = null; var i:int = 0; if(node.indices != null) { - primitives = this.§_-bw§.§_-8A§; + primitives = this.var_592.name_490; indices = node.indices; for(i = indices.length - 1; i >= 0; ) { @@ -402,33 +402,33 @@ package §_-fT§ } if(min < node.coord) { - contact = this.§_-m1§(node.§_-Gm§,primitive,contact); + contact = this.method_237(node.name_483,primitive,contact); } if(max > node.coord) { - contact = this.§_-m1§(node.§_-75§,primitive,contact); + contact = this.method_237(node.name_484,primitive,contact); } - if(node.§_-da§ != null && min < node.coord && max > node.coord) + if(node.name_487 != null && min < node.coord && max > node.coord) { - contact = this.§_-m1§(node.§_-da§.§_-5H§,primitive,contact); + contact = this.method_237(node.name_487.name_486,primitive,contact); } return contact; } - private function §_-B8§(primitive:§_-Nh§, node:§_-oZ§) : Boolean + private function method_238(primitive:name_276, node:name_481) : Boolean { var min:Number = NaN; var max:Number = NaN; - var primitives:Vector.<§_-Nh§> = null; + var primitives:Vector. = null; var indices:Vector. = null; var i:int = 0; if(node.indices != null) { - primitives = this.§_-bw§.§_-8A§; + primitives = this.var_592.name_490; indices = node.indices; for(i = indices.length - 1; i >= 0; ) { - if(this.§_-A5§(primitive,primitives[indices[i]])) + if(this.method_240(primitive,primitives[indices[i]])) { return true; } @@ -453,23 +453,23 @@ package §_-fT§ min = Number(primitive.aabb.minZ); max = Number(primitive.aabb.maxZ); } - if(node.§_-da§ != null && min < node.coord && max > node.coord) + if(node.name_487 != null && min < node.coord && max > node.coord) { - if(this.§_-B8§(primitive,node.§_-da§.§_-5H§)) + if(this.method_238(primitive,node.name_487.name_486)) { return true; } } if(min < node.coord) { - if(this.§_-B8§(primitive,node.§_-Gm§)) + if(this.method_238(primitive,node.name_483)) { return true; } } if(max > node.coord) { - if(this.§_-B8§(primitive,node.§_-75§)) + if(this.method_238(primitive,node.name_484)) { return true; } @@ -477,13 +477,13 @@ package §_-fT§ return false; } - private function §_-eu§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean + private function method_243(origin:name_145, dir:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean { - var tankPhysicsEntry:§_-YY§ = null; - var body:§_-BV§ = null; - var aabb:§_-FW§ = null; - var collisionPrimitiveListItem:§_-4q§ = null; - var primitive:§_-Nh§ = null; + var tankPhysicsEntry:name_406 = null; + var body:name_186 = null; + var aabb:name_334 = null; + var collisionPrimitiveListItem:name_380 = null; + var primitive:name_276 = 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 §_-fT§ this._rayAABB.maxZ = zz; } var minTime:Number = maxTime + 1; - for(var i:int = 0; i < this.§_-LK§; i++) + for(var i:int = 0; i < this.var_593; i++) { - tankPhysicsEntry = this.§_-Wj§[i]; + tankPhysicsEntry = this.var_591[i]; body = tankPhysicsEntry.body; - if(!(filter != null && !filter.§_-0w§(body.collisionPrimitives.head.primitive))) + if(!(filter != null && !filter.name_493(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 §_-fT§ } else { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594)); if(t > 0 && t < minTime) { minTime = t; result.primitive = primitive; - result.normal.x = this.§_-k8§.x; - result.normal.y = this.§_-k8§.y; - result.normal.z = this.§_-k8§.z; + result.normal.x = this.var_594.x; + result.normal.y = this.var_594.y; + result.normal.z = this.var_594.z; } collisionPrimitiveListItem = collisionPrimitiveListItem.next; } @@ -571,7 +571,7 @@ package §_-fT§ return true; } - private function §_-oL§(origin:§_-bj§, dir:§_-bj§, bb:§_-FW§, time:MinMax) : Boolean + private function method_247(origin:name_145, dir:name_145, bb:name_334, time:MinMax) : Boolean { var t1:Number = NaN; var t2:Number = NaN; @@ -648,15 +648,15 @@ package §_-fT§ return true; } - private function §_-NC§(node:§_-oZ§, origin:§_-bj§, localOrigin:§_-bj§, dir:§_-bj§, collisionMask:int, t1:Number, t2:Number, filter:§_-jn§, result:§_-jr§) : Boolean + private function method_236(node:name_481, origin:name_145, localOrigin:name_145, dir:name_145, collisionMask:int, t1:Number, t2:Number, filter:name_488, result:name_189) : Boolean { var splitTime:Number = NaN; - var currChildNode:§_-oZ§ = null; + var currChildNode:name_481 = null; var intersects:Boolean = false; - var splitNode:§_-oZ§ = null; + var splitNode:name_481 = null; var i:int = 0; - var primitive:§_-Nh§ = null; - if(node.indices != null && this.§_-FH§(origin,dir,collisionMask,this.§_-bw§.§_-8A§,node.indices,filter,result)) + var primitive:name_276 = null; + if(node.indices != null && this.method_245(origin,dir,collisionMask,this.var_592.name_490,node.indices,filter,result)) { return true; } @@ -675,7 +675,7 @@ package §_-fT§ { splitTime = (node.coord - origin.x) / dir.x; } - currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.x < node.coord ? node.name_483 : node.name_484; break; case 1: if(dir.y > -this.threshold && dir.y < this.threshold) @@ -686,7 +686,7 @@ package §_-fT§ { splitTime = (node.coord - origin.y) / dir.y; } - currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.y < node.coord ? node.name_483 : node.name_484; break; case 2: if(dir.z > -this.threshold && dir.z < this.threshold) @@ -697,35 +697,35 @@ package §_-fT§ { splitTime = (node.coord - origin.z) / dir.z; } - currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.z < node.coord ? node.name_483 : node.name_484; } if(splitTime < t1 || splitTime > t2) { - return this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionMask,t1,t2,filter,result); + return this.method_236(currChildNode,origin,localOrigin,dir,collisionMask,t1,t2,filter,result); } - intersects = this.§_-NC§(currChildNode,origin,localOrigin,dir,collisionMask,t1,splitTime,filter,result); + intersects = this.method_236(currChildNode,origin,localOrigin,dir,collisionMask,t1,splitTime,filter,result); if(intersects) { return true; } - 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) + 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_487 != null) { - splitNode = node.§_-da§.§_-5H§; + splitNode = node.name_487.name_486; while(splitNode != null && splitNode.axis != -1) { switch(splitNode.axis) { case 0: - splitNode = this.§_-0q§.x < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; + splitNode = this.var_590.x < splitNode.coord ? splitNode.name_483 : splitNode.name_484; break; case 1: - splitNode = this.§_-0q§.y < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; + splitNode = this.var_590.y < splitNode.coord ? splitNode.name_483 : splitNode.name_484; break; case 2: - splitNode = this.§_-0q§.z < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; + splitNode = this.var_590.z < splitNode.coord ? splitNode.name_483 : splitNode.name_484; break; } } @@ -733,15 +733,15 @@ package §_-fT§ { for(i = splitNode.indices.length - 1; i >= 0; ) { - primitive = this.§_-bw§.§_-8A§[splitNode.indices[i]]; + primitive = this.var_592.name_490[splitNode.indices[i]]; if((primitive.collisionGroup & collisionMask) != 0) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.name_493(primitive))) { result.t = primitive.raycast(origin,dir,this.threshold,result.normal); if(result.t >= 0) { - result.position.copy(this.§_-0q§); + result.position.copy(this.var_590); result.primitive = primitive; return true; } @@ -751,12 +751,12 @@ package §_-fT§ } } } - return this.§_-NC§(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionMask,splitTime,t2,filter,result); + return this.method_236(currChildNode == node.name_483 ? node.name_484 : node.name_483,origin,this.var_590,dir,collisionMask,splitTime,t2,filter,result); } - private function §_-FH§(origin:§_-bj§, dir:§_-bj§, collisionMask:int, primitives:Vector.<§_-Nh§>, indices:Vector., filter:§_-jn§, intersection:§_-jr§) : Boolean + private function method_245(origin:name_145, dir:name_145, collisionMask:int, primitives:Vector., indices:Vector., filter:name_488, intersection:name_189) : Boolean { - var primitive:§_-Nh§ = null; + var primitive:name_276 = null; var t:Number = NaN; var pnum:int = int(indices.length); var minTime:Number = 1e+308; @@ -765,16 +765,16 @@ package §_-fT§ primitive = primitives[indices[i]]; if((primitive.collisionGroup & collisionMask) != 0) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.name_493(primitive))) { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.var_594)); if(t > 0 && t < minTime) { minTime = t; intersection.primitive = primitive; - intersection.normal.x = this.§_-k8§.x; - intersection.normal.y = this.§_-k8§.y; - intersection.normal.z = this.§_-k8§.z; + intersection.normal.x = this.var_594.x; + intersection.normal.y = this.var_594.y; + intersection.normal.z = this.var_594.z; } } } @@ -791,15 +791,15 @@ package §_-fT§ return true; } - private function §_-Yu§(body1:§_-BV§, body2:§_-BV§, contact:§_-6h§) : §_-6h§ + private function method_248(body1:name_186, body2:name_186, contact:name_482) : name_482 { - return this.§_-bO§(body1.collisionPrimitives,body2.collisionPrimitives,contact); + return this.method_246(body1.collisionPrimitives,body2.collisionPrimitives,contact); } - private function §_-bO§(primitives1:§_-G2§, primitives2:§_-G2§, contact:§_-6h§) : §_-6h§ + private function method_246(primitives1:name_489, primitives2:name_489, contact:name_482) : name_482 { - var item2:§_-4q§ = null; - for(var item1:§_-4q§ = primitives1.head; item1 != null; ) + var item2:name_380 = null; + for(var item1:name_380 = primitives1.head; item1 != null; ) { for(item2 = primitives2.head; item2 != null; ) { diff --git a/src/?_-K8?/?_-e5?.as b/src/package_56/name_183.as similarity index 61% rename from src/?_-K8?/?_-e5?.as rename to src/package_56/name_183.as index 0635acb..3b1456a 100644 --- a/src/?_-K8?/?_-e5?.as +++ b/src/package_56/name_183.as @@ -1,20 +1,20 @@ -package §_-K8§ +package package_56 { - 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 package_18.class_17; + import package_18.name_375; + import package_18.name_51; + import package_25.name_353; + import package_25.name_355; + import package_30.name_103; + import package_33.name_130; use namespace alternativa3d; - public class §_-e5§ extends §_-HE§ implements §_-fX§ + public class name_183 extends name_353 implements class_17 { private static var vector1:Vector3D = new Vector3D(); @@ -22,61 +22,61 @@ package §_-K8§ private var messageLifeTime:int; - private var §_-cd§:Vector.; + private var var_435:Vector.; - private var anchor:§_-OX§; + private var anchor:name_130; - private var §_-1R§:DisplayObjectContainer; + private var var_466:DisplayObjectContainer; - private var §_-Cx§:Function; + private var var_467:Function; - public function §_-e5§(objectPool:§_-Va§) + public function name_183(objectPool:name_355) { super(objectPool); - this.§_-cd§ = new Vector.(); - this.§_-1R§ = new Sprite(); + this.var_435 = new Vector.(); + this.var_466 = new Sprite(); } - public function init(messageLifeTime:int, anchor:§_-OX§, destuctionCallback:Function) : void + public function init(messageLifeTime:int, anchor:name_130, destuctionCallback:Function) : void { this.messageLifeTime = messageLifeTime; this.anchor = anchor; - this.§_-Cx§ = destuctionCallback; + this.var_467 = destuctionCallback; } - public function §_-U8§(text:String, color:uint) : void + public function name_223(text:String, color:uint) : void { var message:Message = Message.create(); message.color = color; message.text = text; message.lifeTime = 0; - this.§_-cd§.push(message); - this.§_-1R§.addChild(message); + this.var_435.push(message); + this.var_466.addChild(message); } - public function addedToRenderSystem(system:§_-1I§) : void + public function addedToRenderSystem(system:name_51) : void { - system.§_-S4§("debug_messages").addChild(this.§_-1R§); + system.name_402("debug_messages").addChild(this.var_466); } - public function play(camera:§_-RE§) : Boolean + public function play(camera:name_375) : Boolean { var i:int = 0; var message:Message = null; - var timeDelta:int = int(§_-h2§.timeDelta); - for(i = 0; i < this.§_-cd§.length; ) + var timeDelta:int = int(name_103.timeDelta); + for(i = 0; i < this.var_435.length; ) { - message = this.§_-cd§[i]; + message = this.var_435[i]; message.lifeTime += timeDelta; if(message.lifeTime >= this.messageLifeTime) { message.destroy(); - this.§_-cd§.shift(); + this.var_435.shift(); i--; } i++; } - if(this.§_-cd§.length == 0) + if(this.var_435.length == 0) { return false; } @@ -88,18 +88,18 @@ package §_-K8§ vector2.y -= camera.view.height / 2; if(vector2.z > 0.01 && vector2.z > camera.nearClipping) { - this.§_-1R§.visible = true; - this.§_-1R§.x = int(vector2.x); - this.§_-1R§.y = int(vector2.y); + this.var_466.visible = true; + this.var_466.x = int(vector2.x); + this.var_466.y = int(vector2.y); } else { - this.§_-1R§.visible = false; + this.var_466.visible = false; } var messageY:int = 0; - for(i = this.§_-cd§.length - 1; i >= 0; i--) + for(i = this.var_435.length - 1; i >= 0; i--) { - message = this.§_-cd§[i]; + message = this.var_435[i]; message.y = messageY; message.x = -int(message.textWidth / 2); messageY -= 20; @@ -111,19 +111,19 @@ package §_-K8§ { var message:Message = null; var func:Function = null; - if(this.§_-1R§.parent != null) + if(this.var_466.parent != null) { - this.§_-1R§.parent.removeChild(this.§_-1R§); + this.var_466.parent.removeChild(this.var_466); } - for each(message in this.§_-cd§) + for each(message in this.var_435) { message.destroy(); } - this.§_-cd§.length = 0; - if(this.§_-Cx§ != null) + this.var_435.length = 0; + if(this.var_467 != null) { - func = this.§_-Cx§; - this.§_-Cx§ = null; + func = this.var_467; + this.var_467 = null; func.call(); } } diff --git a/src/?_-LL?/?_-nR?.as b/src/package_57/name_179.as similarity index 55% rename from src/?_-LL?/?_-nR?.as rename to src/package_57/name_179.as index f861671..940d6a9 100644 --- a/src/?_-LL?/?_-nR?.as +++ b/src/package_57/name_179.as @@ -1,26 +1,26 @@ -package §_-LL§ +package package_57 { - 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 package_18.class_17; + import package_18.name_373; + import package_18.name_375; + import package_18.name_51; + import package_19.class_16; + import package_19.name_372; + import package_21.name_86; + import package_25.name_353; + import package_25.name_355; + import package_3.name_234; + import package_30.name_103; + import package_33.name_130; + import package_38.Matrix3; + import package_38.name_145; + import package_41.class_12; use namespace alternativa3d; - public class §_-nR§ extends §_-HE§ implements §_-fX§ + public class name_179 extends name_353 implements class_17 { private static const BARREL_INDEX:int = 0; @@ -38,29 +38,29 @@ package §_-LL§ private static const trailSpeed3:Number = 1300; - private static var muzzlePosition:§_-bj§ = new §_-bj§(); + private static var muzzlePosition:name_145 = new name_145(); - private static var gunDirection:§_-bj§ = new §_-bj§(); + private static var gunDirection:name_145 = new name_145(); - private static var axis:§_-bj§ = new §_-bj§(); + private static var axis:name_145 = new name_145(); - private static var eulerAngles:§_-bj§ = new §_-bj§(); + private static var eulerAngles:name_145 = new name_145(); private static var trailMatrix:Matrix3 = new Matrix3(); private static var trailMatrix2:Matrix3 = new Matrix3(); - private var turret:§_-3e§; + private var turret:class_12; - private var sprite1:§_-hW§; + private var sprite1:name_372; - private var sprite2:§_-hW§; + private var sprite2:name_372; - private var sprite3:§_-hW§; + private var sprite3:name_372; - private var §_-kg§:§_-9l§; + private var var_427:name_373; - private var §_-ld§:§_-YD§ = new §_-YD§(16563726,0.1); + private var var_428:name_234 = new name_234(16563726,0.1); private var trail1:Trail; @@ -88,38 +88,38 @@ package §_-LL§ private var timeToLive:int; - public function §_-nR§(objectPool:§_-Va§) + public function name_179(objectPool:name_355) { super(objectPool); - this.§_-kg§ = new §_-9l§(); - this.§_-kg§.§_-L4§ = true; - this.§_-kg§.blendModeSource = Context3DBlendFactor.ONE; - this.§_-kg§.blendModeDestination = Context3DBlendFactor.ONE; - this.§_-5M§(); + this.var_427 = new name_373(); + this.var_427.var_21 = true; + this.var_427.blendModeSource = Context3DBlendFactor.ONE; + this.var_427.blendModeDestination = Context3DBlendFactor.ONE; + this.method_157(); } - public function init(turret:§_-3e§, diffuse:§_-pi§, opacity:§_-pi§) : void + public function init(turret:class_12, diffuse:name_86, opacity:name_86) : void { this.turret = turret; } - public function addedToRenderSystem(system:§_-1I§) : void + public function addedToRenderSystem(system:name_51) : void { - var container:§_-OX§ = system.§_-Hn§(); + var container:name_130 = system.name_237(); container.addChild(this.sprite1); container.addChild(this.sprite2); container.addChild(this.sprite3); } - public function play(camera:§_-RE§) : Boolean + public function play(camera:name_375) : Boolean { if(this.timeToLive <= 0) { return false; } this.turret.getGunMuzzleData(BARREL_INDEX,muzzlePosition,gunDirection); - var dt:Number = Number(§_-h2§.timeDeltaSeconds); - this.timeToLive -= §_-h2§.timeDelta; + var dt:Number = Number(name_103.timeDeltaSeconds); + this.timeToLive -= name_103.timeDelta; return true; } @@ -128,34 +128,34 @@ package §_-LL§ this.sprite1.alternativa3d::removeFromParent(); this.sprite2.alternativa3d::removeFromParent(); this.sprite3.alternativa3d::removeFromParent(); - §_-DQ§(); + name_363(); } - private function §_-5M§() : void + private function method_157() : void { - this.sprite1 = this.§_-eJ§(120); - this.sprite2 = this.§_-eJ§(99.75); - this.sprite3 = this.§_-eJ§(79.5); + this.sprite1 = this.method_156(120); + this.sprite2 = this.method_156(99.75); + this.sprite3 = this.method_156(79.5); } - private function §_-eJ§(size:Number) : §_-hW§ + private function method_156(size:Number) : name_372 { - var sprite:§_-hW§ = new §_-hW§(size,size); + var sprite:name_372 = new name_372(size,size); sprite.rotation = 2 * Math.PI * Math.random(); - sprite.material = this.§_-kg§; + sprite.material = this.var_427; return sprite; } - private function §_-ME§(sprite:§_-hW§, basePoint:§_-bj§, direction:§_-bj§, distance:Number) : void + private function method_159(sprite:name_372, basePoint:name_145, direction:name_145, 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 §_-Qt§(trail:§_-U2§, angle:Number, basePoint:§_-bj§, direction:§_-bj§, distance:Number, dx:Number, dz:Number) : void + private function method_158(trail:class_16, angle:Number, basePoint:name_145, direction:name_145, distance:Number, dx:Number, dz:Number) : void { - trailMatrix.§_-OB§(§_-bj§.Y_AXIS,angle); + trailMatrix.name_374(name_145.Y_AXIS,angle); if(direction.y < -0.99999 || direction.y > 0.99999) { axis.x = 0; @@ -171,9 +171,9 @@ package §_-LL§ axis.normalize(); angle = Number(Math.acos(direction.y)); } - trailMatrix2.§_-OB§(axis,angle); + trailMatrix2.name_374(axis,angle); trailMatrix.append(trailMatrix2); - trailMatrix.§_-fJ§(eulerAngles); + trailMatrix.name_267(eulerAngles); trail.rotationX = eulerAngles.x; trail.rotationY = eulerAngles.y; trail.rotationZ = eulerAngles.z; @@ -184,28 +184,28 @@ package §_-LL§ } } -import §_-1z§.§_-gA§; -import §_-8D§.§_-OX§; -import §_-8D§.§_-d6§; -import §_-Ex§.§_-U2§; -import §_-Vh§.§_-b9§; +import package_19.class_16; +import package_21.name_136; +import package_3.name_139; +import package_33.name_117; +import package_33.name_130; -class Trail extends §_-U2§ +class Trail extends class_16 { private static var verts:Vector. = Vector.([0,0,0,0,0,0,0,0,0]); - public function Trail(scale:Number, material:§_-b9§) + public function Trail(scale:Number, material:name_139) { super(); var h:Number = 240 * scale; verts[0] = -4; verts[3] = 4; verts[7] = h; - geometry = new §_-gA§(); + geometry = new name_136(); var attributes:Array = []; - attributes[0] = §_-d6§.POSITION; - attributes[1] = §_-d6§.POSITION; - attributes[2] = §_-d6§.POSITION; + attributes[0] = name_117.POSITION; + attributes[1] = name_117.POSITION; + attributes[2] = name_117.POSITION; geometry.addVertexStream(attributes); geometry.numVertices = 3; var values:Vector. = new Vector.(9); @@ -213,7 +213,7 @@ class Trail extends §_-U2§ { values[i] = verts[i]; } - geometry.setAttributeValues(§_-d6§.POSITION,values); + geometry.setAttributeValues(name_117.POSITION,values); geometry.indices = Vector.([0,1,2]); addSurface(material,0,1); calculateBoundBox(); diff --git a/src/?_-KA?/?_-FW?.as b/src/package_58/name_334.as similarity index 77% rename from src/?_-KA?/?_-FW?.as rename to src/package_58/name_334.as index 1828c13..34228a1 100644 --- a/src/?_-KA?/?_-FW?.as +++ b/src/package_58/name_334.as @@ -1,8 +1,8 @@ -package §_-KA§ +package package_58 { - import §_-nl§.§_-bj§; + import package_38.name_145; - public class §_-FW§ + public class name_334 { public var minX:Number = 1e+308; @@ -16,12 +16,12 @@ package §_-KA§ public var maxZ:Number = -1e+308; - public function §_-FW§() + public function name_334() { super(); } - public function §_-k2§(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number) : void + public function name_361(minX:Number, minY:Number, minZ:Number, maxX:Number, maxY:Number, maxZ:Number) : void { this.minX = minX; this.minY = minY; @@ -31,7 +31,7 @@ package §_-KA§ this.maxZ = maxZ; } - public function §_-Gd§(delta:Number) : void + public function name_510(delta:Number) : void { this.minX -= delta; this.minY -= delta; @@ -41,7 +41,7 @@ package §_-KA§ this.maxZ += delta; } - public function §_-EH§(boundBox:§_-FW§) : void + public function name_424(boundBox:name_334) : 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 §_-KA§ this.maxZ = boundBox.maxZ > this.maxZ ? boundBox.maxZ : this.maxZ; } - public function §_-aW§(x:Number, y:Number, z:Number) : void + public function method_277(x:Number, y:Number, z:Number) : void { if(x < this.minX) { @@ -79,7 +79,7 @@ package §_-KA§ } } - public function §_-GT§() : void + public function name_426() : void { this.minX = 1e+308; this.minY = 1e+308; @@ -89,32 +89,32 @@ package §_-KA§ this.maxZ = -1e+308; } - public function intersects(bb:§_-FW§, epsilon:Number) : Boolean + public function intersects(bb:name_334, 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 §_-Wu§(point:§_-bj§, epsilon:Number) : Boolean + public function name_511(point:name_145, 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 §_-ot§() : Number + public function name_513() : Number { return this.maxX - this.minX; } - public function §_-jP§() : Number + public function name_512() : Number { return this.maxY - this.minY; } - public function §_-Ix§() : Number + public function name_514() : Number { return this.maxZ - this.minZ; } - public function copyFrom(boundBox:§_-FW§) : void + public function copyFrom(boundBox:name_334) : void { this.minX = boundBox.minX; this.minY = boundBox.minY; @@ -124,9 +124,9 @@ package §_-KA§ this.maxZ = boundBox.maxZ; } - public function clone() : §_-FW§ + public function clone() : name_334 { - var clone:§_-FW§ = new §_-FW§(); + var clone:name_334 = new name_334(); clone.copyFrom(this); return clone; } diff --git a/src/package_6/name_16.as b/src/package_6/name_16.as new file mode 100644 index 0000000..e458e0d --- /dev/null +++ b/src/package_6/name_16.as @@ -0,0 +1,92 @@ +package package_6 +{ + import flash.display.DisplayObjectContainer; + import package_12.name_54; + import package_15.class_1; + import package_15.name_17; + import package_15.name_53; + import package_16.name_18; + import package_16.name_57; + import package_16.name_69; + import package_18.name_51; + import package_19.name_52; + import package_4.name_24; + import package_5.A3DMapComponent; + + public class name_16 extends class_1 + { + private var gameKernel:name_17; + + private var config:name_18; + + private var container:DisplayObjectContainer; + + private var preloader:Preloader; + + public function name_16(param1:name_17, param2:name_18, param3:DisplayObjectContainer, param4:Preloader) + { + super(name_17.EVENT_SYSTEM_PRIORITY + 1); + this.gameKernel = param1; + this.config = param2; + this.preloader = param4; + this.container = param3; + } + + override public function run() : void + { + var _loc1_:name_51 = this.gameKernel.name_5(); + var _loc2_:name_24 = new name_24(_loc1_.name_20(),this.gameKernel.name_65()); + _loc1_.name_62(_loc2_); + _loc2_.name_74(0,0,1000); + _loc2_.name_75(0,2000,0); + this.container.addChild(_loc1_.name_70()); + var _loc3_:name_53 = this.method_20(); + this.gameKernel.name_72(_loc3_); + this.preloader.name_68(0.75); + var_4.addTask(new name_50(name_17.INPUT_SYSTEM_PRIORITY + 1,this.config,this.gameKernel,_loc2_,this.preloader)); + var_4.killTask(this); + } + + private function method_20() : name_53 + { + var _loc2_:name_54 = null; + var _loc6_:name_57 = null; + var _loc7_:String = null; + var _loc3_:name_69 = this.config.name_67.name_71("skybox"); + if(_loc3_ != null) + { + _loc2_ = new name_54(); + _loc6_ = _loc3_.name_61(this.config.name_66()); + for each(_loc7_ in [name_52.BACK,name_52.BOTTOM,name_52.FRONT,name_52.LEFT,name_52.RIGHT,name_52.TOP]) + { + _loc2_.name_58(_loc7_,_loc6_.name_64(_loc7_)); + } + } + var _loc4_:name_53 = new name_53(name_53.name_73()); + var _loc5_:A3DMapComponent = new A3DMapComponent(this.config.mapData,_loc2_,1000000,new MapListener(this.gameKernel.name_60())); + _loc4_.name_59(_loc5_); + _loc4_.name_63(); + return _loc4_; + } + } +} + +import package_15.name_56; +import package_20.name_55; +import package_5.class_2; + +class MapListener implements class_2 +{ + private var eventSystem:name_55; + + public function MapListener(param1:name_55) + { + super(); + this.eventSystem = param1; + } + + public function onA3DMapComplete() : void + { + this.eventSystem.dispatchEvent(name_56.MAP_COMPLETE,null); + } +} diff --git a/src/package_6/name_50.as b/src/package_6/name_50.as new file mode 100644 index 0000000..b2c3141 --- /dev/null +++ b/src/package_6/name_50.as @@ -0,0 +1,1431 @@ +package package_6 +{ + import alternativa.engine3d.alternativa3d; + import alternativa.tanks.game.usertitle.component.name_156; + import flash.display.BitmapData; + import flash.geom.ColorTransform; + import flash.geom.Vector3D; + import flash.ui.Keyboard; + import package_1.TankMaterial2; + import package_1.name_30; + import package_1.name_31; + import package_11.name_4; + import package_12.name_191; + import package_12.name_54; + import package_14.name_3; + import package_15.class_1; + import package_15.name_17; + import package_15.name_53; + import package_15.name_56; + import package_16.name_18; + import package_18.name_228; + import package_18.name_51; + import package_2.name_1; + import package_2.name_9; + import package_20.class_7; + import package_20.name_55; + import package_21.name_152; + import package_21.name_172; + import package_21.name_84; + import package_21.name_86; + import package_22.name_163; + import package_28.name_112; + import package_28.name_201; + import package_3.class_5; + import package_3.name_139; + import package_32.name_180; + import package_33.name_130; + import package_33.name_187; + import package_37.name_150; + import package_37.name_153; + import package_37.name_168; + import package_37.name_173; + import package_37.name_177; + import package_37.name_212; + import package_38.name_145; + import package_39.name_161; + import package_39.name_164; + import package_39.name_193; + import package_39.name_194; + import package_39.name_227; + import package_39.name_232; + import package_39.name_236; + import package_39.name_238; + import package_39.name_240; + import package_39.name_257; + import package_4.name_215; + import package_4.name_216; + import package_4.name_24; + import package_40.class_10; + import package_40.name_151; + import package_40.name_176; + import package_40.name_199; + import package_40.name_203; + import package_40.name_225; + import package_40.name_250; + import package_41.name_146; + import package_41.name_229; + import package_42.name_147; + import package_43.name_154; + import package_43.name_171; + import package_44.name_174; + import package_44.name_196; + import package_44.name_198; + import package_44.name_208; + import package_44.name_249; + import package_45.name_190; + import package_45.name_204; + import package_45.name_224; + import package_45.name_233; + import package_46.name_175; + import package_46.name_178; + import package_47.name_158; + import package_48.name_162; + import package_49.name_159; + import package_50.name_184; + import package_50.name_185; + import package_51.name_169; + import package_52.name_166; + import package_53.name_200; + import package_53.name_235; + import package_53.name_241; + import package_54.name_170; + import package_55.name_182; + import package_56.name_183; + import package_57.name_179; + import package_58.name_189; + import package_59.name_210; + import package_60.name_213; + import package_60.name_278; + import package_61.name_186; + import package_62.name_211; + import package_63.name_192; + import package_64.name_197; + import package_65.name_195; + import package_66.name_209; + import package_67.name_207; + import package_68.name_202; + import package_69.name_219; + import package_71.MouseEvent3D; + + use namespace alternativa3d; + + public class name_50 extends class_1 implements class_7 + { + private static const DEAD_TEXTURE_ID:String = "dead"; + + private static var conShockSize:name_1 = new name_1("shock_size",1200,0,2000); + + private static var conShockSizeGrow:name_1 = new name_1("shock_size_grow",200,0,2000); + + private static var conPysicsDebug:name_9 = new name_9("physics_debug",0,0,1); + + private static var conMaxSpeed:name_1 = new name_1("max_speed",800,0,2000); + + private static var log:name_180 = name_180(name_3.name_8().name_21(name_180)); + + private var config:name_18; + + private var gameKernel:name_17; + + 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_162; + + private var var_77:name_162; + + private var var_76:name_162; + + private var var_73:BitmapData; + + private var var_67:name_216; + + private var var_69:name_215; + + private var freeCameraController:name_24; + + private var var_68:name_228; + + private var var_81:name_207; + + private var var_75:name_202; + + private var var_70:name_183; + + 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:name_206; + + private var var_71:name_211; + + private var preloader:Preloader; + + private var var_72:name_53; + + private var var_80:name_210 = new name_210(); + + public function name_50(param1:int, param2:name_18, param3:name_17, param4:name_24, 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 name_206(param3); + TanksTestingTool.testTask = this; + } + + override public function start() : void + { + var _loc1_:name_112 = name_112(var_4.getTaskInterface(name_112)); + _loc1_.name_262(name_201.KEY_DOWN,this.method_14); + var _loc2_:name_55 = name_55(var_4.getTaskInterface(name_55)); + _loc2_.addEventListener(name_166.TANK_CLICK,this); + this.var_67 = new name_216(this.gameKernel.name_5().name_20(),this.gameKernel.method_37().name_157().collisionDetector,name_170.STATIC,_loc1_); + this.var_69 = new name_215(this.gameKernel.name_5().name_20(),this.gameKernel.method_37().name_157().collisionDetector,name_170.STATIC,_loc1_); + this.var_81 = new name_207(this.gameKernel.name_5()); + this.var_75 = new name_202(); + this.gameKernel.stage.addChild(this.var_75); + var _loc3_:name_4 = name_4(name_3.name_8().name_21(name_4)); + _loc3_.name_34("addtank",this.method_72); + var _loc4_:XMLList = this.config.xml.elements("console-commands"); + if(_loc4_.length() > 0) + { + this.method_65(_loc3_,this.config.xml.elements("console-commands")[0].toString()); + } + _loc3_.name_34("lstanks",this.method_63); + this.var_71 = new name_211(name_17.RENDER_SYSTEM_PRIORITY + 1,10,this.gameKernel.stage,0,0); + this.gameKernel.addTask(this.var_71); + this.gameKernel.name_60().addEventListener(name_56.MAP_COMPLETE,this); + } + + private function get activeTank() : name_53 + { + return this.var_62 >= 0 ? this.tanks[this.var_62] : null; + } + + private function method_53(param1:int) : void + { + if(param1 >= 0 && param1 < this.tanks.length) + { + if(this.activeTank != null) + { + this.activeTank.dispatchEvent(name_164.SET_DISABLED_STATE); + } + this.var_62 = param1; + this.activeTank.dispatchEvent(name_164.SET_ACTIVE_STATE); + if(this.var_68 == this.var_67) + { + this.var_67.name_181(this.activeTank); + } + if(this.var_68 == this.var_69) + { + this.var_69.name_181(this.activeTank); + } + } + } + + public function include() : void + { + if(this.tanks.length > 0) + { + this.method_53((this.var_62 + 1) % this.tanks.length); + } + if(this.var_68 != this.var_67) + { + this.name_62(this.var_67); + } + } + + private function method_79() : void + { + var _loc1_:int = 0; + if(this.tanks.length > 0) + { + _loc1_ = this.var_62 - 1; + if(_loc1_ < 0) + { + _loc1_ = this.tanks.length - 1; + } + this.method_53(_loc1_); + } + } + + private function method_65(param1:name_4, param2:String) : void + { + var _loc4_:String = null; + var _loc3_:Array = param2.split(/\r*\n/); + for each(_loc4_ in _loc3_) + { + param1.name_248(_loc4_); + } + } + + private function method_72(param1:name_4, param2:Array) : void + { + this.method_55(name_149.name_244(param2)); + } + + private function method_14(param1:name_201, param2:uint) : void + { + var _loc3_:name_51 = null; + var _loc4_:int = 0; + switch(param2) + { + case Keyboard.Q: + _loc3_ = this.gameKernel.name_5(); + _loc4_ = int(_loc3_.name_253()); + _loc3_.name_275(_loc4_ == 0 ? 4 : 0); + break; + case Keyboard.M: + case Keyboard.BACKSLASH: + this.method_71(); + break; + case Keyboard.N: + if(this.var_68 == this.freeCameraController) + { + name_24.targeted = !name_24.targeted; + break; + } + name_24.targeted = true; + this.name_62(this.freeCameraController); + break; + case Keyboard.ENTER: + this.include(); + } + } + + private function method_95() : void + { + var _loc1_:name_147 = null; + var _loc2_:name_186 = null; + if(this.activeTank != null) + { + _loc1_ = name_147(this.activeTank.getComponent(name_147)); + _loc2_ = _loc1_.body; + _loc2_.state.velocity.z = 1000; + } + } + + private function method_89() : void + { + var _loc2_:name_156 = null; + var _loc1_:name_53 = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = name_156(_loc1_.getComponent(name_156)); + if(_loc2_.name_251()) + { + _loc2_.removeFromScene(); + } + else + { + _loc2_.addToScene(); + } + } + } + + private function method_91() : void + { + this.var_71.name_223("Message: " + Math.random(),name_191.random()); + } + + private function method_93() : Boolean + { + return this.gameKernel.name_65().name_272(Keyboard.CONTROL); + } + + private function method_84(param1:int, param2:Boolean) : void + { + var _loc3_:name_156 = null; + if(this.activeTank != null) + { + _loc3_ = name_156(this.activeTank.getComponentStrict(name_156)); + if(param2) + { + _loc3_.name_265(param1,10000); + } + else + { + _loc3_.name_254(param1); + } + } + } + + private function method_88() : void + { + var _loc3_:name_86 = 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_:name_51 = this.gameKernel.name_5(); + for each(_loc3_ in _loc1_) + { + _loc2_.name_148(_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_150 = name_150(this.gameKernel.method_33().name_165(name_150)); + var _loc7_:name_145 = new name_145(Math.random() * 3000,Math.random() * 3000,1000 + Math.random() * 3000); + _loc6_.init(300,300,_loc4_,_loc7_,0,0,30,true); + _loc2_.method_21(_loc6_); + } + + private function method_85() : void + { + var _loc1_:name_86 = this.var_61.getResource("smoky/diffuse"); + var _loc2_:name_86 = this.var_61.getResource("smoky/opacity"); + var _loc3_:name_51 = this.gameKernel.name_5(); + _loc3_.name_148(_loc1_); + _loc3_.name_148(_loc2_); + var _loc4_:name_179 = name_179(this.gameKernel.method_33().name_165(name_179)); + _loc4_.init(new DummyTurret(),_loc1_,_loc2_); + _loc3_.method_21(_loc4_); + } + + private function method_86() : void + { + --this.var_66; + if(this.var_66 < 0) + { + this.var_66 += this.config.tankParts.name_220; + } + this.method_56(); + } + + private function method_78() : void + { + this.var_66 = (this.var_66 + 1) % this.config.tankParts.name_220; + this.method_56(); + } + + private function method_76() : void + { + --this.var_63; + if(this.var_63 < 0) + { + this.var_63 += this.config.tankParts.name_218; + } + this.method_56(); + } + + public function method_77() : void + { + this.var_63 = (this.var_63 + 1) % this.config.tankParts.name_218; + this.method_56(); + } + + private function method_56() : void + { + var _loc2_:name_149 = null; + var _loc3_:name_53 = null; + var _loc4_:name_146 = null; + var _loc5_:name_146 = null; + var _loc6_:name_145 = null; + var _loc1_:name_53 = this.activeTank; + if(_loc1_ != null) + { + this.method_67(); + _loc2_ = new name_149(); + _loc2_.hull = this.config.tankParts.name_280(this.var_63).id; + _loc2_.turret = this.config.tankParts.name_260(this.var_66).id; + _loc2_.coloring = this.var_78; + _loc3_ = this.method_55(_loc2_); + this.method_53(this.tanks.length - 1); + _loc4_ = name_146(_loc1_.getComponentStrict(name_146)); + _loc5_ = name_146(_loc3_.getComponentStrict(name_146)); + _loc5_.getBody().name_282(_loc4_.getBody().state.orientation); + _loc6_ = _loc4_.getBody().state.position.clone(); + _loc6_.z += 200; + _loc5_.getBody().name_230(_loc6_); + } + } + + override public function run() : void + { + } + + private function method_80() : void + { + var _loc1_:name_159 = null; + if(this.activeTank != null) + { + if(this.var_70 == null) + { + this.var_70 = name_183(this.gameKernel.method_33().name_165(name_183)); + _loc1_ = name_159(this.activeTank.getComponentStrict(name_159)); + this.var_70.init(5000,_loc1_.name_252(),this.method_64); + this.gameKernel.name_5().method_21(this.var_70); + } + this.var_70.name_223("Message " + Math.random(),65280); + } + } + + public function method_81(param1:String, param2:*) : void + { + var _loc3_:int = 0; + var _loc4_:Vector. = null; + var _loc5_:Vector. = null; + var _loc6_:name_149 = null; + var _loc7_:XMLList = null; + var _loc8_:int = 0; + var _loc9_:int = 0; + var _loc10_:name_53 = null; + var _loc11_:name_172 = null; + var _loc12_:name_152 = null; + switch(param1) + { + case name_166.TANK_CLICK: + _loc3_ = int(this.tanks.indexOf(name_53(param2))); + if(_loc3_ >= 0) + { + this.method_53(_loc3_); + } + break; + case name_56.MAP_COMPLETE: + this.name_62(this.var_67); + if(this.config.xml.user.length() > 0) + { + _loc6_ = name_149.name_239(this.config.xml.user[0],true); + this.var_78 = _loc6_.coloring; + this.var_63 = this.config.tankParts.name_279(_loc6_.hull); + this.var_66 = this.config.tankParts.name_263(_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.method_55(_loc6_); + } + else + { + this.method_55(name_149.defaultTankParams); + } + this.method_53(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.method_55(name_149.name_239(_loc7_[_loc8_])); + _loc10_.dispatchEvent(name_164.SET_ACTIVE_STATE); + _loc10_.dispatchEvent(name_164.SET_DISABLED_STATE); + _loc8_++; + } + } + _loc4_ = this.gameKernel.name_5().name_237().getResources(true,name_172); + if(_loc4_.length > 0) + { + _loc11_ = _loc4_[0] as name_172; + _loc11_.left = this.config.var_37.name_155("left_01") as BitmapData; + _loc11_.right = this.config.var_37.name_155("right_01") as BitmapData; + _loc11_.back = this.config.var_37.name_155("back_01") as BitmapData; + _loc11_.front = this.config.var_37.name_155("front_01") as BitmapData; + _loc11_.top = this.config.var_37.name_155("top_01") as BitmapData; + _loc11_.bottom = this.config.var_37.name_155("bottom_01") as BitmapData; + this.gameKernel.name_5().name_148(_loc11_); + } + this.method_62(); + this.config.clear(); + _loc5_ = this.gameKernel.name_5().name_237().getResources(true,name_152); + for each(_loc12_ in _loc5_) + { + _loc12_.data.clear(); + _loc12_.data = null; + } + this.preloader.name_68(1); + } + } + + private function onMouseDown(param1:MouseEvent3D) : void + { + var _loc2_:Vector3D = name_130(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 method_90() : void + { + } + + private function method_94() : void + { + this.gameKernel.name_72(this.var_72); + this.tanks.push(this.var_72); + this.method_53(this.tanks.length - 1); + } + + private function method_55(param1:name_149) : name_53 + { + var _loc2_:name_53 = this.method_61(param1); + this.gameKernel.name_72(_loc2_); + this.tanks.push(_loc2_); + return _loc2_; + } + + private function method_61(param1:name_149) : name_53 + { + var _loc2_:name_161 = this.config.tankParts.name_283(param1.hull); + var _loc3_:name_227 = this.config.tankParts.name_255(param1.turret); + var _loc4_:BitmapData = this.config.tankParts.name_274(param1.coloring); + var _loc5_:BitmapData = this.config.var_37.name_155(DEAD_TEXTURE_ID) as BitmapData; + var _loc6_:name_53 = new name_53(name_53.name_73()); + var _loc9_:name_147 = new name_147(_loc2_,1000,80000); + var _loc10_:int = int(conMaxSpeed.value); + _loc9_.name_243(_loc10_,true); + _loc9_.name_259(2,true); + _loc9_.name_230(new name_145(param1.x,param1.y,param1.z)); + _loc9_.body.name_256(param1.rotationX / 180 * Math.PI,param1.rotationY / 180 * Math.PI,param1.rotationZ / 180 * Math.PI); + var _loc12_:name_166 = new name_166(_loc2_); + _loc12_.name_269(this.method_58(_loc2_,_loc4_,_loc5_,6,6)); + _loc12_.name_268(this.method_69(_loc2_)); + _loc12_.name_270(this.method_59(_loc2_)); + _loc6_.name_59(_loc9_); + _loc6_.name_59(_loc12_); + _loc6_.name_59(new name_238(new name_233(this.config.soundsLibrary))); + var _loc13_:name_194 = new name_194(); + _loc6_.name_59(_loc13_); + _loc6_.name_59(new name_235()); + _loc6_.name_59(new name_229()); + var _loc14_:name_192 = new name_192(_loc3_,1,2); + var _loc15_:name_159 = new name_159(_loc3_); + _loc15_.name_277(this.method_58(_loc3_,_loc4_,_loc5_,3,3)); + _loc6_.name_59(_loc14_); + _loc6_.name_59(_loc15_); + _loc6_.name_59(new name_232(new name_224(this.config.soundsLibrary))); + if(_loc3_.id.indexOf("Smoky") >= 0) + { + this.method_75(_loc6_); + } + else if(_loc3_.id.indexOf("Thunder") >= 0) + { + this.method_70(_loc6_); + } + else + { + this.method_60(_loc6_); + } + _loc6_.name_59(new name_236()); + if(conPysicsDebug.value == 1) + { + _loc6_.name_59(new name_241()); + } + if(!param1.isUser) + { + } + var _loc16_:Vector. = this.method_54(this.var_64.getFrames("tank_explosion/shock_wave")); + var _loc17_:Vector. = this.method_54(this.var_64.getFrames("tank_explosion/explosion")); + var _loc18_:Vector. = this.method_54(this.var_64.getFrames("tank_explosion/smoke")); + var _loc19_:name_200 = new name_200(1200,200,_loc16_,_loc17_,_loc18_); + _loc6_.name_59(_loc19_); + _loc6_.name_63(); + return _loc6_; + } + + private function method_92() : void + { + var _loc1_:name_147 = name_147(this.tanks[this.var_62].getComponent(name_147)); + var _loc2_:name_145 = new name_145(); + _loc1_.name_258.name_267(_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_205.x.toFixed(),_loc1_.name_205.y.toFixed(),_loc1_.name_205.z.toFixed()); + log.log("tank","rotation %1 %2 %3",_loc2_.x.toFixed(),_loc2_.y.toFixed(),_loc2_.z.toFixed()); + } + + private function method_62() : void + { + var _loc4_:XMLList = null; + var _loc5_:int = 0; + var _loc6_:int = 0; + var _loc7_:XML = null; + var _loc8_:name_168 = null; + var _loc9_:Array = null; + var _loc1_:name_86 = this.var_61.getResource("fire/diffuse"); + var _loc2_:name_86 = this.var_61.getResource("fire/opacity"); + var _loc3_:name_51 = this.gameKernel.name_5(); + _loc3_.name_148(_loc1_); + _loc3_.name_148(_loc2_); + this.var_74 = new name_162(_loc1_,_loc2_,8,8,0,16,30,true); + this.var_77 = new name_162(_loc1_,_loc2_,8,8,16,16,30,true); + this.var_76 = new name_162(_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_168(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().name_281(_loc8_); + _loc5_++; + } + } + } + + private function method_69(param1:name_161) : name_30 + { + var _loc2_:name_54 = param1.textureData; + var _loc3_:name_152 = this.var_65.name_167(_loc2_.name_160(name_154.KEY_TRACKS_DIFFUSE)); + var _loc4_:name_152 = this.var_65.name_167(_loc2_.name_160(name_154.KEY_TRACKS_NORMAL)); + var _loc5_:name_30 = new name_30(); + _loc5_.glossiness = 65; + _loc5_.var_26 = 0.6; + _loc5_.diffuseMap = _loc3_; + _loc5_.normalMap = _loc4_; + if(_loc2_.name_160(name_154.KEY_TRACKS_OPACITY) != null) + { + _loc5_.opacityMap = this.var_65.name_167(_loc2_.name_160(name_154.KEY_TRACKS_OPACITY)); + } + return _loc5_; + } + + private function method_59(param1:name_161) : name_31 + { + var _loc3_:name_152 = null; + var _loc2_:name_54 = param1.textureData; + if(_loc2_.name_160(name_154.KEY_SHADOW) != null) + { + _loc3_ = this.var_65.name_167(_loc2_.name_160(name_154.KEY_SHADOW)); + return new name_31(_loc3_); + } + return null; + } + + private function method_75(param1:name_53) : void + { + var _loc9_:name_86 = null; + var _loc10_:Vector. = null; + var _loc11_:int = 0; + var _loc18_:class_5 = null; + var _loc3_:Number = 10000000 / 3; + var _loc4_:name_169 = this.gameKernel.method_37().name_157().collisionDetector; + var _loc5_:name_151 = new name_151(); + var _loc6_:name_174 = new name_174(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); + _loc6_.name_231(this.gameKernel.method_37().name_157().collisionDetector); + _loc6_.name_221(new name_151()); + var _loc7_:Vector. = this.var_64.getFrames("thunder/explosion"); + var _loc8_:name_51 = this.gameKernel.name_5(); + for each(_loc9_ in _loc7_) + { + _loc8_.name_148(_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_86 = this.var_61.getResource("smoky/diffuse"); + var _loc13_:name_86 = this.var_61.getResource("smoky/opacity"); + _loc8_.name_148(_loc12_); + _loc8_.name_148(_loc13_); + name_185.init(_loc12_,_loc13_); + var _loc14_:class_10 = new name_184(this.gameKernel,1000,10000000,200,100,0.5,null,_loc10_); + var _loc15_:name_176 = new name_176(1000,_loc3_,_loc6_,_loc14_,new name_190(this.config.soundsLibrary.name_214("smoky/shot")),true); + _loc15_.name_226 = true; + param1.name_59(_loc15_); + var _loc16_:BitmapData = new BitmapData(20,20,false,0); + _loc16_.perlinNoise(20,20,3,13,false,true); + name_158.init(_loc12_,_loc13_); + var _loc17_:name_158 = new name_158(this.var_61.getResource("thunder/shot")); + param1.name_59(_loc17_); + } + + private function method_70(param1:name_53) : void + { + var _loc9_:name_86 = null; + var _loc10_:Vector. = null; + var _loc11_:int = 0; + var _loc18_:class_5 = null; + var _loc4_:name_169 = this.gameKernel.method_37().name_157().collisionDetector; + var _loc5_:name_151 = new name_151(); + var _loc6_:name_174 = new name_174(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); + _loc6_.name_231(this.gameKernel.method_37().name_157().collisionDetector); + _loc6_.name_221(new name_151()); + var _loc7_:Vector. = this.var_64.getFrames("thunder/explosion"); + var _loc8_:name_51 = this.gameKernel.name_5(); + for each(_loc9_ in _loc7_) + { + _loc8_.name_148(_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_86 = this.var_61.getResource("smoky/diffuse"); + var _loc13_:name_86 = this.var_61.getResource("smoky/opacity"); + _loc8_.name_148(_loc12_); + _loc8_.name_148(_loc13_); + name_185.init(_loc12_,_loc13_); + var _loc14_:class_10 = new name_184(this.gameKernel,1000,10000000,200,100,0.5,null,_loc10_); + var _loc15_:name_176 = new name_176(1000,3333333.3333333335,_loc6_,_loc14_,new name_190(this.config.soundsLibrary.name_214("thunder/shot")),true); + _loc15_.name_226 = true; + param1.name_59(_loc15_); + var _loc16_:BitmapData = new BitmapData(20,20,false,0); + _loc16_.perlinNoise(20,20,3,13,false,true); + name_158.init(_loc12_,_loc13_); + var _loc17_:name_158 = new name_158(this.var_61.getResource("thunder/shot")); + param1.name_59(_loc17_); + } + + private function method_83(param1:name_53) : void + { + var _loc5_:name_169 = this.gameKernel.method_37().name_157().collisionDetector; + var _loc6_:name_209 = new name_209(); + var _loc7_:name_208 = new name_208(Math.PI / 9,20,Math.PI / 9,20,_loc5_,_loc6_); + } + + private function method_82(param1:name_53) : void + { + var _loc9_:name_169 = this.gameKernel.method_37().name_157().collisionDetector; + var _loc10_:name_151 = new name_151(); + var _loc11_:name_196 = new name_196(Math.PI / 4,20,Math.PI / 4,20,100,_loc9_,_loc10_); + var _loc13_:Number = Number(name_225.BASE_FORCE); + var _loc14_:name_250 = new name_182(2000,4000,0.5); + var _loc15_:BitmapData = this.config.var_37.name_155("plasma/charge") as BitmapData; + var _loc16_:Vector. = name_163.name_188(_loc15_,_loc15_.height); + var _loc17_:Vector. = this.method_57(_loc16_); + var _loc18_:BitmapData = this.config.var_37.name_155("plasma/explosion") as BitmapData; + _loc16_ = name_163.name_188(_loc18_,_loc18_.height); + var _loc19_:Vector. = this.method_57(_loc16_); + var _loc20_:ColorTransform = new ColorTransform(5); + var _loc22_:name_278 = new name_219(this.gameKernel,_loc17_,_loc19_,_loc20_); + var _loc23_:name_213 = new name_213(50,2000,100,_loc13_,_loc14_,_loc22_,null); + param1.name_59(_loc23_); + var _loc24_:name_199 = new name_199(1000,1000,1000,1000,0,8000,_loc11_,null,true); + param1.name_59(_loc24_); + var _loc25_:BitmapData = new BitmapData(20,20,false,0); + _loc25_.perlinNoise(20,20,3,13,false,true); + var _loc26_:name_86 = this.var_61.getResource("plasma/shot"); + var _loc27_:name_212 = new name_212(_loc26_,null); + param1.name_59(_loc27_); + } + + private function method_60(param1:name_53) : void + { + var _loc5_:name_203 = new name_203(1000,1,15,true); + param1.name_59(_loc5_); + var _loc7_:Number = 30 * Math.PI / 180; + var _loc10_:name_175 = this.method_73(); + var _loc11_:name_178 = new name_178(3000,_loc7_,20,3000,_loc10_); + param1.name_59(_loc11_); + var _loc16_:name_51 = this.gameKernel.name_5(); + var _loc17_:name_86 = this.var_61.getResource("firebird/diffuse"); + var _loc18_:name_86 = this.var_61.getResource("firebird/opacity"); + _loc16_.name_148(_loc17_); + _loc16_.name_148(_loc18_); + name_178.init(_loc17_,_loc18_); + var _loc19_:name_169 = this.gameKernel.method_37().name_157().collisionDetector; + var _loc20_:name_249 = name_151.INSTANCE; + var _loc21_:name_198 = new name_198(3000,_loc7_,10,10,_loc19_,_loc20_); + var _loc22_:name_204 = new name_204(this.config.soundsLibrary.name_214("flamethrower/shot")); + var _loc23_:name_197 = new name_197(1000,100,_loc21_,_loc22_,true,false); + param1.name_59(_loc23_); + } + + private function method_57(param1:Vector.) : Vector. + { + var _loc3_:BitmapData = null; + var _loc2_:Vector. = new Vector.(); + for each(_loc3_ in param1) + { + } + return _loc2_; + } + + private function method_67() : void + { + var _loc1_:name_53 = null; + if(this.var_62 >= 0) + { + _loc1_ = this.activeTank; + this.gameKernel.method_34(_loc1_); + this.tanks.splice(this.var_62,1); + if(this.tanks.length == 0) + { + this.var_62 = -1; + } + else + { + this.var_62--; + this.method_53(this.var_62); + } + } + } + + private function method_71() : void + { + if(this.var_68 == this.var_69) + { + this.name_62(this.var_67); + } + else if(this.var_68 == this.freeCameraController) + { + this.name_62(this.var_69); + } + else + { + this.name_62(this.freeCameraController); + } + } + + private function name_62(param1:name_228) : void + { + if(this.activeTank != null) + { + if(param1 == this.var_67) + { + this.var_67.name_181(this.activeTank); + } + if(param1 == this.var_69) + { + this.var_69.name_181(this.activeTank); + } + if(param1 == this.freeCameraController) + { + this.freeCameraController.name_181(this.activeTank); + } + } + this.gameKernel.name_5().name_62(param1); + this.var_68 = param1; + } + + private function method_58(param1:name_257, param2:BitmapData, param3:BitmapData, param4:Number, param5:Number) : name_193 + { + var _loc15_:name_161 = null; + var _loc16_:name_240 = null; + var _loc6_:name_51 = this.gameKernel.name_5(); + var _loc7_:name_54 = param1.textureData; + var _loc8_:name_152 = this.var_65.name_167(_loc7_.name_160(name_171.KEY_DIFFUSE_MAP)); + var _loc9_:name_152 = this.var_65.name_167(_loc7_.name_160(name_171.KEY_NORMAL_MAP)); + var _loc10_:name_152 = this.var_65.name_167(_loc7_.name_160(name_171.KEY_SURFACE_MAP)); + var _loc11_:name_84 = this.var_65.name_242(param2); + var _loc12_:name_84 = this.var_65.name_242(param3); + var _loc13_:TankMaterial2 = new TankMaterial2(_loc11_,_loc8_,_loc9_,_loc10_); + var _loc14_:TankMaterial2 = new TankMaterial2(_loc12_,_loc8_,_loc9_,_loc10_); + _loc13_.var_25 = param4; + _loc13_.var_24 = param5; + _loc14_.var_25 = param4; + _loc14_.var_24 = param5; + _loc6_.name_148(param1.geometry); + if(param1 is name_161) + { + _loc15_ = name_161(param1); + for each(var _loc19_ in _loc15_.name_247.concat(_loc15_.name_245)) + { + _loc16_ = _loc19_; + _loc19_; + _loc6_.name_148(_loc16_.geometry); + } + _loc6_.name_148(_loc15_.name_261.geometry); + _loc6_.name_148(_loc15_.name_266.geometry); + _loc6_.name_148(_loc15_.shadow.geometry); + } + return new name_193(_loc13_,_loc14_); + } + + private function method_87() : void + { + var _loc1_:name_195 = new name_195(20,20,20); + } + + private function method_64() : void + { + this.var_70 = null; + null; + } + + private function method_73() : name_175 + { + var _loc4_:BitmapData = null; + var _loc5_:Vector. = null; + var _loc6_:name_175 = null; + var _loc1_:BitmapData = this.config.var_37.name_155("flame/sprite") as BitmapData; + var _loc2_:Vector. = name_163.name_188(_loc1_); + var _loc3_:Vector. = new Vector.(); + for each(var _loc9_ in _loc2_) + { + _loc4_ = _loc9_; + _loc9_; + } + _loc5_ = new Vector.(); + _loc5_.push(new name_153(0,3)); + _loc5_.push(new name_153(0.5)); + _loc5_.push(new name_153(0.75,0.2,0.2,0.2)); + _loc5_.push(new name_153(1,0,0,0,0)); + return new name_175(_loc3_,_loc5_); + } + + private function method_96() : void + { + this.method_68(); + this.method_74(); + this.method_66(); + } + + private function method_68() : void + { + var _loc2_:name_169 = null; + var _loc3_:name_146 = null; + var _loc4_:name_145 = null; + var _loc5_:name_189 = null; + var _loc6_:name_145 = null; + var _loc7_:name_145 = null; + var _loc8_:Vector. = null; + var _loc9_:Vector. = null; + var _loc10_:name_177 = null; + var _loc1_:name_53 = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = this.gameKernel.method_37().name_157().collisionDetector; + _loc3_ = name_146(_loc1_.getComponentStrict(name_146)); + _loc4_ = _loc3_.getBody().state.position; + _loc5_ = new name_189(); + if(_loc2_.name_246(_loc4_,name_145.DOWN,name_170.STATIC,1000,null,_loc5_)) + { + _loc6_ = _loc5_.position.clone(); + _loc6_.z = _loc6_.z + 1; + _loc7_ = new name_145(); + _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.method_54(_loc8_); + _loc10_ = name_177(this.gameKernel.method_33().name_165(name_177)); + _loc10_.init(conShockSize.value,_loc6_,_loc7_,_loc9_,30,conShockSizeGrow.value); + this.gameKernel.name_5().method_21(_loc10_); + } + } + } + + private function method_74() : void + { + var _loc2_:Vector. = null; + var _loc3_:Vector. = null; + var _loc4_:name_150 = null; + var _loc5_:name_146 = null; + var _loc6_:name_145 = null; + var _loc7_:Number = NaN; + var _loc8_:Number = NaN; + var _loc9_:Number = NaN; + var _loc1_:name_53 = this.activeTank; + if(_loc1_ != null) + { + _loc2_ = this.var_64.getFrames("tank_explosion/explosion"); + _loc3_ = this.method_54(_loc2_); + _loc4_ = name_150(this.gameKernel.method_33().name_165(name_150)); + _loc5_ = name_146(this.activeTank.getComponentStrict(name_146)); + _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_21(_loc4_); + } + } + + private function method_66() : 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_146 = null; + var _loc13_:name_145 = null; + var _loc14_:name_145 = null; + var _loc15_:Number = NaN; + var _loc16_:name_145 = null; + var _loc17_:int = 0; + var _loc18_:Number = NaN; + var _loc19_:Number = NaN; + var _loc20_:name_173 = null; + var _loc21_:Number = NaN; + var _loc1_:name_53 = 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.method_54(_loc10_); + _loc12_ = name_146(this.activeTank.getComponentStrict(name_146)); + _loc13_ = _loc12_.getBody().state.position.clone(); + _loc13_.z = _loc13_.z + _loc2_; + _loc14_ = new name_145(); + _loc15_ = Math.random() * Math.PI; + _loc16_ = new name_145(); + _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_145.UP).normalize().scale(_loc19_); + _loc20_ = name_173(this.gameKernel.method_33().name_165(name_173)); + _loc21_ = Math.random() * Math.PI; + _loc20_.init(_loc9_,_loc9_,_loc11_,_loc13_,_loc14_,_loc8_,_loc21_,_loc7_,false); + this.gameKernel.name_5().method_21(_loc20_); + _loc15_ = _loc15_ + 2 / 3 * Math.PI; + _loc17_++; + } + } + } + + private function method_54(param1:Vector.) : Vector. + { + FrameMaterialsFactory.INSTANCE.renderSystem = this.gameKernel.name_5(); + return this.var_80.name_273(param1,FrameMaterialsFactory.INSTANCE) as Vector.; + } + + private function method_63(param1:name_4, param2:Array) : void + { + var _loc3_:name_53 = null; + var _loc4_:name_147 = null; + var _loc5_:name_186 = null; + for each(var _loc8_ in this.tanks) + { + _loc3_ = _loc8_; + _loc8_; + _loc4_ = name_147(_loc3_.getComponentStrict(name_147)); + _loc5_ = _loc4_.body; + param1.name_217("Tank " + _loc5_.id); + param1.name_217("position " + _loc5_.state.position); + param1.name_217("velocity " + _loc5_.state.velocity); + } + } + } +} + +import flash.display.BitmapData; +import flash.media.Sound; +import flash.utils.ByteArray; +import package_12.name_191; +import package_15.name_17; +import package_16.name_91; +import package_18.name_51; +import package_21.name_152; +import package_21.name_84; +import package_21.name_86; +import package_22.name_163; +import package_3.class_5; +import package_3.name_139; +import package_3.name_234; +import package_37.class_11; +import package_37.name_150; +import package_38.Matrix4; +import package_38.name_145; +import package_39.class_9; +import package_39.name_227; +import package_40.class_10; +import package_40.name_264; +import package_41.class_12; +import package_51.name_276; +import package_55.name_182; +import package_59.class_8; +import package_70.name_222; + +class FrameMaterialsFactory implements class_8 +{ + public static const INSTANCE:FrameMaterialsFactory = new FrameMaterialsFactory(); + + public var renderSystem:name_51; + + 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.name_148(_loc2_[_loc5_]); + _loc6_ = new class_5(_loc2_[_loc5_]); + _loc6_.var_21 = true; + _loc4_[_loc5_] = _loc6_; + _loc5_++; + } + return _loc4_; + } +} + +class DummyTurretCallback implements class_9 +{ + public function DummyTurretCallback() + { + super(); + } + + public function onTurretControlChanged(param1:int, param2:Boolean) : void + { + } +} + +class PointHitRoundAmmo implements class_10 +{ + private var impactForce:Number; + + private var weaponDistanceWeakening:name_182; + + private var weaponHitEffects:WeaponHitEffects; + + public function PointHitRoundAmmo(param1:name_17) + { + var _loc5_:int = 0; + super(); + this.impactForce = 10000; + this.weaponDistanceWeakening = new name_182(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_234(name_191.name_271(_loc5_,_loc5_,_loc5_),_loc5_ / 255 + 0.5)); + _loc4_++; + } + this.weaponHitEffects = new WeaponHitEffects(null,_loc2_,param1); + } + + public function getRound() : name_264 + { + return new name_222(this.impactForce,this.weaponDistanceWeakening,this.weaponHitEffects); + } +} + +class WeaponHitEffects implements class_11 +{ + private var sound:Sound; + + private var frames:Vector.; + + private var gameKernel:name_17; + + public function WeaponHitEffects(param1:Sound, param2:Vector., param3:name_17) + { + super(); + this.sound = param1; + this.frames = param2; + this.gameKernel = param3; + } + + public function createEffects(param1:name_145, param2:Number, param3:Number) : void + { + var _loc4_:name_150 = name_150(this.gameKernel.method_33().name_165(name_150)); + _loc4_.init(600,600,this.frames,param1,0,50,30,false); + this.gameKernel.name_5().method_21(_loc4_); + } +} + +class TextureResourceCache +{ + private var textureLibrary:name_91; + + private var cache:Object = {}; + + public function TextureResourceCache(param1:name_91) + { + super(); + this.textureLibrary = param1; + } + + public function getResource(param1:String) : name_86 + { + var _loc3_:Object = null; + var _loc2_:name_86 = this.cache[param1]; + if(_loc2_ == null) + { + _loc3_ = this.textureLibrary.name_155(param1); + if(_loc3_ is BitmapData) + { + _loc2_ = new name_84(_loc3_ as BitmapData); + this.cache[param1] = _loc2_; + } + else if(_loc3_ is ByteArray) + { + _loc2_ = new name_152(_loc3_ as ByteArray); + this.cache[param1] = _loc2_; + } + } + return _loc2_; + } +} + +class MultiBitmapTextureResourceCache +{ + private var textureLibrary:name_91; + + private var cache:Object = {}; + + public function MultiBitmapTextureResourceCache(param1:name_91) + { + 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_155(param1) as BitmapData; + _loc4_ = name_163.name_188(_loc3_); + _loc2_ = new Vector.(_loc4_.length); + _loc5_ = 0; + while(_loc5_ < _loc4_.length) + { + _loc2_[_loc5_] = new name_84(_loc4_[_loc5_]); + _loc5_++; + } + this.cache[param1] = _loc2_; + } + return _loc2_; + } +} + +class DummyTurret implements class_12 +{ + public function DummyTurret() + { + super(); + } + + public function setTurret(param1:name_227) : 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_145) : void + { + } + + public function getTurretPrimitives() : Vector. + { + return null; + } + + public function getChassisMatrix() : Matrix4 + { + return null; + } + + public function getInterpolatedTurretDirection() : Number + { + return 0; + } + + public function getSkinMountPoint(param1:name_145) : void + { + } + + public function getGunData(param1:int, param2:name_145, param3:name_145, param4:name_145) : void + { + } + + public function getGunMuzzleData(param1:int, param2:name_145, param3:name_145) : void + { + param2.reset(0,0,2000); + param3.reset(0,0,1); + } + + public function getGunMuzzleData2(param1:int, param2:name_145, param3:name_145) : void + { + } + + public function getBarrelLength(param1:int) : Number + { + return 0; + } + + public function getBarrelCount() : int + { + return 0; + } +} diff --git a/src/?_-ks?/?_-ig?.as b/src/package_62/name_211.as similarity index 55% rename from src/?_-ks?/?_-ig?.as rename to src/package_62/name_211.as index 0cda398..a37ad07 100644 --- a/src/?_-ks?/?_-ig?.as +++ b/src/package_62/name_211.as @@ -1,13 +1,13 @@ -package §_-ks§ +package package_62 { - import §_-az§.§_-ps§; import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.events.TimerEvent; import flash.utils.Timer; import flash.utils.getTimer; + import package_15.class_1; - public class §_-ig§ extends §_-ps§ + public class name_211 extends class_1 { private static const MESSAGE_SPACING_Y:int = 19; @@ -15,57 +15,57 @@ package §_-ks§ private var maxMessagesNumber:int; - private var §_-pQ§:Sprite; + private var var_436:Sprite; - private var §_-cd§:Vector.; + private var var_435:Vector.; private var timer:Timer; - public function §_-ig§(priority:int, maxMessagesNumber:int, container:DisplayObjectContainer, messagesX:int, messagesY:int) + public function name_211(priority:int, maxMessagesNumber:int, container:DisplayObjectContainer, messagesX:int, messagesY:int) { super(priority); this.maxMessagesNumber = maxMessagesNumber; - this.§_-pQ§ = new Sprite(); - this.§_-pQ§.x = messagesX; - this.§_-pQ§.y = messagesY; - container.addChild(this.§_-pQ§); - this.§_-cd§ = new Vector.(); + 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.timer = new Timer(1000); - this.timer.addEventListener(TimerEvent.TIMER,this.§_-Zt§); + this.timer.addEventListener(TimerEvent.TIMER,this.method_163); } public function set messagesX(value:int) : void { - this.§_-pQ§.x = value; + this.var_436.x = value; } public function set messagesY(value:int) : void { - this.§_-pQ§.y = value; + this.var_436.y = value; } - public function §_-U8§(text:String, color:uint) : void + public function name_223(text:String, color:uint) : void { var message:Message = new Message(text,color,MESSAGE_LIFE_TIME); - this.§_-cd§.push(message); - this.§_-pQ§.addChild(message); - if(this.§_-cd§.length > this.maxMessagesNumber) + this.var_435.push(message); + this.var_436.addChild(message); + if(this.var_435.length > this.maxMessagesNumber) { - this.§_-AW§(0); + this.method_161(0); } - this.§_-cp§(); - this.§_-4t§(); + this.method_162(); + this.method_160(); } override public function stop() : void { - this.§_-pQ§.parent.removeChild(this.§_-pQ§); + this.var_436.parent.removeChild(this.var_436); this.timer.stop(); } - private function §_-4t§() : void + private function method_160() : void { - if(this.§_-cd§.length > 0) + if(this.var_435.length > 0) { if(!this.timer.running) { @@ -78,38 +78,38 @@ package §_-ks§ } } - private function §_-cp§() : void + private function method_162() : void { var message:Message = null; - for(var i:int = 0; i < this.§_-cd§.length; i++) + for(var i:int = 0; i < this.var_435.length; i++) { - message = this.§_-cd§[i]; + message = this.var_435[i]; message.y = i * MESSAGE_SPACING_Y; } } - private function §_-Zt§(event:TimerEvent) : void + private function method_163(event:TimerEvent) : void { - this.§_-ZP§(getTimer()); - this.§_-cp§(); - this.§_-4t§(); + this.method_164(getTimer()); + this.method_162(); + this.method_160(); } - private function §_-ZP§(time:int) : void + private function method_164(time:int) : void { - if(this.§_-cd§.length > 0) + if(this.var_435.length > 0) { - if(Message(this.§_-cd§[0]).expirationTime <= time) + if(Message(this.var_435[0]).expirationTime <= time) { - this.§_-AW§(0); + this.method_161(0); } } } - private function §_-AW§(i:int) : void + private function method_161(i:int) : void { - this.§_-pQ§.removeChild(this.§_-cd§[i]); - this.§_-cd§.splice(i,1); + this.var_436.removeChild(this.var_435[i]); + this.var_435.splice(i,1); } } } diff --git a/src/?_-bJ?/?_-eG?.as b/src/package_79/name_358.as similarity index 64% rename from src/?_-bJ?/?_-eG?.as rename to src/package_79/name_358.as index 1f2bce1..0873392 100644 --- a/src/?_-bJ?/?_-eG?.as +++ b/src/package_79/name_358.as @@ -1,20 +1,20 @@ -package §_-bJ§ +package package_79 { - 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§; + import package_38.name_145; + import package_51.name_276; + import package_51.name_488; + import package_51.name_494; + import package_54.*; + import package_58.name_189; + import package_58.name_334; + import package_61.name_186; + import package_61.name_482; + import package_80.name_311; + import package_84.name_495; + import package_84.name_496; + import package_84.name_497; - public class §_-eG§ implements §_-Zm§ + public class name_358 implements name_357 { private static var timestamp:int; @@ -24,19 +24,19 @@ package §_-bJ§ private static var EPSILON:Number = 0.0001; - private static var normal:§_-bj§ = new §_-bj§(); + private static var normal:name_145 = new name_145(); - private static var collisionBox:§_-m3§ = new §_-m3§(new §_-bj§(),4294967295,0); + private static var collisionBox:name_311 = new name_311(new name_145(),4294967295,0); private var cellSize:Number; - private var §_-aq§:§_-FW§ = new §_-FW§(); + private var var_609:name_334 = new name_334(); - private var denseArray:Vector.<§_-Nh§>; + private var denseArray:Vector.; private var denseCellIndices:Vector.; - private var §_-00§:int; + private var var_613:int; private var numCellsX:int; @@ -44,140 +44,140 @@ package §_-bJ§ private var numCellsZ:int; - private var §_-Sp§:int; + private var var_616:int; - private var §_-48§:Vector.; + private var var_615:Vector.; - private var §_-81§:int; + private var var_618:int; - private var §_-3Q§:Vector.<§_-Pg§>; + private var var_611:Vector.; - private var §_-VV§:int; + private var var_612:int; private var bodyCellEntries:Vector.; - private var §_-P6§:Object; + private var var_596:Object; - private var §_-SI§:RaycastCellVisitor; + private var var_610:RaycastCellVisitor; - private var §_-Qp§:OccupiedCellIndex; + private var var_614:OccupiedCellIndex; - private var §_-WJ§:Boolean; + private var var_617:Boolean; - public function §_-eG§() + public function name_358() { super(); - this.§_-3Q§ = new Vector.<§_-Pg§>(); - this.§_-SI§ = new RaycastCellVisitor(); - this.§_-kL§(); - this.§_-8J§(); + this.var_611 = new Vector.(); + this.var_610 = new RaycastCellVisitor(); + this.method_265(); + this.method_261(); } - private function §_-c2§(type1:int, type2:int, collider:§_-hG§) : void + private function method_239(type1:int, type2:int, collider:name_494) : void { - this.§_-P6§[type1 | type2] = collider; + this.var_596[type1 | type2] = collider; } - public function §_-pN§(bodyCollisionData:§_-YY§) : void + public function name_434(bodyCollisionData:name_406) : void { - if(this.§_-OL§(bodyCollisionData.body) >= 0) + if(this.method_258(bodyCollisionData.body) >= 0) { throw new Error("Body collision data already exists"); } - var bodyCollisionGridData:§_-Pg§ = §_-Pg§.create(); + var bodyCollisionGridData:name_509 = name_509.create(); bodyCollisionGridData.body = bodyCollisionData.body; bodyCollisionGridData.detailedPrimitives = bodyCollisionData.detailedPrimitives; bodyCollisionGridData.simplePrimitives = bodyCollisionData.simplePrimitives; - bodyCollisionGridData.index = this.§_-VV§; - var _loc3_:* = this.§_-VV§++; - this.§_-3Q§[_loc3_] = bodyCollisionGridData; - this.§_-WJ§ = true; + bodyCollisionGridData.index = this.var_612; + var _loc3_:* = this.var_612++; + this.var_611[_loc3_] = bodyCollisionGridData; + this.var_617 = true; } - public function §_-qP§(bodyCollisionData:§_-YY§) : void + public function name_433(bodyCollisionData:name_406) : void { - var index:int = this.§_-OL§(bodyCollisionData.body); + var index:int = this.method_258(bodyCollisionData.body); if(index < 0) { throw new Error("Body collision data not found"); } - --this.§_-VV§; - var lastBodyEntry:§_-Pg§ = this.§_-3Q§[this.§_-VV§]; + --this.var_612; + var lastBodyEntry:name_509 = this.var_611[this.var_612]; lastBodyEntry.index = index; - §_-Pg§(this.§_-3Q§[index]).destroy(); - this.§_-3Q§[index] = lastBodyEntry; - this.§_-3Q§[this.§_-VV§] = null; - this.§_-WJ§ = true; + name_509(this.var_611[index]).destroy(); + this.var_611[index] = lastBodyEntry; + this.var_611[this.var_612] = null; + this.var_617 = true; } - public function §_-9F§() : void + public function name_359() : void { - this.§_-nT§(); + this.method_255(); } - public function §_-OA§() : Number + public function method_271() : Number { return this.cellSize; } - public function §_-8t§() : §_-FW§ + public function method_275() : name_334 { - return this.§_-aq§.clone(); + return this.var_609.clone(); } - public function §_-9i§() : int + public function method_272() : int { return this.numCellsX; } - public function §_-PM§() : int + public function method_274() : int { return this.numCellsY; } - public function §_-5F§() : int + public function method_273() : int { return this.numCellsZ; } - public function §_-Bo§() : int + public function method_276() : int { - return this.§_-Sp§; + return this.var_616; } - public function §_-D6§(x:int, y:int, z:int) : int + public function method_270(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 §_-hS§(cellSize:Number, staticPrimitives:Vector.<§_-Nh§>) : void + public function name_362(cellSize:Number, staticPrimitives:Vector.) : void { - this.§_-SQ§(staticPrimitives,cellSize); - this.§_-hH§(staticPrimitives); - this.§_-EF§(); + this.method_268(staticPrimitives,cellSize); + this.method_259(staticPrimitives); + this.method_264(); } - public function §_-7u§(center:§_-bj§, radius:Number, filter:§_-VN§) : Vector.<§_-bB§> + public function method_249(center:name_145, radius:Number, filter:name_498) : Vector. { - var result:Vector.<§_-bB§> = null; + var result:Vector. = null; var j:int = 0; var k:int = 0; var index:int = 0; var bodyCellEntry:BodyCellEntry = null; - var data:§_-Pg§ = null; - var body:§_-BV§ = null; - var position:§_-bj§ = null; + var data:name_509 = null; + var body:name_186 = null; + var position:name_145 = 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.§_-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 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 ts:int = int(++timestamp); var radiusSqr:Number = radius * radius; for(var i:int = imin; i <= imax; i++) @@ -201,13 +201,13 @@ package §_-bJ§ d = dx * dx + dy * dy + dz * dz; if(d < radiusSqr) { - if(filter == null || Boolean(filter.§_-cb§(center,body))) + if(filter == null || Boolean(filter.name_500(center,body))) { if(result == null) { - result = new Vector.<§_-bB§>(); + result = new Vector.(); } - result.push(new §_-bB§(body,Math.sqrt(d))); + result.push(new name_485(body,Math.sqrt(d))); } } } @@ -219,55 +219,55 @@ package §_-bJ§ return result; } - public function §_-63§(contacts:§_-6h§) : §_-6h§ + public function method_254(contacts:name_482) : name_482 { - var bodyCollisionData:§_-Pg§ = null; - this.§_-nT§(); - for(var i:int = 0; i < this.§_-VV§; i++) + var bodyCollisionData:name_509 = null; + this.method_255(); + for(var i:int = 0; i < this.var_612; i++) { - bodyCollisionData = this.§_-3Q§[i]; - contacts = this.§_-RK§(bodyCollisionData,contacts); + bodyCollisionData = this.var_611[i]; + contacts = this.method_262(bodyCollisionData,contacts); } - return this.§_-aE§(contacts); + return this.method_267(contacts); } - private function §_-EF§() : void + private function method_264() : void { - 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; + 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; } - private function §_-SQ§(staticPrimitives:Vector.<§_-Nh§>, cellSize:Number) : void + private function method_268(staticPrimitives:Vector., cellSize:Number) : void { - var collisionPrimitive:§_-Nh§ = null; + var collisionPrimitive:name_276 = null; this.cellSize = cellSize; - this.§_-aq§.§_-GT§(); + this.var_609.name_426(); for each(collisionPrimitive in staticPrimitives) { - this.§_-aq§.§_-EH§(collisionPrimitive.calculateAABB()); + this.var_609.name_424(collisionPrimitive.calculateAABB()); } - 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§); + this.var_609.name_510(cellSize + EPSILON); + this.numCellsX = int(this.var_609.name_513() / cellSize) + 1; + this.numCellsY = int(this.var_609.name_512() / cellSize) + 1; + this.numCellsZ = int(this.var_609.name_514() / 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); } - private function §_-hH§(staticPrimitives:Vector.<§_-Nh§>) : void + private function method_259(staticPrimitives:Vector.) : void { var index:int = 0; var denseArraySize:int = 0; var lastIndex:int = 0; var numCellPrimitives:int = 0; - var collisionPrimitive:§_-Nh§ = null; - var bb:§_-FW§ = null; + var collisionPrimitive:name_276 = null; + var bb:name_334 = null; var imin:int = 0; var imax:int = 0; var jmin:int = 0; @@ -279,33 +279,33 @@ package §_-bJ§ var k:int = 0; var cellIndex:int = 0; var denseCellIndex:int = 0; - var cellCounters:Vector. = this.§_-VK§(staticPrimitives); - this.§_-Sp§ = 0; - this.denseCellIndices = new Vector.(this.§_-00§); - for(index = 0; index < this.§_-00§; index++) + var cellCounters:Vector. = this.method_260(staticPrimitives); + this.var_616 = 0; + this.denseCellIndices = new Vector.(this.var_613); + for(index = 0; index < this.var_613; index++) { numCellPrimitives = cellCounters[index]; - if(numCellPrimitives > this.§_-Sp§) + if(numCellPrimitives > this.var_616) { - this.§_-Sp§ = numCellPrimitives; + this.var_616 = numCellPrimitives; } denseArraySize += numCellPrimitives; this.denseCellIndices[index] = numCellPrimitives << 24 | lastIndex; lastIndex += numCellPrimitives; cellCounters[index] = 0; } - this.denseArray = new Vector.<§_-Nh§>(denseArraySize); + this.denseArray = new Vector.(denseArraySize); var numPrimitives:int = int(staticPrimitives.length); for(index = 0; index < numPrimitives; index++) { collisionPrimitive = staticPrimitives[index]; bb = collisionPrimitive.aabb; - 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; + 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; for(i = imin; i <= imax; i++) { for(j = jmin; j <= jmax; j++) @@ -322,9 +322,9 @@ package §_-bJ§ } } - private function §_-VK§(staticPrimitives:Vector.<§_-Nh§>) : Vector. + private function method_260(staticPrimitives:Vector.) : Vector. { - var bb:§_-FW§ = null; + var bb:name_334 = null; var imin:int = 0; var imax:int = 0; var jmin:int = 0; @@ -335,17 +335,17 @@ package §_-bJ§ var j:int = 0; var k:int = 0; var cellIndex:int = 0; - var cellPrimitiveCounters:Vector. = new Vector.(this.§_-00§); + var cellPrimitiveCounters:Vector. = new Vector.(this.var_613); var numPrimitives:int = int(staticPrimitives.length); for(var index:int = 0; index < numPrimitives; index++) { bb = staticPrimitives[index].aabb; - 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; + 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; for(i = imin; i <= imax; i++) { for(j = jmin; j <= jmax; j++) @@ -361,11 +361,11 @@ package §_-bJ§ return cellPrimitiveCounters; } - private function §_-aE§(contacts:§_-6h§) : §_-6h§ + private function method_267(contacts:name_482) : name_482 { var currentBodyCellEntry:BodyCellEntry = null; - var currentBodyData:§_-Pg§ = null; - var bodyCollisionGridData:§_-Pg§ = null; + var currentBodyData:name_509 = null; + var bodyCollisionGridData:name_509 = null; var imin:int = 0; var imax:int = 0; var jmin:int = 0; @@ -377,14 +377,14 @@ package §_-bJ§ var j:int = 0; var k:int = 0; var cellIndex:int = 0; - this.§_-KE§(); - var numBodies:int = int(this.§_-3Q§.length); - for(var occupiedCell:OccupiedCellIndex = this.§_-Qp§; occupiedCell != null; ) + this.method_269(); + var numBodies:int = int(this.var_611.length); + for(var occupiedCell:OccupiedCellIndex = this.var_614; occupiedCell != null; ) { for(currentBodyCellEntry = this.bodyCellEntries[occupiedCell.index]; currentBodyCellEntry != null; ) { currentBodyData = currentBodyCellEntry.data; - contacts = this.§_-AZ§(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,currentBodyCellEntry.next,numBodies,contacts); + contacts = this.method_257(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 §_-bJ§ cellIndex = i * this.numCellsY * this.numCellsZ + j * this.numCellsZ + k; if(cellIndex != thisCell) { - contacts = this.§_-AZ§(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,this.bodyCellEntries[cellIndex],numBodies,contacts); + contacts = this.method_257(currentBodyData.body,currentBodyData.index,currentBodyData.simplePrimitives,this.bodyCellEntries[cellIndex],numBodies,contacts); } k++; } @@ -415,20 +415,20 @@ package §_-bJ§ return contacts; } - private function §_-AZ§(body:§_-BV§, bodyIndex:int, bodyPrimitives:Vector.<§_-Nh§>, cellStartEntry:BodyCellEntry, numBodies:int, contacts:§_-6h§) : §_-6h§ + private function method_257(body:name_186, bodyIndex:int, bodyPrimitives:Vector., cellStartEntry:BodyCellEntry, numBodies:int, contacts:name_482) : name_482 { var index2:int = 0; var min:int = 0; var max:int = 0; var bitIndex:int = 0; var mask:int = 0; - var body2:§_-BV§ = null; - var bodyPrimitives2:Vector.<§_-Nh§> = null; + var body2:name_186 = null; + var bodyPrimitives2:Vector. = null; var numPrimitives2:int = 0; var i:int = 0; - var collisionPrimitive1:§_-Nh§ = null; + var collisionPrimitive1:name_276 = null; var j:int = 0; - var collisionPrimitive2:§_-Nh§ = null; + var collisionPrimitive2:name_276 = null; for(var numPrimitives1:int = int(bodyPrimitives.length); cellStartEntry != null; ) { if(cellStartEntry.data.body != body) @@ -443,9 +443,9 @@ package §_-bJ§ } bitIndex = min * (2 * numBodies - min - 3) / 2 + max - 1; mask = 1 << (bitIndex & 0x1F); - if((this.§_-48§[bitIndex >>> 5] & mask) == 0) + if((this.var_615[bitIndex >>> 5] & mask) == 0) { - this.§_-48§[bitIndex >>> 5] |= mask; + this.var_615[bitIndex >>> 5] |= mask; body2 = cellStartEntry.data.body; if(body2.aabb.intersects(body.aabb,EPSILON)) { @@ -459,7 +459,7 @@ package §_-bJ§ collisionPrimitive2 = bodyPrimitives2[j]; if(!((collisionPrimitive1.collisionGroup & collisionPrimitive2.collisionMask) == 0 || (collisionPrimitive1.collisionMask & collisionPrimitive2.collisionGroup) == 0 || !collisionPrimitive1.aabb.intersects(collisionPrimitive2.aabb,EPSILON))) { - contacts = this.§_-1p§(body,bodyPrimitives,numPrimitives1,body2,bodyPrimitives2,numPrimitives2,contacts); + contacts = this.method_266(body,bodyPrimitives,numPrimitives1,body2,bodyPrimitives2,numPrimitives2,contacts); } } } @@ -471,11 +471,11 @@ package §_-bJ§ return contacts; } - private function §_-1p§(body1:§_-BV§, primitives1:Vector.<§_-Nh§>, numPrimitives1:int, body2:§_-BV§, primitives2:Vector.<§_-Nh§>, numPrimitives2:int, contact:§_-6h§) : §_-6h§ + private function method_266(body1:name_186, primitives1:Vector., numPrimitives1:int, body2:name_186, primitives2:Vector., numPrimitives2:int, contact:name_482) : name_482 { - var primitive1:§_-Nh§ = null; + var primitive1:name_276 = null; var j:int = 0; - var primitive2:§_-Nh§ = null; + var primitive2:name_276 = null; var skipCollision:Boolean = false; var firstFilterTest:Boolean = true; for(var i:int = 0; i < numPrimitives1; i++) @@ -511,15 +511,15 @@ package §_-bJ§ return contact; } - private function §_-KE§() : void + private function method_269() : void { - for(var i:int = 0; i < this.§_-81§; i++) + for(var i:int = 0; i < this.var_618; i++) { - this.§_-48§[i] = 0; + this.var_615[i] = 0; } } - private function §_-RK§(bodyCollisionData:§_-Pg§, contacts:§_-6h§) : §_-6h§ + private function method_262(bodyCollisionData:name_509, contacts:name_482) : name_482 { var jj:int = 0; var kk:int = 0; @@ -527,9 +527,9 @@ package §_-bJ§ var denseIndexStart:int = 0; var denseIndexEnd:int = 0; var index:int = 0; - var staticCollisionPrimitive:§_-Nh§ = null; + var staticCollisionPrimitive:name_276 = null; var bpi:int = 0; - var bodyCollisionPrimitive:§_-Nh§ = null; + var bodyCollisionPrimitive:name_276 = null; var imin:int = bodyCollisionData.i & 0xFFFF; var imax:int = bodyCollisionData.i >>> 16; var jmin:int = bodyCollisionData.j & 0xFFFF; @@ -537,7 +537,7 @@ package §_-bJ§ var kmin:int = bodyCollisionData.k & 0xFFFF; var kmax:int = bodyCollisionData.k >>> 16; var tstamp:int = int(++timestamp); - var bodyPrimitives:Vector.<§_-Nh§> = bodyCollisionData.detailedPrimitives; + var bodyPrimitives:Vector. = bodyCollisionData.detailedPrimitives; var numBodyPrimitives:int = int(bodyPrimitives.length); for(var ii:int = imin; ii <= imax; ii++) { @@ -572,71 +572,71 @@ package §_-bJ§ return contacts; } - public function raycast(origin:§_-bj§, direction:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean + public function raycast(origin:name_145, direction:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean { - if(this.§_-WJ§) + if(this.var_617) { - this.§_-nT§(); + this.method_255(); } - 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) + this.var_610.collisionMask = collisionMask; + this.var_610.filter = filter; + this.var_610.result = result; + this.var_610.bodyCellEntries = this.bodyCellEntries; + this.method_256(origin,direction,maxTime,this.var_610); + this.var_610.clear(); + if(this.var_610.hasHit) { if(result.t < maxTime) { - result.position.copy(origin).§_-LQ§(result.t,direction); + result.position.copy(origin).name_458(result.t,direction); return true; } } return false; } - public function §_-cX§(origin:§_-bj§, direction:§_-bj§, collisionMask:int, maxTime:Number, filter:§_-jn§, result:§_-jr§) : Boolean + public function name_246(origin:name_145, direction:name_145, collisionMask:int, maxTime:Number, filter:name_488, result:name_189) : Boolean { - 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) + this.var_610.collisionMask = collisionMask; + this.var_610.filter = filter; + this.var_610.result = result; + this.method_256(origin,direction,maxTime,this.var_610); + this.var_610.clear(); + if(this.var_610.hasHit) { if(result.t < maxTime) { - result.position.copy(origin).§_-LQ§(result.t,direction); + result.position.copy(origin).name_458(result.t,direction); return true; } } return false; } - public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean + public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean { if((prim1.collisionMask & prim2.collisionGroup) == 0 || (prim2.collisionMask & prim1.collisionGroup) == 0 || !prim1.aabb.intersects(prim2.aabb,0.01)) { return false; } - var collider:§_-hG§ = this.§_-P6§[prim1.type | prim2.type]; + var collider:name_494 = this.var_596[prim1.type | prim2.type]; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.name_491(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.name_491(prim2,prim1)); } return false; } - public function §_-A5§(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean + public function method_240(prim1:name_276, prim2:name_276) : Boolean { return false; } - public function §_-e0§(origin:§_-bj§, direction:§_-bj§, maxTime:Number, visitor:§_-hm§) : void + public function method_256(origin:name_145, direction:name_145, maxTime:Number, visitor:class_25) : void { var t:Number = NaN; var i:int = 0; @@ -644,29 +644,29 @@ package §_-bJ§ var k:int = 0; var cellMaxTime:Number = NaN; var tstamp:int = int(++timestamp); - 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 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 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:§_-bj§ = new §_-bj§(); - var pointInBounds:Boolean = this.§_-aq§.§_-Wu§(origin,EPSILON); + var p:name_145 = new name_145(); + var pointInBounds:Boolean = this.var_609.name_511(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.§_-aq§.minX + collisionBox.hs.x; - collisionBox.transform.h = this.§_-aq§.minY + collisionBox.hs.y; - collisionBox.transform.l = this.§_-aq§.minZ + collisionBox.hs.z; + 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.calculateAABB(); t = collisionBox.raycast(origin,direction,EPSILON,normal); if(t < 0 || t >= maxTime) { return; } - p.copy(origin).§_-LQ§(t,direction); + p.copy(origin).name_458(t,direction); if(normal.x > 0.9999 || normal.x < -0.9999) { axis = 0; @@ -680,9 +680,9 @@ package §_-bJ§ axis = 2; } entryTime = t; - 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); + 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); } else { @@ -784,12 +784,12 @@ package §_-bJ§ return value; } - private function §_-Oi§() : void + private function method_263() : void { var bodyCellEntry:BodyCellEntry = null; var nextBodyCellEntry:BodyCellEntry = null; var nextOccupiedCell:OccupiedCellIndex = null; - for(var cellIndex:int = 0; cellIndex < this.§_-00§; cellIndex++) + for(var cellIndex:int = 0; cellIndex < this.var_613; cellIndex++) { bodyCellEntry = this.bodyCellEntries[cellIndex]; for(this.bodyCellEntries[cellIndex] = null; bodyCellEntry != null; ) @@ -799,8 +799,8 @@ package §_-bJ§ bodyCellEntry = nextBodyCellEntry; } } - var occupiedCell:OccupiedCellIndex = this.§_-Qp§; - for(this.§_-Qp§ = null; occupiedCell != null; ) + var occupiedCell:OccupiedCellIndex = this.var_614; + for(this.var_614 = null; occupiedCell != null; ) { nextOccupiedCell = occupiedCell.next; occupiedCell.destory(); @@ -808,10 +808,10 @@ package §_-bJ§ } } - private function §_-nT§() : void + private function method_255() : void { - var bodyCollisionData:§_-Pg§ = null; - var boundBox:§_-FW§ = null; + var bodyCollisionData:name_509 = null; + var boundBox:name_334 = null; var imin:int = 0; var jmin:int = 0; var kmin:int = 0; @@ -825,31 +825,31 @@ package §_-bJ§ var k:int = 0; var index:int = 0; var newEntry:BodyCellEntry = null; - this.§_-Oi§(); - for(var ti:int = 0; ti < this.§_-VV§; ti++) + this.method_263(); + for(var ti:int = 0; ti < this.var_612; ti++) { - bodyCollisionData = this.§_-3Q§[ti]; + bodyCollisionData = this.var_611[ti]; boundBox = bodyCollisionData.body.aabb; - imin = (boundBox.minX - this.§_-aq§.minX) / this.cellSize; + imin = (boundBox.minX - this.var_609.minX) / this.cellSize; if(!(imin < 0 || imin >= this.numCellsX)) { - jmin = (boundBox.minY - this.§_-aq§.minY) / this.cellSize; + jmin = (boundBox.minY - this.var_609.minY) / this.cellSize; if(!(jmin < 0 || jmin >= this.numCellsY)) { - kmin = (boundBox.minZ - this.§_-aq§.minZ) / this.cellSize; + kmin = (boundBox.minZ - this.var_609.minZ) / this.cellSize; if(!(kmin < 0 || kmin >= this.numCellsZ)) { - imax = (boundBox.maxX - this.§_-aq§.minX) / this.cellSize; + imax = (boundBox.maxX - this.var_609.minX) / this.cellSize; if(imax >= this.numCellsX) { imax = this.numCellsX - 1; } - jmax = (boundBox.maxY - this.§_-aq§.minY) / this.cellSize; + jmax = (boundBox.maxY - this.var_609.minY) / this.cellSize; if(jmax >= this.numCellsY) { jmax = this.numCellsY - 1; } - kmax = (boundBox.maxZ - this.§_-aq§.minZ) / this.cellSize; + kmax = (boundBox.maxZ - this.var_609.minZ) / this.cellSize; if(kmax >= this.numCellsZ) { kmax = this.numCellsZ - 1; @@ -861,8 +861,8 @@ package §_-bJ§ if(this.bodyCellEntries[cellIndex] == null) { occupiedCellIndex = OccupiedCellIndex.create(cellIndex); - occupiedCellIndex.next = this.§_-Qp§; - this.§_-Qp§ = occupiedCellIndex; + occupiedCellIndex.next = this.var_614; + this.var_614 = occupiedCellIndex; } for(i = imin; i <= imax; ) { @@ -883,15 +883,15 @@ package §_-bJ§ } } } - this.§_-WJ§ = false; + this.var_617 = false; } - private function §_-OL§(body:§_-BV§) : int + private function method_258(body:name_186) : int { - var bodyCollisionGridData:§_-Pg§ = null; - for(var i:int = 0; i < this.§_-VV§; ) + var bodyCollisionGridData:name_509 = null; + for(var i:int = 0; i < this.var_612; ) { - bodyCollisionGridData = this.§_-3Q§[i]; + bodyCollisionGridData = this.var_611[i]; if(bodyCollisionGridData.body == body) { return i; @@ -901,33 +901,33 @@ package §_-bJ§ return -1; } - private function §_-8J§() : void + private function method_261() : void { var maxObjectPairs:int = MAX_OBJECTS * (MAX_OBJECTS - 1) / 2; - this.§_-81§ = (maxObjectPairs + 31) / 32; - this.§_-48§ = new Vector.(this.§_-81§); + this.var_618 = (maxObjectPairs + 31) / 32; + this.var_615 = new Vector.(this.var_618); } - private function §_-kL§() : void + private function method_265() : void { - 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§()); + this.var_596 = new Object(); + this.method_239(name_276.BOX,name_276.BOX,new name_495()); + this.method_239(name_276.BOX,name_276.RECT,new name_496()); + this.method_239(name_276.BOX,name_276.TRIANGLE,new name_497()); } } } -import §_-1e§.§_-Nh§; -import §_-1e§.§_-jn§; -import §_-KA§.§_-jr§; -import §_-nl§.§_-bj§; +import package_38.name_145; +import package_51.name_276; +import package_51.name_488; +import package_58.name_189; class BodyCellEntry { private static var pool:BodyCellEntry; - public var data:§_-Pg§; + public var data:name_509; public var next:BodyCellEntry; @@ -956,13 +956,13 @@ class BodyCellEntry } } -class RaycastCellVisitor implements §_-hm§ +class RaycastCellVisitor implements class_25 { public static var EPSILON:Number = 0.0001; - private static var normal:§_-bj§ = new §_-bj§(); + private static var normal:name_145 = new name_145(); - public var denseArray:Vector.<§_-Nh§>; + public var denseArray:Vector.; public var denseCellIndices:Vector.; @@ -976,15 +976,15 @@ class RaycastCellVisitor implements §_-hm§ public var collisionMask:int; - public var filter:§_-jn§; + public var filter:name_488; - public var result:§_-jr§; + public var result:name_189; public var hasHit:Boolean; - private var nearestPrimitive:§_-Nh§; + private var nearestPrimitive:name_276; - private var nearestNormal:§_-bj§ = new §_-bj§(); + private var nearestNormal:name_145 = new name_145(); private var nearestTime:Number = 1.7976931348623157e+308; @@ -993,13 +993,13 @@ class RaycastCellVisitor implements §_-hm§ super(); } - public function visitCell(celli:int, cellj:int, cellk:int, axis:int, cellEntryTime:Number, cellMaxTime:Number, timestamp:int, rayOrigin:§_-bj§, rayDirection:§_-bj§) : Boolean + public function visitCell(celli:int, cellj:int, cellk:int, axis:int, cellEntryTime:Number, cellMaxTime:Number, timestamp:int, rayOrigin:name_145, rayDirection:name_145) : Boolean { - var collisionPrimitive:§_-Nh§ = null; + var collisionPrimitive:name_276 = null; var time:Number = NaN; var bodyCellEntry:BodyCellEntry = null; - var data:§_-Pg§ = null; - var detailedPrimitives:Vector.<§_-Nh§> = null; + var data:name_509 = null; + var detailedPrimitives:Vector. = null; var numPrimitives:uint = 0; this.hasHit = false; var cellIndex:int = celli * this.numCellsY * this.numCellsZ + cellj * this.numCellsZ + cellk; @@ -1016,7 +1016,7 @@ class RaycastCellVisitor implements §_-hm§ if((collisionPrimitive.collisionGroup & this.collisionMask) != 0) { time = Number(collisionPrimitive.raycast(rayOrigin,rayDirection,EPSILON,normal)); - if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.§_-0w§(collisionPrimitive)))) + if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.name_493(collisionPrimitive)))) { minTime = time; if(time < cellMaxTime) @@ -1053,7 +1053,7 @@ class RaycastCellVisitor implements §_-hm§ if((collisionPrimitive.collisionGroup & this.collisionMask) != 0) { time = Number(collisionPrimitive.raycast(rayOrigin,rayDirection,EPSILON,normal)); - if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.§_-0w§(collisionPrimitive)))) + if(time > 0 && time < minTime && (this.filter == null || Boolean(this.filter.name_493(collisionPrimitive)))) { minTime = time; if(time < cellMaxTime) diff --git a/src/?_-pe?/?_-m3?.as b/src/package_80/name_311.as similarity index 85% rename from src/?_-pe?/?_-m3?.as rename to src/package_80/name_311.as index 3ea0132..8c5f7dd 100644 --- a/src/?_-pe?/?_-m3?.as +++ b/src/package_80/name_311.as @@ -1,21 +1,21 @@ -package §_-pe§ +package package_80 { - import §_-1e§.§_-Nh§; - import §_-KA§.§_-FW§; - import §_-nl§.Matrix4; - import §_-nl§.§_-bj§; + import package_38.Matrix4; + import package_38.name_145; + import package_51.name_276; + import package_58.name_334; - public class §_-m3§ extends §_-Nh§ + public class name_311 extends name_276 { - public var hs:§_-bj§ = new §_-bj§(); + public var hs:name_145 = new name_145(); - public function §_-m3§(hs:§_-bj§, collisionGroup:int, collisionMask:int) + public function name_311(hs:name_145, collisionGroup:int, collisionMask:int) { super(BOX,collisionGroup,collisionMask); this.hs.copy(hs); } - override public function calculateAABB() : §_-FW§ + override public function calculateAABB() : name_334 { var t:Matrix4 = null; var xx:Number = NaN; @@ -46,9 +46,9 @@ package §_-pe§ return aabb; } - override public function copyFrom(source:§_-Nh§) : §_-Nh§ + override public function copyFrom(source:name_276) : name_276 { - var box:§_-m3§ = source as §_-m3§; + var box:name_311 = source as name_311; if(box == null) { return this; @@ -58,12 +58,12 @@ package §_-pe§ return this; } - override protected function createPrimitive() : §_-Nh§ + override protected function createPrimitive() : name_276 { - return new §_-m3§(this.hs,collisionGroup,collisionMask); + return new name_311(this.hs,collisionGroup,collisionMask); } - override public function raycast(origin:§_-bj§, vector:§_-bj§, epsilon:Number, normal:§_-bj§) : Number + override public function raycast(origin:name_145, vector:name_145, epsilon:Number, normal:name_145) : Number { var t1:Number = NaN; var t2:Number = NaN; diff --git a/src/?_-am?/?_-Fh?.as b/src/package_83/name_470.as similarity index 66% rename from src/?_-am?/?_-Fh?.as rename to src/package_83/name_470.as index 6ab0ed8..19952c4 100644 --- a/src/?_-am?/?_-Fh?.as +++ b/src/package_83/name_470.as @@ -1,96 +1,96 @@ -package §_-am§ +package package_83 { - 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 package_10.name_23; + import package_13.name_28; + import package_14.name_3; + import package_17.name_28; + import package_19.class_16; + import package_19.name_523; + import package_19.name_531; + import package_21.name_136; + import package_21.name_85; + import package_3.name_29; + import package_32.name_180; + import package_33.name_117; + import package_33.name_130; + import package_33.name_334; + import package_33.name_542; + import package_35.DirectionalLight; + import package_35.OmniLight; + import package_35.SpotLight; + import package_35.name_530; + import package_85.A3D2AmbientLight; + import package_85.A3D2Box; + import package_85.A3D2DirectionalLight; + import package_85.A3D2Joint; + import package_85.A3D2Mesh; + import package_85.A3D2Object; + import package_85.A3D2OmniLight; + import package_85.A3D2Skin; + import package_85.A3D2SpotLight; + import package_85.A3D2Surface; + import package_85.A3D2Transform; + import package_86.A3D2IndexBuffer; + import package_86.A3D2VertexAttributes; + import package_86.A3D2VertexBuffer; + import package_87.A3D2Image; + import package_87.A3D2Map; + import package_87.A3D2Material; + import package_88.name_522; + import package_89.name_525; + import package_89.name_529; + import package_89.name_533; + import package_89.name_536; + import package_90.name_524; + import package_91.A3DImage; + import package_91.A3DMap; + import package_91.A3DMaterial; + import package_92.name_527; + import package_92.name_535; + import package_92.name_538; + import package_93.A3DBox; + import package_93.A3DObject; + import package_93.A3DSurface; + import package_94.A3DGeometry; + import package_94.A3DIndexBuffer; + import package_94.A3DVertexBuffer; + import package_95.name_526; + import package_96.name_528; + import package_97.name_534; + import package_97.name_540; + import package_98.name_543; use namespace alternativa3d; - public class §_-Fh§ + public class name_470 { - public var hierarchy:Vector.<§_-OX§>; + public var hierarchy:Vector.; - public var objects:Vector.<§_-OX§>; + public var objects:Vector.; private var maps:Dictionary; private var materials:Dictionary; - private var protocol:§_-ZD§; + private var protocol:name_527; - private var §_-gk§:Object; + private var var_628:Object; - private var §_-Y8§:Boolean = false; + private var var_629:Boolean = false; - public function §_-Fh§() + public function name_470() { super(); this.init(); } - private static function §_-a5§(source:§_-10§) : §_-Nq§ + private static function method_290(source:name_526) : name_524 { var i:int = 0; var count:int = 0; @@ -172,7 +172,7 @@ package §_-am§ for(i = 0,count = int(sourceMaterials.length); i < count; i++) { sourceMaterial = sourceMaterials[i]; - 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)); + destMaterial = new A3D2Material(method_280(sourceMaterial.diffuseMapId),method_280(sourceMaterial.glossinessMapId),method_280(sourceMaterial.id),method_280(sourceMaterial.lightMapId),method_280(sourceMaterial.normalMapId),method_280(sourceMaterial.opacityMapId),-1,method_280(sourceMaterial.specularMapId)); destMaterials[i] = destMaterial; } } @@ -240,41 +240,41 @@ package §_-am§ destVertexBuffersIds.push(destVertexBuffer.id); } } - 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); + destMesh = new A3D2Mesh(method_280(sourceObject.boundBoxId),method_284(sourceObject.id),destIndexBufferId,sourceObject.name,method_285(sourceObject.parentId),method_288(sourceObject.surfaces),new A3D2Transform(sourceObject.transformation.matrix),destVertexBuffersIds,sourceObject.visible); destMeshes.push(destMesh); objectsMap[sourceObject.id.id] = destMesh; } else { - destObject = new A3D2Object(§_-pc§(sourceObject.boundBoxId),§_-PV§(sourceObject.id),sourceObject.name,§_-0m§(sourceObject.parentId),new A3D2Transform(sourceObject.transformation.matrix),sourceObject.visible); + destObject = new A3D2Object(method_280(sourceObject.boundBoxId),method_284(sourceObject.id),sourceObject.name,method_285(sourceObject.parentId),new A3D2Transform(sourceObject.transformation.matrix),sourceObject.visible); destObjects.push(destObject); objectsMap[sourceObject.id.id] = destObject; } } } - 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); + return new name_524(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 §_-pc§(id:§_-W-§) : int + private static function method_280(id:name_540) : int { return id != null ? int(id.id) : -1; } - private static function §_-PV§(id:§_-W-§) : §_-Mu§ + private static function method_284(id:name_540) : name_522 { - return id != null ? §_-Mu§.§_-mU§(id.id) : §_-Mu§.§_-mU§(-1); + return id != null ? name_522.name_532(id.id) : name_522.name_532(-1); } - private static function §_-0m§(parentId:§_-aQ§) : §_-Mu§ + private static function method_285(parentId:name_543) : name_522 { if(parentId == null) { return null; } - return parentId != null ? §_-Mu§.§_-mU§(parentId.id) : null; + return parentId != null ? name_522.name_532(parentId.id) : null; } - private static function §_-qD§(source:Vector.) : Vector. + private static function method_288(source:Vector.) : Vector. { var sourceSurface:A3DSurface = null; var destSurface:A3D2Surface = null; @@ -282,13 +282,13 @@ package §_-am§ for(var i:int = 0,var count:int = int(source.length); i < count; i++) { sourceSurface = source[i]; - destSurface = new A3D2Surface(sourceSurface.indexBegin,§_-pc§(sourceSurface.materialId),sourceSurface.numTriangles); + destSurface = new A3D2Surface(sourceSurface.indexBegin,method_280(sourceSurface.materialId),sourceSurface.numTriangles); dest[i] = destSurface; } return dest; } - public function §_-Om§(input:ByteArray) : void + public function method_132(input:ByteArray) : void { var version:int = 0; try @@ -301,7 +301,7 @@ package §_-am§ } else { - this.§_-5V§(input); + this.method_292(input); } } catch(e:Error) @@ -310,9 +310,9 @@ package §_-am§ } } - public function §_-Yy§(name:String) : §_-OX§ + public function method_295(name:String) : name_130 { - var object:§_-OX§ = null; + var object:name_130 = null; for each(object in this.objects) { if(object.name == name) @@ -325,41 +325,41 @@ package §_-am§ private function init() : void { - if(this.§_-Y8§) + if(this.var_629) { return; } - if(§_-oP§.§_-nQ§() != null) + if(name_3.name_8() != null) { - this.protocol = §_-ZD§(§_-oP§.§_-nQ§().§_-N6§(§_-2i§)); + this.protocol = name_527(name_3.name_8().name_21(name_529)); return; } - §_-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; + name_3.clientLog = new DummyClientLog(); + var osgi:name_3 = new name_3(); + osgi.method_38(name_180,new DummyClientLog()); + new name_23().start(osgi); + new package_17.name_28().start(osgi); + new package_13.name_28().start(osgi); + this.protocol = name_527(osgi.name_21(name_529)); + this.var_629 = true; } private function parseVersion1(input:ByteArray) : void { input.position = 4; - var nullMap:§_-J5§ = §_-Yr§.§_-Nx§(input); - nullMap.§_-iM§(0); + var nullMap:name_533 = name_538.name_541(input); + nullMap.name_548(0); var data:ByteArray = new ByteArray(); data.writeBytes(input,input.position); data.position = 0; - 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); + var buffer:name_525 = new name_525(data,data,nullMap); + var codec:name_536 = this.protocol.name_539(new name_528(name_526,false)); + var _a3d:name_526 = name_526(codec.name_537(buffer)); + var a3d2:name_524 = method_290(_a3d); + this.method_286(a3d2); } - private function §_-Ol§(a3d:§_-Nq§) : void + private function method_286(a3d:name_524) : void { var a3DObject:A3D2Object = null; var a3DMesh:A3D2Mesh = null; @@ -375,17 +375,17 @@ package §_-am§ var a3DDirLight:A3D2DirectionalLight = null; var a3DSkin:A3D2Skin = null; var a3DJoint:A3D2Joint = 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 parent:name_522 = null; + var p:name_130 = null; + var object:name_130 = null; + var resJoint:name_523 = null; + var resSkin:class_16 = null; + var resAmbientLight:name_530 = null; + var resObject:name_130 = null; var resOmniLight:OmniLight = null; var resSpotLight:SpotLight = null; var resDirLight:DirectionalLight = null; - var resMesh:§_-U2§ = null; + var resMesh:class_16 = null; var objectsMap:Dictionary = new Dictionary(); var a3DIndexBuffers:Dictionary = new Dictionary(); var a3DVertexBuffers:Dictionary = new Dictionary(); @@ -418,14 +418,14 @@ package §_-am§ { a3DImages[a3DImage.id] = a3DImage; } - this.hierarchy = new Vector.<§_-OX§>(); - this.objects = new Vector.<§_-OX§>(); + this.hierarchy = new Vector.(); + this.objects = new Vector.(); this.maps = new Dictionary(); this.materials = new Dictionary(); - this.§_-gk§ = new Dictionary(); + this.var_628 = new Dictionary(); for each(a3DJoint in a3d.joints) { - resJoint = new §_-7D§(); + resJoint = new name_523(); resJoint.visible = a3DJoint.visible; resJoint.name = a3DJoint.name; parents[resJoint] = a3DJoint.parentId; @@ -435,16 +435,16 @@ package §_-am§ this.hierarchy.push(resJoint); } this.objects.push(resJoint); - this.§_-ET§(a3DJoint.transform,resJoint); + this.method_281(a3DJoint.transform,resJoint); a3DBox = a3DBoxes[a3DJoint.boundBoxId]; if(a3DBox != null) { - this.§_-Rh§(a3DBox.box,resJoint); + this.method_283(a3DBox.box,resJoint); } } for each(a3DSkin in a3d.skins) { - resSkin = this.§_-hi§(a3DSkin,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); + resSkin = this.method_291(a3DSkin,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); resSkin.visible = a3DSkin.visible; resSkin.name = a3DSkin.name; parents[resSkin] = a3DSkin.parentId; @@ -454,16 +454,16 @@ package §_-am§ this.hierarchy.push(resSkin); } this.objects.push(resSkin); - this.§_-ET§(a3DSkin.transform,resSkin); + this.method_281(a3DSkin.transform,resSkin); a3DBox = a3DBoxes[a3DSkin.boundBoxId]; if(a3DBox != null) { - this.§_-Rh§(a3DBox.box,resSkin); + this.method_283(a3DBox.box,resSkin); } } for each(a3DAmbientLight in a3d.ambientLights) { - resAmbientLight = new §_-LD§(a3DAmbientLight.color); + resAmbientLight = new name_530(a3DAmbientLight.color); resAmbientLight.intensity = a3DAmbientLight.intensity; resAmbientLight.visible = a3DAmbientLight.visible; resAmbientLight.name = a3DAmbientLight.name; @@ -474,16 +474,16 @@ package §_-am§ this.hierarchy.push(resAmbientLight); } this.objects.push(resAmbientLight); - this.§_-ET§(a3DAmbientLight.transform,resAmbientLight); + this.method_281(a3DAmbientLight.transform,resAmbientLight); a3DBox = a3DBoxes[a3DAmbientLight.boundBoxId]; if(a3DBox != null) { - this.§_-Rh§(a3DBox.box,resAmbientLight); + this.method_283(a3DBox.box,resAmbientLight); } } for each(a3DObject in a3d.objects) { - resObject = new §_-OX§(); + resObject = new name_130(); resObject.visible = a3DObject.visible; resObject.name = a3DObject.name; parents[resObject] = a3DObject.parentId; @@ -493,11 +493,11 @@ package §_-am§ this.hierarchy.push(resObject); } this.objects.push(resObject); - this.§_-ET§(a3DObject.transform,resObject); + this.method_281(a3DObject.transform,resObject); a3DBox = a3DBoxes[a3DObject.boundBoxId]; if(a3DBox != null) { - this.§_-Rh§(a3DBox.box,resObject); + this.method_283(a3DBox.box,resObject); } } for each(a3DOmniLight in a3d.omniLights) @@ -512,7 +512,7 @@ package §_-am§ this.hierarchy.push(resOmniLight); } this.objects.push(resOmniLight); - this.§_-ET§(a3DOmniLight.transform,resOmniLight); + this.method_281(a3DOmniLight.transform,resOmniLight); } for each(a3DSpotLight in a3d.spotLights) { @@ -526,7 +526,7 @@ package §_-am§ this.hierarchy.push(resSpotLight); } this.objects.push(resSpotLight); - this.§_-ET§(a3DSpotLight.transform,resSpotLight); + this.method_281(a3DSpotLight.transform,resSpotLight); } for each(a3DDirLight in a3d.directionalLights) { @@ -540,11 +540,11 @@ package §_-am§ this.hierarchy.push(resDirLight); } this.objects.push(resDirLight); - this.§_-ET§(a3DDirLight.transform,resDirLight); + this.method_281(a3DDirLight.transform,resDirLight); } for each(a3DMesh in a3d.meshes) { - resMesh = this.§_-cN§(a3DMesh,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); + resMesh = this.method_293(a3DMesh,a3DIndexBuffers,a3DVertexBuffers,a3DMaterials,a3DMaps,a3DImages); resMesh.visible = a3DMesh.visible; resMesh.name = a3DMesh.name; parents[resMesh] = a3DMesh.parentId; @@ -554,11 +554,11 @@ package §_-am§ this.hierarchy.push(resMesh); } this.objects.push(resMesh); - this.§_-ET§(a3DMesh.transform,resMesh); + this.method_281(a3DMesh.transform,resMesh); a3DBox = a3DBoxes[a3DMesh.boundBoxId]; if(a3DBox != null) { - this.§_-Rh§(a3DBox.box,resMesh); + this.method_283(a3DBox.box,resMesh); } } for each(object in objectsMap) @@ -572,17 +572,17 @@ package §_-am§ } } - private function §_-V6§(source:Vector.>, objectsMap:Dictionary) : Vector.> + private function method_296(source:Vector.>, objectsMap:Dictionary) : Vector.> { - var vector:Vector.<§_-Mu§> = null; - var resultVector:Vector.<§_-7D§> = null; + var vector:Vector. = null; + var resultVector:Vector. = 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.<§_-7D§>(); + resultVector = new Vector.(); for(j = 0,jcount = int(vector.length); j < jcount; j++) { resultVector[j] = objectsMap[vector[j]]; @@ -592,12 +592,12 @@ package §_-am§ return result; } - private function §_-5V§(input:ByteArray) : void + private function method_292(input:ByteArray) : void { input.position = 0; var data:ByteArray = new ByteArray(); - var buffer:§_-1F§ = new §_-1F§(data,data,new §_-J5§()); - §_-R6§.§_-Nd§(input,buffer); + var buffer:name_525 = new name_525(data,data,new name_533()); + name_535.name_546(input,buffer); input.position = 0; var versionMajor:int = int(buffer.reader.readUnsignedShort()); var versionMinor:int = int(buffer.reader.readUnsignedShort()); @@ -608,16 +608,16 @@ package §_-am§ } } - private function parseVersion2_0(buffer:§_-1F§) : void + private function parseVersion2_0(buffer:name_525) : void { - var codec:§_-Sv§ = this.protocol.§_-8G§(new §_-7x§(§_-Nq§,false)); - var a3d:§_-Nq§ = §_-Nq§(codec.§_-2Q§(buffer)); - this.§_-Ol§(a3d); + var codec:name_536 = this.protocol.name_539(new name_528(name_524,false)); + var a3d:name_524 = name_524(codec.name_537(buffer)); + this.method_286(a3d); } - private function §_-Rh§(box:Vector., destination:§_-OX§) : void + private function method_283(box:Vector., destination:name_130) : void { - destination.boundBox = new §_-FW§(); + destination.boundBox = new name_334(); destination.boundBox.minX = box[0]; destination.boundBox.minY = box[1]; destination.boundBox.minZ = box[2]; @@ -626,13 +626,13 @@ package §_-am§ destination.boundBox.maxZ = box[5]; } - private function §_-ET§(transform:A3D2Transform, obj:§_-OX§) : void + private function method_281(transform:A3D2Transform, obj:name_130) : void { if(transform == null) { return; } - var matrix:§_-Fx§ = transform.matrix; + var matrix:name_534 = 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 §_-am§ obj.scaleZ = vecs[2].z; } - private function §_-Ma§(transform:A3D2Transform, obj:§_-7D§) : void + private function method_294(transform:A3D2Transform, obj:name_523) : void { if(transform == null) { return; } - var matrix:§_-Fx§ = transform.matrix; + var matrix:name_534 = 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::_-k9(mat); + obj.alternativa3d::name_545(mat); } - private function §_-cN§(a3DMesh:A3D2Mesh, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : §_-U2§ + private function method_293(a3DMesh:A3D2Mesh, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : class_16 { var s:A3D2Surface = null; - var m:§_-qn§ = null; - var res:§_-U2§ = new §_-U2§(); - res.geometry = this.§_-DD§(a3DMesh.indexBufferId,a3DMesh.vertexBuffers,indexBuffers,vertexBuffers); + var m:name_471 = null; + var res:class_16 = new class_16(); + res.geometry = this.method_289(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.§_-dI§(materials[s.materialId],maps,images); + m = this.method_287(materials[s.materialId],maps,images); res.addSurface(m,s.indexBegin,s.numTriangles); } return res; } - private function §_-hi§(a3DSkin:A3D2Skin, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : §_-54§ + private function method_291(a3DSkin:A3D2Skin, indexBuffers:Dictionary, vertexBuffers:Dictionary, materials:Dictionary, maps:Dictionary, images:Dictionary) : name_531 { var s:A3D2Surface = null; - var m:§_-qn§ = null; - var res:§_-54§ = new §_-54§(1,a3DSkin.joints.length); - res.geometry = this.§_-DD§(a3DSkin.indexBufferId,a3DSkin.vertexBuffers,indexBuffers,vertexBuffers); + var m:name_471 = null; + var res:name_531 = new name_531(1,a3DSkin.joints.length); + res.geometry = this.method_289(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.§_-dI§(materials[s.materialId],maps,images); + m = this.method_287(materials[s.materialId],maps,images); res.addSurface(m,s.indexBegin,s.numTriangles); } return res; } - private function §_-Jp§(geometry:§_-gA§) : void + private function method_297(geometry:name_136) : void { var offset:int = 0; var i:int = 0; var attr:int = 0; - var vertexStream:§_-mb§ = geometry.alternativa3d::_vertexStreams[0]; + var vertexStream:name_542 = 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 §_-am§ { switch(attr) { - case §_-d6§.JOINTS[0]: + case name_117.JOINTS[0]: data.position = j * stride + offset; trace("JOINT0:",data.readFloat(),data.readFloat(),data.readFloat(),data.readFloat()); break; - case §_-d6§.JOINTS[1]: + case name_117.JOINTS[1]: data.position = j * stride + offset; trace("JOINT1:",data.readFloat(),data.readFloat(),data.readFloat(),data.readFloat()); } @@ -724,10 +724,10 @@ package §_-am§ } } - private function §_-DD§(indexBufferID:int, vertexBuffersIDs:Vector., indexBuffers:Dictionary, vertexBuffers:Dictionary) : §_-gA§ + private function method_289(indexBufferID:int, vertexBuffersIDs:Vector., indexBuffers:Dictionary, vertexBuffers:Dictionary) : name_136 { var id:int = 0; - var geometry:§_-gA§ = null; + var geometry:name_136 = null; var vertexCount:uint = 0; var buffer:A3D2VertexBuffer = null; var byteArray:ByteArray = null; @@ -743,14 +743,14 @@ package §_-am§ { key += "v" + id.toString(); } - geometry = this.§_-gk§[key]; + geometry = this.var_628[key]; if(geometry != null) { return geometry; } - geometry = new §_-gA§(); + geometry = new name_136(); var a3dIB:A3D2IndexBuffer = indexBuffers[indexBufferID]; - var indices:Vector. = §_-Pt§.§_-a1§(a3dIB.byteBuffer); + var indices:Vector. = name_29.name_544(a3dIB.byteBuffer); var uvoffset:int = 0; geometry.alternativa3d::_indices = indices; var buffers:Vector. = vertexBuffersIDs; @@ -768,23 +768,23 @@ package §_-am§ switch(buffer.attributes[k]) { case A3D2VertexAttributes.POSITION: - attr = int(§_-d6§.POSITION); + attr = int(name_117.POSITION); break; case A3D2VertexAttributes.NORMAL: - attr = int(§_-d6§.NORMAL); + attr = int(name_117.NORMAL); break; case A3D2VertexAttributes.TANGENT4: - attr = int(§_-d6§.TANGENT4); + attr = int(name_117.TANGENT4); break; case A3D2VertexAttributes.TEXCOORD: - attr = int(§_-d6§.TEXCOORDS[uvoffset]); + attr = int(name_117.TEXCOORDS[uvoffset]); uvoffset++; break; case A3D2VertexAttributes.JOINT: - attr = int(§_-d6§.JOINTS[jointsOffset]); + attr = int(name_117.JOINTS[jointsOffset]); jointsOffset++; } - numFloats = int(§_-d6§.§_-Dk§(attr)); + numFloats = int(name_117.name_547(attr)); numFloats = numFloats < 1 ? 1 : numFloats; for(t = 0; t < numFloats; t++) { @@ -796,51 +796,51 @@ package §_-am§ geometry.alternativa3d::_vertexStreams[0].data = byteArray; } geometry.alternativa3d::_numVertices = buffers.length > 0 ? int(vertexCount) : 0; - this.§_-gk§[key] = geometry; + this.var_628[key] = geometry; return geometry; } - private function §_-L2§(source:A3D2Map, images:Dictionary) : §_-n4§ + private function method_282(source:A3D2Map, images:Dictionary) : name_85 { if(source == null) { return null; } - var res:§_-n4§ = this.maps[source.imageId]; + var res:name_85 = this.maps[source.imageId]; if(res != null) { return res; } - return this.maps[source.imageId] = new §_-n4§(images[source.imageId].url); + return this.maps[source.imageId] = new name_85(images[source.imageId].url); } - private function §_-dI§(source:A3D2Material, a3DMaps:Dictionary, images:Dictionary) : §_-qn§ + private function method_287(source:A3D2Material, a3DMaps:Dictionary, images:Dictionary) : name_471 { if(source == null) { return null; } - var res:§_-qn§ = this.materials[source.id]; + var res:name_471 = this.materials[source.id]; if(res != null) { return res; } - 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); + res = this.materials[source.id] = new name_471(); + res.textures["diffuse"] = this.method_282(a3DMaps[source.diffuseMapId],images); + res.textures["emission"] = this.method_282(a3DMaps[source.lightMapId],images); + res.textures["bump"] = this.method_282(a3DMaps[source.normalMapId],images); + res.textures["specular"] = this.method_282(a3DMaps[source.specularMapId],images); + res.textures["glossiness"] = this.method_282(a3DMaps[source.glossinessMapId],images); + res.textures["transparent"] = this.method_282(a3DMaps[source.opacityMapId],images); return res; } } } -import §_-MU§.§_-5-§; -import §_-MU§.§_-XQ§; +import package_32.class_23; +import package_32.name_180; -class DummyClientLog implements §_-5-§ +class DummyClientLog implements name_180 { public function DummyClientLog() { @@ -860,19 +860,19 @@ class DummyClientLog implements §_-5-§ return null; } - public function addLogListener(listener:§_-XQ§) : void + public function addLogListener(listener:class_23) : void { } - public function removeLogListener(listener:§_-XQ§) : void + public function removeLogListener(listener:class_23) : void { } - public function addLogChannelListener(channelName:String, listener:§_-XQ§) : void + public function addLogChannelListener(channelName:String, listener:class_23) : void { } - public function removeLogChannelListener(channelName:String, listener:§_-XQ§) : void + public function removeLogChannelListener(channelName:String, listener:class_23) : void { } diff --git a/src/?while?/?_-Ph?.as b/src/package_84/name_495.as similarity index 66% rename from src/?while?/?_-Ph?.as rename to src/package_84/name_495.as index f9ad166..e2a30e2 100644 --- a/src/?while?/?_-Ph?.as +++ b/src/package_84/name_495.as @@ -1,106 +1,106 @@ -package §while§ +package package_84 { - import §_-1e§.§_-Nh§; - import §_-US§.§_-6h§; - import §_-US§.§_-cR§; - import §_-nl§.Matrix4; - import §_-nl§.§_-bj§; - import §_-pe§.§_-m3§; + import package_38.Matrix4; + import package_38.name_145; + import package_51.name_276; + import package_61.name_482; + import package_61.name_571; + import package_80.name_311; - public class §_-Ph§ extends §_-dj§ + public class name_495 extends class_35 { private var epsilon:Number = 0.001; - private var vectorToBox1:§_-bj§ = new §_-bj§(); + private var vectorToBox1:name_145 = new name_145(); - private var axis:§_-bj§ = new §_-bj§(); + private var axis:name_145 = new name_145(); - private var axis10:§_-bj§ = new §_-bj§(); + private var axis10:name_145 = new name_145(); - private var axis11:§_-bj§ = new §_-bj§(); + private var axis11:name_145 = new name_145(); - private var axis12:§_-bj§ = new §_-bj§(); + private var axis12:name_145 = new name_145(); - private var axis20:§_-bj§ = new §_-bj§(); + private var axis20:name_145 = new name_145(); - private var axis21:§_-bj§ = new §_-bj§(); + private var axis21:name_145 = new name_145(); - private var axis22:§_-bj§ = new §_-bj§(); + private var axis22:name_145 = new name_145(); - private var §_-Wt§:int; + private var var_675:int; - private var §_-hK§:Number; + private var var_676:Number; - private var points1:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); + private var points1:Vector. = new Vector.(8,true); - private var points2:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); + private var points2:Vector. = new Vector.(8,true); - private var §_-2r§:Vector.<§_-cR§> = new Vector.<§_-cR§>(8,true); + private var var_683:Vector. = new Vector.(8,true); - private var §_-P3§:int; + private var name_506:int; - public function §_-Ph§() + public function name_495() { super(); for(var i:int = 0; i < 8; i++) { - this.§_-2r§[i] = new §_-cR§(); - this.points1[i] = new §_-bj§(); - this.points2[i] = new §_-bj§(); + this.var_683[i] = new name_571(); + this.points1[i] = new name_145(); + this.points2[i] = new name_145(); } } - override public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean + override public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean { - var box1:§_-m3§ = null; - var box2:§_-m3§ = null; + var box1:name_311 = null; + var box2:name_311 = null; if(!this.haveCollision(prim1,prim2)) { return false; } if(prim1.body != null) { - box1 = prim1 as §_-m3§; - box2 = prim2 as §_-m3§; + box1 = prim1 as name_311; + box2 = prim2 as name_311; } else { - box1 = prim2 as §_-m3§; - box2 = prim1 as §_-m3§; + box1 = prim2 as name_311; + box2 = prim1 as name_311; } - if(this.§_-Wt§ < 6) + if(this.var_675 < 6) { - if(!this.§_-NV§(box1,box2,this.vectorToBox1,this.§_-Wt§,contact)) + if(!this.method_341(box1,box2,this.vectorToBox1,this.var_675,contact)) { return false; } } else { - this.§_-Wt§ -= 6; - this.§_-og§(box1,box2,this.vectorToBox1,int(this.§_-Wt§ / 3),this.§_-Wt§ % 3,contact); + this.var_675 -= 6; + this.method_338(box1,box2,this.vectorToBox1,int(this.var_675 / 3),this.var_675 % 3,contact); } contact.body1 = box1.body; contact.body2 = box2.body; return true; } - override public function haveCollision(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean + override public function haveCollision(prim1:name_276, prim2:name_276) : Boolean { - var box1:§_-m3§ = null; - var box2:§_-m3§ = null; + var box1:name_311 = null; + var box2:name_311 = null; var transform1:Matrix4 = null; var transform2:Matrix4 = null; - this.§_-hK§ = 10000000000; + this.var_676 = 10000000000; if(prim1.body != null) { - box1 = prim1 as §_-m3§; - box2 = prim2 as §_-m3§; + box1 = prim1 as name_311; + box2 = prim2 as name_311; } else { - box1 = prim2 as §_-m3§; - box2 = prim1 as §_-m3§; + box1 = prim2 as name_311; + box2 = prim1 as name_311; } transform1 = box1.transform; transform2 = box2.transform; @@ -110,97 +110,97 @@ package §while§ this.axis10.x = transform1.a; this.axis10.y = transform1.e; this.axis10.z = transform1.i; - if(!this.§_-mG§(box1,box2,this.axis10,0,this.vectorToBox1)) + if(!this.method_335(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.§_-mG§(box1,box2,this.axis11,1,this.vectorToBox1)) + if(!this.method_335(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.§_-mG§(box1,box2,this.axis12,2,this.vectorToBox1)) + if(!this.method_335(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.§_-mG§(box1,box2,this.axis20,3,this.vectorToBox1)) + if(!this.method_335(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.§_-mG§(box1,box2,this.axis21,4,this.vectorToBox1)) + if(!this.method_335(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.§_-mG§(box1,box2,this.axis22,5,this.vectorToBox1)) + if(!this.method_335(box1,box2,this.axis22,5,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis10,this.axis20,6,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis10,this.axis20,6,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis10,this.axis21,7,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis10,this.axis21,7,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis10,this.axis22,8,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis10,this.axis22,8,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis11,this.axis20,9,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis11,this.axis20,9,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis11,this.axis21,10,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis11,this.axis21,10,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis11,this.axis22,11,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis11,this.axis22,11,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis12,this.axis20,12,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis12,this.axis20,12,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis12,this.axis21,13,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis12,this.axis21,13,this.vectorToBox1)) { return false; } - if(!this.§_-kt§(box1,box2,this.axis12,this.axis22,14,this.vectorToBox1)) + if(!this.method_334(box1,box2,this.axis12,this.axis22,14,this.vectorToBox1)) { return false; } return true; } - private function §_-NV§(box1:§_-m3§, box2:§_-m3§, vectorToBox1:§_-bj§, faceAxisIdx:int, contact:§_-6h§) : Boolean + private function method_341(box1:name_311, box2:name_311, vectorToBox1:name_145, faceAxisIdx:int, contact:name_482) : Boolean { var transform2:Matrix4 = null; - var colAxis:§_-bj§ = null; + var colAxis:name_145 = null; var incidentAxisDot:Number = NaN; var pen:Number = NaN; - var tmpBox:§_-m3§ = null; + var tmpBox:name_311 = null; var dot:Number = NaN; var absDot:Number = NaN; - var v:§_-bj§ = null; - var cp:§_-cR§ = null; - var cpPos:§_-bj§ = null; - var r:§_-bj§ = null; + var v:name_145 = null; + var cp:name_571 = null; + var cpPos:name_145 = null; + var r:name_145 = null; var swapNormal:Boolean = false; if(faceAxisIdx > 2) { @@ -240,18 +240,18 @@ package §while§ axisIdx++; } transform2.getAxis(incidentAxisIdx,this.axis); - §_-ho§(box2.hs,incidentAxisIdx,incidentAxisDot < 0,this.points1); - transform2.§_-ZK§(this.points1,this.points2,4); - transform1.§_-iX§(this.points2,this.points1,4); + name_580(box2.hs,incidentAxisIdx,incidentAxisDot < 0,this.points1); + transform2.name_579(this.points1,this.points2,4); + transform1.name_578(this.points2,this.points1,4); var pnum:int = this.clip(box1.hs,faceAxisIdx); - this.§_-P3§ = 0; + this.name_506 = 0; for(var i:int = 0; i < pnum; ) { v = this.points1[i]; - pen = this.§_-iN§(box1.hs,v,faceAxisIdx,negativeFace); + pen = this.method_339(box1.hs,v,faceAxisIdx,negativeFace); if(pen > -this.epsilon) { - cp = this.§_-2r§[this.§_-P3§++]; + cp = this.var_683[this.name_506++]; 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 §while§ colAxis.y = -colAxis.y; colAxis.z = -colAxis.z; } - if(this.§_-P3§ > 4) + if(this.name_506 > 4) { - this.§_-PC§(); + this.method_345(); } - for(i = 0; i < this.§_-P3§; ) + for(i = 0; i < this.name_506; ) { cp = contact.points[i]; - cp.copyFrom(this.§_-2r§[i]); + cp.copyFrom(this.var_683[i]); i++; } - contact.§_-P3§ = this.§_-P3§; + contact.name_506 = this.name_506; return true; } - private function §_-PC§() : void + private function method_345() : void { var i:int = 0; var minIdx:int = 0; - var cp1:§_-cR§ = null; - var cp2:§_-cR§ = null; + var cp1:name_571 = null; + var cp2:name_571 = null; var minLen:Number = NaN; - var p1:§_-bj§ = null; - var p2:§_-bj§ = null; + var p1:name_145 = null; + var p2:name_145 = null; var ii:int = 0; var dx:Number = NaN; var dy:Number = NaN; var dz:Number = NaN; var len:Number = NaN; - while(this.§_-P3§ > 4) + while(this.name_506 > 4) { minLen = 10000000000; - p1 = (this.§_-2r§[int(this.§_-P3§ - 1)] as §_-cR§).pos; - for(i = 0; i < this.§_-P3§; i++) + p1 = (this.var_683[int(this.name_506 - 1)] as name_571).pos; + for(i = 0; i < this.name_506; i++) { - p2 = (this.§_-2r§[i] as §_-cR§).pos; + p2 = (this.var_683[i] as name_571).pos; dx = p2.x - p1.x; dy = p2.y - p1.y; dz = p2.z - p1.z; @@ -320,9 +320,9 @@ package §while§ } p1 = p2; } - ii = minIdx == 0 ? this.§_-P3§ - 1 : minIdx - 1; - cp1 = this.§_-2r§[ii]; - cp2 = this.§_-2r§[minIdx]; + ii = minIdx == 0 ? this.name_506 - 1 : minIdx - 1; + cp1 = this.var_683[ii]; + cp2 = this.var_683[minIdx]; p1 = cp1.pos; p2 = cp2.pos; p2.x = 0.5 * (p1.x + p2.x); @@ -331,17 +331,17 @@ package §while§ cp2.penetration = 0.5 * (cp1.penetration + cp2.penetration); if(minIdx > 0) { - for(i = minIdx; i < this.§_-P3§; i++) + for(i = minIdx; i < this.name_506; i++) { - this.§_-2r§[int(i - 1)] = this.§_-2r§[i]; + this.var_683[int(i - 1)] = this.var_683[i]; } - this.§_-2r§[int(this.§_-P3§ - 1)] = cp1; + this.var_683[int(this.name_506 - 1)] = cp1; } - --this.§_-P3§; + --this.name_506; } } - private function §_-iN§(hs:§_-bj§, p:§_-bj§, faceAxisIdx:int, reverse:Boolean) : Number + private function method_339(hs:name_145, p:name_145, faceAxisIdx:int, reverse:Boolean) : Number { switch(faceAxisIdx) { @@ -371,71 +371,71 @@ package §while§ } } - private function clip(hs:§_-bj§, faceAxisIdx:int) : int + private function clip(hs:name_145, faceAxisIdx:int) : int { var pnum:int = 4; switch(faceAxisIdx) { case 0: - pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_572(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); + pnum = int(name_573(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_575(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); + return name_574(hs.y,pnum,this.points2,this.points1,this.epsilon); break; case 1: - pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_572(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); + pnum = int(name_573(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_577(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return §_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon); + return name_576(hs.x,pnum,this.points2,this.points1,this.epsilon); break; case 2: - pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_577(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon)); + pnum = int(name_576(hs.x,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_575(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); + return name_574(hs.y,pnum,this.points2,this.points1,this.epsilon); break; default: return 0; } } - private function §_-og§(box1:§_-m3§, box2:§_-m3§, vectorToBox1:§_-bj§, axisIdx1:int, axisIdx2:int, contact:§_-6h§) : void + private function method_338(box1:name_311, box2:name_311, vectorToBox1:name_145, axisIdx1:int, axisIdx2:int, contact:name_482) : void { var halfLen1:Number = NaN; var halfLen2:Number = NaN; @@ -443,7 +443,7 @@ package §while§ var transform2:Matrix4 = box2.transform; transform1.getAxis(axisIdx1,this.axis10); transform2.getAxis(axisIdx2,this.axis20); - var colAxis:§_-bj§ = contact.normal; + var colAxis:name_145 = 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; @@ -535,13 +535,13 @@ package §while§ 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.§_-P3§ = 1; - var cp:§_-cR§ = contact.points[0]; - var cpPos:§_-bj§ = cp.pos; + contact.name_506 = 1; + var cp:name_571 = contact.points[0]; + var cpPos:name_145 = 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:§_-bj§ = cp.r1; + var r:name_145 = 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 §while§ r.x = cpPos.x - transform2.d; r.y = cpPos.y - transform2.h; r.z = cpPos.z - transform2.l; - cp.penetration = this.§_-hK§; + cp.penetration = this.var_676; } - private function §_-mG§(box1:§_-m3§, box2:§_-m3§, axis:§_-bj§, axisIndex:int, toBox1:§_-bj§) : Boolean + private function method_335(box1:name_311, box2:name_311, axis:name_145, axisIndex:int, toBox1:name_145) : Boolean { - var overlap:Number = this.§true§(box1,box2,axis,toBox1); + var overlap:Number = this.method_337(box1,box2,axis,toBox1); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.var_676) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.var_676 = overlap; + this.var_675 = axisIndex; } return true; } - private function §_-kt§(box1:§_-m3§, box2:§_-m3§, axis1:§_-bj§, axis2:§_-bj§, axisIndex:int, toBox1:§_-bj§) : Boolean + private function method_334(box1:name_311, box2:name_311, axis1:name_145, axis2:name_145, axisIndex:int, toBox1:name_145) : 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 §while§ this.axis.x *= k; this.axis.y *= k; this.axis.z *= k; - var overlap:Number = this.§true§(box1,box2,this.axis,toBox1); + var overlap:Number = this.method_337(box1,box2,this.axis,toBox1); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.var_676) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.var_676 = overlap; + this.var_675 = axisIndex; } return true; } - public function §true§(box1:§_-m3§, box2:§_-m3§, axis:§_-bj§, vectorToBox1:§_-bj§) : Number + public function method_337(box1:name_311, box2:name_311, axis:name_145, vectorToBox1:name_145) : 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 §while§ } } -import §_-nl§.§_-bj§; +import package_38.name_145; class CollisionPointTmp { - public var pos:§_-bj§ = new §_-bj§(); + public var pos:name_145 = new name_145(); public var penetration:Number; diff --git a/src/?while?/?_-hu?.as b/src/package_84/name_497.as similarity index 67% rename from src/?while?/?_-hu?.as rename to src/package_84/name_497.as index aafa711..8eb9609 100644 --- a/src/?while?/?_-hu?.as +++ b/src/package_84/name_497.as @@ -1,81 +1,81 @@ -package §while§ +package package_84 { - import §_-1e§.§_-Nh§; - import §_-US§.§_-6h§; - import §_-US§.§_-cR§; - import §_-nl§.Matrix4; - import §_-nl§.§_-bj§; - import §_-pe§.§_-Pr§; - import §_-pe§.§_-m3§; + import package_38.Matrix4; + import package_38.name_145; + import package_51.name_276; + import package_61.name_482; + import package_61.name_571; + import package_80.name_311; + import package_80.name_570; - public class §_-hu§ extends §_-dj§ + public class name_497 extends class_35 { public var epsilon:Number = 0.001; - private var §_-Wt§:int; + private var var_675:int; - private var §_-hK§:Number; + private var var_676:Number; - private var toBox:§_-bj§ = new §_-bj§(); + private var toBox:name_145 = new name_145(); - private var axis:§_-bj§ = new §_-bj§(); + private var axis:name_145 = new name_145(); - private var §_-VZ§:§_-bj§ = new §_-bj§(); + private var var_682:name_145 = new name_145(); - private var axis10:§_-bj§ = new §_-bj§(); + private var axis10:name_145 = new name_145(); - private var axis11:§_-bj§ = new §_-bj§(); + private var axis11:name_145 = new name_145(); - private var axis12:§_-bj§ = new §_-bj§(); + private var axis12:name_145 = new name_145(); - private var axis20:§_-bj§ = new §_-bj§(); + private var axis20:name_145 = new name_145(); - private var axis21:§_-bj§ = new §_-bj§(); + private var axis21:name_145 = new name_145(); - private var axis22:§_-bj§ = new §_-bj§(); + private var axis22:name_145 = new name_145(); - private var points1:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); + private var points1:Vector. = new Vector.(8,true); - private var points2:Vector.<§_-bj§> = new Vector.<§_-bj§>(8,true); + private var points2:Vector. = new Vector.(8,true); - public function §_-hu§() + public function name_497() { super(); for(var i:int = 0; i < 8; i++) { - this.points1[i] = new §_-bj§(); - this.points2[i] = new §_-bj§(); + this.points1[i] = new name_145(); + this.points2[i] = new name_145(); } } - override public function getContact(prim1:§_-Nh§, prim2:§_-Nh§, contact:§_-6h§) : Boolean + override public function getContact(prim1:name_276, prim2:name_276, contact:name_482) : Boolean { - var box:§_-m3§ = null; + var box:name_311 = null; if(!this.haveCollision(prim1,prim2)) { return false; } - var tri:§_-Pr§ = prim1 as §_-Pr§; + var tri:name_570 = prim1 as name_570; if(tri == null) { - box = §_-m3§(prim1); - tri = §_-Pr§(prim2); + box = name_311(prim1); + tri = name_570(prim2); } else { - box = §_-m3§(prim2); + box = name_311(prim2); } - if(this.§_-Wt§ < 4) + if(this.var_675 < 4) { - if(!this.§_-NV§(box,tri,this.toBox,this.§_-Wt§,contact)) + if(!this.method_341(box,tri,this.toBox,this.var_675,contact)) { return false; } } else { - this.§_-Wt§ -= 4; - if(!this.§_-og§(box,tri,this.toBox,this.§_-Wt§ % 3,int(this.§_-Wt§ / 3),contact)) + this.var_675 -= 4; + if(!this.method_338(box,tri,this.toBox,this.var_675 % 3,int(this.var_675 / 3),contact)) { return false; } @@ -91,53 +91,53 @@ package §while§ return true; } - override public function haveCollision(prim1:§_-Nh§, prim2:§_-Nh§) : Boolean + override public function haveCollision(prim1:name_276, prim2:name_276) : Boolean { - var tri:§_-Pr§ = null; - var box:§_-m3§ = null; + var tri:name_570 = null; + var box:name_311 = null; var triTransform:Matrix4 = null; - var v:§_-bj§ = null; - tri = prim1 as §_-Pr§; + var v:name_145 = null; + tri = prim1 as name_570; if(tri == null) { - box = §_-m3§(prim1); - tri = §_-Pr§(prim2); + box = name_311(prim1); + tri = name_570(prim2); } else { - box = §_-m3§(prim2); + box = name_311(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.§_-hK§ = 1e+308; + this.var_676 = 1e+308; this.axis.x = triTransform.c; this.axis.y = triTransform.g; this.axis.z = triTransform.k; - if(!this.§_-mG§(box,tri,this.axis,0,this.toBox)) + if(!this.method_335(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.§_-mG§(box,tri,this.axis10,1,this.toBox)) + if(!this.method_335(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.§_-mG§(box,tri,this.axis11,2,this.toBox)) + if(!this.method_335(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.§_-mG§(box,tri,this.axis12,3,this.toBox)) + if(!this.method_335(box,tri,this.axis12,3,this.toBox)) { return false; } @@ -145,15 +145,15 @@ package §while§ 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.§_-kt§(box,tri,this.axis10,this.axis20,4,this.toBox)) + if(!this.method_334(box,tri,this.axis10,this.axis20,4,this.toBox)) { return false; } - if(!this.§_-kt§(box,tri,this.axis11,this.axis20,5,this.toBox)) + if(!this.method_334(box,tri,this.axis11,this.axis20,5,this.toBox)) { return false; } - if(!this.§_-kt§(box,tri,this.axis12,this.axis20,6,this.toBox)) + if(!this.method_334(box,tri,this.axis12,this.axis20,6,this.toBox)) { return false; } @@ -161,15 +161,15 @@ package §while§ 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.§_-kt§(box,tri,this.axis10,this.axis21,7,this.toBox)) + if(!this.method_334(box,tri,this.axis10,this.axis21,7,this.toBox)) { return false; } - if(!this.§_-kt§(box,tri,this.axis11,this.axis21,8,this.toBox)) + if(!this.method_334(box,tri,this.axis11,this.axis21,8,this.toBox)) { return false; } - if(!this.§_-kt§(box,tri,this.axis12,this.axis21,9,this.toBox)) + if(!this.method_334(box,tri,this.axis12,this.axis21,9,this.toBox)) { return false; } @@ -177,37 +177,37 @@ package §while§ 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.§_-kt§(box,tri,this.axis10,this.axis22,10,this.toBox)) + if(!this.method_334(box,tri,this.axis10,this.axis22,10,this.toBox)) { return false; } - if(!this.§_-kt§(box,tri,this.axis11,this.axis22,11,this.toBox)) + if(!this.method_334(box,tri,this.axis11,this.axis22,11,this.toBox)) { return false; } - if(!this.§_-kt§(box,tri,this.axis12,this.axis22,12,this.toBox)) + if(!this.method_334(box,tri,this.axis12,this.axis22,12,this.toBox)) { return false; } return true; } - private function §_-mG§(box:§_-m3§, tri:§_-Pr§, axis:§_-bj§, axisIndex:int, toBox:§_-bj§) : Boolean + private function method_335(box:name_311, tri:name_570, axis:name_145, axisIndex:int, toBox:name_145) : Boolean { - var overlap:Number = this.§true§(box,tri,axis,toBox); + var overlap:Number = this.method_337(box,tri,axis,toBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.var_676) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.var_676 = overlap; + this.var_675 = axisIndex; } return true; } - private function §_-kt§(box:§_-m3§, tri:§_-Pr§, axis1:§_-bj§, axis2:§_-bj§, axisIndex:int, toBox:§_-bj§) : Boolean + private function method_334(box:name_311, tri:name_570, axis1:name_145, axis2:name_145, axisIndex:int, toBox:name_145) : Boolean { var k:Number = NaN; this.axis.x = axis1.y * axis2.z - axis1.z * axis2.y; @@ -222,20 +222,20 @@ package §while§ this.axis.x *= k; this.axis.y *= k; this.axis.z *= k; - var overlap:Number = this.§true§(box,tri,this.axis,toBox); + var overlap:Number = this.method_337(box,tri,this.axis,toBox); if(overlap < -this.epsilon) { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.var_676) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.var_676 = overlap; + this.var_675 = axisIndex; } return true; } - private function §true§(box:§_-m3§, tri:§_-Pr§, axis:§_-bj§, toBox:§_-bj§) : Number + private function method_337(box:name_311, tri:name_570, axis:name_145, toBox:name_145) : 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 §while§ return projection + max - vectorProjection; } - private function §_-NV§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, faceAxisIndex:int, contact:§_-6h§) : Boolean + private function method_341(box:name_311, tri:name_570, toBox:name_145, faceAxisIndex:int, contact:name_482) : Boolean { if(faceAxisIndex == 0) { - return this.§_-hz§(box,tri,toBox,contact); + return this.method_340(box,tri,toBox,contact); } - return this.§_-C-§(box,tri,toBox,faceAxisIndex,contact); + return this.method_342(box,tri,toBox,faceAxisIndex,contact); } - private function §_-hz§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, contact:§_-6h§) : Boolean + private function method_340(box:name_311, tri:name_570, toBox:name_145, contact:name_482) : Boolean { - var cp:§_-cR§ = null; + var cp:name_571 = null; var dot:Number = NaN; var absDot:Number = NaN; - var v:§_-bj§ = null; - var cpPos:§_-bj§ = null; - var r:§_-bj§ = null; + var v:name_145 = null; + var cpPos:name_145 = null; + var r:name_145 = null; var boxTransform:Matrix4 = box.transform; var triTransform:Matrix4 = tri.transform; - 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; + 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; if(!over) { - this.§_-VZ§.x = -this.§_-VZ§.x; - this.§_-VZ§.y = -this.§_-VZ§.y; - this.§_-VZ§.z = -this.§_-VZ§.z; + this.var_682.x = -this.var_682.x; + this.var_682.y = -this.var_682.y; + this.var_682.z = -this.var_682.z; } var incFaceAxisIdx:int = 0; var incAxisDot:Number = 0; @@ -329,7 +329,7 @@ package §while§ for(var axisIdx:int = 0; axisIdx < 3; ) { boxTransform.getAxis(axisIdx,this.axis); - dot = this.axis.x * this.§_-VZ§.x + this.axis.y * this.§_-VZ§.y + this.axis.z * this.§_-VZ§.z; + dot = this.axis.x * this.var_682.x + this.axis.y * this.var_682.y + this.axis.z * this.var_682.z; absDot = dot < 0 ? -dot : dot; if(absDot > maxDot) { @@ -340,17 +340,17 @@ package §while§ axisIdx++; } var negativeFace:Boolean = incAxisDot > 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; + name_580(box.hs,incFaceAxisIdx,negativeFace,this.points1); + boxTransform.name_579(this.points1,this.points2,4); + triTransform.name_578(this.points2,this.points1,4); + var pnum:int = this.method_344(tri); + contact.name_506 = 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.§_-P3§++]; + cp = contact.points[contact.name_506++]; 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; @@ -367,30 +367,30 @@ package §while§ } i++; } - contact.normal.x = this.§_-VZ§.x; - contact.normal.y = this.§_-VZ§.y; - contact.normal.z = this.§_-VZ§.z; + contact.normal.x = this.var_682.x; + contact.normal.y = this.var_682.y; + contact.normal.z = this.var_682.z; return true; } - private function §_-C-§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, faceAxisIdx:int, contact:§_-6h§) : Boolean + private function method_342(box:name_311, tri:name_570, toBox:name_145, faceAxisIdx:int, contact:name_482) : Boolean { var penetration:Number = NaN; - var cp:§_-cR§ = null; - var cpPos:§_-bj§ = null; - var r:§_-bj§ = null; + var cp:name_571 = null; + var cpPos:name_145 = null; + var r:name_145 = null; faceAxisIdx--; var boxTransform:Matrix4 = box.transform; var triTransform:Matrix4 = tri.transform; - boxTransform.getAxis(faceAxisIdx,this.§_-VZ§); - var negativeFace:Boolean = toBox.x * this.§_-VZ§.x + toBox.y * this.§_-VZ§.y + toBox.z * this.§_-VZ§.z > 0; + 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; if(!negativeFace) { - this.§_-VZ§.x = -this.§_-VZ§.x; - this.§_-VZ§.y = -this.§_-VZ§.y; - this.§_-VZ§.z = -this.§_-VZ§.z; + this.var_682.x = -this.var_682.x; + this.var_682.y = -this.var_682.y; + this.var_682.z = -this.var_682.z; } - var v:§_-bj§ = this.points1[0]; + var v:name_145 = this.points1[0]; v.x = tri.v0.x; v.y = tri.v0.y; v.z = tri.v0.z; @@ -402,17 +402,17 @@ package §while§ v.x = tri.v2.x; v.y = tri.v2.y; v.z = tri.v2.z; - 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; + triTransform.name_579(this.points1,this.points2,3); + boxTransform.name_578(this.points2,this.points1,3); + var pnum:int = this.method_343(box.hs,faceAxisIdx); + contact.name_506 = 0; for(var i:int = 0; i < pnum; ) { v = this.points1[i]; - penetration = this.§_-iN§(box.hs,v,faceAxisIdx,negativeFace); + penetration = this.method_339(box.hs,v,faceAxisIdx,negativeFace); if(penetration > -this.epsilon) { - cp = contact.points[contact.§_-P3§++]; + cp = contact.points[contact.name_506++]; 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 §while§ } i++; } - contact.normal.x = this.§_-VZ§.x; - contact.normal.y = this.§_-VZ§.y; - contact.normal.z = this.§_-VZ§.z; + contact.normal.x = this.var_682.x; + contact.normal.y = this.var_682.y; + contact.normal.z = this.var_682.z; return true; } - private function §_-iN§(hs:§_-bj§, p:§_-bj§, faceAxisIdx:int, negativeFace:Boolean) : Number + private function method_339(hs:name_145, p:name_145, faceAxisIdx:int, negativeFace:Boolean) : Number { switch(faceAxisIdx) { @@ -465,96 +465,96 @@ package §while§ } } - private function §_-kk§(hs:§_-bj§, faceAxisIdx:int) : int + private function method_343(hs:name_145, faceAxisIdx:int) : int { var pnum:int = 3; switch(faceAxisIdx) { case 0: - pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_572(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); + pnum = int(name_573(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_575(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); + return name_574(hs.y,pnum,this.points2,this.points1,this.epsilon); break; case 1: - pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_572(-hs.z,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-Cg§(hs.z,pnum,this.points2,this.points1,this.epsilon)); + pnum = int(name_573(hs.z,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_577(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return §_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon); + return name_576(hs.x,pnum,this.points2,this.points1,this.epsilon); break; case 2: - pnum = int(§_-ii§(-hs.x,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_577(-hs.x,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-KZ§(hs.x,pnum,this.points2,this.points1,this.epsilon)); + pnum = int(name_576(hs.x,pnum,this.points2,this.points1,this.epsilon)); if(pnum == 0) { return 0; } - pnum = int(§_-BG§(-hs.y,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(name_575(-hs.y,pnum,this.points1,this.points2,this.epsilon)); if(pnum == 0) { return 0; } - return §_-Ro§(hs.y,pnum,this.points2,this.points1,this.epsilon); + return name_574(hs.y,pnum,this.points2,this.points1,this.epsilon); break; default: return 0; } } - private function §_-MQ§(tri:§_-Pr§) : int + private function method_344(tri:name_570) : int { var vnum:int = 4; - vnum = this.§_-NG§(tri.v0,tri.e0,this.points1,vnum,this.points2); + vnum = this.method_336(tri.v0,tri.e0,this.points1,vnum,this.points2); if(vnum == 0) { return 0; } - vnum = this.§_-NG§(tri.v1,tri.e1,this.points2,vnum,this.points1); + vnum = this.method_336(tri.v1,tri.e1,this.points2,vnum,this.points1); if(vnum == 0) { return 0; } - return this.§_-NG§(tri.v2,tri.e2,this.points1,vnum,this.points2); + return this.method_336(tri.v2,tri.e2,this.points1,vnum,this.points2); } - private function §_-NG§(linePoint:§_-bj§, lineDir:§_-bj§, verticesIn:Vector.<§_-bj§>, vnum:int, verticesOut:Vector.<§_-bj§>) : int + private function method_336(linePoint:name_145, lineDir:name_145, verticesIn:Vector., vnum:int, verticesOut:Vector.) : int { var t:Number = NaN; - var v:§_-bj§ = null; - var v2:§_-bj§ = null; + var v:name_145 = null; + var v2:name_145 = null; var offset2:Number = NaN; var nx:Number = -lineDir.y; var ny:Number = Number(lineDir.x); var offset:Number = linePoint.x * nx + linePoint.y * ny; - var v1:§_-bj§ = verticesIn[int(vnum - 1)]; + var v1:name_145 = 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 §while§ return num; } - private function §_-og§(box:§_-m3§, tri:§_-Pr§, toBox:§_-bj§, boxAxisIdx:int, triAxisIdx:int, contact:§_-6h§) : Boolean + private function method_338(box:name_311, tri:name_570, toBox:name_145, boxAxisIdx:int, triAxisIdx:int, contact:name_482) : Boolean { var tmpx1:Number = NaN; var tmpy1:Number = NaN; @@ -641,7 +641,7 @@ package §while§ 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:§_-bj§ = contact.normal; + var v:name_145 = 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; @@ -697,14 +697,14 @@ package §while§ 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.§_-P3§ = 1; - var cp:§_-cR§ = contact.points[0]; - cp.penetration = this.§_-hK§; + contact.name_506 = 1; + var cp:name_571 = contact.points[0]; + cp.penetration = this.var_676; 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:§_-bj§ = cp.r1; + var r:name_145 = cp.r1; r.x = v.x - boxTransform.d; r.y = v.y - boxTransform.h; r.z = v.z - boxTransform.l; diff --git a/src/package_9/name_15.as b/src/package_9/name_15.as new file mode 100644 index 0000000..78d6bea --- /dev/null +++ b/src/package_9/name_15.as @@ -0,0 +1,209 @@ +package package_9 +{ + import flash.display.DisplayObjectContainer; + import flash.display.Stage; + import flash.events.KeyboardEvent; + import flash.ui.Keyboard; + import package_11.name_284; + import package_11.name_288; + import package_11.name_4; + import package_12.name_27; + import package_14.name_3; + import package_31.name_300; + import package_32.name_180; + import package_32.name_302; + import package_7.class_13; + import package_7.name_32; + import package_7.name_33; + import package_72.name_287; + import package_72.name_291; + import package_73.name_293; + import package_73.name_298; + import package_74.name_290; + import package_74.name_304; + import package_75.name_295; + import package_75.name_296; + import package_76.name_289; + import package_76.name_301; + import package_77.name_294; + import package_77.name_303; + + public class name_15 implements class_13 + { + private var osgi:name_3; + + private var clientLog:name_180; + + private var console:name_284; + + private var var_83:KeyboardShortcut; + + private var var_84:KeyboardShortcut; + + public function name_15() + { + super(); + } + + public function start(rootContainer:DisplayObjectContainer, urlParams:name_27, libraryInfos:Vector., connectionParameters:name_32, startupLogStrings:Vector.) : void + { + var libraryInfo:name_33 = null; + this.osgi = name_3.name_8(); + this.method_98(urlParams,startupLogStrings); + this.method_7(rootContainer.stage,urlParams); + this.osgi.method_38(name_298,new name_293(urlParams,libraryInfos)); + this.osgi.method_38(name_295,new name_296(rootContainer)); + this.osgi.method_38(name_294,new name_303(connectionParameters.serverAddress,connectionParameters.serverPorts,connectionParameters.resourcesRootURL)); + var language:String = urlParams.name_297("lang","ru"); + this.osgi.method_38(name_290,new name_304(language,"en")); + var dumpService:name_287 = new name_291(this.osgi); + this.osgi.method_38(name_287,dumpService); + dumpService.name_292(new name_301(this.osgi)); + dumpService.name_292(new name_289(this.osgi)); + for each(libraryInfo in libraryInfos) + { + this.osgi.method_44(new name_300(libraryInfo.manifestProperties)); + } + } + + private function method_98(urlParams:name_27, startupLogStrings:Vector.) : void + { + var s:String = null; + var logChannelBufferSize:int = int(int(urlParams.name_297("log_channel_buffer_size","1000"))); + this.clientLog = new name_302(logChannelBufferSize); + name_3.clientLog = this.clientLog; + this.osgi.method_38(name_180,this.clientLog); + for each(s in startupLogStrings) + { + this.clientLog.log("startup",s); + } + } + + private function method_7(stage:Stage, urlParams:name_27) : void + { + var channelName:String = null; + this.console = new name_284(stage,50,100,1,1); + this.osgi.method_38(name_4,this.console); + var consoleParams:String = urlParams.name_299("console"); + if(Boolean(consoleParams)) + { + this.method_99(stage,this.console,consoleParams); + } + var clientLogConnector:name_288 = new name_288(this.clientLog,this.console); + this.console.name_34("log",clientLogConnector.name_305); + var logChannels:String = urlParams.name_299("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 method_99(stage:Stage, console:name_284, 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.name_285 = int(params["ha"]); + } + if(params["va"] != null) + { + console.name_286 = 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.name_248("con_alpha " + params["alpha"]); + } + this.var_83 = this.method_97(params["hsw"],Keyboard.LEFT,false,true,true); + this.var_84 = this.method_97(params["vsw"],Keyboard.UP,false,true,true); + stage.addEventListener(KeyboardEvent.KEY_DOWN,this.method_100,true); + } + + private function method_97(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 method_100(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.name_285 == 1) + { + this.console.name_285 = 2; + break; + } + this.console.name_285 = 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.name_286 == 1) + { + this.console.name_286 = 2; + break; + } + this.console.name_286 = 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/tankshudDemo/TanksHudDemo.as b/src/tankshudDemo/TanksHudDemo.as index c2466ae..c08dee3 100644 --- a/src/tankshudDemo/TanksHudDemo.as +++ b/src/tankshudDemo/TanksHudDemo.as @@ -27,11 +27,11 @@ package tankshudDemo private static const GAP_BEEWEN_BUTTON:int = 1; - private var §_-d0§:Bitmap; + private var var_60:Bitmap; - private var §_-7U§:Bitmap; + private var var_58:Bitmap; - private var §_-4m§:Bitmap; + private var var_57:Bitmap; private var fullScreenButtonState1:Bitmap; @@ -41,11 +41,11 @@ package tankshudDemo private var nextTankButtonState2:Bitmap; - private var §_-at§:Sprite; + private var var_55:Sprite; - private var §_-I5§:Sprite; + private var var_56:Sprite; - private var §_-kn§:Boolean; + private var var_59:Boolean; public function TanksHudDemo() { @@ -58,102 +58,102 @@ package tankshudDemo 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.var_60 = new topLeftIconClass(); + addChild(this.var_60); + this.var_58 = new topRightIconClass(); + addChild(this.var_58); + this.var_57 = new bottomLeftIconClass(); + addChild(this.var_57); + this.var_55 = new Sprite(); + this.var_55.mouseChildren = false; + addChild(this.var_55); this.fullScreenButtonState1 = new fullScreenState1Class(); - this.§_-at§.addChild(this.fullScreenButtonState1); + this.var_55.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.var_55.addChild(this.fullScreenButtonState2); + this.var_55.addEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); + this.var_55.addEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); + this.var_55.addEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); this.isFullScreen = false; - this.§_-I5§ = new Sprite(); - this.§_-I5§.mouseChildren = false; - addChild(this.§_-I5§); + this.var_56 = new Sprite(); + this.var_56.mouseChildren = false; + addChild(this.var_56); this.nextTankButtonState1 = new nextTankState1Class(); - this.§_-I5§.addChild(this.nextTankButtonState1); + this.var_56.addChild(this.nextTankButtonState1); this.nextTankButtonState2 = new nextTankState2Class(); - this.§_-I5§.addChild(this.nextTankButtonState2); + this.var_56.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); + this.var_56.addEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); + this.var_56.addEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); + this.var_56.addEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); } public function destroy() : void { - if(this.§_-d0§ != null) + if(this.var_60 != null) { - removeChild(this.§_-d0§); + removeChild(this.var_60); } - if(this.§_-7U§ != null) + if(this.var_58 != null) { - removeChild(this.§_-7U§); + removeChild(this.var_58); } - if(this.§_-4m§ != null) + if(this.var_57 != null) { - removeChild(this.§_-4m§); + removeChild(this.var_57); } - if(this.§_-at§ != null) + if(this.var_55 != 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§); + this.var_55.removeEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); + this.var_55.removeEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); + this.var_55.removeEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); + removeChild(this.var_55); } - if(this.§_-I5§ != null) + if(this.var_56 != 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.var_56.removeEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); + this.var_56.removeEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); + this.var_56.removeEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); + removeChild(this.var_56); } - this.§_-d0§ = null; - this.§_-7U§ = null; - this.§_-4m§ = null; - this.§_-at§ = null; - this.§_-I5§ = null; + this.var_60 = null; + this.var_58 = null; + this.var_57 = null; + this.var_55 = null; + this.var_56 = null; } public function resize(param1:Number, param2:Number) : void { - if(this.§_-7U§ != null) + if(this.var_58 != null) { - this.§_-7U§.x = param1 - this.§_-7U§.width; + this.var_58.x = param1 - this.var_58.width; } - if(this.§_-4m§ != null) + if(this.var_57 != null) { - this.§_-4m§.y = param2 - this.§_-4m§.height; + this.var_57.y = param2 - this.var_57.height; } - if(this.§_-at§ != null) + if(this.var_55 != null) { - this.§_-at§.x = param1 - this.§_-at§.width - GAP_RIGHT; - this.§_-at§.y = param2 - this.§_-at§.height - GAP_BOTTOM; + this.var_55.x = param1 - this.var_55.width - GAP_RIGHT; + this.var_55.y = param2 - this.var_55.height - GAP_BOTTOM; } - if(this.§_-I5§ != null) + if(this.var_56 != 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; + 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 isFullScreen() : Boolean { - return this.§_-kn§; + return this.var_59; } public function set isFullScreen(param1:Boolean) : void { - this.§_-kn§ = param1; - if(this.§_-kn§ == false) + this.var_59 = param1; + if(this.var_59 == false) { this.fullScreenButtonState2.visible = false; } @@ -165,7 +165,7 @@ package tankshudDemo private function onOverFullScreenBtn(param1:MouseEvent) : void { - if(this.§_-kn§ == false) + if(this.var_59 == false) { this.fullScreenButtonState2.visible = true; } @@ -173,7 +173,7 @@ package tankshudDemo private function onOutFullScreenBtn(param1:MouseEvent) : void { - if(this.§_-kn§ == false) + if(this.var_59 == false) { this.fullScreenButtonState2.visible = false; } @@ -181,7 +181,7 @@ package tankshudDemo private function onClickFullScreenBtn(param1:MouseEvent) : void { - this.isFullScreen = !this.§_-kn§; + this.isFullScreen = !this.var_59; dispatchEvent(new Event("CLICK_FULL_SCREEN_BUTTON")); } diff --git a/src/versions/version1/a3d/A3D.as b/src/versions/version1/a3d/A3D.as index d039efe..55f3971 100644 --- a/src/versions/version1/a3d/A3D.as +++ b/src/versions/version1/a3d/A3D.as @@ -9,37 +9,37 @@ package versions.version1.a3d public class A3D { - private var §_-0§:Vector.; + private var var_346:Vector.; private var OptionalMap:Vector.; - private var §_-ce§:Vector.; + private var var_350:Vector.; - private var §_-XJ§:Vector.; + private var var_349:Vector.; - private var §_-22§:Vector.; + private var var_347:Vector.; - private var §_-Kq§:Vector.; + private var var_348:Vector.; public function A3D(boxes:Vector., geometries:Vector., images:Vector., maps:Vector., materials:Vector., objects:Vector.) { super(); - this.§_-0§ = boxes; + this.var_346 = boxes; this.OptionalMap = geometries; - this.§_-ce§ = images; - this.§_-XJ§ = maps; - this.§_-22§ = materials; - this.§_-Kq§ = objects; + this.var_350 = images; + this.var_349 = maps; + this.var_347 = materials; + this.var_348 = objects; } public function get boxes() : Vector. { - return this.§_-0§; + return this.var_346; } public function set boxes(value:Vector.) : void { - this.§_-0§ = value; + this.var_346 = value; } public function get geometries() : Vector. @@ -54,42 +54,42 @@ package versions.version1.a3d public function get images() : Vector. { - return this.§_-ce§; + return this.var_350; } public function set images(value:Vector.) : void { - this.§_-ce§ = value; + this.var_350 = value; } public function get maps() : Vector. { - return this.§_-XJ§; + return this.var_349; } public function set maps(value:Vector.) : void { - this.§_-XJ§ = value; + this.var_349 = value; } public function get materials() : Vector. { - return this.§_-22§; + return this.var_347; } public function set materials(value:Vector.) : void { - this.§_-22§ = value; + this.var_347 = value; } public function get objects() : Vector. { - return this.§_-Kq§; + return this.var_348; } public function set objects(value:Vector.) : void { - this.§_-Kq§ = value; + this.var_348 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/geometry/A3DGeometry.as b/src/versions/version1/a3d/geometry/A3DGeometry.as index 7ce906b..ce9d010 100644 --- a/src/versions/version1/a3d/geometry/A3DGeometry.as +++ b/src/versions/version1/a3d/geometry/A3DGeometry.as @@ -4,48 +4,48 @@ package versions.version1.a3d.geometry public class A3DGeometry { - private var §_-3I§:Id; + private var var_101:Id; - private var §_-EM§:A3DIndexBuffer; + private var name_78:A3DIndexBuffer; - private var §_-0B§:Vector.; + private var var_276:Vector.; public function A3DGeometry(id:Id, indexBuffer:A3DIndexBuffer, vertexBuffers:Vector.) { super(); - this.§_-3I§ = id; - this.§_-EM§ = indexBuffer; - this.§_-0B§ = vertexBuffers; + this.var_101 = id; + this.name_78 = indexBuffer; + this.var_276 = vertexBuffers; } public function get id() : Id { - return this.§_-3I§; + return this.var_101; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get indexBuffer() : A3DIndexBuffer { - return this.§_-EM§; + return this.name_78; } public function set indexBuffer(value:A3DIndexBuffer) : void { - this.§_-EM§ = value; + this.name_78 = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.var_276; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.var_276 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/geometry/A3DIndexBuffer.as b/src/versions/version1/a3d/geometry/A3DIndexBuffer.as index 3a04530..b88bfac 100644 --- a/src/versions/version1/a3d/geometry/A3DIndexBuffer.as +++ b/src/versions/version1/a3d/geometry/A3DIndexBuffer.as @@ -4,35 +4,35 @@ package versions.version1.a3d.geometry public class A3DIndexBuffer { - private var §_-79§:ByteArray; + private var var_271:ByteArray; - private var §_-m0§:int; + private var var_379:int; public function A3DIndexBuffer(byteBuffer:ByteArray, indexCount:int) { super(); - this.§_-79§ = byteBuffer; - this.§_-m0§ = indexCount; + this.var_271 = byteBuffer; + this.var_379 = indexCount; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.var_271; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.var_271 = value; } public function get indexCount() : int { - return this.§_-m0§; + return this.var_379; } public function set indexCount(value:int) : void { - this.§_-m0§ = value; + this.var_379 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/geometry/A3DVertexBuffer.as b/src/versions/version1/a3d/geometry/A3DVertexBuffer.as index 3a99c33..325736c 100644 --- a/src/versions/version1/a3d/geometry/A3DVertexBuffer.as +++ b/src/versions/version1/a3d/geometry/A3DVertexBuffer.as @@ -4,48 +4,48 @@ package versions.version1.a3d.geometry public class A3DVertexBuffer { - private var §_-96§:Vector.; + private var var_272:Vector.; - private var §_-79§:ByteArray; + private var var_271:ByteArray; - private var §_-g1§:uint; + private var var_273:uint; public function A3DVertexBuffer(attributes:Vector., byteBuffer:ByteArray, vertexCount:uint) { super(); - this.§_-96§ = attributes; - this.§_-79§ = byteBuffer; - this.§_-g1§ = vertexCount; + this.var_272 = attributes; + this.var_271 = byteBuffer; + this.var_273 = vertexCount; } public function get attributes() : Vector. { - return this.§_-96§; + return this.var_272; } public function set attributes(value:Vector.) : void { - this.§_-96§ = value; + this.var_272 = value; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.var_271; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.var_271 = value; } public function get vertexCount() : uint { - return this.§_-g1§; + return this.var_273; } public function set vertexCount(value:uint) : void { - this.§_-g1§ = value; + this.var_273 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/id/ParentId.as b/src/versions/version1/a3d/id/ParentId.as index 7920fa0..f889404 100644 --- a/src/versions/version1/a3d/id/ParentId.as +++ b/src/versions/version1/a3d/id/ParentId.as @@ -2,22 +2,22 @@ package versions.version1.a3d.id { public class ParentId { - private var §_-3I§:uint; + private var var_101:uint; public function ParentId(id:uint) { super(); - this.§_-3I§ = id; + this.var_101 = id; } public function get id() : uint { - return this.§_-3I§; + return this.var_101; } public function set id(value:uint) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/materials/A3DImage.as b/src/versions/version1/a3d/materials/A3DImage.as index 73c681c..bf47d05 100644 --- a/src/versions/version1/a3d/materials/A3DImage.as +++ b/src/versions/version1/a3d/materials/A3DImage.as @@ -4,35 +4,35 @@ package versions.version1.a3d.materials public class A3DImage { - private var §_-3I§:Id; + private var var_101:Id; - private var §_-6D§:String; + private var var_274:String; public function A3DImage(id:Id, url:String) { super(); - this.§_-3I§ = id; - this.§_-6D§ = url; + this.var_101 = id; + this.var_274 = url; } public function get id() : Id { - return this.§_-3I§; + return this.var_101; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get url() : String { - return this.§_-6D§; + return this.var_274; } public function set url(value:String) : void { - this.§_-6D§ = value; + this.var_274 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/materials/A3DMap.as b/src/versions/version1/a3d/materials/A3DMap.as index 6146780..4fa9287 100644 --- a/src/versions/version1/a3d/materials/A3DMap.as +++ b/src/versions/version1/a3d/materials/A3DMap.as @@ -4,100 +4,100 @@ package versions.version1.a3d.materials public class A3DMap { - private var §_-9y§:uint; + private var var_337:uint; - private var §_-3I§:Id; + private var var_101:Id; - private var §_-JE§:Id; + private var var_338:Id; - private var §_-0U§:Number; + private var var_413:Number; - private var §_-5k§:Number; + private var var_414:Number; - private var §_-JZ§:Number; + private var var_415:Number; - private var §_-XP§:Number; + private var var_416:Number; public function A3DMap(channel:uint, id:Id, imageId:Id, uOffset:Number, uScale:Number, vOffset:Number, vScale:Number) { super(); - this.§_-9y§ = channel; - this.§_-3I§ = id; - this.§_-JE§ = imageId; - this.§_-0U§ = uOffset; - this.§_-5k§ = uScale; - this.§_-JZ§ = vOffset; - this.§_-XP§ = vScale; + this.var_337 = channel; + this.var_101 = id; + this.var_338 = imageId; + this.var_413 = uOffset; + this.var_414 = uScale; + this.var_415 = vOffset; + this.var_416 = vScale; } public function get channel() : uint { - return this.§_-9y§; + return this.var_337; } public function set channel(value:uint) : void { - this.§_-9y§ = value; + this.var_337 = value; } public function get id() : Id { - return this.§_-3I§; + return this.var_101; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get imageId() : Id { - return this.§_-JE§; + return this.var_338; } public function set imageId(value:Id) : void { - this.§_-JE§ = value; + this.var_338 = value; } public function get uOffset() : Number { - return this.§_-0U§; + return this.var_413; } public function set uOffset(value:Number) : void { - this.§_-0U§ = value; + this.var_413 = value; } public function get uScale() : Number { - return this.§_-5k§; + return this.var_414; } public function set uScale(value:Number) : void { - this.§_-5k§ = value; + this.var_414 = value; } public function get vOffset() : Number { - return this.§_-JZ§; + return this.var_415; } public function set vOffset(value:Number) : void { - this.§_-JZ§ = value; + this.var_415 = value; } public function get vScale() : Number { - return this.§_-XP§; + return this.var_416; } public function set vScale(value:Number) : void { - this.§_-XP§ = value; + this.var_416 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/materials/A3DMaterial.as b/src/versions/version1/a3d/materials/A3DMaterial.as index 45c1dd4..d4c9c92 100644 --- a/src/versions/version1/a3d/materials/A3DMaterial.as +++ b/src/versions/version1/a3d/materials/A3DMaterial.as @@ -4,100 +4,100 @@ package versions.version1.a3d.materials public class A3DMaterial { - private var §_-9s§:Id; + private var var_339:Id; - private var §_-bl§:Id; + private var var_343:Id; - private var §_-3I§:Id; + private var var_101:Id; - private var §_-qf§:Id; + private var var_345:Id; - private var §_-QR§:Id; + private var var_342:Id; - private var §_-Jn§:Id; + private var var_340:Id; - private var §_-LA§:Id; + private var var_341: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; + this.var_339 = diffuseMapId; + this.var_343 = glossinessMapId; + this.var_101 = id; + this.var_345 = lightMapId; + this.var_342 = normalMapId; + this.var_340 = opacityMapId; + this.var_341 = specularMapId; } public function get diffuseMapId() : Id { - return this.§_-9s§; + return this.var_339; } public function set diffuseMapId(value:Id) : void { - this.§_-9s§ = value; + this.var_339 = value; } public function get glossinessMapId() : Id { - return this.§_-bl§; + return this.var_343; } public function set glossinessMapId(value:Id) : void { - this.§_-bl§ = value; + this.var_343 = value; } public function get id() : Id { - return this.§_-3I§; + return this.var_101; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get lightMapId() : Id { - return this.§_-qf§; + return this.var_345; } public function set lightMapId(value:Id) : void { - this.§_-qf§ = value; + this.var_345 = value; } public function get normalMapId() : Id { - return this.§_-QR§; + return this.var_342; } public function set normalMapId(value:Id) : void { - this.§_-QR§ = value; + this.var_342 = value; } public function get opacityMapId() : Id { - return this.§_-Jn§; + return this.var_340; } public function set opacityMapId(value:Id) : void { - this.§_-Jn§ = value; + this.var_340 = value; } public function get specularMapId() : Id { - return this.§_-LA§; + return this.var_341; } public function set specularMapId(value:Id) : void { - this.§_-LA§ = value; + this.var_341 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/objects/A3DBox.as b/src/versions/version1/a3d/objects/A3DBox.as index 469dc30..6b5c640 100644 --- a/src/versions/version1/a3d/objects/A3DBox.as +++ b/src/versions/version1/a3d/objects/A3DBox.as @@ -4,35 +4,35 @@ package versions.version1.a3d.objects public class A3DBox { - private var §_-Ge§:Vector.; + private var var_290:Vector.; - private var §_-3I§:Id; + private var var_101:Id; public function A3DBox(box:Vector., id:Id) { super(); - this.§_-Ge§ = box; - this.§_-3I§ = id; + this.var_290 = box; + this.var_101 = id; } public function get box() : Vector. { - return this.§_-Ge§; + return this.var_290; } public function set box(value:Vector.) : void { - this.§_-Ge§ = value; + this.var_290 = value; } public function get id() : Id { - return this.§_-3I§; + return this.var_101; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/objects/A3DObject.as b/src/versions/version1/a3d/objects/A3DObject.as index 35dbddc..850adc4 100644 --- a/src/versions/version1/a3d/objects/A3DObject.as +++ b/src/versions/version1/a3d/objects/A3DObject.as @@ -5,63 +5,63 @@ package versions.version1.a3d.objects public class A3DObject { - private var §_-jD§:Id; + private var var_270:Id; - private var §_-16§:Id; + private var var_335:Id; - private var §_-3I§:Id; + private var var_101:Id; private var _name:String; - private var §_-fP§:ParentId; + private var var_269:ParentId; - private var §_-eW§:Vector.; + private var var_92:Vector.; - private var §_-UJ§:A3DTransformation; + private var var_336:A3DTransformation; - private var §_-1u§:Boolean; + private var var_261: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.var_270 = boundBoxId; + this.var_335 = geometryId; + this.var_101 = id; this._name = name; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-UJ§ = transformation; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_92 = surfaces; + this.var_336 = transformation; + this.var_261 = visible; } public function get boundBoxId() : Id { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:Id) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get geometryId() : Id { - return this.§_-16§; + return this.var_335; } public function set geometryId(value:Id) : void { - this.§_-16§ = value; + this.var_335 = value; } public function get id() : Id { - return this.§_-3I§; + return this.var_101; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get name() : String @@ -76,42 +76,42 @@ package versions.version1.a3d.objects public function get parentId() : ParentId { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:ParentId) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.var_92; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.var_92 = value; } public function get transformation() : A3DTransformation { - return this.§_-UJ§; + return this.var_336; } public function set transformation(value:A3DTransformation) : void { - this.§_-UJ§ = value; + this.var_336 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/objects/A3DSurface.as b/src/versions/version1/a3d/objects/A3DSurface.as index a536d8a..4dc10a9 100644 --- a/src/versions/version1/a3d/objects/A3DSurface.as +++ b/src/versions/version1/a3d/objects/A3DSurface.as @@ -4,48 +4,48 @@ package versions.version1.a3d.objects public class A3DSurface { - private var §_-50§:int; + private var var_300:int; - private var §_-pS§:Id; + private var var_301:Id; - private var §_-4C§:int; + private var var_299:int; public function A3DSurface(indexBegin:int, materialId:Id, numTriangles:int) { super(); - this.§_-50§ = indexBegin; - this.§_-pS§ = materialId; - this.§_-4C§ = numTriangles; + this.var_300 = indexBegin; + this.var_301 = materialId; + this.var_299 = numTriangles; } public function get indexBegin() : int { - return this.§_-50§; + return this.var_300; } public function set indexBegin(value:int) : void { - this.§_-50§ = value; + this.var_300 = value; } public function get materialId() : Id { - return this.§_-pS§; + return this.var_301; } public function set materialId(value:Id) : void { - this.§_-pS§ = value; + this.var_301 = value; } public function get numTriangles() : int { - return this.§_-4C§; + return this.var_299; } public function set numTriangles(value:int) : void { - this.§_-4C§ = value; + this.var_299 = value; } public function toString() : String diff --git a/src/versions/version1/a3d/objects/A3DTransformation.as b/src/versions/version1/a3d/objects/A3DTransformation.as index d5014bd..4a88721 100644 --- a/src/versions/version1/a3d/objects/A3DTransformation.as +++ b/src/versions/version1/a3d/objects/A3DTransformation.as @@ -4,22 +4,22 @@ package versions.version1.a3d.objects public class A3DTransformation { - private var §_-6p§:A3DMatrix; + private var var_412:A3DMatrix; public function A3DTransformation(matrix:A3DMatrix) { super(); - this.§_-6p§ = matrix; + this.var_412 = matrix; } public function get matrix() : A3DMatrix { - return this.§_-6p§; + return this.var_412; } public function set matrix(value:A3DMatrix) : void { - this.§_-6p§ = value; + this.var_412 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/A3D2.as b/src/versions/version2/a3d/A3D2.as index 1e1ef59..7525ed2 100644 --- a/src/versions/version2/a3d/A3D2.as +++ b/src/versions/version2/a3d/A3D2.as @@ -22,256 +22,256 @@ package versions.version2.a3d public class A3D2 { - private var §_-VP§:Vector.; + private var var_401:Vector.; - private var §_-qp§:Vector.; + private var var_406:Vector.; - private var §_-Ib§:Vector.; + private var var_399:Vector.; - private var §_-0§:Vector.; + private var var_346:Vector.; - private var §_-fK§:Vector.; + private var var_402:Vector.; - private var §_-Gv§:Vector.; + private var var_398:Vector.; - private var §_-93§:Vector.; + private var var_396:Vector.; - private var §_-ce§:Vector.; + private var var_350:Vector.; - private var §_-jm§:Vector.; + private var var_404:Vector.; - private var §_-26§:Vector.; + private var var_390:Vector.; - private var §_-XJ§:Vector.; + private var var_349:Vector.; - private var §_-22§:Vector.; + private var var_347:Vector.; - private var §_-jz§:Vector.; + private var var_405:Vector.; - private var §_-Kq§:Vector.; + private var var_348:Vector.; - private var §_-fM§:Vector.; + private var var_403:Vector.; - private var §_-G0§:Vector.; + private var var_397:Vector.; - private var §_-pd§:Vector.; + private var var_144:Vector.; - private var §_-Ke§:Vector.; + private var var_400:Vector.; - private var §_-0B§:Vector.; + private var var_276: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; + this.var_401 = ambientLights; + this.var_406 = animationClips; + this.var_399 = animationTracks; + this.var_346 = boxes; + this.var_402 = cubeMaps; + this.var_398 = decals; + this.var_396 = directionalLights; + this.var_350 = images; + this.var_404 = indexBuffers; + this.var_390 = joints; + this.var_349 = maps; + this.var_347 = materials; + this.var_405 = meshes; + this.var_348 = objects; + this.var_403 = omniLights; + this.var_397 = skins; + this.var_144 = spotLights; + this.var_400 = sprites; + this.var_276 = vertexBuffers; } public function get ambientLights() : Vector. { - return this.§_-VP§; + return this.var_401; } public function set ambientLights(value:Vector.) : void { - this.§_-VP§ = value; + this.var_401 = value; } public function get animationClips() : Vector. { - return this.§_-qp§; + return this.var_406; } public function set animationClips(value:Vector.) : void { - this.§_-qp§ = value; + this.var_406 = value; } public function get animationTracks() : Vector. { - return this.§_-Ib§; + return this.var_399; } public function set animationTracks(value:Vector.) : void { - this.§_-Ib§ = value; + this.var_399 = value; } public function get boxes() : Vector. { - return this.§_-0§; + return this.var_346; } public function set boxes(value:Vector.) : void { - this.§_-0§ = value; + this.var_346 = value; } public function get cubeMaps() : Vector. { - return this.§_-fK§; + return this.var_402; } public function set cubeMaps(value:Vector.) : void { - this.§_-fK§ = value; + this.var_402 = value; } public function get decals() : Vector. { - return this.§_-Gv§; + return this.var_398; } public function set decals(value:Vector.) : void { - this.§_-Gv§ = value; + this.var_398 = value; } public function get directionalLights() : Vector. { - return this.§_-93§; + return this.var_396; } public function set directionalLights(value:Vector.) : void { - this.§_-93§ = value; + this.var_396 = value; } public function get images() : Vector. { - return this.§_-ce§; + return this.var_350; } public function set images(value:Vector.) : void { - this.§_-ce§ = value; + this.var_350 = value; } public function get indexBuffers() : Vector. { - return this.§_-jm§; + return this.var_404; } public function set indexBuffers(value:Vector.) : void { - this.§_-jm§ = value; + this.var_404 = value; } public function get joints() : Vector. { - return this.§_-26§; + return this.var_390; } public function set joints(value:Vector.) : void { - this.§_-26§ = value; + this.var_390 = value; } public function get maps() : Vector. { - return this.§_-XJ§; + return this.var_349; } public function set maps(value:Vector.) : void { - this.§_-XJ§ = value; + this.var_349 = value; } public function get materials() : Vector. { - return this.§_-22§; + return this.var_347; } public function set materials(value:Vector.) : void { - this.§_-22§ = value; + this.var_347 = value; } public function get meshes() : Vector. { - return this.§_-jz§; + return this.var_405; } public function set meshes(value:Vector.) : void { - this.§_-jz§ = value; + this.var_405 = value; } public function get objects() : Vector. { - return this.§_-Kq§; + return this.var_348; } public function set objects(value:Vector.) : void { - this.§_-Kq§ = value; + this.var_348 = value; } public function get omniLights() : Vector. { - return this.§_-fM§; + return this.var_403; } public function set omniLights(value:Vector.) : void { - this.§_-fM§ = value; + this.var_403 = value; } public function get skins() : Vector. { - return this.§_-G0§; + return this.var_397; } public function set skins(value:Vector.) : void { - this.§_-G0§ = value; + this.var_397 = value; } public function get spotLights() : Vector. { - return this.§_-pd§; + return this.var_144; } public function set spotLights(value:Vector.) : void { - this.§_-pd§ = value; + this.var_144 = value; } public function get sprites() : Vector. { - return this.§_-Ke§; + return this.var_400; } public function set sprites(value:Vector.) : void { - this.§_-Ke§ = value; + this.var_400 = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.var_276; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.var_276 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/animation/A3D2AnimationClip.as b/src/versions/version2/a3d/animation/A3D2AnimationClip.as index 57d7b3f..9edad28 100644 --- a/src/versions/version2/a3d/animation/A3D2AnimationClip.as +++ b/src/versions/version2/a3d/animation/A3D2AnimationClip.as @@ -4,44 +4,44 @@ package versions.version2.a3d.animation public class A3D2AnimationClip { - private var §_-3I§:int; + private var var_101:int; - private var §_-OV§:Boolean; + private var var_388:Boolean; private var _name:String; - private var §_-Cp§:Vector.; + private var var_387:Vector.; - private var §_-cT§:Vector.; + private var var_389:Vector.; public function A3D2AnimationClip(id:int, loop:Boolean, name:String, objectIDs:Vector., tracks:Vector.) { super(); - this.§_-3I§ = id; - this.§_-OV§ = loop; + this.var_101 = id; + this.var_388 = loop; this._name = name; - this.§_-Cp§ = objectIDs; - this.§_-cT§ = tracks; + this.var_387 = objectIDs; + this.var_389 = tracks; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get loop() : Boolean { - return this.§_-OV§; + return this.var_388; } public function set loop(value:Boolean) : void { - this.§_-OV§ = value; + this.var_388 = value; } public function get name() : String @@ -56,22 +56,22 @@ package versions.version2.a3d.animation public function get objectIDs() : Vector. { - return this.§_-Cp§; + return this.var_387; } public function set objectIDs(value:Vector.) : void { - this.§_-Cp§ = value; + this.var_387 = value; } public function get tracks() : Vector. { - return this.§_-cT§; + return this.var_389; } public function set tracks(value:Vector.) : void { - this.§_-cT§ = value; + this.var_389 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/animation/A3D2Keyframe.as b/src/versions/version2/a3d/animation/A3D2Keyframe.as index fd43753..238b3fb 100644 --- a/src/versions/version2/a3d/animation/A3D2Keyframe.as +++ b/src/versions/version2/a3d/animation/A3D2Keyframe.as @@ -4,35 +4,35 @@ package versions.version2.a3d.animation public class A3D2Keyframe { - private var §_-qC§:Number; + private var var_420:Number; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; public function A3D2Keyframe(time:Number, transform:A3D2Transform) { super(); - this.§_-qC§ = time; - this.§_-bP§ = transform; + this.var_420 = time; + this.var_268 = transform; } public function get time() : Number { - return this.§_-qC§; + return this.var_420; } public function set time(value:Number) : void { - this.§_-qC§ = value; + this.var_420 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/animation/A3D2Track.as b/src/versions/version2/a3d/animation/A3D2Track.as index ab10778..e01f8f2 100644 --- a/src/versions/version2/a3d/animation/A3D2Track.as +++ b/src/versions/version2/a3d/animation/A3D2Track.as @@ -2,48 +2,48 @@ package versions.version2.a3d.animation { public class A3D2Track { - private var §_-3I§:int; + private var var_101:int; - private var §_-1§:Vector.; + private var var_288:Vector.; - private var §_-pa§:String; + private var var_289:String; public function A3D2Track(id:int, keyframes:Vector., objectName:String) { super(); - this.§_-3I§ = id; - this.§_-1§ = keyframes; - this.§_-pa§ = objectName; + this.var_101 = id; + this.var_288 = keyframes; + this.var_289 = objectName; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get keyframes() : Vector. { - return this.§_-1§; + return this.var_288; } public function set keyframes(value:Vector.) : void { - this.§_-1§ = value; + this.var_288 = value; } public function get objectName() : String { - return this.§_-pa§; + return this.var_289; } public function set objectName(value:String) : void { - this.§_-pa§ = value; + this.var_289 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as b/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as index dcedca2..a127bfa 100644 --- a/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as +++ b/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as @@ -4,48 +4,48 @@ package versions.version2.a3d.geometry public class A3D2IndexBuffer { - private var §_-79§:ByteArray; + private var var_271:ByteArray; - private var §_-3I§:int; + private var var_101:int; - private var §_-m0§:int; + private var var_379:int; public function A3D2IndexBuffer(byteBuffer:ByteArray, id:int, indexCount:int) { super(); - this.§_-79§ = byteBuffer; - this.§_-3I§ = id; - this.§_-m0§ = indexCount; + this.var_271 = byteBuffer; + this.var_101 = id; + this.var_379 = indexCount; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.var_271; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.var_271 = value; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get indexCount() : int { - return this.§_-m0§; + return this.var_379; } public function set indexCount(value:int) : void { - this.§_-m0§ = value; + this.var_379 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as b/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as index 2753d66..c47ad85 100644 --- a/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as +++ b/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as @@ -4,61 +4,61 @@ package versions.version2.a3d.geometry public class A3D2VertexBuffer { - private var §_-96§:Vector.; + private var var_272:Vector.; - private var §_-79§:ByteArray; + private var var_271:ByteArray; - private var §_-3I§:int; + private var var_101:int; - private var §_-g1§:uint; + private var var_273:uint; public function A3D2VertexBuffer(attributes:Vector., byteBuffer:ByteArray, id:int, vertexCount:uint) { super(); - this.§_-96§ = attributes; - this.§_-79§ = byteBuffer; - this.§_-3I§ = id; - this.§_-g1§ = vertexCount; + this.var_272 = attributes; + this.var_271 = byteBuffer; + this.var_101 = id; + this.var_273 = vertexCount; } public function get attributes() : Vector. { - return this.§_-96§; + return this.var_272; } public function set attributes(value:Vector.) : void { - this.§_-96§ = value; + this.var_272 = value; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.var_271; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.var_271 = value; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get vertexCount() : uint { - return this.§_-g1§; + return this.var_273; } public function set vertexCount(value:uint) : void { - this.§_-g1§ = value; + this.var_273 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/materials/A3D2CubeMap.as b/src/versions/version2/a3d/materials/A3D2CubeMap.as index 606fe07..ace817e 100644 --- a/src/versions/version2/a3d/materials/A3D2CubeMap.as +++ b/src/versions/version2/a3d/materials/A3D2CubeMap.as @@ -2,100 +2,100 @@ package versions.version2.a3d.materials { public class A3D2CubeMap { - private var §_-0x§:int; + private var var_278:int; - private var §_-el§:int; + private var var_282:int; - private var §_-5I§:int; + private var var_279:int; - private var §_-3I§:int; + private var var_101:int; - private var §_-ML§:int; + private var var_281:int; - private var §_-K§:int; + private var var_280:int; - private var §_-pW§:int; + private var var_283:int; public function A3D2CubeMap(backId:int, bottomId:int, frontId:int, id:int, leftId:int, rightId:int, topId:int) { super(); - this.§_-0x§ = backId; - this.§_-el§ = bottomId; - this.§_-5I§ = frontId; - this.§_-3I§ = id; - this.§_-ML§ = leftId; - this.§_-K§ = rightId; - this.§_-pW§ = topId; + this.var_278 = backId; + this.var_282 = bottomId; + this.var_279 = frontId; + this.var_101 = id; + this.var_281 = leftId; + this.var_280 = rightId; + this.var_283 = topId; } public function get backId() : int { - return this.§_-0x§; + return this.var_278; } public function set backId(value:int) : void { - this.§_-0x§ = value; + this.var_278 = value; } public function get bottomId() : int { - return this.§_-el§; + return this.var_282; } public function set bottomId(value:int) : void { - this.§_-el§ = value; + this.var_282 = value; } public function get frontId() : int { - return this.§_-5I§; + return this.var_279; } public function set frontId(value:int) : void { - this.§_-5I§ = value; + this.var_279 = value; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get leftId() : int { - return this.§_-ML§; + return this.var_281; } public function set leftId(value:int) : void { - this.§_-ML§ = value; + this.var_281 = value; } public function get rightId() : int { - return this.§_-K§; + return this.var_280; } public function set rightId(value:int) : void { - this.§_-K§ = value; + this.var_280 = value; } public function get topId() : int { - return this.§_-pW§; + return this.var_283; } public function set topId(value:int) : void { - this.§_-pW§ = value; + this.var_283 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/materials/A3D2Image.as b/src/versions/version2/a3d/materials/A3D2Image.as index 4e9fde7..99b8b41 100644 --- a/src/versions/version2/a3d/materials/A3D2Image.as +++ b/src/versions/version2/a3d/materials/A3D2Image.as @@ -2,35 +2,35 @@ package versions.version2.a3d.materials { public class A3D2Image { - private var §_-3I§:int; + private var var_101:int; - private var §_-6D§:String; + private var var_274:String; public function A3D2Image(id:int, url:String) { super(); - this.§_-3I§ = id; - this.§_-6D§ = url; + this.var_101 = id; + this.var_274 = url; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get url() : String { - return this.§_-6D§; + return this.var_274; } public function set url(value:String) : void { - this.§_-6D§ = value; + this.var_274 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/materials/A3D2Map.as b/src/versions/version2/a3d/materials/A3D2Map.as index 2fc341e..fe8eec5 100644 --- a/src/versions/version2/a3d/materials/A3D2Map.as +++ b/src/versions/version2/a3d/materials/A3D2Map.as @@ -2,48 +2,48 @@ package versions.version2.a3d.materials { public class A3D2Map { - private var §_-9y§:uint; + private var var_337:uint; - private var §_-3I§:int; + private var var_101:int; - private var §_-JE§:int; + private var var_338:int; public function A3D2Map(channel:uint, id:int, imageId:int) { super(); - this.§_-9y§ = channel; - this.§_-3I§ = id; - this.§_-JE§ = imageId; + this.var_337 = channel; + this.var_101 = id; + this.var_338 = imageId; } public function get channel() : uint { - return this.§_-9y§; + return this.var_337; } public function set channel(value:uint) : void { - this.§_-9y§ = value; + this.var_337 = value; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get imageId() : int { - return this.§_-JE§; + return this.var_338; } public function set imageId(value:int) : void { - this.§_-JE§ = value; + this.var_338 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/materials/A3D2Material.as b/src/versions/version2/a3d/materials/A3D2Material.as index 714df73..2a755a2 100644 --- a/src/versions/version2/a3d/materials/A3D2Material.as +++ b/src/versions/version2/a3d/materials/A3D2Material.as @@ -2,113 +2,113 @@ package versions.version2.a3d.materials { public class A3D2Material { - private var §_-9s§:int; + private var var_339:int; - private var §_-bl§:int; + private var var_343:int; - private var §_-3I§:int; + private var var_101:int; - private var §_-qf§:int; + private var var_345:int; - private var §_-QR§:int; + private var var_342:int; - private var §_-Jn§:int; + private var var_340:int; - private var §_-iG§:int; + private var var_344:int; - private var §_-LA§:int; + private var var_341:int; public function A3D2Material(diffuseMapId:int, glossinessMapId:int, id:int, lightMapId:int, normalMapId:int, opacityMapId:int, reflectionCubeMapId:int, specularMapId:int) { super(); - this.§_-9s§ = diffuseMapId; - this.§_-bl§ = glossinessMapId; - this.§_-3I§ = id; - this.§_-qf§ = lightMapId; - this.§_-QR§ = normalMapId; - this.§_-Jn§ = opacityMapId; - this.§_-iG§ = reflectionCubeMapId; - this.§_-LA§ = specularMapId; + this.var_339 = diffuseMapId; + this.var_343 = glossinessMapId; + this.var_101 = id; + this.var_345 = lightMapId; + this.var_342 = normalMapId; + this.var_340 = opacityMapId; + this.var_344 = reflectionCubeMapId; + this.var_341 = specularMapId; } public function get diffuseMapId() : int { - return this.§_-9s§; + return this.var_339; } public function set diffuseMapId(value:int) : void { - this.§_-9s§ = value; + this.var_339 = value; } public function get glossinessMapId() : int { - return this.§_-bl§; + return this.var_343; } public function set glossinessMapId(value:int) : void { - this.§_-bl§ = value; + this.var_343 = value; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get lightMapId() : int { - return this.§_-qf§; + return this.var_345; } public function set lightMapId(value:int) : void { - this.§_-qf§ = value; + this.var_345 = value; } public function get normalMapId() : int { - return this.§_-QR§; + return this.var_342; } public function set normalMapId(value:int) : void { - this.§_-QR§ = value; + this.var_342 = value; } public function get opacityMapId() : int { - return this.§_-Jn§; + return this.var_340; } public function set opacityMapId(value:int) : void { - this.§_-Jn§ = value; + this.var_340 = value; } public function get reflectionCubeMapId() : int { - return this.§_-iG§; + return this.var_344; } public function set reflectionCubeMapId(value:int) : void { - this.§_-iG§ = value; + this.var_344 = value; } public function get specularMapId() : int { - return this.§_-LA§; + return this.var_341; } public function set specularMapId(value:int) : void { - this.§_-LA§ = value; + this.var_341 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2AmbientLight.as b/src/versions/version2/a3d/objects/A3D2AmbientLight.as index 0d9a55e..58bcd75 100644 --- a/src/versions/version2/a3d/objects/A3D2AmbientLight.as +++ b/src/versions/version2/a3d/objects/A3D2AmbientLight.as @@ -4,73 +4,73 @@ package versions.version2.a3d.objects public class A3D2AmbientLight { - private var §_-jD§:int; + private var var_270:int; - private var §_-Tn§:uint; + private var var_266:uint; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-74§:Number; + private var var_262:Number; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261:Boolean; public function A3D2AmbientLight(boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-Tn§ = color; - this.§_-3I§ = id; - this.§_-74§ = intensity; + this.var_270 = boundBoxId; + this.var_266 = color; + this.var_101 = id; + this.var_262 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_268 = transform; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get color() : uint { - return this.§_-Tn§; + return this.var_266; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.var_266 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get intensity() : Number { - return this.§_-74§; + return this.var_262; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.var_262 = value; } public function get name() : String @@ -85,32 +85,32 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Box.as b/src/versions/version2/a3d/objects/A3D2Box.as index eb337a9..ab0e720 100644 --- a/src/versions/version2/a3d/objects/A3D2Box.as +++ b/src/versions/version2/a3d/objects/A3D2Box.as @@ -2,35 +2,35 @@ package versions.version2.a3d.objects { public class A3D2Box { - private var §_-Ge§:Vector.; + private var var_290:Vector.; - private var §_-3I§:int; + private var var_101:int; public function A3D2Box(box:Vector., id:int) { super(); - this.§_-Ge§ = box; - this.§_-3I§ = id; + this.var_290 = box; + this.var_101 = id; } public function get box() : Vector. { - return this.§_-Ge§; + return this.var_290; } public function set box(value:Vector.) : void { - this.§_-Ge§ = value; + this.var_290 = value; } public function get id() : int { - return this.§_-3I§; + return this.var_101; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Decal.as b/src/versions/version2/a3d/objects/A3D2Decal.as index 2703d5d..bf73942 100644 --- a/src/versions/version2/a3d/objects/A3D2Decal.as +++ b/src/versions/version2/a3d/objects/A3D2Decal.as @@ -4,69 +4,69 @@ package versions.version2.a3d.objects public class A3D2Decal { - private var §_-jD§:int; + private var var_270:int; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-Hc§:int; + private var var_277:int; private var _name:String; - private var §_-3D§:Number; + private var var_285:Number; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-eW§:Vector.; + private var var_92:Vector.; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-0B§:Vector.; + private var var_276:Vector.; - private var §_-1u§:Boolean; + private var var_261: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.§_-jD§ = boundBoxId; - this.§_-3I§ = id; - this.§_-Hc§ = indexBufferId; + this.var_270 = boundBoxId; + this.var_101 = id; + this.var_277 = indexBufferId; this._name = name; - this.§_-3D§ = offset; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-bP§ = transform; - this.§_-0B§ = vertexBuffers; - this.§_-1u§ = visible; + this.var_285 = offset; + this.var_269 = parentId; + this.var_92 = surfaces; + this.var_268 = transform; + this.var_276 = vertexBuffers; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get indexBufferId() : int { - return this.§_-Hc§; + return this.var_277; } public function set indexBufferId(value:int) : void { - this.§_-Hc§ = value; + this.var_277 = value; } public function get name() : String @@ -81,62 +81,62 @@ package versions.version2.a3d.objects public function get offset() : Number { - return this.§_-3D§; + return this.var_285; } public function set offset(value:Number) : void { - this.§_-3D§ = value; + this.var_285 = value; } public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.var_92; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.var_92 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.var_276; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.var_276 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2DirectionalLight.as b/src/versions/version2/a3d/objects/A3D2DirectionalLight.as index 4ef61d4..f318365 100644 --- a/src/versions/version2/a3d/objects/A3D2DirectionalLight.as +++ b/src/versions/version2/a3d/objects/A3D2DirectionalLight.as @@ -4,73 +4,73 @@ package versions.version2.a3d.objects public class A3D2DirectionalLight { - private var §_-jD§:int; + private var var_270:int; - private var §_-Tn§:uint; + private var var_266:uint; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-74§:Number; + private var var_262:Number; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261:Boolean; public function A3D2DirectionalLight(boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-Tn§ = color; - this.§_-3I§ = id; - this.§_-74§ = intensity; + this.var_270 = boundBoxId; + this.var_266 = color; + this.var_101 = id; + this.var_262 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_268 = transform; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get color() : uint { - return this.§_-Tn§; + return this.var_266; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.var_266 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get intensity() : Number { - return this.§_-74§; + return this.var_262; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.var_262 = value; } public function get name() : String @@ -85,32 +85,32 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Joint.as b/src/versions/version2/a3d/objects/A3D2Joint.as index 399036f..b8f6982 100644 --- a/src/versions/version2/a3d/objects/A3D2Joint.as +++ b/src/versions/version2/a3d/objects/A3D2Joint.as @@ -4,47 +4,47 @@ package versions.version2.a3d.objects public class A3D2Joint { - private var §_-jD§:int; + private var var_270:int; - private var §_-3I§:Long; + private var var_101:Long; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261:Boolean; public function A3D2Joint(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-3I§ = id; + this.var_270 = boundBoxId; + this.var_101 = id; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_268 = transform; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get name() : String @@ -59,32 +59,32 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2JointBindTransform.as b/src/versions/version2/a3d/objects/A3D2JointBindTransform.as index 13c13dc..e8d6ecc 100644 --- a/src/versions/version2/a3d/objects/A3D2JointBindTransform.as +++ b/src/versions/version2/a3d/objects/A3D2JointBindTransform.as @@ -4,35 +4,35 @@ package versions.version2.a3d.objects public class A3D2JointBindTransform { - private var §_-NL§:A3D2Transform; + private var var_417:A3D2Transform; - private var §_-3I§:Long; + private var var_101:Long; public function A3D2JointBindTransform(bindPoseTransform:A3D2Transform, id:Long) { super(); - this.§_-NL§ = bindPoseTransform; - this.§_-3I§ = id; + this.var_417 = bindPoseTransform; + this.var_101 = id; } public function get bindPoseTransform() : A3D2Transform { - return this.§_-NL§; + return this.var_417; } public function set bindPoseTransform(value:A3D2Transform) : void { - this.§_-NL§ = value; + this.var_417 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Mesh.as b/src/versions/version2/a3d/objects/A3D2Mesh.as index 3d09939..270d1a2 100644 --- a/src/versions/version2/a3d/objects/A3D2Mesh.as +++ b/src/versions/version2/a3d/objects/A3D2Mesh.as @@ -4,66 +4,66 @@ package versions.version2.a3d.objects public class A3D2Mesh { - private var §_-jD§:int; + private var var_270:int; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-Hc§:int; + private var var_277:int; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-eW§:Vector.; + private var var_92:Vector.; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-0B§:Vector.; + private var var_276:Vector.; - private var §_-1u§:Boolean; + private var var_261:Boolean; public function A3D2Mesh(boundBoxId:int, id:Long, indexBufferId:int, name:String, parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-3I§ = id; - this.§_-Hc§ = indexBufferId; + this.var_270 = boundBoxId; + this.var_101 = id; + this.var_277 = indexBufferId; this._name = name; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-bP§ = transform; - this.§_-0B§ = vertexBuffers; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_92 = surfaces; + this.var_268 = transform; + this.var_276 = vertexBuffers; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get indexBufferId() : int { - return this.§_-Hc§; + return this.var_277; } public function set indexBufferId(value:int) : void { - this.§_-Hc§ = value; + this.var_277 = value; } public function get name() : String @@ -78,52 +78,52 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.var_92; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.var_92 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.var_276; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.var_276 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Object.as b/src/versions/version2/a3d/objects/A3D2Object.as index 3425cae..6617901 100644 --- a/src/versions/version2/a3d/objects/A3D2Object.as +++ b/src/versions/version2/a3d/objects/A3D2Object.as @@ -4,47 +4,47 @@ package versions.version2.a3d.objects public class A3D2Object { - private var §_-jD§:int; + private var var_270:int; - private var §_-3I§:Long; + private var var_101:Long; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261:Boolean; public function A3D2Object(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-3I§ = id; + this.var_270 = boundBoxId; + this.var_101 = id; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_268 = transform; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get name() : String @@ -59,32 +59,32 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2OmniLight.as b/src/versions/version2/a3d/objects/A3D2OmniLight.as index 7269dcc..72cb203 100644 --- a/src/versions/version2/a3d/objects/A3D2OmniLight.as +++ b/src/versions/version2/a3d/objects/A3D2OmniLight.as @@ -4,99 +4,99 @@ package versions.version2.a3d.objects public class A3D2OmniLight { - private var §_-Hw§:Number; + private var var_265:Number; - private var §_-AS§:Number; + private var var_263:Number; - private var §_-jD§:int; + private var var_270:int; - private var §_-Tn§:uint; + private var var_266:uint; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-74§:Number; + private var var_262:Number; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261: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.§_-Hw§ = attenuationBegin; - this.§_-AS§ = attenuationEnd; - this.§_-jD§ = boundBoxId; - this.§_-Tn§ = color; - this.§_-3I§ = id; - this.§_-74§ = intensity; + this.var_265 = attenuationBegin; + this.var_263 = attenuationEnd; + this.var_270 = boundBoxId; + this.var_266 = color; + this.var_101 = id; + this.var_262 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_268 = transform; + this.var_261 = visible; } public function get attenuationBegin() : Number { - return this.§_-Hw§; + return this.var_265; } public function set attenuationBegin(value:Number) : void { - this.§_-Hw§ = value; + this.var_265 = value; } public function get attenuationEnd() : Number { - return this.§_-AS§; + return this.var_263; } public function set attenuationEnd(value:Number) : void { - this.§_-AS§ = value; + this.var_263 = value; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get color() : uint { - return this.§_-Tn§; + return this.var_266; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.var_266 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get intensity() : Number { - return this.§_-74§; + return this.var_262; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.var_262 = value; } public function get name() : String @@ -111,32 +111,32 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Skin.as b/src/versions/version2/a3d/objects/A3D2Skin.as index d3767af..07cfd8b 100644 --- a/src/versions/version2/a3d/objects/A3D2Skin.as +++ b/src/versions/version2/a3d/objects/A3D2Skin.as @@ -4,95 +4,95 @@ package versions.version2.a3d.objects public class A3D2Skin { - private var §_-jD§:int; + private var var_270:int; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-Hc§:int; + private var var_277:int; - private var §_-KB§:Vector.; + private var var_392:Vector.; - private var §_-26§:Vector.; + private var var_390:Vector.; private var _name:String; - private var §_-Dr§:Vector.; + private var var_391:Vector.; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-eW§:Vector.; + private var var_92:Vector.; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-0B§:Vector.; + private var var_276:Vector.; - private var §_-1u§:Boolean; + private var var_261: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.§_-jD§ = boundBoxId; - this.§_-3I§ = id; - this.§_-Hc§ = indexBufferId; - this.§_-KB§ = jointBindTransforms; - this.§_-26§ = joints; + this.var_270 = boundBoxId; + this.var_101 = id; + this.var_277 = indexBufferId; + this.var_392 = jointBindTransforms; + this.var_390 = joints; this._name = name; - this.§_-Dr§ = numJoints; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-bP§ = transform; - this.§_-0B§ = vertexBuffers; - this.§_-1u§ = visible; + this.var_391 = numJoints; + this.var_269 = parentId; + this.var_92 = surfaces; + this.var_268 = transform; + this.var_276 = vertexBuffers; + this.var_261 = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get indexBufferId() : int { - return this.§_-Hc§; + return this.var_277; } public function set indexBufferId(value:int) : void { - this.§_-Hc§ = value; + this.var_277 = value; } public function get jointBindTransforms() : Vector. { - return this.§_-KB§; + return this.var_392; } public function set jointBindTransforms(value:Vector.) : void { - this.§_-KB§ = value; + this.var_392 = value; } public function get joints() : Vector. { - return this.§_-26§; + return this.var_390; } public function set joints(value:Vector.) : void { - this.§_-26§ = value; + this.var_390 = value; } public function get name() : String @@ -107,62 +107,62 @@ package versions.version2.a3d.objects public function get numJoints() : Vector. { - return this.§_-Dr§; + return this.var_391; } public function set numJoints(value:Vector.) : void { - this.§_-Dr§ = value; + this.var_391 = value; } public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.var_92; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.var_92 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.var_276; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.var_276 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2SpotLight.as b/src/versions/version2/a3d/objects/A3D2SpotLight.as index 7a3b162..5ec82e9 100644 --- a/src/versions/version2/a3d/objects/A3D2SpotLight.as +++ b/src/versions/version2/a3d/objects/A3D2SpotLight.as @@ -4,125 +4,125 @@ package versions.version2.a3d.objects public class A3D2SpotLight { - private var §_-Hw§:Number; + private var var_265:Number; - private var §_-AS§:Number; + private var var_263:Number; - private var §_-jD§:int; + private var var_270:int; - private var §_-Tn§:uint; + private var var_266:uint; - private var §_-a0§:Number; + private var var_267:Number; - private var §_-GR§:Number; + private var var_264:Number; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-74§:Number; + private var var_262:Number; private var _name:String; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261: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.§_-Hw§ = attenuationBegin; - this.§_-AS§ = attenuationEnd; - this.§_-jD§ = boundBoxId; - this.§_-Tn§ = color; - this.§_-a0§ = falloff; - this.§_-GR§ = hotspot; - this.§_-3I§ = id; - this.§_-74§ = intensity; + this.var_265 = attenuationBegin; + this.var_263 = attenuationEnd; + this.var_270 = boundBoxId; + this.var_266 = color; + this.var_267 = falloff; + this.var_264 = hotspot; + this.var_101 = id; + this.var_262 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.var_269 = parentId; + this.var_268 = transform; + this.var_261 = visible; } public function get attenuationBegin() : Number { - return this.§_-Hw§; + return this.var_265; } public function set attenuationBegin(value:Number) : void { - this.§_-Hw§ = value; + this.var_265 = value; } public function get attenuationEnd() : Number { - return this.§_-AS§; + return this.var_263; } public function set attenuationEnd(value:Number) : void { - this.§_-AS§ = value; + this.var_263 = value; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get color() : uint { - return this.§_-Tn§; + return this.var_266; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.var_266 = value; } public function get falloff() : Number { - return this.§_-a0§; + return this.var_267; } public function set falloff(value:Number) : void { - this.§_-a0§ = value; + this.var_267 = value; } public function get hotspot() : Number { - return this.§_-GR§; + return this.var_264; } public function set hotspot(value:Number) : void { - this.§_-GR§ = value; + this.var_264 = value; } public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get intensity() : Number { - return this.§_-74§; + return this.var_262; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.var_262 = value; } public function get name() : String @@ -137,32 +137,32 @@ package versions.version2.a3d.objects public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Sprite.as b/src/versions/version2/a3d/objects/A3D2Sprite.as index 1ba2541..5a6ca9b 100644 --- a/src/versions/version2/a3d/objects/A3D2Sprite.as +++ b/src/versions/version2/a3d/objects/A3D2Sprite.as @@ -5,71 +5,71 @@ package versions.version2.a3d.objects public class A3D2Sprite { - private var §_-CL§:Boolean; + private var var_376:Boolean; - private var §_-jD§:int; + private var var_270:int; private var _height:Number; - private var §_-3I§:Long; + private var var_101:Long; - private var §_-pS§:Id; + private var var_301:Id; private var _name:String; - private var §_-4T§:Number; + private var var_375:Number; - private var §_-TP§:Number; + private var var_377:Number; - private var §_-fP§:Long; + private var var_269:Long; - private var §_-2t§:Boolean; + private var var_374:Boolean; - private var §_-Vd§:Number; + private var var_378:Number; - private var §_-bP§:A3D2Transform; + private var var_268:A3D2Transform; - private var §_-1u§:Boolean; + private var var_261:Boolean; - private var §_-qj§:Number; + private var var_110: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.§_-CL§ = alwaysOnTop; - this.§_-jD§ = boundBoxId; + this.var_376 = alwaysOnTop; + this.var_270 = boundBoxId; this._height = height; - this.§_-3I§ = id; - this.§_-pS§ = materialId; + this.var_101 = id; + this.var_301 = materialId; this._name = name; - this.§_-4T§ = originX; - this.§_-TP§ = originY; - this.§_-fP§ = parentId; - this.§_-2t§ = perspectiveScale; - this.§_-Vd§ = rotation; - this.§_-bP§ = transform; - this.§_-1u§ = visible; - this.§_-qj§ = width; + this.var_375 = originX; + this.var_377 = originY; + this.var_269 = parentId; + this.var_374 = perspectiveScale; + this.var_378 = rotation; + this.var_268 = transform; + this.var_261 = visible; + this.var_110 = width; } public function get alwaysOnTop() : Boolean { - return this.§_-CL§; + return this.var_376; } public function set alwaysOnTop(value:Boolean) : void { - this.§_-CL§ = value; + this.var_376 = value; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.var_270; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.var_270 = value; } public function get height() : Number @@ -84,22 +84,22 @@ package versions.version2.a3d.objects public function get id() : Long { - return this.§_-3I§; + return this.var_101; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.var_101 = value; } public function get materialId() : Id { - return this.§_-pS§; + return this.var_301; } public function set materialId(value:Id) : void { - this.§_-pS§ = value; + this.var_301 = value; } public function get name() : String @@ -114,82 +114,82 @@ package versions.version2.a3d.objects public function get originX() : Number { - return this.§_-4T§; + return this.var_375; } public function set originX(value:Number) : void { - this.§_-4T§ = value; + this.var_375 = value; } public function get originY() : Number { - return this.§_-TP§; + return this.var_377; } public function set originY(value:Number) : void { - this.§_-TP§ = value; + this.var_377 = value; } public function get parentId() : Long { - return this.§_-fP§; + return this.var_269; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.var_269 = value; } public function get perspectiveScale() : Boolean { - return this.§_-2t§; + return this.var_374; } public function set perspectiveScale(value:Boolean) : void { - this.§_-2t§ = value; + this.var_374 = value; } public function get rotation() : Number { - return this.§_-Vd§; + return this.var_378; } public function set rotation(value:Number) : void { - this.§_-Vd§ = value; + this.var_378 = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.var_268; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.var_268 = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.var_261; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.var_261 = value; } public function get width() : Number { - return this.§_-qj§; + return this.var_110; } public function set width(value:Number) : void { - this.§_-qj§ = value; + this.var_110 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Surface.as b/src/versions/version2/a3d/objects/A3D2Surface.as index b44707c..170ac71 100644 --- a/src/versions/version2/a3d/objects/A3D2Surface.as +++ b/src/versions/version2/a3d/objects/A3D2Surface.as @@ -2,48 +2,48 @@ package versions.version2.a3d.objects { public class A3D2Surface { - private var §_-50§:int; + private var var_300:int; - private var §_-pS§:int; + private var var_301:int; - private var §_-4C§:int; + private var var_299:int; public function A3D2Surface(indexBegin:int, materialId:int, numTriangles:int) { super(); - this.§_-50§ = indexBegin; - this.§_-pS§ = materialId; - this.§_-4C§ = numTriangles; + this.var_300 = indexBegin; + this.var_301 = materialId; + this.var_299 = numTriangles; } public function get indexBegin() : int { - return this.§_-50§; + return this.var_300; } public function set indexBegin(value:int) : void { - this.§_-50§ = value; + this.var_300 = value; } public function get materialId() : int { - return this.§_-pS§; + return this.var_301; } public function set materialId(value:int) : void { - this.§_-pS§ = value; + this.var_301 = value; } public function get numTriangles() : int { - return this.§_-4C§; + return this.var_299; } public function set numTriangles(value:int) : void { - this.§_-4C§ = value; + this.var_299 = value; } public function toString() : String diff --git a/src/versions/version2/a3d/objects/A3D2Transform.as b/src/versions/version2/a3d/objects/A3D2Transform.as index b81b61c..b7479d2 100644 --- a/src/versions/version2/a3d/objects/A3D2Transform.as +++ b/src/versions/version2/a3d/objects/A3D2Transform.as @@ -4,22 +4,22 @@ package versions.version2.a3d.objects public class A3D2Transform { - private var §_-6p§:A3DMatrix; + private var var_412:A3DMatrix; public function A3D2Transform(matrix:A3DMatrix) { super(); - this.§_-6p§ = matrix; + this.var_412 = matrix; } public function get matrix() : A3DMatrix { - return this.§_-6p§; + return this.var_412; } public function set matrix(value:A3DMatrix) : void { - this.§_-6p§ = value; + this.var_412 = value; } public function toString() : String